studiograph 1.3.48-next.48 → 1.3.48-next.49

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 (193) hide show
  1. package/dist/agent/followups.d.ts +34 -0
  2. package/dist/agent/followups.js +52 -0
  3. package/dist/agent/followups.js.map +1 -0
  4. package/dist/agent/orchestrator.js +1 -1
  5. package/dist/agent/orchestrator.js.map +1 -1
  6. package/dist/agent/skill-loader.js +3 -1
  7. package/dist/agent/skill-loader.js.map +1 -1
  8. package/dist/agent/tools/graph-tools.js +35 -9
  9. package/dist/agent/tools/graph-tools.js.map +1 -1
  10. package/dist/agent/tools/message-tools.d.ts +2 -1
  11. package/dist/agent/tools/message-tools.js +8 -6
  12. package/dist/agent/tools/message-tools.js.map +1 -1
  13. package/dist/cli/commands/start.js +122 -45
  14. package/dist/cli/commands/start.js.map +1 -1
  15. package/dist/core/graph.js +14 -4
  16. package/dist/core/graph.js.map +1 -1
  17. package/dist/mcp/tools.js +11 -11
  18. package/dist/mcp/tools.js.map +1 -1
  19. package/dist/server/chrome/chrome.js +17 -1
  20. package/dist/server/index.js +2 -2
  21. package/dist/server/index.js.map +1 -1
  22. package/dist/server/routes/asset-api.js +46 -34
  23. package/dist/server/routes/asset-api.js.map +1 -1
  24. package/dist/server/routes/auth-api.js +91 -2
  25. package/dist/server/routes/auth-api.js.map +1 -1
  26. package/dist/server/routes/chat.js +4 -12
  27. package/dist/server/routes/chat.js.map +1 -1
  28. package/dist/server/routes/git-http.js +10 -16
  29. package/dist/server/routes/git-http.js.map +1 -1
  30. package/dist/server/routes/graph-api.js +80 -28
  31. package/dist/server/routes/graph-api.js.map +1 -1
  32. package/dist/server/routes/insights-api.js +6 -4
  33. package/dist/server/routes/insights-api.js.map +1 -1
  34. package/dist/server/routes/meeting-ingest-api.js +14 -1
  35. package/dist/server/routes/meeting-ingest-api.js.map +1 -1
  36. package/dist/server/routes/messages-api.js +15 -13
  37. package/dist/server/routes/messages-api.js.map +1 -1
  38. package/dist/server/routes/permissions-api.d.ts +5 -4
  39. package/dist/server/routes/permissions-api.js +14 -14
  40. package/dist/server/routes/permissions-api.js.map +1 -1
  41. package/dist/server/routes/workspace-api.d.ts +2 -1
  42. package/dist/server/routes/workspace-api.js +17 -1
  43. package/dist/server/routes/workspace-api.js.map +1 -1
  44. package/dist/server/routes/ws.d.ts +2 -1
  45. package/dist/server/routes/ws.js +52 -9
  46. package/dist/server/routes/ws.js.map +1 -1
  47. package/dist/server/yjs-manager.js +37 -0
  48. package/dist/server/yjs-manager.js.map +1 -1
  49. package/dist/services/access-control.d.ts +7 -3
  50. package/dist/services/access-control.js +30 -3
  51. package/dist/services/access-control.js.map +1 -1
  52. package/dist/services/auth-service.d.ts +16 -0
  53. package/dist/services/auth-service.js +45 -5
  54. package/dist/services/auth-service.js.map +1 -1
  55. package/dist/services/personal-folder.d.ts +25 -0
  56. package/dist/services/personal-folder.js +70 -0
  57. package/dist/services/personal-folder.js.map +1 -1
  58. package/dist/web/_app/immutable/assets/0.D03EHRDg.css +1 -0
  59. package/dist/web/_app/immutable/assets/11.VuZ0yuu4.css +1 -0
  60. package/dist/web/_app/immutable/assets/12.CBEP3aNg.css +1 -0
  61. package/dist/web/_app/immutable/assets/2.aJMJyx3M.css +1 -0
  62. package/dist/web/_app/immutable/assets/3.BbA-zR0F.css +1 -0
  63. package/dist/web/_app/immutable/assets/{4.Bw-eH9Xv.css → 4.BsFe8Ecx.css} +1 -1
  64. package/dist/web/_app/immutable/assets/ChevronLeft.DJHXltBB.css +1 -0
  65. package/dist/web/_app/immutable/assets/StopFilledAlt.kEJgOmBk.css +1 -0
  66. package/dist/web/_app/immutable/assets/ViewToolbar.CV6Us0fJ.css +1 -0
  67. package/dist/web/_app/immutable/assets/WorkspaceView.CFKNfZSY.css +1 -0
  68. package/dist/web/_app/immutable/chunks/{BJVJpWzz.js → 24nU6DRU.js} +1 -1
  69. package/dist/web/_app/immutable/chunks/B24A6jAy.js +6 -0
  70. package/dist/web/_app/immutable/chunks/B8CgkcYZ.js +1 -0
  71. package/dist/web/_app/immutable/chunks/{Bw_Pp-Pz.js → B9qwNmSf.js} +1 -1
  72. package/dist/web/_app/immutable/chunks/BXIcKgYy.js +1 -0
  73. package/dist/web/_app/immutable/chunks/{C7PgRgxX.js → BiMb3uU3.js} +1 -1
  74. package/dist/web/_app/immutable/chunks/C-KRPd1f.js +1 -0
  75. package/dist/web/_app/immutable/chunks/{Ckiai0LF.js → C3QX_pgn.js} +2 -2
  76. package/dist/web/_app/immutable/chunks/C3rmQoP5.js +4 -0
  77. package/dist/web/_app/immutable/chunks/C6NT3aAi.js +2 -0
  78. package/dist/web/_app/immutable/chunks/CBFBKav7.js +1 -0
  79. package/dist/web/_app/immutable/chunks/CH1XwVFs.js +5 -0
  80. package/dist/web/_app/immutable/chunks/{BCJtO6Up.js → CKD7VXBr.js} +1 -1
  81. package/dist/web/_app/immutable/chunks/CLJcKDW0.js +1 -0
  82. package/dist/web/_app/immutable/chunks/CS21N7mS.js +2 -0
  83. package/dist/web/_app/immutable/chunks/CawK5k-Y.js +13 -0
  84. package/dist/web/_app/immutable/chunks/CbhBH-Pr.js +1 -0
  85. package/dist/web/_app/immutable/chunks/CdRP-PQd.js +1 -0
  86. package/dist/web/_app/immutable/chunks/CgtGEUwG.js +1 -0
  87. package/dist/web/_app/immutable/chunks/{Bz0ZjVQE.js → ChqmDGF0.js} +1 -1
  88. package/dist/web/_app/immutable/chunks/CjyOT5ru.js +1 -0
  89. package/dist/web/_app/immutable/chunks/Cm3t5Lw_.js +1 -0
  90. package/dist/web/_app/immutable/chunks/Cq78Q8ao.js +1 -0
  91. package/dist/web/_app/immutable/chunks/CqJvlJ5e.js +1 -0
  92. package/dist/web/_app/immutable/chunks/D-eQH68P.js +1 -0
  93. package/dist/web/_app/immutable/chunks/D6uxAoMD.js +1 -0
  94. package/dist/web/_app/immutable/chunks/{UPEqhJHW.js → D78L3NHT.js} +1 -1
  95. package/dist/web/_app/immutable/chunks/D8l98jpc.js +1 -0
  96. package/dist/web/_app/immutable/chunks/D98nKNS8.js +5 -0
  97. package/dist/web/_app/immutable/chunks/{oIb8yPFh.js → DBrWPzSo.js} +4 -4
  98. package/dist/web/_app/immutable/chunks/DHBDhuM5.js +1 -0
  99. package/dist/web/_app/immutable/chunks/DHZ8iEPd.js +1 -0
  100. package/dist/web/_app/immutable/chunks/DODkJf9W.js +1 -0
  101. package/dist/web/_app/immutable/chunks/DZynkbIh.js +1 -0
  102. package/dist/web/_app/immutable/chunks/Dc-pYwK_.js +1 -0
  103. package/dist/web/_app/immutable/chunks/DiVMY2ie.js +1 -0
  104. package/dist/web/_app/immutable/chunks/DjYhk3V-.js +1 -0
  105. package/dist/web/_app/immutable/chunks/Dk4o-8uR.js +1 -0
  106. package/dist/web/_app/immutable/chunks/QvIJHVST.js +1 -0
  107. package/dist/web/_app/immutable/chunks/VHoDNwgF.js +1 -0
  108. package/dist/web/_app/immutable/chunks/{gZfO0DkI.js → _LqPzIoq.js} +1 -1
  109. package/dist/web/_app/immutable/chunks/{BDtxhI5r.js → _rGNAZ2T.js} +1 -1
  110. package/dist/web/_app/immutable/chunks/bBh4-vdc.js +1 -0
  111. package/dist/web/_app/immutable/chunks/iRhbt-db.js +2 -0
  112. package/dist/web/_app/immutable/chunks/ouoe_5n-.js +3 -0
  113. package/dist/web/_app/immutable/chunks/xUpz_Ego.js +1 -0
  114. package/dist/web/_app/immutable/entry/app.tgSpN2zy.js +2 -0
  115. package/dist/web/_app/immutable/entry/start.CYDu1-na.js +1 -0
  116. package/dist/web/_app/immutable/nodes/0.O_BpuEVv.js +2 -0
  117. package/dist/web/_app/immutable/nodes/1.BCH0rc1N.js +1 -0
  118. package/dist/web/_app/immutable/nodes/10.BdAZrtUP.js +1 -0
  119. package/dist/web/_app/immutable/nodes/11.Dh4nuff7.js +1 -0
  120. package/dist/web/_app/immutable/nodes/12.DRrTb8yT.js +1 -0
  121. package/dist/web/_app/immutable/nodes/2.DhSERXR4.js +268 -0
  122. package/dist/web/_app/immutable/nodes/3.CEgK5MQt.js +5 -0
  123. package/dist/web/_app/immutable/nodes/4.BKj4xQOT.js +11 -0
  124. package/dist/web/_app/immutable/nodes/5.Be1XlKLD.js +1 -0
  125. package/dist/web/_app/immutable/nodes/6.Cen-Be5t.js +1 -0
  126. package/dist/web/_app/immutable/nodes/7.BiEGRqIm.js +1 -0
  127. package/dist/web/_app/immutable/nodes/8.Be00K7Ga.js +1 -0
  128. package/dist/web/_app/immutable/nodes/9.CnZz8P2s.js +1 -0
  129. package/dist/web/_app/version.json +1 -1
  130. package/dist/web/favicon.png +0 -0
  131. package/dist/web/index.html +12 -12
  132. package/package.json +1 -1
  133. package/dist/web/_app/immutable/assets/0.C5UfMb0y.css +0 -1
  134. package/dist/web/_app/immutable/assets/11.BysgAqqA.css +0 -1
  135. package/dist/web/_app/immutable/assets/12.Cv7_3lm3.css +0 -1
  136. package/dist/web/_app/immutable/assets/2.DF2alPoJ.css +0 -1
  137. package/dist/web/_app/immutable/assets/3.K3A_7PML.css +0 -1
  138. package/dist/web/_app/immutable/assets/ChevronLeft.DkKx6zzU.css +0 -1
  139. package/dist/web/_app/immutable/assets/ViewToolbar.SyuJrtFp.css +0 -1
  140. package/dist/web/_app/immutable/assets/WorkspaceView.CFCGULVf.css +0 -1
  141. package/dist/web/_app/immutable/chunks/B-8WiidI.js +0 -1
  142. package/dist/web/_app/immutable/chunks/B0UhiMeL.js +0 -1
  143. package/dist/web/_app/immutable/chunks/B1f42VKu.js +0 -1
  144. package/dist/web/_app/immutable/chunks/B584Plw_.js +0 -2
  145. package/dist/web/_app/immutable/chunks/B9rnDSMy.js +0 -1
  146. package/dist/web/_app/immutable/chunks/BK42PcDI.js +0 -1
  147. package/dist/web/_app/immutable/chunks/BMB60CtO.js +0 -1
  148. package/dist/web/_app/immutable/chunks/BQiOMhgK.js +0 -1
  149. package/dist/web/_app/immutable/chunks/BT1EtT-T.js +0 -4
  150. package/dist/web/_app/immutable/chunks/BUzEKAuP.js +0 -1
  151. package/dist/web/_app/immutable/chunks/BVXp0xQD.js +0 -1
  152. package/dist/web/_app/immutable/chunks/BaMdMBD6.js +0 -1
  153. package/dist/web/_app/immutable/chunks/Bjbdko8J.js +0 -1
  154. package/dist/web/_app/immutable/chunks/BvVwTRB5.js +0 -1
  155. package/dist/web/_app/immutable/chunks/CBiBLuiK.js +0 -1
  156. package/dist/web/_app/immutable/chunks/CH2ArZqX.js +0 -18
  157. package/dist/web/_app/immutable/chunks/COSWCWJc.js +0 -1
  158. package/dist/web/_app/immutable/chunks/CTh3LGxI.js +0 -1
  159. package/dist/web/_app/immutable/chunks/CVWN0my4.js +0 -5
  160. package/dist/web/_app/immutable/chunks/CXKVCl01.js +0 -2
  161. package/dist/web/_app/immutable/chunks/Ca1DAtQh.js +0 -2
  162. package/dist/web/_app/immutable/chunks/CcmvIPLE.js +0 -1
  163. package/dist/web/_app/immutable/chunks/CdbeIqEu.js +0 -1
  164. package/dist/web/_app/immutable/chunks/ChL9MLYT.js +0 -1
  165. package/dist/web/_app/immutable/chunks/CmQUXR-Q.js +0 -1
  166. package/dist/web/_app/immutable/chunks/D3dgfs75.js +0 -1
  167. package/dist/web/_app/immutable/chunks/D4zk90z_.js +0 -1
  168. package/dist/web/_app/immutable/chunks/DFYOFE3o.js +0 -1
  169. package/dist/web/_app/immutable/chunks/DGvzULxd.js +0 -2
  170. package/dist/web/_app/immutable/chunks/DXlELvfC.js +0 -1
  171. package/dist/web/_app/immutable/chunks/DckX78C-.js +0 -1
  172. package/dist/web/_app/immutable/chunks/Derf2KR0.js +0 -1
  173. package/dist/web/_app/immutable/chunks/IWO0A1w9.js +0 -1
  174. package/dist/web/_app/immutable/chunks/PHw7Ht7D.js +0 -1
  175. package/dist/web/_app/immutable/chunks/QtcHHeRi.js +0 -1
  176. package/dist/web/_app/immutable/chunks/_FGjjD9P.js +0 -1
  177. package/dist/web/_app/immutable/chunks/hXfpX92g.js +0 -1
  178. package/dist/web/_app/immutable/chunks/xNAOqGHi.js +0 -3
  179. package/dist/web/_app/immutable/entry/app.DZZk9FhL.js +0 -2
  180. package/dist/web/_app/immutable/entry/start.7xpU_KlK.js +0 -1
  181. package/dist/web/_app/immutable/nodes/0.BoP7EznM.js +0 -2
  182. package/dist/web/_app/immutable/nodes/1.D88C7B3J.js +0 -1
  183. package/dist/web/_app/immutable/nodes/10.-ZvCdP8I.js +0 -1
  184. package/dist/web/_app/immutable/nodes/11.BykVkP_y.js +0 -1
  185. package/dist/web/_app/immutable/nodes/12.D3wEsz-7.js +0 -1
  186. package/dist/web/_app/immutable/nodes/2.CIsXawC1.js +0 -266
  187. package/dist/web/_app/immutable/nodes/3.gLLCp7pi.js +0 -5
  188. package/dist/web/_app/immutable/nodes/4.DBRtBuw0.js +0 -11
  189. package/dist/web/_app/immutable/nodes/5.Cl_maDlW.js +0 -1
  190. package/dist/web/_app/immutable/nodes/6.BcAq3XZ9.js +0 -1
  191. package/dist/web/_app/immutable/nodes/7.BkUvTb7i.js +0 -1
  192. package/dist/web/_app/immutable/nodes/8.C1Hsaxzw.js +0 -1
  193. package/dist/web/_app/immutable/nodes/9.SeWvoOCo.js +0 -1
@@ -1 +0,0 @@
1
- import{as as cr,_ as re,ap as dr,N as ur,a4 as mr,k as fr,at as pr,p as br,f as gr,b as hr,c as Te,I as Ge,r as Pe}from"./CTh3LGxI.js";import"./DsnmJJEf.js";import{e as vr,a as Re,s as _e}from"./B584Plw_.js";import{c as yr,a as he,b as De}from"./Ca1DAtQh.js";import{p as te,i as xr,b as Ie,r as wr}from"./CcmvIPLE.js";function Vt(e,r,o=r){var t=new WeakSet;cr(e,"input",async n=>{var s=n?e.defaultValue:e.value;if(s=ve(e)?ye(s):s,o(s),re!==null&&t.add(re),await dr(),s!==(s=r())){var a=e.selectionStart,m=e.selectionEnd,d=e.value.length;if(e.value=s??"",m!==null){var f=e.value.length;a===m&&m===d&&f>d?(e.selectionStart=f,e.selectionEnd=f):(e.selectionStart=a,e.selectionEnd=Math.min(m,f))}}}),(fr&&e.defaultValue!==e.value||ur(r)==null&&e.value)&&(o(ve(e)?ye(e.value):e.value),re!==null&&t.add(re)),mr(()=>{var n=r();if(e===document.activeElement){var s=pr??re;if(t.has(s))return}ve(e)&&n===ye(e.value)||e.type==="date"&&!n&&!e.value||n!==e.value&&(e.value=n??"")})}function ve(e){var r=e.type;return r==="number"||r==="range"}function ye(e){return e===""?null:+e}const kr=(e,r)=>{const o=new Array(e.length+r.length);for(let t=0;t<e.length;t++)o[t]=e[t];for(let t=0;t<r.length;t++)o[e.length+t]=r[t];return o},Cr=(e,r)=>({classGroupId:e,validator:r}),Ke=(e=new Map,r=null,o)=>({nextPart:e,validators:r,classGroupId:o}),pe="-",Ne=[],zr="arbitrary..",Sr=e=>{const r=Mr(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:t}=e;return{getClassGroupId:a=>{if(a.startsWith("[")&&a.endsWith("]"))return Ar(a);const m=a.split(pe),d=m[0]===""&&m.length>1?1:0;return Ye(m,d,r)},getConflictingClassGroupIds:(a,m)=>{if(m){const d=t[a],f=o[a];return d?f?kr(f,d):d:f||Ne}return o[a]||Ne}}},Ye=(e,r,o)=>{if(e.length-r===0)return o.classGroupId;const n=e[r],s=o.nextPart.get(n);if(s){const f=Ye(e,r+1,s);if(f)return f}const a=o.validators;if(a===null)return;const m=r===0?e.join(pe):e.slice(r).join(pe),d=a.length;for(let f=0;f<d;f++){const z=a[f];if(z.validator(m))return z.classGroupId}},Ar=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const r=e.slice(1,-1),o=r.indexOf(":"),t=r.slice(0,o);return t?zr+t:void 0})(),Mr=e=>{const{theme:r,classGroups:o}=e;return Vr(o,r)},Vr=(e,r)=>{const o=Ke();for(const t in e){const n=e[t];Se(n,o,t,r)}return o},Se=(e,r,o,t)=>{const n=e.length;for(let s=0;s<n;s++){const a=e[s];Tr(a,r,o,t)}},Tr=(e,r,o,t)=>{if(typeof e=="string"){Gr(e,r,o);return}if(typeof e=="function"){Pr(e,r,o,t);return}Rr(e,r,o,t)},Gr=(e,r,o)=>{const t=e===""?r:qe(r,e);t.classGroupId=o},Pr=(e,r,o,t)=>{if(_r(e)){Se(e(t),r,o,t);return}r.validators===null&&(r.validators=[]),r.validators.push(Cr(o,e))},Rr=(e,r,o,t)=>{const n=Object.entries(e),s=n.length;for(let a=0;a<s;a++){const[m,d]=n[a];Se(d,qe(r,m),o,t)}},qe=(e,r)=>{let o=e;const t=r.split(pe),n=t.length;for(let s=0;s<n;s++){const a=t[s];let m=o.nextPart.get(a);m||(m=Ke(),o.nextPart.set(a,m)),o=m}return o},_r=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Ir=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,o=Object.create(null),t=Object.create(null);const n=(s,a)=>{o[s]=a,r++,r>e&&(r=0,t=o,o=Object.create(null))};return{get(s){let a=o[s];if(a!==void 0)return a;if((a=t[s])!==void 0)return n(s,a),a},set(s,a){s in o?o[s]=a:n(s,a)}}},we="!",Ee=":",Nr=[],Oe=(e,r,o,t,n)=>({modifiers:e,hasImportantModifier:r,baseClassName:o,maybePostfixModifierPosition:t,isExternal:n}),Er=e=>{const{prefix:r,experimentalParseClassName:o}=e;let t=n=>{const s=[];let a=0,m=0,d=0,f;const z=n.length;for(let k=0;k<z;k++){const G=n[k];if(a===0&&m===0){if(G===Ee){s.push(n.slice(d,k)),d=k+1;continue}if(G==="/"){f=k;continue}}G==="["?a++:G==="]"?a--:G==="("?m++:G===")"&&m--}const S=s.length===0?n:n.slice(d);let A=S,g=!1;S.endsWith(we)?(A=S.slice(0,-1),g=!0):S.startsWith(we)&&(A=S.slice(1),g=!0);const _=f&&f>d?f-d:void 0;return Oe(s,g,A,_)};if(r){const n=r+Ee,s=t;t=a=>a.startsWith(n)?s(a.slice(n.length)):Oe(Nr,!1,a,void 0,!0)}if(o){const n=t;t=s=>o({className:s,parseClassName:n})}return t},Or=e=>{const r=new Map;return e.orderSensitiveModifiers.forEach((o,t)=>{r.set(o,1e6+t)}),o=>{const t=[];let n=[];for(let s=0;s<o.length;s++){const a=o[s],m=a[0]==="[",d=r.has(a);m||d?(n.length>0&&(n.sort(),t.push(...n),n=[]),t.push(a)):n.push(a)}return n.length>0&&(n.sort(),t.push(...n)),t}},Lr=e=>({cache:Ir(e.cacheSize),parseClassName:Er(e),sortModifiers:Or(e),...Sr(e)}),jr=/\s+/,Fr=(e,r)=>{const{parseClassName:o,getClassGroupId:t,getConflictingClassGroupIds:n,sortModifiers:s}=r,a=[],m=e.trim().split(jr);let d="";for(let f=m.length-1;f>=0;f-=1){const z=m[f],{isExternal:S,modifiers:A,hasImportantModifier:g,baseClassName:_,maybePostfixModifierPosition:k}=o(z);if(S){d=z+(d.length>0?" "+d:d);continue}let G=!!k,O=t(G?_.substring(0,k):_);if(!O){if(!G){d=z+(d.length>0?" "+d:d);continue}if(O=t(_),!O){d=z+(d.length>0?" "+d:d);continue}G=!1}const j=A.length===0?"":A.length===1?A[0]:s(A).join(":"),I=g?j+we:j,K=I+O;if(a.indexOf(K)>-1)continue;a.push(K);const P=n(O,G);for(let B=0;B<P.length;++B){const J=P[B];a.push(I+J)}d=z+(d.length>0?" "+d:d)}return d},Br=(...e)=>{let r=0,o,t,n="";for(;r<e.length;)(o=e[r++])&&(t=Xe(o))&&(n&&(n+=" "),n+=t);return n},Xe=e=>{if(typeof e=="string")return e;let r,o="";for(let t=0;t<e.length;t++)e[t]&&(r=Xe(e[t]))&&(o&&(o+=" "),o+=r);return o},ke=(e,...r)=>{let o,t,n,s;const a=d=>{const f=r.reduce((z,S)=>S(z),e());return o=Lr(f),t=o.cache.get,n=o.cache.set,s=m,m(d)},m=d=>{const f=t(d);if(f)return f;const z=Fr(d,o);return n(d,z),z};return s=a,(...d)=>s(Br(...d))},Wr=[],V=e=>{const r=o=>o[e]||Wr;return r.isThemeGetter=!0,r},Je=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,He=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Ur=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Dr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Kr=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Yr=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,qr=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Xr=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Y=e=>Ur.test(e),b=e=>!!e&&!Number.isNaN(Number(e)),q=e=>!!e&&Number.isInteger(Number(e)),xe=e=>e.endsWith("%")&&b(e.slice(0,-1)),U=e=>Dr.test(e),Qe=()=>!0,Jr=e=>Kr.test(e)&&!Yr.test(e),Ae=()=>!1,Hr=e=>qr.test(e),Qr=e=>Xr.test(e),Zr=e=>!l(e)&&!i(e),$r=e=>X(e,er,Ae),l=e=>Je.test(e),H=e=>X(e,rr,Jr),Le=e=>X(e,lt,b),et=e=>X(e,or,Qe),rt=e=>X(e,tr,Ae),je=e=>X(e,Ze,Ae),tt=e=>X(e,$e,Qr),de=e=>X(e,sr,Hr),i=e=>He.test(e),oe=e=>Q(e,rr),ot=e=>Q(e,tr),Fe=e=>Q(e,Ze),st=e=>Q(e,er),nt=e=>Q(e,$e),ue=e=>Q(e,sr,!0),at=e=>Q(e,or,!0),X=(e,r,o)=>{const t=Je.exec(e);return t?t[1]?r(t[1]):o(t[2]):!1},Q=(e,r,o=!1)=>{const t=He.exec(e);return t?t[1]?r(t[1]):o:!1},Ze=e=>e==="position"||e==="percentage",$e=e=>e==="image"||e==="url",er=e=>e==="length"||e==="size"||e==="bg-size",rr=e=>e==="length",lt=e=>e==="number",tr=e=>e==="family-name",or=e=>e==="number"||e==="weight",sr=e=>e==="shadow",Ce=()=>{const e=V("color"),r=V("font"),o=V("text"),t=V("font-weight"),n=V("tracking"),s=V("leading"),a=V("breakpoint"),m=V("container"),d=V("spacing"),f=V("radius"),z=V("shadow"),S=V("inset-shadow"),A=V("text-shadow"),g=V("drop-shadow"),_=V("blur"),k=V("perspective"),G=V("aspect"),O=V("ease"),j=V("animate"),I=()=>["auto","avoid","all","avoid-page","page","left","right","column"],K=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],P=()=>[...K(),i,l],B=()=>["auto","hidden","clip","visible","scroll"],J=()=>["auto","contain","none"],u=()=>[i,l,d],R=()=>[Y,"full","auto",...u()],$=()=>[q,"none","subgrid",i,l],ee=()=>["auto",{span:["full",q,i,l]},q,i,l],Z=()=>[q,"auto",i,l],ne=()=>["auto","min","max","fr",i,l],h=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],v=()=>["start","end","center","stretch","center-safe","end-safe"],p=()=>["auto",...u()],y=()=>[Y,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...u()],x=()=>[Y,"screen","full","dvw","lvw","svw","min","max","fit",...u()],C=()=>[Y,"screen","full","lh","dvh","lvh","svh","min","max","fit",...u()],c=()=>[e,i,l],F=()=>[...K(),Fe,je,{position:[i,l]}],N=()=>["no-repeat",{repeat:["","x","y","space","round"]}],L=()=>["auto","cover","contain",st,$r,{size:[i,l]}],W=()=>[xe,oe,H],w=()=>["","none","full",f,i,l],M=()=>["",b,oe,H],ae=()=>["solid","dashed","dotted","double"],Me=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],T=()=>[b,xe,Fe,je],Ve=()=>["","none",_,i,l],le=()=>["none",b,i,l],ie=()=>["none",b,i,l],ge=()=>[b,i,l],ce=()=>[Y,"full",...u()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[U],breakpoint:[U],color:[Qe],container:[U],"drop-shadow":[U],ease:["in","out","in-out"],font:[Zr],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[U],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[U],shadow:[U],spacing:["px",b],text:[U],"text-shadow":[U],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Y,l,i,G]}],container:["container"],columns:[{columns:[b,l,i,m]}],"break-after":[{"break-after":I()}],"break-before":[{"break-before":I()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:P()}],overflow:[{overflow:B()}],"overflow-x":[{"overflow-x":B()}],"overflow-y":[{"overflow-y":B()}],overscroll:[{overscroll:J()}],"overscroll-x":[{"overscroll-x":J()}],"overscroll-y":[{"overscroll-y":J()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:R()}],"inset-x":[{"inset-x":R()}],"inset-y":[{"inset-y":R()}],start:[{"inset-s":R(),start:R()}],end:[{"inset-e":R(),end:R()}],"inset-bs":[{"inset-bs":R()}],"inset-be":[{"inset-be":R()}],top:[{top:R()}],right:[{right:R()}],bottom:[{bottom:R()}],left:[{left:R()}],visibility:["visible","invisible","collapse"],z:[{z:[q,"auto",i,l]}],basis:[{basis:[Y,"full","auto",m,...u()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[b,Y,"auto","initial","none",l]}],grow:[{grow:["",b,i,l]}],shrink:[{shrink:["",b,i,l]}],order:[{order:[q,"first","last","none",i,l]}],"grid-cols":[{"grid-cols":$()}],"col-start-end":[{col:ee()}],"col-start":[{"col-start":Z()}],"col-end":[{"col-end":Z()}],"grid-rows":[{"grid-rows":$()}],"row-start-end":[{row:ee()}],"row-start":[{"row-start":Z()}],"row-end":[{"row-end":Z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ne()}],"auto-rows":[{"auto-rows":ne()}],gap:[{gap:u()}],"gap-x":[{"gap-x":u()}],"gap-y":[{"gap-y":u()}],"justify-content":[{justify:[...h(),"normal"]}],"justify-items":[{"justify-items":[...v(),"normal"]}],"justify-self":[{"justify-self":["auto",...v()]}],"align-content":[{content:["normal",...h()]}],"align-items":[{items:[...v(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...v(),{baseline:["","last"]}]}],"place-content":[{"place-content":h()}],"place-items":[{"place-items":[...v(),"baseline"]}],"place-self":[{"place-self":["auto",...v()]}],p:[{p:u()}],px:[{px:u()}],py:[{py:u()}],ps:[{ps:u()}],pe:[{pe:u()}],pbs:[{pbs:u()}],pbe:[{pbe:u()}],pt:[{pt:u()}],pr:[{pr:u()}],pb:[{pb:u()}],pl:[{pl:u()}],m:[{m:p()}],mx:[{mx:p()}],my:[{my:p()}],ms:[{ms:p()}],me:[{me:p()}],mbs:[{mbs:p()}],mbe:[{mbe:p()}],mt:[{mt:p()}],mr:[{mr:p()}],mb:[{mb:p()}],ml:[{ml:p()}],"space-x":[{"space-x":u()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":u()}],"space-y-reverse":["space-y-reverse"],size:[{size:y()}],"inline-size":[{inline:["auto",...x()]}],"min-inline-size":[{"min-inline":["auto",...x()]}],"max-inline-size":[{"max-inline":["none",...x()]}],"block-size":[{block:["auto",...C()]}],"min-block-size":[{"min-block":["auto",...C()]}],"max-block-size":[{"max-block":["none",...C()]}],w:[{w:[m,"screen",...y()]}],"min-w":[{"min-w":[m,"screen","none",...y()]}],"max-w":[{"max-w":[m,"screen","none","prose",{screen:[a]},...y()]}],h:[{h:["screen","lh",...y()]}],"min-h":[{"min-h":["screen","lh","none",...y()]}],"max-h":[{"max-h":["screen","lh",...y()]}],"font-size":[{text:["base",o,oe,H]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[t,at,et]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",xe,l]}],"font-family":[{font:[ot,rt,r]}],"font-features":[{"font-features":[l]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[n,i,l]}],"line-clamp":[{"line-clamp":[b,"none",i,Le]}],leading:[{leading:[s,...u()]}],"list-image":[{"list-image":["none",i,l]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",i,l]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:c()}],"text-color":[{text:c()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ae(),"wavy"]}],"text-decoration-thickness":[{decoration:[b,"from-font","auto",i,H]}],"text-decoration-color":[{decoration:c()}],"underline-offset":[{"underline-offset":[b,"auto",i,l]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:u()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",i,l]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",i,l]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:F()}],"bg-repeat":[{bg:N()}],"bg-size":[{bg:L()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},q,i,l],radial:["",i,l],conic:[q,i,l]},nt,tt]}],"bg-color":[{bg:c()}],"gradient-from-pos":[{from:W()}],"gradient-via-pos":[{via:W()}],"gradient-to-pos":[{to:W()}],"gradient-from":[{from:c()}],"gradient-via":[{via:c()}],"gradient-to":[{to:c()}],rounded:[{rounded:w()}],"rounded-s":[{"rounded-s":w()}],"rounded-e":[{"rounded-e":w()}],"rounded-t":[{"rounded-t":w()}],"rounded-r":[{"rounded-r":w()}],"rounded-b":[{"rounded-b":w()}],"rounded-l":[{"rounded-l":w()}],"rounded-ss":[{"rounded-ss":w()}],"rounded-se":[{"rounded-se":w()}],"rounded-ee":[{"rounded-ee":w()}],"rounded-es":[{"rounded-es":w()}],"rounded-tl":[{"rounded-tl":w()}],"rounded-tr":[{"rounded-tr":w()}],"rounded-br":[{"rounded-br":w()}],"rounded-bl":[{"rounded-bl":w()}],"border-w":[{border:M()}],"border-w-x":[{"border-x":M()}],"border-w-y":[{"border-y":M()}],"border-w-s":[{"border-s":M()}],"border-w-e":[{"border-e":M()}],"border-w-bs":[{"border-bs":M()}],"border-w-be":[{"border-be":M()}],"border-w-t":[{"border-t":M()}],"border-w-r":[{"border-r":M()}],"border-w-b":[{"border-b":M()}],"border-w-l":[{"border-l":M()}],"divide-x":[{"divide-x":M()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":M()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ae(),"hidden","none"]}],"divide-style":[{divide:[...ae(),"hidden","none"]}],"border-color":[{border:c()}],"border-color-x":[{"border-x":c()}],"border-color-y":[{"border-y":c()}],"border-color-s":[{"border-s":c()}],"border-color-e":[{"border-e":c()}],"border-color-bs":[{"border-bs":c()}],"border-color-be":[{"border-be":c()}],"border-color-t":[{"border-t":c()}],"border-color-r":[{"border-r":c()}],"border-color-b":[{"border-b":c()}],"border-color-l":[{"border-l":c()}],"divide-color":[{divide:c()}],"outline-style":[{outline:[...ae(),"none","hidden"]}],"outline-offset":[{"outline-offset":[b,i,l]}],"outline-w":[{outline:["",b,oe,H]}],"outline-color":[{outline:c()}],shadow:[{shadow:["","none",z,ue,de]}],"shadow-color":[{shadow:c()}],"inset-shadow":[{"inset-shadow":["none",S,ue,de]}],"inset-shadow-color":[{"inset-shadow":c()}],"ring-w":[{ring:M()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:c()}],"ring-offset-w":[{"ring-offset":[b,H]}],"ring-offset-color":[{"ring-offset":c()}],"inset-ring-w":[{"inset-ring":M()}],"inset-ring-color":[{"inset-ring":c()}],"text-shadow":[{"text-shadow":["none",A,ue,de]}],"text-shadow-color":[{"text-shadow":c()}],opacity:[{opacity:[b,i,l]}],"mix-blend":[{"mix-blend":[...Me(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Me()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[b]}],"mask-image-linear-from-pos":[{"mask-linear-from":T()}],"mask-image-linear-to-pos":[{"mask-linear-to":T()}],"mask-image-linear-from-color":[{"mask-linear-from":c()}],"mask-image-linear-to-color":[{"mask-linear-to":c()}],"mask-image-t-from-pos":[{"mask-t-from":T()}],"mask-image-t-to-pos":[{"mask-t-to":T()}],"mask-image-t-from-color":[{"mask-t-from":c()}],"mask-image-t-to-color":[{"mask-t-to":c()}],"mask-image-r-from-pos":[{"mask-r-from":T()}],"mask-image-r-to-pos":[{"mask-r-to":T()}],"mask-image-r-from-color":[{"mask-r-from":c()}],"mask-image-r-to-color":[{"mask-r-to":c()}],"mask-image-b-from-pos":[{"mask-b-from":T()}],"mask-image-b-to-pos":[{"mask-b-to":T()}],"mask-image-b-from-color":[{"mask-b-from":c()}],"mask-image-b-to-color":[{"mask-b-to":c()}],"mask-image-l-from-pos":[{"mask-l-from":T()}],"mask-image-l-to-pos":[{"mask-l-to":T()}],"mask-image-l-from-color":[{"mask-l-from":c()}],"mask-image-l-to-color":[{"mask-l-to":c()}],"mask-image-x-from-pos":[{"mask-x-from":T()}],"mask-image-x-to-pos":[{"mask-x-to":T()}],"mask-image-x-from-color":[{"mask-x-from":c()}],"mask-image-x-to-color":[{"mask-x-to":c()}],"mask-image-y-from-pos":[{"mask-y-from":T()}],"mask-image-y-to-pos":[{"mask-y-to":T()}],"mask-image-y-from-color":[{"mask-y-from":c()}],"mask-image-y-to-color":[{"mask-y-to":c()}],"mask-image-radial":[{"mask-radial":[i,l]}],"mask-image-radial-from-pos":[{"mask-radial-from":T()}],"mask-image-radial-to-pos":[{"mask-radial-to":T()}],"mask-image-radial-from-color":[{"mask-radial-from":c()}],"mask-image-radial-to-color":[{"mask-radial-to":c()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":K()}],"mask-image-conic-pos":[{"mask-conic":[b]}],"mask-image-conic-from-pos":[{"mask-conic-from":T()}],"mask-image-conic-to-pos":[{"mask-conic-to":T()}],"mask-image-conic-from-color":[{"mask-conic-from":c()}],"mask-image-conic-to-color":[{"mask-conic-to":c()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:F()}],"mask-repeat":[{mask:N()}],"mask-size":[{mask:L()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",i,l]}],filter:[{filter:["","none",i,l]}],blur:[{blur:Ve()}],brightness:[{brightness:[b,i,l]}],contrast:[{contrast:[b,i,l]}],"drop-shadow":[{"drop-shadow":["","none",g,ue,de]}],"drop-shadow-color":[{"drop-shadow":c()}],grayscale:[{grayscale:["",b,i,l]}],"hue-rotate":[{"hue-rotate":[b,i,l]}],invert:[{invert:["",b,i,l]}],saturate:[{saturate:[b,i,l]}],sepia:[{sepia:["",b,i,l]}],"backdrop-filter":[{"backdrop-filter":["","none",i,l]}],"backdrop-blur":[{"backdrop-blur":Ve()}],"backdrop-brightness":[{"backdrop-brightness":[b,i,l]}],"backdrop-contrast":[{"backdrop-contrast":[b,i,l]}],"backdrop-grayscale":[{"backdrop-grayscale":["",b,i,l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[b,i,l]}],"backdrop-invert":[{"backdrop-invert":["",b,i,l]}],"backdrop-opacity":[{"backdrop-opacity":[b,i,l]}],"backdrop-saturate":[{"backdrop-saturate":[b,i,l]}],"backdrop-sepia":[{"backdrop-sepia":["",b,i,l]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":u()}],"border-spacing-x":[{"border-spacing-x":u()}],"border-spacing-y":[{"border-spacing-y":u()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",i,l]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[b,"initial",i,l]}],ease:[{ease:["linear","initial",O,i,l]}],delay:[{delay:[b,i,l]}],animate:[{animate:["none",j,i,l]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[k,i,l]}],"perspective-origin":[{"perspective-origin":P()}],rotate:[{rotate:le()}],"rotate-x":[{"rotate-x":le()}],"rotate-y":[{"rotate-y":le()}],"rotate-z":[{"rotate-z":le()}],scale:[{scale:ie()}],"scale-x":[{"scale-x":ie()}],"scale-y":[{"scale-y":ie()}],"scale-z":[{"scale-z":ie()}],"scale-3d":["scale-3d"],skew:[{skew:ge()}],"skew-x":[{"skew-x":ge()}],"skew-y":[{"skew-y":ge()}],transform:[{transform:[i,l,"","none","gpu","cpu"]}],"transform-origin":[{origin:P()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ce()}],"translate-x":[{"translate-x":ce()}],"translate-y":[{"translate-y":ce()}],"translate-z":[{"translate-z":ce()}],"translate-none":["translate-none"],accent:[{accent:c()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:c()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",i,l]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":u()}],"scroll-mx":[{"scroll-mx":u()}],"scroll-my":[{"scroll-my":u()}],"scroll-ms":[{"scroll-ms":u()}],"scroll-me":[{"scroll-me":u()}],"scroll-mbs":[{"scroll-mbs":u()}],"scroll-mbe":[{"scroll-mbe":u()}],"scroll-mt":[{"scroll-mt":u()}],"scroll-mr":[{"scroll-mr":u()}],"scroll-mb":[{"scroll-mb":u()}],"scroll-ml":[{"scroll-ml":u()}],"scroll-p":[{"scroll-p":u()}],"scroll-px":[{"scroll-px":u()}],"scroll-py":[{"scroll-py":u()}],"scroll-ps":[{"scroll-ps":u()}],"scroll-pe":[{"scroll-pe":u()}],"scroll-pbs":[{"scroll-pbs":u()}],"scroll-pbe":[{"scroll-pbe":u()}],"scroll-pt":[{"scroll-pt":u()}],"scroll-pr":[{"scroll-pr":u()}],"scroll-pb":[{"scroll-pb":u()}],"scroll-pl":[{"scroll-pl":u()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",i,l]}],fill:[{fill:["none",...c()]}],"stroke-w":[{stroke:[b,oe,H,Le]}],stroke:[{stroke:["none",...c()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},it=(e,{cacheSize:r,prefix:o,experimentalParseClassName:t,extend:n={},override:s={}})=>(se(e,"cacheSize",r),se(e,"prefix",o),se(e,"experimentalParseClassName",t),me(e.theme,s.theme),me(e.classGroups,s.classGroups),me(e.conflictingClassGroups,s.conflictingClassGroups),me(e.conflictingClassGroupModifiers,s.conflictingClassGroupModifiers),se(e,"orderSensitiveModifiers",s.orderSensitiveModifiers),fe(e.theme,n.theme),fe(e.classGroups,n.classGroups),fe(e.conflictingClassGroups,n.conflictingClassGroups),fe(e.conflictingClassGroupModifiers,n.conflictingClassGroupModifiers),nr(e,n,"orderSensitiveModifiers"),e),se=(e,r,o)=>{o!==void 0&&(e[r]=o)},me=(e,r)=>{if(r)for(const o in r)se(e,o,r[o])},fe=(e,r)=>{if(r)for(const o in r)nr(e,r,o)},nr=(e,r,o)=>{const t=r[o];t!==void 0&&(e[o]=e[o]?e[o].concat(t):t)},ct=(e,...r)=>typeof e=="function"?ke(Ce,e,...r):ke(()=>it(Ce(),e),...r),ar=ke(Ce);function Be(...e){return ar(vr(e))}var dt=/\s+/g,ut=e=>typeof e!="string"||!e?e:e.replace(dt," ").trim(),be=(...e)=>{const r=[],o=t=>{if(!t&&t!==0&&t!==0n)return;if(Array.isArray(t)){for(let s=0,a=t.length;s<a;s++)o(t[s]);return}const n=typeof t;if(n==="string"||n==="number"||n==="bigint"){if(n==="number"&&t!==t)return;r.push(String(t))}else if(n==="object"){const s=Object.keys(t);for(let a=0,m=s.length;a<m;a++){const d=s[a];t[d]&&r.push(d)}}};for(let t=0,n=e.length;t<n;t++){const s=e[t];s!=null&&o(s)}return r.length>0?ut(r.join(" ")):void 0},We=e=>e===!1?"false":e===!0?"true":e===0?"0":e,E=e=>{if(!e||typeof e!="object")return!0;for(const r in e)return!1;return!0},mt=(e,r)=>{if(e===r)return!0;if(!e||!r)return!1;const o=Object.keys(e),t=Object.keys(r);if(o.length!==t.length)return!1;for(let n=0;n<o.length;n++){const s=o[n];if(!t.includes(s)||e[s]!==r[s])return!1}return!0},ft=(e,r)=>{for(const o in r)if(Object.prototype.hasOwnProperty.call(r,o)){const t=r[o];o in e?e[o]=be(e[o],t):e[o]=t}return e},lr=(e,r)=>{for(let o=0;o<e.length;o++){const t=e[o];Array.isArray(t)?lr(t,r):t&&r.push(t)}},ir=(...e)=>{const r=[];lr(e,r);const o=[];for(let t=0;t<r.length;t++)r[t]&&o.push(r[t]);return o},ze=(e,r)=>{const o={};for(const t in e){const n=e[t];if(t in r){const s=r[t];Array.isArray(n)||Array.isArray(s)?o[t]=ir(s,n):typeof n=="object"&&typeof s=="object"&&n&&s?o[t]=ze(n,s):o[t]=s+" "+n}else o[t]=n}for(const t in r)t in e||(o[t]=r[t]);return o},pt={twMerge:!0,twMergeConfig:{}};function bt(){let e=null,r={},o=!1;return{get cachedTwMerge(){return e},set cachedTwMerge(t){e=t},get cachedTwMergeConfig(){return r},set cachedTwMergeConfig(t){r=t},get didTwMergeConfigChange(){return o},set didTwMergeConfigChange(t){o=t},reset(){e=null,r={},o=!1}}}var D=bt(),gt=e=>{const r=(t,n)=>{const{extend:s=null,slots:a={},variants:m={},compoundVariants:d=[],compoundSlots:f=[],defaultVariants:z={}}=t,S={...pt,...n},A=s?.base?be(s.base,t?.base):t?.base,g=s?.variants&&!E(s.variants)?ze(m,s.variants):m,_=s?.defaultVariants&&!E(s.defaultVariants)?{...s.defaultVariants,...z}:z;!E(S.twMergeConfig)&&!mt(S.twMergeConfig,D.cachedTwMergeConfig)&&(D.didTwMergeConfigChange=!0,D.cachedTwMergeConfig=S.twMergeConfig);const k=E(s?.slots),G=E(a)?{}:{base:be(t?.base,k&&s?.base),...a},O=k?G:ft({...s?.slots},E(G)?{base:t?.base}:G),j=E(s?.compoundVariants)?d:ir(s?.compoundVariants,d),I=P=>{if(E(g)&&E(a)&&k)return e(A,P?.class,P?.className)(S);if(j&&!Array.isArray(j))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof j}`);if(f&&!Array.isArray(f))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof f}`);const B=(h,v=g,p=null,y=null)=>{const x=v[h];if(!x||E(x))return null;const C=y?.[h]??P?.[h];if(C===null)return null;const c=We(C);if(typeof c=="object")return null;const F=_?.[h],N=c??We(F);return x[N||"false"]},J=()=>{if(!g)return null;const h=Object.keys(g),v=[];for(let p=0;p<h.length;p++){const y=B(h[p],g);y&&v.push(y)}return v},u=(h,v)=>{if(!g||typeof g!="object")return null;const p=[];for(const y in g){const x=B(y,g,h,v),C=h==="base"&&typeof x=="string"?x:x&&x[h];C&&p.push(C)}return p},R={};for(const h in P){const v=P[h];v!==void 0&&(R[h]=v)}const $=(h,v)=>{const p=typeof P?.[h]=="object"?{[h]:P[h]?.initial}:{};return{..._,...R,...p,...v}},ee=(h=[],v)=>{const p=[],y=h.length;for(let x=0;x<y;x++){const{class:C,className:c,...F}=h[x];let N=!0;const L=$(null,v);for(const W in F){const w=F[W],M=L[W];if(Array.isArray(w)){if(!w.includes(M)){N=!1;break}}else{if((w==null||w===!1)&&(M==null||M===!1))continue;if(M!==w){N=!1;break}}}N&&(C&&p.push(C),c&&p.push(c))}return p},Z=h=>{const v=ee(j,h);if(!Array.isArray(v))return v;const p={},y=e;for(let x=0;x<v.length;x++){const C=v[x];if(typeof C=="string")p.base=y(p.base,C)(S);else if(typeof C=="object")for(const c in C)p[c]=y(p[c],C[c])(S)}return p},ne=h=>{if(f.length<1)return null;const v={},p=$(null,h);for(let y=0;y<f.length;y++){const{slots:x=[],class:C,className:c,...F}=f[y];if(!E(F)){let N=!0;for(const L in F){const W=p[L],w=F[L];if(W===void 0||(Array.isArray(w)?!w.includes(W):w!==W)){N=!1;break}}if(!N)continue}for(let N=0;N<x.length;N++){const L=x[N];v[L]||(v[L]=[]),v[L].push([C,c])}}return v};if(!E(a)||!k){const h={};if(typeof O=="object"&&!E(O)){const v=e;for(const p in O)h[p]=y=>{const x=Z(y),C=ne(y);return v(O[p],u(p,y),x?x[p]:void 0,C?C[p]:void 0,y?.class,y?.className)(S)}}return h}return e(A,J(),ee(j),P?.class,P?.className)(S)},K=()=>{if(!(!g||typeof g!="object"))return Object.keys(g)};return I.variantKeys=K(),I.extend=s,I.base=A,I.slots=O,I.variants=g,I.defaultVariants=_,I.compoundSlots=f,I.compoundVariants=j,I};return{tv:r,createTV:t=>(n,s)=>r(n,s?ze(t,s):t)}},ht=e=>E(e)?ar:ct({...e,extend:{theme:e.theme,classGroups:e.classGroups,conflictingClassGroupModifiers:e.conflictingClassGroupModifiers,conflictingClassGroups:e.conflictingClassGroups,...e.extend}}),vt=(e,r)=>{const o=be(e);return!o||!(r?.twMerge??!0)?o:((!D.cachedTwMerge||D.didTwMergeConfigChange)&&(D.didTwMergeConfigChange=!1,D.cachedTwMerge=ht(D.cachedTwMergeConfig)),D.cachedTwMerge(o)||void 0)},yt=(...e)=>r=>vt(e,r),{tv:xt}=gt(yt);const Ue=xt({base:"inline-flex shrink-0 items-center justify-center gap-1.5 rounded-[var(--radius-sm)] font-normal whitespace-nowrap transition-[color,background] duration-150 cursor-pointer disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",variants:{variant:{default:"bg-[var(--color-bg-surface)] text-[var(--color-text-primary)] border border-[var(--color-border)] hover:bg-[var(--color-bg-hover)]",ghost:"bg-transparent text-[var(--color-text-secondary)] hover:text-[var(--color-text-primary)] hover:bg-[var(--color-bg-hover)]",outline:"bg-transparent text-[var(--color-text-secondary)] border border-[var(--color-border)] hover:bg-[var(--color-bg-hover)]",accent:"bg-[var(--color-accent)] text-[var(--color-accent-text,#ededef)] hover:bg-[var(--color-accent-hover)] border border-transparent disabled:opacity-100 disabled:bg-[var(--color-bg-hover)] disabled:text-[var(--color-accent-text-disabled)]",destructive:"bg-[var(--color-accent)] text-[var(--color-accent-text,#ededef)] hover:bg-[var(--color-accent-hover)] border border-transparent disabled:opacity-100 disabled:bg-[var(--color-bg-hover)] disabled:text-[var(--color-accent-text-disabled)]",link:"text-[var(--color-accent-fg)] underline-offset-4 hover:underline"},size:{default:"h-[var(--btn-height,28px)] px-2.5 text-[var(--btn-font-size,13px)]",sm:"h-[var(--btn-height-sm,24px)] px-2 text-[12px]",lg:"h-[var(--btn-height-lg,32px)] px-3 text-[var(--btn-font-size,13px)]",icon:"size-[var(--btn-height,28px)] p-0"}},defaultVariants:{variant:"default",size:"default"}});var wt=De("<a><!></a>"),kt=De("<button><!></button>");function Tt(e,r){br(r,!0);let o=te(r,"variant",3,"default"),t=te(r,"size",3,"default"),n=te(r,"ref",15,null),s=te(r,"href",3,void 0),a=te(r,"type",3,"button"),m=wr(r,["$$slots","$$events","$$legacy","class","variant","size","ref","href","type","disabled","children"]);var d=yr(),f=gr(d);{var z=A=>{var g=wt();Re(g,k=>({class:k,href:r.disabled?void 0:s(),"aria-disabled":r.disabled,role:r.disabled?"link":void 0,tabindex:r.disabled?-1:void 0,...m}),[()=>Be(Ue({variant:o(),size:t()}),r.class)]);var _=Te(g);_e(_,()=>r.children??Ge),Pe(g),Ie(g,k=>n(k),()=>n()),he(A,g)},S=A=>{var g=kt();Re(g,k=>({class:k,type:a(),disabled:r.disabled,...m}),[()=>Be(Ue({variant:o(),size:t()}),r.class)]);var _=Te(g);_e(_,()=>r.children??Ge),Pe(g),Ie(g,k=>n(k),()=>n()),he(A,g)};xr(f,A=>{s()?A(z):A(S,!1)})}he(e,d),hr()}export{Tt as B,Ue as a,Vt as b,Be as c,xt as t};
@@ -1 +0,0 @@
1
- import{g as a,s as o,e as S,V as z,p as L,l as h,d as p,a as M,c as C,n as T,r as b,b as $,m as v,t as N}from"./CTh3LGxI.js";import{apiFetch as R}from"./DFYOFE3o.js";import{r as O}from"./Ckiai0LF.js";import"./DsnmJJEf.js";import{i as P}from"./BJVJpWzz.js";import{a as A,s as V,f as B}from"./Ca1DAtQh.js";import{l as w,p as x,i as k}from"./CcmvIPLE.js";import{a as G}from"./B584Plw_.js";let c=S(null);const et={register(t){o(c,t,!0)},unregister(){o(c,null)},get available(){return a(c)!==null},open(t,e){a(c)?.(t,e)}},y=["#FE3C3C","#C06A6A","#CC7013","#AB8630","#5A9A08","#369770","#289795","#4289C4","#718599","#7C7CD9","#B267F3","#B269C0","#DC6CD4"],H="#7C7CD9";let d=S(z({}));async function g(){try{const{colors:t}=await R("/api/auth/colors");o(d,t,!0)}catch{}}function K(t,e){if(e==="agent")return H;const r=a(d)[String(t)];if(r)return r;const n=typeof t=="number"?t:parseInt(String(t),10),s=(Number.isFinite(n)?n:Y(String(t)))%y.length;return y[Math.abs(s)]}function Y(t){let e=0;for(let r=0;r<t.length;r++)e=(e<<5)-e+t.charCodeAt(r)|0;return e}g();O.addConnectHandler(()=>g());const rt={getColor:K,load:g,get colors(){return a(d)}},at=z({count:null});var j=B("<title> </title>"),q=B('<svg><!><path d="M24.59 16.59 17 24.17 17 4 15 4 15 24.17 7.41 16.59 6 18 16 28 26 18 24.59 16.59z"></path></svg>');function st(t,e){const r=w(e,["children","$$slots","$$events","$$legacy"]),n=w(r,["size","title"]);L(e,!1);const s=v(),m=v();let _=x(e,"size",8,16),i=x(e,"title",8,void 0);h(()=>(p(r),p(i())),()=>{o(s,r["aria-label"]||r["aria-labelledby"]||i())}),h(()=>(a(s),p(r)),()=>{o(m,{"aria-hidden":a(s)?void 0:!0,role:a(s)?"img":void 0,focusable:Number(r.tabindex)===0?!0:void 0})}),M(),P();var l=q();G(l,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:_(),height:_(),...a(m),...n}));var D=C(l);{var E=f=>{var u=j(),F=C(u,!0);b(u),N(()=>V(F,i())),A(f,u)};k(D,f=>{i()&&f(E)})}T(),b(l),A(t,l),$()}export{st as A,at as f,et as n,rt as u};
@@ -1 +0,0 @@
1
- import"./DsnmJJEf.js";import{i as V}from"./BJVJpWzz.js";import{p as $,l as f,s as c,d,g as i,a as A,c as m,n as H,r as _,b as U,m as u,t as k}from"./CTh3LGxI.js";import{a as v,s as B,f as b}from"./Ca1DAtQh.js";import{l as g,p as h,i as C}from"./CcmvIPLE.js";import{a as N}from"./B584Plw_.js";var P=b("<title> </title>"),R=b('<svg><!><path d="M6 18 7.41 19.41 15 11.83 15 30 17 30 17 11.83 24.59 19.41 26 18 16 8 6 18z"></path><path d="M6,8V4H26V8h2V4a2,2,0,0,0-2-2H6A2,2,0,0,0,4,4V8Z"></path></svg>');function F(x,t){const e=g(t,["children","$$slots","$$events","$$legacy"]),w=g(e,["size","title"]);$(t,!1);const a=u(),p=u();let n=h(t,"size",8,16),s=h(t,"title",8,void 0);f(()=>(d(e),d(s())),()=>{c(a,e["aria-label"]||e["aria-labelledby"]||s())}),f(()=>(i(a),d(e)),()=>{c(p,{"aria-hidden":i(a)?void 0:!0,role:i(a)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),A(),V();var r=R();N(r,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:n(),height:n(),...i(p),...w}));var y=m(r);{var z=l=>{var o=P(),M=m(o,!0);_(o),k(()=>B(M,s())),v(l,o)};C(y,l=>{s()&&l(z)})}H(2),_(r),v(x,r),U()}export{F as U};
@@ -1 +0,0 @@
1
- import"./DsnmJJEf.js";import{b as n,c as p}from"./DckX78C-.js";import{p as c,b as d}from"./CTh3LGxI.js";import{a as u,b as f}from"./Ca1DAtQh.js";import{a as v}from"./B584Plw_.js";import{p as a,b,r as m}from"./CcmvIPLE.js";var x=f("<input/>");function P(i,r){c(r,!0);let e=a(r,"ref",15,null),l=a(r,"value",15),s=m(r,["$$slots","$$events","$$legacy","class","ref","value"]);var o=x();v(o,t=>({class:t,...s}),[()=>p("h-[var(--input-height,32px)] w-full rounded-md border border-[var(--color-border)] bg-[var(--color-bg)] px-2.5 text-[14px] text-[var(--color-text-primary)] font-[inherit] outline-none transition-colors placeholder:text-[var(--color-text-tertiary)] focus:border-[var(--color-accent,#f04e4e)] disabled:cursor-not-allowed disabled:opacity-50",r.class)],void 0,void 0,void 0,!0),b(o,t=>e(t),()=>e()),n(o,l),u(i,o),d()}export{P as I};
@@ -1 +0,0 @@
1
- import"./DsnmJJEf.js";import{i as H}from"./BJVJpWzz.js";import{p as M,l as f,s as c,d as n,g as i,a as $,c as m,n as R,r as _,b as V,m as h,t as Z}from"./CTh3LGxI.js";import{a as u,s as k,f as b}from"./Ca1DAtQh.js";import{l as v,p as g,i as B}from"./CcmvIPLE.js";import{a as C}from"./B584Plw_.js";var N=b("<title> </title>"),P=b('<svg><!><path d="M12,10H6.78A11,11,0,0,1,27,16h2A13,13,0,0,0,6,7.68V4H4v8h8Z"></path><path d="M20,22h5.22A11,11,0,0,1,5,16H3a13,13,0,0,0,23,8.32V28h2V20H20Z"></path></svg>');function G(x,t){const e=v(t,["children","$$slots","$$events","$$legacy"]),w=v(e,["size","title"]);M(t,!1);const a=h(),d=h();let p=g(t,"size",8,16),s=g(t,"title",8,void 0);f(()=>(n(e),n(s())),()=>{c(a,e["aria-label"]||e["aria-labelledby"]||s())}),f(()=>(i(a),n(e)),()=>{c(d,{"aria-hidden":i(a)?void 0:!0,role:i(a)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),$(),H();var r=P();C(r,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:p(),height:p(),...i(d),...w}));var y=m(r);{var z=l=>{var o=N(),A=m(o,!0);_(o),Z(()=>k(A,s())),u(l,o)};B(y,l=>{s()&&l(z)})}R(2),_(r),u(x,r),V()}export{G as R};
@@ -1 +0,0 @@
1
- import"./DsnmJJEf.js";import{p as Q,l as te,s as a,d as W,g as t,a as we,c as u,n as ke,r as f,b as Y,m as ae,t as L,f as ie,h as _,aq as xe,e as A,V as Se,ar as Te}from"./CTh3LGxI.js";import{a as y,s as D,f as oe,d as ne,c as le,g as E,b as V,e as K}from"./Ca1DAtQh.js";import{a as $e,b as se,c as Ce,r as ze,d as Me,s as Ve}from"./B584Plw_.js";import{l as re,p as G,i as $,b as Re}from"./CcmvIPLE.js";import{f as qe,e as He,i as Ae}from"./BT1EtT-T.js";import{b as Ee,B as Ie}from"./DckX78C-.js";import{g as ce}from"./CBiBLuiK.js";import{i as de}from"./BJVJpWzz.js";import{S as Le,a as De,e as Be,f as Fe}from"./hXfpX92g.js";import{apiFetch as Ke}from"./DFYOFE3o.js";import{m}from"./BVXp0xQD.js";var Ue=oe("<title> </title>"),Ne=oe('<svg><!><path d="M17.74,30,16,29l4-7h6a2,2,0,0,0,2-2V8a2,2,0,0,0-2-2H6A2,2,0,0,0,4,8V20a2,2,0,0,0,2,2h9v2H6a4,4,0,0,1-4-4V8A4,4,0,0,1,6,4H26a4,4,0,0,1,4,4V20a4,4,0,0,1-4,4H21.16Z"></path><path d="M8 10H24V12H8z"></path><path d="M8 16H18V18H8z"></path></svg>');function Pe(p,o){const g=re(o,["children","$$slots","$$events","$$legacy"]),R=re(g,["size","title"]);Q(o,!1);const v=ae(),h=ae();let n=G(o,"size",8,16),r=G(o,"title",8,void 0);te(()=>(W(g),W(r())),()=>{a(v,g["aria-label"]||g["aria-labelledby"]||r())}),te(()=>(t(v),W(g)),()=>{a(h,{"aria-hidden":t(v)?void 0:!0,role:t(v)?"img":void 0,focusable:Number(g.tabindex)===0?!0:void 0})}),we(),de();var l=Ne();$e(l,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:n(),height:n(),...t(h),...R}));var s=u(l);{var k=C=>{var z=Ue(),q=u(z,!0);f(z),L(()=>D(q,r())),y(C,z)};$(s,C=>{r()&&C(k)})}ke(3),f(l),y(p,l),Y()}function Oe(p){const o=new URLSearchParams;return p.q&&o.set("q",p.q),p.type&&o.set("type",p.type),p.tags&&o.set("tags",p.tags),p.repos&&o.set("repos",p.repos),Ke(`/api/search?${o.toString()}`)}var We=V('<span class="recording-title svelte-65kpoi"> </span>'),Ge=V('<button class="stop-btn svelte-65kpoi" title="Stop recording"><!></button>'),Qe=V('<span class="stopping-text svelte-65kpoi">Stopping...</span>'),Ye=V('<div class="recording-indicator svelte-65kpoi"><button class="recording-info svelte-65kpoi" title="Go to meeting"><span class="recording-dot svelte-65kpoi"></span> <span class="recording-time svelte-65kpoi"> </span> <!></button> <!></div>');function Ze(p,o){Q(o,!1);function g(r){const l=Math.floor(r/60),s=r%60;return`${l}:${s.toString().padStart(2,"0")}`}function R(){m.activeRepo&&m.activeEntityId&&ce(`/${m.activeRepo}/meeting/${m.activeEntityId}`)}de();var v=le(),h=ie(v);{var n=r=>{var l=Ye(),s=u(l),k=_(u(s),2),C=u(k,!0);f(k);var z=_(k,2);{var q=c=>{var d=We(),H=u(d,!0);f(d),L(()=>D(H,m.meetingTitle)),y(c,d)};$(z,c=>{m.meetingTitle&&c(q)})}f(s);var I=_(s,2);{var U=c=>{var d=Ge(),H=u(d);Le(H,{size:14}),f(d),E("click",d,()=>m.stopRecording()),y(c,d)},N=c=>{var d=Qe();y(c,d)};$(I,c=>{m.state==="recording"?c(U):c(N,!1)})}f(l),L(c=>D(C,c),[()=>g(m.elapsedSeconds)]),E("click",s,R),y(r,l)};$(h,r=>{(m.state==="recording"||m.state==="stopping")&&r(n)})}y(p,v),Y()}ne(["click"]);var je=V('<button><span class="search-result-dot svelte-r6dy5f"></span> <span class="search-result-name svelte-r6dy5f"> </span> <span class="search-result-type svelte-r6dy5f"> </span></button>'),Je=V('<div class="search-dropdown svelte-r6dy5f"></div>'),Xe=V('<div class="top-bar svelte-r6dy5f"><div class="bar-left svelte-r6dy5f"></div> <div><!> <input class="search-input svelte-r6dy5f" type="text"/> <!></div> <div class="bar-right svelte-r6dy5f"><!> <!> <!></div></div>');function ft(p,o){Q(o,!0),G(o,"activeView",3,"entity");const g=xe("chat");function R(e){ce(e,{noScroll:!0})}let v=A(null),h=A(""),n=A(Se([])),r=A(!1),l=A(!1),s=A(-1),k=null;function C(){const e=t(h).trim();if(!e){a(n,[],!0),a(r,!1),a(s,-1);return}k&&clearTimeout(k),k=setTimeout(async()=>{try{const b=await Oe({q:e}),S=e.toLowerCase();a(n,b.filter(i=>!i.id.toLowerCase().startsWith("readme")).map(i=>{const T=i.data?.name||i.id.replace(/-/g," ").replace(/\b\w/g,F=>F.toUpperCase()),w=T.toLowerCase(),B=i.id.toLowerCase();let M=0;return w===S?M=4:w.startsWith(S)?M=3:(w.includes(S)||B.includes(S))&&(M=2),{id:i.id,entityType:i.entityType,name:T,repo:i.repoName??i.path.split("/")[0],_score:M,_updated:i.data?.updated_at??""}}).sort((i,T)=>T._score!==i._score?T._score-i._score:T._updated.localeCompare(i._updated)),!0),a(r,t(n).length>0),a(s,-1)}catch{a(n,[],!0),a(r,!1)}},150)}function z(e){e.key==="ArrowDown"?(e.preventDefault(),a(s,Math.min(t(s)+1,t(n).length-1),!0)):e.key==="ArrowUp"?(e.preventDefault(),a(s,Math.max(t(s)-1,-1),!0)):e.key==="Enter"?(e.preventDefault(),t(s)>=0&&t(n)[t(s)]?q(t(n)[t(s)]):t(h).trim()&&(R(`/workspace/search?q=${encodeURIComponent(t(h).trim())}`),I())):e.key==="Escape"&&(I(),t(v)?.blur())}function q(e){I(),R(`/${e.repo}/${e.entityType}/${e.id}`)}function I(){a(h,""),a(n,[],!0),a(r,!1),a(s,-1)}function U(){a(h,""),a(n,[],!0),a(s,-1),a(l,!1),setTimeout(()=>{a(r,!1)},150)}function N(){a(l,!0),t(n).length>0&&a(r,!0)}var c=Xe();K("keydown",Te,e=>{(e.metaKey||e.ctrlKey)&&e.key==="k"&&(e.preventDefault(),t(v)?.focus())});var d=_(u(c),2);let H;var Z=u(d);{var pe=e=>{De(e,{size:14})};$(Z,e=>{t(l)||e(pe)})}var x=_(Z,2);ze(x),Re(x,e=>a(v,e),()=>t(v));var fe=_(x,2);{var ve=e=>{var b=Je();He(b,21,()=>t(n),Ae,(S,i,T)=>{var w=je();let B;var M=u(w);let F;var P=_(M,2),_e=u(P,!0);f(P);var ee=_(P,2),ye=u(ee,!0);f(ee),f(w),L((O,be)=>{B=se(w,1,"search-result svelte-r6dy5f",null,B,{selected:T===t(s)}),F=Me(M,"",F,O),D(_e,t(i).name),D(ye,be)},[()=>({background:Be(t(i).entityType)}),()=>Fe(t(i).entityType)]),E("mousedown",w,O=>{O.preventDefault(),q(t(i))}),K("mouseenter",w,()=>{a(s,T,!0)}),y(S,w)}),f(b),y(e,b)};$(fe,e=>{t(r)&&e(ve)})}f(d);var j=_(d,2),J=u(j);{var ue=e=>{Ze(e,{})};$(J,e=>{qe.meetingCapture&&m.state!=="idle"&&e(ue)})}var X=_(J,2);{var he=e=>{var b=le(),S=ie(b);Ve(S,()=>o.right),y(e,b)};$(X,e=>{o.right&&e(he)})}var me=_(X,2);{var ge=e=>{Ie(e,{variant:"accent",size:"icon",class:"chat-toggle",title:"Open Agent",get onclick(){return g.toggle},children:(b,S)=>{Pe(b,{size:14})},$$slots:{default:!0}})};$(me,e=>{g.open||e(ge)})}f(j),f(c),L(e=>{H=se(d,1,"search-area svelte-r6dy5f",null,H,{focused:t(l)}),Ce(x,"placeholder",e)},[()=>t(l)?"":`Search entries... (${navigator?.platform?.includes("Mac")?"⌘":"Ctrl+"}K)`]),E("click",d,()=>t(v)?.focus()),E("input",x,C),E("keydown",x,z),K("blur",x,U),K("focus",x,N),Ee(x,()=>t(h),e=>a(h,e)),y(p,c),Y()}ne(["click","input","keydown","mousedown"]);export{ft as V,Oe as s};
@@ -1 +0,0 @@
1
- import"./DsnmJJEf.js";import{i as k}from"./BJVJpWzz.js";import{p as D,l as p,s as f,d,g as s,a as O,c as g,n as L,r as _,b as w,m as T,t as I}from"./CTh3LGxI.js";import{a as A,s as Y,f as N}from"./Ca1DAtQh.js";import{l as b,p as S,i as R}from"./CcmvIPLE.js";import{a as x}from"./B584Plw_.js";var B=N("<title> </title>"),M=N('<svg><!><path d="M29,27.5859l-7.5521-7.5521a11.0177,11.0177,0,1,0-1.4141,1.4141L27.5859,29ZM4,13a9,9,0,1,1,9,9A9.01,9.01,0,0,1,4,13Z"></path></svg>');function se(e,o){const a=b(o,["children","$$slots","$$events","$$legacy"]),C=b(a,["size","title"]);D(o,!1);const r=T(),u=T();let m=S(o,"size",8,16),i=S(o,"title",8,void 0);p(()=>(d(a),d(i())),()=>{f(r,a["aria-label"]||a["aria-labelledby"]||i())}),p(()=>(s(r),d(a)),()=>{f(u,{"aria-hidden":s(r)?void 0:!0,role:s(r)?"img":void 0,focusable:Number(a.tabindex)===0?!0:void 0})}),O(),k();var n=M();x(n,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:m(),height:m(),...s(u),...C}));var v=g(n);{var E=c=>{var l=B(),h=g(l,!0);_(l),I(()=>Y(h,i())),A(c,l)};R(v,c=>{i()&&c(E)})}L(),_(n),A(e,n),w()}const $=[{name:"Red",color:"#FE3C3C"},{name:"Rose",color:"#C06A6A"},{name:"Orange",color:"#CC7013"},{name:"Sand",color:"#AB8630"},{name:"Pistachio",color:"#5A9A08"},{name:"Mint",color:"#369770"},{name:"Teal",color:"#289795"},{name:"Sky",color:"#4289C4"},{name:"Slate",color:"#718599"},{name:"Violet",color:"#7C7CD9"},{name:"Lilac",color:"#B267F3"},{name:"Orchid",color:"#B269C0"},{name:"Pink",color:"#DC6CD4"}],F=["note","meeting","task"],V=new Set(F);function W(e){return V.has(e)}const Z={person:["Name","Role","Status","Email","Location","Organization"],organization:["Name","Category","Status","Industry","Website"],role:["Name","Department","Category","Status"],"practice-area":["Name"],project:["Name","Category","Project type","Client","Status","Start date","End date"],meeting:["Name","Date","Attendees","Location"],decision:["Name","Status"],task:["Name","Status","Priority","Assignee","Due date"],document:["Name","Category","Status"],deck:["Name","Audience","Status","Presented at"],dataset:["Name","Schema (typed columns)"],reference:["Name","Source","Link"],note:["Name"],deliverable:["Name","Project","Status","Due date"],publication:["Name","Platform","Status","URL"],deal:["Name","Client","Contact","Stage","Deal value","Expected close"],process:["Name","Owner"],guideline:["Name"],"case-study":["Name","Client","Date range","Status"],skill:["Name","Description","Loading (eager / on-demand)"]};function H(e){return Z[e]??[]}const z={person:"An individual — team member, client, or contact",organization:"A company, client, vendor, or partner",role:"A role definition or open position","practice-area":"A firm capability or discipline",project:"A client engagement or internal initiative",meeting:"A meeting, call, or workshop",decision:"A recorded decision with context and rationale",task:"An action item or to-do",document:"An authored document",deck:"A presentation or slide deck",dataset:"Structured tabular data",reference:"An external resource or piece of inspiration",note:"A freeform note or thought",deliverable:"A scoped output promised to a client",publication:"Content published externally",deal:"A pre-project sales opportunity",process:"A workflow, SOP, or methodology",guideline:"A standard or best practice","case-study":"A portfolio narrative",skill:"Reusable agent instructions"},U=Object.freeze(Object.keys(z));new Set(U);const t=Object.fromEntries($.map(e=>[e.name,e.color])),j={project:t.Sky,organization:t.Slate,person:t.Rose,meeting:t.Teal,deal:t.Sand,deliverable:t.Orange,decision:t.Orchid,dataset:t.Slate,process:t.Lilac,deck:t.Teal,document:t.Pink,note:t.Sand,publication:t.Orange,reference:t.Mint,task:t.Lilac,role:t.Rose,"practice-area":t.Lilac,"case-study":t.Pistachio,guideline:t.Pistachio,skill:t.Pistachio},K={person:"UserAvatar",organization:"Enterprise",role:"UserProfile","practice-area":"Industry",project:"IbmLpa",meeting:"Calendar",decision:"Flow",task:"Task",document:"Document",deck:"PresentationFile",dataset:"Data_1",reference:"Bookmark",note:"Stickies",deliverable:"DeliveryParcel",publication:"Book",deal:"Currency",process:"Process",guideline:"Policy","case-study":"Portfolio",skill:"Rocket"},y="#5c5c66",P="Document";function G(e){return e?j[e]??y:y}function q(e){return e?K[e]??P:P}const J={person:"people","practice-area":"practice-areas","case-study":"case-studies",process:"processes"};function ce(e){return J[e]??e+"s"}function Q(e){return e.replace(/-/g," ").replace(/\b\w/g,o=>o.toUpperCase())}const le=Object.keys(j),de=Object.freeze(U.map(e=>({type:e,label:Q(e),description:z[e]??"",icon:q(e),color:G(e),isDefaultBasic:W(e),fields:H(e)})));var X=N("<title> </title>"),ee=N('<svg><!><path d="M24,6H8A2,2,0,0,0,6,8V24a2,2,0,0,0,2,2H24a2,2,0,0,0,2-2V8a2,2,0,0,0-2-2Z"></path></svg>');function ue(e,o){const a=b(o,["children","$$slots","$$events","$$legacy"]),C=b(a,["size","title"]);D(o,!1);const r=T(),u=T();let m=S(o,"size",8,16),i=S(o,"title",8,void 0);p(()=>(d(a),d(i())),()=>{f(r,a["aria-label"]||a["aria-labelledby"]||i())}),p(()=>(s(r),d(a)),()=>{f(u,{"aria-hidden":s(r)?void 0:!0,role:s(r)?"img":void 0,focusable:Number(a.tabindex)===0?!0:void 0})}),O(),k();var n=ee();x(n,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:m(),height:m(),...s(u),...C}));var v=g(n);{var E=c=>{var l=X(),h=g(l,!0);_(l),I(()=>Y(h,i())),A(c,l)};R(v,c=>{i()&&c(E)})}L(),_(n),A(e,n),w()}export{le as A,de as C,ue as S,se as a,q as b,$ as c,G as e,Q as f,ce as p};
@@ -1,3 +0,0 @@
1
- import"./DsnmJJEf.js";import{i as Ot}from"./BJVJpWzz.js";import{br as Fe,j as Ee,k as Ve,o as He,p as R,l as gt,s as w,d as lt,g as s,a as Mt,c as D,n as Tt,r as F,b as A,m as vt,t as ct,u as y,i as Dt,N as Ke,e as U,f as C,I as j,bs as Be,P as ze,h as mt,V as Ue}from"./CTh3LGxI.js";import{a as c,s as Ct,f as bt,p as st,c as P,b as V,m as Le,u as je,o as qe,t as We}from"./Ca1DAtQh.js";import{B as Ge,l as yt,p as d,i as E,r as B,s as J}from"./CcmvIPLE.js";import{a as L,s as x,f as Ut,b as Lt}from"./B584Plw_.js";import{c as $}from"./B1f42VKu.js";import{C as xt,a as nt,O as dt,w as ot,S as wt,E as Pt,P as Kt,f as _,V as pe,c as Ft,h as jt,j as it,m as G,A as Ye,W as Qe,X as Je,D as Et,Y as Xe,L as ht,K as pt,Z as Rt,_ as qt,$ as Wt,a0 as Gt,a1 as Yt,a2 as ge,a3 as ve,a4 as me,a5 as ye,d as At,o as Bt,a6 as be,M as Ze,N as $e,a7 as tr,a8 as er,a9 as rr,aa as or,ab as sr,ac as nr,ad as ir,ae as ar,af as lr,ag as dr,ah as ur,ai as hr,aj as cr,ak as fr,al as pr,am as gr,an as vr,ao as mr,ap as he,J as _e,aq as yr,ar as Ce,n as W,k as we,l as Pe,as as br,at as _r,t as Cr,v as wr,x as Pr,y as Nr,z as ce,au as kr,av as Sr,p as Ne,aw as Ir,ax as Or,F as ke,ay as xr,az as Rr,s as Ar,r as Mr}from"./oIb8yPFh.js";import{c as ut}from"./DckX78C-.js";import{r as Qt}from"./Ckiai0LF.js";import{w as Tr}from"./ChL9MLYT.js";import{e as Dr}from"./BT1EtT-T.js";const Fr=Symbol("NaN");function Er(n,t,e){Ve&&He();var r=new Ge(n),o=!Fe();Ee(()=>{var i=t();i!==i&&(i=Fr),o&&i!==null&&typeof i=="object"&&(i={}),r.ensure(i,e)})}var Vr=bt("<title> </title>"),Hr=bt('<svg><!><path d="M22 16 12 26 10.6 24.6 19.2 16 10.6 7.4 12 6z"></path></svg>');function _s(n,t){const e=yt(t,["children","$$slots","$$events","$$legacy"]),r=yt(e,["size","title"]);R(t,!1);const o=vt(),i=vt();let l=d(t,"size",8,16),u=d(t,"title",8,void 0);gt(()=>(lt(e),lt(u())),()=>{w(o,e["aria-label"]||e["aria-labelledby"]||u())}),gt(()=>(s(o),lt(e)),()=>{w(i,{"aria-hidden":s(o)?void 0:!0,role:s(o)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),Mt(),Ot();var f=Hr();L(f,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:l(),height:l(),...s(i),...r}));var b=D(f);{var v=g=>{var p=Vr(),a=D(p,!0);F(p),ct(()=>Ct(a,u())),c(g,p)};E(b,g=>{u()&&g(v)})}Tt(),F(f),c(n,f),A()}var Kr=bt("<title> </title>"),Br=bt('<svg><!><path d="M26,4h-4V2h-2v2h-8V2h-2v2H6C4.9,4,4,4.9,4,6v20c0,1.1,0.9,2,2,2h20c1.1,0,2-0.9,2-2V6C28,4.9,27.1,4,26,4z M26,26H6V12h20 V26z M26,10H6V6h4v2h2V6h8v2h2V6h4V10z"></path></svg>');function Cs(n,t){const e=yt(t,["children","$$slots","$$events","$$legacy"]),r=yt(e,["size","title"]);R(t,!1);const o=vt(),i=vt();let l=d(t,"size",8,16),u=d(t,"title",8,void 0);gt(()=>(lt(e),lt(u())),()=>{w(o,e["aria-label"]||e["aria-labelledby"]||u())}),gt(()=>(s(o),lt(e)),()=>{w(i,{"aria-hidden":s(o)?void 0:!0,role:s(o)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),Mt(),Ot();var f=Br();L(f,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:l(),height:l(),...s(i),...r}));var b=D(f);{var v=g=>{var p=Kr(),a=D(p,!0);F(p),ct(()=>Ct(a,u())),c(g,p)};E(b,g=>{u()&&g(v)})}Tt(),F(f),c(n,f),A()}var zr=bt("<title> </title>"),Ur=bt('<svg><!><path d="M16 22 6 12 7.4 10.6 16 19.2 24.6 10.6 26 12z"></path></svg>');function Lr(n,t){const e=yt(t,["children","$$slots","$$events","$$legacy"]),r=yt(e,["size","title"]);R(t,!1);const o=vt(),i=vt();let l=d(t,"size",8,16),u=d(t,"title",8,void 0);gt(()=>(lt(e),lt(u())),()=>{w(o,e["aria-label"]||e["aria-labelledby"]||u())}),gt(()=>(s(o),lt(e)),()=>{w(i,{"aria-hidden":s(o)?void 0:!0,role:s(o)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),Mt(),Ot();var f=Ur();L(f,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:l(),height:l(),...s(i),...r}));var b=D(f);{var v=g=>{var p=zr(),a=D(p,!0);F(p),ct(()=>Ct(a,u())),c(g,p)};E(b,g=>{u()&&g(v)})}Tt(),F(f),c(n,f),A()}class jr{#t=()=>{};#e=y(()=>this.#t());constructor(t,e){let r;e!==void 0&&(r=e),this.#t=()=>{try{return r}finally{r=t()}}}get current(){return s(this.#e)}}function qr(n){Dt(()=>Ke(()=>n()))}const Wr=jt({component:"dialog",parts:["content","trigger","overlay","title","description","close","cancel","action"]}),ft=new xt("Dialog.Root | AlertDialog.Root");class Jt{static create(t){const e=ft.getOr(null);return ft.set(new Jt(t,e))}opts;#t=U(null);get triggerNode(){return s(this.#t)}set triggerNode(t){w(this.#t,t,!0)}#e=U(null);get contentNode(){return s(this.#e)}set contentNode(t){w(this.#e,t,!0)}#r=U(null);get overlayNode(){return s(this.#r)}set overlayNode(t){w(this.#r,t,!0)}#o=U(null);get descriptionNode(){return s(this.#o)}set descriptionNode(t){w(this.#o,t,!0)}#s=U(void 0);get contentId(){return s(this.#s)}set contentId(t){w(this.#s,t,!0)}#n=U(void 0);get titleId(){return s(this.#n)}set titleId(t){w(this.#n,t,!0)}#i=U(void 0);get triggerId(){return s(this.#i)}set triggerId(t){w(this.#i,t,!0)}#a=U(void 0);get descriptionId(){return s(this.#a)}set descriptionId(t){w(this.#a,t,!0)}#l=U(null);get cancelNode(){return s(this.#l)}set cancelNode(t){w(this.#l,t,!0)}#d=U(0);get nestedOpenCount(){return s(this.#d)}set nestedOpenCount(t){w(this.#d,t,!0)}depth;parent;contentPresence;overlayPresence;constructor(t,e){this.opts=t,this.parent=e,this.depth=e?e.depth+1:0,this.handleOpen=this.handleOpen.bind(this),this.handleClose=this.handleClose.bind(this),this.contentPresence=new Kt({ref:_(()=>this.contentNode),open:this.opts.open,enabled:!0,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new Kt({ref:_(()=>this.overlayNode),open:this.opts.open,enabled:!0}),ot(()=>this.opts.open.current,r=>{this.parent&&(r?this.parent.incrementNested():this.parent.decrementNested())},{lazy:!0}),pe(()=>{this.opts.open.current&&this.parent?.decrementNested()})}handleOpen(){this.opts.open.current||(this.opts.open.current=!0)}handleClose(){this.opts.open.current&&(this.opts.open.current=!1)}getBitsAttr=t=>Wr.getAttr(t,this.opts.variant.current);incrementNested(){this.nestedOpenCount++,this.parent?.incrementNested()}decrementNested(){this.nestedOpenCount!==0&&(this.nestedOpenCount--,this.parent?.decrementNested())}#u=y(()=>({"data-state":Ft(this.opts.open.current)}));get sharedProps(){return s(this.#u)}set sharedProps(t){w(this.#u,t)}}class Xt{static create(t){return new Xt(t,ft.get())}opts;root;attachment;constructor(t,e){this.opts=t,this.root=e,this.attachment=nt(this.opts.ref),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}onclick(t){this.opts.disabled.current||t.button>0||this.root.handleClose()}onkeydown(t){this.opts.disabled.current||(t.key===wt||t.key===Pt)&&(t.preventDefault(),this.root.handleClose())}#t=y(()=>({id:this.opts.id.current,[this.root.getBitsAttr(this.opts.variant.current)]:"",onclick:this.onclick,onkeydown:this.onkeydown,disabled:this.opts.disabled.current?!0:void 0,tabindex:0,...this.root.sharedProps,...this.attachment}));get props(){return s(this.#t)}set props(t){w(this.#t,t)}}class Se{static create(t){return new Se(t,ft.get())}opts;root;attachment;constructor(t,e){this.opts=t,this.root=e,this.attachment=nt(this.opts.ref)}#t=y(()=>({id:this.opts.id.current,[this.root.getBitsAttr("action")]:"",...this.root.sharedProps,...this.attachment}));get props(){return s(this.#t)}set props(t){w(this.#t,t)}}class Zt{static create(t){return new Zt(t,ft.get())}opts;root;attachment;constructor(t,e){this.opts=t,this.root=e,this.root.titleId=this.opts.id.current,this.attachment=nt(this.opts.ref),ot.pre(()=>this.opts.id.current,r=>{this.root.titleId=r})}#t=y(()=>({id:this.opts.id.current,role:"heading","aria-level":this.opts.level.current,[this.root.getBitsAttr("title")]:"",...this.root.sharedProps,...this.attachment}));get props(){return s(this.#t)}set props(t){w(this.#t,t)}}class Ie{static create(t){return new Ie(t,ft.get())}opts;root;attachment;constructor(t,e){this.opts=t,this.root=e,this.root.descriptionId=this.opts.id.current,this.attachment=nt(this.opts.ref,r=>{this.root.descriptionNode=r}),ot.pre(()=>this.opts.id.current,r=>{this.root.descriptionId=r})}#t=y(()=>({id:this.opts.id.current,[this.root.getBitsAttr("description")]:"",...this.root.sharedProps,...this.attachment}));get props(){return s(this.#t)}set props(t){w(this.#t,t)}}class $t{static create(t){return new $t(t,ft.get())}opts;root;attachment;constructor(t,e){this.opts=t,this.root=e,this.attachment=nt(this.opts.ref,r=>{this.root.contentNode=r,this.root.contentId=r?.id})}#t=y(()=>({open:this.root.opts.open.current}));get snippetProps(){return s(this.#t)}set snippetProps(t){w(this.#t,t)}#e=y(()=>({id:this.opts.id.current,role:this.root.opts.variant.current==="alert-dialog"?"alertdialog":"dialog","aria-modal":"true","aria-describedby":this.root.descriptionId,"aria-labelledby":this.root.titleId,[this.root.getBitsAttr("content")]:"",style:{pointerEvents:"auto",outline:this.root.opts.variant.current==="alert-dialog"?"none":void 0,"--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount,contain:"layout style"},tabindex:this.root.opts.variant.current==="alert-dialog"?-1:void 0,"data-nested-open":dt(this.root.nestedOpenCount>0),"data-nested":dt(this.root.parent!==null),...this.root.sharedProps,...this.attachment}));get props(){return s(this.#e)}set props(t){w(this.#e,t)}get shouldRender(){return this.root.contentPresence.shouldRender}}class te{static create(t){return new te(t,ft.get())}opts;root;attachment;constructor(t,e){this.opts=t,this.root=e,this.attachment=nt(this.opts.ref,r=>this.root.overlayNode=r)}#t=y(()=>({open:this.root.opts.open.current}));get snippetProps(){return s(this.#t)}set snippetProps(t){w(this.#t,t)}#e=y(()=>({id:this.opts.id.current,[this.root.getBitsAttr("overlay")]:"",style:{pointerEvents:"auto","--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount},"data-nested-open":dt(this.root.nestedOpenCount>0),"data-nested":dt(this.root.parent!==null),...this.root.sharedProps,...this.attachment}));get props(){return s(this.#e)}set props(t){w(this.#e,t)}get shouldRender(){return this.root.overlayPresence.shouldRender}}class Oe{static create(t){return new Oe(t,ft.get())}opts;root;attachment;constructor(t,e){this.opts=t,this.root=e,this.attachment=nt(this.opts.ref,r=>this.root.cancelNode=r),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}onclick(t){this.opts.disabled.current||t.button>0||this.root.handleClose()}onkeydown(t){this.opts.disabled.current||(t.key===wt||t.key===Pt)&&(t.preventDefault(),this.root.handleClose())}#t=y(()=>({id:this.opts.id.current,[this.root.getBitsAttr("cancel")]:"",onclick:this.onclick,onkeydown:this.onkeydown,tabindex:0,...this.root.sharedProps,...this.attachment}));get props(){return s(this.#t)}set props(t){w(this.#t,t)}}var Gr=V("<div><!></div>");function Yr(n,t){const e=st();R(t,!0);let r=d(t,"id",19,()=>it(e)),o=d(t,"ref",15,null),i=d(t,"level",3,2),l=B(t,["$$slots","$$events","$$legacy","id","ref","child","children","level"]);const u=Zt.create({id:_(()=>r()),level:_(()=>i()),ref:_(()=>o(),a=>o(a))}),f=y(()=>G(l,u.props));var b=P(),v=C(b);{var g=a=>{var h=P(),m=C(h);x(m,()=>t.child,()=>({props:s(f)})),c(a,h)},p=a=>{var h=Gr();L(h,()=>({...s(f)}));var m=D(h);x(m,()=>t.children??j),F(h),c(a,h)};E(v,a=>{t.child?a(g):a(p,!1)})}c(n,b),A()}function Qr(n,t){var e=P(),r=C(e);Er(r,()=>t.children,o=>{var i=P(),l=C(i);x(l,()=>t.children??j),c(o,i)}),c(n,e)}const Jr=new xt("BitsConfig");function Xr(){const n=new Zr(null,{});return Jr.getOr(n).opts}class Zr{opts;constructor(t,e){const r=$r(t,e);this.opts={defaultPortalTo:r(o=>o.defaultPortalTo),defaultLocale:r(o=>o.defaultLocale)}}}function $r(n,t){return e=>_(()=>{const o=e(t)?.current;if(o!==void 0)return o;if(n!==null)return e(n.opts)?.current})}function xe(n,t){return e=>{const r=Xr();return _(()=>{const o=e();if(o!==void 0)return o;const i=n(r).current;return i!==void 0?i:t})}}const ws=xe(n=>n.defaultLocale,"en"),to=xe(n=>n.defaultPortalTo,"body");function ee(n,t){R(t,!0);const e=to(()=>t.to),r=Be();let o=y(i);function i(){if(!Ye||t.disabled)return null;let g=null;return typeof e.current=="string"?g=document.querySelector(e.current):g=e.current,g}let l;function u(){l&&(je(l),l=null)}ot([()=>s(o),()=>t.disabled],([g,p])=>{if(!g||p){u();return}return l=Le(Qr,{target:g,props:{children:t.children},context:r}),()=>{u()}});var f=P(),b=C(f);{var v=g=>{var p=P(),a=C(p);x(a,()=>t.children??j),c(g,p)};E(b,g=>{t.disabled&&g(v)})}c(n,f),A()}var eo=V("<div><!></div>");function ro(n,t){const e=st();R(t,!0);let r=d(t,"id",19,()=>it(e)),o=d(t,"forceMount",3,!1),i=d(t,"ref",15,null),l=B(t,["$$slots","$$events","$$legacy","id","forceMount","child","children","ref"]);const u=te.create({id:_(()=>r()),ref:_(()=>i(),p=>i(p))}),f=y(()=>G(l,u.props));var b=P(),v=C(b);{var g=p=>{var a=P(),h=C(a);{var m=k=>{var S=P(),O=C(S);{let I=y(()=>({props:G(s(f)),...u.snippetProps}));x(O,()=>t.child,()=>s(I))}c(k,S)},N=k=>{var S=eo();L(S,I=>({...I}),[()=>G(s(f))]);var O=D(S);x(O,()=>t.children??j,()=>u.snippetProps),F(S),c(k,S)};E(h,k=>{t.child?k(m):k(N,!1)})}c(p,a)};E(v,p=>{(u.shouldRender||o())&&p(g)})}c(n,b),A()}class oo{#t;#e=y(()=>this.#t.candidateValues());#r;constructor(t){this.#t=t,this.#r=Qe("",{afterMs:1e3,getWindow:this.#t.getWindow}),this.handleTypeaheadSearch=this.handleTypeaheadSearch.bind(this),this.resetTypeahead=this.resetTypeahead.bind(this)}handleTypeaheadSearch(t){if(!this.#t.enabled()||!s(this.#e).length)return;this.#r.current=this.#r.current+t;const e=this.#t.getCurrentItem(),r=s(this.#e).find(u=>u===e)??"",o=s(this.#e).map(u=>u??""),i=Je(o,this.#r.current,r),l=s(this.#e).find(u=>u===i);return l&&this.#t.onMatch(l),l}resetTypeahead(){this.#r.current=""}}const fe=[Ze,be,$e,tr,er,rr,or,sr,Pt,nr,ir,ar,lr,dr,ur,hr,cr,fr,pr,gr,vr],so=[pt,qt,Wt],no=[ht,Gt,Yt],Re=[...so,...no],io=jt({component:"select",parts:["trigger","content","item","viewport","scroll-up-button","scroll-down-button","group","group-label","separator","arrow","input","content-wrapper","item-text","value"]}),Nt=new xt("Select.Root | Combobox.Root"),ao=new xt("Select.Content | Combobox.Content");class Ae{opts;#t=U(!1);get touchedInput(){return s(this.#t)}set touchedInput(t){w(this.#t,t,!0)}#e=U(null);get inputNode(){return s(this.#e)}set inputNode(t){w(this.#e,t,!0)}#r=U(null);get contentNode(){return s(this.#r)}set contentNode(t){w(this.#r,t,!0)}contentPresence;#o=U(null);get viewportNode(){return s(this.#o)}set viewportNode(t){w(this.#o,t,!0)}#s=U(null);get triggerNode(){return s(this.#s)}set triggerNode(t){w(this.#s,t,!0)}#n=U("");get valueId(){return s(this.#n)}set valueId(t){w(this.#n,t,!0)}#i=U(null);get highlightedNode(){return s(this.#i)}set highlightedNode(t){w(this.#i,t,!0)}#a=y(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-value"):null);get highlightedValue(){return s(this.#a)}set highlightedValue(t){w(this.#a,t)}#l=y(()=>{if(this.highlightedNode)return this.highlightedNode.id});get highlightedId(){return s(this.#l)}set highlightedId(t){w(this.#l,t)}#d=y(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-label"):null);get highlightedLabel(){return s(this.#d)}set highlightedLabel(t){w(this.#d,t)}#u=U(!1);get contentIsPositioned(){return s(this.#u)}set contentIsPositioned(t){w(this.#u,t,!0)}isUsingKeyboard=!1;isCombobox=!1;domContext=new Et(()=>null);constructor(t){this.opts=t,this.isCombobox=t.isCombobox,this.contentPresence=new Kt({ref:_(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),ze(()=>{this.opts.open.current||this.setHighlightedNode(null)})}setHighlightedNode(t,e=!1){this.highlightedNode=t,t&&(this.isUsingKeyboard||e)&&this.scrollHighlightedNodeIntoView(t)}scrollHighlightedNodeIntoView(t){!this.viewportNode||!this.contentIsPositioned||t.scrollIntoView({block:this.opts.scrollAlignment.current})}getCandidateNodes(){const t=this.contentNode;return t?Array.from(t.querySelectorAll(`[${this.getBitsAttr("item")}]:not([data-disabled])`)):[]}setHighlightedToFirstCandidate(t=!1){this.setHighlightedNode(null);let e=this.getCandidateNodes();if(e.length){if(this.viewportNode){const r=this.viewportNode.getBoundingClientRect();e=e.filter(o=>{if(!this.viewportNode)return!1;const i=o.getBoundingClientRect();return i.right<=r.right&&i.left>=r.left&&i.bottom<=r.bottom&&i.top>=r.top})}this.setHighlightedNode(e[0],t)}}getNodeByValue(t){return this.getCandidateNodes().find(r=>r.dataset.value===t)??null}setOpen(t){this.opts.open.current=t}toggleOpen(){this.opts.open.current=!this.opts.open.current}handleOpen(){this.setOpen(!0)}handleClose(){this.setHighlightedNode(null),this.setOpen(!1)}toggleMenu(){this.toggleOpen()}getBitsAttr=t=>io.getAttr(t,this.isCombobox?"combobox":void 0)}class lo extends Ae{opts;isMulti=!1;#t=y(()=>this.opts.value.current!=="");get hasValue(){return s(this.#t)}set hasValue(t){w(this.#t,t)}#e=y(()=>this.opts.items.current.length?this.opts.items.current.find(t=>t.value===this.opts.value.current)?.label??"":"");get currentLabel(){return s(this.#e)}set currentLabel(t){w(this.#e,t)}#r=y(()=>this.opts.items.current.length?this.opts.items.current.filter(e=>!e.disabled).map(e=>e.label):[]);get candidateLabels(){return s(this.#r)}set candidateLabels(t){w(this.#r,t)}#o=y(()=>!(this.isMulti||this.opts.items.current.length===0));get dataTypeaheadEnabled(){return s(this.#o)}set dataTypeaheadEnabled(t){w(this.#o,t)}constructor(t){super(t),this.opts=t,Dt(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),ot(()=>this.opts.open.current,()=>{this.opts.open.current&&this.setInitialHighlightedNode()})}includesItem(t){return this.opts.value.current===t}toggleItem(t,e=t){const r=this.includesItem(t)?"":t;this.opts.value.current=r,r!==""&&(this.opts.inputValue.current=e)}setInitialHighlightedNode(){_e(()=>{if(!(this.highlightedNode&&this.domContext.getDocument().contains(this.highlightedNode))){if(this.opts.value.current!==""){const t=this.getNodeByValue(this.opts.value.current);if(t){this.setHighlightedNode(t,!0);return}}this.setHighlightedToFirstCandidate(!0)}})}}class uo extends Ae{opts;isMulti=!0;#t=y(()=>this.opts.value.current.length>0);get hasValue(){return s(this.#t)}set hasValue(t){w(this.#t,t)}constructor(t){super(t),this.opts=t,Dt(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),ot(()=>this.opts.open.current,()=>{this.opts.open.current&&this.setInitialHighlightedNode()})}includesItem(t){return this.opts.value.current.includes(t)}toggleItem(t,e=t){this.includesItem(t)?this.opts.value.current=this.opts.value.current.filter(r=>r!==t):this.opts.value.current=[...this.opts.value.current,t],this.opts.inputValue.current=e}setInitialHighlightedNode(){_e(()=>{if(this.domContext&&!(this.highlightedNode&&this.domContext.getDocument().contains(this.highlightedNode))){if(this.opts.value.current.length&&this.opts.value.current[0]!==""){const t=this.getNodeByValue(this.opts.value.current[0]);if(t){this.setHighlightedNode(t,!0);return}}this.setHighlightedToFirstCandidate(!0)}})}}class ho{static create(t){const{type:e,...r}=t,o=e==="single"?new lo(r):new uo(r);return Nt.set(o)}}class Me{static create(t){return new Me(t,Nt.get())}opts;root;attachment;constructor(t,e){this.opts=t,this.root=e,this.attachment=nt(t.ref,r=>this.root.inputNode=r),this.root.domContext=new Et(t.ref),this.onkeydown=this.onkeydown.bind(this),this.oninput=this.oninput.bind(this),ot([()=>this.root.opts.value.current,()=>this.opts.clearOnDeselect.current],([r,o],[i])=>{o&&(Array.isArray(r)&&Array.isArray(i)?r.length===0&&i.length!==0&&(this.root.opts.inputValue.current=""):r===""&&i!==""&&(this.root.opts.inputValue.current=""))})}onkeydown(t){if(this.root.isUsingKeyboard=!0,t.key!==be){if((t.key===ht||t.key===pt)&&t.preventDefault(),!this.root.opts.open.current){if(fe.includes(t.key)||t.key===Rt||t.key===mr&&this.root.opts.inputValue.current===""||(this.root.handleOpen(),this.root.hasValue))return;const e=this.root.getCandidateNodes();if(!e.length)return;if(t.key===pt){const r=e[0];this.root.setHighlightedNode(r)}else if(t.key===ht){const r=e[e.length-1];this.root.setHighlightedNode(r)}return}if(t.key===Rt){this.root.handleClose();return}if(t.key===Pt&&!t.isComposing){t.preventDefault();const e=this.root.highlightedValue===this.root.opts.value.current;if(!this.root.opts.allowDeselect.current&&e&&!this.root.isMulti){this.root.handleClose();return}this.root.highlightedValue&&this.root.highlightedNode&&this.root.highlightedNode.isConnected&&this.root.toggleItem(this.root.highlightedValue,this.root.highlightedLabel??void 0),!this.root.isMulti&&!e&&this.root.handleClose()}if(t.key===ht&&t.altKey&&this.root.handleClose(),Re.includes(t.key)){t.preventDefault();const e=this.root.getCandidateNodes(),r=this.root.highlightedNode,o=r?e.indexOf(r):-1,i=this.root.opts.loop.current;let l;if(t.key===pt?l=ge(e,o,i):t.key===ht?l=ve(e,o,i):t.key===Gt?l=me(e,o,10,i):t.key===qt?l=ye(e,o,10,i):t.key===Wt?l=e[0]:t.key===Yt&&(l=e[e.length-1]),!l)return;this.root.setHighlightedNode(l);return}fe.includes(t.key)||this.root.highlightedNode||this.root.setHighlightedToFirstCandidate()}}oninput(t){this.root.opts.inputValue.current=t.currentTarget.value,this.root.setHighlightedToFirstCandidate()}#t=y(()=>({id:this.opts.id.current,role:"combobox",disabled:this.root.opts.disabled.current?!0:void 0,"aria-activedescendant":this.root.highlightedId,"aria-autocomplete":"list","aria-expanded":At(this.root.opts.open.current),"data-state":Ft(this.root.opts.open.current),"data-disabled":dt(this.root.opts.disabled.current),onkeydown:this.onkeydown,oninput:this.oninput,[this.root.getBitsAttr("input")]:"",...this.attachment}));get props(){return s(this.#t)}set props(t){w(this.#t,t)}}class re{static create(t){return new re(t,Nt.get())}opts;root;attachment;#t;#e;constructor(t,e){this.opts=t,this.root=e,this.attachment=nt(t.ref,r=>this.root.triggerNode=r),this.root.domContext=new Et(t.ref),this.#t=new Xe({getCurrentItem:()=>this.root.highlightedNode,onMatch:r=>{this.root.setHighlightedNode(r)},getActiveElement:()=>this.root.domContext.getActiveElement(),getWindow:()=>this.root.domContext.getWindow()}),this.#e=new oo({getCurrentItem:()=>this.root.isMulti?"":this.root.currentLabel,onMatch:r=>{if(this.root.isMulti||!this.root.opts.items.current)return;const o=this.root.opts.items.current.find(i=>i.label===r);o&&(this.root.opts.value.current=o.value)},enabled:()=>!this.root.isMulti&&this.root.dataTypeaheadEnabled,candidateValues:()=>this.root.isMulti?[]:this.root.candidateLabels,getWindow:()=>this.root.domContext.getWindow()}),this.onkeydown=this.onkeydown.bind(this),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this),this.onclick=this.onclick.bind(this)}#r(){this.root.opts.open.current=!0,this.#e.resetTypeahead(),this.#t.resetTypeahead()}#o(t){this.#r()}#s(){const t=this.root.highlightedValue===this.root.opts.value.current;return!this.root.opts.allowDeselect.current&&t&&!this.root.isMulti?(this.root.handleClose(),!0):(this.root.highlightedValue!==null&&this.root.toggleItem(this.root.highlightedValue,this.root.highlightedLabel??void 0),!this.root.isMulti&&!t?(this.root.handleClose(),!0):!1)}onkeydown(t){if(this.root.isUsingKeyboard=!0,(t.key===ht||t.key===pt)&&t.preventDefault(),!this.root.opts.open.current){if(t.key===Pt||t.key===wt||t.key===pt||t.key===ht)t.preventDefault(),this.root.handleOpen();else if(!this.root.isMulti&&this.root.dataTypeaheadEnabled){this.#e.handleTypeaheadSearch(t.key);return}if(this.root.hasValue)return;const l=this.root.getCandidateNodes();if(!l.length)return;if(t.key===pt){const u=l[0];this.root.setHighlightedNode(u)}else if(t.key===ht){const u=l[l.length-1];this.root.setHighlightedNode(u)}return}if(t.key===Rt){this.root.handleClose();return}if((t.key===Pt||t.key===wt&&this.#t.search==="")&&!t.isComposing&&(t.preventDefault(),this.#s()))return;if(t.key===ht&&t.altKey&&this.root.handleClose(),Re.includes(t.key)){t.preventDefault();const l=this.root.getCandidateNodes(),u=this.root.highlightedNode,f=u?l.indexOf(u):-1,b=this.root.opts.loop.current;let v;if(t.key===pt?v=ge(l,f,b):t.key===ht?v=ve(l,f,b):t.key===Gt?v=me(l,f,10,b):t.key===qt?v=ye(l,f,10,b):t.key===Wt?v=l[0]:t.key===Yt&&(v=l[l.length-1]),!v)return;this.root.setHighlightedNode(v);return}const e=t.ctrlKey||t.altKey||t.metaKey,r=t.key.length===1,o=t.key===wt,i=this.root.getCandidateNodes();if(t.key!==Rt){if(!e&&(r||o)){!this.#t.handleTypeaheadSearch(t.key,i)&&o&&(t.preventDefault(),this.#s());return}this.root.highlightedNode||this.root.setHighlightedToFirstCandidate()}}onclick(t){t.currentTarget.focus()}onpointerdown(t){if(this.root.opts.disabled.current)return;if(t.pointerType==="touch")return t.preventDefault();const e=t.target;e?.hasPointerCapture(t.pointerId)&&e?.releasePointerCapture(t.pointerId),t.button===0&&t.ctrlKey===!1&&(this.root.opts.open.current===!1?this.#o(t):this.root.handleClose())}onpointerup(t){this.root.opts.disabled.current||(t.preventDefault(),t.pointerType==="touch"&&(this.root.opts.open.current===!1?this.#o(t):this.root.handleClose()))}#n=y(()=>({id:this.opts.id.current,disabled:this.root.opts.disabled.current?!0:void 0,"aria-haspopup":"listbox","aria-expanded":At(this.root.opts.open.current),"aria-activedescendant":this.root.highlightedId,"data-state":Ft(this.root.opts.open.current),"data-disabled":dt(this.root.opts.disabled.current),"data-placeholder":this.root.hasValue?void 0:"",[this.root.getBitsAttr("trigger")]:"",onpointerdown:this.onpointerdown,onkeydown:this.onkeydown,onclick:this.onclick,onpointerup:this.onpointerup,...this.attachment}));get props(){return s(this.#n)}set props(t){w(this.#n,t)}}class oe{static create(t){return ao.set(new oe(t,Nt.get()))}opts;root;attachment;#t=U(!1);get isPositioned(){return s(this.#t)}set isPositioned(t){w(this.#t,t,!0)}domContext;constructor(t,e){this.opts=t,this.root=e,this.attachment=nt(t.ref,r=>this.root.contentNode=r),this.domContext=new Et(this.opts.ref),this.root.domContext===null&&(this.root.domContext=this.domContext),pe(()=>{this.root.contentNode=null,this.root.contentIsPositioned=!1,this.isPositioned=!1}),ot(()=>this.root.opts.open.current,()=>{this.root.opts.open.current||(this.root.contentIsPositioned=!1,this.isPositioned=!1)}),ot([()=>this.isPositioned,()=>this.root.highlightedNode],()=>{!this.isPositioned||!this.root.highlightedNode||this.root.scrollHighlightedNodeIntoView(this.root.highlightedNode)}),this.onpointermove=this.onpointermove.bind(this)}onpointermove(t){this.root.isUsingKeyboard=!1}#e=y(()=>Bt(this.root.isCombobox?"combobox":"select"));onInteractOutside=t=>{if(t.target===this.root.triggerNode||t.target===this.root.inputNode){t.preventDefault();return}this.opts.onInteractOutside.current(t),!t.defaultPrevented&&this.root.handleClose()};onEscapeKeydown=t=>{this.opts.onEscapeKeydown.current(t),!t.defaultPrevented&&this.root.handleClose()};onOpenAutoFocus=t=>{t.preventDefault()};onCloseAutoFocus=t=>{t.preventDefault()};get shouldRender(){return this.root.contentPresence.shouldRender}#r=y(()=>({open:this.root.opts.open.current}));get snippetProps(){return s(this.#r)}set snippetProps(t){w(this.#r,t)}#o=y(()=>({id:this.opts.id.current,role:"listbox","aria-multiselectable":this.root.isMulti?"true":void 0,"data-state":Ft(this.root.opts.open.current),[this.root.getBitsAttr("content")]:"",style:{display:"flex",flexDirection:"column",outline:"none",boxSizing:"border-box",pointerEvents:"auto",...s(this.#e)},onpointermove:this.onpointermove,...this.attachment}));get props(){return s(this.#o)}set props(t){w(this.#o,t)}popperProps={onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown,onOpenAutoFocus:this.onOpenAutoFocus,onCloseAutoFocus:this.onCloseAutoFocus,trapFocus:!1,loop:!1,onPlaced:()=>{this.root.opts.open.current&&(this.root.contentIsPositioned=!0,this.isPositioned=!0)}}}class se{static create(t){return new se(t,Nt.get())}opts;root;attachment;#t=y(()=>this.root.includesItem(this.opts.value.current));get isSelected(){return s(this.#t)}set isSelected(t){w(this.#t,t)}#e=y(()=>this.root.highlightedValue===this.opts.value.current);get isHighlighted(){return s(this.#e)}set isHighlighted(t){w(this.#e,t)}prevHighlighted=new jr(()=>this.isHighlighted);#r=U(!1);get mounted(){return s(this.#r)}set mounted(t){w(this.#r,t,!0)}constructor(t,e){this.opts=t,this.root=e,this.attachment=nt(t.ref),ot([()=>this.isHighlighted,()=>this.prevHighlighted.current],()=>{this.isHighlighted?this.opts.onHighlight.current():this.prevHighlighted.current&&this.opts.onUnhighlight.current()}),ot(()=>this.mounted,()=>{this.mounted&&this.root.setInitialHighlightedNode()}),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this),this.onpointermove=this.onpointermove.bind(this)}handleSelect(){if(this.opts.disabled.current)return;const t=this.opts.value.current===this.root.opts.value.current;if(!this.root.opts.allowDeselect.current&&t&&!this.root.isMulti){this.root.handleClose();return}this.root.toggleItem(this.opts.value.current,this.opts.label.current),!this.root.isMulti&&!t&&this.root.handleClose()}#o=y(()=>({selected:this.isSelected,highlighted:this.isHighlighted}));get snippetProps(){return s(this.#o)}set snippetProps(t){w(this.#o,t)}onpointerdown(t){t.preventDefault()}onpointerup(t){if(!(t.defaultPrevented||!this.opts.ref.current)){if(t.pointerType==="touch"&&!yr){qe(this.opts.ref.current,"click",()=>{this.handleSelect(),this.root.setHighlightedNode(this.opts.ref.current)},{once:!0});return}t.preventDefault(),this.handleSelect(),t.pointerType==="touch"&&this.root.setHighlightedNode(this.opts.ref.current)}}onpointermove(t){t.pointerType!=="touch"&&this.root.highlightedNode!==this.opts.ref.current&&this.root.setHighlightedNode(this.opts.ref.current)}#s=y(()=>({id:this.opts.id.current,role:"option","aria-selected":this.root.includesItem(this.opts.value.current)?"true":void 0,"data-value":this.opts.value.current,"data-disabled":dt(this.opts.disabled.current),"data-highlighted":this.root.highlightedValue===this.opts.value.current&&!this.opts.disabled.current?"":void 0,"data-selected":this.root.includesItem(this.opts.value.current)?"":void 0,"data-label":this.opts.label.current,[this.root.getBitsAttr("item")]:"",onpointermove:this.onpointermove,onpointerdown:this.onpointerdown,onpointerup:this.onpointerup,...this.attachment}));get props(){return s(this.#s)}set props(t){w(this.#s,t)}}class ne{static create(t){return new ne(t,Nt.get())}opts;root;#t=y(()=>this.root.opts.name.current!=="");get shouldRender(){return s(this.#t)}set shouldRender(t){w(this.#t,t)}constructor(t,e){this.opts=t,this.root=e,this.onfocus=this.onfocus.bind(this)}onfocus(t){t.preventDefault(),this.root.isCombobox?this.root.inputNode?.focus():this.root.triggerNode?.focus()}#e=y(()=>({disabled:he(this.root.opts.disabled.current),required:he(this.root.opts.required.current),name:this.root.opts.name.current,value:this.opts.value.current,onfocus:this.onfocus}));get props(){return s(this.#e)}set props(t){w(this.#e,t)}}function Ht(n,t){R(t,!0);let e=d(t,"value",15);const r=ne.create({value:_(()=>e())});var o=P(),i=C(o);{var l=u=>{Ce(u,J(()=>r.props,{get autocomplete(){return t.autocomplete},get value(){return e()},set value(f){e(f)}}))};E(i,u=>{r.shouldRender&&u(l)})}c(n,o),A()}var co=V("<div><div><!></div></div>"),fo=V("<div><div><!></div></div>");function po(n,t){const e=st();R(t,!0);let r=d(t,"id",19,()=>it(e)),o=d(t,"ref",15,null),i=d(t,"forceMount",3,!1),l=d(t,"side",3,"bottom"),u=d(t,"onInteractOutside",3,W),f=d(t,"onEscapeKeydown",3,W),b=d(t,"preventScroll",3,!1),v=B(t,["$$slots","$$events","$$legacy","id","ref","forceMount","side","onInteractOutside","onEscapeKeydown","children","child","preventScroll","style"]);const g=oe.create({id:_(()=>r()),ref:_(()=>o(),k=>o(k)),onInteractOutside:_(()=>u()),onEscapeKeydown:_(()=>f())}),p=y(()=>G(v,g.props));var a=P(),h=C(a);{var m=k=>{we(k,J(()=>s(p),()=>g.popperProps,{get ref(){return g.opts.ref},get side(){return l()},get enabled(){return g.root.opts.open.current},get id(){return r()},get preventScroll(){return b()},forceMount:!0,get shouldRender(){return g.shouldRender},popper:(O,I)=>{let M=()=>I?.().props,q=()=>I?.().wrapperProps;const T=y(()=>G(M(),{style:g.props.style},{style:t.style}));var Y=P(),tt=C(Y);{var Z=K=>{var z=P(),Q=C(z);{let H=y(()=>({props:s(T),wrapperProps:q(),...g.snippetProps}));x(Q,()=>t.child,()=>s(H))}c(K,z)},at=K=>{var z=co();L(z,()=>({...q()}));var Q=D(z);L(Q,()=>({...s(T)}));var H=D(Q);x(H,()=>t.children??j),F(Q),F(z),c(K,z)};E(tt,K=>{t.child?K(Z):K(at,!1)})}c(O,Y)},$$slots:{popper:!0}}))},N=k=>{Pe(k,J(()=>s(p),()=>g.popperProps,{get ref(){return g.opts.ref},get side(){return l()},get open(){return g.root.opts.open.current},get id(){return r()},get preventScroll(){return b()},forceMount:!1,get shouldRender(){return g.shouldRender},popper:(O,I)=>{let M=()=>I?.().props,q=()=>I?.().wrapperProps;const T=y(()=>G(M(),{style:g.props.style},{style:t.style}));var Y=P(),tt=C(Y);{var Z=K=>{var z=P(),Q=C(z);{let H=y(()=>({props:s(T),wrapperProps:q(),...g.snippetProps}));x(Q,()=>t.child,()=>s(H))}c(K,z)},at=K=>{var z=fo();L(z,()=>({...q()}));var Q=D(z);L(Q,()=>({...s(T)}));var H=D(Q);x(H,()=>t.children??j),F(Q),F(z),c(K,z)};E(tt,K=>{t.child?K(Z):K(at,!1)})}c(O,Y)},$$slots:{popper:!0}}))};E(h,k=>{i()?k(m):i()||k(N,1)})}c(n,a),A()}function go(n,t){R(t,!0);let e=d(t,"mounted",15,!1),r=d(t,"onMountedChange",3,W);qr(()=>(e(!0),r()(!0),()=>{e(!1),r()(!1)})),A()}var vo=V("<div><!></div>"),mo=V("<!> <!>",1);function yo(n,t){const e=st();R(t,!0);let r=d(t,"id",19,()=>it(e)),o=d(t,"ref",15,null),i=d(t,"label",19,()=>t.value),l=d(t,"disabled",3,!1),u=d(t,"onHighlight",3,W),f=d(t,"onUnhighlight",3,W),b=B(t,["$$slots","$$events","$$legacy","id","ref","value","label","disabled","children","child","onHighlight","onUnhighlight"]);const v=se.create({id:_(()=>r()),ref:_(()=>o(),k=>o(k)),value:_(()=>t.value),disabled:_(()=>l()),label:_(()=>i()),onHighlight:_(()=>u()),onUnhighlight:_(()=>f())}),g=y(()=>G(b,v.props));var p=mo(),a=C(p);{var h=k=>{var S=P(),O=C(S);{let I=y(()=>({props:s(g),...v.snippetProps}));x(O,()=>t.child,()=>s(I))}c(k,S)},m=k=>{var S=vo();L(S,()=>({...s(g)}));var O=D(S);x(O,()=>t.children??j,()=>v.snippetProps),F(S),c(k,S)};E(a,k=>{t.child?k(h):k(m,!1)})}var N=mt(a,2);go(N,{get mounted(){return v.mounted},set mounted(k){v.mounted=k}}),c(n,p),A()}var bo=V("<div><!></div>");function _o(n,t){const e=st();R(t,!0);let r=d(t,"ref",15,null),o=d(t,"id",19,()=>it(e)),i=d(t,"disabled",3,!1),l=d(t,"onSelect",3,W),u=d(t,"closeOnSelect",3,!0),f=B(t,["$$slots","$$events","$$legacy","child","children","ref","id","disabled","onSelect","closeOnSelect"]);const b=br.create({id:_(()=>o()),disabled:_(()=>i()),onSelect:_(()=>l()),ref:_(()=>r(),m=>r(m)),closeOnSelect:_(()=>u())}),v=y(()=>G(f,b.props));var g=P(),p=C(g);{var a=m=>{var N=P(),k=C(N);x(k,()=>t.child,()=>({props:s(v)})),c(m,N)},h=m=>{var N=bo();L(N,()=>({...s(v)}));var k=D(N);x(k,()=>t.children??j),F(N),c(m,N)};E(p,m=>{t.child?m(a):m(h,!1)})}c(n,g),A()}var Co=V("<div><!></div>");function wo(n,t){const e=st();R(t,!0);let r=d(t,"ref",15,null),o=d(t,"id",19,()=>it(e)),i=B(t,["$$slots","$$events","$$legacy","ref","id","child","children"]);const l=_r.create({id:_(()=>o()),ref:_(()=>r(),p=>r(p))}),u=y(()=>G(i,l.props));var f=P(),b=C(f);{var v=p=>{var a=P(),h=C(a);x(h,()=>t.child,()=>({props:s(u)})),c(p,a)},g=p=>{var a=Co();L(a,()=>({...s(u)}));var h=D(a);x(h,()=>t.children??j),F(a),c(p,a)};E(b,p=>{t.child?p(v):p(g,!1)})}c(n,f),A()}function Po(n,t){R(t,!0);let e=d(t,"open",15,!1),r=d(t,"onOpenChange",3,W),o=d(t,"onOpenChangeComplete",3,W);Jt.create({variant:_(()=>"dialog"),open:_(()=>e(),u=>{e(u),r()(u)}),onOpenChangeComplete:_(()=>o())});var i=P(),l=C(i);x(l,()=>t.children??j),c(n,i),A()}var No=V("<button><!></button>");function ko(n,t){const e=st();R(t,!0);let r=d(t,"id",19,()=>it(e)),o=d(t,"ref",15,null),i=d(t,"disabled",3,!1),l=B(t,["$$slots","$$events","$$legacy","children","child","id","ref","disabled"]);const u=Xt.create({variant:_(()=>"close"),id:_(()=>r()),ref:_(()=>o(),a=>o(a)),disabled:_(()=>!!i())}),f=y(()=>G(l,u.props));var b=P(),v=C(b);{var g=a=>{var h=P(),m=C(h);x(m,()=>t.child,()=>({props:s(f)})),c(a,h)},p=a=>{var h=No();L(h,()=>({...s(f)}));var m=D(h);x(m,()=>t.children??j),F(h),c(a,h)};E(v,a=>{t.child?a(g):a(p,!1)})}c(n,b),A()}var So=V("<!> <!>",1),Io=V("<!> <div><!></div>",1);function Oo(n,t){const e=st();R(t,!0);let r=d(t,"id",19,()=>it(e)),o=d(t,"ref",15,null),i=d(t,"forceMount",3,!1),l=d(t,"onCloseAutoFocus",3,W),u=d(t,"onOpenAutoFocus",3,W),f=d(t,"onEscapeKeydown",3,W),b=d(t,"onInteractOutside",3,W),v=d(t,"trapFocus",3,!0),g=d(t,"preventScroll",3,!0),p=d(t,"restoreScrollDelay",3,null),a=B(t,["$$slots","$$events","$$legacy","id","children","child","ref","forceMount","onCloseAutoFocus","onOpenAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","restoreScrollDelay"]);const h=$t.create({id:_(()=>r()),ref:_(()=>o(),O=>o(O))}),m=y(()=>G(a,h.props));var N=P(),k=C(N);{var S=O=>{Cr(O,{get ref(){return h.opts.ref},loop:!0,get trapFocus(){return v()},get enabled(){return h.root.opts.open.current},get onOpenAutoFocus(){return u()},get onCloseAutoFocus(){return l()},focusScope:(M,q)=>{let T=()=>q?.().props;wr(M,J(()=>s(m),{get enabled(){return h.root.opts.open.current},get ref(){return h.opts.ref},onEscapeKeydown:Y=>{f()(Y),!Y.defaultPrevented&&h.root.handleClose()},children:(Y,tt)=>{Pr(Y,J(()=>s(m),{get ref(){return h.opts.ref},get enabled(){return h.root.opts.open.current},onInteractOutside:Z=>{b()(Z),!Z.defaultPrevented&&h.root.handleClose()},children:(Z,at)=>{Nr(Z,J(()=>s(m),{get ref(){return h.opts.ref},get enabled(){return h.root.opts.open.current},children:(K,z)=>{var Q=P(),H=C(Q);{var X=et=>{var kt=So(),St=C(kt);{var It=_t=>{ce(_t,{get preventScroll(){return g()},get restoreScrollDelay(){return p()}})};E(St,_t=>{h.root.opts.open.current&&_t(It)})}var Vt=mt(St,2);{let _t=y(()=>({props:G(s(m),T()),...h.snippetProps}));x(Vt,()=>t.child,()=>s(_t))}c(et,kt)},rt=et=>{var kt=Io(),St=C(kt);ce(St,{get preventScroll(){return g()}});var It=mt(St,2);L(It,_t=>({..._t}),[()=>G(s(m),T())]);var Vt=D(It);x(Vt,()=>t.children??j),F(It),c(et,kt)};E(H,et=>{t.child?et(X):et(rt,!1)})}c(K,Q)},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{focusScope:!0}})};E(k,O=>{(h.shouldRender||i())&&O(S)})}c(n,N),A()}function xo(n,t){R(t,!0);let e=d(t,"open",15,!1),r=d(t,"dir",3,"ltr"),o=d(t,"onOpenChange",3,W),i=d(t,"onOpenChangeComplete",3,W),l=d(t,"_internal_variant",3,"dropdown-menu");const u=kr.create({variant:_(()=>l()),dir:_(()=>r()),onClose:()=>{e(!1),o()(!1)}});Sr.create({open:_(()=>e(),f=>{e(f),o()(f)}),onOpenChangeComplete:_(()=>i())},u),Ne(n,{children:(f,b)=>{var v=P(),g=C(v);x(g,()=>t.children??j),c(f,v)},$$slots:{default:!0}}),A()}var Ro=V("<div><div><!></div></div>"),Ao=V("<div><div><!></div></div>");function Mo(n,t){const e=st();R(t,!0);let r=d(t,"id",19,()=>it(e)),o=d(t,"ref",15,null),i=d(t,"loop",3,!0),l=d(t,"onInteractOutside",3,W),u=d(t,"onEscapeKeydown",3,W),f=d(t,"onCloseAutoFocus",3,W),b=d(t,"forceMount",3,!1),v=d(t,"trapFocus",3,!1),g=B(t,["$$slots","$$events","$$legacy","id","child","children","ref","loop","onInteractOutside","onEscapeKeydown","onCloseAutoFocus","forceMount","trapFocus","style"]);const p=Ir.create({id:_(()=>r()),loop:_(()=>i()),ref:_(()=>o(),I=>o(I)),onCloseAutoFocus:_(()=>f())}),a=y(()=>G(g,p.props));function h(I){if(p.handleInteractOutside(I),!I.defaultPrevented&&(l()(I),!I.defaultPrevented)){if(I.target&&I.target instanceof Element){const M=`[${p.parentMenu.root.getBitsAttr("sub-content")}]`;if(I.target.closest(M))return}p.parentMenu.onClose()}}function m(I){u()(I),!I.defaultPrevented&&p.parentMenu.onClose()}var N=P(),k=C(N);{var S=I=>{we(I,J(()=>s(a),()=>p.popperProps,{get ref(){return p.opts.ref},get enabled(){return p.parentMenu.opts.open.current},onInteractOutside:h,onEscapeKeydown:m,get trapFocus(){return v()},get loop(){return i()},forceMount:!0,get id(){return r()},get shouldRender(){return p.shouldRender},popper:(q,T)=>{let Y=()=>T?.().props,tt=()=>T?.().wrapperProps;const Z=y(()=>G(Y(),{style:Bt("dropdown-menu")},{style:t.style}));var at=P(),K=C(at);{var z=H=>{var X=P(),rt=C(X);{let et=y(()=>({props:s(Z),wrapperProps:tt(),...p.snippetProps}));x(rt,()=>t.child,()=>s(et))}c(H,X)},Q=H=>{var X=Ro();L(X,()=>({...tt()}));var rt=D(X);L(rt,()=>({...s(Z)}));var et=D(rt);x(et,()=>t.children??j),F(rt),F(X),c(H,X)};E(K,H=>{t.child?H(z):H(Q,!1)})}c(q,at)},$$slots:{popper:!0}}))},O=I=>{Pe(I,J(()=>s(a),()=>p.popperProps,{get ref(){return p.opts.ref},get open(){return p.parentMenu.opts.open.current},onInteractOutside:h,onEscapeKeydown:m,get trapFocus(){return v()},get loop(){return i()},forceMount:!1,get id(){return r()},get shouldRender(){return p.shouldRender},popper:(q,T)=>{let Y=()=>T?.().props,tt=()=>T?.().wrapperProps;const Z=y(()=>G(Y(),{style:Bt("dropdown-menu")},{style:t.style}));var at=P(),K=C(at);{var z=H=>{var X=P(),rt=C(X);{let et=y(()=>({props:s(Z),wrapperProps:tt(),...p.snippetProps}));x(rt,()=>t.child,()=>s(et))}c(H,X)},Q=H=>{var X=Ao();L(X,()=>({...tt()}));var rt=D(X);L(rt,()=>({...s(Z)}));var et=D(rt);x(et,()=>t.children??j),F(rt),F(X),c(H,X)};E(K,H=>{t.child?H(z):H(Q,!1)})}c(q,at)},$$slots:{popper:!0}}))};E(k,I=>{b()?I(S):b()||I(O,1)})}c(n,N),A()}var To=V("<button><!></button>");function Do(n,t){const e=st();R(t,!0);let r=d(t,"id",19,()=>it(e)),o=d(t,"ref",15,null),i=d(t,"disabled",3,!1),l=d(t,"type",3,"button"),u=B(t,["$$slots","$$events","$$legacy","id","ref","child","children","disabled","type"]);const f=Or.create({id:_(()=>r()),disabled:_(()=>i()??!1),ref:_(()=>o(),v=>o(v))}),b=y(()=>G(u,f.props,{type:l()}));ke(n,{get id(){return r()},get ref(){return f.opts.ref},children:(v,g)=>{var p=P(),a=C(p);{var h=N=>{var k=P(),S=C(k);x(S,()=>t.child,()=>({props:s(b)})),c(N,k)},m=N=>{var k=To();L(k,()=>({...s(b)}));var S=D(k);x(S,()=>t.children??j),F(k),c(N,k)};E(a,N=>{t.child?N(h):N(m,!1)})}c(v,p)},$$slots:{default:!0}}),A()}const zt=jt({component:"radio-group",parts:["root","item"]}),ie=new xt("RadioGroup.Root");class ae{static create(t){return ie.set(new ae(t))}opts;#t=y(()=>this.opts.value.current!=="");get hasValue(){return s(this.#t)}set hasValue(t){w(this.#t,t)}rovingFocusGroup;attachment;constructor(t){this.opts=t,this.attachment=nt(this.opts.ref),this.rovingFocusGroup=new xr({rootNode:this.opts.ref,candidateAttr:zt.item,loop:this.opts.loop,orientation:this.opts.orientation})}isChecked(t){return this.opts.value.current===t}setValue(t){this.opts.value.current=t}#e=y(()=>({id:this.opts.id.current,role:"radiogroup","aria-required":At(this.opts.required.current),"aria-disabled":At(this.opts.disabled.current),"aria-readonly":this.opts.readonly.current?"true":void 0,"data-disabled":dt(this.opts.disabled.current),"data-readonly":dt(this.opts.readonly.current),"data-orientation":this.opts.orientation.current,[zt.root]:"",...this.attachment}));get props(){return s(this.#e)}set props(t){w(this.#e,t)}}class le{static create(t){return new le(t,ie.get())}opts;root;attachment;#t=y(()=>this.root.opts.value.current===this.opts.value.current);get checked(){return s(this.#t)}set checked(t){w(this.#t,t)}#e=y(()=>this.opts.disabled.current||this.root.opts.disabled.current);#r=y(()=>this.root.opts.readonly.current);#o=y(()=>this.root.isChecked(this.opts.value.current));#s=U(-1);constructor(t,e){this.opts=t,this.root=e,this.attachment=nt(this.opts.ref),this.opts.value.current===this.root.opts.value.current?(this.root.rovingFocusGroup.setCurrentTabStopId(this.opts.id.current),w(this.#s,0)):this.root.opts.value.current||w(this.#s,0),Dt(()=>{w(this.#s,this.root.rovingFocusGroup.getTabIndex(this.opts.ref.current),!0)}),ot([()=>this.opts.value.current,()=>this.root.opts.value.current],()=>{this.opts.value.current===this.root.opts.value.current&&(this.root.rovingFocusGroup.setCurrentTabStopId(this.opts.id.current),w(this.#s,0))}),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this),this.onfocus=this.onfocus.bind(this)}onclick(t){this.opts.disabled.current||s(this.#r)||this.root.setValue(this.opts.value.current)}onfocus(t){!this.root.hasValue||s(this.#r)||this.root.setValue(this.opts.value.current)}onkeydown(t){if(!s(this.#e)){if(t.key===wt){t.preventDefault(),s(this.#r)||this.root.setValue(this.opts.value.current);return}this.root.rovingFocusGroup.handleKeydown(this.opts.ref.current,t,!0)}}#n=y(()=>({checked:s(this.#o)}));get snippetProps(){return s(this.#n)}set snippetProps(t){w(this.#n,t)}#i=y(()=>({id:this.opts.id.current,disabled:s(this.#e)?!0:void 0,"data-value":this.opts.value.current,"data-orientation":this.root.opts.orientation.current,"data-disabled":dt(s(this.#e)),"data-readonly":dt(s(this.#r)),"data-state":s(this.#o)?"checked":"unchecked","aria-checked":Rr(s(this.#o),!1),[zt.item]:"",type:"button",role:"radio",tabindex:s(this.#s),onkeydown:this.onkeydown,onfocus:this.onfocus,onclick:this.onclick,...this.attachment}));get props(){return s(this.#i)}set props(t){w(this.#i,t)}}class de{static create(){return new de(ie.get())}root;#t=y(()=>this.root.opts.name.current!==void 0);get shouldRender(){return s(this.#t)}set shouldRender(t){w(this.#t,t)}constructor(t){this.root=t,this.onfocus=this.onfocus.bind(this)}onfocus(t){this.root.rovingFocusGroup.focusCurrentTabStop()}#e=y(()=>({name:this.root.opts.name.current,value:this.root.opts.value.current,required:this.root.opts.required.current,disabled:this.root.opts.disabled.current,onfocus:this.onfocus}));get props(){return s(this.#e)}set props(t){w(this.#e,t)}}function Fo(n,t){R(t,!1);const e=de.create();Ot();var r=P(),o=C(r);{var i=l=>{Ce(l,J(()=>e.props))};E(o,l=>{e.shouldRender&&l(i)})}c(n,r),A()}var Eo=V("<div><!></div>"),Vo=V("<!> <!>",1);function Ho(n,t){const e=st();R(t,!0);let r=d(t,"disabled",3,!1),o=d(t,"value",15,""),i=d(t,"ref",15,null),l=d(t,"orientation",3,"vertical"),u=d(t,"loop",3,!0),f=d(t,"name",3,void 0),b=d(t,"required",3,!1),v=d(t,"readonly",3,!1),g=d(t,"id",19,()=>it(e)),p=d(t,"onValueChange",3,W),a=B(t,["$$slots","$$events","$$legacy","disabled","children","child","value","ref","orientation","loop","name","required","readonly","id","onValueChange"]);const h=ae.create({orientation:_(()=>l()),disabled:_(()=>r()),loop:_(()=>u()),name:_(()=>f()),required:_(()=>b()),readonly:_(()=>v()),id:_(()=>g()),value:_(()=>o(),M=>{M!==o()&&(o(M),p()?.(M))}),ref:_(()=>i(),M=>i(M))}),m=y(()=>G(a,h.props));var N=Vo(),k=C(N);{var S=M=>{var q=P(),T=C(q);x(T,()=>t.child,()=>({props:s(m)})),c(M,q)},O=M=>{var q=Eo();L(q,()=>({...s(m)}));var T=D(q);x(T,()=>t.children??j),F(q),c(M,q)};E(k,M=>{t.child?M(S):M(O,!1)})}var I=mt(k,2);Fo(I,{}),c(n,N),A()}var Ko=V("<button><!></button>");function Bo(n,t){const e=st();R(t,!0);let r=d(t,"id",19,()=>it(e)),o=d(t,"disabled",3,!1),i=d(t,"ref",15,null),l=B(t,["$$slots","$$events","$$legacy","id","children","child","value","disabled","ref"]);const u=le.create({value:_(()=>t.value),disabled:_(()=>o()??!1),id:_(()=>r()),ref:_(()=>i(),a=>i(a))}),f=y(()=>G(l,u.props));var b=P(),v=C(b);{var g=a=>{var h=P(),m=C(h);{let N=y(()=>({props:s(f),...u.snippetProps}));x(m,()=>t.child,()=>s(N))}c(a,h)},p=a=>{var h=Ko();L(h,()=>({...s(f)}));var m=D(h);x(m,()=>t.children??j,()=>u.snippetProps),F(h),c(a,h)};E(v,a=>{t.child?a(g):a(p,!1)})}c(n,b),A()}var zo=V("<!> <!>",1);function Uo(n,t){R(t,!0);let e=d(t,"value",15),r=d(t,"onValueChange",3,W),o=d(t,"name",3,""),i=d(t,"disabled",3,!1),l=d(t,"open",15,!1),u=d(t,"onOpenChange",3,W),f=d(t,"onOpenChangeComplete",3,W),b=d(t,"loop",3,!1),v=d(t,"scrollAlignment",3,"nearest"),g=d(t,"required",3,!1),p=d(t,"items",19,()=>[]),a=d(t,"allowDeselect",3,!1);function h(){e()===void 0&&e(t.type==="single"?"":[])}h(),ot.pre(()=>e(),()=>{h()});let m=U("");const N=ho.create({type:t.type,value:_(()=>e(),T=>{e(T),r()(T)}),disabled:_(()=>i()),required:_(()=>g()),open:_(()=>l(),T=>{l(T),u()(T)}),loop:_(()=>b()),scrollAlignment:_(()=>v()),name:_(()=>o()),isCombobox:!1,items:_(()=>p()),allowDeselect:_(()=>a()),inputValue:_(()=>s(m),T=>w(m,T,!0)),onOpenChangeComplete:_(()=>f())});var k=zo(),S=C(k);Ne(S,{children:(T,Y)=>{var tt=P(),Z=C(tt);x(Z,()=>t.children??j),c(T,tt)},$$slots:{default:!0}});var O=mt(S,2);{var I=T=>{var Y=P(),tt=C(Y);{var Z=K=>{Ht(K,{get autocomplete(){return t.autocomplete}})},at=K=>{var z=P(),Q=C(z);Dr(Q,16,()=>N.opts.value.current,H=>H,(H,X)=>{Ht(H,{get value(){return X},get autocomplete(){return t.autocomplete}})}),c(K,z)};E(tt,K=>{N.opts.value.current.length===0?K(Z):K(at,!1)})}c(T,Y)},M=y(()=>Array.isArray(N.opts.value.current)),q=T=>{Ht(T,{get autocomplete(){return t.autocomplete},get value(){return N.opts.value.current},set value(Y){N.opts.value.current=Y}})};E(O,T=>{s(M)?T(I):T(q,!1)})}c(n,k),A()}var Lo=V("<button><!></button>");function jo(n,t){const e=st();R(t,!0);let r=d(t,"id",19,()=>it(e)),o=d(t,"ref",15,null),i=d(t,"type",3,"button"),l=B(t,["$$slots","$$events","$$legacy","id","ref","child","children","type"]);const u=re.create({id:_(()=>r()),ref:_(()=>o(),g=>o(g))}),f=y(()=>G(l,u.props,{type:i()}));var b=P(),v=C(b);$(v,()=>ke,(g,p)=>{p(g,{get id(){return r()},get ref(){return u.opts.ref},children:(a,h)=>{var m=P(),N=C(m);{var k=O=>{var I=P(),M=C(I);x(M,()=>t.child,()=>({props:s(f)})),c(O,I)},S=O=>{var I=Lo();L(I,()=>({...s(f)}));var M=D(I);x(M,()=>t.children??j),F(I),c(O,I)};E(N,O=>{t.child?O(k):O(S,!1)})}c(a,m)},$$slots:{default:!0}})}),c(n,b),A()}function Ps(n,t){R(t,!0);let e=d(t,"class",3,""),r=d(t,"sideOffset",3,4),o=B(t,["$$slots","$$events","$$legacy","class","sideOffset","children"]);var i=P(),l=C(i);{let u=y(()=>["sg-menu",e()].filter(Boolean).join(" "));$(l,()=>Mo,(f,b)=>{b(f,J({get class(){return s(u)},get sideOffset(){return r()}},()=>o,{children:(v,g)=>{var p=P(),a=C(p);x(a,()=>t.children??j),c(v,p)},$$slots:{default:!0}}))})}c(n,i),A()}function Ns(n,t){R(t,!0);let e=d(t,"class",3,""),r=d(t,"variant",3,"default"),o=B(t,["$$slots","$$events","$$legacy","class","variant","children"]);var i=P(),l=C(i);{let u=y(()=>["sg-menu-item",r()==="destructive"?"sg-menu-item-destructive":"",e()].filter(Boolean).join(" "));$(l,()=>_o,(f,b)=>{b(f,J({get class(){return s(u)}},()=>o,{children:(v,g)=>{var p=P(),a=C(p);x(a,()=>t.children??j),c(v,p)},$$slots:{default:!0}}))})}c(n,i),A()}function ks(n,t){R(t,!0);let e=d(t,"class",3,""),r=B(t,["$$slots","$$events","$$legacy","class"]);var o=P(),i=C(o);{let l=y(()=>["sg-menu-separator",e()].filter(Boolean).join(" "));$(i,()=>wo,(u,f)=>{f(u,J({get class(){return s(l)}},()=>r))})}c(n,o),A()}function Ss(n,t){let e=B(t,["$$slots","$$events","$$legacy","children"]);var r=P(),o=C(r);$(o,()=>Do,(i,l)=>{l(i,J(()=>e,{children:(u,f)=>{var b=P(),v=C(b);x(v,()=>t.children??j),c(u,b)},$$slots:{default:!0}}))}),c(n,r)}const Is=xo,Os=ee;function xs(n,t){R(t,!0);let e=d(t,"ref",15,null),r=d(t,"value",15,""),o=B(t,["$$slots","$$events","$$legacy","ref","class","value"]);var i=P(),l=C(i);{let u=y(()=>ut("grid gap-0.5 w-full",t.class));$(l,()=>Ho,(f,b)=>{b(f,J({"data-slot":"radio-group",get class(){return s(u)}},()=>o,{get ref(){return e()},set ref(v){e(v)},get value(){return r()},set value(v){r(v)}}))})}c(n,i),A()}var qo=V('<span class="radio-dot svelte-l8hbh2"></span>');function Rs(n,t){R(t,!0);let e=d(t,"ref",15,null),r=B(t,["$$slots","$$events","$$legacy","ref","class"]);var o=P(),i=C(o);{const l=(f,b)=>{let v=()=>b?.().checked;var g=P(),p=C(g);{var a=h=>{var m=qo();c(h,m)};E(p,h=>{v()&&h(a)})}c(f,g)};let u=y(()=>ut("radio-item",t.class));$(i,()=>Bo,(f,b)=>{b(f,J({"data-slot":"radio-group-item",get class(){return s(u)}},()=>r,{get ref(){return e()},set ref(v){e(v)},children:l,$$slots:{default:!0}}))})}c(n,o),A()}function Wo(){let n=U(Ue({})),t=null,e=null;function r(a,h,m){e&&(clearInterval(e),e=null),t=`${a}/${h}/${m}`,i("enter",a,h,m),e=setInterval(()=>{t&&i("heartbeat",a,h,m)},3e4)}function o(){if(e&&(clearInterval(e),e=null),t){const[a,h,m]=t.split("/");a&&h&&m&&i("leave",a,h,m),t=null}}function i(a,h,m,N){Qt.send({type:"presence",action:a,repo:h,entityType:m,entityId:N})}function l(a){const h=`${a.repo}/${a.entityType}/${a.entityId}`,m=s(n)[h]??[];if(a.action==="leave")s(n)[h]=m.filter(N=>N.id!==a.user.id);else{const N=m.findIndex(k=>k.id===a.user.id);N>=0?(m[N]=a.user,s(n)[h]=[...m]):s(n)[h]=[...m,a.user]}}function u(){if(w(n,{},!0),!t)return;const[a,h,m]=t.split("/");a&&h&&m&&i("enter",a,h,m)}function f(a,h,m,N){const k=`${a}/${h}/${m}`,S=s(n)[k]??[];return N?S.filter(O=>O.id!==N):S}function b(a,h){const m=new Map;for(const[N,k]of Object.entries(s(n)))if(N.startsWith(a))for(const S of k)(!h||S.id!==h)&&m.set(S.id,S);return[...m.values()]}function v(a,h){return b(`${a}/`,h)}function g(a){const h=new Map;for(const m of Object.values(s(n)))for(const N of m)(!a||N.id!==a)&&h.set(N.id,N);return[...h.values()]}const p=y(()=>{const a=new Map;for(const h of Object.values(s(n)))for(const m of h)a.set(m.id,m);return[...a.values()]});return{enter:r,leave:o,handlePresenceEvent:l,resetAndResend:u,getPresence:f,getPresenceByPrefix:b,getRepoPresence:v,getAllUsers:g,get allUsers(){return s(p)}}}const ue=Wo();Qt.setPresenceHandler(n=>ue.handlePresenceEvent(n));Qt.addConnectHandler(()=>ue.resetAndResend());typeof window<"u"&&window.addEventListener("beforeunload",()=>ue.leave());function Te(n){const t=n.replace(/^\[\[|\]\]$/g,"").split("|")[0].trim();if(!t)return null;for(const e of Tr.repos){const r=e.entities.find(o=>o.id===t);if(r)return{id:r.id,title:r.title,entityType:r.entityType,repo:e.name,url:`/${e.name}/${r.entityType}/${r.id}`}}return null}function As(n){if(!n)return[];const t=n.replace(/\[\[|\]\]/g,"").split(",").map(r=>r.trim()).filter(Boolean),e=[];for(const r of t){const o=Te(r);o&&e.push(o)}return e}function Go(n){const t=n.replace(/^\[\[|\]\]$/g,""),e=t.indexOf("|");if(e!==-1){const r=t.slice(e+1).trim();if(r)return r}return t.split("|")[0].trim().replace(/-/g," ").replace(/\b\w/g,r=>r.toUpperCase())}const Yo=/[\p{Emoji_Presentation}\p{Extended_Pictographic}]\uFE0F?/gu,Qo=/^\|[\s:|-]+\|$/,Jo=/^[ ]{0,3}([-*_])\s*(\1\s*){2,}$/,Xo=/<!--\s*followups:\s*\[.*?\]\s*-->\s*$/s;function De(n){return n&&n.replace(/(^|[\s(\[{])"(?=\S)/g,"$1“").replace(/"/g,"”").replace(/(^|[\s(\[{])'(?=\S)/g,"$1‘").replace(/'/g,"’")}function Ms(n){let t=!1;return n.replace(/(<[^>]+>)|([^<]+)/g,(e,r,o)=>r?(/<code/i.test(r)&&(t=!0),/<\/code/i.test(r)&&(t=!1),r):!o||t?o??"":o.replace(/(^|[\s(\[{])&quot;(?=\S)/g,"$1“").replace(/&quot;/g,"”").replace(/(^|[\s(\[{])"(?=\S)/g,"$1“").replace(/"/g,"”").replace(/(^|[\s(\[{])&#39;(?=\S)/g,"$1‘").replace(/&#39;/g,"’").replace(/(^|[\s(\[{])'(?=\S)/g,"$1‘").replace(/'/g,"’"))}function Ts(n){return n.replace(Xo,"").trimEnd().replace(Yo,"").replace(/^ {2,}/gm,(t,e,r)=>{const o=r.slice(e+t.length);return/^([-*+]|\d+[.)])\s/.test(o)?t:" "}).split(`
2
- `).map(t=>Qo.test(t)||Jo.test(t)?t:t.replace(/--/g,"—")).join(`
3
- `)}function Ds(n){return n.replace(/\[\[([^\]]+)\]\]/g,(t,e)=>{const r=Te(e);return r?`[${r.title}](${r.url})`:`[${Go(e)}](#)`})}var Zo=V('<span class="select-placeholder"> </span>'),$o=V('<span class="select-label"><!></span> <!>',1);function Fs(n,t){R(t,!0);let e=d(t,"placeholder",3,"Select..."),r=d(t,"size",3,"default"),o=B(t,["$$slots","$$events","$$legacy","children","value","placeholder","class","size"]);var i=P(),l=C(i);{let u=y(()=>ut("select-trigger",r()==="sm"&&"select-trigger-sm",t.class));$(l,()=>jo,(f,b)=>{b(f,J({get class(){return s(u)}},()=>o,{children:(v,g)=>{var p=$o(),a=C(p),h=D(a);{var m=O=>{var I=P(),M=C(I);x(M,()=>t.children),c(O,I)},N=O=>{var I=We();ct(M=>Ct(I,M),[()=>De(t.value)]),c(O,I)},k=O=>{var I=Zo(),M=D(I,!0);F(I),ct(()=>Ct(M,e())),c(O,I)};E(h,O=>{t.children?O(m):t.value?O(N,1):O(k,!1)})}F(a);var S=mt(a,2);{let O=y(()=>r()==="sm"?12:14);Lr(S,{get size(){return s(O)},class:"select-chevron"})}c(v,p)},$$slots:{default:!0}}))})}c(n,i),A()}function Es(n,t){R(t,!0);let e=d(t,"side",3,"bottom"),r=d(t,"sideOffset",3,4),o=B(t,["$$slots","$$events","$$legacy","children","class","side","sideOffset"]);var i=P(),l=C(i);$(l,()=>ee,(u,f)=>{f(u,{children:(b,v)=>{var g=P(),p=C(g);{let a=y(()=>ut("select-content",t.class));$(p,()=>po,(h,m)=>{m(h,J({get class(){return s(a)},get side(){return e()},get sideOffset(){return r()}},()=>o,{children:(N,k)=>{var S=P(),O=C(S);x(O,()=>t.children),c(N,S)},$$slots:{default:!0}}))})}c(b,g)},$$slots:{default:!0}})}),c(n,i),A()}var ts=V('<span class="select-item-text"> </span>'),es=V('<span class="select-item-check-slot"><!></span> <!>',1);function Vs(n,t){R(t,!0);let e=d(t,"disabled",3,!1),r=B(t,["$$slots","$$events","$$legacy","value","label","disabled","class","content"]);var o=P(),i=C(o);{const l=(f,b)=>{let v=()=>b?.().selected;var g=es(),p=C(g),a=D(p);{var h=S=>{Ar(S,{size:12,class:"select-item-check"})};E(a,S=>{v()&&S(h)})}F(p);var m=mt(p,2);{var N=S=>{var O=P(),I=C(O);x(I,()=>t.content,()=>({selected:v()})),c(S,O)},k=S=>{var O=ts(),I=D(O,!0);F(O),ct(M=>Ct(I,M),[()=>De(t.label??t.value)]),c(S,O)};E(m,S=>{t.content?S(N):S(k,!1)})}c(f,g)};let u=y(()=>ut("select-item",t.class));$(i,()=>yo,(f,b)=>{b(f,J({get value(){return t.value},get label(){return t.label},get disabled(){return e()},get class(){return s(u)}},()=>r,{children:l,$$slots:{default:!0}}))})}c(n,o),A()}const Hs=Uo;function Ks(n,t){R(t,!0);let e=d(t,"open",15,!1),r=B(t,["$$slots","$$events","$$legacy","open","onOpenChange","children"]);var o=P(),i=C(o);$(i,()=>Po,(l,u)=>{u(l,J({get onOpenChange(){return t.onOpenChange}},()=>r,{get open(){return e()},set open(f){e(f)},children:(f,b)=>{var v=P(),g=C(v);x(g,()=>t.children),c(f,v)},$$slots:{default:!0}}))}),c(n,o),A()}var rs=V("<!> <!>",1);function Bs(n,t){R(t,!0);let e=d(t,"size",3,"md"),r=B(t,["$$slots","$$events","$$legacy","children","class","size"]);var o=P(),i=C(o);$(i,()=>ee,(l,u)=>{u(l,{children:(f,b)=>{var v=rs(),g=C(v);$(g,()=>ro,(a,h)=>{h(a,{class:"dialog-overlay"})});var p=mt(g,2);{let a=y(()=>ut("dialog-content",`dialog-${e()}`,t.class));$(p,()=>Oo,(h,m)=>{m(h,J({get class(){return s(a)}},()=>r,{children:(N,k)=>{var S=P(),O=C(S);x(O,()=>t.children),c(N,S)},$$slots:{default:!0}}))})}c(f,v)},$$slots:{default:!0}})}),c(n,o),A()}var os=V("<div><!></div>");function zs(n,t){R(t,!0);var e=os(),r=D(e);x(r,()=>t.children),F(e),ct(o=>Lt(e,1,o),[()=>Ut(ut("dialog-header",t.class))]),c(n,e),A()}function Us(n,t){R(t,!0);var e=P(),r=C(e);{let o=y(()=>ut("dialog-title",t.class));$(r,()=>Yr,(i,l)=>{l(i,{get class(){return s(o)},children:(u,f)=>{var b=P(),v=C(b);x(v,()=>t.children),c(u,b)},$$slots:{default:!0}})})}c(n,e),A()}var ss=V("<div><!></div>");function Ls(n,t){R(t,!0);var e=ss(),r=D(e);x(r,()=>t.children),F(e),ct(o=>Lt(e,1,o),[()=>Ut(ut("dialog-body",t.class))]),c(n,e),A()}var ns=V("<div><!></div>");function js(n,t){R(t,!0);var e=ns(),r=D(e);x(r,()=>t.children),F(e),ct(o=>Lt(e,1,o),[()=>Ut(ut("dialog-footer",t.class))]),c(n,e),A()}function qs(n,t){R(t,!0);var e=P(),r=C(e);{let o=y(()=>ut("dialog-close-btn",t.class));$(r,()=>ko,(i,l)=>{l(i,{get class(){return s(o)},children:(u,f)=>{Mr(u,{size:16})},$$slots:{default:!0}})})}c(n,e),A()}async function Ws(n,t,e,r){const o=new FormData;o.append("file",r);const i=await fetch(`/api/repos/${encodeURIComponent(n)}/entities/${encodeURIComponent(t)}/${encodeURIComponent(e)}/assets`,{method:"POST",body:o});if(!i.ok){const l=await i.json().catch(()=>({error:i.statusText}));throw new Error(l.error??"Upload failed")}return i.json()}async function Gs(n){const t=await fetch(`/api/repos/${encodeURIComponent(n)}/assets`);if(!t.ok){const r=await t.json().catch(()=>({error:t.statusText}));throw new Error(r.error??"Failed to list assets")}return(await t.json()).assets}async function Ys(n,t,e,r){const o=await fetch(`/api/repos/${encodeURIComponent(n)}/entities/${encodeURIComponent(t)}/${encodeURIComponent(e)}/assets/${encodeURIComponent(r)}`,{method:"DELETE"});if(!o.ok){const i=await o.json().catch(()=>({error:o.statusText}));throw new Error(i.error??"Delete failed")}}var is=bt("<title> </title>"),as=bt('<svg><!><path d="M10 16 20 6 21.4 7.4 12.8 16 21.4 24.6 20 26z"></path></svg>');function Qs(n,t){const e=yt(t,["children","$$slots","$$events","$$legacy"]),r=yt(e,["size","title"]);R(t,!1);const o=vt(),i=vt();let l=d(t,"size",8,16),u=d(t,"title",8,void 0);gt(()=>(lt(e),lt(u())),()=>{w(o,e["aria-label"]||e["aria-labelledby"]||u())}),gt(()=>(s(o),lt(e)),()=>{w(i,{"aria-hidden":s(o)?void 0:!0,role:s(o)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),Mt(),Ot();var f=as();L(f,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:l(),height:l(),...s(i),...r}));var b=D(f);{var v=g=>{var p=is(),a=D(p,!0);F(p),ct(()=>Ct(a,u())),c(g,p)};E(b,g=>{u()&&g(v)})}Tt(),F(f),c(n,f),A()}export{Se as A,Oe as B,Lr as C,Bs as D,$t as E,Ie as F,ee as G,Yr as H,ro as I,ws as J,ho as K,Ht as L,Me as M,oe as N,yo as O,Os as P,Ws as Q,xs as R,Fs as S,Ys as T,Ms as U,Ds as V,Ts as W,zs as a,qs as b,Ls as c,Us as d,js as e,Go as f,Ks as g,Ss as h,Ps as i,Ns as j,Er as k,ks as l,Is as m,_s as n,Rs as o,ue as p,As as q,Te as r,De as s,Qs as t,Es as u,Hs as v,Vs as w,Gs as x,Cs as y,Jt as z};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.BoP7EznM.js","../chunks/PPVm8Dsz.js","../chunks/DsnmJJEf.js","../chunks/CTh3LGxI.js","../chunks/Ca1DAtQh.js","../chunks/CcmvIPLE.js","../chunks/BDtxhI5r.js","../chunks/B584Plw_.js","../chunks/BK42PcDI.js","../chunks/CBiBLuiK.js","../chunks/UPEqhJHW.js","../chunks/ChL9MLYT.js","../chunks/CVWN0my4.js","../chunks/DFYOFE3o.js","../chunks/B-8WiidI.js","../chunks/BvVwTRB5.js","../chunks/BT1EtT-T.js","../chunks/Ckiai0LF.js","../chunks/BUzEKAuP.js","../chunks/CmQUXR-Q.js","../chunks/BVXp0xQD.js","../chunks/B9rnDSMy.js","../chunks/B1f42VKu.js","../chunks/BJVJpWzz.js","../assets/Toaster.rN8r_Hzv.css","../chunks/QtcHHeRi.js","../assets/0.C5UfMb0y.css","../nodes/1.D88C7B3J.js","../nodes/2.CIsXawC1.js","../chunks/Derf2KR0.js","../chunks/hXfpX92g.js","../chunks/oIb8yPFh.js","../chunks/DckX78C-.js","../chunks/xNAOqGHi.js","../assets/ChevronLeft.DkKx6zzU.css","../chunks/Bjbdko8J.js","../chunks/BQiOMhgK.js","../chunks/IWO0A1w9.js","../chunks/PHw7Ht7D.js","../chunks/COSWCWJc.js","../chunks/BCJtO6Up.js","../chunks/DXlELvfC.js","../chunks/Dmcboreb.js","../chunks/CX_61fY8.js","../assets/2.DF2alPoJ.css","../nodes/3.gLLCp7pi.js","../chunks/_FGjjD9P.js","../assets/ViewToolbar.SyuJrtFp.css","../chunks/BaMdMBD6.js","../chunks/BMB60CtO.js","../assets/3.K3A_7PML.css","../nodes/4.DBRtBuw0.js","../chunks/D3dgfs75.js","../chunks/CqkleIqs.js","../assets/4.Bw-eH9Xv.css","../nodes/5.Cl_maDlW.js","../chunks/DGvzULxd.js","../assets/GraphView.CN1QbOuA.css","../nodes/6.BcAq3XZ9.js","../nodes/7.BkUvTb7i.js","../nodes/8.C1Hsaxzw.js","../chunks/CXKVCl01.js","../assets/WorkspaceView.CFCGULVf.css","../nodes/9.SeWvoOCo.js","../nodes/10.-ZvCdP8I.js","../assets/10.2jzI3cZY.css","../nodes/11.BykVkP_y.js","../assets/11.BysgAqqA.css","../nodes/12.D3wEsz-7.js","../assets/12.Cv7_3lm3.css"])))=>i.map(i=>d[i]);
2
- import{_ as s}from"../chunks/PPVm8Dsz.js";import{s as I,ak as $,g as m,an as tt,M as et,m as rt,p as at,P as st,i as ot,ao as nt,ap as it,f as v,h as mt,b as _t,e as w,u as O,c as ct,r as ut,t as dt}from"../chunks/CTh3LGxI.js";import{h as lt,m as ft,u as vt,a as u,c as p,b as Y,t as gt,s as ht}from"../chunks/Ca1DAtQh.js";import"../chunks/DsnmJJEf.js";import{p as L,i as D,b as R}from"../chunks/CcmvIPLE.js";import{c as A}from"../chunks/B1f42VKu.js";function pt(o){return class extends Et{constructor(t){super({component:o,...t})}}}class Et{#e;#t;constructor(t){var a=new Map,_=(r,e)=>{var c=rt(e,!1,!1);return a.set(r,c),c};const i=new Proxy({...t.props||{},$$events:{}},{get(r,e){return m(a.get(e)??_(e,Reflect.get(r,e)))},has(r,e){return e===$?!0:(m(a.get(e)??_(e,Reflect.get(r,e))),Reflect.has(r,e))},set(r,e,c){return I(a.get(e)??_(e,c),c),Reflect.set(r,e,c)}});this.#t=(t.hydrate?lt:ft)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError}),(!t?.props?.$$host||t.sync===!1)&&tt(),this.#e=i.$$events;for(const r of Object.keys(this.#t))r==="$set"||r==="$destroy"||r==="$on"||et(this,r,{get(){return this.#t[r]},set(e){this.#t[r]=e},enumerable:!0});this.#t.$set=r=>{Object.assign(i,r)},this.#t.$destroy=()=>{vt(this.#t)}}$set(t){this.#t.$set(t)}$on(t,a){this.#e[t]=this.#e[t]||[];const _=(...i)=>a.call(this,...i);return this.#e[t].push(_),()=>{this.#e[t]=this.#e[t].filter(i=>i!==_)}}$destroy(){this.#t.$destroy()}}const kt={};var Pt=Y('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),yt=Y("<!> <!>",1);function bt(o,t){at(t,!0);let a=L(t,"components",23,()=>[]),_=L(t,"data_0",3,null),i=L(t,"data_1",3,null),r=L(t,"data_2",3,null);st(()=>t.stores.page.set(t.page)),ot(()=>{t.stores,t.page,t.constructors,a(),t.form,_(),i(),r(),t.stores.page.notify()});let e=w(!1),c=w(!1),j=w(null);nt(()=>{const n=t.stores.page.subscribe(()=>{m(e)&&(I(c,!0),it().then(()=>{I(j,document.title||"untitled page",!0)}))});return I(e,!0),n});const z=O(()=>t.constructors[2]);var C=yt(),M=v(C);{var B=n=>{const d=O(()=>t.constructors[0]);var l=p(),E=v(l);A(E,()=>m(d),(f,g)=>{R(g(f,{get data(){return _()},get form(){return t.form},get params(){return t.page.params},children:(P,Rt)=>{var S=p(),K=v(S);{var N=h=>{const T=O(()=>t.constructors[1]);var y=p(),V=v(y);A(V,()=>m(T),(x,k)=>{R(k(x,{get data(){return i()},get form(){return t.form},get params(){return t.page.params},children:(b,At)=>{var G=p(),U=v(G);A(U,()=>m(z),(W,X)=>{R(X(W,{get data(){return r()},get form(){return t.form},get params(){return t.page.params}}),Z=>a()[2]=Z,()=>a()?.[2])}),u(b,G)},$$slots:{default:!0}}),b=>a()[1]=b,()=>a()?.[1])}),u(h,y)},Q=h=>{const T=O(()=>t.constructors[1]);var y=p(),V=v(y);A(V,()=>m(T),(x,k)=>{R(k(x,{get data(){return i()},get form(){return t.form},get params(){return t.page.params}}),b=>a()[1]=b,()=>a()?.[1])}),u(h,y)};D(K,h=>{t.constructors[2]?h(N):h(Q,!1)})}u(P,S)},$$slots:{default:!0}}),P=>a()[0]=P,()=>a()?.[0])}),u(n,l)},F=n=>{const d=O(()=>t.constructors[0]);var l=p(),E=v(l);A(E,()=>m(d),(f,g)=>{R(g(f,{get data(){return _()},get form(){return t.form},get params(){return t.page.params}}),P=>a()[0]=P,()=>a()?.[0])}),u(n,l)};D(M,n=>{t.constructors[1]?n(B):n(F,!1)})}var H=mt(M,2);{var J=n=>{var d=Pt(),l=ct(d);{var E=f=>{var g=gt();dt(()=>ht(g,m(j))),u(f,g)};D(l,f=>{m(c)&&f(E)})}ut(d),u(n,d)};D(H,n=>{m(e)&&n(J)})}u(o,C),_t()}const wt=pt(bt),jt=[()=>s(()=>import("../nodes/0.BoP7EznM.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]),import.meta.url),()=>s(()=>import("../nodes/1.D88C7B3J.js"),__vite__mapDeps([27,2,23,3,4,9]),import.meta.url),()=>s(()=>import("../nodes/2.CIsXawC1.js"),__vite__mapDeps([28,2,3,4,7,5,6,1,16,9,14,12,13,11,15,22,10,29,17,23,30,31,32,33,34,35,36,37,38,39,40,18,19,41,42,43,44]),import.meta.url),()=>s(()=>import("../nodes/3.gLLCp7pi.js"),__vite__mapDeps([45,1,2,3,4,5,6,16,9,14,12,13,11,15,22,7,46,32,23,30,20,47,39,36,37,31,18,19,25,48,49,50]),import.meta.url),()=>s(()=>import("../nodes/4.DBRtBuw0.js"),__vite__mapDeps([51,12,13,1,2,3,4,5,6,7,9,10,33,23,22,31,32,17,11,15,14,16,34,46,30,20,47,52,35,36,38,48,53,54]),import.meta.url),()=>s(()=>import("../nodes/5.Cl_maDlW.js"),__vite__mapDeps([55,2,3,4,46,7,5,6,16,9,14,12,13,11,15,32,23,30,20,47,56,1,57]),import.meta.url),()=>s(()=>import("../nodes/6.BcAq3XZ9.js"),__vite__mapDeps([58,2,3,9,14,12,13]),import.meta.url),()=>s(()=>import("../nodes/7.BkUvTb7i.js"),__vite__mapDeps([59,2,3,6,10,9,14,12,13,15]),import.meta.url),()=>s(()=>import("../nodes/8.C1Hsaxzw.js"),__vite__mapDeps([60,2,3,4,33,23,5,6,7,22,31,32,17,1,9,11,12,13,15,14,16,34,46,30,20,47,61,29,52,39,48,56,57,49,62]),import.meta.url),()=>s(()=>import("../nodes/9.SeWvoOCo.js"),__vite__mapDeps([63,2,3,4,33,23,5,6,7,22,31,32,17,1,9,11,12,13,15,14,16,34,46,30,20,47,61,29,52,39,48,56,57,49,62]),import.meta.url),()=>s(()=>import("../nodes/10.-ZvCdP8I.js"),__vite__mapDeps([64,2,3,4,5,6,9,46,7,16,14,12,13,11,15,32,23,30,20,47,61,1,22,29,17,52,33,31,34,39,48,56,57,49,62,65]),import.meta.url),()=>s(()=>import("../nodes/11.BykVkP_y.js"),__vite__mapDeps([66,2,3,4,5,6,8,9,15,13,32,7,38,67]),import.meta.url),()=>s(()=>import("../nodes/12.D3wEsz-7.js"),__vite__mapDeps([68,2,3,4,5,6,8,9,15,13,11,12,32,7,38,69]),import.meta.url)],Ct=[],Mt={"/(app)":[3,[2]],"/(app)/graph":[5,[2]],"/login":[11],"/(app)/settings":[6,[2]],"/(app)/settings/[tab]":[7,[2]],"/setup":[12],"/(app)/workspace/folder/[name]":[9,[2]],"/(app)/workspace/search":[10,[2]],"/(app)/workspace/[type]":[8,[2]],"/(app)/[repo]/[type]/[id]":[4,[2]]},q={handleError:(({error:o})=>{console.error(o)}),reroute:(()=>{}),transport:{}},Ot=Object.fromEntries(Object.entries(q.transport).map(([o,t])=>[o,t.decode])),St=Object.fromEntries(Object.entries(q.transport).map(([o,t])=>[o,t.encode])),Gt=!1,Yt=(o,t)=>Ot[o](t);export{Yt as decode,Ot as decoders,Mt as dictionary,St as encoders,Gt as hash,q as hooks,kt as matchers,jt as nodes,wt as root,Ct as server_loads};
@@ -1 +0,0 @@
1
- import{l as o,a as r}from"../chunks/CBiBLuiK.js";export{o as load_css,r as start};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../chunks/BT1EtT-T.js","../chunks/CTh3LGxI.js","../chunks/CBiBLuiK.js","../chunks/B-8WiidI.js","../chunks/CVWN0my4.js","../chunks/DFYOFE3o.js","../chunks/ChL9MLYT.js","../chunks/BvVwTRB5.js","../chunks/Ca1DAtQh.js","../chunks/BCJtO6Up.js","../chunks/BB_5th5W.js","../chunks/PPVm8Dsz.js","../chunks/CqkleIqs.js","../chunks/Dmcboreb.js","../chunks/CX_61fY8.js","../chunks/CH2ArZqX.js","../chunks/C7PgRgxX.js","../chunks/Bz0ZjVQE.js"])))=>i.map(i=>d[i]);
2
- import{_ as $}from"../chunks/PPVm8Dsz.js";import"../chunks/DsnmJJEf.js";import{p as S,l as y,s as u,d as g,g as r,a as k,c as E,n as D,r as I,b as P,m as x,t as F,aq as se,e as V,V as J,be as K,i as H,ao as le,f as Q,h as de,U as ce,$ as me}from"../chunks/CTh3LGxI.js";import{a as b,s as B,f as z,b as ue,c as pe}from"../chunks/Ca1DAtQh.js";import{l as A,p as M,i as O,s as he,r as fe}from"../chunks/CcmvIPLE.js";import{a as N,s as ge}from"../chunks/B584Plw_.js";import{h as ve}from"../chunks/BK42PcDI.js";import{a as _e,s as we}from"../chunks/BDtxhI5r.js";import{g as q}from"../chunks/CBiBLuiK.js";import{p as be}from"../chunks/UPEqhJHW.js";import{h as $e,w as L}from"../chunks/ChL9MLYT.js";import{n as ae}from"../chunks/B-8WiidI.js";import{a as C}from"../chunks/BvVwTRB5.js";import{c as ye,f as X}from"../chunks/BT1EtT-T.js";import{r as ee}from"../chunks/Ckiai0LF.js";import{insightsStore as Z}from"../chunks/BUzEKAuP.js";import{u as Ee}from"../chunks/CmQUXR-Q.js";import{m as U}from"../chunks/BVXp0xQD.js";import{T as Ie}from"../chunks/B9rnDSMy.js";import{R as xe}from"../chunks/QtcHHeRi.js";import{i as Y}from"../chunks/BJVJpWzz.js";let te=!1;function Ae(){te||typeof window>"u"||(te=!0,window.addEventListener("sg:electron-ready",i=>{U.handleElectronReady(i.detail||{})}),window.addEventListener("sg:recording-started",i=>{U.handleRecordingStarted(i.detail||{})}),window.addEventListener("sg:recording-stopped",i=>{U.handleRecordingStopped(i.detail||{})}),window.addEventListener("sg:meeting-detected",()=>{}),window.addEventListener("sg:open-settings",i=>{const t=i.detail?.tab||"meeting-capture";ae.settingsPanel="integrations",window.dispatchEvent(new CustomEvent("sg:set-settings-tab",{detail:{tab:t}}))}))}var Me=z("<title> </title>"),ze=z('<svg><!><path d="M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2ZM14,21.5908l-5-5L10.5906,15,14,18.4092,21.41,11l1.5957,1.5859Z"></path><path fill="none" d="M14 21.591 9 16.591 10.591 15 14 18.409 21.41 11 23.005 12.585 14 21.591z" data-icon-path="inner-path"></path></svg>');function Le(i,t){const e=A(t,["children","$$slots","$$events","$$legacy"]),v=A(e,["size","title"]);S(t,!1);const o=x(),m=x();let p=M(t,"size",8,16),a=M(t,"title",8,void 0);y(()=>(g(e),g(a())),()=>{u(o,e["aria-label"]||e["aria-labelledby"]||a())}),y(()=>(r(o),g(e)),()=>{u(m,{"aria-hidden":r(o)?void 0:!0,role:r(o)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),k(),Y();var n=ze();N(n,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:p(),height:p(),...r(m),...v}));var s=E(n);{var h=d=>{var c=Me(),f=E(c,!0);I(c),F(()=>B(f,a())),b(d,c)};O(s,d=>{a()&&d(h)})}D(2),I(n),b(i,n),P()}var Se=z("<title> </title>"),Pe=z('<svg><!><path fill="none" d="M14.9 7.2H17.1V24.799H14.9z" data-icon-path="inner-path" transform="rotate(-45 16 16)"></path><path d="M16,2A13.914,13.914,0,0,0,2,16,13.914,13.914,0,0,0,16,30,13.914,13.914,0,0,0,30,16,13.914,13.914,0,0,0,16,2Zm5.4449,21L9,10.5557,10.5557,9,23,21.4448Z"></path></svg>');function Re(i,t){const e=A(t,["children","$$slots","$$events","$$legacy"]),v=A(e,["size","title"]);S(t,!1);const o=x(),m=x();let p=M(t,"size",8,16),a=M(t,"title",8,void 0);y(()=>(g(e),g(a())),()=>{u(o,e["aria-label"]||e["aria-labelledby"]||a())}),y(()=>(r(o),g(e)),()=>{u(m,{"aria-hidden":r(o)?void 0:!0,role:r(o)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),k(),Y();var n=Pe();N(n,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:p(),height:p(),...r(m),...v}));var s=E(n);{var h=d=>{var c=Se(),f=E(c,!0);I(c),F(()=>B(f,a())),b(d,c)};O(s,d=>{a()&&d(h)})}D(2),I(n),b(i,n),P()}var Ce=z("<title> </title>"),Ze=z('<svg><!><path fill="none" d="M16,8a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,16,8Zm4,13.875H17.125v-8H13v2.25h1.875v5.75H12v2.25h8Z" data-icon-path="inner-path"></path><path d="M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,6a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,16,8Zm4,16.125H12v-2.25h2.875v-5.75H13v-2.25h4.125v8H20Z"></path></svg>');function Oe(i,t){const e=A(t,["children","$$slots","$$events","$$legacy"]),v=A(e,["size","title"]);S(t,!1);const o=x(),m=x();let p=M(t,"size",8,16),a=M(t,"title",8,void 0);y(()=>(g(e),g(a())),()=>{u(o,e["aria-label"]||e["aria-labelledby"]||a())}),y(()=>(r(o),g(e)),()=>{u(m,{"aria-hidden":r(o)?void 0:!0,role:r(o)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),k(),Y();var n=Ze();N(n,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:p(),height:p(),...r(m),...v}));var s=E(n);{var h=d=>{var c=Ce(),f=E(c,!0);I(c),F(()=>B(f,a())),b(d,c)};O(s,d=>{a()&&d(h)})}D(2),I(n),b(i,n),P()}var Te=z("<title> </title>"),Ve=z('<svg><!><path fill="none" d="M16,26a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,16,26Zm-1.125-5h2.25V12h-2.25Z" data-icon-path="inner-path"></path><path d="M16.002,6.1714h-.004L4.6487,27.9966,4.6506,28H27.3494l.0019-.0034ZM14.875,12h2.25v9h-2.25ZM16,26a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,16,26Z"></path><path d="M29,30H3a1,1,0,0,1-.8872-1.4614l13-25a1,1,0,0,1,1.7744,0l13,25A1,1,0,0,1,29,30ZM4.6507,28H27.3493l.002-.0033L16.002,6.1714h-.004L4.6487,27.9967Z"></path></svg>');function He(i,t){const e=A(t,["children","$$slots","$$events","$$legacy"]),v=A(e,["size","title"]);S(t,!1);const o=x(),m=x();let p=M(t,"size",8,16),a=M(t,"title",8,void 0);y(()=>(g(e),g(a())),()=>{u(o,e["aria-label"]||e["aria-labelledby"]||a())}),y(()=>(r(o),g(e)),()=>{u(m,{"aria-hidden":r(o)?void 0:!0,role:r(o)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),k(),Y();var n=Ve();N(n,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:p(),height:p(),...r(m),...v}));var s=E(n);{var h=d=>{var c=Te(),f=E(c,!0);I(c),F(()=>B(f,a())),b(d,c)};O(s,d=>{a()&&d(h)})}D(3),I(n),b(i,n),P()}function ke(i,t){S(t,!0);const e=se("theme");let v=fe(t,["$$slots","$$events","$$legacy"]);Ie(i,he({get theme(){return e.current},class:"toaster group",style:"--normal-bg: var(--color-bg-elevated); --normal-text: var(--color-text-primary); --normal-border: var(--color-border-strong);",duration:6e3},()=>v,{loadingIcon:s=>{xe(s,{class:"size-4 animate-spin"})},successIcon:s=>{Le(s,{class:"size-4"})},errorIcon:s=>{Re(s,{class:"size-4"})},infoIcon:s=>{Oe(s,{class:"size-4"})},warningIcon:s=>{He(s,{class:"size-4"})},$$slots:{loadingIcon:!0,successIcon:!0,errorIcon:!0,infoIcon:!0,warningIcon:!0}})),P()}var De=ue("<!> <!>",1);function lt(i,t){S(t,!0);const e=()=>we(be,"$page",v),[v,o]=_e();if(typeof document<"u"){const l=typeof localStorage<"u"?localStorage.getItem("theme"):null,_=typeof window<"u"&&window.matchMedia?.("(prefers-color-scheme: light)").matches?"light":"dark";document.documentElement.setAttribute("data-theme",l??_)}$e();const m=typeof localStorage<"u"?localStorage.getItem("theme"):null,p=typeof window<"u"&&window.matchMedia?.("(prefers-color-scheme: light)").matches?"light":"dark";let a=V(J(m||p));K("theme",{get current(){return r(a)},toggle(){u(a,r(a)==="dark"?"light":"dark",!0),localStorage.setItem("theme",r(a))}});const s=typeof localStorage<"u"?localStorage.getItem("chatMode")==="panel":!1;let h=V(J(s));function d(){localStorage.setItem("chatMode",r(h)?"panel":"closed"),localStorage.removeItem("chatOpen")}K("chat",{get open(){return r(h)},toggle(){u(h,!r(h)),d()},close(){u(h,!1),d()},sendPrompt(l,_){Promise.all([$(()=>import("../chunks/BT1EtT-T.js").then(w=>w.d),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url),$(()=>import("../chunks/BCJtO6Up.js"),__vite__mapDeps([9,1]),import.meta.url)]).then(([w,T])=>{T.agentOverlay.show(),w.chatStore.send(l,_),setTimeout(()=>w.chatStore.triggerScroll(),100)})}}),H(()=>{document.documentElement.setAttribute("data-theme",r(a)),Z.briefLoaded&&L.applyAccentColor(Z.accentColor)}),H(()=>{Z.briefLoaded&&L.applyAccentColor(Z.accentColor)});let f=V(null);H(()=>{if(C.loading)return;const l=C.user?.email??(C.authEnabled?null:"__open__");l&&l!==r(f)&&(r(f)!==null&&ae.deselect(),u(f,l,!0),L.load(),Z.load(),Ee.load(),ee.connect()),!l&&r(f)&&(u(f,null),ee.disconnect())});let W=V(null);H(()=>{if(!L.nameLoaded)return;const l=L.name||"__empty__";l!==r(W)&&(u(W,l,!0),ye.reinitialize())}),le(async()=>{const l=window.location.pathname,_=l==="/login",w=l==="/setup",{authenticated:T,authEnabled:ne,needsSetup:ie}=await C.checkAuth();if(ie&&!w){q("/setup");return}if(ne&&!T&&!_){q("/login");return}if(T&&(_||w)){q("/");return}_||w||(await X.load(),X.meetingCapture&&Ae(),$(()=>import("../chunks/BB_5th5W.js"),__vite__mapDeps([10,11,12]),import.meta.url).catch(()=>{}),Promise.all([$(()=>import("../chunks/CX_61fY8.js"),[],import.meta.url),$(()=>import("../chunks/Dmcboreb.js").then(R=>R.i),__vite__mapDeps([13,14]),import.meta.url),$(()=>import("../chunks/CH2ArZqX.js"),__vite__mapDeps([15,14,13,16,17]),import.meta.url),$(()=>import("../chunks/C7PgRgxX.js"),__vite__mapDeps([16,17,14,13]),import.meta.url),$(()=>import("../chunks/Bz0ZjVQE.js").then(R=>R.i),[],import.meta.url)]).catch(()=>{}),window.addEventListener("sg-theme-change",R=>{u(a,R.detail,!0)}))});var j=De();ve("12qhfyh",l=>{ce(()=>{me.title=(L.name||"Studiograph")??""})});var G=Q(j);{var re=l=>{var _=pe(),w=Q(_);ge(w,()=>t.children),b(l,_)};O(G,l=>{!C.loading&&(L.nameLoaded||e().url.pathname==="/login"||e().url.pathname==="/setup")&&l(re)})}var oe=de(G,2);ke(oe,{}),b(i,j),P(),o()}export{lt as component};
@@ -1 +0,0 @@
1
- import"../chunks/DsnmJJEf.js";import{i as h}from"../chunks/BJVJpWzz.js";import{p as u,f as g,t as l,b as v,c as a,r as e,h as d}from"../chunks/CTh3LGxI.js";import{a as _,b as x,s as o}from"../chunks/Ca1DAtQh.js";import{s as b,p}from"../chunks/CBiBLuiK.js";const $={get error(){return p.error},get status(){return p.status}};b.updated.check;const m=$;var k=x("<h1> </h1> <p> </p>",1);function z(i,c){u(c,!1),h();var t=k(),r=g(t),f=a(r,!0);e(r);var s=d(r,2),n=a(s,!0);e(s),l(()=>{o(f,m.status),o(n,m.error?.message)}),_(i,t),v()}export{z as component};
@@ -1 +0,0 @@
1
- import"../chunks/DsnmJJEf.js";import{p as V,e as p,V as q,i as c,N as k,g as t,s as a,f as P,b as W,u as d,h as j}from"../chunks/CTh3LGxI.js";import{a as g,b as v}from"../chunks/Ca1DAtQh.js";import{i as x}from"../chunks/CcmvIPLE.js";import{g as E}from"../chunks/CBiBLuiK.js";import{s as N,V as O}from"../chunks/_FGjjD9P.js";import{W as T}from"../chunks/CXKVCl01.js";import{n as h}from"../chunks/B-8WiidI.js";import{r as z,t as A}from"../chunks/ChL9MLYT.js";const C=({url:i})=>({query:i.searchParams.get("q")??""}),R=Object.freeze(Object.defineProperty({__proto__:null,load:C},Symbol.toStringTag,{value:"Module"}));var F=v('<div class="search-loading svelte-u56y4m">Searching...</div>'),I=v("<!> <!>",1);function U(i,m){V(m,!0);const n=d(()=>m.data.query);let r=p(q([])),s=p(!1);c(()=>{h.showView(-1)}),c(()=>{k(()=>h.deselect())}),c(()=>{const e=t(n);if(!e){a(r,[],!0),E("/",{replaceState:!0});return}a(s,!0),N({q:e}).then(l=>{a(r,l.filter(o=>!o.id.toLowerCase().startsWith("readme")).map(o=>{const w=z(o.path);return A(o,w)}),!0),a(s,!1)}).catch(()=>{a(r,[],!0),a(s,!1)})});const _=d(()=>t(n)?`Search: ${t(n)}`:"Search");var f=I(),u=P(f);O(u,{activeView:"view"});var y=j(u,2);{var b=e=>{var l=F();g(e,l)},S=e=>{T(e,{get name(){return t(_)},storageId:"search",get entities(){return t(r)},defaultSortKey:"created_at",defaultSortAsc:!1})};x(y,e=>{t(s)&&t(r).length===0?e(b):e(S,!1)})}g(i,f),W()}export{U as component,R as universal};
@@ -1 +0,0 @@
1
- import"../chunks/DsnmJJEf.js";import{p as G,t as S,b as H,U as J,g as s,u as K,c as t,h as l,$ as L,r as a,s as o,n as M,e as p}from"../chunks/CTh3LGxI.js";import{e as O,a as _,s as b,b as P,t as Q}from"../chunks/Ca1DAtQh.js";import{i as R}from"../chunks/CcmvIPLE.js";import{h as V}from"../chunks/BK42PcDI.js";import{g as W}from"../chunks/CBiBLuiK.js";import{a as q}from"../chunks/BvVwTRB5.js";import{B as X}from"../chunks/DckX78C-.js";import{I}from"../chunks/PHw7Ht7D.js";var Y=P('<p class="error-msg svelte-1x05zx6"> </p>'),Z=P('<div class="login-page svelte-1x05zx6"><div class="login-card svelte-1x05zx6"><div class="logo svelte-1x05zx6"><div class="logo-icon svelte-1x05zx6"> </div> <span class="logo-text svelte-1x05zx6"> </span></div> <form class="svelte-1x05zx6"><label class="field svelte-1x05zx6"><span class="field-label svelte-1x05zx6">Email</span> <!></label> <label class="field svelte-1x05zx6"><span class="field-label svelte-1x05zx6">Password</span> <!></label> <!> <!></form></div></div>');function pe(k,B){G(B,!0);const v=K(()=>q.workspaceName||"Studiograph");let h=p(""),z=p(""),n=p(""),u=p(!1);async function E(e){e.preventDefault();const r=e.currentTarget,i=r.querySelector('input[type="email"]').value,j=r.querySelector('input[type="password"]').value;o(n,""),o(u,!0);try{await q.login(i,j),W("/")}catch(F){o(n,F.message||"Invalid credentials",!0)}finally{o(u,!1)}}var d=Z();V("1x05zx6",e=>{J(()=>{L.title=`Sign in — ${s(v)??""}`})});var y=t(d),c=t(y),m=t(c),N=t(m,!0);a(m);var $=l(m,2),U=t($,!0);a($),a(c);var f=l(c,2),x=t(f),A=l(t(x),2);I(A,{type:"email",required:!0,autocomplete:"email",autofocus:!0,class:"field-input",get value(){return s(h)},set value(e){o(h,e,!0)}}),a(x);var g=l(x,2),C=l(t(g),2);I(C,{type:"password",required:!0,autocomplete:"current-password",class:"field-input",get value(){return s(z)},set value(e){o(z,e,!0)}}),a(g);var w=l(g,2);{var D=e=>{var r=Y(),i=t(r,!0);a(r),S(()=>b(i,s(n))),_(e,r)};R(w,e=>{s(n)&&e(D)})}var T=l(w,2);X(T,{variant:"accent",type:"submit",class:"submit-btn",get disabled(){return s(u)},children:(e,r)=>{M();var i=Q("Sign in");_(e,i)},$$slots:{default:!0}}),a(f),a(y),a(d),S(e=>{b(N,e),b(U,s(v))},[()=>s(v).charAt(0).toUpperCase()]),O("submit",f,E),_(k,d),H()}export{pe as component};
@@ -1 +0,0 @@
1
- import"../chunks/DsnmJJEf.js";import{p as G,t as N,b as H,U as J,s as r,g as a,e as o,h as l,c as t,u as K,$ as O,r as s,n as q}from"../chunks/CTh3LGxI.js";import{e as Q,a as $,t as R,s as w,b as B}from"../chunks/Ca1DAtQh.js";import{i as T}from"../chunks/CcmvIPLE.js";import{h as V}from"../chunks/BK42PcDI.js";import{g as W}from"../chunks/CBiBLuiK.js";import{a as A}from"../chunks/BvVwTRB5.js";import{w as X}from"../chunks/ChL9MLYT.js";import{B as Z}from"../chunks/DckX78C-.js";import{I as S}from"../chunks/PHw7Ht7D.js";var ee=B('<p class="error-msg svelte-g40i6i"> </p>'),ae=B('<div class="setup-page svelte-g40i6i"><div class="setup-card svelte-g40i6i"><div class="logo svelte-g40i6i"><div class="logo-icon svelte-g40i6i"> </div> <span class="logo-text svelte-g40i6i"> </span></div> <p class="subtitle svelte-g40i6i">Create your admin account to get started.</p> <form class="svelte-g40i6i"><label class="field svelte-g40i6i"><span class="field-label svelte-g40i6i">Name</span> <!></label> <label class="field svelte-g40i6i"><span class="field-label svelte-g40i6i">Email</span> <!></label> <label class="field svelte-g40i6i"><span class="field-label svelte-g40i6i">Password</span> <!> <span class="field-hint svelte-g40i6i">At least 8 characters</span></label> <!> <!></form></div></div>');function de(P,U){G(U,!0);const n=K(()=>A.workspaceName||"Studiograph");let u=o(""),v=o(""),d=o(""),p=o(""),c=o(!1);async function D(e){e.preventDefault(),r(p,""),r(c,!0);try{await A.setup(a(u),a(v),a(d)||void 0),localStorage.setItem("chatMode","panel"),X.load(),W("/")}catch(i){r(p,i.message||"Setup failed",!0)}finally{r(c,!1)}}var m=ae();V("g40i6i",e=>{J(()=>{O.title=`Setup — ${a(n)??""}`})});var k=t(m),f=t(k),g=t(f),E=t(g,!0);s(g);var C=l(g,2),L=t(C,!0);s(C),s(f);var b=l(f,4),_=t(b),M=l(t(_),2);S(M,{type:"text",placeholder:"Your name",autocomplete:"name",autofocus:!0,class:"field-input",get value(){return a(d)},set value(e){r(d,e,!0)}}),s(_);var h=l(_,2),Y=l(t(h),2);S(Y,{type:"email",required:!0,autocomplete:"email",class:"field-input",get value(){return a(u)},set value(e){r(u,e,!0)}}),s(h);var x=l(h,2),j=l(t(x),2);S(j,{type:"password",required:!0,minlength:8,autocomplete:"new-password",class:"field-input",get value(){return a(v)},set value(e){r(v,e,!0)}}),q(2),s(x);var I=l(x,2);{var z=e=>{var i=ee(),y=t(i,!0);s(i),N(()=>w(y,a(p))),$(e,i)};T(I,e=>{a(p)&&e(z)})}var F=l(I,2);Z(F,{variant:"accent",type:"submit",class:"submit-btn",get disabled(){return a(c)},children:(e,i)=>{q();var y=R("Create account");$(e,y)},$$slots:{default:!0}}),s(b),s(k),s(m),N(e=>{w(E,e),w(L,a(n))},[()=>a(n).charAt(0).toUpperCase()]),Q("submit",b,D),$(P,m),H()}export{de as component};