@alepha/devtools 0.15.0 → 0.15.2

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 (237) hide show
  1. package/README.md +14 -4
  2. package/assets/devtools/actions.html +6 -22
  3. package/assets/devtools/actions.html.br +0 -0
  4. package/assets/devtools/actions.html.gz +0 -0
  5. package/assets/devtools/{asset.CMFNRMve.css → asset.CUUwTesj.css} +1 -1
  6. package/assets/devtools/asset.CUUwTesj.css.br +0 -0
  7. package/assets/devtools/{asset.CMFNRMve.css.gz → asset.CUUwTesj.css.gz} +0 -0
  8. package/assets/devtools/atoms.html +6 -22
  9. package/assets/devtools/atoms.html.br +0 -0
  10. package/assets/devtools/atoms.html.gz +0 -0
  11. package/assets/devtools/caches.html +6 -22
  12. package/assets/devtools/caches.html.br +0 -0
  13. package/assets/devtools/caches.html.gz +0 -0
  14. package/assets/devtools/{chunk.BZZjyIAY.js → chunk.8L5-bmT2.js} +2 -2
  15. package/assets/devtools/chunk.8L5-bmT2.js.br +0 -0
  16. package/assets/devtools/chunk.8L5-bmT2.js.gz +0 -0
  17. package/assets/devtools/chunk.9_-GTbfg.js +1 -0
  18. package/assets/devtools/chunk.9_-GTbfg.js.br +0 -0
  19. package/assets/devtools/chunk.9_-GTbfg.js.gz +0 -0
  20. package/assets/devtools/chunk.B06miRTQ.js +1 -0
  21. package/assets/devtools/chunk.B06miRTQ.js.br +0 -0
  22. package/assets/devtools/chunk.B06miRTQ.js.gz +0 -0
  23. package/assets/devtools/{chunk.CQFdZ3hg.js → chunk.B4XxoeIU.js} +1 -1
  24. package/assets/devtools/chunk.B4XxoeIU.js.br +0 -0
  25. package/assets/devtools/chunk.B4XxoeIU.js.gz +0 -0
  26. package/assets/devtools/chunk.BDGiK8wy.js +1 -0
  27. package/assets/devtools/chunk.BDGiK8wy.js.br +0 -0
  28. package/assets/devtools/chunk.BDGiK8wy.js.gz +0 -0
  29. package/assets/devtools/{chunk.Vm7uQYEE.js → chunk.BK94oaB2.js} +1 -1
  30. package/assets/devtools/chunk.BK94oaB2.js.br +0 -0
  31. package/assets/devtools/chunk.BK94oaB2.js.gz +0 -0
  32. package/assets/devtools/{chunk.CXR8SXil.js → chunk.BLgG-Amn.js} +1 -1
  33. package/assets/devtools/chunk.BLgG-Amn.js.br +0 -0
  34. package/assets/devtools/chunk.BLgG-Amn.js.gz +0 -0
  35. package/assets/devtools/{chunk.B1BX4OlP.js → chunk.BOYwUUqI.js} +1 -1
  36. package/assets/devtools/chunk.BOYwUUqI.js.br +0 -0
  37. package/assets/devtools/chunk.BOYwUUqI.js.gz +0 -0
  38. package/assets/devtools/{chunk.C_WwXcGr.js → chunk.BPCHIpy2.js} +1 -1
  39. package/assets/devtools/chunk.BPCHIpy2.js.br +0 -0
  40. package/assets/devtools/chunk.BPCHIpy2.js.gz +0 -0
  41. package/assets/devtools/{chunk.42CgRmmy.js → chunk.BRKelMlC.js} +1 -1
  42. package/assets/devtools/chunk.BRKelMlC.js.br +0 -0
  43. package/assets/devtools/chunk.BRKelMlC.js.gz +0 -0
  44. package/assets/devtools/chunk.BrsQ66Fo.js +1 -0
  45. package/assets/devtools/chunk.BrsQ66Fo.js.br +0 -0
  46. package/assets/devtools/chunk.BrsQ66Fo.js.gz +0 -0
  47. package/assets/devtools/{chunk.UjSU-RcH.js → chunk.Bz4bTzr0.js} +1 -1
  48. package/assets/devtools/chunk.Bz4bTzr0.js.br +0 -0
  49. package/assets/devtools/chunk.Bz4bTzr0.js.gz +0 -0
  50. package/assets/devtools/{chunk.6zj3eUIy.js → chunk.CKppnGPU.js} +1 -1
  51. package/assets/devtools/chunk.CKppnGPU.js.br +0 -0
  52. package/assets/devtools/chunk.CKppnGPU.js.gz +0 -0
  53. package/assets/devtools/chunk.CfzSCjsJ.js +1 -0
  54. package/assets/devtools/chunk.CfzSCjsJ.js.br +0 -0
  55. package/assets/devtools/chunk.CfzSCjsJ.js.gz +0 -0
  56. package/assets/devtools/{chunk.MMyHzoxt.js → chunk.CiLYCLJH.js} +1 -1
  57. package/assets/devtools/chunk.CiLYCLJH.js.br +0 -0
  58. package/assets/devtools/chunk.CiLYCLJH.js.gz +0 -0
  59. package/assets/devtools/chunk.CnHYu38l.js +2 -0
  60. package/assets/devtools/chunk.CnHYu38l.js.br +0 -0
  61. package/assets/devtools/chunk.CnHYu38l.js.gz +0 -0
  62. package/assets/devtools/{chunk.jP0GrcaU.js → chunk.D1-ODKSf.js} +1 -1
  63. package/assets/devtools/chunk.D1-ODKSf.js.br +0 -0
  64. package/assets/devtools/chunk.D1-ODKSf.js.gz +0 -0
  65. package/assets/devtools/chunk.D4SUrYI2.js +1 -0
  66. package/assets/devtools/chunk.D4SUrYI2.js.br +0 -0
  67. package/assets/devtools/chunk.D4SUrYI2.js.gz +0 -0
  68. package/assets/devtools/chunk.DAeCHJ5Z.js +1 -0
  69. package/assets/devtools/chunk.DAeCHJ5Z.js.br +0 -0
  70. package/assets/devtools/chunk.DAeCHJ5Z.js.gz +0 -0
  71. package/assets/devtools/{chunk.B6bX0XQI.js → chunk.DN2ng7Ec.js} +1 -1
  72. package/assets/devtools/chunk.DN2ng7Ec.js.br +3 -0
  73. package/assets/devtools/chunk.DN2ng7Ec.js.gz +0 -0
  74. package/assets/devtools/chunk.DXhVYZJu.js +1 -0
  75. package/assets/devtools/chunk.DXhVYZJu.js.br +0 -0
  76. package/assets/devtools/chunk.DXhVYZJu.js.gz +0 -0
  77. package/assets/devtools/{chunk.D_B99PWK.js → chunk.DgZ24mun.js} +3 -3
  78. package/assets/devtools/chunk.DgZ24mun.js.br +0 -0
  79. package/assets/devtools/chunk.DgZ24mun.js.gz +0 -0
  80. package/assets/devtools/{chunk.-1T4AUjH.js → chunk.DkirMznI.js} +1 -1
  81. package/assets/devtools/chunk.DkirMznI.js.br +0 -0
  82. package/assets/devtools/chunk.DkirMznI.js.gz +0 -0
  83. package/assets/devtools/chunk.Dnb5TqA8.js +1 -0
  84. package/assets/devtools/chunk.Dnb5TqA8.js.br +0 -0
  85. package/assets/devtools/chunk.Dnb5TqA8.js.gz +0 -0
  86. package/assets/devtools/chunk.DqdWWOSs.js +1 -0
  87. package/assets/devtools/chunk.DqdWWOSs.js.br +0 -0
  88. package/assets/devtools/chunk.DqdWWOSs.js.gz +0 -0
  89. package/assets/devtools/{chunk.WpBi-27p.js → chunk.DrLudrGo.js} +1 -1
  90. package/assets/devtools/chunk.DrLudrGo.js.br +0 -0
  91. package/assets/devtools/chunk.DrLudrGo.js.gz +0 -0
  92. package/assets/devtools/{chunk.D8mKET3e.js → chunk.K-Ms8Mzm.js} +1 -1
  93. package/assets/devtools/chunk.K-Ms8Mzm.js.br +1 -0
  94. package/assets/devtools/chunk.K-Ms8Mzm.js.gz +0 -0
  95. package/assets/devtools/chunk.KgyhVGwW.js +9 -0
  96. package/assets/devtools/chunk.KgyhVGwW.js.br +0 -0
  97. package/assets/devtools/chunk.KgyhVGwW.js.gz +0 -0
  98. package/assets/devtools/{chunk.01h1zGjv.js → chunk.U6B6OT4m.js} +1 -1
  99. package/assets/devtools/chunk.U6B6OT4m.js.br +0 -0
  100. package/assets/devtools/chunk.U6B6OT4m.js.gz +0 -0
  101. package/assets/devtools/chunk.V91GMRqU.js +1 -0
  102. package/assets/devtools/chunk.V91GMRqU.js.br +0 -0
  103. package/assets/devtools/chunk.V91GMRqU.js.gz +0 -0
  104. package/assets/devtools/{chunk.X37zJjnv.js → chunk.YsQsplrn.js} +1 -1
  105. package/assets/devtools/chunk.YsQsplrn.js.br +0 -0
  106. package/assets/devtools/chunk.YsQsplrn.js.gz +0 -0
  107. package/assets/devtools/{chunk.BD3_boSH.js → chunk.ax3VFVgz.js} +1 -1
  108. package/assets/devtools/chunk.ax3VFVgz.js.br +0 -0
  109. package/assets/devtools/chunk.ax3VFVgz.js.gz +0 -0
  110. package/assets/devtools/chunk.qLydHlIe.js +1 -0
  111. package/assets/devtools/chunk.qLydHlIe.js.br +0 -0
  112. package/assets/devtools/chunk.qLydHlIe.js.gz +0 -0
  113. package/assets/devtools/db.html +6 -19
  114. package/assets/devtools/db.html.br +0 -0
  115. package/assets/devtools/db.html.gz +0 -0
  116. package/assets/devtools/entry.DqiMGelS.js +79 -0
  117. package/assets/devtools/entry.DqiMGelS.js.br +0 -0
  118. package/assets/devtools/entry.DqiMGelS.js.gz +0 -0
  119. package/assets/devtools/env.html +6 -20
  120. package/assets/devtools/env.html.br +0 -0
  121. package/assets/devtools/env.html.gz +0 -0
  122. package/assets/devtools/graph.html +6 -22
  123. package/assets/devtools/graph.html.br +0 -0
  124. package/assets/devtools/graph.html.gz +0 -0
  125. package/assets/devtools/index.html +6 -16
  126. package/assets/devtools/index.html.br +0 -0
  127. package/assets/devtools/index.html.gz +0 -0
  128. package/assets/devtools/logs.html +6 -23
  129. package/assets/devtools/logs.html.br +0 -0
  130. package/assets/devtools/logs.html.gz +0 -0
  131. package/assets/devtools/queues.html +6 -15
  132. package/assets/devtools/queues.html.br +0 -0
  133. package/assets/devtools/queues.html.gz +0 -0
  134. package/assets/devtools/topics.html +6 -23
  135. package/assets/devtools/topics.html.br +0 -0
  136. package/assets/devtools/topics.html.gz +0 -0
  137. package/dist/index.d.ts +33 -23
  138. package/dist/index.js +22 -13
  139. package/dist/index.js.map +1 -1
  140. package/package.json +10 -11
  141. package/src/api/providers/DevToolsDatabaseProvider.ts +2 -2
  142. package/src/api/repositories/LogRepository.ts +4 -5
  143. package/src/index.ts +19 -5
  144. package/src/ui/AppRouter.tsx +1 -1
  145. package/src/ui/components/DevAtomsViewer.tsx +1 -1
  146. package/src/ui/components/DevCacheInspector.tsx +1 -1
  147. package/src/ui/components/DevEnvExplorer.tsx +1 -1
  148. package/src/ui/components/DevLogViewer.tsx +2 -2
  149. package/src/ui/components/DevTopicsViewer.tsx +1 -1
  150. package/src/ui/components/actions/DevActionsExplorer.tsx +1 -1
  151. package/src/ui/components/actions/TryItPanel.tsx +1 -1
  152. package/src/ui/components/db/DevDbStudio.tsx +1 -1
  153. package/src/ui/components/graph/DevDependencyGraph.tsx +1 -1
  154. package/assets/devtools/asset.CMFNRMve.css.br +0 -0
  155. package/assets/devtools/chunk.-1T4AUjH.js.br +0 -0
  156. package/assets/devtools/chunk.-1T4AUjH.js.gz +0 -0
  157. package/assets/devtools/chunk.01h1zGjv.js.br +0 -0
  158. package/assets/devtools/chunk.01h1zGjv.js.gz +0 -0
  159. package/assets/devtools/chunk.1JiUrdgo.js +0 -1
  160. package/assets/devtools/chunk.1JiUrdgo.js.br +0 -1
  161. package/assets/devtools/chunk.1JiUrdgo.js.gz +0 -0
  162. package/assets/devtools/chunk.42CgRmmy.js.br +0 -0
  163. package/assets/devtools/chunk.42CgRmmy.js.gz +0 -0
  164. package/assets/devtools/chunk.6zj3eUIy.js.br +0 -0
  165. package/assets/devtools/chunk.6zj3eUIy.js.gz +0 -0
  166. package/assets/devtools/chunk.B1BX4OlP.js.br +0 -0
  167. package/assets/devtools/chunk.B1BX4OlP.js.gz +0 -0
  168. package/assets/devtools/chunk.B6bX0XQI.js.br +0 -0
  169. package/assets/devtools/chunk.B6bX0XQI.js.gz +0 -0
  170. package/assets/devtools/chunk.BD3_boSH.js.br +0 -0
  171. package/assets/devtools/chunk.BD3_boSH.js.gz +0 -0
  172. package/assets/devtools/chunk.BZZjyIAY.js.br +0 -0
  173. package/assets/devtools/chunk.BZZjyIAY.js.gz +0 -0
  174. package/assets/devtools/chunk.B_arS3yh.js +0 -1
  175. package/assets/devtools/chunk.B_arS3yh.js.br +0 -0
  176. package/assets/devtools/chunk.B_arS3yh.js.gz +0 -0
  177. package/assets/devtools/chunk.CC4zyxCR.js +0 -1
  178. package/assets/devtools/chunk.CC4zyxCR.js.br +0 -0
  179. package/assets/devtools/chunk.CC4zyxCR.js.gz +0 -0
  180. package/assets/devtools/chunk.CQFdZ3hg.js.br +0 -0
  181. package/assets/devtools/chunk.CQFdZ3hg.js.gz +0 -0
  182. package/assets/devtools/chunk.CXR8SXil.js.br +0 -0
  183. package/assets/devtools/chunk.CXR8SXil.js.gz +0 -0
  184. package/assets/devtools/chunk.C_WwXcGr.js.br +0 -0
  185. package/assets/devtools/chunk.C_WwXcGr.js.gz +0 -0
  186. package/assets/devtools/chunk.Chph6jJx.js +0 -1
  187. package/assets/devtools/chunk.Chph6jJx.js.br +0 -0
  188. package/assets/devtools/chunk.Chph6jJx.js.gz +0 -0
  189. package/assets/devtools/chunk.D8mKET3e.js.br +0 -0
  190. package/assets/devtools/chunk.D8mKET3e.js.gz +0 -0
  191. package/assets/devtools/chunk.DP_hRYka.js +0 -1
  192. package/assets/devtools/chunk.DP_hRYka.js.br +0 -0
  193. package/assets/devtools/chunk.DP_hRYka.js.gz +0 -0
  194. package/assets/devtools/chunk.D_B99PWK.js.br +0 -0
  195. package/assets/devtools/chunk.D_B99PWK.js.gz +0 -0
  196. package/assets/devtools/chunk.Dwq9t2Dl.js +0 -1
  197. package/assets/devtools/chunk.Dwq9t2Dl.js.br +0 -0
  198. package/assets/devtools/chunk.Dwq9t2Dl.js.gz +0 -0
  199. package/assets/devtools/chunk.DyNVihb8.js +0 -9
  200. package/assets/devtools/chunk.DyNVihb8.js.br +0 -0
  201. package/assets/devtools/chunk.DyNVihb8.js.gz +0 -0
  202. package/assets/devtools/chunk.KNtbB1xL.js +0 -1
  203. package/assets/devtools/chunk.KNtbB1xL.js.br +0 -0
  204. package/assets/devtools/chunk.KNtbB1xL.js.gz +0 -0
  205. package/assets/devtools/chunk.MMyHzoxt.js.br +0 -0
  206. package/assets/devtools/chunk.MMyHzoxt.js.gz +0 -0
  207. package/assets/devtools/chunk.NIj8k4HU.js +0 -1
  208. package/assets/devtools/chunk.NIj8k4HU.js.br +0 -0
  209. package/assets/devtools/chunk.NIj8k4HU.js.gz +0 -0
  210. package/assets/devtools/chunk.UjSU-RcH.js.br +0 -0
  211. package/assets/devtools/chunk.UjSU-RcH.js.gz +0 -0
  212. package/assets/devtools/chunk.Vm7uQYEE.js.br +0 -0
  213. package/assets/devtools/chunk.Vm7uQYEE.js.gz +0 -0
  214. package/assets/devtools/chunk.WpBi-27p.js.br +0 -0
  215. package/assets/devtools/chunk.WpBi-27p.js.gz +0 -0
  216. package/assets/devtools/chunk.X37zJjnv.js.br +0 -0
  217. package/assets/devtools/chunk.X37zJjnv.js.gz +0 -0
  218. package/assets/devtools/chunk.Yc53VNO7.js +0 -1
  219. package/assets/devtools/chunk.Yc53VNO7.js.br +0 -0
  220. package/assets/devtools/chunk.Yc53VNO7.js.gz +0 -0
  221. package/assets/devtools/chunk.jP0GrcaU.js.br +0 -0
  222. package/assets/devtools/chunk.jP0GrcaU.js.gz +0 -0
  223. package/assets/devtools/chunk.ovzUqJjU.js +0 -1
  224. package/assets/devtools/chunk.ovzUqJjU.js.br +0 -0
  225. package/assets/devtools/chunk.ovzUqJjU.js.gz +0 -0
  226. package/assets/devtools/chunk.uK7gG_4K.js +0 -1
  227. package/assets/devtools/chunk.uK7gG_4K.js.br +0 -0
  228. package/assets/devtools/chunk.uK7gG_4K.js.gz +0 -0
  229. package/assets/devtools/chunk.xP6lcP0O.js +0 -2
  230. package/assets/devtools/chunk.xP6lcP0O.js.br +0 -0
  231. package/assets/devtools/chunk.xP6lcP0O.js.gz +0 -0
  232. package/assets/devtools/chunk.yhAz0qwe.js +0 -1
  233. package/assets/devtools/chunk.yhAz0qwe.js.br +0 -0
  234. package/assets/devtools/chunk.yhAz0qwe.js.gz +0 -0
  235. package/assets/devtools/entry.BdraBs_7.js +0 -79
  236. package/assets/devtools/entry.BdraBs_7.js.br +0 -0
  237. package/assets/devtools/entry.BdraBs_7.js.gz +0 -0
@@ -1 +0,0 @@
1
- import{r as m,f as E,b as A,q as se,t as re,j as i,B as L,w as ee,v as oe,c as Eo,aC as me,b8 as jo,b9 as Ue,ah as ge,bc as Po,s as fe,$ as te,aJ as Ke,e as Ce,ay as Ro,U as To,a0 as we,b7 as qe,ak as We,al as Ze,aH as $o,ad as Vo,d as Mo,ax as zo,a2 as Je,x as ye}from"./entry.BdraBs_7.js";import{I as Bo,a as Fo,b as Lo}from"./chunk.KNtbB1xL.js";import{P as he}from"./chunk.Dwq9t2Dl.js";function Go(e){const o=m.useRef(void 0);return m.useEffect(()=>{o.current=e},[e]),o.current}function be(e,o=document){const t=o.querySelector(e);if(t)return t;const s=o.querySelectorAll("*");for(let r=0;r<s.length;r+=1){const a=s[r];if(a.shadowRoot){const n=be(e,a.shadowRoot);if(n)return n}}return null}function U(e,o=document){const t=[],s=o.querySelectorAll(e);t.push(...Array.from(s));const r=o.querySelectorAll("*");for(let a=0;a<r.length;a+=1){const n=r[a];if(n.shadowRoot){const l=U(e,n.shadowRoot);t.push(...l)}}return t}function K(e){if(!e)return document;const o=e.getRootNode();return o instanceof ShadowRoot||o instanceof Document?o:document}function Qe(e){return typeof e=="string"?{value:e,label:e}:"value"in e&&!("label"in e)?{value:e.value,label:e.value,disabled:e.disabled}:typeof e=="number"?{value:e.toString(),label:e.toString()}:"group"in e?{group:e.group,items:e.items.map(o=>Qe(o))}:e}function Ho(e){return e?e.map(o=>Qe(o)):[]}function Xe(e){return e.reduce((o,t)=>"group"in t?{...o,...Xe(t.items)}:(o[t.value]=t,o),{})}var P={dropdown:"m_88b62a41",search:"m_985517d8",options:"m_b2821a6e",option:"m_92253aa5",empty:"m_2530cd1d",header:"m_858f94bd",footer:"m_82b967cb",group:"m_254f3e4f",groupLabel:"m_2bb2e9e5",chevron:"m_2943220b",optionsDropdownOption:"m_390b5f4",optionsDropdownCheckIcon:"m_8ee53fc2",optionsDropdownCheckPlaceholder:"m_a530ee0a"};const Ko={error:null},Uo=re((e,{size:o,color:t})=>({chevron:{"--combobox-chevron-size":oe(o,"combobox-chevron-size"),"--combobox-chevron-color":t?ee(t,e):void 0}})),ke=E((e,o)=>{const t=A("ComboboxChevron",Ko,e),{size:s,error:r,style:a,className:n,classNames:l,styles:c,unstyled:d,vars:p,mod:u,...b}=t,x=se({name:"ComboboxChevron",classes:P,props:t,style:a,className:n,classNames:l,styles:c,unstyled:d,vars:p,varsResolver:Uo,rootSelector:"chevron"});return i.jsx(L,{component:"svg",...b,...x("chevron"),size:s,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",mod:["combobox-chevron",{error:r},u],ref:o,children:i.jsx("path",{d:"M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})});ke.classes=P;ke.displayName="@mantine/core/ComboboxChevron";const[qo,M]=Eo("Combobox component was not found in tree"),Ye=m.forwardRef(({size:e,onMouseDown:o,onClick:t,onClear:s,...r},a)=>i.jsx(me.ClearButton,{ref:a,tabIndex:-1,"aria-hidden":!0,...r,onMouseDown:n=>{n.preventDefault(),o?.(n)},onClick:n=>{s(),t?.(n)}}));Ye.displayName="@mantine/core/ComboboxClearButton";const Se=E((e,o)=>{const{classNames:t,styles:s,className:r,style:a,hidden:n,...l}=A("ComboboxDropdown",null,e),c=M();return i.jsx(he.Dropdown,{...l,ref:o,role:"presentation","data-hidden":n||void 0,...c.getStyles("dropdown",{className:r,style:a,classNames:t,styles:s})})});Se.classes=P;Se.displayName="@mantine/core/ComboboxDropdown";const Wo={refProp:"ref"},eo=E((e,o)=>{const{children:t,refProp:s}=A("ComboboxDropdownTarget",Wo,e);if(M(),!jo(t))throw new Error("Combobox.DropdownTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");return i.jsx(he.Target,{ref:o,refProp:s,children:t})});eo.displayName="@mantine/core/ComboboxDropdownTarget";const Oe=E((e,o)=>{const{classNames:t,className:s,style:r,styles:a,vars:n,...l}=A("ComboboxEmpty",null,e),c=M();return i.jsx(L,{ref:o,...c.getStyles("empty",{className:s,classNames:t,styles:a,style:r}),...l})});Oe.classes=P;Oe.displayName="@mantine/core/ComboboxEmpty";function De({onKeyDown:e,withKeyboardNavigation:o,withAriaAttributes:t,withExpandedAttribute:s,targetType:r,autoComplete:a}){const n=M(),[l,c]=m.useState(null),d=u=>{if(e?.(u),!n.readOnly&&o){if(u.nativeEvent.isComposing)return;if(u.nativeEvent.code==="ArrowDown"&&(u.preventDefault(),n.store.dropdownOpened?c(n.store.selectNextOption()):(n.store.openDropdown("keyboard"),c(n.store.selectActiveOption()),n.store.updateSelectedOptionIndex("selected",{scrollIntoView:!0}))),u.nativeEvent.code==="ArrowUp"&&(u.preventDefault(),n.store.dropdownOpened?c(n.store.selectPreviousOption()):(n.store.openDropdown("keyboard"),c(n.store.selectActiveOption()),n.store.updateSelectedOptionIndex("selected",{scrollIntoView:!0}))),u.nativeEvent.code==="Enter"||u.nativeEvent.code==="NumpadEnter"){if(u.nativeEvent.keyCode===229)return;const b=n.store.getSelectedOptionIndex();n.store.dropdownOpened&&b!==-1?(u.preventDefault(),n.store.clickSelectedOption()):r==="button"&&(u.preventDefault(),n.store.openDropdown("keyboard"))}u.key==="Escape"&&n.store.closeDropdown("keyboard"),u.nativeEvent.code==="Space"&&r==="button"&&(u.preventDefault(),n.store.toggleDropdown("keyboard"))}};return{...t?{"aria-haspopup":"listbox","aria-expanded":s?!!(n.store.listId&&n.store.dropdownOpened):void 0,"aria-controls":n.store.dropdownOpened&&n.store.listId?n.store.listId:void 0,"aria-activedescendant":n.store.dropdownOpened&&l||void 0,autoComplete:a,"data-expanded":n.store.dropdownOpened||void 0,"data-mantine-stop-propagation":n.store.dropdownOpened||void 0}:{},onKeyDown:d}}const Zo={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},oo=E((e,o)=>{const{children:t,refProp:s,withKeyboardNavigation:r,withAriaAttributes:a,withExpandedAttribute:n,targetType:l,autoComplete:c,...d}=A("ComboboxEventsTarget",Zo,e),p=Ue(t);if(!p)throw new Error("Combobox.EventsTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const u=M(),b=De({targetType:l,withAriaAttributes:a,withKeyboardNavigation:r,withExpandedAttribute:n,onKeyDown:p.props.onKeyDown,autoComplete:c});return m.cloneElement(p,{...b,...d,[s]:ge(o,u.store.targetRef,Po(p))})});oo.displayName="@mantine/core/ComboboxEventsTarget";const _e=E((e,o)=>{const{classNames:t,className:s,style:r,styles:a,vars:n,...l}=A("ComboboxFooter",null,e),c=M();return i.jsx(L,{ref:o,...c.getStyles("footer",{className:s,classNames:t,style:r,styles:a}),...l,onMouseDown:d=>{d.preventDefault()}})});_e.classes=P;_e.displayName="@mantine/core/ComboboxFooter";const Ne=E((e,o)=>{const{classNames:t,className:s,style:r,styles:a,vars:n,children:l,label:c,id:d,...p}=A("ComboboxGroup",null,e),u=M(),b=fe(d);return i.jsxs(L,{ref:o,role:"group","aria-labelledby":c?b:void 0,...u.getStyles("group",{className:s,classNames:t,style:r,styles:a}),...p,children:[c&&i.jsx("div",{id:b,...u.getStyles("groupLabel",{classNames:t,styles:a}),children:c}),l]})});Ne.classes=P;Ne.displayName="@mantine/core/ComboboxGroup";const Ie=E((e,o)=>{const{classNames:t,className:s,style:r,styles:a,vars:n,...l}=A("ComboboxHeader",null,e),c=M();return i.jsx(L,{ref:o,...c.getStyles("header",{className:s,classNames:t,style:r,styles:a}),...l,onMouseDown:d=>{d.preventDefault()}})});Ie.classes=P;Ie.displayName="@mantine/core/ComboboxHeader";function to({value:e,valuesDivider:o=",",...t}){return i.jsx("input",{type:"hidden",value:Array.isArray(e)?e.join(o):e||"",...t})}to.displayName="@mantine/core/ComboboxHiddenInput";const Ae=E((e,o)=>{const t=A("ComboboxOption",null,e),{classNames:s,className:r,style:a,styles:n,vars:l,onClick:c,id:d,active:p,onMouseDown:u,onMouseOver:b,disabled:x,selected:k,mod:g,...w}=t,S=M(),D=m.useId(),_=d||D;return i.jsx(L,{...S.getStyles("option",{className:r,classNames:s,styles:n,style:a}),...w,ref:o,id:_,mod:["combobox-option",{"combobox-active":p,"combobox-disabled":x,"combobox-selected":k},g],role:"option",onClick:h=>{x?h.preventDefault():(S.onOptionSubmit?.(t.value,t),c?.(h))},onMouseDown:h=>{h.preventDefault(),u?.(h)},onMouseOver:h=>{S.resetSelectionOnOptionHover&&S.store.resetSelectedOption(),b?.(h)}})});Ae.classes=P;Ae.displayName="@mantine/core/ComboboxOption";const Ee=E((e,o)=>{const t=A("ComboboxOptions",null,e),{classNames:s,className:r,style:a,styles:n,id:l,onMouseDown:c,labelledBy:d,...p}=t,u=M(),b=fe(l);return m.useEffect(()=>{u.store.setListId(b)},[b]),i.jsx(L,{ref:o,...u.getStyles("options",{className:r,style:a,classNames:s,styles:n}),...p,id:b,role:"listbox","aria-labelledby":d,onMouseDown:x=>{x.preventDefault(),c?.(x)}})});Ee.classes=P;Ee.displayName="@mantine/core/ComboboxOptions";const Jo={withAriaAttributes:!0,withKeyboardNavigation:!0},je=E((e,o)=>{const t=A("ComboboxSearch",Jo,e),{classNames:s,styles:r,unstyled:a,vars:n,withAriaAttributes:l,onKeyDown:c,withKeyboardNavigation:d,size:p,...u}=t,b=M(),x=b.getStyles("search"),k=De({targetType:"input",withAriaAttributes:l,withKeyboardNavigation:d,withExpandedAttribute:!1,onKeyDown:c,autoComplete:"off"});return i.jsx(me,{ref:ge(o,b.store.searchRef),classNames:[{input:x.className},s],styles:[{input:x.style},r],size:p||b.size,...k,...u,__staticSelector:"Combobox"})});je.classes=P;je.displayName="@mantine/core/ComboboxSearch";const Qo={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},no=E((e,o)=>{const{children:t,refProp:s,withKeyboardNavigation:r,withAriaAttributes:a,withExpandedAttribute:n,targetType:l,autoComplete:c,...d}=A("ComboboxTarget",Qo,e),p=Ue(t);if(!p)throw new Error("Combobox.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const u=M(),b=De({targetType:l,withAriaAttributes:a,withKeyboardNavigation:r,withExpandedAttribute:n,onKeyDown:p.props.onKeyDown,autoComplete:c}),x=m.cloneElement(p,{...b,...d});return i.jsx(he.Target,{ref:ge(o,u.store.targetRef),children:x})});no.displayName="@mantine/core/ComboboxTarget";function Xo(e,o,t){for(let s=e-1;s>=0;s-=1)if(!o[s].hasAttribute("data-combobox-disabled"))return s;if(t){for(let s=o.length-1;s>-1;s-=1)if(!o[s].hasAttribute("data-combobox-disabled"))return s}return e}function Yo(e,o,t){for(let s=e+1;s<o.length;s+=1)if(!o[s].hasAttribute("data-combobox-disabled"))return s;if(t){for(let s=0;s<o.length;s+=1)if(!o[s].hasAttribute("data-combobox-disabled"))return s}return e}function et(e){for(let o=0;o<e.length;o+=1)if(!e[o].hasAttribute("data-combobox-disabled"))return o;return-1}function so({defaultOpened:e,opened:o,onOpenedChange:t,onDropdownClose:s,onDropdownOpen:r,loop:a=!0,scrollBehavior:n="instant"}={}){const[l,c]=te({value:o,defaultValue:e,finalValue:!1,onChange:t}),d=m.useRef(null),p=m.useRef(-1),u=m.useRef(null),b=m.useRef(null),x=m.useRef(-1),k=m.useRef(-1),g=m.useRef(-1),w=m.useCallback((f="unknown")=>{l||(c(!0),r?.(f))},[c,r,l]),S=m.useCallback((f="unknown")=>{l&&(c(!1),s?.(f))},[c,s,l]),D=m.useCallback((f="unknown")=>{l?S(f):w(f)},[S,w,l]),_=m.useCallback(()=>{const f=K(b.current),O=be(`#${d.current} [data-combobox-selected]`,f);O?.removeAttribute("data-combobox-selected"),O?.removeAttribute("aria-selected")},[]),h=m.useCallback(f=>{const O=K(b.current),B=be(`#${d.current}`,O),N=B?U("[data-combobox-option]",B):null;if(!N)return null;const I=f>=N.length?0:f<0?N.length-1:f;return p.current=I,N?.[I]&&!N[I].hasAttribute("data-combobox-disabled")?(_(),N[I].setAttribute("data-combobox-selected","true"),N[I].setAttribute("aria-selected","true"),N[I].scrollIntoView({block:"nearest",behavior:n}),N[I].id):null},[n,_]),C=m.useCallback(()=>{const f=K(b.current),O=be(`#${d.current} [data-combobox-active]`,f);if(O){const N=U(`#${d.current} [data-combobox-option]`,f).findIndex(I=>I===O);return h(N)}return h(0)},[h]),j=m.useCallback(()=>{const f=K(b.current),O=U(`#${d.current} [data-combobox-option]`,f);return h(Yo(p.current,O,a))},[h,a]),R=m.useCallback(()=>{const f=K(b.current),O=U(`#${d.current} [data-combobox-option]`,f);return h(Xo(p.current,O,a))},[h,a]),ce=m.useCallback(()=>{const f=K(b.current),O=U(`#${d.current} [data-combobox-option]`,f);return h(et(O))},[h]),J=m.useCallback((f="selected",O)=>{g.current=window.setTimeout(()=>{const B=K(b.current),N=U(`#${d.current} [data-combobox-option]`,B),I=N.findIndex(Y=>Y.hasAttribute(`data-combobox-${f}`));p.current=I,O?.scrollIntoView&&N[I]?.scrollIntoView({block:"nearest",behavior:n})},0)},[]),le=m.useCallback(()=>{p.current=-1,_()},[_]),q=m.useCallback(()=>{const f=K(b.current);U(`#${d.current} [data-combobox-option]`,f)?.[p.current]?.click()},[]),z=m.useCallback(f=>{d.current=f},[]),Q=m.useCallback(()=>{x.current=window.setTimeout(()=>u.current?.focus(),0)},[]),H=m.useCallback(()=>{k.current=window.setTimeout(()=>b.current?.focus(),0)},[]),X=m.useCallback(()=>p.current,[]);return m.useEffect(()=>()=>{window.clearTimeout(x.current),window.clearTimeout(k.current),window.clearTimeout(g.current)},[]),{dropdownOpened:l,openDropdown:w,closeDropdown:S,toggleDropdown:D,selectedOptionIndex:p.current,getSelectedOptionIndex:X,selectOption:h,selectFirstOption:ce,selectActiveOption:C,selectNextOption:j,selectPreviousOption:R,resetSelectedOption:le,updateSelectedOptionIndex:J,listId:d.current,setListId:z,clickSelectedOption:q,searchRef:u,focusSearchInput:Q,targetRef:b,focusTarget:H}}const ot={keepMounted:!0,withinPortal:!0,resetSelectionOnOptionHover:!1,width:"target",transitionProps:{transition:"fade",duration:0},size:"sm"},tt=re((e,{size:o,dropdownPadding:t})=>({options:{"--combobox-option-fz":Ke(o),"--combobox-option-padding":oe(o,"combobox-option-padding")},dropdown:{"--combobox-padding":t===void 0?void 0:Ce(t),"--combobox-option-fz":Ke(o),"--combobox-option-padding":oe(o,"combobox-option-padding")}}));function v(e){const o=A("Combobox",ot,e),{classNames:t,styles:s,unstyled:r,children:a,store:n,vars:l,onOptionSubmit:c,onClose:d,size:p,dropdownPadding:u,resetSelectionOnOptionHover:b,__staticSelector:x,readOnly:k,attributes:g,...w}=o,S=so(),D=n||S,_=se({name:x||"Combobox",classes:P,props:o,classNames:t,styles:s,unstyled:r,attributes:g,vars:l,varsResolver:tt}),h=()=>{d?.(),D.closeDropdown()};return i.jsx(qo,{value:{getStyles:_,store:D,onOptionSubmit:c,size:p,resetSelectionOnOptionHover:b,readOnly:k},children:i.jsx(he,{opened:D.dropdownOpened,preventPositionChangeWhenVisible:!1,...w,onChange:C=>!C&&h(),withRoles:!1,unstyled:r,children:a})})}const nt=e=>e;v.extend=nt;v.classes=P;v.displayName="@mantine/core/Combobox";v.Target=no;v.Dropdown=Se;v.Options=Ee;v.Option=Ae;v.Search=je;v.Empty=Oe;v.Chevron=ke;v.Footer=_e;v.Header=Ie;v.EventsTarget=oo;v.DropdownTarget=eo;v.Group=Ne;v.ClearButton=Ye;v.HiddenInput=to;var ro={root:"m_bf2d988c",inner:"m_26062bec",input:"m_26063560",icon:"m_bf295423","input--outline":"m_215c4542"};const ao=m.createContext(null),st=ao.Provider,co=()=>m.useContext(ao),[rt,at]=Ro();var lo={card:"m_26775b0a"};const ct={withBorder:!0},lt=re((e,{radius:o})=>({card:{"--card-radius":we(o)}})),Pe=E((e,o)=>{const t=A("CheckboxCard",ct,e),{classNames:s,className:r,style:a,styles:n,unstyled:l,vars:c,checked:d,mod:p,withBorder:u,value:b,onClick:x,defaultChecked:k,onChange:g,attributes:w,...S}=t,D=se({name:"CheckboxCard",classes:lo,props:t,className:r,style:a,classNames:s,styles:n,unstyled:l,attributes:w,vars:c,varsResolver:lt,rootSelector:"card"}),_=co(),h=typeof d=="boolean"?d:_?_.value.includes(b||""):void 0,[C,j]=te({value:h,defaultValue:k,finalValue:!1,onChange:g});return i.jsx(rt,{value:{checked:C},children:i.jsx(To,{ref:o,mod:[{"with-border":u,checked:C},p],...D("card"),...S,role:"checkbox","aria-checked":C,onClick:R=>{x?.(R),_?.onChange(b||""),j(!C)}})})});Pe.displayName="@mantine/core/CheckboxCard";Pe.classes=lo;const Re=E((e,o)=>{const{value:t,defaultValue:s,onChange:r,size:a,wrapperProps:n,children:l,readOnly:c,disabled:d,...p}=A("CheckboxGroup",null,e),[u,b]=te({value:t,defaultValue:s,finalValue:[],onChange:r}),x=k=>{const g=typeof k=="string"?k:k.currentTarget.value;!c&&b(u.includes(g)?u.filter(w=>w!==g):[...u,g])};return i.jsx(st,{value:{value:u,onChange:x,size:a,disabled:d},children:i.jsx(me.Wrapper,{size:a,ref:o,...n,...p,labelElement:"div",__staticSelector:"CheckboxGroup",children:i.jsx(Bo,{role:"group",children:l})})})});Re.classes=me.Wrapper.classes;Re.displayName="@mantine/core/CheckboxGroup";function io({size:e,style:o,...t}){const s=e!==void 0?{width:Ce(e),height:Ce(e),...o}:o;return i.jsx("svg",{viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:s,"aria-hidden":!0,...t,children:i.jsx("path",{d:"M4 4.586L1.707 2.293A1 1 0 1 0 .293 3.707l3 3a.997.997 0 0 0 1.414 0l5-5A1 1 0 1 0 8.293.293L4 4.586z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function uo({indeterminate:e,...o}){return e?i.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 32 6","aria-hidden":!0,...o,children:i.jsx("rect",{width:"32",height:"6",fill:"currentColor",rx:"3"})}):i.jsx(io,{...o})}var po={indicator:"m_5e5256ee",icon:"m_1b1c543a","indicator--outline":"m_76e20374"};const it={icon:uo,variant:"filled"},dt=re((e,{radius:o,color:t,size:s,iconColor:r,variant:a,autoContrast:n})=>{const l=qe({color:t||e.primaryColor,theme:e}),c=l.isThemeColor&&l.shade===void 0?`var(--mantine-color-${l.color}-outline)`:l.color;return{indicator:{"--checkbox-size":oe(s,"checkbox-size"),"--checkbox-radius":o===void 0?void 0:we(o),"--checkbox-color":a==="outline"?c:ee(t,e),"--checkbox-icon-color":r?ee(r,e):Ze(n,e)?We({color:t,theme:e,autoContrast:n}):void 0}}}),Te=E((e,o)=>{const t=A("CheckboxIndicator",it,e),{classNames:s,className:r,style:a,styles:n,unstyled:l,vars:c,icon:d,indeterminate:p,radius:u,color:b,iconColor:x,autoContrast:k,checked:g,mod:w,variant:S,disabled:D,attributes:_,...h}=t,C=se({name:"CheckboxIndicator",classes:po,props:t,className:r,style:a,classNames:s,styles:n,unstyled:l,attributes:_,vars:c,varsResolver:dt,rootSelector:"indicator"}),j=at(),R=typeof g=="boolean"||typeof p=="boolean"?g||p:j?.checked||!1;return i.jsx(L,{ref:o,...C("indicator",{variant:S}),variant:S,mod:[{checked:R,disabled:D},w],...h,children:i.jsx(d,{indeterminate:p,...C("icon")})})});Te.displayName="@mantine/core/CheckboxIndicator";Te.classes=po;const ut={labelPosition:"right",icon:uo,variant:"filled"},pt=re((e,{radius:o,color:t,size:s,iconColor:r,variant:a,autoContrast:n})=>{const l=qe({color:t||e.primaryColor,theme:e}),c=l.isThemeColor&&l.shade===void 0?`var(--mantine-color-${l.color}-outline)`:l.color;return{root:{"--checkbox-size":oe(s,"checkbox-size"),"--checkbox-radius":o===void 0?void 0:we(o),"--checkbox-color":a==="outline"?c:ee(t,e),"--checkbox-icon-color":r?ee(r,e):Ze(n,e)?We({color:t,theme:e,autoContrast:n}):void 0}}}),ae=E((e,o)=>{const t=A("Checkbox",ut,e),{classNames:s,className:r,style:a,styles:n,unstyled:l,vars:c,color:d,label:p,id:u,size:b,radius:x,wrapperProps:k,checked:g,labelPosition:w,description:S,error:D,disabled:_,variant:h,indeterminate:C,icon:j,rootRef:R,iconColor:ce,onChange:J,autoContrast:le,mod:q,attributes:z,...Q}=t,H=co(),X=b||H?.size,f=se({name:"Checkbox",props:t,classes:ro,className:r,style:a,classNames:s,styles:n,unstyled:l,attributes:z,vars:c,varsResolver:pt}),{styleProps:O,rest:B}=$o(Q),N=fe(u),I={checked:H?.value.includes(B.value)??g,onChange:ie=>{H?.onChange(ie),J?.(ie)},disabled:H?.disabled??_},Y=m.useRef(null),F=o||Y;return m.useEffect(()=>{F&&"current"in F&&F.current&&(F.current.indeterminate=C||!1,C?F.current.setAttribute("data-indeterminate","true"):F.current.removeAttribute("data-indeterminate"))},[C,F]),i.jsx(Fo,{...f("root"),__staticSelector:"Checkbox",__stylesApiProps:t,id:N,size:X,labelPosition:w,label:p,description:S,error:D,disabled:I.disabled,classNames:s,styles:n,unstyled:l,"data-checked":I.checked||g||void 0,variant:h,ref:R,mod:q,...O,...k,children:i.jsxs(L,{...f("inner"),mod:{"data-label-position":w},children:[i.jsx(L,{component:"input",id:N,ref:F,mod:{error:!!D},...f("input",{focusable:!0,variant:h}),...B,...I,type:"checkbox"}),i.jsx(j,{indeterminate:C,...f("icon")})]})})});ae.classes={...ro,...Lo};ae.displayName="@mantine/core/Checkbox";ae.Group=Re;ae.Indicator=Te;ae.Card=Pe;function ne(e){return"group"in e}function bo({options:e,search:o,limit:t}){const s=o.trim().toLowerCase(),r=[];for(let a=0;a<e.length;a+=1){const n=e[a];if(r.length===t)return r;ne(n)&&r.push({group:n.group,items:bo({options:n.items,search:o,limit:t-r.length})}),ne(n)||n.label.toLowerCase().includes(s)&&r.push(n)}return r}function bt(e){if(e.length===0)return!0;for(const o of e)if(!("group"in o)||o.items.length>0)return!1;return!0}function mo(e,o=new Set){if(Array.isArray(e))for(const t of e)if(ne(t))mo(t.items,o);else{if(typeof t.value>"u")throw new Error("[@mantine/core] Each option must have value property");if(typeof t.value!="string")throw new Error(`[@mantine/core] Option value must be a string, other data formats are not supported, got ${typeof t.value}`);if(o.has(t.value))throw new Error(`[@mantine/core] Duplicate options are not supported. Option with value "${t.value}" was provided more than once`);o.add(t.value)}}function mt(e,o){return Array.isArray(e)?e.includes(o):e===o}function fo({data:e,withCheckIcon:o,withAlignedLabels:t,value:s,checkIconPosition:r,unstyled:a,renderOption:n}){if(!ne(e)){const c=mt(s,e.value),d=o&&(c?i.jsx(io,{className:P.optionsDropdownCheckIcon}):t?i.jsx("div",{className:P.optionsDropdownCheckPlaceholder}):null),p=i.jsxs(i.Fragment,{children:[r==="left"&&d,i.jsx("span",{children:e.label}),r==="right"&&d]});return i.jsx(v.Option,{value:e.value,disabled:e.disabled,className:Mo({[P.optionsDropdownOption]:!a}),"data-reverse":r==="right"||void 0,"data-checked":c||void 0,"aria-selected":c,active:c,children:typeof n=="function"?n({option:e,checked:c}):p})}const l=e.items.map(c=>i.jsx(fo,{data:c,value:s,unstyled:a,withCheckIcon:o,withAlignedLabels:t,checkIconPosition:r,renderOption:n},c.value));return i.jsx(v.Group,{label:e.group,children:l})}function ft({data:e,hidden:o,hiddenWhenEmpty:t,filter:s,search:r,limit:a,maxDropdownHeight:n,withScrollArea:l=!0,filterOptions:c=!0,withCheckIcon:d=!1,withAlignedLabels:p=!1,value:u,checkIconPosition:b,nothingFoundMessage:x,unstyled:k,labelId:g,renderOption:w,scrollAreaProps:S,"aria-label":D}){mo(e);const h=typeof r=="string"?(s||bo)({options:e,search:c?r:"",limit:a??1/0}):e,C=bt(h),j=h.map(R=>i.jsx(fo,{data:R,withCheckIcon:d,withAlignedLabels:p,value:u,checkIconPosition:b,unstyled:k,renderOption:w},ne(R)?R.group:R.value));return i.jsx(v.Dropdown,{hidden:o||t&&C,"data-composed":!0,children:i.jsxs(v.Options,{labelledBy:g,"aria-label":D,children:[l?i.jsx(Vo.Autosize,{mah:n??220,type:"scroll",scrollbarSize:"var(--combobox-padding)",offsetScrollbars:"y",...S,children:j}):j,C&&x&&i.jsx(v.Empty,{children:x})]})})}const ht={withCheckIcon:!0,allowDeselect:!0,checkIconPosition:"left"},ho=E((e,o)=>{const t=A("Select",ht,e),{classNames:s,styles:r,unstyled:a,vars:n,dropdownOpened:l,defaultDropdownOpened:c,onDropdownClose:d,onDropdownOpen:p,onFocus:u,onBlur:b,onClick:x,onChange:k,data:g,value:w,defaultValue:S,selectFirstOptionOnChange:D,onOptionSubmit:_,comboboxProps:h,readOnly:C,disabled:j,filter:R,limit:ce,withScrollArea:J,maxDropdownHeight:le,size:q,searchable:z,rightSection:Q,checkIconPosition:H,withCheckIcon:X,withAlignedLabels:f,nothingFoundMessage:O,name:B,form:N,searchValue:I,defaultSearchValue:Y,onSearchChange:F,allowDeselect:ie,error:$e,rightSectionPointerEvents:xo,id:vo,clearable:Co,clearButtonProps:go,hiddenInputProps:wo,renderOption:yo,onClear:ko,autoComplete:So,scrollAreaProps:Oo,__defaultRightSection:gt,__clearSection:wt,__clearable:yt,chevronColor:Do,autoSelectOnBlur:Ve,attributes:Me,...de}=t,xe=m.useMemo(()=>Ho(g),[g]),ue=m.useRef({}),$=m.useMemo(()=>Xe(xe),[xe]),ze=fe(vo),[y,Be,Fe]=te({value:w,defaultValue:S,finalValue:null,onChange:k}),G=typeof y=="string"?y in $?$[y]:ue.current[y]:void 0,Le=Go(G),[pe,_o,No]=te({value:I,defaultValue:Y,finalValue:G?G.label:"",onChange:F}),V=so({opened:l,defaultOpened:c,onDropdownOpen:()=>{p?.(),V.updateSelectedOptionIndex("active",{scrollIntoView:!0})},onDropdownClose:()=>{d?.(),setTimeout(V.resetSelectedOption,0)}}),W=T=>{_o(T),V.resetSelectedOption()},{resolvedClassNames:Ge,resolvedStyles:He}=zo({props:t,styles:r,classNames:s});m.useEffect(()=>{D&&V.selectFirstOption()},[D,pe]),m.useEffect(()=>{w===null&&W(""),typeof w=="string"&&G&&(Le?.value!==G.value||Le?.label!==G.label)&&W(G.label)},[w,G]),m.useEffect(()=>{!Fe&&!No&&W(typeof y=="string"?y in $?$[y]?.label:ue.current[y]?.label||"":"")},[$,y]),m.useEffect(()=>{y&&y in $&&(ue.current[y]=$[y])},[$,y]);const Io=i.jsx(v.ClearButton,{...go,onClear:()=>{Be(null,null),W(""),ko?.()}}),Ao=Co&&!!y&&!j&&!C;return i.jsxs(i.Fragment,{children:[i.jsxs(v,{store:V,__staticSelector:"Select",classNames:Ge,styles:He,unstyled:a,readOnly:C,size:q,attributes:Me,keepMounted:Ve,onOptionSubmit:T=>{_?.(T);const Z=ie&&$[T].value===y?null:$[T],ve=Z?Z.value:null;ve!==y&&Be(ve,Z),!Fe&&W(typeof ve=="string"&&Z?.label||""),V.closeDropdown()},...h,children:[i.jsx(v.Target,{targetType:z?"input":"button",autoComplete:So,children:i.jsx(Je,{id:ze,ref:o,__defaultRightSection:i.jsx(v.Chevron,{size:q,error:$e,unstyled:a,color:Do}),__clearSection:Io,__clearable:Ao,rightSection:Q,rightSectionPointerEvents:xo||"none",...de,size:q,__staticSelector:"Select",disabled:j,readOnly:C||!z,value:pe,onChange:T=>{W(T.currentTarget.value),V.openDropdown(),D&&V.selectFirstOption()},onFocus:T=>{z&&V.openDropdown(),u?.(T)},onBlur:T=>{Ve&&V.clickSelectedOption(),z&&V.closeDropdown();const Z=typeof y=="string"&&(y in $?$[y]:ue.current[y]);W(Z&&Z.label||""),b?.(T)},onClick:T=>{z?V.openDropdown():V.toggleDropdown(),x?.(T)},classNames:Ge,styles:He,unstyled:a,pointer:!z,error:$e,attributes:Me})}),i.jsx(ft,{data:xe,hidden:C||j,filter:R,search:pe,limit:ce,hiddenWhenEmpty:!O,withScrollArea:J,maxDropdownHeight:le,filterOptions:!!z&&G?.label!==pe,value:y,checkIconPosition:H,withCheckIcon:X,withAlignedLabels:f,nothingFoundMessage:O,unstyled:a,labelId:de.label?`${ze}-label`:void 0,"aria-label":de.label?void 0:de["aria-label"],renderOption:yo,scrollAreaProps:Oo})]}),i.jsx(v.HiddenInput,{value:y,name:B,form:N,disabled:j,...wo})]})});ho.classes={...Je.classes,...v.classes};ho.displayName="@mantine/core/Select";const xt=[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M18 13l-6 6",key:"svg-1"}],["path",{d:"M6 13l6 6",key:"svg-2"}]],Dt=ye("outline","arrow-down","ArrowDown",xt);const vt=[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M18 11l-6 -6",key:"svg-1"}],["path",{d:"M6 11l6 -6",key:"svg-2"}]],_t=ye("outline","arrow-up","ArrowUp",vt);const Ct=[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M5 12l14 0",key:"svg-1"}]],Nt=ye("outline","plus","Plus",Ct);export{ae as C,Dt as I,ft as O,ho as S,_t as a,Nt as b,Xe as c,v as d,io as e,Ho as g,ne as i,so as u};
@@ -1 +0,0 @@
1
- import{u as Ae,r as m,M as Ce,a as Ie,c as ze,f as w,b as x,j as a,B as j,d as D,R as W,e as f,k as N,g as Se,h as re,i as Pe,l as Be,I as Re,p as _e,m as Te,n as Ve,o as Ee,q as O,s as Fe,t as q,U as Le,v as le,w as He,x as A,y as E,F as u,z as $e,A as ye,T as K,C as F,D as S,E as ie,G as De,H as We,J as V,N as Oe,K as qe,L as Ke,O as Xe,P as Qe,Q as Ye,S as Ge,V as Ue,W as Je,X as Ze,Y as Me}from"./entry.BdraBs_7.js";import{g as ce,a as oe,A as C,u as et}from"./chunk.B_arS3yh.js";import{n as tt}from"./chunk.BjFrJKj1.js";import{S as st}from"./chunk.uK7gG_4K.js";import{D as rt}from"./chunk.Dwq9t2Dl.js";import"./chunk.Vm7uQYEE.js";import"./chunk.BlqFPyLh.js";import"./chunk.B6bX0XQI.js";import"./chunk.uyVen0u2.js";import"./chunk.CQFdZ3hg.js";function pe(e,t){return Ae("(prefers-color-scheme: dark)",e==="dark",t)?"dark":"light"}function ae(e){const t=document.createElement("style");return t.setAttribute("data-mantine-styles","inline"),t.innerHTML="*, *::before, *::after {transition: none !important;}",t.setAttribute("data-mantine-disable-transition","true"),e&&t.setAttribute("nonce",e),document.head.appendChild(t),()=>document.querySelectorAll("[data-mantine-disable-transition]").forEach(r=>r.remove())}function he({keepTransitions:e}={}){const t=m.useRef(tt),o=m.useRef(-1),r=m.useContext(Ce),c=Ie(),p=m.useRef(c?.());if(!r)throw new Error("[@mantine/core] MantineProvider was not found in tree");const n=b=>{r.setColorScheme(b),t.current=e?()=>{}:ae(p.current),window.clearTimeout(o.current),o.current=window.setTimeout(()=>{t.current?.()},10)},l=()=>{r.clearColorScheme(),t.current=e?()=>{}:ae(p.current),window.clearTimeout(o.current),o.current=window.setTimeout(()=>{t.current?.()},10)},i=pe("light",{getInitialValueInEffect:!1}),s=r.colorScheme==="auto"?i:r.colorScheme,h=m.useCallback(()=>n(s==="light"?"dark":"light"),[n,s]);return m.useEffect(()=>()=>{t.current?.(),window.clearTimeout(o.current)},[]),{colorScheme:r.colorScheme,setColorScheme:n,clearColorScheme:l,toggleColorScheme:h}}function ot(e,t={getInitialValueInEffect:!0}){const o=pe(e,t),{colorScheme:r}=he();return r==="auto"?o:r}const[at,I]=ze("AppShell was not found in tree");var k={root:"m_89ab340",navbar:"m_45252eee",aside:"m_9cdde9a",header:"m_3b16f56b",main:"m_8983817",footer:"m_3840c879",section:"m_6dcfc7c7"};const X=w((e,t)=>{const{classNames:o,className:r,style:c,styles:p,unstyled:n,vars:l,withBorder:i,zIndex:s,mod:h,...b}=x("AppShellAside",null,e),d=I();return d.disabled?null:a.jsx(j,{component:"aside",ref:t,mod:[{"with-border":i??d.withBorder},h],...d.getStyles("aside",{className:D({[W.classNames.zeroRight]:d.offsetScrollbars},r),classNames:o,styles:p,style:c}),...b,__vars:{"--app-shell-aside-z-index":`calc(${s??d.zIndex} + 1)`}})});X.classes=k;X.displayName="@mantine/core/AppShellAside";const Q=w((e,t)=>{const{classNames:o,className:r,style:c,styles:p,unstyled:n,vars:l,withBorder:i,zIndex:s,mod:h,...b}=x("AppShellFooter",null,e),d=I();return d.disabled?null:a.jsx(j,{component:"footer",ref:t,mod:[{"with-border":i??d.withBorder},h],...d.getStyles("footer",{className:D({[W.classNames.zeroRight]:d.offsetScrollbars},r),classNames:o,styles:p,style:c}),...b,__vars:{"--app-shell-footer-z-index":(s??d.zIndex)?.toString()}})});Q.classes=k;Q.displayName="@mantine/core/AppShellFooter";const Y=w((e,t)=>{const{classNames:o,className:r,style:c,styles:p,unstyled:n,vars:l,withBorder:i,zIndex:s,mod:h,...b}=x("AppShellHeader",null,e),d=I();return d.disabled?null:a.jsx(j,{component:"header",ref:t,mod:[{"with-border":i??d.withBorder},h],...d.getStyles("header",{className:D({[W.classNames.zeroRight]:d.offsetScrollbars},r),classNames:o,styles:p,style:c}),...b,__vars:{"--app-shell-header-z-index":(s??d.zIndex)?.toString()}})});Y.classes=k;Y.displayName="@mantine/core/AppShellHeader";const G=w((e,t)=>{const{classNames:o,className:r,style:c,styles:p,vars:n,...l}=x("AppShellMain",null,e),i=I();return a.jsx(j,{component:"main",ref:t,...i.getStyles("main",{className:r,style:c,classNames:o,styles:p}),...l})});G.classes=k;G.displayName="@mantine/core/AppShellMain";function P(e){return typeof e=="object"?e.base:e}function B(e){const t=typeof e=="object"&&e!==null&&typeof e.base<"u"&&Object.keys(e).length===1;return typeof e=="number"||typeof e=="string"||t}function R(e){return!(typeof e!="object"||e===null||Object.keys(e).length===1&&"base"in e)}function nt({baseStyles:e,minMediaStyles:t,maxMediaStyles:o,aside:r,theme:c,mode:p}){const n=r?.width,l="translateX(var(--app-shell-aside-width))",i="translateX(calc(var(--app-shell-aside-width) * -1))";if(r?.breakpoint&&!r?.collapsed?.mobile&&(o[r?.breakpoint]=o[r?.breakpoint]||{},p==="fixed"?(o[r?.breakpoint]["--app-shell-aside-width"]="100%",o[r?.breakpoint]["--app-shell-aside-offset"]="0px"):(o[r?.breakpoint]["--app-shell-aside-width"]="0px",o[r?.breakpoint]["--app-shell-aside-offset"]="0px")),B(n)){const s=f(P(n));e["--app-shell-aside-width"]=s,e["--app-shell-aside-offset"]=s}if(R(n)&&(typeof n.base<"u"&&(e["--app-shell-aside-width"]=f(n.base),e["--app-shell-aside-offset"]=f(n.base)),N(n).forEach(s=>{s!=="base"&&(t[s]=t[s]||{},t[s]["--app-shell-aside-width"]=f(n[s]),t[s]["--app-shell-aside-offset"]=f(n[s]))})),r?.breakpoint&&p==="static"&&(t[r.breakpoint]=t[r.breakpoint]||{},t[r.breakpoint]["--app-shell-aside-position"]="sticky",t[r.breakpoint]["--app-shell-aside-grid-row"]="2",t[r.breakpoint]["--app-shell-aside-grid-column"]="3",t[r.breakpoint]["--app-shell-main-column-end"]="3"),r?.collapsed?.desktop){const s=r.breakpoint;t[s]=t[s]||{},t[s]["--app-shell-aside-transform"]=l,t[s]["--app-shell-aside-transform-rtl"]=i,p==="fixed"?t[s]["--app-shell-aside-offset"]="0px !important":(t[s]["--app-shell-aside-width"]="0px",t[s]["--app-shell-aside-display"]="none",t[s]["--app-shell-main-column-end"]="-1"),t[s]["--app-shell-aside-scroll-locked-visibility"]="hidden"}if(r?.collapsed?.mobile){const s=ce(r.breakpoint,c.breakpoints)-.1;o[s]=o[s]||{},p==="fixed"?(o[s]["--app-shell-aside-width"]="100%",o[s]["--app-shell-aside-offset"]="0px"):o[s]["--app-shell-aside-width"]="0px",o[s]["--app-shell-aside-transform"]=l,o[s]["--app-shell-aside-transform-rtl"]=i,o[s]["--app-shell-aside-scroll-locked-visibility"]="hidden"}}function lt({baseStyles:e,minMediaStyles:t,footer:o,mode:r}){const c=o?.height,p="translateY(var(--app-shell-footer-height))",n=r==="static"?!0:o?.offset??!0;if(r==="static"&&o&&(e["--app-shell-footer-position"]="sticky",e["--app-shell-footer-grid-column"]="1 / -1",e["--app-shell-footer-grid-row"]="3"),B(c)){const l=f(P(c));e["--app-shell-footer-height"]=l,n&&(e["--app-shell-footer-offset"]=l)}R(c)&&(typeof c.base<"u"&&(e["--app-shell-footer-height"]=f(c.base),n&&(e["--app-shell-footer-offset"]=f(c.base))),N(c).forEach(l=>{l!=="base"&&(t[l]=t[l]||{},t[l]["--app-shell-footer-height"]=f(c[l]),n&&(t[l]["--app-shell-footer-offset"]=f(c[l])))})),o?.collapsed&&(e["--app-shell-footer-transform"]=p,r==="fixed"&&(e["--app-shell-footer-offset"]="0px !important"))}function it({baseStyles:e,minMediaStyles:t,header:o,mode:r}){const c=o?.height,p="translateY(calc(var(--app-shell-header-height) * -1))",n=r==="static"?!0:o?.offset??!0;if(r==="static"&&o&&(e["--app-shell-header-position"]="sticky",e["--app-shell-header-grid-column"]="1 / -1",e["--app-shell-header-grid-row"]="1"),B(c)){const l=f(P(c));e["--app-shell-header-height"]=l,n&&(e["--app-shell-header-offset"]=l)}R(c)&&(typeof c.base<"u"&&(e["--app-shell-header-height"]=f(c.base),n&&(e["--app-shell-header-offset"]=f(c.base))),N(c).forEach(l=>{l!=="base"&&(t[l]=t[l]||{},t[l]["--app-shell-header-height"]=f(c[l]),n&&(t[l]["--app-shell-header-offset"]=f(c[l])))})),o?.collapsed&&(e["--app-shell-header-transform"]=p,r==="fixed"&&(e["--app-shell-header-offset"]="0px !important"))}function ct({baseStyles:e,minMediaStyles:t,maxMediaStyles:o,navbar:r,theme:c,mode:p}){const n=r?.width,l="translateX(calc(var(--app-shell-navbar-width) * -1))",i="translateX(var(--app-shell-navbar-width))";if(r?.breakpoint&&!r?.collapsed?.mobile&&(o[r?.breakpoint]=o[r?.breakpoint]||{},o[r?.breakpoint]["--app-shell-navbar-offset"]="0px",o[r?.breakpoint]["--app-shell-navbar-width"]="100%",p==="static"&&(o[r?.breakpoint]["--app-shell-navbar-grid-width"]="0px")),B(n)){const s=f(P(n));e["--app-shell-navbar-width"]=s,e["--app-shell-navbar-offset"]=s,p==="static"&&(e["--app-shell-navbar-grid-width"]=s)}if(R(n)&&(typeof n.base<"u"&&(e["--app-shell-navbar-width"]=f(n.base),e["--app-shell-navbar-offset"]=f(n.base),p==="static"&&(e["--app-shell-navbar-grid-width"]=f(n.base))),N(n).forEach(s=>{s!=="base"&&(t[s]=t[s]||{},t[s]["--app-shell-navbar-width"]=f(n[s]),t[s]["--app-shell-navbar-offset"]=f(n[s]),p==="static"&&(t[s]["--app-shell-navbar-grid-width"]=f(n[s])))})),r?.breakpoint&&p==="static"&&(t[r.breakpoint]=t[r.breakpoint]||{},t[r.breakpoint]["--app-shell-navbar-position"]="sticky",t[r.breakpoint]["--app-shell-navbar-grid-row"]="2",t[r.breakpoint]["--app-shell-navbar-grid-column"]="1",t[r.breakpoint]["--app-shell-main-column-start"]="2"),r?.collapsed?.desktop){const s=r.breakpoint;t[s]=t[s]||{},t[s]["--app-shell-navbar-transform"]=l,t[s]["--app-shell-navbar-transform-rtl"]=i,p==="fixed"?t[s]["--app-shell-navbar-offset"]="0px !important":(t[s]["--app-shell-navbar-width"]="0px",t[s]["--app-shell-navbar-display"]="none",t[s]["--app-shell-main-column-start"]="1")}if(r?.collapsed?.mobile){const s=ce(r.breakpoint,c.breakpoints)-.1;o[s]=o[s]||{},o[s]["--app-shell-navbar-width"]="100%",o[s]["--app-shell-navbar-offset"]="0px",p==="static"&&(o[s]["--app-shell-navbar-grid-width"]="0px"),o[s]["--app-shell-navbar-transform"]=l,o[s]["--app-shell-navbar-transform-rtl"]=i}}function $(e){return Number(e)===0?"0px":Se(e)}function pt({padding:e,baseStyles:t,minMediaStyles:o}){B(e)&&(t["--app-shell-padding"]=$(P(e))),R(e)&&(e.base&&(t["--app-shell-padding"]=$(e.base)),N(e).forEach(r=>{r!=="base"&&(o[r]=o[r]||{},o[r]["--app-shell-padding"]=$(e[r]))}))}function ht({navbar:e,header:t,footer:o,aside:r,padding:c,theme:p,mode:n}){const l={},i={},s={};n==="static"&&(s["--app-shell-main-grid-column"]="1 / -1",s["--app-shell-main-grid-row"]="2"),ct({baseStyles:s,minMediaStyles:l,maxMediaStyles:i,navbar:e,theme:p,mode:n}),nt({baseStyles:s,minMediaStyles:l,maxMediaStyles:i,aside:r,theme:p,mode:n}),it({baseStyles:s,minMediaStyles:l,header:t,mode:n}),lt({baseStyles:s,minMediaStyles:l,footer:o,mode:n}),pt({baseStyles:s,minMediaStyles:l,padding:c});const h=oe(N(l),p.breakpoints).map(v=>({query:`(min-width: ${re(v.px)})`,styles:l[v.value]})),b=oe(N(i),p.breakpoints).map(v=>({query:`(max-width: ${re(v.px)})`,styles:i[v.value]})),d=[...h,...b];return{baseStyles:s,media:d}}function dt({navbar:e,header:t,aside:o,footer:r,padding:c,mode:p,selector:n}){const l=Pe(),i=Be(),{media:s,baseStyles:h}=ht({navbar:e,header:t,footer:r,aside:o,padding:c,theme:l,mode:p});return a.jsx(Re,{media:s,styles:h,selector:n||i.cssVariablesSelector})}const U=w((e,t)=>{const{classNames:o,className:r,style:c,styles:p,unstyled:n,vars:l,withBorder:i,zIndex:s,mod:h,...b}=x("AppShellNavbar",null,e),d=I();return d.disabled?null:a.jsx(j,{component:"nav",ref:t,mod:[{"with-border":i??d.withBorder},h],...d.getStyles("navbar",{className:r,classNames:o,styles:p,style:c}),...b,__vars:{"--app-shell-navbar-z-index":`calc(${s??d.zIndex} + 1)`}})});U.classes=k;U.displayName="@mantine/core/AppShellNavbar";const J=_e((e,t)=>{const{classNames:o,className:r,style:c,styles:p,vars:n,grow:l,mod:i,...s}=x("AppShellSection",null,e),h=I();return a.jsx(j,{ref:t,mod:[{grow:l},i],...h.getStyles("section",{className:r,style:c,classNames:o,styles:p}),...s})});J.classes=k;J.displayName="@mantine/core/AppShellSection";function ut({transitionDuration:e,disabled:t}){const[o,r]=m.useState(!0),c=m.useRef(-1),p=m.useRef(-1);return Te("resize",()=>{r(!0),clearTimeout(c.current),c.current=window.setTimeout(()=>m.startTransition(()=>{r(!1)}),200)}),Ve(()=>{r(!0),clearTimeout(p.current),p.current=window.setTimeout(()=>m.startTransition(()=>{r(!1)}),e||0)},[t,e]),o}const ft={withBorder:!0,padding:0,transitionDuration:200,transitionTimingFunction:"ease",zIndex:Ee("app"),mode:"fixed"},mt=q((e,{transitionDuration:t,transitionTimingFunction:o})=>({root:{"--app-shell-transition-duration":`${t}ms`,"--app-shell-transition-timing-function":o}})),g=w((e,t)=>{const o=x("AppShell",ft,e),{classNames:r,className:c,style:p,styles:n,unstyled:l,vars:i,navbar:s,withBorder:h,padding:b,transitionDuration:d,transitionTimingFunction:v,header:z,zIndex:L,layout:_,disabled:H,aside:be,footer:ge,offsetScrollbars:ve=!0,mode:T,mod:xe,attributes:je,id:we,...ke}=o,te=O({name:"AppShell",classes:k,props:o,className:c,style:p,classNames:r,styles:n,unstyled:l,attributes:je,vars:i,varsResolver:mt}),Ne=ut({disabled:H,transitionDuration:d}),se=Fe(we);return a.jsxs(at,{value:{getStyles:te,withBorder:h,zIndex:L,disabled:H,offsetScrollbars:ve,mode:T},children:[a.jsx(dt,{navbar:s,header:z,aside:be,footer:ge,padding:b,mode:T,selector:T==="static"?`#${se}`:void 0}),a.jsx(j,{ref:t,...te("root"),mod:[{resizing:Ne,layout:_,disabled:H,mode:T},xe],id:se,...ke})]})});g.classes=k;g.displayName="@mantine/core/AppShell";g.Navbar=U;g.Header=Y;g.Main=G;g.Aside=X;g.Footer=Q;g.Section=J;var de={root:"m_fea6bf1a",burger:"m_d4fb9cad"};const bt=q((e,{color:t,size:o,lineSize:r,transitionDuration:c,transitionTimingFunction:p})=>({root:{"--burger-color":t?He(t,e):void 0,"--burger-size":le(o,"burger-size"),"--burger-line-size":r?f(r):void 0,"--burger-transition-duration":c===void 0?void 0:`${c}ms`,"--burger-transition-timing-function":p}})),Z=w((e,t)=>{const o=x("Burger",null,e),{classNames:r,className:c,style:p,styles:n,unstyled:l,vars:i,opened:s,children:h,transitionDuration:b,transitionTimingFunction:d,lineSize:v,attributes:z,...L}=o,_=O({name:"Burger",classes:de,props:o,className:c,style:p,classNames:r,styles:n,unstyled:l,attributes:z,vars:i,varsResolver:bt});return a.jsxs(Le,{..._("root"),ref:t,...L,children:[a.jsx(j,{mod:["reduce-motion",{opened:s}],..._("burger")}),h]})});Z.classes=de;Z.displayName="@mantine/core/Burger";var ue={root:"m_dc6f14e2"};const gt=q((e,{size:t})=>({root:{"--kbd-fz":le(t,"kbd-fz")}})),M=w((e,t)=>{const o=x("Kbd",null,e),{classNames:r,className:c,style:p,styles:n,unstyled:l,vars:i,attributes:s,...h}=o,b=O({name:"Kbd",classes:ue,props:o,className:c,style:p,classNames:r,styles:n,unstyled:l,attributes:s,vars:i,varsResolver:gt});return a.jsx(j,{component:"kbd",ref:t,...b("root"),...h})});M.classes=ue;M.displayName="@mantine/core/Kbd";const vt=[["path",{d:"M9 6.371c0 4.418 -2.239 6.629 -5 6.629",key:"svg-0"}],["path",{d:"M4 6.371h7",key:"svg-1"}],["path",{d:"M5 9c0 2.144 2.252 3.908 6 4",key:"svg-2"}],["path",{d:"M12 20l4 -9l4 9",key:"svg-3"}],["path",{d:"M19.1 18h-6.2",key:"svg-4"}],["path",{d:"M6.694 3l.793 .582",key:"svg-5"}]],xt=A("outline","language","Language",vt);const jt=[["path",{d:"M4 6a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2l0 -12",key:"svg-0"}],["path",{d:"M9 4v16",key:"svg-1"}],["path",{d:"M15 10l-2 2l2 2",key:"svg-2"}]],wt=A("outline","layout-sidebar-left-collapse","LayoutSidebarLeftCollapse",jt);const kt=[["path",{d:"M4 6a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2l0 -12",key:"svg-0"}],["path",{d:"M15 4v16",key:"svg-1"}],["path",{d:"M9 10l2 2l-2 2",key:"svg-2"}]],Nt=A("outline","layout-sidebar-right-collapse","LayoutSidebarRightCollapse",kt);const At=[["path",{d:"M12 3c.132 0 .263 0 .393 0a7.5 7.5 0 0 0 7.92 12.446a9 9 0 1 1 -8.313 -12.454l0 .008",key:"svg-0"}]],ne=A("outline","moon","Moon",At);const Ct=[["path",{d:"M12 3c7.2 0 9 1.8 9 9c0 7.2 -1.8 9 -9 9c-7.2 0 -9 -1.8 -9 -9c0 -7.2 1.8 -9 9 -9",key:"svg-0"}]],It=A("outline","square-rounded","SquareRounded",Ct);const zt=[["path",{d:"M8 12a4 4 0 1 0 8 0a4 4 0 1 0 -8 0",key:"svg-0"}],["path",{d:"M3 12h1m8 -9v1m8 8h1m-9 8v1m-6.4 -15.4l.7 .7m12.1 -.7l-.7 .7m0 11.4l.7 .7m-12.1 -.7l-.7 .7",key:"svg-1"}]],y=A("outline","sun","Sun",zt),St=e=>{const[t,o]=E("alepha.ui.sidebar.opened");return a.jsx(Z,{opened:t,onClick:()=>o(!t),hiddenFrom:"sm",size:"sm",...e})},fe=e=>{const{setColorScheme:t}=he(),o=ot("light"),[r,c]=m.useState("default"),p=e.mode??"minimal";m.useEffect(()=>{c(o)},[o]);const n=()=>{t(o==="dark"?"light":"dark")};return p==="segmented"?a.jsx(st,{value:r,onChange:l=>t(l),data:[{value:"light",label:a.jsx(u,{h:20,align:"center",justify:"center",children:a.jsx(y,{size:16})})},{value:"dark",label:a.jsx(u,{h:20,align:"center",justify:"center",children:a.jsx(ne,{size:16})})}],w:e.fullWidth?"100%":void 0,...e.segmentedProps}):a.jsx(C,{onClick:n,variant:e.variant??"subtle",size:e.size??"sm","aria-label":"Toggle color scheme",px:"xs",fullWidth:e.fullWidth??!1,icon:r==="dark"?y:r==="light"?ne:y,...e.actionProps})},Pt=e=>{const t=et();return a.jsx(C,{variant:"default",icon:xt,menu:{items:t.languages.map(o=>({label:t.tr(o),onClick:()=>t.setLang(o),active:t.lang===o}))},...e.actionProps})},ee=e=>a.jsx(C,{variant:"default",onClick:$e.open,justify:"space-between",rightSection:a.jsx(M,{visibleFrom:"sm",size:"sm",children:"⌘+K"}),radius:"md",...e.actionProps,children:a.jsxs(u,{align:"center",gap:"xs",children:[a.jsx(ye,{size:16,color:"gray"}),a.jsx(u,{visibleFrom:"sm",miw:192,children:a.jsx(K,{size:"xs",c:"dimmed",children:"Search..."})})]})}),Bt=e=>{const{items:t=[]}=e,o=(n,l)=>{if("type"in n){if(n.type==="burger")return a.jsx(St,{},l);if(n.type==="dark")return a.jsx(fe,{...n.props},l);if(n.type==="search")return a.jsx(ee,{...n.props},l);if(n.type==="lang")return a.jsx(Pt,{...n.props},l);if(n.type==="spacer")return a.jsx(u,{w:16},l);if(n.type==="divider")return a.jsx(rt,{orientation:"vertical"},l)}return"element"in n?n.element:null},r=t.filter(n=>n.position==="left"),c=t.filter(n=>n.position==="center"),p=t.filter(n=>n.position==="right");return a.jsxs(u,{h:"100%",align:"center",px:"md",justify:"space-between",...e.flexProps,children:[a.jsx(u,{flex:1,children:r.map((n,l)=>a.jsx(u,{ml:l===0?0:"md",align:"center",children:o(n,l)},l))}),a.jsx(u,{children:c.map((n,l)=>a.jsx(u,{mx:"md",align:"center",children:o(n,l)},l))}),a.jsx(u,{flex:1,align:"center",justify:"end",children:p.map((n,l)=>a.jsx(u,{ml:l===0?0:"md",align:"center",children:o(n,l)},l))})]})},Rt=()=>{const[e,t]=E("alepha.ui.sidebar.collapsed");return a.jsx(u,{children:a.jsx(C,{icon:e?a.jsx(Nt,{}):a.jsx(wt,{}),variant:"subtle",size:"md",onClick:()=>t(!e),tooltip:{position:"right",label:e?"Show sidebar":"Hide sidebar"}})})},_t=e=>{const t=F(),{onItemClick:o}=e,r=(i,s)=>{if("type"in i){if(i.type==="spacer")return a.jsx(u,{h:16},s);if(i.type==="divider")return a.jsx(u,{h:1,bg:"var(--alepha-border)",my:"md",mx:"sm"},s);if(i.type==="search")return a.jsx(ee,{collapsed:e.collapsed},s);if(i.type==="toggle")return a.jsx(Rt,{},s);if(i.type==="section")return e.collapsed?void 0:a.jsxs(u,{mt:"md",mb:"xs",align:"center",gap:"xs",children:[S(i.icon),a.jsx(K,{size:"xs",c:"dimmed",tt:"uppercase",fw:"bold",children:i.label},s)]},s)}return"element"in i?a.jsx(u,{children:i.element},s):i.can&&!i.can()?null:e.collapsed?a.jsx(Tt,{item:i,level:0,onItemClick:o,theme:e.theme??{}},s):a.jsx(me,{item:i,level:0,onItemClick:o,theme:e.theme??{}},s)},c=()=>{if(e.items)return e.items;if(e.autoPopulateMenu){const i=t.concretePages.filter(s=>!s.can||s.can()).map(s=>({label:s.label??s.name,icon:S(s.icon),href:t.path(s.name)}));if(typeof e.autoPopulateMenu=="object"&&e.autoPopulateMenu.startsWith){const s=e.autoPopulateMenu.startsWith;return i.filter(h=>h.href?.startsWith(s))}return i}return[]},p="md",n=e.items?e.gap:"xs",l=m.useMemo(()=>c(),[]);return a.jsxs(u,{flex:1,py:p,direction:"column",className:"overflow-auto",...e.flexProps,children:[a.jsx(u,{gap:n,px:p,direction:"column",children:l.filter(i=>i.position==="top").map((i,s)=>r(i,s))}),a.jsx(u,{gap:n,px:p,direction:"column",flex:1,className:"overflow-auto",children:l.filter(i=>!i.position).map((i,s)=>r(i,s))}),a.jsx(u,{gap:n,px:p,direction:"column",children:l.filter(i=>i.position==="bottom").map((i,s)=>r(i,s))})]})},me=e=>{const{item:t,level:o}=e,r=2,c=F(),p=m.useCallback(s=>{if(!s.children)return!1;for(const h of s.children)if(h.href&&c.isActive(h.href)||p(h))return!0;return!1},[]),[n,l]=m.useState(p(t));if(ie({"react:transition:end":()=>{p(t)&&l(!0)}},[]),o>r)return null;const i=s=>{e.item.target||s.preventDefault(),t.children&&t.children.length>0?l(!n):(e.onItemClick?.(t),t.onClick?.())};return a.jsxs(u,{direction:"column",ps:o===0?0:32,pos:"relative",children:[a.jsx(C,{w:"100%",justify:"space-between",href:e.item.href,target:e.item.target,size:e.item.theme?.size??e.theme.button?.size??(o===0?"sm":"xs"),c:"var(--mantine-color-text)",color:"gray",variant:"subtle",variantActive:"default",radius:e.item.theme?.radius??e.theme.button?.radius??"md",onClick:i,leftSection:a.jsxs(u,{w:"100%",align:"center",gap:"sm",children:[S(t.icon),a.jsxs(u,{direction:"column",children:[a.jsx(u,{children:t.label}),t.description&&a.jsx(K,{size:"xs",c:"dimmed",children:t.description})]})]}),rightSection:t.children?a.jsx(u,{children:n?a.jsx(De,{size:14}):a.jsx(We,{size:14})}):e.item.rightSection,...e.item.actionProps}),t.children&&n&&a.jsxs(u,{direction:"column","data-parent-level":o,children:[a.jsx(u,{style:{position:"absolute",width:1,background:"linear-gradient(to bottom, transparent, var(--alepha-border), transparent)",top:48,left:20+32*o,bottom:16}}),t.children.filter(s=>!s.can||s.can()).map((s,h)=>a.jsx(me,{item:s,level:o+1,onItemClick:e.onItemClick,theme:e.theme},h))]})]})},Tt=e=>{const{item:t,level:o}=e,r=F(),c=m.useCallback(i=>{if(!i.children)return!1;for(const s of i.children)if(s.href&&r.isActive(s.href)||c(s))return!0;return!1},[]),[p,n]=m.useState(c(t)),l=i=>{e.item.target||i.preventDefault(),t.children&&t.children.length>0?n(!p):(e.onItemClick?.(t),t.onClick?.())};return a.jsx(C,{size:e.item.theme?.size??e.theme.button?.size??(o===0?"sm":"xs"),variant:"subtle",variantActive:"default",tooltip:t.children?void 0:{label:t.label,position:"right"},radius:e.item.theme?.radius??e.theme.button?.radius??"md",onClick:l,icon:S(t.icon)??a.jsx(It,{}),href:e.item.href,target:e.item.target,menu:t.children?{position:"right",on:"hover",items:t.children.filter(i=>!i.can||i.can()).map(i=>({label:i.label,href:i.href,icon:S(i.icon),children:i.children?.filter(s=>!s.can||s.can())}))}:void 0,...e.item.actionProps})},Vt=e=>{const t=F(),[o,r]=E("alepha.ui.sidebar.opened"),[c]=E("alepha.ui.sidebar.collapsed",e.sidebarProps?.collapsed),p=()=>{if(e.noSidebarWhen?.paths){for(const z of e.noSidebarWhen.paths)if(t.isActive(z,{startWith:!0}))return!1}return!0},[n,l]=m.useState(p());ie({"react:transition:end":()=>{l(p())},"react:transition:begin":()=>{r(!1)}},[]);const i=[{position:"left",type:"burger"}],s=n&&e.sidebarProps!==void 0,h=s||e.appBarProps||e.header,b=h?60:0,d=e.footer?24:0,v=s?c?78:300:0;return a.jsxs(g,{w:"100%",flex:1,padding:"md",header:h?{height:60}:void 0,navbar:s?{width:c?{base:78}:{base:300},breakpoint:"sm",collapsed:{mobile:!o}}:void 0,footer:e.footer?{height:24}:void 0,...e.appShellProps,children:[a.jsx(g.Header,{bg:V.colors.surface,...e.appShellHeaderProps,children:e.header??a.jsx(Bt,{items:i,...e.appBarProps})}),s&&a.jsx(g.Navbar,{bg:V.colors.surface,...e.appShellNavbarProps,children:a.jsx(_t,{collapsed:c,...e.sidebarProps??{}})}),a.jsx(g.Main,{pl:v,pt:b,pb:d,pr:0,display:"flex",flex:1,style:{flexDirection:"column"},...e.appShellMainProps,children:e.children??a.jsx(Oe,{})}),e.footer&&a.jsx(g.Footer,{bg:V.colors.surface,...e.appShellFooterProps,children:e.footer})]})},Kt=()=>a.jsx(Vt,{appShellHeaderProps:{bg:V.colors.background},appShellNavbarProps:{bg:"transparent"},sidebarProps:{gap:4,collapsed:!0,items:[{label:"Dashboard",icon:a.jsx(qe,{}),href:"/"},{type:"divider"},{label:"Actions",icon:a.jsx(Ke,{}),href:"/actions"},{label:"Queues",icon:a.jsx(Xe,{}),href:"/queues"},{label:"Topics",icon:a.jsx(Qe,{}),href:"/topics"},{label:"Caches",icon:a.jsx(Ye,{}),href:"/caches"},{label:"DB Studio",icon:a.jsx(Ge,{}),href:"/db"},{type:"divider"},{label:"Environment",icon:a.jsx(Ue,{}),href:"/env"},{label:"Atoms",icon:a.jsx(Je,{}),href:"/atoms"},{type:"divider"},{label:"Graph",icon:a.jsx(Ze,{}),href:"/graph"},{label:"Logs",icon:a.jsx(Me,{}),href:"/logs"}]},appBarProps:{items:[{position:"left",type:"burger"},{position:"left",element:a.jsx(u,{h:"60px",w:"78px",style:{marginLeft:"-32px",borderRight:"1px solid var(--mantine-color-default-border)"}})},{position:"left",element:a.jsx(ee,{actionProps:{variant:"outline",bd:"1px solid var(--mantine-color-default-border)"}})},{position:"right",element:a.jsx(fe,{})}]}});export{Kt as DevLayout,Kt as default};