@alepha/devtools 0.14.4 → 0.15.1

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 (226) hide show
  1. package/assets/devtools/actions.html +4 -22
  2. package/assets/devtools/actions.html.br +0 -0
  3. package/assets/devtools/actions.html.gz +0 -0
  4. package/assets/devtools/asset.CMFNRMve.css +1 -0
  5. package/assets/devtools/asset.CMFNRMve.css.br +0 -0
  6. package/assets/devtools/asset.CMFNRMve.css.gz +0 -0
  7. package/assets/devtools/atoms.html +4 -22
  8. package/assets/devtools/atoms.html.br +0 -0
  9. package/assets/devtools/atoms.html.gz +0 -0
  10. package/assets/devtools/caches.html +4 -22
  11. package/assets/devtools/caches.html.br +0 -0
  12. package/assets/devtools/caches.html.gz +0 -0
  13. package/assets/devtools/chunk.9K7EO5hq.js +1 -0
  14. package/assets/devtools/chunk.9K7EO5hq.js.br +0 -0
  15. package/assets/devtools/chunk.9K7EO5hq.js.gz +0 -0
  16. package/assets/devtools/{chunk.BgMi2Pqe.js → chunk.B4porofG.js} +1 -1
  17. package/assets/devtools/chunk.B4porofG.js.br +0 -0
  18. package/assets/devtools/chunk.B4porofG.js.gz +0 -0
  19. package/assets/devtools/{chunk.BKZ6YEV4.js → chunk.BIGcMrv-.js} +1 -1
  20. package/assets/devtools/chunk.BIGcMrv-.js.br +0 -0
  21. package/assets/devtools/chunk.BIGcMrv-.js.gz +0 -0
  22. package/assets/devtools/chunk.BP23bv4G.js +1 -0
  23. package/assets/devtools/chunk.BP23bv4G.js.br +0 -0
  24. package/assets/devtools/chunk.BP23bv4G.js.gz +0 -0
  25. package/assets/devtools/{chunk.W-1mjDd7.js → chunk.BWdBHr2F.js} +1 -1
  26. package/assets/devtools/chunk.BWdBHr2F.js.br +0 -0
  27. package/assets/devtools/chunk.BWdBHr2F.js.gz +0 -0
  28. package/assets/devtools/{chunk.5EOPWu_h.js → chunk.BfFwPQgv.js} +2 -2
  29. package/assets/devtools/chunk.BfFwPQgv.js.br +0 -0
  30. package/assets/devtools/chunk.BfFwPQgv.js.gz +0 -0
  31. package/assets/devtools/{chunk.CIYikik4.js → chunk.BiIrl-Hq.js} +1 -1
  32. package/assets/devtools/chunk.BiIrl-Hq.js.br +0 -0
  33. package/assets/devtools/chunk.BiIrl-Hq.js.gz +0 -0
  34. package/assets/devtools/chunk.C8JxGZtc.js +1 -0
  35. package/assets/devtools/chunk.C8JxGZtc.js.br +0 -0
  36. package/assets/devtools/chunk.C8JxGZtc.js.gz +0 -0
  37. package/assets/devtools/{chunk.CEbDj1NR.js → chunk.CFLl96SC.js} +1 -1
  38. package/assets/devtools/chunk.CFLl96SC.js.br +0 -0
  39. package/assets/devtools/chunk.CFLl96SC.js.gz +0 -0
  40. package/assets/devtools/{chunk.CZ4J9K5b.js → chunk.CMTEfKUa.js} +1 -1
  41. package/assets/devtools/chunk.CMTEfKUa.js.br +0 -0
  42. package/assets/devtools/chunk.CMTEfKUa.js.gz +0 -0
  43. package/assets/devtools/{chunk.BQQ5nN1l.js → chunk.CN7ovTep.js} +1 -1
  44. package/assets/devtools/chunk.CN7ovTep.js.br +0 -0
  45. package/assets/devtools/chunk.CN7ovTep.js.gz +0 -0
  46. package/assets/devtools/chunk.CUs8lFwI.js +1 -0
  47. package/assets/devtools/chunk.CUs8lFwI.js.br +0 -0
  48. package/assets/devtools/chunk.CUs8lFwI.js.gz +0 -0
  49. package/assets/devtools/{chunk.CsxSstrk.js → chunk.CUw48lF5.js} +1 -1
  50. package/assets/devtools/chunk.CUw48lF5.js.br +0 -0
  51. package/assets/devtools/chunk.CUw48lF5.js.gz +0 -0
  52. package/assets/devtools/chunk.CdkqxSCz.js +1 -0
  53. package/assets/devtools/chunk.CdkqxSCz.js.br +0 -0
  54. package/assets/devtools/chunk.CdkqxSCz.js.gz +0 -0
  55. package/assets/devtools/{chunk.BCBZ1wAk.js → chunk.CgxElNrD.js} +1 -1
  56. package/assets/devtools/chunk.CgxElNrD.js.br +2 -0
  57. package/assets/devtools/chunk.CgxElNrD.js.gz +0 -0
  58. package/assets/devtools/{chunk.BjOMCPQ3.js → chunk.CoH_IYrv.js} +1 -1
  59. package/assets/devtools/chunk.CoH_IYrv.js.br +0 -0
  60. package/assets/devtools/chunk.CoH_IYrv.js.gz +0 -0
  61. package/assets/devtools/chunk.D0butndH.js +1 -0
  62. package/assets/devtools/chunk.D0butndH.js.br +0 -0
  63. package/assets/devtools/chunk.D0butndH.js.gz +0 -0
  64. package/assets/devtools/{chunk.BZpSlmHc.js → chunk.DGI4-Nej.js} +1 -1
  65. package/assets/devtools/chunk.DGI4-Nej.js.br +0 -0
  66. package/assets/devtools/chunk.DGI4-Nej.js.gz +0 -0
  67. package/assets/devtools/{chunk.BX7p74D8.js → chunk.DOiJ5r3P.js} +1 -1
  68. package/assets/devtools/chunk.DOiJ5r3P.js.br +0 -0
  69. package/assets/devtools/chunk.DOiJ5r3P.js.gz +0 -0
  70. package/assets/devtools/{chunk.D0jFBu2p.js → chunk.DZFiDTv5.js} +1 -1
  71. package/assets/devtools/chunk.DZFiDTv5.js.br +0 -0
  72. package/assets/devtools/chunk.DZFiDTv5.js.gz +0 -0
  73. package/assets/devtools/{chunk.lo8X57tY.js → chunk.Dbm9E6HI.js} +1 -1
  74. package/assets/devtools/chunk.Dbm9E6HI.js.br +0 -0
  75. package/assets/devtools/chunk.Dbm9E6HI.js.gz +0 -0
  76. package/assets/devtools/chunk.DdgmE5g8.js +1 -0
  77. package/assets/devtools/chunk.DdgmE5g8.js.br +0 -0
  78. package/assets/devtools/chunk.DdgmE5g8.js.gz +0 -0
  79. package/assets/devtools/{chunk.albVVSQX.js → chunk.DeN6s4_I.js} +1 -1
  80. package/assets/devtools/chunk.DeN6s4_I.js.br +0 -0
  81. package/assets/devtools/chunk.DeN6s4_I.js.gz +0 -0
  82. package/assets/devtools/{chunk.C3geCUq9.js → chunk.DpW9QoyF.js} +1 -1
  83. package/assets/devtools/chunk.DpW9QoyF.js.br +0 -0
  84. package/assets/devtools/chunk.DpW9QoyF.js.gz +0 -0
  85. package/assets/devtools/chunk.PcVF_qXP.js +1 -0
  86. package/assets/devtools/chunk.PcVF_qXP.js.br +0 -0
  87. package/assets/devtools/chunk.PcVF_qXP.js.gz +0 -0
  88. package/assets/devtools/{chunk.u4exfSZ6.js → chunk.Q6_b9IUt.js} +1 -1
  89. package/assets/devtools/chunk.Q6_b9IUt.js.br +0 -0
  90. package/assets/devtools/chunk.Q6_b9IUt.js.gz +0 -0
  91. package/assets/devtools/chunk.YqHRwxdc.js +2 -0
  92. package/assets/devtools/chunk.YqHRwxdc.js.br +0 -0
  93. package/assets/devtools/chunk.YqHRwxdc.js.gz +0 -0
  94. package/assets/devtools/{chunk.CQO49DQF.js → chunk._D_TfCmJ.js} +1 -1
  95. package/assets/devtools/chunk._D_TfCmJ.js.br +0 -0
  96. package/assets/devtools/chunk._D_TfCmJ.js.gz +0 -0
  97. package/assets/devtools/chunk.l66LreXu.js +1 -0
  98. package/assets/devtools/chunk.l66LreXu.js.br +0 -0
  99. package/assets/devtools/chunk.l66LreXu.js.gz +0 -0
  100. package/assets/devtools/{chunk.ffYG67rk.js → chunk.lvb4PIb4.js} +1 -1
  101. package/assets/devtools/chunk.lvb4PIb4.js.br +0 -0
  102. package/assets/devtools/chunk.lvb4PIb4.js.gz +0 -0
  103. package/assets/devtools/chunk.rvqQkpV6.js +2 -0
  104. package/assets/devtools/chunk.rvqQkpV6.js.br +0 -0
  105. package/assets/devtools/chunk.rvqQkpV6.js.gz +0 -0
  106. package/assets/devtools/{chunk._t5z0lP9.js → chunk.s1U1MhH3.js} +1 -1
  107. package/assets/devtools/chunk.s1U1MhH3.js.br +0 -0
  108. package/assets/devtools/chunk.s1U1MhH3.js.gz +0 -0
  109. package/assets/devtools/{chunk.BqEqrty9.js → chunk.wg5XuK3_.js} +1 -1
  110. package/assets/devtools/chunk.wg5XuK3_.js.br +0 -0
  111. package/assets/devtools/chunk.wg5XuK3_.js.gz +0 -0
  112. package/assets/devtools/db.html +4 -19
  113. package/assets/devtools/db.html.br +0 -0
  114. package/assets/devtools/db.html.gz +0 -0
  115. package/assets/devtools/entry.Cgjh-xX-.js +79 -0
  116. package/assets/devtools/entry.Cgjh-xX-.js.br +0 -0
  117. package/assets/devtools/entry.Cgjh-xX-.js.gz +0 -0
  118. package/assets/devtools/env.html +4 -20
  119. package/assets/devtools/env.html.br +0 -0
  120. package/assets/devtools/env.html.gz +0 -0
  121. package/assets/devtools/graph.html +4 -22
  122. package/assets/devtools/graph.html.br +0 -0
  123. package/assets/devtools/graph.html.gz +0 -0
  124. package/assets/devtools/index.html +4 -16
  125. package/assets/devtools/index.html.br +0 -0
  126. package/assets/devtools/index.html.gz +0 -0
  127. package/assets/devtools/logs.html +4 -23
  128. package/assets/devtools/logs.html.br +0 -0
  129. package/assets/devtools/logs.html.gz +0 -0
  130. package/assets/devtools/queues.html +4 -15
  131. package/assets/devtools/queues.html.br +0 -0
  132. package/assets/devtools/queues.html.gz +0 -0
  133. package/assets/devtools/topics.html +4 -23
  134. package/assets/devtools/topics.html.br +0 -0
  135. package/assets/devtools/topics.html.gz +0 -0
  136. package/dist/index.d.ts +318 -1601
  137. package/dist/index.js +5 -9
  138. package/dist/index.js.map +1 -1
  139. package/package.json +10 -10
  140. package/src/api/DevToolsProvider.ts +3 -3
  141. package/src/api/providers/DevToolsDatabaseProvider.ts +1 -1
  142. package/src/api/providers/DevToolsMetadataProvider.ts +2 -2
  143. package/src/api/repositories/LogRepository.ts +4 -5
  144. package/assets/devtools/asset.DbJSgVPr.css +0 -1
  145. package/assets/devtools/asset.DbJSgVPr.css.br +0 -0
  146. package/assets/devtools/asset.DbJSgVPr.css.gz +0 -0
  147. package/assets/devtools/chunk.5EOPWu_h.js.br +0 -0
  148. package/assets/devtools/chunk.5EOPWu_h.js.gz +0 -0
  149. package/assets/devtools/chunk.B-FEo0lV.js +0 -1
  150. package/assets/devtools/chunk.B-FEo0lV.js.br +0 -0
  151. package/assets/devtools/chunk.B-FEo0lV.js.gz +0 -0
  152. package/assets/devtools/chunk.BCBZ1wAk.js.br +0 -0
  153. package/assets/devtools/chunk.BCBZ1wAk.js.gz +0 -0
  154. package/assets/devtools/chunk.BKZ6YEV4.js.br +0 -0
  155. package/assets/devtools/chunk.BKZ6YEV4.js.gz +0 -0
  156. package/assets/devtools/chunk.BQQ5nN1l.js.br +0 -0
  157. package/assets/devtools/chunk.BQQ5nN1l.js.gz +0 -0
  158. package/assets/devtools/chunk.BX7p74D8.js.br +0 -0
  159. package/assets/devtools/chunk.BX7p74D8.js.gz +0 -0
  160. package/assets/devtools/chunk.BZpSlmHc.js.br +0 -0
  161. package/assets/devtools/chunk.BZpSlmHc.js.gz +0 -0
  162. package/assets/devtools/chunk.BgMi2Pqe.js.br +0 -0
  163. package/assets/devtools/chunk.BgMi2Pqe.js.gz +0 -0
  164. package/assets/devtools/chunk.BjOMCPQ3.js.br +0 -0
  165. package/assets/devtools/chunk.BjOMCPQ3.js.gz +0 -0
  166. package/assets/devtools/chunk.BqEqrty9.js.br +0 -0
  167. package/assets/devtools/chunk.BqEqrty9.js.gz +0 -0
  168. package/assets/devtools/chunk.BuGWOypT.js +0 -1
  169. package/assets/devtools/chunk.BuGWOypT.js.br +0 -0
  170. package/assets/devtools/chunk.BuGWOypT.js.gz +0 -0
  171. package/assets/devtools/chunk.C3geCUq9.js.br +0 -0
  172. package/assets/devtools/chunk.C3geCUq9.js.gz +0 -0
  173. package/assets/devtools/chunk.CEbDj1NR.js.br +0 -0
  174. package/assets/devtools/chunk.CEbDj1NR.js.gz +0 -0
  175. package/assets/devtools/chunk.CIYikik4.js.br +0 -0
  176. package/assets/devtools/chunk.CIYikik4.js.gz +0 -0
  177. package/assets/devtools/chunk.CQO49DQF.js.br +0 -0
  178. package/assets/devtools/chunk.CQO49DQF.js.gz +0 -0
  179. package/assets/devtools/chunk.CWwJDVEM.js +0 -1
  180. package/assets/devtools/chunk.CWwJDVEM.js.br +0 -0
  181. package/assets/devtools/chunk.CWwJDVEM.js.gz +0 -0
  182. package/assets/devtools/chunk.CZ4J9K5b.js.br +0 -4
  183. package/assets/devtools/chunk.CZ4J9K5b.js.gz +0 -0
  184. package/assets/devtools/chunk.CoD2sLa1.js +0 -1
  185. package/assets/devtools/chunk.CoD2sLa1.js.br +0 -0
  186. package/assets/devtools/chunk.CoD2sLa1.js.gz +0 -0
  187. package/assets/devtools/chunk.CsxSstrk.js.br +0 -0
  188. package/assets/devtools/chunk.CsxSstrk.js.gz +0 -0
  189. package/assets/devtools/chunk.D0jFBu2p.js.br +0 -0
  190. package/assets/devtools/chunk.D0jFBu2p.js.gz +0 -0
  191. package/assets/devtools/chunk.D7ro5_n3.js +0 -1
  192. package/assets/devtools/chunk.D7ro5_n3.js.br +0 -0
  193. package/assets/devtools/chunk.D7ro5_n3.js.gz +0 -0
  194. package/assets/devtools/chunk.W-1mjDd7.js.br +0 -0
  195. package/assets/devtools/chunk.W-1mjDd7.js.gz +0 -0
  196. package/assets/devtools/chunk._3YEef80.js +0 -1
  197. package/assets/devtools/chunk._3YEef80.js.br +0 -0
  198. package/assets/devtools/chunk._3YEef80.js.gz +0 -0
  199. package/assets/devtools/chunk._t5z0lP9.js.br +0 -0
  200. package/assets/devtools/chunk._t5z0lP9.js.gz +0 -0
  201. package/assets/devtools/chunk.albVVSQX.js.br +0 -0
  202. package/assets/devtools/chunk.albVVSQX.js.gz +0 -0
  203. package/assets/devtools/chunk.bPNpu2iW.js +0 -1
  204. package/assets/devtools/chunk.bPNpu2iW.js.br +0 -0
  205. package/assets/devtools/chunk.bPNpu2iW.js.gz +0 -0
  206. package/assets/devtools/chunk.fWijEdcZ.js +0 -2
  207. package/assets/devtools/chunk.fWijEdcZ.js.br +0 -0
  208. package/assets/devtools/chunk.fWijEdcZ.js.gz +0 -0
  209. package/assets/devtools/chunk.ffYG67rk.js.br +0 -0
  210. package/assets/devtools/chunk.ffYG67rk.js.gz +0 -0
  211. package/assets/devtools/chunk.lo8X57tY.js.br +0 -0
  212. package/assets/devtools/chunk.lo8X57tY.js.gz +0 -0
  213. package/assets/devtools/chunk.rqjDVBSo.js +0 -1
  214. package/assets/devtools/chunk.rqjDVBSo.js.br +0 -0
  215. package/assets/devtools/chunk.rqjDVBSo.js.gz +0 -0
  216. package/assets/devtools/chunk.u4exfSZ6.js.br +0 -0
  217. package/assets/devtools/chunk.u4exfSZ6.js.gz +0 -0
  218. package/assets/devtools/chunk.xjh83uy1.js +0 -1
  219. package/assets/devtools/chunk.xjh83uy1.js.br +0 -0
  220. package/assets/devtools/chunk.xjh83uy1.js.gz +0 -0
  221. package/assets/devtools/chunk.yZM2qlCX.js +0 -2
  222. package/assets/devtools/chunk.yZM2qlCX.js.br +0 -0
  223. package/assets/devtools/chunk.yZM2qlCX.js.gz +0 -0
  224. package/assets/devtools/entry.BWhdC3SJ.js +0 -79
  225. package/assets/devtools/entry.BWhdC3SJ.js.br +0 -0
  226. package/assets/devtools/entry.BWhdC3SJ.js.gz +0 -0
@@ -1 +0,0 @@
1
- import{r as m,f as E,b as A,q as se,s as re,j as i,B as L,v as ee,t as oe,c as Eo,aC as me,b8 as jo,b9 as Ue,ah as ge,bc as Po,_ 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,w as ye}from"./entry.BWhdC3SJ.js";import{I as Bo,a as Fo,b as Lo}from"./chunk.D7ro5_n3.js";import{P as he}from"./chunk.CoD2sLa1.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;const ro=m.createContext(null),st=ro.Provider,ao=()=>m.useContext(ro),[rt,at]=Ro();var co={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:co,props:t,className:r,style:a,classNames:s,styles:n,unstyled:l,attributes:w,vars:c,varsResolver:lt,rootSelector:"card"}),_=ao(),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=co;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 lo({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 io({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(lo,{...o})}var uo={indicator:"m_5e5256ee",icon:"m_1b1c543a","indicator--outline":"m_76e20374"};const it={icon:io,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:uo,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=uo;var po={root:"m_bf2d988c",inner:"m_26062bec",input:"m_26063560",icon:"m_bf295423","input--outline":"m_215c4542"};const ut={labelPosition:"right",icon:io,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=ao(),X=b||H?.size,f=se({name:"Checkbox",props:t,classes:po,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={...po,...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(lo,{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,lo as e,Ho as g,ne as i,so as u};
@@ -1 +0,0 @@
1
- import{w as B,j as e,ae as v,a3 as D,a4 as P,r as j,F as d,T as n,B as a,H as m,Q as C,af as k,z as I,ad as w}from"./entry.BWhdC3SJ.js";import{d as $}from"./chunk.BKZ6YEV4.js";import{B as x,S as g}from"./chunk.BqEqrty9.js";import{T as f}from"./chunk.CQO49DQF.js";import{T as s}from"./chunk.CEbDj1NR.js";import"./chunk.BlqFPyLh.js";const A=[["path",{d:"M3 5a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14",key:"svg-0"}],["path",{d:"M3 10h18",key:"svg-1"}],["path",{d:"M10 3v18",key:"svg-2"}]],y=B("outline","table","Table",A),K=({column:i,size:r="xs"})=>{const t=[];return i.primaryKey&&t.push({label:"PK",tooltip:"Primary Key"}),i.identity&&t.push({label:"ID",tooltip:"Auto-increment Identity"}),i.ref&&t.push({label:"FK",tooltip:`Foreign Key → ${i.ref.entity}.${i.ref.column}`}),i.createdAt&&t.push({label:"C",tooltip:"Created At (auto-set on insert)"}),i.updatedAt&&t.push({label:"U",tooltip:"Updated At (auto-set on update)"}),i.deletedAt&&t.push({label:"D",tooltip:"Deleted At (soft delete)"}),i.version&&t.push({label:"V",tooltip:"Version (optimistic locking)"}),e.jsxs(e.Fragment,{children:[t.map(o=>e.jsx(v,{label:o.tooltip,children:e.jsx(x,{size:r,variant:"light",color:"blue",children:o.label})},o.label)),i.nullable&&e.jsx(v,{label:"Nullable",children:e.jsx(x,{size:r,variant:"outline",color:"gray",children:"?"})})]})},z={PostgresProvider:"#336791",SqliteProvider:"#003B57",DatabaseProvider:"#495057",default:"#495057"},S=i=>z[i]??z.default,N=({entities:i,selectedEntity:r,onSelectEntity:t,search:o,onSearchChange:T})=>{const u=j.useMemo(()=>{const l={};for(const c of i){const h=c.provider.replace("Provider","");l[h]||(l[h]=[]),l[h].push(c)}return l},[i]),b=Object.keys(u).sort();return e.jsxs(g,{gap:0,h:"100%",children:[e.jsx(a,{p:"sm",style:{borderBottom:`1px solid ${m.colors.border}`},children:e.jsx(k,{placeholder:"Search tables...",leftSection:e.jsx(I,{size:14}),size:"xs",value:o,onChange:l=>T(l.target.value)})}),e.jsx(w,{style:{flex:1},children:b.map(l=>e.jsxs(a,{children:[e.jsx(n,{size:"xs",fw:600,c:"dimmed",px:"sm",py:"xs",style:{backgroundColor:m.colors.background,borderBottom:`1px solid ${m.colors.border}`,textTransform:"uppercase",letterSpacing:"0.05em"},children:l}),u[l].map(c=>{const h=r?.name===c.name,p=S(c.provider);return e.jsxs(d,{align:"center",gap:"xs",px:"sm",py:6,onClick:()=>t(c),style:{cursor:"pointer",backgroundColor:h?`${p}15`:void 0,borderLeft:h?`2px solid ${p}`:"2px solid transparent",borderBottom:`1px solid ${m.colors.border}`},children:[e.jsx(y,{size:14,opacity:.5}),e.jsx(n,{size:"sm",style:{flex:1},truncate:!0,children:c.name}),e.jsx(n,{size:"xs",c:"dimmed",children:c.columns.length})]},c.name)})]},l))})]})},O=({entity:i})=>e.jsx(w,{h:"100%",p:"md",children:e.jsxs(g,{gap:"lg",children:[e.jsxs(a,{children:[e.jsx(n,{size:"sm",fw:600,mb:"xs",children:"Columns"}),e.jsxs(s,{striped:!0,highlightOnHover:!0,withTableBorder:!0,children:[e.jsx(s.Thead,{children:e.jsxs(s.Tr,{children:[e.jsx(s.Th,{children:"Name"}),e.jsx(s.Th,{children:"Type"}),e.jsx(s.Th,{children:"Attributes"})]})}),e.jsx(s.Tbody,{children:i.columns.map(r=>e.jsxs(s.Tr,{children:[e.jsx(s.Td,{children:e.jsx(n,{size:"sm",ff:"monospace",fw:r.primaryKey?600:400,children:r.name})}),e.jsx(s.Td,{children:e.jsx(n,{size:"sm",ff:"monospace",c:"dimmed",children:r.type})}),e.jsx(s.Td,{children:e.jsx(d,{gap:4,wrap:"wrap",children:e.jsx(K,{column:r})})})]},r.name))})]})]}),i.indexes.length>0&&e.jsxs(a,{children:[e.jsx(n,{size:"sm",fw:600,mb:"xs",children:"Indexes"}),e.jsxs(s,{striped:!0,highlightOnHover:!0,withTableBorder:!0,children:[e.jsx(s.Thead,{children:e.jsxs(s.Tr,{children:[e.jsx(s.Th,{children:"Name"}),e.jsx(s.Th,{children:"Columns"}),e.jsx(s.Th,{children:"Unique"})]})}),e.jsx(s.Tbody,{children:i.indexes.map((r,t)=>e.jsxs(s.Tr,{children:[e.jsx(s.Td,{children:e.jsx(n,{size:"sm",ff:"monospace",children:r.name||"-"})}),e.jsx(s.Td,{children:e.jsx(d,{gap:4,children:r.columns.map(o=>e.jsx(x,{size:"xs",variant:"light",children:o},o))})}),e.jsx(s.Td,{children:r.unique&&e.jsx(x,{size:"xs",color:"yellow",children:"UNIQUE"})})]},r.name||t))})]})]}),i.foreignKeys.length>0&&e.jsxs(a,{children:[e.jsx(n,{size:"sm",fw:600,mb:"xs",children:"Foreign Keys"}),e.jsxs(s,{striped:!0,highlightOnHover:!0,withTableBorder:!0,children:[e.jsx(s.Thead,{children:e.jsxs(s.Tr,{children:[e.jsx(s.Th,{children:"Name"}),e.jsx(s.Th,{children:"Column"}),e.jsx(s.Th,{children:"References"})]})}),e.jsx(s.Tbody,{children:i.foreignKeys.map((r,t)=>e.jsxs(s.Tr,{children:[e.jsx(s.Td,{children:e.jsx(n,{size:"sm",ff:"monospace",children:r.name||"-"})}),e.jsx(s.Td,{children:e.jsx(n,{size:"sm",ff:"monospace",children:r.columns.join(", ")})}),e.jsx(s.Td,{children:e.jsxs(n,{size:"sm",ff:"monospace",c:"pink",children:[r.foreignEntity,".",r.foreignColumns.join(", ")]})})]},r.name||t))})]})]}),i.columns.some(r=>r.ref)&&e.jsxs(a,{children:[e.jsx(n,{size:"sm",fw:600,mb:"xs",children:"Column References"}),e.jsxs(s,{striped:!0,highlightOnHover:!0,withTableBorder:!0,children:[e.jsx(s.Thead,{children:e.jsxs(s.Tr,{children:[e.jsx(s.Th,{children:"Column"}),e.jsx(s.Th,{children:"References"})]})}),e.jsx(s.Tbody,{children:i.columns.filter(r=>r.ref).map(r=>e.jsxs(s.Tr,{children:[e.jsx(s.Td,{children:e.jsx(n,{size:"sm",ff:"monospace",children:r.name})}),e.jsx(s.Td,{children:e.jsxs(n,{size:"sm",ff:"monospace",c:"pink",children:[r.ref?.entity,".",r.ref?.column]})})]},r.name))})]})]}),i.constraints.length>0&&e.jsxs(a,{children:[e.jsx(n,{size:"sm",fw:600,mb:"xs",children:"Constraints"}),e.jsxs(s,{striped:!0,highlightOnHover:!0,withTableBorder:!0,children:[e.jsx(s.Thead,{children:e.jsxs(s.Tr,{children:[e.jsx(s.Th,{children:"Name"}),e.jsx(s.Th,{children:"Columns"}),e.jsx(s.Th,{children:"Type"})]})}),e.jsx(s.Tbody,{children:i.constraints.map((r,t)=>e.jsxs(s.Tr,{children:[e.jsx(s.Td,{children:e.jsx(n,{size:"sm",ff:"monospace",children:r.name||"-"})}),e.jsx(s.Td,{children:e.jsx(d,{gap:4,children:r.columns.map(o=>e.jsx(x,{size:"xs",variant:"outline",children:o},o))})}),e.jsx(s.Td,{children:e.jsxs(d,{gap:4,children:[r.unique&&e.jsx(x,{size:"xs",color:"yellow",children:"UNIQUE"}),r.hasCheck&&e.jsx(x,{size:"xs",color:"blue",children:"CHECK"})]})})]},r.name||t))})]})]})]})}),R=()=>e.jsx(d,{align:"center",justify:"center",h:"100%",c:"dimmed",children:e.jsxs(g,{align:"center",gap:"xs",children:[e.jsx(C,{size:48,opacity:.3}),e.jsx(n,{size:"sm",children:"Data browser coming soon"})]})}),H=({entity:i})=>{const r=S(i.provider);return e.jsxs(d,{direction:"column",h:"100%",children:[e.jsx(a,{px:"md",py:"sm",style:{borderBottom:`1px solid ${m.colors.border}`,backgroundColor:`${r}08`},children:e.jsxs(d,{align:"center",gap:"sm",children:[e.jsx(y,{size:18,opacity:.7}),e.jsx(n,{size:"md",fw:600,children:i.name}),e.jsxs(x,{size:"xs",variant:"light",color:"gray",children:[i.columns.length," columns"]})]})}),e.jsxs(f,{defaultValue:"structure",style:{flex:1,display:"flex",flexDirection:"column"},children:[e.jsxs(f.List,{px:"md",children:[e.jsx(f.Tab,{value:"structure",children:"Structure"}),e.jsx(f.Tab,{value:"data",children:"Data"})]}),e.jsx(f.Panel,{value:"structure",style:{flex:1,overflow:"hidden"},children:e.jsx(O,{entity:i})}),e.jsx(f.Panel,{value:"data",style:{flex:1,overflow:"hidden"},children:e.jsx(R,{})})]})]})},L=()=>e.jsx(d,{align:"center",justify:"center",h:"100%",c:"dimmed",children:e.jsxs(g,{align:"center",gap:"xs",children:[e.jsx(y,{size:48,opacity:.3}),e.jsx(n,{size:"sm",children:"Select a table to view its structure"})]})}),U=()=>e.jsx(d,{align:"center",justify:"center",h:"100%",c:"dimmed",children:e.jsxs(g,{align:"center",gap:"xs",children:[e.jsx(C,{size:48,opacity:.3}),e.jsx(n,{children:"No entities found"}),e.jsx(n,{size:"sm",c:"dimmed",children:"Add entities using $entity primitive to see them here"})]})}),G=()=>{const i=D(P),[r,t]=j.useState([]),[o,T]=j.useState(!0),[u,b]=j.useState(null),[l,c]=j.useState("");j.useEffect(()=>{i.fetch("/devtools/api/metadata",{schema:{response:$}}).then(p=>{t(p.data.entities),T(!1)})},[]);const h=j.useMemo(()=>{if(!l)return r;const p=l.toLowerCase();return r.filter(E=>E.name.toLowerCase().includes(p))},[r,l]);return o?e.jsx(d,{align:"center",justify:"center",h:"100%",children:e.jsx(n,{c:"dimmed",children:"Loading..."})}):r.length===0?e.jsx(U,{}):e.jsxs(d,{h:"100%",style:{overflow:"hidden"},children:[e.jsx(a,{w:240,style:{borderRight:`1px solid ${m.colors.border}`,backgroundColor:m.colors.surface},children:e.jsx(N,{entities:h,selectedEntity:u,onSelectEntity:b,search:l,onSearchChange:c})}),e.jsx(a,{style:{flex:1,overflow:"hidden"},children:u?e.jsx(H,{entity:u}):e.jsx(L,{})})]})};export{G as DevDbStudio,G as default};