studiograph 1.3.44-next.12 → 1.3.44-next.14

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 (37) hide show
  1. package/dist/web/_app/immutable/assets/2.Dp4DXq6m.css +1 -0
  2. package/dist/web/_app/immutable/assets/4.CF--By4G.css +1 -0
  3. package/dist/web/_app/immutable/assets/{8.typoxX8e.css → 8.DXc-iTTx.css} +1 -1
  4. package/dist/web/_app/immutable/chunks/{DWhD9HmY.js → BBKkjbG3.js} +1 -1
  5. package/dist/web/_app/immutable/chunks/{BoNse1V-.js → Btdblixo.js} +1 -1
  6. package/dist/web/_app/immutable/chunks/{DKpxka9y.js → C9RtA91n.js} +1 -1
  7. package/dist/web/_app/immutable/chunks/{CMI65_Ir.js → CRMZi-rj.js} +1 -1
  8. package/dist/web/_app/immutable/chunks/{CTfMb0oB.js → CZnFLHZY.js} +1 -1
  9. package/dist/web/_app/immutable/chunks/DJQi596I.js +1 -0
  10. package/dist/web/_app/immutable/chunks/{CjNv-xfA.js → DewdtTcU.js} +1 -1
  11. package/dist/web/_app/immutable/chunks/{VY_jCQSj.js → DpvsjMfA.js} +1 -1
  12. package/dist/web/_app/immutable/chunks/{Mvm7cCyj.js → Dw0OBYq7.js} +1 -1
  13. package/dist/web/_app/immutable/chunks/{CULlunSW.js → oTvbmuuZ.js} +1 -1
  14. package/dist/web/_app/immutable/chunks/{SezKq9uq.js → xQGK7Vl0.js} +1 -1
  15. package/dist/web/_app/immutable/entry/{app.BiO88JKH.js → app.C6tCpdA8.js} +2 -2
  16. package/dist/web/_app/immutable/entry/start.9qqNLVcM.js +1 -0
  17. package/dist/web/_app/immutable/nodes/{0.-Fq-P-fg.js → 0.CPVrRWk1.js} +2 -2
  18. package/dist/web/_app/immutable/nodes/{1.Bj94GCTw.js → 1.DaNijLBH.js} +1 -1
  19. package/dist/web/_app/immutable/nodes/{10.B1JUjZcN.js → 10.B2cHwEJ9.js} +1 -1
  20. package/dist/web/_app/immutable/nodes/2.CnrLCVny.js +84 -0
  21. package/dist/web/_app/immutable/nodes/{3.BStU0zpq.js → 3.Dl2fWmMF.js} +1 -1
  22. package/dist/web/_app/immutable/nodes/4.BZ22jmQZ.js +11 -0
  23. package/dist/web/_app/immutable/nodes/{5.DcYhXUvQ.js → 5.CDPgfoif.js} +1 -1
  24. package/dist/web/_app/immutable/nodes/{6.BxPKkt5p.js → 6.VxPVIhVs.js} +1 -1
  25. package/dist/web/_app/immutable/nodes/{7.i-KdHiwM.js → 7.yBkC4gYp.js} +1 -1
  26. package/dist/web/_app/immutable/nodes/{8.yX2RINiS.js → 8.dKj6qu4h.js} +1 -1
  27. package/dist/web/_app/immutable/nodes/{9.D4pcpEFX.js → 9.DkzOHFmr.js} +1 -1
  28. package/dist/web/_app/version.json +1 -1
  29. package/dist/web/index.html +6 -6
  30. package/package.json +1 -1
  31. package/dist/web/_app/immutable/assets/2.DNpjFx0k.css +0 -1
  32. package/dist/web/_app/immutable/assets/4.CjSyz-ka.css +0 -1
  33. package/dist/web/_app/immutable/chunks/DGKjST9y.js +0 -1
  34. package/dist/web/_app/immutable/chunks/DNUv-Uzw.js +0 -1
  35. package/dist/web/_app/immutable/entry/start.CeMi0H2l.js +0 -1
  36. package/dist/web/_app/immutable/nodes/2.DbJJGTYK.js +0 -84
  37. package/dist/web/_app/immutable/nodes/4.--9JZZZj.js +0 -11
@@ -0,0 +1 @@
1
+ .entity-body{padding:16px 24px 24px;display:flex;flex-direction:column;gap:20px;overflow-x:hidden}.type-section.svelte-ak7t5k{display:flex;flex-direction:column;gap:8px}.type-section-label.svelte-ak7t5k{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:var(--color-text-tertiary)}.type-grid.svelte-ak7t5k{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.type-grid.svelte-ak7t5k .type-card{display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding:12px;height:auto;border-radius:8px;text-align:left;color:var(--color-text-secondary);justify-content:flex-start}.type-grid.svelte-ak7t5k .type-card:hover{background:var(--color-bg-hover);border-color:var(--color-border-strong)}.type-grid.svelte-ak7t5k .type-card:hover .type-name{color:var(--color-text-primary)}.type-dot.svelte-ak7t5k{width:8px;height:8px;border-radius:50%}.type-info.svelte-ak7t5k{display:flex;flex-direction:column;gap:2px}.type-name.svelte-ak7t5k{font-size:14px;font-weight:500;color:var(--color-text-secondary)}.type-desc.svelte-ak7t5k{font-size:12px;color:var(--color-text-tertiary);line-height:1.3}.sidebar.svelte-6dohdz{width:340px;min-width:340px;display:flex;flex-direction:column;overflow:hidden;background:var(--color-bg);border-right:1px solid var(--color-border)}.sidebar-header.svelte-6dohdz{height:40px;display:flex;align-items:center;gap:11px;padding:0 12px 0 19px;border-bottom:1px solid var(--color-border);flex-shrink:0}.header-actions.svelte-6dohdz{margin-left:auto;display:flex;align-items:center}.sidebar-header.svelte-6dohdz .home-btn{display:inline-flex;align-items:center;gap:11px;padding:0;min-width:0;text-align:left;border-radius:0;height:auto;background:transparent!important}.sidebar-header.svelte-6dohdz .home-btn:hover .workspace-icon{opacity:.8}.sidebar-header.svelte-6dohdz .home-btn:hover .workspace-name{color:var(--color-text-secondary)}.workspace-icon.svelte-6dohdz{width:22px;height:22px;border-radius:50%;background:var(--color-accent, #e05050);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:600;font-size:11px;flex-shrink:0}.workspace-name.svelte-6dohdz{flex:1;font-size:14px;font-weight:600;color:var(--color-text-primary)}.settings-nav.svelte-6dohdz{display:flex;flex-direction:column;flex:1;padding-top:0}.settings-nav.svelte-6dohdz button[data-slot=tabs-trigger]{display:flex;align-items:center;width:100%;height:40px;padding:0 12px 0 19px;gap:11px;border:none;background:transparent;cursor:pointer;font-family:inherit;font-size:14px;color:var(--color-text-secondary);transition:color .15s,background .15s}.settings-nav.svelte-6dohdz button[data-slot=tabs-trigger]:hover{background:var(--color-bg-hover);color:var(--color-text-primary)}.settings-nav.svelte-6dohdz button[data-slot=tabs-trigger][data-state=active]{background:var(--color-bg-hover);color:var(--color-text-primary);font-weight:500}.settings-nav.svelte-6dohdz button[data-slot=tabs-trigger] svg{width:14px;height:14px;flex-shrink:0;box-sizing:content-box;padding:0 4px}.filter-bar.svelte-6dohdz{position:relative;display:flex;align-items:center;height:40px;padding:0 12px 0 52px;border-bottom:1px solid var(--color-border);flex-shrink:0}.filter-icon.svelte-6dohdz{position:absolute;left:22px;top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;width:16px;color:var(--color-text-tertiary)}.filter-bar.svelte-6dohdz .filter-input{flex:1;background:transparent;border:none;outline:none;padding:0;margin:0;font-size:14px;line-height:1.4;height:auto;border-radius:0}.filter-bar.svelte-6dohdz .filter-clear{width:20px;height:20px;flex-shrink:0}.filter-bar.svelte-6dohdz .sort-toggle{width:28px;height:28px;flex-shrink:0;margin-left:4px}.filter-bar.svelte-6dohdz .sort-toggle.active{color:var(--color-accent, #e05050)}.repo-type-icon.svelte-6dohdz{display:inline-flex;align-items:center;color:var(--color-text-tertiary);margin-right:6px;flex-shrink:0;align-self:center}.tree.svelte-6dohdz{flex:1;overflow-y:auto;padding-top:0}.tree-group.svelte-6dohdz{display:flex;flex-direction:column}.tree-group.svelte-6dohdz+.tree-group:where(.svelte-6dohdz){margin-top:0}.repo-row{display:flex;align-items:baseline;height:40px;line-height:40px;width:100%;padding:0 12px 0 20px;border:none;background:transparent;font-family:inherit;text-align:left;border-left:2px solid transparent;border-radius:0;gap:0;justify-content:flex-start}.repo-row:hover,.repo-row.focused{background:var(--color-bg-hover)}.repo-row.repo-active{border-left-color:var(--active-color)}.repo-name.svelte-6dohdz{font-size:14px;color:var(--color-text-secondary)}.repo-row.repo-active .repo-name.svelte-6dohdz,.repo-row.repo-active .repo-type-icon.svelte-6dohdz{font-weight:600;color:var(--color-text-primary)}.tree-row{position:relative;display:flex;align-items:baseline;height:40px;line-height:40px;padding-right:40px;color:var(--color-text-secondary);font-size:14px;border:none;background:transparent;font-family:inherit;text-align:left;width:100%;border-left:2px solid transparent;border-radius:0;gap:0;justify-content:flex-start}.tree-row:hover,.tree-row.focused{background:var(--color-bg-hover)}.tree-row.selected{background:var(--color-bg-selected);border-left-color:var(--active-color);color:var(--color-text-primary);font-weight:600}.row-chevron.svelte-6dohdz{display:inline-flex;align-items:center;justify-content:center;align-self:center;width:16px;height:16px;flex-shrink:0;margin-right:14px;color:var(--color-text-tertiary);transition:transform .15s}.row-chevron.open.svelte-6dohdz{transform:rotate(90deg)}.row-label.svelte-6dohdz{flex:1;overflow:hidden;white-space:nowrap;mask-image:linear-gradient(to right,black calc(100% - 16px),transparent 100%);-webkit-mask-image:linear-gradient(to right,black calc(100% - 16px),transparent 100%)}.item-count.svelte-6dohdz{font-size:12px;color:var(--color-text-tertiary);margin-left:8px;flex-shrink:0;opacity:0;transition:opacity .15s}.tree-row:hover .item-count.svelte-6dohdz,.repo-row-wrapper.svelte-6dohdz:hover .item-count:where(.svelte-6dohdz),.repo-row-wrapper.svelte-6dohdz:has(.repo-actions-btn.menu-open) .item-count:where(.svelte-6dohdz),.type-header-wrapper.svelte-6dohdz:hover .item-count:where(.svelte-6dohdz),.type-header-wrapper.svelte-6dohdz:has(.type-actions-btn.menu-open) .item-count:where(.svelte-6dohdz),.entity-row-wrapper.svelte-6dohdz:hover .item-count:where(.svelte-6dohdz),.entity-row-wrapper.svelte-6dohdz:has(.entity-actions-btn.menu-open) .item-count:where(.svelte-6dohdz){opacity:1}.indent-group.svelte-6dohdz{position:relative}.indent-group.svelte-6dohdz:before{content:"";position:absolute;left:var(--guide-left);top:0;bottom:0;width:1px;background:var(--color-border);pointer-events:none}.loading-row.svelte-6dohdz{height:40px;display:flex;align-items:center;font-size:14px;color:var(--color-text-tertiary)}.type-header-row{color:var(--color-text-secondary);border-left:2px solid transparent}.type-header-row.type-active{color:var(--color-text-primary);font-weight:600}.type-header-row .row-label.svelte-6dohdz{flex:none;mask-image:none;-webkit-mask-image:none}.entity-type-dot.svelte-6dohdz{width:6px;height:6px;border-radius:3px;flex-shrink:0;margin-right:2px}.new-entity-row{color:var(--color-text-tertiary);align-items:center}.new-entity-row:hover{color:var(--color-text-secondary)}.entity-row-wrapper.svelte-6dohdz{position:relative;display:flex;align-items:center}.entity-row-wrapper.svelte-6dohdz .tree-row{flex:1;min-width:0}.entity-row-wrapper.svelte-6dohdz .entity-actions-btn{display:none;width:28px;height:28px;position:absolute;right:12px;flex-shrink:0;padding:0;border:none;background:none;cursor:pointer;color:var(--color-text-tertiary);border-radius:4px;align-items:center;justify-content:center}.entity-row-wrapper.svelte-6dohdz .entity-actions-btn:hover{background:var(--color-bg-hover);color:var(--color-text-primary)}.entity-row-wrapper.svelte-6dohdz:hover .tree-row,.entity-row-wrapper.svelte-6dohdz:has(.entity-actions-btn.menu-open) .tree-row{background:var(--color-bg-hover)}.entity-row-wrapper.svelte-6dohdz:hover .entity-actions-btn,.entity-row-wrapper.svelte-6dohdz .entity-actions-btn.menu-open{display:inline-flex}.entity-type-dot.svelte-6dohdz{width:6px;height:6px;border-radius:50%;flex-shrink:0;margin-right:19px;align-self:center}.recent-time.svelte-6dohdz{font-size:12px;color:var(--color-text-tertiary);position:absolute;right:26px;top:50%;transform:translate(50%,-50%);white-space:nowrap}.entity-row-wrapper.svelte-6dohdz:hover .recent-time:where(.svelte-6dohdz){display:none}.presence-stack.svelte-6dohdz{display:flex;align-items:center;gap:-4px;margin-left:auto;flex-shrink:0;align-self:center}.presence-avatar.svelte-6dohdz{width:18px;height:18px;border-radius:50%;font-size:10px;font-weight:600;color:#fff;background:var(--color-accent);display:flex;align-items:center;justify-content:center;margin-left:-3px;border:1px solid var(--color-bg);box-sizing:border-box;flex-shrink:0;align-self:center}.presence-stack.svelte-6dohdz .presence-avatar:where(.svelte-6dohdz):first-child{margin-left:4px}.repo-row .presence-stack.svelte-6dohdz{margin-right:28px}.presence-avatar.svelte-6dohdz:nth-child(1){z-index:3}.presence-avatar.svelte-6dohdz:nth-child(2){z-index:2}.presence-avatar.svelte-6dohdz:nth-child(3){z-index:1}.filter-match.svelte-6dohdz{background:var(--color-accent, #e05050);color:#fff;border-radius:2px;padding:0}.no-results.svelte-6dohdz{padding:24px 16px;font-size:14px;color:var(--color-text-tertiary);text-align:center}.repo-row .repo-rename-input{flex:1;min-width:0;height:100%;padding:0 6px;margin:0;border:1px solid var(--color-accent, #e05050);border-radius:3px;font-size:14px;font-weight:600}.repo-row-wrapper.svelte-6dohdz{position:relative;display:flex;align-items:center}.repo-row-wrapper.drop-target.svelte-6dohdz{outline:2px solid var(--color-accent, #e05050);outline-offset:-2px;border-radius:6px;background:#e0505014}.import-modal{max-width:480px}.import-modal .dialog-header{flex-direction:column;align-items:flex-start;gap:4px}.import-modal-body.svelte-6dohdz{padding:16px 24px 8px}.import-modal .dialog-footer{border-top:none}.import-file-list.svelte-6dohdz{display:flex;flex-direction:column;max-height:240px;overflow-y:auto}.import-file-row.svelte-6dohdz{display:flex;align-items:center;gap:10px;padding:10px 12px;border-bottom:1px solid var(--color-border)}.import-file-icon.svelte-6dohdz{flex-shrink:0;color:var(--color-text-tertiary)}.import-file-info.svelte-6dohdz{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.import-file-name.svelte-6dohdz{font-size:14px;color:var(--color-text-primary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.import-file-size.svelte-6dohdz{font-size:12px;color:var(--color-text-tertiary)}.import-file-remove.svelte-6dohdz{flex-shrink:0;background:none;border:none;color:var(--color-text-tertiary);cursor:pointer;padding:4px;border-radius:4px;display:flex;align-items:center;justify-content:center}.import-file-remove.svelte-6dohdz:hover{color:var(--color-text-primary);background:var(--color-bg-hover)}.import-drop-zone.svelte-6dohdz{border:1px solid var(--color-border, #333);border-radius:0;padding:40px 16px;text-align:center;color:var(--color-text-tertiary);font-size:15px;min-height:180px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;transition:background .15s}.import-drop-zone-compact.svelte-6dohdz{min-height:0;padding:14px 16px;border-top:none}.import-hint.svelte-6dohdz{font-size:13px;color:var(--color-text-tertiary);margin:0}.file-picker-link.svelte-6dohdz{background:none;border:none;color:var(--color-accent, #e05050);cursor:pointer;text-decoration:underline;font-size:15px;padding:0}.file-picker-link-sm.svelte-6dohdz{font-size:13px}.repo-row-wrapper.svelte-6dohdz .repo-row{flex:1;min-width:0}.repo-row-wrapper.svelte-6dohdz .repo-actions-btn{display:none;width:28px;height:28px;position:absolute;right:12px;flex-shrink:0;padding:0;border:none;background:none;cursor:pointer;color:var(--color-text-tertiary);border-radius:4px;align-items:center;justify-content:center}.repo-row-wrapper.svelte-6dohdz .repo-actions-btn:hover{background:var(--color-bg-hover);color:var(--color-text-primary)}.repo-row-wrapper.svelte-6dohdz:hover .repo-row,.repo-row-wrapper.svelte-6dohdz:has(.repo-actions-btn.menu-open) .repo-row{background:var(--color-bg-hover)}.repo-row-wrapper.svelte-6dohdz:hover .repo-actions-btn,.repo-row-wrapper.svelte-6dohdz .repo-actions-btn.menu-open{display:inline-flex}.type-header-wrapper.svelte-6dohdz{position:relative;display:flex;align-items:center}.type-header-wrapper.svelte-6dohdz .type-header-row{flex:1;min-width:0}.type-header-wrapper.svelte-6dohdz .type-actions-btn{display:none;width:24px;height:24px;position:absolute;right:12px;flex-shrink:0;padding:0;border:none;background:none;cursor:pointer;color:var(--color-text-tertiary);border-radius:4px;align-items:center;justify-content:center}.type-header-wrapper.svelte-6dohdz .type-actions-btn:hover{background:var(--color-bg-hover);color:var(--color-text-primary)}.type-header-wrapper.svelte-6dohdz:hover .type-header-row,.type-header-wrapper.svelte-6dohdz:has(.type-actions-btn.menu-open) .type-header-row{background:var(--color-bg-hover)}.type-header-wrapper.svelte-6dohdz:hover .type-actions-btn,.type-header-wrapper.svelte-6dohdz .type-actions-btn.menu-open{display:inline-flex}.repo-actions-menu{min-width:120px;padding:4px;border-radius:6px;background:var(--color-bg-elevated);border:1px solid var(--color-border);box-shadow:0 4px 12px #00000026;z-index:1000}.repo-menu-item{display:flex;align-items:center;gap:8px;padding:6px 8px;border-radius:4px;cursor:pointer;font-size:13px;color:var(--color-text-primary)}.repo-menu-item:hover{background:var(--color-bg-hover)}.repo-menu-item-danger{color:var(--color-error, #e55)}.new-collection-btn,.new-collection-btn .repo-name.svelte-6dohdz,.new-collection-btn .row-chevron.svelte-6dohdz{color:var(--color-text-tertiary)}.new-collection-btn:hover,.new-collection-btn:hover .repo-name.svelte-6dohdz{color:var(--color-text-secondary)}.new-collection-row.svelte-6dohdz{display:flex;align-items:center;height:40px;padding:0 12px 0 20px;border-left:2px solid transparent}.new-collection-row.svelte-6dohdz .new-collection-input{flex:1;height:100%;padding:0 0 0 30px;margin-top:-1px;border:none;background:transparent;font-size:14px;border-radius:0}.new-collection-row.svelte-6dohdz .new-collection-clear{width:20px;height:20px;flex-shrink:0;margin-right:4px}.new-collection-row.svelte-6dohdz .private-toggle{width:20px;height:20px;flex-shrink:0;margin-left:auto;margin-right:4px;color:var(--color-text-secondary)}.new-collection-row.svelte-6dohdz .private-toggle.active{color:var(--color-accent, #e05050)}@keyframes svelte-6dohdz-shake{0%,to{transform:translate(0)}20%{transform:translate(-4px)}40%{transform:translate(4px)}60%{transform:translate(-3px)}80%{transform:translate(2px)}}.new-collection-row.svelte-6dohdz .new-collection-input.shake{animation:svelte-6dohdz-shake .3s ease-in-out}.sidebar-footer.svelte-6dohdz{display:flex;align-items:center;height:40px;padding:0 12px 0 19px;border-top:1px solid var(--color-border);flex-shrink:0;gap:8px}.user-email.svelte-6dohdz{flex:1;font-size:13px;color:var(--color-text-tertiary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sidebar-footer.svelte-6dohdz .footer-icon-btn{width:28px;height:28px}.chat-panel.svelte-1xwj6s7{width:340px;min-width:340px;flex-shrink:0;display:flex;flex-direction:column;background:var(--color-bg);border-left:1px solid var(--color-border)}.chat-panel.chat-full.svelte-1xwj6s7{width:100%;min-width:0;flex:1;border-left:none}.chat-full.svelte-1xwj6s7 .chat-messages:where(.svelte-1xwj6s7){padding-left:calc((100% - 720px)/2);padding-right:calc((100% - 720px)/2)}.chat-full.svelte-1xwj6s7 .chat-input-area:where(.svelte-1xwj6s7){padding-left:calc((100% - 720px)/2);padding-right:calc((100% - 720px)/2)}.chat-header.svelte-1xwj6s7{height:40px;display:flex;align-items:center;justify-content:space-between;padding:0 16px;border-bottom:1px solid var(--color-border);position:relative;flex-shrink:0}.chat-header-left.svelte-1xwj6s7,.chat-header-right.svelte-1xwj6s7{display:flex;align-items:center;gap:2px}.history-active{color:var(--color-accent, #e05050)!important}.history-active:not(:hover){background:transparent!important}.session-dropdown.svelte-1xwj6s7{position:absolute;top:100%;left:0;right:0;z-index:10;box-shadow:0 4px 12px #0000001f}.session-list.svelte-1xwj6s7{max-height:240px;overflow-y:auto;background:var(--color-bg);border-bottom:1px solid var(--color-border)}.session-row.svelte-1xwj6s7{position:relative;display:flex;align-items:center}.session-row.svelte-1xwj6s7 .session-item{display:flex;align-items:center;justify-content:flex-start;flex:1;min-width:0;padding:0 32px 0 16px;height:40px;line-height:40px;font-size:14px;color:var(--color-text-secondary);text-align:left;border-radius:0}.session-row.svelte-1xwj6s7:hover .session-item{background:var(--color-bg-hover)}.session-row.svelte-1xwj6s7 .session-item.active{background:var(--color-bg-hover);color:var(--color-text-primary);font-weight:500}.session-row.svelte-1xwj6s7 .session-delete-btn{display:none;width:20px;height:20px;position:absolute;right:6px;flex-shrink:0;padding:0}.session-row.svelte-1xwj6s7 .session-delete-btn:hover{color:var(--color-error, #e55)}.session-row.svelte-1xwj6s7:hover .session-delete-btn{display:flex}.session-title.svelte-1xwj6s7{flex:1;overflow:hidden;white-space:nowrap;min-width:0;mask-image:linear-gradient(to right,black calc(100% - 24px),transparent 100%);-webkit-mask-image:linear-gradient(to right,black calc(100% - 24px),transparent 100%)}.chat-messages.svelte-1xwj6s7{flex:1;overflow-y:auto;padding:24px 16px;display:flex;flex-direction:column;gap:32px}.empty-state.svelte-1xwj6s7{flex:1;display:flex;align-items:center;justify-content:center;color:var(--color-text-tertiary);font-size:14px}.seed-prompts.svelte-1xwj6s7{display:flex;flex-direction:column;gap:8px;width:100%}.seed-prompts.svelte-1xwj6s7 .seed-prompt{font-size:14px;line-height:20px;padding:9px 13px;min-height:40px;height:auto;border-radius:8px;color:var(--color-text-secondary);text-align:left;white-space:normal;justify-content:flex-start}.seed-prompts.svelte-1xwj6s7 .seed-prompt:hover{background:var(--color-bg-hover);color:var(--color-text-primary)}.message-group.svelte-1xwj6s7{display:flex;flex-direction:column;gap:16px}.user-bubble.svelte-1xwj6s7{background:var(--color-bg-surface);border-radius:8px;padding:12px 14px;font-size:14px;line-height:22px;color:var(--color-text-primary)}.agent-content.svelte-1xwj6s7{display:flex;flex-direction:column;gap:14px;position:relative}.msg-actions.svelte-1xwj6s7{display:flex;gap:2px;align-self:flex-start}.copy-btn.svelte-1xwj6s7{display:flex;align-items:center;justify-content:center;background:none;border:none;color:var(--color-text-tertiary);cursor:pointer;padding:4px;border-radius:4px;align-self:flex-start}.copy-btn.svelte-1xwj6s7:hover{color:var(--color-text-primary);background:var(--color-bg-hover)}.tool-calls.svelte-1xwj6s7{display:flex;flex-direction:column;gap:4px}.tool-call.svelte-1xwj6s7{font-family:var(--font-mono);font-size:12px;color:var(--color-accent)}.agent-text.svelte-1xwj6s7{font-size:14px;line-height:22px;color:var(--color-text-primary)}.prose.svelte-1xwj6s7 h1{font-size:18px;font-weight:600;color:var(--color-text-primary);margin:24px 0 12px}.prose.svelte-1xwj6s7 h2{font-size:16px;font-weight:600;color:var(--color-text-primary);margin:22px 0 10px}.prose.svelte-1xwj6s7 h3{font-size:15px;font-weight:600;color:var(--color-text-primary);margin:20px 0 8px}.prose.svelte-1xwj6s7 p{margin:0 0 14px}.prose.svelte-1xwj6s7 p:last-child{margin-bottom:0}.prose.svelte-1xwj6s7 strong{font-weight:600}.prose.svelte-1xwj6s7 ul,.prose.svelte-1xwj6s7 ol{padding-left:20px;margin:0 0 14px;color:var(--color-text-primary)}.prose.svelte-1xwj6s7 ul{list-style-type:disc}.prose.svelte-1xwj6s7 ol{list-style-type:decimal}.prose.svelte-1xwj6s7 li{margin-bottom:6px}.prose.svelte-1xwj6s7 table{width:100%;border-collapse:collapse;font-size:13px;margin:16px 0}.prose.svelte-1xwj6s7 th,.prose.svelte-1xwj6s7 td{border:1px solid var(--color-border);padding:4px 8px;text-align:left;vertical-align:top}.prose.svelte-1xwj6s7 th{font-weight:600}.prose.svelte-1xwj6s7 pre{background:var(--color-bg-surface);border-radius:6px;padding:10px 12px;overflow-x:auto;margin:16px 0;font-family:var(--font-mono);font-size:13px;line-height:18px}.prose.svelte-1xwj6s7 code{font-family:var(--font-mono);font-size:13px;background:var(--color-bg-surface);padding:1px 4px;border-radius:3px}.prose.svelte-1xwj6s7 pre code{background:none;padding:0}.prose.svelte-1xwj6s7 a{color:var(--color-link)}.prose.svelte-1xwj6s7 blockquote{border-left:3px solid var(--color-accent);padding-left:12px;margin:16px 0;color:var(--color-text-secondary)}.prose.svelte-1xwj6s7 hr{border:none;border-top:1px solid var(--color-border);margin:24px 0}.streaming-dot.svelte-1xwj6s7{display:inline-block;width:8px;height:8px;background:var(--color-accent);border-radius:4px;animation:svelte-1xwj6s7-pulse 1s ease-in-out infinite}@keyframes svelte-1xwj6s7-pulse{0%,to{opacity:.3}50%{opacity:1}}.context-chip.svelte-1xwj6s7{font-size:12px;color:var(--color-text-tertiary);padding:0 2px 4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-input-area.svelte-1xwj6s7{padding:12px 16px 16px}.text-input.svelte-1xwj6s7{display:flex;align-items:flex-end;min-height:40px;max-height:140px;padding:0 0 0 13px;background:transparent;border:1px solid var(--color-border);border-radius:8px;transition:border-color .15s}.text-input.svelte-1xwj6s7:focus-within{border-color:var(--color-accent)}.send-btn{color:var(--color-text-tertiary);margin:6px;flex-shrink:0;pointer-events:none}.send-btn.send-active{pointer-events:auto;color:#fff;background:var(--color-accent);border-radius:6px}.stop-btn{color:#fff;background:var(--color-accent);border-radius:6px}.input-field.svelte-1xwj6s7{flex:1;background:transparent;border:none;outline:none;font-family:inherit;font-size:14px;line-height:20px;color:var(--color-text-primary);resize:none;overflow-y:auto;padding:9px 0;max-height:120px;field-sizing:content}.input-field.svelte-1xwj6s7::placeholder{color:var(--color-text-tertiary)}.input-field.svelte-1xwj6s7:disabled{opacity:.5}.search-header.svelte-1xems06{display:flex;align-items:center;height:52px;padding:0 16px;gap:10px;border-bottom:1px solid var(--color-border)}.search-header.svelte-1xems06 svg{color:var(--color-text-tertiary);flex-shrink:0}.search-header.svelte-1xems06 .search-input{flex:1;font-size:16px;line-height:20px;border:none;background:transparent;box-shadow:none;padding:0;height:auto}.search-header.svelte-1xems06 .search-input:focus{box-shadow:none;border:none}.esc-badge.svelte-1xems06{font-family:var(--font-sans);font-size:12px;line-height:1;padding:3px 6px;border-radius:4px;background:var(--color-bg-surface);border:1px solid var(--color-border);color:var(--color-text-tertiary)}.results-list.svelte-1xems06{flex:1;overflow-y:auto;min-height:0}.empty-results.svelte-1xems06{padding:24px 16px;text-align:center;font-size:14px;color:var(--color-text-tertiary)}.results-list.svelte-1xems06 .result-row{display:flex;align-items:flex-start;padding:10px 16px;width:100%;text-align:left;border-radius:0;height:auto;justify-content:flex-start}.results-list.svelte-1xems06 .result-row:hover,.results-list.svelte-1xems06 .result-row.selected{background:var(--color-bg-hover)}.result-body.svelte-1xems06{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.result-title-row.svelte-1xems06{display:flex;align-items:center;gap:8px}.result-title.svelte-1xems06{font-size:14px;font-weight:500;color:var(--color-text-primary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.entity-tag.svelte-1xems06{flex-shrink:0;font-size:11px;font-weight:500;letter-spacing:.04em;text-transform:uppercase;padding:1px 6px;border-radius:3px;background:var(--color-badge-bg);color:var(--color-badge-text)}.result-meta.svelte-1xems06{font-size:13px;color:var(--color-text-tertiary)}.search-footer.svelte-1xems06{display:flex;align-items:center;height:39px;padding:0 16px;gap:16px;border-top:1px solid var(--color-border)}.shortcut-group.svelte-1xems06{display:flex;align-items:center;gap:4px}.shortcut-key.svelte-1xems06{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 4px;border-radius:4px;background:var(--color-bg-surface);border:1px solid var(--color-border);color:var(--color-text-tertiary)}.shortcut-label.svelte-1xems06{font-size:12px;color:var(--color-text-tertiary);margin-left:2px}.app-frame.svelte-vr1z90{width:100vw;height:100vh;display:flex;flex-direction:column;overflow:hidden;background:var(--color-bg)}.app-body.svelte-vr1z90{flex:1;display:flex;min-height:0;overflow:hidden}.main-content.svelte-vr1z90{flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden}#sg-chrome-footer{flex-shrink:0}
@@ -0,0 +1 @@
1
+ .autocomplete.svelte-84vb17{position:relative;width:100%}.input-row.svelte-84vb17{display:flex;flex-wrap:wrap;align-items:center;gap:4px;min-height:22px;padding:0;background:transparent;border:none;border-radius:4px}.chip.svelte-84vb17{display:inline-flex;align-items:center;gap:4px;height:20px;padding:0 8px;border-radius:9999px;font-size:13px;background:var(--color-accent-muted);color:var(--color-link, #e07070);flex-shrink:0}.chip.svelte-84vb17 .chip-remove{width:14px;height:14px;padding:0;color:var(--color-text-tertiary);font-size:13px;line-height:1}.chip.svelte-84vb17 .chip-remove:hover{color:var(--color-text-primary)}.ac-input.svelte-84vb17{flex:1;min-width:80px;height:22px;padding:0;font-size:14px;font-family:inherit;color:var(--color-text-primary);background:transparent;border:none;outline:none}.dropdown.svelte-84vb17{position:absolute;top:100%;left:0;right:0;margin-top:4px;max-height:240px;overflow-y:auto;background:var(--color-bg-elevated);border:1px solid var(--color-border);border-radius:6px;box-shadow:0 4px 16px #00000040;z-index:50}.dropdown-item.svelte-84vb17{display:flex;align-items:center;justify-content:space-between;padding:6px 10px;cursor:pointer;gap:8px}.dropdown-item.highlighted.svelte-84vb17{background:var(--color-bg-hover)}.entity-title.svelte-84vb17{font-size:14px;color:var(--color-text-primary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}.entity-meta.svelte-84vb17{display:flex;align-items:center;gap:6px;flex-shrink:0}.entity-type-badge.svelte-84vb17{font-size:12px;padding:1px 6px;border-radius:9999px;background:var(--color-badge-bg);color:var(--color-badge-text)}.entity-repo.svelte-84vb17{font-size:12px;color:var(--color-text-tertiary)}.inline-properties.svelte-x7sio8{padding:16px 40px 8px;border-bottom:1px solid var(--color-border)}.ip-name-headline.svelte-x7sio8{margin-top:8px;margin-bottom:8px;cursor:text}.ip-name-text.svelte-x7sio8{font-size:22px;font-weight:600;color:var(--color-text-primary);line-height:1.3}.ip-name-input.svelte-x7sio8{font-size:22px;font-weight:600;font-family:inherit;color:var(--color-text-primary);background:transparent;border:none;outline:none;width:100%;line-height:1.3;padding:0}.ip-fields-toggle.svelte-x7sio8{display:flex;align-items:center;gap:10px;background:none;border:none;font-family:inherit;font-size:13px;color:var(--color-text-secondary);cursor:pointer;padding:4px 8px;margin:0 -8px}.ip-fields-toggle.svelte-x7sio8:hover{color:var(--color-text-primary)}.ip-fields-chevron.svelte-x7sio8{display:inline-flex;align-items:center;justify-content:center;width:20px;color:var(--color-text-tertiary);transition:transform .15s}.ip-fields-chevron.expanded.svelte-x7sio8{transform:rotate(90deg)}.ip-fields-label.svelte-x7sio8{font-weight:400}.ip-fields-count.svelte-x7sio8{font-size:12px;color:var(--color-text-tertiary)}.ip-row.svelte-x7sio8{display:grid;grid-template-columns:20px 130px 1fr;align-items:center;gap:10px;padding:5px 8px;margin:0 -8px;border-radius:4px;min-height:30px;outline:2px solid transparent;transition:outline-color .1s}.ip-row.svelte-x7sio8:hover{outline-color:var(--color-border)}.ip-row.ip-focused.svelte-x7sio8{outline-color:var(--color-accent)}.ip-icon.svelte-x7sio8{display:flex;align-items:center;justify-content:center;color:var(--color-text-tertiary);position:relative;height:22px}.ip-key.svelte-x7sio8{font-size:14px;color:var(--color-text-tertiary);line-height:22px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ip-value.svelte-x7sio8{display:flex;align-items:center;min-height:22px;line-height:22px;position:relative;cursor:text;overflow:hidden;white-space:nowrap}.ip-value.svelte-x7sio8:not(:focus-within){-webkit-mask-image:linear-gradient(to right,black calc(100% - 16px),transparent);mask-image:linear-gradient(to right,black calc(100% - 16px),transparent)}.ip-edit-input.svelte-x7sio8{font-size:14px;font-family:inherit;color:var(--color-text-primary);background:transparent;border:none;padding:0 4px;height:22px;line-height:22px;width:100%;outline:none}.ip-status-wrap.svelte-x7sio8{position:relative;width:100%}.ip-status-dropdown.svelte-x7sio8{position:absolute;top:100%;left:-4px;margin-top:4px;min-width:180px;background:var(--color-bg-elevated);border:1px solid var(--color-border);border-radius:6px;box-shadow:0 4px 16px #00000040;z-index:50;padding:4px;max-height:240px;overflow-y:auto}.ip-status-dropdown.svelte-x7sio8 .ip-status-option{display:flex;align-items:center;gap:6px;width:100%;padding:5px 8px;font-size:14px;color:var(--color-text-primary);border-radius:4px;text-align:left;justify-content:flex-start;height:auto}.ip-status-dropdown.svelte-x7sio8 .ip-status-option:hover{background:var(--color-bg-hover)}.ip-status-dropdown.svelte-x7sio8 .ip-status-option.selected{color:var(--color-accent)}.ip-cal-wrap.svelte-x7sio8{position:relative;width:100%}.ip-cal-dropdown.svelte-x7sio8{position:absolute;top:100%;left:-4px;margin-top:4px;background:var(--color-bg-elevated);border:1px solid var(--color-border);border-radius:6px;box-shadow:0 4px 16px #00000040;z-index:50;padding:12px;width:264px}.ip-cal-header.svelte-x7sio8{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.ip-cal-title.svelte-x7sio8{font-size:14px;font-weight:500;color:var(--color-text-primary)}.ip-cal-header.svelte-x7sio8 .ip-cal-nav{width:28px;height:28px}.ip-cal-weekdays.svelte-x7sio8{display:grid;grid-template-columns:repeat(7,1fr);margin-bottom:4px}.ip-cal-wd.svelte-x7sio8{font-size:12px;color:var(--color-text-tertiary);text-align:center;padding:4px 0}.ip-cal-week.svelte-x7sio8{display:grid;grid-template-columns:repeat(7,1fr)}.ip-cal-week.svelte-x7sio8 .ip-cal-day{display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:1;border-radius:4px;font-size:14px;color:var(--color-text-primary);padding:0;height:auto}.ip-cal-week.svelte-x7sio8 .ip-cal-day:hover{background:var(--color-bg-hover)}.ip-cal-week.svelte-x7sio8 .ip-cal-day.outside{color:var(--color-text-tertiary);opacity:.5}.ip-cal-week.svelte-x7sio8 .ip-cal-day.today{font-weight:600;color:var(--color-accent)}.ip-cal-week.svelte-x7sio8 .ip-cal-day.selected{background:var(--color-accent);color:#fff;font-weight:500}.ip-cal-week.svelte-x7sio8 .ip-cal-day.selected:hover{background:var(--color-accent-hover)}.ip-type-dot.svelte-x7sio8{width:8px;height:8px;border-radius:4px;flex-shrink:0}.ip-etype-ring.svelte-x7sio8{width:8px;height:8px;border-radius:50%;border:1.5px solid var(--color-text-tertiary);flex-shrink:0}.ip-etype-display.svelte-x7sio8{font-size:14px;line-height:22px;color:var(--color-text-primary)}.ip-etype-trigger{all:unset;display:inline-flex;align-items:center;gap:6px;font-size:14px;line-height:22px;color:var(--color-text-primary);cursor:pointer}.ip-etype-trigger:hover{color:var(--etype-color)}.ip-etype-content{max-height:300px;overflow-y:auto}.ip-badge.svelte-x7sio8{display:inline-flex;align-items:center;height:22px;padding:0 8px;border-radius:9999px;font-size:13px;text-transform:lowercase;background:var(--color-badge-bg);color:var(--color-badge-text)}.ip-wikilink-group.svelte-x7sio8{display:flex;flex-wrap:wrap;gap:6px}.ip-wikilink-group.svelte-x7sio8 .ip-wikilink-chip{display:inline-flex;align-items:center;height:22px;padding:0 8px;border-radius:9999px;font-size:13px;background:var(--color-accent-muted);color:var(--color-link, #e07070)}.ip-wikilink-group.svelte-x7sio8 .ip-wikilink-chip:hover{background:#e0505029}.ip-status-value.svelte-x7sio8{display:flex;align-items:center;gap:5px;height:22px}.ip-status-dot.svelte-x7sio8{width:6px;height:6px;border-radius:3px;flex-shrink:0}.ip-status-text.svelte-x7sio8,.ip-date-text.svelte-x7sio8,.ip-text-value.svelte-x7sio8{font-size:14px;line-height:22px;color:var(--color-text-primary)}.ip-url-link.svelte-x7sio8{font-size:14px;line-height:22px;color:var(--color-link, #e07070);text-decoration:none;cursor:text;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.inline-properties.svelte-x7sio8 .ip-add-btn{margin:8px -8px;font-size:14px}.ip-add-key-input.svelte-x7sio8{font-size:14px;font-family:inherit;color:var(--color-text-primary);background:transparent;border:none;border-bottom:1px solid var(--color-accent);padding:2px 0;width:100%;outline:none}.ip-add-row.svelte-x7sio8{background:var(--color-bg-hover)}.ip-icon-trigger{all:unset;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:4px;color:var(--color-text-tertiary)}.ip-icon-trigger:hover{color:var(--color-text-secondary)}.ip-menu-content{min-width:160px;background:var(--color-bg-elevated);border:1px solid var(--color-border);border-radius:6px;box-shadow:0 4px 16px #00000040;z-index:50;padding:4px}.ip-menu-item{display:flex;align-items:center;gap:8px;width:100%;padding:5px 8px;font-size:14px;cursor:pointer;border-radius:4px;color:var(--color-text-primary)}.ip-menu-item:hover,.ip-menu-item[data-highlighted]{background:var(--color-bg-hover)}.ip-menu-destructive{color:var(--color-destructive)!important}.ip-menu-destructive:hover,.ip-menu-destructive[data-highlighted]{background:#e54d4d1a!important}.ip-menu-item-icon.svelte-x7sio8{display:flex;align-items:center;flex-shrink:0}.ip-menu-check.svelte-x7sio8{margin-left:auto;display:flex;align-items:center}.ip-menu-sep{height:1px;background:var(--color-border);margin:4px 0}.connections-panel.svelte-16xienp{margin:80px 0 48px;padding:16px 40px 0;border-top:1px solid var(--color-border)}.connections-header.svelte-16xienp{display:flex;align-items:center;gap:10px;background:none;border:none;font-family:inherit;font-size:13px;color:var(--color-text-secondary);cursor:pointer;padding:4px 8px;margin:0 -8px}.connections-header.svelte-16xienp:hover{color:var(--color-text-primary)}.header-chevron.svelte-16xienp{display:inline-flex;align-items:center;justify-content:center;width:20px;color:var(--color-text-tertiary);transition:transform .15s;transform:rotate(90deg)}.header-chevron.collapsed.svelte-16xienp{transform:rotate(0)}.header-label.svelte-16xienp{font-weight:400}.header-count.svelte-16xienp{font-size:12px;color:var(--color-text-tertiary)}.connections-body.svelte-16xienp{display:flex;flex-direction:column;gap:0;margin-top:8px}.connection-chip.svelte-16xienp{display:flex;align-items:center;gap:8px;padding:6px 8px;background:none;border:none;border-radius:4px;font-family:inherit;font-size:13px;color:var(--color-text-primary);cursor:pointer;text-align:left}.connection-chip.svelte-16xienp:hover{background:var(--color-bg-hover)}.chip-dot.svelte-16xienp{width:6px;height:6px;border-radius:50%;flex-shrink:0}.chip-name.svelte-16xienp{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chip-type.svelte-16xienp{font-size:12px;color:var(--color-text-tertiary);flex-shrink:0}.editor-wrap.svelte-ok7wy5{display:flex;min-height:0;position:relative}.cm-container.svelte-ok7wy5{flex:1;min-height:100px}.cm-container.svelte-ok7wy5 .cm-editor{min-height:100px;outline:none}.cm-container.svelte-ok7wy5 .cm-scroller{overflow:visible!important}.cursor-overlay.svelte-ok7wy5{position:absolute;inset:0;pointer-events:none;overflow:hidden}.remote-cursor.svelte-ok7wy5{position:absolute;width:2px;background-color:var(--cursor-color);z-index:10}.remote-cursor-label.svelte-ok7wy5{position:absolute;top:-1.4em;left:-1px;font-size:12px;font-family:var(--font-sans);font-weight:500;padding:0 4px;border-radius:3px 3px 3px 0;white-space:nowrap;line-height:1.5;color:#fff}.csv-editor.svelte-63hltt{padding:32px 40px 0}.table-scroll.svelte-63hltt{overflow-x:auto}table.svelte-63hltt{border-collapse:collapse;width:max-content;min-width:100%;font-size:14px;font-family:var(--font-sans)}th.svelte-63hltt,td.svelte-63hltt{border:1px solid var(--color-border);padding:0;height:32px;min-width:120px;max-width:300px}th.svelte-63hltt{background:transparent;font-weight:500;color:var(--color-text-secondary);position:sticky;top:0;z-index:1}th.svelte-63hltt:not(.row-num):not(.col-add){position:sticky;top:0;z-index:1}.row-num.svelte-63hltt{width:40px;min-width:40px;max-width:40px;text-align:center;color:var(--color-text-tertiary);font-size:12px;background:transparent}.cell-input.svelte-63hltt{width:100%;height:100%;border:none;background:transparent;color:var(--color-text-primary);font-family:var(--font-sans);font-size:14px;padding:4px 8px;outline:none}.cell-input.svelte-63hltt:focus{outline:2px solid var(--color-accent);outline-offset:-2px}.header-input.svelte-63hltt{font-weight:500;color:var(--color-text-secondary)}th.svelte-63hltt:not(.row-num):not(.col-add){position:relative}th.svelte-63hltt .col-delete-btn{position:absolute;top:2px;right:2px;width:18px;height:18px;display:none;background:var(--color-bg-hover);border-radius:3px;padding:0}th.svelte-63hltt:hover .col-delete-btn{display:flex}th.svelte-63hltt .col-delete-btn:hover{color:var(--color-destructive);background:var(--color-bg-selected)}.col-add.svelte-63hltt{width:32px;border:none;background:transparent}.col-add.svelte-63hltt .col-add-btn{width:100%;height:100%;border-radius:0;padding:0}.col-add.svelte-63hltt .col-add-btn:hover{color:var(--color-accent)}.actions.svelte-63hltt{width:32px;text-align:center;border:none}.actions.svelte-63hltt .delete-btn{display:none;width:20px;height:20px;padding:0;margin:0 auto}tr.svelte-63hltt:hover .delete-btn{display:flex}tr.svelte-63hltt .delete-btn:hover{color:var(--color-destructive)}.csv-footer.svelte-63hltt{display:flex;align-items:center;gap:16px;padding:8px 0}.csv-footer.svelte-63hltt .add-row-btn{font-size:14px}.remote-active.svelte-63hltt{outline:2px solid var(--rc-color, #e05050);outline-offset:-2px;position:relative}.remote-cell-label.svelte-63hltt{position:absolute;top:-18px;left:-1px;font-size:11px;font-family:var(--font-sans);font-weight:500;padding:0 4px;border-radius:3px 3px 3px 0;white-space:nowrap;line-height:1.6;color:#fff;z-index:2;pointer-events:none}.diff-view.svelte-1g4tvol{flex:1;overflow-y:auto;min-height:0}.diff-properties.svelte-1g4tvol{padding:16px 40px 8px;border-bottom:1px solid var(--color-border)}.dp-row.svelte-1g4tvol{display:grid;grid-template-columns:20px 120px 1fr;align-items:start;gap:8px;padding:5px 8px;margin:0 -8px;border-radius:4px;min-height:30px}.dp-icon.svelte-1g4tvol{display:flex;align-items:center;justify-content:center;color:var(--color-text-tertiary);height:22px}.dp-key.svelte-1g4tvol{font-size:14px;color:var(--color-text-tertiary);line-height:22px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dp-value.svelte-1g4tvol{display:flex;flex-direction:column;gap:2px;min-height:22px;line-height:22px;font-size:14px;color:var(--color-text-primary)}.dp-diff-old.svelte-1g4tvol{display:inline-flex;align-items:center;padding:0 8px;border-radius:4px;background:#dc505026;color:var(--color-destructive, #e54d4d);min-height:22px;line-height:22px;width:fit-content}.dp-diff-new.svelte-1g4tvol{display:inline-flex;align-items:center;padding:0 8px;border-radius:4px;background:#50c86426;color:var(--color-success, #3ecf8e);min-height:22px;line-height:22px;width:fit-content}.diff-body.svelte-1g4tvol{padding:32px 40px;font-family:var(--font-sans);font-size:16px;line-height:1.6;color:var(--color-text-primary);white-space:pre-wrap;word-break:break-word}.diff-body.svelte-1g4tvol .db-removed{background:#dc505026;color:var(--color-destructive, #e54d4d);border-radius:2px}.diff-body.svelte-1g4tvol .db-added{background:#50c86426;color:var(--color-success, #3ecf8e);border-radius:2px}.document-scroll.svelte-udj3er{flex:1;overflow-y:auto;min-height:0}.document-well.svelte-udj3er{max-width:720px;margin:0 auto;width:100%}.editor-bar.svelte-udj3er{height:40px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:0 16px 0 40px;border-bottom:1px solid var(--color-border)}.breadcrumb-path.svelte-udj3er{font-size:14px;color:var(--color-text-secondary);line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}.bc-sep.svelte-udj3er{color:var(--color-text-tertiary);margin:0 6px}.bc-segment.svelte-udj3er{color:var(--color-text-secondary)}.bc-current.svelte-udj3er{color:var(--color-text-primary)}.editor-actions.svelte-udj3er{display:flex;align-items:center;gap:8px;flex-shrink:0;white-space:nowrap}.status-text.svelte-udj3er{font-size:13px}.status-text.saving.svelte-udj3er{color:var(--color-text-tertiary)}.status-text.error.svelte-udj3er{color:var(--color-destructive)}.editor-actions.svelte-udj3er .open-app{text-transform:capitalize}.refresh-panel.svelte-udj3er{border-bottom:1px solid var(--color-border);padding:12px 40px;background:var(--color-bg-secondary, var(--color-bg-hover));font-size:14px;flex-shrink:0}.refresh-uptodate.svelte-udj3er{color:var(--color-text-secondary)}.editor-bar-diff.svelte-udj3er{background:var(--color-bg)}.diff-action-title.svelte-udj3er{font-size:14px;color:var(--color-text-primary);font-weight:600}.diff-action-buttons.svelte-udj3er{display:flex;align-items:center;gap:6px}@media(max-width:960px){.breadcrumb-path.svelte-udj3er{display:none}}
@@ -1 +1 @@
1
- .list-view.svelte-1p6fd26{flex:1;display:flex;flex-direction:column;min-height:0;overflow:hidden}.list-toolbar.svelte-1p6fd26{display:flex;align-items:center;justify-content:space-between;height:40px;padding:0 12px;border-bottom:1px solid var(--color-border);flex-shrink:0}.toolbar-left.svelte-1p6fd26{display:flex;align-items:center;gap:4px;flex-shrink:0;padding:6px 0}.toolbar-left.svelte-1p6fd26 .select-trigger{border:none!important;box-shadow:none!important}.toolbar-left.svelte-1p6fd26 .select-trigger:hover{background:var(--color-bg-hover)!important}.toolbar-filters.svelte-1p6fd26{display:flex;align-items:center;gap:6px;overflow-x:auto;padding:6px 0}.row-count.svelte-1p6fd26{font-size:13px;color:var(--color-text-tertiary)}.empty.svelte-1p6fd26{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:var(--color-text-tertiary);font-size:14px}.table-scroll.svelte-1p6fd26{flex:1;overflow:auto}.list-table.svelte-1p6fd26{width:100%;border-collapse:collapse;font-size:14px}thead.svelte-1p6fd26{position:sticky;top:0;z-index:1;background:var(--color-bg)}th.svelte-1p6fd26{text-align:left;padding:8px 12px;font-weight:500;font-size:13px;color:var(--color-text-tertiary);border-bottom:1px solid var(--color-border);white-space:nowrap;-webkit-user-select:none;user-select:none}.th-controls.svelte-1p6fd26{display:flex;align-items:center;gap:2px}.th-sort-btn.svelte-1p6fd26{display:inline-flex;align-items:center;border:none;background:transparent;color:inherit;font:inherit;cursor:pointer;padding:0}.th-sort-btn.svelte-1p6fd26:hover{color:var(--color-text-secondary)}.th-sort-btn.sort-active.svelte-1p6fd26{color:var(--color-text-primary)}.th-sort-btn.sort-active.svelte-1p6fd26 .th-sort:where(.svelte-1p6fd26){opacity:1}.th-label.svelte-1p6fd26{margin-right:4px}.th-sort.svelte-1p6fd26{display:inline-flex;align-items:center;vertical-align:middle;opacity:.5}.th-sort-btn.svelte-1p6fd26:hover .th-sort:where(.svelte-1p6fd26){opacity:1}.th-filter-btn{all:unset;display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:3px;cursor:pointer;color:var(--color-text-tertiary);opacity:0;transition:opacity .15s,color .15s}th.svelte-1p6fd26:hover .th-filter-btn,.th-filter-btn.filter-active{opacity:1}.th-filter-btn:hover{color:var(--color-text-secondary);background:var(--color-bg-hover)}.th-filter-btn.filter-active{color:var(--color-accent)}.filter-popover{background:var(--color-bg-elevated);border:1px solid var(--color-border);border-radius:6px;box-shadow:0 4px 16px #00000040;padding:8px;min-width:180px;z-index:50}.filter-text-input{font-size:13px!important;height:30px!important}.filter-checks.svelte-1p6fd26{display:flex;flex-direction:column;gap:4px}.filter-check-label.svelte-1p6fd26{display:flex;align-items:center;gap:6px;padding:4px;font-size:13px;color:var(--color-text-primary);cursor:pointer;border-radius:3px;text-transform:capitalize}.filter-check-label.svelte-1p6fd26:hover{background:var(--color-bg-hover)}.filter-date-range.svelte-1p6fd26{display:flex;flex-direction:column;gap:6px}.filter-date-label.svelte-1p6fd26{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--color-text-tertiary)}.filter-date-label.svelte-1p6fd26 .filter-date-input{flex:1;font-size:13px!important;height:30px!important;color-scheme:dark}.filter-pill.svelte-1p6fd26{display:inline-flex;align-items:center;gap:4px;padding:2px 8px;font-size:12px;font-family:inherit;color:var(--color-text-secondary);background:var(--color-bg-surface);border:1px solid var(--color-border);border-radius:9999px;cursor:pointer;white-space:nowrap;flex-shrink:0}.filter-pill.svelte-1p6fd26:hover{border-color:var(--color-accent);color:var(--color-text-primary)}.filter-clear-all.svelte-1p6fd26{font-size:12px;font-family:inherit;color:var(--color-text-tertiary);background:transparent;border:none;cursor:pointer;white-space:nowrap;padding:2px 4px;flex-shrink:0}.filter-clear-all.svelte-1p6fd26:hover{color:var(--color-text-secondary)}.group-header.svelte-1p6fd26{cursor:pointer}.group-header.svelte-1p6fd26 td:where(.svelte-1p6fd26){padding:0;border-bottom:1px solid var(--color-border);background:var(--color-bg-hover)}.group-header-content.svelte-1p6fd26{display:flex;align-items:baseline;gap:6px;padding:6px 12px}.group-chevron.svelte-1p6fd26{display:inline-flex;align-items:center;align-self:center;color:var(--color-text-tertiary);transition:transform .15s;transform:rotate(90deg)}.group-chevron.collapsed.svelte-1p6fd26{transform:rotate(0)}.group-label.svelte-1p6fd26{font-size:13px;font-weight:600;color:var(--color-text-primary);text-transform:capitalize}.group-count.svelte-1p6fd26{font-size:12px;color:var(--color-text-tertiary)}tr.svelte-1p6fd26{cursor:pointer}tbody.svelte-1p6fd26 tr:where(.svelte-1p6fd26):not(.group-header):hover{background:var(--color-bg-hover)}td.svelte-1p6fd26{padding:8px 12px;color:var(--color-text-primary);border-bottom:1px solid var(--color-border);white-space:nowrap}.cell-name.svelte-1p6fd26{font-weight:500;max-width:300px;overflow:hidden;text-overflow:ellipsis}.cell-date.svelte-1p6fd26{color:var(--color-text-tertiary);font-size:13px}.cell-meta.svelte-1p6fd26{color:var(--color-text-secondary);font-size:13px;text-transform:capitalize}.colored-value.svelte-1p6fd26{display:inline-flex;align-items:center;gap:5px;font-size:13px;text-transform:capitalize}.status-dot.svelte-1p6fd26{width:6px;height:6px;border-radius:3px;flex-shrink:0}.calendar-view.svelte-dnwsps{flex:1;display:flex;flex-direction:column;min-height:0;overflow:hidden}.calendar-toolbar.svelte-dnwsps{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;height:40px;padding:0 12px;border-bottom:1px solid var(--color-border);flex-shrink:0}.toolbar-left.svelte-dnwsps{display:flex;align-items:center;gap:4px}.toolbar-left.svelte-dnwsps .select-trigger{border:none!important;box-shadow:none!important}.toolbar-left.svelte-dnwsps .select-trigger:hover{background:var(--color-bg-hover)!important}.entity-count.svelte-dnwsps{font-size:13px;color:var(--color-text-tertiary)}.toolbar-center.svelte-dnwsps{display:flex;justify-content:center;align-items:center;gap:4px}.nav-btn.svelte-dnwsps{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border:none;border-radius:4px;background:transparent;color:var(--color-text-secondary);cursor:pointer}.nav-btn.svelte-dnwsps:hover{background:var(--color-bg-hover);color:var(--color-text-primary)}.today-btn.svelte-dnwsps{font-size:13px;font-family:inherit;color:var(--color-text-tertiary);background:none;border:none;cursor:pointer;padding:0 4px}.today-btn.svelte-dnwsps:hover{color:var(--color-text-secondary)}.toolbar-right.svelte-dnwsps{display:flex;align-items:center;justify-content:flex-end;gap:8px}.toolbar-sep.svelte-dnwsps{color:var(--color-text-tertiary);opacity:.4;font-size:13px}.month-label.svelte-dnwsps{font-size:13px;font-weight:400;color:var(--color-text-primary);min-width:120px;text-align:center}.calendar-grid.svelte-dnwsps{flex:1;display:grid;grid-template-columns:repeat(7,1fr);grid-template-rows:auto;grid-auto-rows:1fr;min-height:0;overflow-y:auto}.dow-header.svelte-dnwsps{padding:6px 8px;font-size:10px;font-weight:400;color:var(--color-text-tertiary);text-transform:uppercase;letter-spacing:.1em;border-bottom:1px solid var(--color-border);text-align:center}.calendar-day.svelte-dnwsps{min-height:90px;padding:4px 6px;border-right:1px solid var(--color-border);border-bottom:1px solid var(--color-border);display:flex;flex-direction:column;gap:2px;min-width:0;overflow:hidden}.calendar-day.svelte-dnwsps:nth-child(7n+7){border-right:none}.calendar-day.svelte-dnwsps:nth-last-child(-n+7){border-bottom:none}.calendar-day.outside-month.svelte-dnwsps .day-number:where(.svelte-dnwsps){color:var(--color-text-tertiary)}.calendar-day.today.svelte-dnwsps{background:var(--color-bg-surface)}.day-number.svelte-dnwsps{font-size:12px;color:var(--color-text-tertiary);padding:1px 4px;line-height:1;margin-bottom:2px}.today-number.svelte-dnwsps{font-weight:600;color:var(--color-text-primary)}.day-entities.svelte-dnwsps{display:flex;flex-direction:column;gap:1px;overflow:hidden}.entity-chip.svelte-dnwsps{display:flex;align-items:center;gap:4px;padding:2px 6px;border:none;border-radius:3px;font-family:inherit;font-size:12px;cursor:pointer;overflow:hidden;white-space:nowrap;text-align:left;transition:filter .1s;position:relative}.entity-chip.svelte-dnwsps:hover{background:var(--chip-hover-bg)!important}.chip-dot.svelte-dnwsps{width:5px;height:5px;border-radius:50%;flex-shrink:0}.floating-tooltip.svelte-dnwsps{position:fixed;padding:8px 12px;border-radius:8px;background:var(--color-bg-elevated);border:1px solid var(--color-border);box-shadow:0 8px 24px #00000040;z-index:1000;pointer-events:none;display:flex;flex-direction:column;gap:2px;min-width:160px;max-width:260px}.tooltip-title.svelte-dnwsps{font-size:14px;font-weight:600;color:var(--color-text-primary);padding:4px 0}.tooltip-meta.svelte-dnwsps{font-size:14px;color:var(--color-text-tertiary);padding:2px 0}.chip-label.svelte-dnwsps{flex:1;min-width:0;overflow:hidden;-webkit-mask-image:linear-gradient(to right,black calc(100% - 12px),transparent);mask-image:linear-gradient(to right,black calc(100% - 12px),transparent)}.more-label.svelte-dnwsps{font-size:12px;font-family:inherit;color:var(--color-text-tertiary);background:none;border:none;padding:0 6px;cursor:pointer;text-align:left}.more-label.svelte-dnwsps:hover{color:var(--color-text-secondary)}.overflow-backdrop.svelte-dnwsps{position:fixed;inset:0;z-index:999}.overflow-popover.svelte-dnwsps{position:fixed;z-index:1000;background:var(--color-bg-elevated);border:1px solid var(--color-border);border-radius:8px;box-shadow:0 8px 24px #00000040;width:260px;max-height:320px;display:flex;flex-direction:column}.overflow-list.svelte-dnwsps{overflow-y:auto;padding:4px}.overflow-item.svelte-dnwsps{display:flex;align-items:center;gap:6px;width:100%;padding:6px 8px;border:none;border-radius:4px;background:transparent;font-family:inherit;font-size:14px;color:var(--color-text-primary);cursor:pointer;text-align:left}.overflow-item.svelte-dnwsps:hover{background:var(--color-bg-hover)}.overflow-item-title.svelte-dnwsps{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.overflow-item-type.svelte-dnwsps{font-size:12px;color:var(--color-text-tertiary);flex-shrink:0}.empty.svelte-dnwsps{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:var(--color-text-tertiary);font-size:14px}.empty-hint.svelte-dnwsps{font-size:13px;color:var(--color-text-tertiary)}
1
+ .list-view.svelte-1p6fd26{flex:1;display:flex;flex-direction:column;min-height:0;overflow:hidden}.list-toolbar.svelte-1p6fd26{display:flex;align-items:center;justify-content:space-between;height:40px;padding:0 12px;border-bottom:1px solid var(--color-border);flex-shrink:0}.toolbar-left.svelte-1p6fd26{display:flex;align-items:center;gap:4px;flex-shrink:0;padding:6px 0}.toolbar-left.svelte-1p6fd26 .select-trigger{border:none!important;box-shadow:none!important}.toolbar-left.svelte-1p6fd26 .select-trigger:hover{background:var(--color-bg-hover)!important}.toolbar-filters.svelte-1p6fd26{display:flex;align-items:center;gap:6px;overflow-x:auto;padding:6px 0}.row-count.svelte-1p6fd26{font-size:13px;color:var(--color-text-tertiary)}.empty.svelte-1p6fd26{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:var(--color-text-tertiary);font-size:14px}.table-scroll.svelte-1p6fd26{flex:1;overflow:auto}.list-table.svelte-1p6fd26{width:100%;border-collapse:collapse;font-size:14px}thead.svelte-1p6fd26{position:sticky;top:0;z-index:1;background:var(--color-bg)}th.svelte-1p6fd26{text-align:left;padding:8px 12px;font-weight:500;font-size:13px;color:var(--color-text-tertiary);border-bottom:1px solid var(--color-border);white-space:nowrap;-webkit-user-select:none;user-select:none}.th-controls.svelte-1p6fd26{display:flex;align-items:center;gap:2px}.th-sort-btn.svelte-1p6fd26{display:inline-flex;align-items:center;border:none;background:transparent;color:inherit;font:inherit;cursor:pointer;padding:0}.th-sort-btn.svelte-1p6fd26:hover{color:var(--color-text-secondary)}.th-sort-btn.sort-active.svelte-1p6fd26{color:var(--color-text-primary)}.th-sort-btn.sort-active.svelte-1p6fd26 .th-sort:where(.svelte-1p6fd26){opacity:1}.th-label.svelte-1p6fd26{margin-right:4px}.th-sort.svelte-1p6fd26{display:inline-flex;align-items:center;vertical-align:middle;opacity:.5}.th-sort-btn.svelte-1p6fd26:hover .th-sort:where(.svelte-1p6fd26){opacity:1}.th-filter-btn{all:unset;display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:3px;cursor:pointer;color:var(--color-text-tertiary);opacity:0;transition:opacity .15s,color .15s}th.svelte-1p6fd26:hover .th-filter-btn,.th-filter-btn.filter-active{opacity:1}.th-filter-btn:hover{color:var(--color-text-secondary);background:var(--color-bg-hover)}.th-filter-btn.filter-active{color:var(--color-accent)}.filter-popover{background:var(--color-bg-elevated);border:1px solid var(--color-border);border-radius:6px;box-shadow:0 4px 16px #00000040;padding:8px;min-width:180px;z-index:50}.filter-text-input{font-size:13px!important;height:30px!important}.filter-checks.svelte-1p6fd26{display:flex;flex-direction:column;gap:4px}.filter-check-label.svelte-1p6fd26{display:flex;align-items:center;gap:6px;padding:4px;font-size:13px;color:var(--color-text-primary);cursor:pointer;border-radius:3px;text-transform:capitalize}.filter-check-label.svelte-1p6fd26:hover{background:var(--color-bg-hover)}.filter-date-range.svelte-1p6fd26{display:flex;flex-direction:column;gap:6px}.filter-date-label.svelte-1p6fd26{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--color-text-tertiary)}.filter-date-label.svelte-1p6fd26 .filter-date-input{flex:1;font-size:13px!important;height:30px!important;color-scheme:dark}.filter-pill.svelte-1p6fd26{display:inline-flex;align-items:center;gap:4px;padding:2px 8px;font-size:12px;font-family:inherit;color:var(--color-text-secondary);background:var(--color-bg-surface);border:1px solid var(--color-border);border-radius:9999px;cursor:pointer;white-space:nowrap;flex-shrink:0}.filter-pill.svelte-1p6fd26:hover{border-color:var(--color-accent);color:var(--color-text-primary)}.filter-clear-all.svelte-1p6fd26{font-size:12px;font-family:inherit;color:var(--color-text-tertiary);background:transparent;border:none;cursor:pointer;white-space:nowrap;padding:2px 4px;flex-shrink:0}.filter-clear-all.svelte-1p6fd26:hover{color:var(--color-text-secondary)}.group-header.svelte-1p6fd26{cursor:pointer}.group-header.svelte-1p6fd26 td:where(.svelte-1p6fd26){padding:0;border-bottom:1px solid var(--color-border);background:var(--color-bg-hover)}.group-header-content.svelte-1p6fd26{display:flex;align-items:baseline;gap:6px;padding:6px 12px}.group-chevron.svelte-1p6fd26{display:inline-flex;align-items:center;align-self:center;color:var(--color-text-tertiary);transition:transform .15s;transform:rotate(90deg)}.group-chevron.collapsed.svelte-1p6fd26{transform:rotate(0)}.group-label.svelte-1p6fd26{font-size:13px;font-weight:400;color:var(--color-text-primary);text-transform:capitalize}.group-count.svelte-1p6fd26{font-size:12px;color:var(--color-text-tertiary)}tr.svelte-1p6fd26{cursor:pointer}tbody.svelte-1p6fd26 tr:where(.svelte-1p6fd26):not(.group-header):hover{background:var(--color-bg-hover)}td.svelte-1p6fd26{padding:8px 12px;color:var(--color-text-primary);border-bottom:1px solid var(--color-border);white-space:nowrap}.cell-name.svelte-1p6fd26{font-weight:500;max-width:300px;overflow:hidden;text-overflow:ellipsis}.cell-date.svelte-1p6fd26{color:var(--color-text-tertiary);font-size:13px}.cell-meta.svelte-1p6fd26{color:var(--color-text-secondary);font-size:13px;text-transform:capitalize}.colored-value.svelte-1p6fd26{display:inline-flex;align-items:center;gap:5px;font-size:13px;text-transform:capitalize}.status-dot.svelte-1p6fd26{width:6px;height:6px;border-radius:3px;flex-shrink:0}.calendar-view.svelte-dnwsps{flex:1;display:flex;flex-direction:column;min-height:0;overflow:hidden}.calendar-toolbar.svelte-dnwsps{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;height:40px;padding:0 12px;border-bottom:1px solid var(--color-border);flex-shrink:0}.toolbar-left.svelte-dnwsps{display:flex;align-items:center;gap:4px}.toolbar-left.svelte-dnwsps .select-trigger{border:none!important;box-shadow:none!important}.toolbar-left.svelte-dnwsps .select-trigger:hover{background:var(--color-bg-hover)!important}.entity-count.svelte-dnwsps{font-size:13px;color:var(--color-text-tertiary)}.toolbar-center.svelte-dnwsps{display:flex;justify-content:center;align-items:center;gap:4px}.nav-btn.svelte-dnwsps{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border:none;border-radius:4px;background:transparent;color:var(--color-text-secondary);cursor:pointer}.nav-btn.svelte-dnwsps:hover{background:var(--color-bg-hover);color:var(--color-text-primary)}.today-btn.svelte-dnwsps{font-size:13px;font-family:inherit;color:var(--color-text-tertiary);background:none;border:none;cursor:pointer;padding:0 4px}.today-btn.svelte-dnwsps:hover{color:var(--color-text-secondary)}.toolbar-right.svelte-dnwsps{display:flex;align-items:center;justify-content:flex-end;gap:8px}.toolbar-sep.svelte-dnwsps{color:var(--color-text-tertiary);opacity:.4;font-size:13px}.month-label.svelte-dnwsps{font-size:13px;font-weight:400;color:var(--color-text-primary);min-width:120px;text-align:center}.calendar-grid.svelte-dnwsps{flex:1;display:grid;grid-template-columns:repeat(7,1fr);grid-template-rows:auto;grid-auto-rows:1fr;min-height:0;overflow-y:auto}.dow-header.svelte-dnwsps{padding:6px 8px;font-size:10px;font-weight:400;color:var(--color-text-tertiary);text-transform:uppercase;letter-spacing:.1em;border-bottom:1px solid var(--color-border);text-align:center}.calendar-day.svelte-dnwsps{min-height:90px;padding:4px 6px;border-right:1px solid var(--color-border);border-bottom:1px solid var(--color-border);display:flex;flex-direction:column;gap:2px;min-width:0;overflow:hidden}.calendar-day.svelte-dnwsps:nth-child(7n+7){border-right:none}.calendar-day.svelte-dnwsps:nth-last-child(-n+7){border-bottom:none}.calendar-day.outside-month.svelte-dnwsps .day-number:where(.svelte-dnwsps){color:var(--color-text-tertiary)}.calendar-day.today.svelte-dnwsps{background:var(--color-bg-surface)}.day-number.svelte-dnwsps{font-size:12px;color:var(--color-text-tertiary);padding:1px 4px;line-height:1;margin-bottom:2px}.today-number.svelte-dnwsps{font-weight:600;color:var(--color-text-primary)}.day-entities.svelte-dnwsps{display:flex;flex-direction:column;gap:1px;overflow:hidden}.entity-chip.svelte-dnwsps{display:flex;align-items:center;gap:4px;padding:2px 6px;border:none;border-radius:3px;font-family:inherit;font-size:12px;cursor:pointer;overflow:hidden;white-space:nowrap;text-align:left;transition:filter .1s;position:relative}.entity-chip.svelte-dnwsps:hover{background:var(--chip-hover-bg)!important}.chip-dot.svelte-dnwsps{width:5px;height:5px;border-radius:50%;flex-shrink:0}.floating-tooltip.svelte-dnwsps{position:fixed;padding:8px 12px;border-radius:8px;background:var(--color-bg-elevated);border:1px solid var(--color-border);box-shadow:0 8px 24px #00000040;z-index:1000;pointer-events:none;display:flex;flex-direction:column;gap:2px;min-width:160px;max-width:260px}.tooltip-title.svelte-dnwsps{font-size:14px;font-weight:600;color:var(--color-text-primary);padding:4px 0}.tooltip-meta.svelte-dnwsps{font-size:14px;color:var(--color-text-tertiary);padding:2px 0}.chip-label.svelte-dnwsps{flex:1;min-width:0;overflow:hidden;-webkit-mask-image:linear-gradient(to right,black calc(100% - 12px),transparent);mask-image:linear-gradient(to right,black calc(100% - 12px),transparent)}.more-label.svelte-dnwsps{font-size:12px;font-family:inherit;color:var(--color-text-tertiary);background:none;border:none;padding:0 6px;cursor:pointer;text-align:left}.more-label.svelte-dnwsps:hover{color:var(--color-text-secondary)}.overflow-backdrop.svelte-dnwsps{position:fixed;inset:0;z-index:999}.overflow-popover.svelte-dnwsps{position:fixed;z-index:1000;background:var(--color-bg-elevated);border:1px solid var(--color-border);border-radius:8px;box-shadow:0 8px 24px #00000040;width:260px;max-height:320px;display:flex;flex-direction:column}.overflow-list.svelte-dnwsps{overflow-y:auto;padding:4px}.overflow-item.svelte-dnwsps{display:flex;align-items:center;gap:6px;width:100%;padding:6px 8px;border:none;border-radius:4px;background:transparent;font-family:inherit;font-size:14px;color:var(--color-text-primary);cursor:pointer;text-align:left}.overflow-item.svelte-dnwsps:hover{background:var(--color-bg-hover)}.overflow-item-title.svelte-dnwsps{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.overflow-item-type.svelte-dnwsps{font-size:12px;color:var(--color-text-tertiary);flex-shrink:0}.empty.svelte-dnwsps{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:var(--color-text-tertiary);font-size:14px}.empty-hint.svelte-dnwsps{font-size:13px;color:var(--color-text-tertiary)}
@@ -1 +1 @@
1
- import{e as i,f as y,g as r,s as n}from"./sZJoCX5N.js";import{g as l}from"./CULlunSW.js";import{d as v,u as V,c as F,f as h}from"./DvmL5xMZ.js";const d={selectedType:null,groupBy:null,sortKey:"name",sortAsc:!0,filters:{text:{},enum:{},date:{}}};function x(){let a=i(y([])),o=i(null),c=i(!1);async function w(){try{n(a,await h(),!0),n(c,!0)}catch(e){console.error("Failed to load views:",e)}}async function f(e,t="list"){const s=t==="calendar"?{...d,calendar:{dateField:"due_date",year:new Date().getFullYear(),month:new Date().getMonth()+1}}:d,u=await F(e,s,t);return n(a,[...r(a),u],!0),u}async function g(e,t){await V(e,t),n(a,r(a).map(s=>s.id===e?{...s,...t}:s),!0)}async function m(e){if(await v(e),n(a,r(a).filter(t=>t.id!==e),!0),r(o)===e){const t=r(a)[0];t?(n(o,t.id,!0),l(`/views/${t.id}`,{replaceState:!0})):(n(o,null),l("/",{replaceState:!0}))}}function p(e){n(o,e,!0)}return{get views(){return r(a)},get activeViewId(){return r(o)},get loaded(){return r(c)},load:w,create:f,update:g,remove:m,setActive:p}}const D=x();export{D as v};
1
+ import{e as i,f as y,g as r,s as n}from"./sZJoCX5N.js";import{g as l}from"./oTvbmuuZ.js";import{d as v,u as V,c as F,f as h}from"./DvmL5xMZ.js";const d={selectedType:null,groupBy:null,sortKey:"name",sortAsc:!0,filters:{text:{},enum:{},date:{}}};function x(){let a=i(y([])),o=i(null),c=i(!1);async function w(){try{n(a,await h(),!0),n(c,!0)}catch(e){console.error("Failed to load views:",e)}}async function f(e,t="list"){const s=t==="calendar"?{...d,calendar:{dateField:"due_date",year:new Date().getFullYear(),month:new Date().getMonth()+1}}:d,u=await F(e,s,t);return n(a,[...r(a),u],!0),u}async function g(e,t){await V(e,t),n(a,r(a).map(s=>s.id===e?{...s,...t}:s),!0)}async function m(e){if(await v(e),n(a,r(a).filter(t=>t.id!==e),!0),r(o)===e){const t=r(a)[0];t?(n(o,t.id,!0),l(`/views/${t.id}`,{replaceState:!0})):(n(o,null),l("/",{replaceState:!0}))}}function p(e){n(o,e,!0)}return{get views(){return r(a)},get activeViewId(){return r(o)},get loaded(){return r(c)},load:w,create:f,update:g,remove:m,setActive:p}}const D=x();export{D as v};
@@ -1,2 +1,2 @@
1
1
  const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./CO5wfegi.js","./sZJoCX5N.js","./DvmL5xMZ.js","./OZfYVFGq.js"])))=>i.map(i=>d[i]);
2
- import{_ as G}from"./PPVm8Dsz.js";import{aW as Y,a1 as C,aV as q,e as S,f as P,g,s as c,a7 as D,a4 as z}from"./sZJoCX5N.js";import{i as K}from"./CULlunSW.js";import{i as H,w as h}from"./DvmL5xMZ.js";import{a as Q}from"./BtBweNkk.js";import{n as $}from"./CkIXD8Ce.js";import{l as X,o as N}from"./BdF6nRVd.js";function Ct(...t){return t.filter(Boolean).join(" ")}const Z=typeof document<"u",v=typeof window<"u"?window:void 0;function tt(t){let e=t.activeElement;for(;e?.shadowRoot;){const s=e.shadowRoot.activeElement;if(s===e)break;e=s}return e}class et{#e;#t;constructor(e={}){const{window:s=v,document:i=s?.document}=e;s!==void 0&&(this.#e=i,this.#t=X(n=>{const r=N(s,"focusin",n),o=N(s,"focusout",n);return()=>{r(),o()}}))}get current(){return this.#t?.(),this.#e?tt(this.#e):null}}new et;class st{#e;#t;constructor(e){this.#e=e,this.#t=Symbol(e)}get key(){return this.#t}exists(){return Y(this.#t)}get(){const e=C(this.#t);if(e===void 0)throw new Error(`Context "${this.#e}" not found`);return e}getOr(e){const s=C(this.#t);return s===void 0?e:s}set(e){return q(this.#t,e)}}const it=new st("<Toaster/>");let U=0;class nt{#e=S(P([]));get toasts(){return g(this.#e)}set toasts(e){c(this.#e,e,!0)}#t=S(P([]));get heights(){return g(this.#t)}set heights(e){c(this.#t,e,!0)}#s=e=>{const s=this.toasts.findIndex(i=>i.id===e);return s===-1?null:s};addToast=e=>{Z&&this.toasts.unshift(e)};updateToast=({id:e,data:s,type:i,message:n})=>{const r=this.toasts.findIndex(f=>f.id===e),o=this.toasts[r];this.toasts[r]={...o,...s,id:e,title:n,type:i,updated:!0}};create=e=>{const{message:s,...i}=e,n=typeof e?.id=="number"||e.id&&e.id?.length>0?e.id:U++,r=e.dismissible!==void 0?e.dismissible:e.dismissable!==void 0?e.dismissable:!0,o=e.type===void 0?"default":e.type;return D(()=>{this.toasts.find(E=>E.id===n)?this.updateToast({id:n,data:e,type:o,message:s,dismissible:r}):this.addToast({...i,id:n,title:s,dismissible:r,type:o})}),n};dismiss=e=>(D(()=>{if(e===void 0){this.toasts=this.toasts.map(i=>({...i,dismiss:!0}));return}const s=this.toasts.findIndex(i=>i.id===e);this.toasts[s]&&(this.toasts[s]={...this.toasts[s],dismiss:!0})}),e);remove=e=>{if(e===void 0){this.toasts=[];return}const s=this.#s(e);if(s!==null)return this.toasts.splice(s,1),e};message=(e,s)=>this.create({...s,type:"default",message:e});error=(e,s)=>this.create({...s,type:"error",message:e});success=(e,s)=>this.create({...s,type:"success",message:e});info=(e,s)=>this.create({...s,type:"info",message:e});warning=(e,s)=>this.create({...s,type:"warning",message:e});loading=(e,s)=>this.create({...s,type:"loading",message:e});promise=(e,s)=>{if(!s)return;let i;s.loading!==void 0&&(i=this.create({...s,promise:e,type:"loading",message:typeof s.loading=="string"?s.loading:s.loading()}));const n=e instanceof Promise?e:e();let r=i!==void 0;return n.then(o=>{if(typeof o=="object"&&o&&"ok"in o&&typeof o.ok=="boolean"&&!o.ok){r=!1;const f=rt(o);this.create({id:i,type:"error",message:f})}else if(s.success!==void 0){r=!1;const f=typeof s.success=="function"?s.success(o):s.success;this.create({id:i,type:"success",message:f})}}).catch(o=>{if(s.error!==void 0){r=!1;const f=typeof s.error=="function"?s.error(o):s.error;this.create({id:i,type:"error",message:f})}}).finally(()=>{r&&(this.dismiss(i),i=void 0),s.finally?.()}),i};custom=(e,s)=>{const i=s?.id||U++;return this.create({component:e,id:i,...s}),i};removeHeight=e=>{this.heights=this.heights.filter(s=>s.toastId!==e)};setHeight=e=>{const s=this.#s(e.toastId);if(s===null){this.heights.push(e);return}this.heights[s]=e};reset=()=>{this.toasts=[],this.heights=[]}}function rt(t){return t&&typeof t=="object"&&"status"in t?`HTTP error! Status: ${t.status}`:`Error! ${t}`}const d=new nt;function ot(t,e){return d.create({message:t,...e})}class Pt{#e=z(()=>d.toasts.filter(e=>!e.dismiss));get toasts(){return g(this.#e)}}function Dt(){return it.get()}const ct=ot,u=Object.assign(ct,{success:d.success,info:d.info,warning:d.warning,error:d.error,custom:d.custom,message:d.message,promise:d.promise,dismiss:d.dismiss,loading:d.loading,getActiveToasts:()=>d.toasts.filter(t=>!t.dismiss)}),at=800;function ut(){let t=S(!1),e=S(null),s=S(null),i=null,n=null,r=!1;function o(p,w,m,l){i&&i.repo===p&&i.type===w&&i.id===m?(l.data!==void 0&&(i.payload.data=l.data),l.content!==void 0&&(i.payload.content=l.content)):i={repo:p,type:w,id:m,payload:{...l}},f()}function f(){n&&clearTimeout(n),n=setTimeout(E,at)}async function E(){if(n=null,!r&&i){const{repo:p,type:w,id:m,payload:l}=i;i=null,r=!0,c(t,!0),c(s,null);try{if(await H(p,w,m,l),c(e,new Date,!0),l.data?.name){const b=h.repos.find(O=>O.name===p)?.entities.find(O=>O.id===m);b&&(b.title=l.data.name)}}catch(y){c(s,y.message??"Save failed",!0);const b=y.status??y.statusCode;(!b||b>=500)&&(i={repo:p,type:w,id:m,payload:l})}finally{c(t,!1),r=!1,i&&E()}}}function J(){n&&(clearTimeout(n),n=null),i&&E()}async function V(p,w,m,l){c(t,!0),c(s,null);try{const y=await H(p,w,m,l);return c(e,new Date,!0),y}catch(y){return c(s,y.message??"Save failed",!0),null}finally{c(t,!1)}}function L(){c(s,null),c(e,null),i=null,n&&(clearTimeout(n),n=null)}return{get saving(){return g(t)},get lastSaved(){return g(e)},get error(){return g(s)},get hasPending(){return!!(i||r)},scheduleAutoSave:o,flush:J,saveEntity:V,reset:L}}const lt=ut();let a=null,B=null,R=null,W=[],I=null,_=1e3,k=S(!1),F=S(null);const T=new Map,x={},A={};function j(t,e){T.delete(t);const s=e.entities.length,i=s===1?`${t} updated ${e.entities[0]}`:`${t} updated ${s} entities`;u(i)}function dt(t){for(const[e,s]of T)s.repo===t&&(clearTimeout(s.timer),T.delete(e))}function ft(t){const e=Q.user?.displayName;if(t.type==="sync_progress"){const s=x[t.repo];if(s){const i=t.message.trim(),n=i.match(/^Syncing from source:\s*(.+)$/i);n&&(A[t.repo]=`Syncing ${n[1].trim()}…`);const r=A[t.repo]??`Syncing ${t.repo}…`;u.loading(r,{id:s,description:i,duration:36e5})}return}if(t.type==="entity_change"){if(e&&t.actor===e&&t.source==="api"){h.refreshEntities(t.repo);return}if(h.refreshEntities(t.repo),$.selectedRepo===t.repo&&$.selectedType===t.entityType&&$.selectedId===t.entityId){lt.hasPending?u(`${t.actor} also saved changes to this entity`):K();return}const i=T.get(t.actor);if(i)clearTimeout(i.timer),i.entities.includes(t.entityId)||i.entities.push(t.entityId),i.timer=setTimeout(()=>j(t.actor,i),1e4);else{const n={entities:[t.entityId],repo:t.repo,timer:setTimeout(()=>j(t.actor,n),1e4)};T.set(t.actor,n)}return}if(t.type==="session_commit"){if(e&&t.actor===e){c(F,t.timestamp,!0);return}const s=t.entities.length,i=s===1?`${t.actor} saved changes to ${t.entities[0]}`:`${t.actor} saved ${s} changes in ${t.repo}`;u(i),h.refreshEntities(t.repo);return}if(t.type==="sync_complete"){if(dt(t.repo),!x[t.repo]){const s=t.created+t.updated+t.deleted,i=s===0?`Sync complete · no changes in ${t.repo}`:`Sync complete · ${s} ${s===1?"entity":"entities"} from ${t.source}`;u.success(i)}h.refreshEntities(t.repo);return}if(t.type==="collection_created"){u(`${t.actor} created collection ${t.repo}`),h.refreshEntities(t.repo);return}if(t.type==="collection_deleted"){u(`${t.actor} deleted collection ${t.repo}`);return}if(t.type==="repo_sync"){u(`${t.actor} pushed to ${t.repo}`),h.refreshEntities(t.repo);return}if(t.type==="presence"){B?.(t);return}if(t.type==="online"){R?.(t);return}if(t.type==="insights_updated"){G(()=>import("./CO5wfegi.js"),__vite__mapDeps([0,1,2,3]),import.meta.url).then(s=>s.insightsStore.load());return}if(t.type==="access_granted"||t.type==="access_revoked"){t.type==="access_revoked"&&$.selectedRepo===t.repo&&$.deselect(),h.load();return}}function M(){if(typeof window>"u"||a&&(a.readyState===WebSocket.OPEN||a.readyState===WebSocket.CONNECTING))return;const e=`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/ws`;a=new WebSocket(e),a.binaryType="arraybuffer",a.onopen=()=>{c(k,!0),_=1e3,h.refreshAll();for(const s of W)s()},a.onmessage=s=>{if(!(s.data instanceof ArrayBuffer))try{const i=JSON.parse(s.data);if(i?.type==="ping"){a?.send(JSON.stringify({type:"pong"}));return}const n=i;n.type&&n.type!=="toast"&&ft(n)}catch{}},a.onclose=()=>{c(k,!1),a=null,I=setTimeout(()=>{_=Math.min(_*2,1e4),M()},_)},a.onerror=()=>{}}function ht(){I&&(clearTimeout(I),I=null),a&&(a.close(),a=null),c(k,!1);for(const[,t]of T)clearTimeout(t.timer);T.clear()}function pt(t,e=4e3){u(t,{duration:e})}function mt(t,e){const s=crypto.randomUUID();return e?.loading?u.loading(t,{id:s,duration:36e5}):u(t,{id:s}),s}function yt(t,e,s){if(s?.loading){u.loading(e,{id:t});return}/failed|error/i.test(e)?u.error(e,{id:t,duration:s?.duration??6e3}):u.success(e,{id:t,duration:s?.duration??4e3})}function gt(t){const e=crypto.randomUUID();x[t]=e,u.loading(`Syncing ${t}…`,{id:e,duration:36e5})}function wt(t,e,s){const i=x[t];i&&(delete x[t],delete A[t],s?u.error(e,{id:i,duration:6e3}):u.success(e,{id:i,duration:4e3}))}function St(t){B=t}function Tt(t){R=t}function Et(t){W.push(t)}function bt(t){a?.readyState===WebSocket.OPEN&&a.send(JSON.stringify(t))}const Ht={get connected(){return g(k)},get lastAutoSaved(){return g(F)},get ws(){return a},connect:M,disconnect:ht,showToast:pt,showPersistentToast:mt,updateToast:yt,startSyncToast:gt,finishSyncToast:wt,send:bt,setPresenceHandler:St,setOnlineHandler:Tt,addConnectHandler:Et};export{Pt as S,d as a,Ct as c,lt as e,Ht as r,it as s,u as t,Dt as u};
2
+ import{_ as G}from"./PPVm8Dsz.js";import{aW as Y,a1 as C,aV as q,e as S,f as P,g,s as c,a7 as D,a4 as z}from"./sZJoCX5N.js";import{i as K}from"./oTvbmuuZ.js";import{i as H,w as h}from"./DvmL5xMZ.js";import{a as Q}from"./BtBweNkk.js";import{n as $}from"./CkIXD8Ce.js";import{l as X,o as N}from"./BdF6nRVd.js";function Ct(...t){return t.filter(Boolean).join(" ")}const Z=typeof document<"u",v=typeof window<"u"?window:void 0;function tt(t){let e=t.activeElement;for(;e?.shadowRoot;){const s=e.shadowRoot.activeElement;if(s===e)break;e=s}return e}class et{#e;#t;constructor(e={}){const{window:s=v,document:i=s?.document}=e;s!==void 0&&(this.#e=i,this.#t=X(n=>{const r=N(s,"focusin",n),o=N(s,"focusout",n);return()=>{r(),o()}}))}get current(){return this.#t?.(),this.#e?tt(this.#e):null}}new et;class st{#e;#t;constructor(e){this.#e=e,this.#t=Symbol(e)}get key(){return this.#t}exists(){return Y(this.#t)}get(){const e=C(this.#t);if(e===void 0)throw new Error(`Context "${this.#e}" not found`);return e}getOr(e){const s=C(this.#t);return s===void 0?e:s}set(e){return q(this.#t,e)}}const it=new st("<Toaster/>");let U=0;class nt{#e=S(P([]));get toasts(){return g(this.#e)}set toasts(e){c(this.#e,e,!0)}#t=S(P([]));get heights(){return g(this.#t)}set heights(e){c(this.#t,e,!0)}#s=e=>{const s=this.toasts.findIndex(i=>i.id===e);return s===-1?null:s};addToast=e=>{Z&&this.toasts.unshift(e)};updateToast=({id:e,data:s,type:i,message:n})=>{const r=this.toasts.findIndex(f=>f.id===e),o=this.toasts[r];this.toasts[r]={...o,...s,id:e,title:n,type:i,updated:!0}};create=e=>{const{message:s,...i}=e,n=typeof e?.id=="number"||e.id&&e.id?.length>0?e.id:U++,r=e.dismissible!==void 0?e.dismissible:e.dismissable!==void 0?e.dismissable:!0,o=e.type===void 0?"default":e.type;return D(()=>{this.toasts.find(E=>E.id===n)?this.updateToast({id:n,data:e,type:o,message:s,dismissible:r}):this.addToast({...i,id:n,title:s,dismissible:r,type:o})}),n};dismiss=e=>(D(()=>{if(e===void 0){this.toasts=this.toasts.map(i=>({...i,dismiss:!0}));return}const s=this.toasts.findIndex(i=>i.id===e);this.toasts[s]&&(this.toasts[s]={...this.toasts[s],dismiss:!0})}),e);remove=e=>{if(e===void 0){this.toasts=[];return}const s=this.#s(e);if(s!==null)return this.toasts.splice(s,1),e};message=(e,s)=>this.create({...s,type:"default",message:e});error=(e,s)=>this.create({...s,type:"error",message:e});success=(e,s)=>this.create({...s,type:"success",message:e});info=(e,s)=>this.create({...s,type:"info",message:e});warning=(e,s)=>this.create({...s,type:"warning",message:e});loading=(e,s)=>this.create({...s,type:"loading",message:e});promise=(e,s)=>{if(!s)return;let i;s.loading!==void 0&&(i=this.create({...s,promise:e,type:"loading",message:typeof s.loading=="string"?s.loading:s.loading()}));const n=e instanceof Promise?e:e();let r=i!==void 0;return n.then(o=>{if(typeof o=="object"&&o&&"ok"in o&&typeof o.ok=="boolean"&&!o.ok){r=!1;const f=rt(o);this.create({id:i,type:"error",message:f})}else if(s.success!==void 0){r=!1;const f=typeof s.success=="function"?s.success(o):s.success;this.create({id:i,type:"success",message:f})}}).catch(o=>{if(s.error!==void 0){r=!1;const f=typeof s.error=="function"?s.error(o):s.error;this.create({id:i,type:"error",message:f})}}).finally(()=>{r&&(this.dismiss(i),i=void 0),s.finally?.()}),i};custom=(e,s)=>{const i=s?.id||U++;return this.create({component:e,id:i,...s}),i};removeHeight=e=>{this.heights=this.heights.filter(s=>s.toastId!==e)};setHeight=e=>{const s=this.#s(e.toastId);if(s===null){this.heights.push(e);return}this.heights[s]=e};reset=()=>{this.toasts=[],this.heights=[]}}function rt(t){return t&&typeof t=="object"&&"status"in t?`HTTP error! Status: ${t.status}`:`Error! ${t}`}const d=new nt;function ot(t,e){return d.create({message:t,...e})}class Pt{#e=z(()=>d.toasts.filter(e=>!e.dismiss));get toasts(){return g(this.#e)}}function Dt(){return it.get()}const ct=ot,u=Object.assign(ct,{success:d.success,info:d.info,warning:d.warning,error:d.error,custom:d.custom,message:d.message,promise:d.promise,dismiss:d.dismiss,loading:d.loading,getActiveToasts:()=>d.toasts.filter(t=>!t.dismiss)}),at=800;function ut(){let t=S(!1),e=S(null),s=S(null),i=null,n=null,r=!1;function o(p,w,m,l){i&&i.repo===p&&i.type===w&&i.id===m?(l.data!==void 0&&(i.payload.data=l.data),l.content!==void 0&&(i.payload.content=l.content)):i={repo:p,type:w,id:m,payload:{...l}},f()}function f(){n&&clearTimeout(n),n=setTimeout(E,at)}async function E(){if(n=null,!r&&i){const{repo:p,type:w,id:m,payload:l}=i;i=null,r=!0,c(t,!0),c(s,null);try{if(await H(p,w,m,l),c(e,new Date,!0),l.data?.name){const b=h.repos.find(O=>O.name===p)?.entities.find(O=>O.id===m);b&&(b.title=l.data.name)}}catch(y){c(s,y.message??"Save failed",!0);const b=y.status??y.statusCode;(!b||b>=500)&&(i={repo:p,type:w,id:m,payload:l})}finally{c(t,!1),r=!1,i&&E()}}}function J(){n&&(clearTimeout(n),n=null),i&&E()}async function V(p,w,m,l){c(t,!0),c(s,null);try{const y=await H(p,w,m,l);return c(e,new Date,!0),y}catch(y){return c(s,y.message??"Save failed",!0),null}finally{c(t,!1)}}function L(){c(s,null),c(e,null),i=null,n&&(clearTimeout(n),n=null)}return{get saving(){return g(t)},get lastSaved(){return g(e)},get error(){return g(s)},get hasPending(){return!!(i||r)},scheduleAutoSave:o,flush:J,saveEntity:V,reset:L}}const lt=ut();let a=null,B=null,R=null,W=[],I=null,_=1e3,k=S(!1),F=S(null);const T=new Map,x={},A={};function j(t,e){T.delete(t);const s=e.entities.length,i=s===1?`${t} updated ${e.entities[0]}`:`${t} updated ${s} entities`;u(i)}function dt(t){for(const[e,s]of T)s.repo===t&&(clearTimeout(s.timer),T.delete(e))}function ft(t){const e=Q.user?.displayName;if(t.type==="sync_progress"){const s=x[t.repo];if(s){const i=t.message.trim(),n=i.match(/^Syncing from source:\s*(.+)$/i);n&&(A[t.repo]=`Syncing ${n[1].trim()}…`);const r=A[t.repo]??`Syncing ${t.repo}…`;u.loading(r,{id:s,description:i,duration:36e5})}return}if(t.type==="entity_change"){if(e&&t.actor===e&&t.source==="api"){h.refreshEntities(t.repo);return}if(h.refreshEntities(t.repo),$.selectedRepo===t.repo&&$.selectedType===t.entityType&&$.selectedId===t.entityId){lt.hasPending?u(`${t.actor} also saved changes to this entity`):K();return}const i=T.get(t.actor);if(i)clearTimeout(i.timer),i.entities.includes(t.entityId)||i.entities.push(t.entityId),i.timer=setTimeout(()=>j(t.actor,i),1e4);else{const n={entities:[t.entityId],repo:t.repo,timer:setTimeout(()=>j(t.actor,n),1e4)};T.set(t.actor,n)}return}if(t.type==="session_commit"){if(e&&t.actor===e){c(F,t.timestamp,!0);return}const s=t.entities.length,i=s===1?`${t.actor} saved changes to ${t.entities[0]}`:`${t.actor} saved ${s} changes in ${t.repo}`;u(i),h.refreshEntities(t.repo);return}if(t.type==="sync_complete"){if(dt(t.repo),!x[t.repo]){const s=t.created+t.updated+t.deleted,i=s===0?`Sync complete · no changes in ${t.repo}`:`Sync complete · ${s} ${s===1?"entity":"entities"} from ${t.source}`;u.success(i)}h.refreshEntities(t.repo);return}if(t.type==="collection_created"){u(`${t.actor} created collection ${t.repo}`),h.refreshEntities(t.repo);return}if(t.type==="collection_deleted"){u(`${t.actor} deleted collection ${t.repo}`);return}if(t.type==="repo_sync"){u(`${t.actor} pushed to ${t.repo}`),h.refreshEntities(t.repo);return}if(t.type==="presence"){B?.(t);return}if(t.type==="online"){R?.(t);return}if(t.type==="insights_updated"){G(()=>import("./CO5wfegi.js"),__vite__mapDeps([0,1,2,3]),import.meta.url).then(s=>s.insightsStore.load());return}if(t.type==="access_granted"||t.type==="access_revoked"){t.type==="access_revoked"&&$.selectedRepo===t.repo&&$.deselect(),h.load();return}}function M(){if(typeof window>"u"||a&&(a.readyState===WebSocket.OPEN||a.readyState===WebSocket.CONNECTING))return;const e=`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/ws`;a=new WebSocket(e),a.binaryType="arraybuffer",a.onopen=()=>{c(k,!0),_=1e3,h.refreshAll();for(const s of W)s()},a.onmessage=s=>{if(!(s.data instanceof ArrayBuffer))try{const i=JSON.parse(s.data);if(i?.type==="ping"){a?.send(JSON.stringify({type:"pong"}));return}const n=i;n.type&&n.type!=="toast"&&ft(n)}catch{}},a.onclose=()=>{c(k,!1),a=null,I=setTimeout(()=>{_=Math.min(_*2,1e4),M()},_)},a.onerror=()=>{}}function ht(){I&&(clearTimeout(I),I=null),a&&(a.close(),a=null),c(k,!1);for(const[,t]of T)clearTimeout(t.timer);T.clear()}function pt(t,e=4e3){u(t,{duration:e})}function mt(t,e){const s=crypto.randomUUID();return e?.loading?u.loading(t,{id:s,duration:36e5}):u(t,{id:s}),s}function yt(t,e,s){if(s?.loading){u.loading(e,{id:t});return}/failed|error/i.test(e)?u.error(e,{id:t,duration:s?.duration??6e3}):u.success(e,{id:t,duration:s?.duration??4e3})}function gt(t){const e=crypto.randomUUID();x[t]=e,u.loading(`Syncing ${t}…`,{id:e,duration:36e5})}function wt(t,e,s){const i=x[t];i&&(delete x[t],delete A[t],s?u.error(e,{id:i,duration:6e3}):u.success(e,{id:i,duration:4e3}))}function St(t){B=t}function Tt(t){R=t}function Et(t){W.push(t)}function bt(t){a?.readyState===WebSocket.OPEN&&a.send(JSON.stringify(t))}const Ht={get connected(){return g(k)},get lastAutoSaved(){return g(F)},get ws(){return a},connect:M,disconnect:ht,showToast:pt,showPersistentToast:mt,updateToast:yt,startSyncToast:gt,finishSyncToast:wt,send:bt,setPresenceHandler:St,setOnlineHandler:Tt,addConnectHandler:Et};export{Pt as S,d as a,Ct as c,lt as e,Ht as r,it as s,u as t,Dt as u};
@@ -1 +1 @@
1
- import{O as B,f as F,g as A,e as V,w as S,a as J,t as v,c as D,r as L,b as _,d as N,h as E,i as P,j as G,k as O,l as q,D as R,m as z}from"./CLFba8FK.js";import{r as M}from"./BoNse1V-.js";const b=3e4;class K extends B{constructor(n){super(),this.doc=n,this.clientID=n.clientID,this.states=new Map,this.meta=new Map,this._checkInterval=setInterval(()=>{const e=A();this.getLocalState()!==null&&b/2<=e-this.meta.get(this.clientID).lastUpdated&&this.setLocalState(this.getLocalState());const s=[];this.meta.forEach((a,c)=>{c!==this.clientID&&b<=e-a.lastUpdated&&this.states.has(c)&&s.push(c)}),s.length>0&&x(this,s,"timeout")},F(b/10)),n.on("destroy",()=>{this.destroy()}),this.setLocalState({})}destroy(){this.emit("destroy",[this]),this.setLocalState(null),super.destroy(),clearInterval(this._checkInterval)}getLocalState(){return this.states.get(this.clientID)||null}setLocalState(n){const e=this.clientID,s=this.meta.get(e),a=s===void 0?0:s.clock+1,c=this.states.get(e);n===null?this.states.delete(e):this.states.set(e,n),this.meta.set(e,{clock:a,lastUpdated:A()});const l=[],u=[],r=[],p=[];n===null?p.push(e):c==null?n!=null&&l.push(e):(u.push(e),V(c,n)||r.push(e)),(l.length>0||r.length>0||p.length>0)&&this.emit("change",[{added:l,updated:r,removed:p},"local"]),this.emit("update",[{added:l,updated:u,removed:p},"local"])}setLocalStateField(n,e){const s=this.getLocalState();s!==null&&this.setLocalState({...s,[n]:e})}getStates(){return this.states}}const x=(t,n,e)=>{const s=[];for(let a=0;a<n.length;a++){const c=n[a];if(t.states.has(c)){if(t.states.delete(c),c===t.clientID){const l=t.meta.get(c);t.meta.set(c,{clock:l.clock+1,lastUpdated:A()})}s.push(c)}}s.length>0&&(t.emit("change",[{added:[],updated:[],removed:s},e]),t.emit("update",[{added:[],updated:[],removed:s},e]))},Q=(t,n,e=t.states)=>{const s=n.length,a=D();S(a,s);for(let c=0;c<s;c++){const l=n[c],u=e.get(l)||null,r=t.meta.get(l).clock;S(a,l),S(a,r),J(a,JSON.stringify(u))}return v(a)},X=(t,n,e)=>{const s=N(n),a=A(),c=[],l=[],u=[],r=[],p=L(s);for(let m=0;m<p;m++){const d=L(s);let g=L(s);const h=JSON.parse(_(s)),y=t.meta.get(d),k=t.states.get(d),o=y===void 0?0:y.clock;(o<g||o===g&&h===null&&t.states.has(d))&&(h===null?d===t.clientID&&t.getLocalState()!=null?g++:t.states.delete(d):t.states.set(d,h),t.meta.set(d,{clock:g,lastUpdated:a}),y===void 0&&h!==null?c.push(d):y!==void 0&&h===null?r.push(d):h!==null&&(V(h,k)||u.push(d),l.push(d)))}(c.length>0||u.length>0||r.length>0)&&t.emit("change",[{added:c,updated:u,removed:r},e]),(c.length>0||l.length>0||r.length>0)&&t.emit("update",[{added:c,updated:l,removed:r},e])},W=0,j=1,C=2,Z=(t,n)=>{S(t,W);const e=P(n);E(t,e)},$=(t,n,e)=>{S(t,j),E(t,q(n,e))},H=(t,n,e)=>$(n,e,O(t)),Y=(t,n,e,s)=>{try{G(n,O(t),e)}catch(a){s?.(a),console.error("Caught error while handling a Yjs update",a)}},tt=(t,n)=>{S(t,C),E(t,n)},et=Y,nt=(t,n,e,s,a)=>{const c=L(t);switch(c){case W:H(t,n,e);break;case j:Y(t,e,s,a);break;case C:et(t,e,s,a);break;default:throw new Error("Unknown message type")}return c},U=0,T=1;function st(t,n,e){const s=new TextEncoder().encode(t),a=new ArrayBuffer(2+s.length+1+e.length);return new DataView(a).setUint16(0,s.length),new Uint8Array(a,2,s.length).set(s),new Uint8Array(a)[2+s.length]=n,new Uint8Array(a,2+s.length+1).set(e),a}function at(t){if(t.byteLength<3)return null;const e=new DataView(t).getUint16(0);if(t.byteLength<2+e+1)return null;const s=new TextDecoder().decode(new Uint8Array(t,2,e)),a=new Uint8Array(t)[2+e],c=new Uint8Array(t,2+e+1);return{docName:s,msgType:a,payload:c}}function lt(t,n){const e=new R,s=e.getText("content"),a=new K(e);a.setLocalStateField("user",{name:n.name,color:n.color,colorLight:n.colorLight??n.color+"33"});let c=null,l=!1;function u(){return M.ws??null}function r(o,f){const i=u();!i||i.readyState!==WebSocket.OPEN||i.send(st(t,o,f))}function p(){const o=D();Z(o,e),r(U,v(o))}function m(o){const f=o??[e.clientID],i=Q(a,f);r(T,i)}function d(o){if(l||typeof o.data=="string")return;const f=o.data instanceof ArrayBuffer?o.data:null;if(!f)return;const i=at(f);if(!(!i||i.docName!==t))if(i.msgType===U){const I=N(i.payload),w=D();nt(I,w,e,"ws-server"),z(w)>0&&r(U,v(w))}else i.msgType===T&&X(a,i.payload,"ws-server")}function g(o,f){if(l||f==="ws-server")return;const i=D();tt(i,o),r(U,v(i))}function h({added:o,updated:f,removed:i},I){if(l||I==="ws-server")return;const w=o.concat(f,i);m(w)}function y(){if(l)return;const o=u();!o||o.readyState!==WebSocket.OPEN||(o.send(JSON.stringify({type:"collab:join",docName:t})),c&&o.removeEventListener("message",c),c=d,o.addEventListener("message",c),p(),m())}e.on("update",g),a.on("update",h),y(),M.addConnectHandler(y);function k(){if(l)return;l=!0,x(a,[e.clientID],"local"),m([e.clientID]);const o=u();o&&o.readyState===WebSocket.OPEN&&o.send(JSON.stringify({type:"collab:leave",docName:t})),c&&o&&(o.removeEventListener("message",c),c=null),e.off("update",g),a.off("update",h),a.destroy(),e.destroy()}return{ydoc:e,ytext:s,awareness:a,destroy:k}}export{lt as createCollabSession};
1
+ import{O as B,f as F,g as A,e as V,w as S,a as J,t as v,c as D,r as L,b as _,d as N,h as E,i as P,j as G,k as O,l as q,D as R,m as z}from"./CLFba8FK.js";import{r as M}from"./Btdblixo.js";const b=3e4;class K extends B{constructor(n){super(),this.doc=n,this.clientID=n.clientID,this.states=new Map,this.meta=new Map,this._checkInterval=setInterval(()=>{const e=A();this.getLocalState()!==null&&b/2<=e-this.meta.get(this.clientID).lastUpdated&&this.setLocalState(this.getLocalState());const s=[];this.meta.forEach((a,c)=>{c!==this.clientID&&b<=e-a.lastUpdated&&this.states.has(c)&&s.push(c)}),s.length>0&&x(this,s,"timeout")},F(b/10)),n.on("destroy",()=>{this.destroy()}),this.setLocalState({})}destroy(){this.emit("destroy",[this]),this.setLocalState(null),super.destroy(),clearInterval(this._checkInterval)}getLocalState(){return this.states.get(this.clientID)||null}setLocalState(n){const e=this.clientID,s=this.meta.get(e),a=s===void 0?0:s.clock+1,c=this.states.get(e);n===null?this.states.delete(e):this.states.set(e,n),this.meta.set(e,{clock:a,lastUpdated:A()});const l=[],u=[],r=[],p=[];n===null?p.push(e):c==null?n!=null&&l.push(e):(u.push(e),V(c,n)||r.push(e)),(l.length>0||r.length>0||p.length>0)&&this.emit("change",[{added:l,updated:r,removed:p},"local"]),this.emit("update",[{added:l,updated:u,removed:p},"local"])}setLocalStateField(n,e){const s=this.getLocalState();s!==null&&this.setLocalState({...s,[n]:e})}getStates(){return this.states}}const x=(t,n,e)=>{const s=[];for(let a=0;a<n.length;a++){const c=n[a];if(t.states.has(c)){if(t.states.delete(c),c===t.clientID){const l=t.meta.get(c);t.meta.set(c,{clock:l.clock+1,lastUpdated:A()})}s.push(c)}}s.length>0&&(t.emit("change",[{added:[],updated:[],removed:s},e]),t.emit("update",[{added:[],updated:[],removed:s},e]))},Q=(t,n,e=t.states)=>{const s=n.length,a=D();S(a,s);for(let c=0;c<s;c++){const l=n[c],u=e.get(l)||null,r=t.meta.get(l).clock;S(a,l),S(a,r),J(a,JSON.stringify(u))}return v(a)},X=(t,n,e)=>{const s=N(n),a=A(),c=[],l=[],u=[],r=[],p=L(s);for(let m=0;m<p;m++){const d=L(s);let g=L(s);const h=JSON.parse(_(s)),y=t.meta.get(d),k=t.states.get(d),o=y===void 0?0:y.clock;(o<g||o===g&&h===null&&t.states.has(d))&&(h===null?d===t.clientID&&t.getLocalState()!=null?g++:t.states.delete(d):t.states.set(d,h),t.meta.set(d,{clock:g,lastUpdated:a}),y===void 0&&h!==null?c.push(d):y!==void 0&&h===null?r.push(d):h!==null&&(V(h,k)||u.push(d),l.push(d)))}(c.length>0||u.length>0||r.length>0)&&t.emit("change",[{added:c,updated:u,removed:r},e]),(c.length>0||l.length>0||r.length>0)&&t.emit("update",[{added:c,updated:l,removed:r},e])},W=0,j=1,C=2,Z=(t,n)=>{S(t,W);const e=P(n);E(t,e)},$=(t,n,e)=>{S(t,j),E(t,q(n,e))},H=(t,n,e)=>$(n,e,O(t)),Y=(t,n,e,s)=>{try{G(n,O(t),e)}catch(a){s?.(a),console.error("Caught error while handling a Yjs update",a)}},tt=(t,n)=>{S(t,C),E(t,n)},et=Y,nt=(t,n,e,s,a)=>{const c=L(t);switch(c){case W:H(t,n,e);break;case j:Y(t,e,s,a);break;case C:et(t,e,s,a);break;default:throw new Error("Unknown message type")}return c},U=0,T=1;function st(t,n,e){const s=new TextEncoder().encode(t),a=new ArrayBuffer(2+s.length+1+e.length);return new DataView(a).setUint16(0,s.length),new Uint8Array(a,2,s.length).set(s),new Uint8Array(a)[2+s.length]=n,new Uint8Array(a,2+s.length+1).set(e),a}function at(t){if(t.byteLength<3)return null;const e=new DataView(t).getUint16(0);if(t.byteLength<2+e+1)return null;const s=new TextDecoder().decode(new Uint8Array(t,2,e)),a=new Uint8Array(t)[2+e],c=new Uint8Array(t,2+e+1);return{docName:s,msgType:a,payload:c}}function lt(t,n){const e=new R,s=e.getText("content"),a=new K(e);a.setLocalStateField("user",{name:n.name,color:n.color,colorLight:n.colorLight??n.color+"33"});let c=null,l=!1;function u(){return M.ws??null}function r(o,f){const i=u();!i||i.readyState!==WebSocket.OPEN||i.send(st(t,o,f))}function p(){const o=D();Z(o,e),r(U,v(o))}function m(o){const f=o??[e.clientID],i=Q(a,f);r(T,i)}function d(o){if(l||typeof o.data=="string")return;const f=o.data instanceof ArrayBuffer?o.data:null;if(!f)return;const i=at(f);if(!(!i||i.docName!==t))if(i.msgType===U){const I=N(i.payload),w=D();nt(I,w,e,"ws-server"),z(w)>0&&r(U,v(w))}else i.msgType===T&&X(a,i.payload,"ws-server")}function g(o,f){if(l||f==="ws-server")return;const i=D();tt(i,o),r(U,v(i))}function h({added:o,updated:f,removed:i},I){if(l||I==="ws-server")return;const w=o.concat(f,i);m(w)}function y(){if(l)return;const o=u();!o||o.readyState!==WebSocket.OPEN||(o.send(JSON.stringify({type:"collab:join",docName:t})),c&&o.removeEventListener("message",c),c=d,o.addEventListener("message",c),p(),m())}e.on("update",g),a.on("update",h),y(),M.addConnectHandler(y);function k(){if(l)return;l=!0,x(a,[e.clientID],"local"),m([e.clientID]);const o=u();o&&o.readyState===WebSocket.OPEN&&o.send(JSON.stringify({type:"collab:leave",docName:t})),c&&o&&(o.removeEventListener("message",c),c=null),e.off("update",g),a.off("update",h),a.destroy(),e.destroy()}return{ydoc:e,ytext:s,awareness:a,destroy:k}}export{lt as createCollabSession};
@@ -1 +1 @@
1
- import{s as A}from"./CULlunSW.js";import{a as f,s as M,f as x}from"./BdF6nRVd.js";import{i as k}from"./faGDeGnG.js";import{p as B,l as u,s as b,d as p,g as o,a as C,c as g,n as N,r as m,b as P,m as _,t as R}from"./sZJoCX5N.js";import{i as S}from"./BSSN_IAc.js";import{a as Y}from"./BKUmpdNY.js";import{l as v,p as h}from"./DNrFMx27.js";const j=()=>{const e=A;return{page:{subscribe:e.page.subscribe},navigating:{subscribe:e.navigating.subscribe},updated:e.updated}},L={subscribe(e){return j().page.subscribe(e)}};var q=x("<title> </title>"),D=x('<svg><!><path d="M17 15 17 8 15 8 15 15 8 15 8 17 15 17 15 24 17 24 17 17 24 17 24 15z"></path></svg>');function O(e,s){const t=v(s,["children","$$slots","$$events","$$legacy"]),w=v(t,["size","title"]);B(s,!1);const a=_(),c=_();let d=h(s,"size",8,16),r=h(s,"title",8,void 0);u(()=>(p(t),p(r())),()=>{b(a,t["aria-label"]||t["aria-labelledby"]||r())}),u(()=>(o(a),p(t)),()=>{b(c,{"aria-hidden":o(a)?void 0:!0,role:o(a)?"img":void 0,focusable:Number(t.tabindex)===0?!0:void 0})}),C(),k();var i=D();Y(i,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:d(),height:d(),...o(c),...w}));var y=g(i);{var z=n=>{var l=q(),$=g(l,!0);m(l),R(()=>M($,r())),f(n,l)};S(y,n=>{r()&&n(z)})}N(),m(i),f(e,i),P()}export{O as A,L as p};
1
+ import{s as A}from"./oTvbmuuZ.js";import{a as f,s as M,f as x}from"./BdF6nRVd.js";import{i as k}from"./faGDeGnG.js";import{p as B,l as u,s as b,d as p,g as o,a as C,c as g,n as N,r as m,b as P,m as _,t as R}from"./sZJoCX5N.js";import{i as S}from"./BSSN_IAc.js";import{a as Y}from"./BKUmpdNY.js";import{l as v,p as h}from"./DNrFMx27.js";const j=()=>{const e=A;return{page:{subscribe:e.page.subscribe},navigating:{subscribe:e.navigating.subscribe},updated:e.updated}},L={subscribe(e){return j().page.subscribe(e)}};var q=x("<title> </title>"),D=x('<svg><!><path d="M17 15 17 8 15 8 15 15 8 15 8 17 15 17 15 24 17 24 17 17 24 17 24 15z"></path></svg>');function O(e,s){const t=v(s,["children","$$slots","$$events","$$legacy"]),w=v(t,["size","title"]);B(s,!1);const a=_(),c=_();let d=h(s,"size",8,16),r=h(s,"title",8,void 0);u(()=>(p(t),p(r())),()=>{b(a,t["aria-label"]||t["aria-labelledby"]||r())}),u(()=>(o(a),p(t)),()=>{b(c,{"aria-hidden":o(a)?void 0:!0,role:o(a)?"img":void 0,focusable:Number(t.tabindex)===0?!0:void 0})}),C(),k();var i=D();Y(i,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:d(),height:d(),...o(c),...w}));var y=g(i);{var z=n=>{var l=q(),$=g(l,!0);m(l),R(()=>M($,r())),f(n,l)};S(y,n=>{r()&&n(z)})}N(),m(i),f(e,i),P()}export{O as A,L as p};
@@ -1 +1 @@
1
- import{c as K,a as u,p as oe,b as q,s as ue,f as Ae,t as ve}from"./BdF6nRVd.js";import{p as $,a0 as O,ae as X,b as ee,g as l,c as D,r as L,a4 as I,e as Re,f as ke,s as be,l as we,d as ye,a as De,n as ce,m as Ce,t as fe,a3 as Pe}from"./sZJoCX5N.js";import{s as x,a as U}from"./BKUmpdNY.js";import{i as Y}from"./BSSN_IAc.js";import{p as r,r as ae,s as pe,l as Se}from"./DNrFMx27.js";import{n as k,M as Le,f as h,p as Ke,j as se,y as Te,m as Q,z as He,B as Ie,k as xe,l as Ee,G as Ne,H as Ue,I as ze,o as ge,J as je,F as Be,K as Ve,L as Ze,N as We,O as Ye,A as qe,q as Ge,r as Je,s as Qe,t as Xe,u as $e,v as et,x as tt}from"./BdOJnB5W.js";import{r as Me}from"./BoNse1V-.js";import{i as rt}from"./faGDeGnG.js";import{c as re}from"./4uEV2Hr-.js";import{a as Fe}from"./9rXsO0Bz.js";function nt(v,e){$(e,!0);let c=r(e,"open",15,!1),y=r(e,"onOpenChange",3,k),m=r(e,"onOpenChangeComplete",3,k);Le.create({open:h(()=>c(),f=>{c(f),y()?.(f)}),onOpenChangeComplete:h(()=>m())}),Ke(v,{children:(f,F)=>{var P=K(),g=O(P);x(g,()=>e.children??X),u(f,P)},$$slots:{default:!0}}),ee()}var ot=q("<div><!></div>");function at(v,e){const c=oe();$(e,!0);let y=r(e,"ref",15,null),m=r(e,"id",19,()=>se(c)),f=r(e,"disabled",3,!1),F=r(e,"onSelect",3,k),P=r(e,"closeOnSelect",3,!0),g=ae(e,["$$slots","$$events","$$legacy","child","children","ref","id","disabled","onSelect","closeOnSelect"]);const C=Te.create({id:h(()=>m()),disabled:h(()=>f()),onSelect:h(()=>F()),ref:h(()=>y(),n=>y(n)),closeOnSelect:h(()=>P())}),p=I(()=>Q(g,C.props));var A=K(),i=O(A);{var t=n=>{var d=K(),o=O(d);x(o,()=>e.child,()=>({props:l(p)})),u(n,d)},a=n=>{var d=ot();U(d,()=>({...l(p)}));var o=D(d);x(o,()=>e.children??X),L(d),u(n,d)};Y(i,n=>{e.child?n(t):n(a,!1)})}u(v,A),ee()}var st=q("<div><!></div>");function lt(v,e){const c=oe();$(e,!0);let y=r(e,"ref",15,null),m=r(e,"id",19,()=>se(c)),f=ae(e,["$$slots","$$events","$$legacy","ref","id","child","children"]);const F=He.create({id:h(()=>m()),ref:h(()=>y(),i=>y(i))}),P=I(()=>Q(f,F.props));var g=K(),C=O(g);{var p=i=>{var t=K(),a=O(t);x(a,()=>e.child,()=>({props:l(P)})),u(i,t)},A=i=>{var t=st();U(t,()=>({...l(P)}));var a=D(t);x(a,()=>e.children??X),L(t),u(i,t)};Y(C,i=>{e.child?i(p):i(A,!1)})}u(v,g),ee()}var it=q("<div><div><!></div></div>"),dt=q("<div><div><!></div></div>");function ut(v,e){const c=oe();$(e,!0);let y=r(e,"id",19,()=>se(c)),m=r(e,"ref",15,null),f=r(e,"loop",3,!0),F=r(e,"onInteractOutside",3,k),P=r(e,"forceMount",3,!1),g=r(e,"onEscapeKeydown",3,k),C=r(e,"interactOutsideBehavior",3,"defer-otherwise-close"),p=r(e,"escapeKeydownBehavior",3,"defer-otherwise-close"),A=r(e,"onOpenAutoFocus",3,k),i=r(e,"onCloseAutoFocus",3,k),t=r(e,"onFocusOutside",3,k),a=r(e,"side",3,"right"),n=r(e,"trapFocus",3,!1),d=ae(e,["$$slots","$$events","$$legacy","id","ref","children","child","loop","onInteractOutside","forceMount","onEscapeKeydown","interactOutsideBehavior","escapeKeydownBehavior","onOpenAutoFocus","onCloseAutoFocus","onFocusOutside","side","trapFocus","style"]);const o=Ie.create({id:h(()=>y()),loop:h(()=>f()),ref:h(()=>m(),s=>m(s)),isSub:!0,onCloseAutoFocus:h(()=>J)});function M(s){const S=s.currentTarget.contains(s.target),_=ze[o.parentMenu.root.opts.dir.current].includes(s.key);S&&_&&(o.parentMenu.onClose(),o.parentMenu.triggerNode?.focus(),s.preventDefault())}const z=I(()=>o.parentMenu.root.getBitsAttr("sub-content")),b=I(()=>Q(d,o.props,{side:a(),onkeydown:M,[l(z)]:""}));function G(s){A()(s),!s.defaultPrevented&&(s.preventDefault(),o.parentMenu.root.isUsingKeyboard&&o.parentMenu.contentNode&&Ue.dispatch(o.parentMenu.contentNode))}function J(s){i()(s),!s.defaultPrevented&&s.preventDefault()}function j(s){F()(s),!s.defaultPrevented&&o.parentMenu.onClose()}function te(s){g()(s),!s.defaultPrevented&&o.parentMenu.onClose()}function B(s){t()(s),!s.defaultPrevented&&Ne(s.target)&&s.target.id!==o.parentMenu.triggerNode?.id&&o.parentMenu.onClose()}var R=K(),V=O(R);{var T=s=>{xe(s,pe(()=>l(b),{get ref(){return o.opts.ref},get interactOutsideBehavior(){return C()},get escapeKeydownBehavior(){return p()},onOpenAutoFocus:G,get enabled(){return o.parentMenu.opts.open.current},onInteractOutside:j,onEscapeKeydown:te,onFocusOutside:B,preventScroll:!1,get loop(){return f()},get trapFocus(){return n()},get shouldRender(){return o.shouldRender},popper:(_,w)=>{let Z=()=>w?.().props,le=()=>w?.().wrapperProps;const ie=I(()=>Q(Z(),l(b),{style:ge("menu")},{style:e.style}));var de=K(),_e=O(de);{var he=N=>{var E=K(),W=O(E);{let ne=I(()=>({props:l(ie),wrapperProps:le(),...o.snippetProps}));x(W,()=>e.child,()=>l(ne))}u(N,E)},me=N=>{var E=it();U(E,()=>({...le()}));var W=D(E);U(W,()=>({...l(ie)}));var ne=D(W);x(ne,()=>e.children??X),L(W),L(E),u(N,E)};Y(_e,N=>{e.child?N(he):N(me,!1)})}u(_,de)},$$slots:{popper:!0}}))},H=s=>{Ee(s,pe(()=>l(b),{get ref(){return o.opts.ref},get interactOutsideBehavior(){return C()},get escapeKeydownBehavior(){return p()},onCloseAutoFocus:J,onOpenAutoFocus:G,get open(){return o.parentMenu.opts.open.current},onInteractOutside:j,onEscapeKeydown:te,onFocusOutside:B,preventScroll:!1,get loop(){return f()},get trapFocus(){return n()},get shouldRender(){return o.shouldRender},popper:(_,w)=>{let Z=()=>w?.().props,le=()=>w?.().wrapperProps;const ie=I(()=>Q(Z(),l(b),{style:ge("menu")},{style:e.style}));var de=K(),_e=O(de);{var he=N=>{var E=K(),W=O(E);{let ne=I(()=>({props:l(ie),wrapperProps:le(),...o.snippetProps}));x(W,()=>e.child,()=>l(ne))}u(N,E)},me=N=>{var E=dt();U(E,()=>({...le()}));var W=D(E);U(W,()=>({...l(ie)}));var ne=D(W);x(ne,()=>e.children??X),L(W),L(E),u(N,E)};Y(_e,N=>{e.child?N(he):N(me,!1)})}u(_,de)},$$slots:{popper:!0}}))};Y(V,s=>{P()?s(T):P()||s(H,1)})}u(v,R),ee()}var ct=q("<div><!></div>");function ft(v,e){const c=oe();$(e,!0);let y=r(e,"id",19,()=>se(c)),m=r(e,"disabled",3,!1),f=r(e,"ref",15,null),F=r(e,"onSelect",3,k),P=r(e,"openDelay",3,100),g=ae(e,["$$slots","$$events","$$legacy","id","disabled","ref","children","child","onSelect","openDelay"]);const C=je.create({disabled:h(()=>m()),onSelect:h(()=>F()),id:h(()=>y()),ref:h(()=>f(),A=>f(A)),openDelay:h(()=>P())}),p=I(()=>Q(g,C.props));Be(v,{get id(){return y()},get ref(){return C.opts.ref},children:(A,i)=>{var t=K(),a=O(t);{var n=o=>{var M=K(),z=O(M);x(z,()=>e.child,()=>({props:l(p)})),u(o,M)},d=o=>{var M=ct();U(M,()=>({...l(p)}));var z=D(M);x(z,()=>e.children??X),L(M),u(o,M)};Y(a,o=>{e.child?o(n):o(d,!1)})}u(A,t)},$$slots:{default:!0}}),ee()}function vt(v,e){$(e,!0);let c=r(e,"open",15,!1),y=r(e,"dir",3,"ltr"),m=r(e,"onOpenChange",3,k),f=r(e,"onOpenChangeComplete",3,k),F=r(e,"_internal_variant",3,"dropdown-menu");const P=Ve.create({variant:h(()=>F()),dir:h(()=>y()),onClose:()=>{c(!1),m()(!1)}});Ze.create({open:h(()=>c(),g=>{c(g),m()(g)}),onOpenChangeComplete:h(()=>f())},P),Ke(v,{children:(g,C)=>{var p=K(),A=O(p);x(A,()=>e.children??X),u(g,p)},$$slots:{default:!0}}),ee()}var pt=q("<div><div><!></div></div>"),gt=q("<div><div><!></div></div>");function _t(v,e){const c=oe();$(e,!0);let y=r(e,"id",19,()=>se(c)),m=r(e,"ref",15,null),f=r(e,"loop",3,!0),F=r(e,"onInteractOutside",3,k),P=r(e,"onEscapeKeydown",3,k),g=r(e,"onCloseAutoFocus",3,k),C=r(e,"forceMount",3,!1),p=r(e,"trapFocus",3,!1),A=ae(e,["$$slots","$$events","$$legacy","id","child","children","ref","loop","onInteractOutside","onEscapeKeydown","onCloseAutoFocus","forceMount","trapFocus","style"]);const i=Ie.create({id:h(()=>y()),loop:h(()=>f()),ref:h(()=>m(),b=>m(b)),onCloseAutoFocus:h(()=>g())}),t=I(()=>Q(A,i.props));function a(b){if(i.handleInteractOutside(b),!b.defaultPrevented&&(F()(b),!b.defaultPrevented)){if(b.target&&b.target instanceof Element){const G=`[${i.parentMenu.root.getBitsAttr("sub-content")}]`;if(b.target.closest(G))return}i.parentMenu.onClose()}}function n(b){P()(b),!b.defaultPrevented&&i.parentMenu.onClose()}var d=K(),o=O(d);{var M=b=>{xe(b,pe(()=>l(t),()=>i.popperProps,{get ref(){return i.opts.ref},get enabled(){return i.parentMenu.opts.open.current},onInteractOutside:a,onEscapeKeydown:n,get trapFocus(){return p()},get loop(){return f()},forceMount:!0,get id(){return y()},get shouldRender(){return i.shouldRender},popper:(J,j)=>{let te=()=>j?.().props,B=()=>j?.().wrapperProps;const R=I(()=>Q(te(),{style:ge("dropdown-menu")},{style:e.style}));var V=K(),T=O(V);{var H=S=>{var _=K(),w=O(_);{let Z=I(()=>({props:l(R),wrapperProps:B(),...i.snippetProps}));x(w,()=>e.child,()=>l(Z))}u(S,_)},s=S=>{var _=pt();U(_,()=>({...B()}));var w=D(_);U(w,()=>({...l(R)}));var Z=D(w);x(Z,()=>e.children??X),L(w),L(_),u(S,_)};Y(T,S=>{e.child?S(H):S(s,!1)})}u(J,V)},$$slots:{popper:!0}}))},z=b=>{Ee(b,pe(()=>l(t),()=>i.popperProps,{get ref(){return i.opts.ref},get open(){return i.parentMenu.opts.open.current},onInteractOutside:a,onEscapeKeydown:n,get trapFocus(){return p()},get loop(){return f()},forceMount:!1,get id(){return y()},get shouldRender(){return i.shouldRender},popper:(J,j)=>{let te=()=>j?.().props,B=()=>j?.().wrapperProps;const R=I(()=>Q(te(),{style:ge("dropdown-menu")},{style:e.style}));var V=K(),T=O(V);{var H=S=>{var _=K(),w=O(_);{let Z=I(()=>({props:l(R),wrapperProps:B(),...i.snippetProps}));x(w,()=>e.child,()=>l(Z))}u(S,_)},s=S=>{var _=gt();U(_,()=>({...B()}));var w=D(_);U(w,()=>({...l(R)}));var Z=D(w);x(Z,()=>e.children??X),L(w),L(_),u(S,_)};Y(T,S=>{e.child?S(H):S(s,!1)})}u(J,V)},$$slots:{popper:!0}}))};Y(o,b=>{C()?b(M):C()||b(z,1)})}u(v,d),ee()}var ht=q("<button><!></button>");function mt(v,e){const c=oe();$(e,!0);let y=r(e,"id",19,()=>se(c)),m=r(e,"ref",15,null),f=r(e,"disabled",3,!1),F=r(e,"type",3,"button"),P=ae(e,["$$slots","$$events","$$legacy","id","ref","child","children","disabled","type"]);const g=We.create({id:h(()=>y()),disabled:h(()=>f()??!1),ref:h(()=>m(),p=>m(p))}),C=I(()=>Q(P,g.props,{type:F()}));Be(v,{get id(){return y()},get ref(){return g.opts.ref},children:(p,A)=>{var i=K(),t=O(i);{var a=d=>{var o=K(),M=O(o);x(M,()=>e.child,()=>({props:l(C)})),u(d,o)},n=d=>{var o=ht();U(o,()=>({...l(C)}));var M=D(o);x(M,()=>e.children??X),L(o),u(d,o)};Y(t,d=>{e.child?d(a):d(n,!1)})}u(p,i)},$$slots:{default:!0}}),ee()}const kt=vt,Dt=mt,Lt=Ye,Tt=_t,Ht=at,Nt=lt,Ut=nt,zt=ft,jt=ut;function yt(){let v=Re(ke({})),e=null,c=null;function y(t,a,n){c&&(clearInterval(c),c=null),e=`${t}/${a}/${n}`,f("enter",t,a,n),c=setInterval(()=>{e&&f("heartbeat",t,a,n)},3e4)}function m(){if(c&&(clearInterval(c),c=null),e){const[t,a,n]=e.split("/");t&&a&&n&&f("leave",t,a,n),e=null}}function f(t,a,n,d){Me.send({type:"presence",action:t,repo:a,entityType:n,entityId:d})}function F(t){const a=`${t.repo}/${t.entityType}/${t.entityId}`,n=l(v)[a]??[];if(t.action==="leave")l(v)[a]=n.filter(d=>d.id!==t.user.id);else{const d=n.findIndex(o=>o.id===t.user.id);d>=0?(n[d]=t.user,l(v)[a]=[...n]):l(v)[a]=[...n,t.user]}}function P(){if(be(v,{},!0),!e)return;const[t,a,n]=e.split("/");t&&a&&n&&f("enter",t,a,n)}function g(t,a,n,d){const o=`${t}/${a}/${n}`,M=l(v)[o]??[];return d?M.filter(z=>z.id!==d):M}function C(t,a){const n=new Map;for(const[d,o]of Object.entries(l(v)))if(d.startsWith(t))for(const M of o)(!a||M.id!==a)&&n.set(M.id,M);return[...n.values()]}function p(t,a){return C(`${t}/`,a)}function A(t){const a=new Map;for(const n of Object.values(l(v)))for(const d of n)(!t||d.id!==t)&&a.set(d.id,d);return[...a.values()]}const i=I(()=>{const t=new Map;for(const a of Object.values(l(v)))for(const n of a)t.set(n.id,n);return[...t.values()]});return{enter:y,leave:m,handlePresenceEvent:F,resetAndResend:P,getPresence:g,getPresenceByPrefix:C,getRepoPresence:p,getAllUsers:A,get allUsers(){return l(i)}}}const Oe=yt();Me.setPresenceHandler(v=>Oe.handlePresenceEvent(v));Me.addConnectHandler(()=>Oe.resetAndResend());typeof window<"u"&&window.addEventListener("beforeunload",()=>Oe.leave());var Pt=Ae("<title> </title>"),bt=Ae('<svg><!><path d="M25,12H20v2h5a1.0008,1.0008,0,0,1,1,1v2H22a3.0033,3.0033,0,0,0-3,3v1a3.0033,3.0033,0,0,0,3,3h6V15A3.0033,3.0033,0,0,0,25,12ZM22,22a1.0008,1.0008,0,0,1-1-1V20a1.0008,1.0008,0,0,1,1-1h4v3Z"></path><path d="M16,24h2L12,7H10L4,24H6l1.6936-5h6.6135ZM8.3711,17l2.4966-7.3711.2668.0005L13.63,17Z"></path></svg>');function Vt(v,e){const c=Se(e,["children","$$slots","$$events","$$legacy"]),y=Se(c,["size","title"]);$(e,!1);const m=Ce(),f=Ce();let F=r(e,"size",8,16),P=r(e,"title",8,void 0);we(()=>(ye(c),ye(P())),()=>{be(m,c["aria-label"]||c["aria-labelledby"]||P())}),we(()=>(l(m),ye(c)),()=>{be(f,{"aria-hidden":l(m)?void 0:!0,role:l(m)?"img":void 0,focusable:Number(c.tabindex)===0?!0:void 0})}),De(),rt();var g=bt();U(g,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:F(),height:F(),...l(f),...y}));var C=D(g);{var p=A=>{var i=Pt(),t=D(i,!0);L(i),fe(()=>ue(t,P())),u(A,i)};Y(C,A=>{P()&&A(p)})}ce(2),L(g),u(v,g),ee()}var Mt=q("<!> <!>",1),Ot=q("<!> <!>",1),wt=q("<!> <!>",1);function Zt(v,e){$(e,!0);let c=r(e,"open",15),y=r(e,"confirmLabel",3,"Confirm"),m=r(e,"cancelLabel",3,"Cancel"),f=r(e,"destructive",3,!1);var F=K(),P=O(F);re(P,()=>tt,(g,C)=>{C(g,{onOpenChange:p=>{p||e.oncancel()},get open(){return c()},set open(p){c(p)},children:(p,A)=>{var i=K(),t=O(i);re(t,()=>qe,(a,n)=>{n(a,{children:(d,o)=>{var M=wt(),z=O(M);re(z,()=>Ge,(G,J)=>{J(G,{children:(j,te)=>{var B=Mt(),R=O(B);re(R,()=>Je,(T,H)=>{H(T,{children:(s,S)=>{ce();var _=ve();fe(()=>ue(_,e.title)),u(s,_)},$$slots:{default:!0}})});var V=Pe(R,2);re(V,()=>Qe,(T,H)=>{H(T,{children:(s,S)=>{ce();var _=ve();fe(()=>ue(_,e.message)),u(s,_)},$$slots:{default:!0}})}),u(j,B)},$$slots:{default:!0}})});var b=Pe(z,2);re(b,()=>Xe,(G,J)=>{J(G,{children:(j,te)=>{var B=Ot(),R=O(B);{let T=I(()=>Fe({variant:"ghost"}));re(R,()=>$e,(H,s)=>{s(H,{get class(){return l(T)},get onclick(){return e.oncancel},children:(S,_)=>{ce();var w=ve();fe(()=>ue(w,m())),u(S,w)},$$slots:{default:!0}})})}var V=Pe(R,2);{let T=I(()=>Fe({variant:f()?"destructive":"accent"}));re(V,()=>et,(H,s)=>{s(H,{get class(){return l(T)},get onclick(){return e.onconfirm},children:(S,_)=>{ce();var w=ve();fe(()=>ue(w,y())),u(S,w)},$$slots:{default:!0}})})}u(j,B)},$$slots:{default:!0}})}),u(d,M)},$$slots:{default:!0}})}),u(p,i)},$$slots:{default:!0}})}),u(v,F),ee()}export{Tt as C,Ht as I,Lt as P,kt as R,Nt as S,Dt as T,Vt as a,Zt as b,Ut as c,zt as d,jt as e,Oe as p};
1
+ import{c as K,a as u,p as oe,b as q,s as ue,f as Ae,t as ve}from"./BdF6nRVd.js";import{p as $,a0 as O,ae as X,b as ee,g as l,c as D,r as L,a4 as I,e as Re,f as ke,s as be,l as we,d as ye,a as De,n as ce,m as Ce,t as fe,a3 as Pe}from"./sZJoCX5N.js";import{s as x,a as U}from"./BKUmpdNY.js";import{i as Y}from"./BSSN_IAc.js";import{p as r,r as ae,s as pe,l as Se}from"./DNrFMx27.js";import{n as k,M as Le,f as h,p as Ke,j as se,y as Te,m as Q,z as He,B as Ie,k as xe,l as Ee,G as Ne,H as Ue,I as ze,o as ge,J as je,F as Be,K as Ve,L as Ze,N as We,O as Ye,A as qe,q as Ge,r as Je,s as Qe,t as Xe,u as $e,v as et,x as tt}from"./BdOJnB5W.js";import{r as Me}from"./Btdblixo.js";import{i as rt}from"./faGDeGnG.js";import{c as re}from"./4uEV2Hr-.js";import{a as Fe}from"./9rXsO0Bz.js";function nt(v,e){$(e,!0);let c=r(e,"open",15,!1),y=r(e,"onOpenChange",3,k),m=r(e,"onOpenChangeComplete",3,k);Le.create({open:h(()=>c(),f=>{c(f),y()?.(f)}),onOpenChangeComplete:h(()=>m())}),Ke(v,{children:(f,F)=>{var P=K(),g=O(P);x(g,()=>e.children??X),u(f,P)},$$slots:{default:!0}}),ee()}var ot=q("<div><!></div>");function at(v,e){const c=oe();$(e,!0);let y=r(e,"ref",15,null),m=r(e,"id",19,()=>se(c)),f=r(e,"disabled",3,!1),F=r(e,"onSelect",3,k),P=r(e,"closeOnSelect",3,!0),g=ae(e,["$$slots","$$events","$$legacy","child","children","ref","id","disabled","onSelect","closeOnSelect"]);const C=Te.create({id:h(()=>m()),disabled:h(()=>f()),onSelect:h(()=>F()),ref:h(()=>y(),n=>y(n)),closeOnSelect:h(()=>P())}),p=I(()=>Q(g,C.props));var A=K(),i=O(A);{var t=n=>{var d=K(),o=O(d);x(o,()=>e.child,()=>({props:l(p)})),u(n,d)},a=n=>{var d=ot();U(d,()=>({...l(p)}));var o=D(d);x(o,()=>e.children??X),L(d),u(n,d)};Y(i,n=>{e.child?n(t):n(a,!1)})}u(v,A),ee()}var st=q("<div><!></div>");function lt(v,e){const c=oe();$(e,!0);let y=r(e,"ref",15,null),m=r(e,"id",19,()=>se(c)),f=ae(e,["$$slots","$$events","$$legacy","ref","id","child","children"]);const F=He.create({id:h(()=>m()),ref:h(()=>y(),i=>y(i))}),P=I(()=>Q(f,F.props));var g=K(),C=O(g);{var p=i=>{var t=K(),a=O(t);x(a,()=>e.child,()=>({props:l(P)})),u(i,t)},A=i=>{var t=st();U(t,()=>({...l(P)}));var a=D(t);x(a,()=>e.children??X),L(t),u(i,t)};Y(C,i=>{e.child?i(p):i(A,!1)})}u(v,g),ee()}var it=q("<div><div><!></div></div>"),dt=q("<div><div><!></div></div>");function ut(v,e){const c=oe();$(e,!0);let y=r(e,"id",19,()=>se(c)),m=r(e,"ref",15,null),f=r(e,"loop",3,!0),F=r(e,"onInteractOutside",3,k),P=r(e,"forceMount",3,!1),g=r(e,"onEscapeKeydown",3,k),C=r(e,"interactOutsideBehavior",3,"defer-otherwise-close"),p=r(e,"escapeKeydownBehavior",3,"defer-otherwise-close"),A=r(e,"onOpenAutoFocus",3,k),i=r(e,"onCloseAutoFocus",3,k),t=r(e,"onFocusOutside",3,k),a=r(e,"side",3,"right"),n=r(e,"trapFocus",3,!1),d=ae(e,["$$slots","$$events","$$legacy","id","ref","children","child","loop","onInteractOutside","forceMount","onEscapeKeydown","interactOutsideBehavior","escapeKeydownBehavior","onOpenAutoFocus","onCloseAutoFocus","onFocusOutside","side","trapFocus","style"]);const o=Ie.create({id:h(()=>y()),loop:h(()=>f()),ref:h(()=>m(),s=>m(s)),isSub:!0,onCloseAutoFocus:h(()=>J)});function M(s){const S=s.currentTarget.contains(s.target),_=ze[o.parentMenu.root.opts.dir.current].includes(s.key);S&&_&&(o.parentMenu.onClose(),o.parentMenu.triggerNode?.focus(),s.preventDefault())}const z=I(()=>o.parentMenu.root.getBitsAttr("sub-content")),b=I(()=>Q(d,o.props,{side:a(),onkeydown:M,[l(z)]:""}));function G(s){A()(s),!s.defaultPrevented&&(s.preventDefault(),o.parentMenu.root.isUsingKeyboard&&o.parentMenu.contentNode&&Ue.dispatch(o.parentMenu.contentNode))}function J(s){i()(s),!s.defaultPrevented&&s.preventDefault()}function j(s){F()(s),!s.defaultPrevented&&o.parentMenu.onClose()}function te(s){g()(s),!s.defaultPrevented&&o.parentMenu.onClose()}function B(s){t()(s),!s.defaultPrevented&&Ne(s.target)&&s.target.id!==o.parentMenu.triggerNode?.id&&o.parentMenu.onClose()}var R=K(),V=O(R);{var T=s=>{xe(s,pe(()=>l(b),{get ref(){return o.opts.ref},get interactOutsideBehavior(){return C()},get escapeKeydownBehavior(){return p()},onOpenAutoFocus:G,get enabled(){return o.parentMenu.opts.open.current},onInteractOutside:j,onEscapeKeydown:te,onFocusOutside:B,preventScroll:!1,get loop(){return f()},get trapFocus(){return n()},get shouldRender(){return o.shouldRender},popper:(_,w)=>{let Z=()=>w?.().props,le=()=>w?.().wrapperProps;const ie=I(()=>Q(Z(),l(b),{style:ge("menu")},{style:e.style}));var de=K(),_e=O(de);{var he=N=>{var E=K(),W=O(E);{let ne=I(()=>({props:l(ie),wrapperProps:le(),...o.snippetProps}));x(W,()=>e.child,()=>l(ne))}u(N,E)},me=N=>{var E=it();U(E,()=>({...le()}));var W=D(E);U(W,()=>({...l(ie)}));var ne=D(W);x(ne,()=>e.children??X),L(W),L(E),u(N,E)};Y(_e,N=>{e.child?N(he):N(me,!1)})}u(_,de)},$$slots:{popper:!0}}))},H=s=>{Ee(s,pe(()=>l(b),{get ref(){return o.opts.ref},get interactOutsideBehavior(){return C()},get escapeKeydownBehavior(){return p()},onCloseAutoFocus:J,onOpenAutoFocus:G,get open(){return o.parentMenu.opts.open.current},onInteractOutside:j,onEscapeKeydown:te,onFocusOutside:B,preventScroll:!1,get loop(){return f()},get trapFocus(){return n()},get shouldRender(){return o.shouldRender},popper:(_,w)=>{let Z=()=>w?.().props,le=()=>w?.().wrapperProps;const ie=I(()=>Q(Z(),l(b),{style:ge("menu")},{style:e.style}));var de=K(),_e=O(de);{var he=N=>{var E=K(),W=O(E);{let ne=I(()=>({props:l(ie),wrapperProps:le(),...o.snippetProps}));x(W,()=>e.child,()=>l(ne))}u(N,E)},me=N=>{var E=dt();U(E,()=>({...le()}));var W=D(E);U(W,()=>({...l(ie)}));var ne=D(W);x(ne,()=>e.children??X),L(W),L(E),u(N,E)};Y(_e,N=>{e.child?N(he):N(me,!1)})}u(_,de)},$$slots:{popper:!0}}))};Y(V,s=>{P()?s(T):P()||s(H,1)})}u(v,R),ee()}var ct=q("<div><!></div>");function ft(v,e){const c=oe();$(e,!0);let y=r(e,"id",19,()=>se(c)),m=r(e,"disabled",3,!1),f=r(e,"ref",15,null),F=r(e,"onSelect",3,k),P=r(e,"openDelay",3,100),g=ae(e,["$$slots","$$events","$$legacy","id","disabled","ref","children","child","onSelect","openDelay"]);const C=je.create({disabled:h(()=>m()),onSelect:h(()=>F()),id:h(()=>y()),ref:h(()=>f(),A=>f(A)),openDelay:h(()=>P())}),p=I(()=>Q(g,C.props));Be(v,{get id(){return y()},get ref(){return C.opts.ref},children:(A,i)=>{var t=K(),a=O(t);{var n=o=>{var M=K(),z=O(M);x(z,()=>e.child,()=>({props:l(p)})),u(o,M)},d=o=>{var M=ct();U(M,()=>({...l(p)}));var z=D(M);x(z,()=>e.children??X),L(M),u(o,M)};Y(a,o=>{e.child?o(n):o(d,!1)})}u(A,t)},$$slots:{default:!0}}),ee()}function vt(v,e){$(e,!0);let c=r(e,"open",15,!1),y=r(e,"dir",3,"ltr"),m=r(e,"onOpenChange",3,k),f=r(e,"onOpenChangeComplete",3,k),F=r(e,"_internal_variant",3,"dropdown-menu");const P=Ve.create({variant:h(()=>F()),dir:h(()=>y()),onClose:()=>{c(!1),m()(!1)}});Ze.create({open:h(()=>c(),g=>{c(g),m()(g)}),onOpenChangeComplete:h(()=>f())},P),Ke(v,{children:(g,C)=>{var p=K(),A=O(p);x(A,()=>e.children??X),u(g,p)},$$slots:{default:!0}}),ee()}var pt=q("<div><div><!></div></div>"),gt=q("<div><div><!></div></div>");function _t(v,e){const c=oe();$(e,!0);let y=r(e,"id",19,()=>se(c)),m=r(e,"ref",15,null),f=r(e,"loop",3,!0),F=r(e,"onInteractOutside",3,k),P=r(e,"onEscapeKeydown",3,k),g=r(e,"onCloseAutoFocus",3,k),C=r(e,"forceMount",3,!1),p=r(e,"trapFocus",3,!1),A=ae(e,["$$slots","$$events","$$legacy","id","child","children","ref","loop","onInteractOutside","onEscapeKeydown","onCloseAutoFocus","forceMount","trapFocus","style"]);const i=Ie.create({id:h(()=>y()),loop:h(()=>f()),ref:h(()=>m(),b=>m(b)),onCloseAutoFocus:h(()=>g())}),t=I(()=>Q(A,i.props));function a(b){if(i.handleInteractOutside(b),!b.defaultPrevented&&(F()(b),!b.defaultPrevented)){if(b.target&&b.target instanceof Element){const G=`[${i.parentMenu.root.getBitsAttr("sub-content")}]`;if(b.target.closest(G))return}i.parentMenu.onClose()}}function n(b){P()(b),!b.defaultPrevented&&i.parentMenu.onClose()}var d=K(),o=O(d);{var M=b=>{xe(b,pe(()=>l(t),()=>i.popperProps,{get ref(){return i.opts.ref},get enabled(){return i.parentMenu.opts.open.current},onInteractOutside:a,onEscapeKeydown:n,get trapFocus(){return p()},get loop(){return f()},forceMount:!0,get id(){return y()},get shouldRender(){return i.shouldRender},popper:(J,j)=>{let te=()=>j?.().props,B=()=>j?.().wrapperProps;const R=I(()=>Q(te(),{style:ge("dropdown-menu")},{style:e.style}));var V=K(),T=O(V);{var H=S=>{var _=K(),w=O(_);{let Z=I(()=>({props:l(R),wrapperProps:B(),...i.snippetProps}));x(w,()=>e.child,()=>l(Z))}u(S,_)},s=S=>{var _=pt();U(_,()=>({...B()}));var w=D(_);U(w,()=>({...l(R)}));var Z=D(w);x(Z,()=>e.children??X),L(w),L(_),u(S,_)};Y(T,S=>{e.child?S(H):S(s,!1)})}u(J,V)},$$slots:{popper:!0}}))},z=b=>{Ee(b,pe(()=>l(t),()=>i.popperProps,{get ref(){return i.opts.ref},get open(){return i.parentMenu.opts.open.current},onInteractOutside:a,onEscapeKeydown:n,get trapFocus(){return p()},get loop(){return f()},forceMount:!1,get id(){return y()},get shouldRender(){return i.shouldRender},popper:(J,j)=>{let te=()=>j?.().props,B=()=>j?.().wrapperProps;const R=I(()=>Q(te(),{style:ge("dropdown-menu")},{style:e.style}));var V=K(),T=O(V);{var H=S=>{var _=K(),w=O(_);{let Z=I(()=>({props:l(R),wrapperProps:B(),...i.snippetProps}));x(w,()=>e.child,()=>l(Z))}u(S,_)},s=S=>{var _=gt();U(_,()=>({...B()}));var w=D(_);U(w,()=>({...l(R)}));var Z=D(w);x(Z,()=>e.children??X),L(w),L(_),u(S,_)};Y(T,S=>{e.child?S(H):S(s,!1)})}u(J,V)},$$slots:{popper:!0}}))};Y(o,b=>{C()?b(M):C()||b(z,1)})}u(v,d),ee()}var ht=q("<button><!></button>");function mt(v,e){const c=oe();$(e,!0);let y=r(e,"id",19,()=>se(c)),m=r(e,"ref",15,null),f=r(e,"disabled",3,!1),F=r(e,"type",3,"button"),P=ae(e,["$$slots","$$events","$$legacy","id","ref","child","children","disabled","type"]);const g=We.create({id:h(()=>y()),disabled:h(()=>f()??!1),ref:h(()=>m(),p=>m(p))}),C=I(()=>Q(P,g.props,{type:F()}));Be(v,{get id(){return y()},get ref(){return g.opts.ref},children:(p,A)=>{var i=K(),t=O(i);{var a=d=>{var o=K(),M=O(o);x(M,()=>e.child,()=>({props:l(C)})),u(d,o)},n=d=>{var o=ht();U(o,()=>({...l(C)}));var M=D(o);x(M,()=>e.children??X),L(o),u(d,o)};Y(t,d=>{e.child?d(a):d(n,!1)})}u(p,i)},$$slots:{default:!0}}),ee()}const kt=vt,Dt=mt,Lt=Ye,Tt=_t,Ht=at,Nt=lt,Ut=nt,zt=ft,jt=ut;function yt(){let v=Re(ke({})),e=null,c=null;function y(t,a,n){c&&(clearInterval(c),c=null),e=`${t}/${a}/${n}`,f("enter",t,a,n),c=setInterval(()=>{e&&f("heartbeat",t,a,n)},3e4)}function m(){if(c&&(clearInterval(c),c=null),e){const[t,a,n]=e.split("/");t&&a&&n&&f("leave",t,a,n),e=null}}function f(t,a,n,d){Me.send({type:"presence",action:t,repo:a,entityType:n,entityId:d})}function F(t){const a=`${t.repo}/${t.entityType}/${t.entityId}`,n=l(v)[a]??[];if(t.action==="leave")l(v)[a]=n.filter(d=>d.id!==t.user.id);else{const d=n.findIndex(o=>o.id===t.user.id);d>=0?(n[d]=t.user,l(v)[a]=[...n]):l(v)[a]=[...n,t.user]}}function P(){if(be(v,{},!0),!e)return;const[t,a,n]=e.split("/");t&&a&&n&&f("enter",t,a,n)}function g(t,a,n,d){const o=`${t}/${a}/${n}`,M=l(v)[o]??[];return d?M.filter(z=>z.id!==d):M}function C(t,a){const n=new Map;for(const[d,o]of Object.entries(l(v)))if(d.startsWith(t))for(const M of o)(!a||M.id!==a)&&n.set(M.id,M);return[...n.values()]}function p(t,a){return C(`${t}/`,a)}function A(t){const a=new Map;for(const n of Object.values(l(v)))for(const d of n)(!t||d.id!==t)&&a.set(d.id,d);return[...a.values()]}const i=I(()=>{const t=new Map;for(const a of Object.values(l(v)))for(const n of a)t.set(n.id,n);return[...t.values()]});return{enter:y,leave:m,handlePresenceEvent:F,resetAndResend:P,getPresence:g,getPresenceByPrefix:C,getRepoPresence:p,getAllUsers:A,get allUsers(){return l(i)}}}const Oe=yt();Me.setPresenceHandler(v=>Oe.handlePresenceEvent(v));Me.addConnectHandler(()=>Oe.resetAndResend());typeof window<"u"&&window.addEventListener("beforeunload",()=>Oe.leave());var Pt=Ae("<title> </title>"),bt=Ae('<svg><!><path d="M25,12H20v2h5a1.0008,1.0008,0,0,1,1,1v2H22a3.0033,3.0033,0,0,0-3,3v1a3.0033,3.0033,0,0,0,3,3h6V15A3.0033,3.0033,0,0,0,25,12ZM22,22a1.0008,1.0008,0,0,1-1-1V20a1.0008,1.0008,0,0,1,1-1h4v3Z"></path><path d="M16,24h2L12,7H10L4,24H6l1.6936-5h6.6135ZM8.3711,17l2.4966-7.3711.2668.0005L13.63,17Z"></path></svg>');function Vt(v,e){const c=Se(e,["children","$$slots","$$events","$$legacy"]),y=Se(c,["size","title"]);$(e,!1);const m=Ce(),f=Ce();let F=r(e,"size",8,16),P=r(e,"title",8,void 0);we(()=>(ye(c),ye(P())),()=>{be(m,c["aria-label"]||c["aria-labelledby"]||P())}),we(()=>(l(m),ye(c)),()=>{be(f,{"aria-hidden":l(m)?void 0:!0,role:l(m)?"img":void 0,focusable:Number(c.tabindex)===0?!0:void 0})}),De(),rt();var g=bt();U(g,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:F(),height:F(),...l(f),...y}));var C=D(g);{var p=A=>{var i=Pt(),t=D(i,!0);L(i),fe(()=>ue(t,P())),u(A,i)};Y(C,A=>{P()&&A(p)})}ce(2),L(g),u(v,g),ee()}var Mt=q("<!> <!>",1),Ot=q("<!> <!>",1),wt=q("<!> <!>",1);function Zt(v,e){$(e,!0);let c=r(e,"open",15),y=r(e,"confirmLabel",3,"Confirm"),m=r(e,"cancelLabel",3,"Cancel"),f=r(e,"destructive",3,!1);var F=K(),P=O(F);re(P,()=>tt,(g,C)=>{C(g,{onOpenChange:p=>{p||e.oncancel()},get open(){return c()},set open(p){c(p)},children:(p,A)=>{var i=K(),t=O(i);re(t,()=>qe,(a,n)=>{n(a,{children:(d,o)=>{var M=wt(),z=O(M);re(z,()=>Ge,(G,J)=>{J(G,{children:(j,te)=>{var B=Mt(),R=O(B);re(R,()=>Je,(T,H)=>{H(T,{children:(s,S)=>{ce();var _=ve();fe(()=>ue(_,e.title)),u(s,_)},$$slots:{default:!0}})});var V=Pe(R,2);re(V,()=>Qe,(T,H)=>{H(T,{children:(s,S)=>{ce();var _=ve();fe(()=>ue(_,e.message)),u(s,_)},$$slots:{default:!0}})}),u(j,B)},$$slots:{default:!0}})});var b=Pe(z,2);re(b,()=>Xe,(G,J)=>{J(G,{children:(j,te)=>{var B=Ot(),R=O(B);{let T=I(()=>Fe({variant:"ghost"}));re(R,()=>$e,(H,s)=>{s(H,{get class(){return l(T)},get onclick(){return e.oncancel},children:(S,_)=>{ce();var w=ve();fe(()=>ue(w,m())),u(S,w)},$$slots:{default:!0}})})}var V=Pe(R,2);{let T=I(()=>Fe({variant:f()?"destructive":"accent"}));re(V,()=>et,(H,s)=>{s(H,{get class(){return l(T)},get onclick(){return e.onconfirm},children:(S,_)=>{ce();var w=ve();fe(()=>ue(w,y())),u(S,w)},$$slots:{default:!0}})})}u(j,B)},$$slots:{default:!0}})}),u(d,M)},$$slots:{default:!0}})}),u(p,i)},$$slots:{default:!0}})}),u(v,F),ee()}export{Tt as C,Ht as I,Lt as P,kt as R,Nt as S,Dt as T,Vt as a,Zt as b,Ut as c,zt as d,jt as e,Oe as p};
@@ -0,0 +1 @@
1
+ import{c as I,a as f,b as E,p as vt,o as te,s as ot,f as mt}from"./BdF6nRVd.js";import{J as ee,aL as re,bt as se,a4 as d,g as s,a2 as Nt,a7 as ie,s as g,e as U,p as K,a0 as k,b as q,a3 as lt,c as A,ae as et,r as V,a6 as oe,l as pt,d as tt,a as Vt,n as Et,m as gt,t as nt}from"./sZJoCX5N.js";import{a as W,s as B}from"./BKUmpdNY.js";import{i as T}from"./BSSN_IAc.js";import{c as rt}from"./4uEV2Hr-.js";import{p as l,r as G,s as X,l as ft}from"./DNrFMx27.js";import{b as ne,c as bt}from"./9rXsO0Bz.js";import{i as xt}from"./faGDeGnG.js";import{a3 as ae,C as yt,a as ht,w as j,E as wt,S as dt,_ as at,d as kt,a4 as le,G as he,h as Kt,a1 as Tt,m as Z,j as Ct,f as y,a5 as ue,a6 as de,D as St,a7 as ce,a8 as $,a9 as it,aa as Dt,ab as qt,ac as zt,ad as Ft,ae as Bt,af as pe,ag as ge,ah as fe,ai as ve,c as Lt,aj as me,o as be,ak as ye,al as At,$ as Ut,P as Ce,n as J,k as _e,l as we,p as ke,F as Ne,O as xe}from"./BdOJnB5W.js";import{a as Wt}from"./DycWivyI.js";import{e as Se}from"./gawey_BW.js";const Pe=[];function jt(i,t=!1,e=!1){return ct(i,new Map,"",Pe,null,e)}function ct(i,t,e,r,o=null,u=!1){if(typeof i=="object"&&i!==null){var n=t.get(i);if(n!==void 0)return n;if(i instanceof Map)return new Map(i);if(i instanceof Set)return new Set(i);if(ee(i)){var a=Array(i.length);t.set(i,a),o!==null&&t.set(o,a);for(var h=0;h<i.length;h+=1){var v=i[h];h in i&&(a[h]=ct(v,t,e,r,null,u))}return a}if(re(i)===se){a={},t.set(i,a),o!==null&&t.set(o,a);for(var c of Object.keys(i))a[c]=ct(i[c],t,e,r,null,u);return a}if(i instanceof Date)return structuredClone(i);if(typeof i.toJSON=="function"&&!u)return ct(i.toJSON(),t,e,r,i)}if(i instanceof EventTarget)return i;try{return structuredClone(i)}catch{return i}}const Ie={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",transform:"translateX(-100%)"},Re=ae(Ie);class Oe{#t=()=>{};#e=d(()=>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 He(i){Nt(()=>ie(()=>i()))}const Gt=Kt({component:"checkbox",parts:["root","group","group-label","input"]}),Yt=new yt("Checkbox.Group");class Jt{static create(t){return Yt.set(new Jt(t))}opts;attachment;#t=U(void 0);get labelId(){return s(this.#t)}set labelId(t){g(this.#t,t,!0)}constructor(t){this.opts=t,this.attachment=ht(this.opts.ref)}addValue(t){if(t&&!this.opts.value.current.includes(t)){const e=[...jt(this.opts.value.current),t];if(this.opts.value.current=e,Tt(this.opts.value.current,e))return;this.opts.onValueChange.current(e)}}removeValue(t){if(!t||this.opts.value.current.indexOf(t)===-1)return;const r=this.opts.value.current.filter(o=>o!==t);this.opts.value.current=r,!Tt(this.opts.value.current,r)&&this.opts.onValueChange.current(r)}#e=d(()=>({id:this.opts.id.current,role:"group","aria-labelledby":this.labelId,"data-disabled":at(this.opts.disabled.current),[Gt.group]:"",...this.attachment}));get props(){return s(this.#e)}set props(t){g(this.#e,t)}}const Xt=new yt("Checkbox.Root");class Pt{static create(t,e=null){return Xt.set(new Pt(t,e))}opts;group;#t=d(()=>this.group&&this.group.opts.name.current?this.group.opts.name.current:this.opts.name.current);get trueName(){return s(this.#t)}set trueName(t){g(this.#t,t)}#e=d(()=>this.group&&this.group.opts.required.current?!0:this.opts.required.current);get trueRequired(){return s(this.#e)}set trueRequired(t){g(this.#e,t)}#r=d(()=>this.group&&this.group.opts.disabled.current?!0:this.opts.disabled.current);get trueDisabled(){return s(this.#r)}set trueDisabled(t){g(this.#r,t)}#s=d(()=>this.group&&this.group.opts.readonly.current?!0:this.opts.readonly.current);get trueReadonly(){return s(this.#s)}set trueReadonly(t){g(this.#s,t)}attachment;constructor(t,e){this.opts=t,this.group=e,this.attachment=ht(this.opts.ref),this.onkeydown=this.onkeydown.bind(this),this.onclick=this.onclick.bind(this),j.pre([()=>jt(this.group?.opts.value.current),()=>this.opts.value.current],([r,o])=>{!r||!o||(this.opts.checked.current=r.includes(o))}),j.pre(()=>this.opts.checked.current,r=>{this.group&&(r?this.group?.addValue(this.opts.value.current):this.group?.removeValue(this.opts.value.current))})}onkeydown(t){if(!(this.trueDisabled||this.trueReadonly)){if(t.key===wt){t.preventDefault(),this.opts.type.current==="submit"&&t.currentTarget.closest("form")?.requestSubmit();return}t.key===dt&&(t.preventDefault(),this.#i())}}#i(){this.opts.indeterminate.current?(this.opts.indeterminate.current=!1,this.opts.checked.current=!0):this.opts.checked.current=!this.opts.checked.current}onclick(t){if(!(this.trueDisabled||this.trueReadonly)){if(this.opts.type.current==="submit"){this.#i();return}t.preventDefault(),this.#i()}}#o=d(()=>({checked:this.opts.checked.current,indeterminate:this.opts.indeterminate.current}));get snippetProps(){return s(this.#o)}set snippetProps(t){g(this.#o,t)}#n=d(()=>({id:this.opts.id.current,role:"checkbox",type:this.opts.type.current,disabled:this.trueDisabled,"aria-checked":le(this.opts.checked.current,this.opts.indeterminate.current),"aria-required":kt(this.trueRequired),"aria-readonly":kt(this.trueReadonly),"data-disabled":at(this.trueDisabled),"data-readonly":at(this.trueReadonly),"data-state":Me(this.opts.checked.current,this.opts.indeterminate.current),[Gt.root]:"",onclick:this.onclick,onkeydown:this.onkeydown,...this.attachment}));get props(){return s(this.#n)}set props(t){g(this.#n,t)}}class It{static create(){return new It(Xt.get())}root;#t=d(()=>this.root.group?!!(this.root.opts.value.current!==void 0&&this.root.group.opts.value.current.includes(this.root.opts.value.current)):this.root.opts.checked.current);get trueChecked(){return s(this.#t)}set trueChecked(t){g(this.#t,t)}#e=d(()=>!!this.root.trueName);get shouldRender(){return s(this.#e)}set shouldRender(t){g(this.#e,t)}constructor(t){this.root=t,this.onfocus=this.onfocus.bind(this)}onfocus(t){he(this.root.opts.ref.current)&&this.root.opts.ref.current.focus()}#r=d(()=>({type:"checkbox",checked:this.root.opts.checked.current===!0,disabled:this.root.trueDisabled,required:this.root.trueRequired,name:this.root.trueName,value:this.root.opts.value.current,readonly:this.root.trueReadonly,onfocus:this.onfocus}));get props(){return s(this.#r)}set props(t){g(this.#r,t)}}function Me(i,t){return t?"indeterminate":i?"checked":"unchecked"}var Te=E("<input/>"),De=E("<input/>");function Qt(i,t){K(t,!0);let e=l(t,"value",15),r=G(t,["$$slots","$$events","$$legacy","value"]);const o=d(()=>Z(r,{"aria-hidden":"true",tabindex:-1,style:Re}));var u=I(),n=k(u);{var a=v=>{var c=Te();W(c,()=>({...s(o),value:e()}),void 0,void 0,void 0,void 0,!0),f(v,c)},h=v=>{var c=De();W(c,()=>({...s(o)}),void 0,void 0,void 0,void 0,!0),ne(c,e),f(v,c)};T(n,v=>{s(o).type==="checkbox"?v(a):v(h,!1)})}f(i,u),q()}function Ae(i,t){K(t,!1);const e=It.create();xt();var r=I(),o=k(r);{var u=n=>{Qt(n,X(()=>e.props))};T(o,n=>{e.shouldRender&&n(u)})}f(i,r),q()}var Ve=E("<button><!></button>"),Ee=E("<!> <!>",1);function Ke(i,t){const e=vt();K(t,!0);let r=l(t,"checked",15,!1),o=l(t,"ref",15,null),u=l(t,"disabled",3,!1),n=l(t,"required",3,!1),a=l(t,"name",3,void 0),h=l(t,"value",3,"on"),v=l(t,"id",19,()=>Ct(e)),c=l(t,"indeterminate",15,!1),p=l(t,"type",3,"button"),b=G(t,["$$slots","$$events","$$legacy","checked","ref","onCheckedChange","children","disabled","required","name","value","id","indeterminate","onIndeterminateChange","child","type","readonly"]);const w=Yt.getOr(null);w&&h()&&(w.opts.value.current.includes(h())?r(!0):r(!1)),j.pre(()=>h(),()=>{w&&h()&&(w.opts.value.current.includes(h())?r(!0):r(!1))});const R=Pt.create({checked:y(()=>r(),P=>{r(P),t.onCheckedChange?.(P)}),disabled:y(()=>u()??!1),required:y(()=>n()),name:y(()=>a()),value:y(()=>h()),id:y(()=>v()),ref:y(()=>o(),P=>o(P)),indeterminate:y(()=>c(),P=>{c(P),t.onIndeterminateChange?.(P)}),type:y(()=>p()),readonly:y(()=>!!t.readonly)},w),O=d(()=>Z({...b},R.props));var S=Ee(),C=k(S);{var m=P=>{var D=I(),N=k(D);{let z=d(()=>({props:s(O),...R.snippetProps}));B(N,()=>t.child,()=>s(z))}f(P,D)},_=P=>{var D=Ve();W(D,()=>({...s(O)}));var N=A(D);B(N,()=>t.children??et,()=>R.snippetProps),V(D),f(P,D)};T(C,P=>{t.child?P(m):P(_,!1)})}var x=lt(C,2);Ae(x,{}),f(i,S),q()}class qe{#t;#e=d(()=>this.#t.candidateValues());#r;constructor(t){this.#t=t,this.#r=ue("",{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(a=>a===e)??"",o=s(this.#e).map(a=>a??""),u=de(o,this.#r.current,r),n=s(this.#e).find(a=>a===u);return n&&this.#t.onMatch(n),n}resetTypeahead(){this.#r.current=""}}const ze=[it,qt,zt],Fe=[$,Ft,Bt],Be=[...ze,...Fe],Le=Kt({component:"select",parts:["trigger","content","item","viewport","scroll-up-button","scroll-down-button","group","group-label","separator","arrow","input","content-wrapper","item-text","value"]}),ut=new yt("Select.Root | Combobox.Root"),Ue=new yt("Select.Content | Combobox.Content");class Zt{opts;#t=U(!1);get touchedInput(){return s(this.#t)}set touchedInput(t){g(this.#t,t,!0)}#e=U(null);get inputNode(){return s(this.#e)}set inputNode(t){g(this.#e,t,!0)}#r=U(null);get contentNode(){return s(this.#r)}set contentNode(t){g(this.#r,t,!0)}contentPresence;#s=U(null);get viewportNode(){return s(this.#s)}set viewportNode(t){g(this.#s,t,!0)}#i=U(null);get triggerNode(){return s(this.#i)}set triggerNode(t){g(this.#i,t,!0)}#o=U("");get valueId(){return s(this.#o)}set valueId(t){g(this.#o,t,!0)}#n=U(null);get highlightedNode(){return s(this.#n)}set highlightedNode(t){g(this.#n,t,!0)}#a=d(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-value"):null);get highlightedValue(){return s(this.#a)}set highlightedValue(t){g(this.#a,t)}#l=d(()=>{if(this.highlightedNode)return this.highlightedNode.id});get highlightedId(){return s(this.#l)}set highlightedId(t){g(this.#l,t)}#h=d(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-label"):null);get highlightedLabel(){return s(this.#h)}set highlightedLabel(t){g(this.#h,t)}isUsingKeyboard=!1;isCombobox=!1;domContext=new St(()=>null);constructor(t){this.opts=t,this.isCombobox=t.isCombobox,this.contentPresence=new Ce({ref:y(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),oe(()=>{this.opts.open.current||this.setHighlightedNode(null)})}setHighlightedNode(t,e=!1){this.highlightedNode=t,t&&(this.isUsingKeyboard||e)&&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 u=o.getBoundingClientRect();return u.right<=r.right&&u.left>=r.left&&u.bottom<=r.bottom&&u.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=>Le.getAttr(t,this.isCombobox?"combobox":void 0)}class We extends Zt{opts;isMulti=!1;#t=d(()=>this.opts.value.current!=="");get hasValue(){return s(this.#t)}set hasValue(t){g(this.#t,t)}#e=d(()=>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){g(this.#e,t)}#r=d(()=>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){g(this.#r,t)}#s=d(()=>!(this.isMulti||this.opts.items.current.length===0));get dataTypeaheadEnabled(){return s(this.#s)}set dataTypeaheadEnabled(t){g(this.#s,t)}constructor(t){super(t),this.opts=t,Nt(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),j(()=>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(){Ut(()=>{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 je extends Zt{opts;isMulti=!0;#t=d(()=>this.opts.value.current.length>0);get hasValue(){return s(this.#t)}set hasValue(t){g(this.#t,t)}constructor(t){super(t),this.opts=t,Nt(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),j(()=>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(){Ut(()=>{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 Ge{static create(t){const{type:e,...r}=t,o=e==="single"?new We(r):new je(r);return ut.set(o)}}class Rt{static create(t){return new Rt(t,ut.get())}opts;root;attachment;#t;#e;constructor(t,e){this.opts=t,this.root=e,this.attachment=ht(t.ref,r=>this.root.triggerNode=r),this.root.domContext=new St(t.ref),this.#t=new ce({getCurrentItem:()=>this.root.highlightedNode,onMatch:r=>{this.root.setHighlightedNode(r)},getActiveElement:()=>this.root.domContext.getActiveElement(),getWindow:()=>this.root.domContext.getWindow()}),this.#e=new qe({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(u=>u.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()}#s(t){this.#r()}#i(){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===$||t.key===it)&&t.preventDefault(),!this.root.opts.open.current){if(t.key===wt||t.key===dt||t.key===it||t.key===$)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 n=this.root.getCandidateNodes();if(!n.length)return;if(t.key===it){const a=n[0];this.root.setHighlightedNode(a)}else if(t.key===$){const a=n[n.length-1];this.root.setHighlightedNode(a)}return}if(t.key===Dt){this.root.handleClose();return}if((t.key===wt||t.key===dt&&this.#t.search==="")&&!t.isComposing&&(t.preventDefault(),this.#i()))return;if(t.key===$&&t.altKey&&this.root.handleClose(),Be.includes(t.key)){t.preventDefault();const n=this.root.getCandidateNodes(),a=this.root.highlightedNode,h=a?n.indexOf(a):-1,v=this.root.opts.loop.current;let c;if(t.key===it?c=pe(n,h,v):t.key===$?c=ge(n,h,v):t.key===Ft?c=fe(n,h,10,v):t.key===qt?c=ve(n,h,10,v):t.key===zt?c=n[0]:t.key===Bt&&(c=n[n.length-1]),!c)return;this.root.setHighlightedNode(c);return}const e=t.ctrlKey||t.altKey||t.metaKey,r=t.key.length===1,o=t.key===dt,u=this.root.getCandidateNodes();if(t.key!==Dt){if(!e&&(r||o)){!this.#t.handleTypeaheadSearch(t.key,u)&&o&&(t.preventDefault(),this.#i());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.#s(t):this.root.handleClose())}onpointerup(t){this.root.opts.disabled.current||(t.preventDefault(),t.pointerType==="touch"&&(this.root.opts.open.current===!1?this.#s(t):this.root.handleClose()))}#o=d(()=>({id:this.opts.id.current,disabled:this.root.opts.disabled.current?!0:void 0,"aria-haspopup":"listbox","aria-expanded":kt(this.root.opts.open.current),"aria-activedescendant":this.root.highlightedId,"data-state":Lt(this.root.opts.open.current),"data-disabled":at(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.#o)}set props(t){g(this.#o,t)}}class Ot{static create(t){return Ue.set(new Ot(t,ut.get()))}opts;root;attachment;#t=U(!1);get isPositioned(){return s(this.#t)}set isPositioned(t){g(this.#t,t,!0)}domContext;constructor(t,e){this.opts=t,this.root=e,this.attachment=ht(t.ref,r=>this.root.contentNode=r),this.domContext=new St(this.opts.ref),this.root.domContext===null&&(this.root.domContext=this.domContext),me(()=>{this.root.contentNode=null,this.isPositioned=!1}),j(()=>this.root.opts.open.current,()=>{this.root.opts.open.current||(this.isPositioned=!1)}),this.onpointermove=this.onpointermove.bind(this)}onpointermove(t){this.root.isUsingKeyboard=!1}#e=d(()=>be(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=d(()=>({open:this.root.opts.open.current}));get snippetProps(){return s(this.#r)}set snippetProps(t){g(this.#r,t)}#s=d(()=>({id:this.opts.id.current,role:"listbox","aria-multiselectable":this.root.isMulti?"true":void 0,"data-state":Lt(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.#s)}set props(t){g(this.#s,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.isPositioned=!0)}}}class Ht{static create(t){return new Ht(t,ut.get())}opts;root;attachment;#t=d(()=>this.root.includesItem(this.opts.value.current));get isSelected(){return s(this.#t)}set isSelected(t){g(this.#t,t)}#e=d(()=>this.root.highlightedValue===this.opts.value.current);get isHighlighted(){return s(this.#e)}set isHighlighted(t){g(this.#e,t)}prevHighlighted=new Oe(()=>this.isHighlighted);#r=U(!1);get mounted(){return s(this.#r)}set mounted(t){g(this.#r,t,!0)}constructor(t,e){this.opts=t,this.root=e,this.attachment=ht(t.ref),j([()=>this.isHighlighted,()=>this.prevHighlighted.current],()=>{this.isHighlighted?this.opts.onHighlight.current():this.prevHighlighted.current&&this.opts.onUnhighlight.current()}),j(()=>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()}#s=d(()=>({selected:this.isSelected,highlighted:this.isHighlighted}));get snippetProps(){return s(this.#s)}set snippetProps(t){g(this.#s,t)}onpointerdown(t){t.preventDefault()}onpointerup(t){if(!(t.defaultPrevented||!this.opts.ref.current)){if(t.pointerType==="touch"&&!ye){te(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)}#i=d(()=>({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":at(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.#i)}set props(t){g(this.#i,t)}}class Mt{static create(t){return new Mt(t,ut.get())}opts;root;#t=d(()=>this.root.opts.name.current!=="");get shouldRender(){return s(this.#t)}set shouldRender(t){g(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=d(()=>({disabled:At(this.root.opts.disabled.current),required:At(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){g(this.#e,t)}}function _t(i,t){K(t,!0);let e=l(t,"value",15);const r=Mt.create({value:y(()=>e())});var o=I(),u=k(o);{var n=a=>{Qt(a,X(()=>r.props,{get autocomplete(){return t.autocomplete},get value(){return e()},set value(h){e(h)}}))};T(u,a=>{r.shouldRender&&a(n)})}f(i,o),q()}var Ye=E("<div><div><!></div></div>"),Je=E("<div><div><!></div></div>");function Xe(i,t){const e=vt();K(t,!0);let r=l(t,"id",19,()=>Ct(e)),o=l(t,"ref",15,null),u=l(t,"forceMount",3,!1),n=l(t,"side",3,"bottom"),a=l(t,"onInteractOutside",3,J),h=l(t,"onEscapeKeydown",3,J),v=l(t,"preventScroll",3,!1),c=G(t,["$$slots","$$events","$$legacy","id","ref","forceMount","side","onInteractOutside","onEscapeKeydown","children","child","preventScroll","style"]);const p=Ot.create({id:y(()=>r()),ref:y(()=>o(),C=>o(C)),onInteractOutside:y(()=>a()),onEscapeKeydown:y(()=>h())}),b=d(()=>Z(c,p.props));var w=I(),R=k(w);{var O=C=>{_e(C,X(()=>s(b),()=>p.popperProps,{get ref(){return p.opts.ref},get side(){return n()},get enabled(){return p.root.opts.open.current},get id(){return r()},get preventScroll(){return v()},forceMount:!0,get shouldRender(){return p.shouldRender},popper:(_,x)=>{let P=()=>x?.().props,D=()=>x?.().wrapperProps;const N=d(()=>Z(P(),{style:p.props.style},{style:t.style}));var z=I(),Y=k(z);{var Q=H=>{var M=I(),F=k(M);{let L=d(()=>({props:s(N),wrapperProps:D(),...p.snippetProps}));B(F,()=>t.child,()=>s(L))}f(H,M)},st=H=>{var M=Ye();W(M,()=>({...D()}));var F=A(M);W(F,()=>({...s(N)}));var L=A(F);B(L,()=>t.children??et),V(F),V(M),f(H,M)};T(Y,H=>{t.child?H(Q):H(st,!1)})}f(_,z)},$$slots:{popper:!0}}))},S=C=>{we(C,X(()=>s(b),()=>p.popperProps,{get ref(){return p.opts.ref},get side(){return n()},get open(){return p.root.opts.open.current},get id(){return r()},get preventScroll(){return v()},forceMount:!1,get shouldRender(){return p.shouldRender},popper:(_,x)=>{let P=()=>x?.().props,D=()=>x?.().wrapperProps;const N=d(()=>Z(P(),{style:p.props.style},{style:t.style}));var z=I(),Y=k(z);{var Q=H=>{var M=I(),F=k(M);{let L=d(()=>({props:s(N),wrapperProps:D(),...p.snippetProps}));B(F,()=>t.child,()=>s(L))}f(H,M)},st=H=>{var M=Je();W(M,()=>({...D()}));var F=A(M);W(F,()=>({...s(N)}));var L=A(F);B(L,()=>t.children??et),V(F),V(M),f(H,M)};T(Y,H=>{t.child?H(Q):H(st,!1)})}f(_,z)},$$slots:{popper:!0}}))};T(R,C=>{u()?C(O):u()||C(S,1)})}f(i,w),q()}function Qe(i,t){K(t,!0);let e=l(t,"mounted",15,!1),r=l(t,"onMountedChange",3,J);He(()=>(e(!0),r()(!0),()=>{e(!1),r()(!1)})),q()}var Ze=E("<div><!></div>"),$e=E("<!> <!>",1);function tr(i,t){const e=vt();K(t,!0);let r=l(t,"id",19,()=>Ct(e)),o=l(t,"ref",15,null),u=l(t,"label",19,()=>t.value),n=l(t,"disabled",3,!1),a=l(t,"onHighlight",3,J),h=l(t,"onUnhighlight",3,J),v=G(t,["$$slots","$$events","$$legacy","id","ref","value","label","disabled","children","child","onHighlight","onUnhighlight"]);const c=Ht.create({id:y(()=>r()),ref:y(()=>o(),C=>o(C)),value:y(()=>t.value),disabled:y(()=>n()),label:y(()=>u()),onHighlight:y(()=>a()),onUnhighlight:y(()=>h())}),p=d(()=>Z(v,c.props));var b=$e(),w=k(b);{var R=C=>{var m=I(),_=k(m);{let x=d(()=>({props:s(p),...c.snippetProps}));B(_,()=>t.child,()=>s(x))}f(C,m)},O=C=>{var m=Ze();W(m,()=>({...s(p)}));var _=A(m);B(_,()=>t.children??et,()=>c.snippetProps),V(m),f(C,m)};T(w,C=>{t.child?C(R):C(O,!1)})}var S=lt(w,2);Qe(S,{get mounted(){return c.mounted},set mounted(C){c.mounted=C}}),f(i,b),q()}var er=E("<!> <!>",1);function rr(i,t){K(t,!0);let e=l(t,"value",15),r=l(t,"onValueChange",3,J),o=l(t,"name",3,""),u=l(t,"disabled",3,!1),n=l(t,"open",15,!1),a=l(t,"onOpenChange",3,J),h=l(t,"onOpenChangeComplete",3,J),v=l(t,"loop",3,!1),c=l(t,"scrollAlignment",3,"nearest"),p=l(t,"required",3,!1),b=l(t,"items",19,()=>[]),w=l(t,"allowDeselect",3,!1);function R(){e()===void 0&&e(t.type==="single"?"":[])}R(),j.pre(()=>e(),()=>{R()});let O=U("");const S=Ge.create({type:t.type,value:y(()=>e(),N=>{e(N),r()(N)}),disabled:y(()=>u()),required:y(()=>p()),open:y(()=>n(),N=>{n(N),a()(N)}),loop:y(()=>v()),scrollAlignment:y(()=>c()),name:y(()=>o()),isCombobox:!1,items:y(()=>b()),allowDeselect:y(()=>w()),inputValue:y(()=>s(O),N=>g(O,N,!0)),onOpenChangeComplete:y(()=>h())});var C=er(),m=k(C);ke(m,{children:(N,z)=>{var Y=I(),Q=k(Y);B(Q,()=>t.children??et),f(N,Y)},$$slots:{default:!0}});var _=lt(m,2);{var x=N=>{var z=I(),Y=k(z);{var Q=H=>{_t(H,{get autocomplete(){return t.autocomplete}})},st=H=>{var M=I(),F=k(M);Se(F,16,()=>S.opts.value.current,L=>L,(L,$t)=>{_t(L,{get value(){return $t},get autocomplete(){return t.autocomplete}})}),f(H,M)};T(Y,H=>{S.opts.value.current.length===0?H(Q):H(st,!1)})}f(N,z)},P=d(()=>Array.isArray(S.opts.value.current)),D=N=>{_t(N,{get autocomplete(){return t.autocomplete},get value(){return S.opts.value.current},set value(z){S.opts.value.current=z}})};T(_,N=>{s(P)?N(x):N(D,!1)})}f(i,C),q()}var sr=E("<button><!></button>");function ir(i,t){const e=vt();K(t,!0);let r=l(t,"id",19,()=>Ct(e)),o=l(t,"ref",15,null),u=l(t,"type",3,"button"),n=G(t,["$$slots","$$events","$$legacy","id","ref","child","children","type"]);const a=Rt.create({id:y(()=>r()),ref:y(()=>o(),p=>o(p))}),h=d(()=>Z(n,a.props,{type:u()}));var v=I(),c=k(v);rt(c,()=>Ne,(p,b)=>{b(p,{get id(){return r()},get ref(){return a.opts.ref},children:(w,R)=>{var O=I(),S=k(O);{var C=_=>{var x=I(),P=k(x);B(P,()=>t.child,()=>({props:s(h)})),f(_,x)},m=_=>{var x=sr();W(x,()=>({...s(h)}));var P=A(x);B(P,()=>t.children??et),V(x),f(_,x)};T(S,_=>{t.child?_(C):_(m,!1)})}f(w,O)},$$slots:{default:!0}})}),f(i,v),q()}var or=mt("<title> </title>"),nr=mt('<svg><!><path d="M16 22 6 12 7.4 10.6 16 19.2 24.6 10.6 26 12z"></path></svg>');function ar(i,t){const e=ft(t,["children","$$slots","$$events","$$legacy"]),r=ft(e,["size","title"]);K(t,!1);const o=gt(),u=gt();let n=l(t,"size",8,16),a=l(t,"title",8,void 0);pt(()=>(tt(e),tt(a())),()=>{g(o,e["aria-label"]||e["aria-labelledby"]||a())}),pt(()=>(s(o),tt(e)),()=>{g(u,{"aria-hidden":s(o)?void 0:!0,role:s(o)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),Vt(),xt();var h=nr();W(h,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:n(),height:n(),...s(u),...r}));var v=A(h);{var c=p=>{var b=or(),w=A(b,!0);V(b),nt(()=>ot(w,a())),f(p,b)};T(v,p=>{a()&&p(c)})}Et(),V(h),f(i,h),q()}var lr=E("<span> </span>"),hr=E('<span class="select-placeholder"> </span>'),ur=E("<!> <!>",1);function Pr(i,t){K(t,!0);let e=l(t,"placeholder",3,"Select..."),r=l(t,"size",3,"default"),o=G(t,["$$slots","$$events","$$legacy","children","value","placeholder","class","size"]);var u=I(),n=k(u);{let a=d(()=>bt("select-trigger",r()==="sm"&&"select-trigger-sm",t.class));rt(n,()=>ir,(h,v)=>{v(h,X({get class(){return s(a)}},()=>o,{children:(c,p)=>{var b=ur(),w=k(b);{var R=m=>{var _=I(),x=k(_);B(x,()=>t.children),f(m,_)},O=m=>{var _=lr(),x=A(_,!0);V(_),nt(()=>ot(x,t.value)),f(m,_)},S=m=>{var _=hr(),x=A(_,!0);V(_),nt(()=>ot(x,e())),f(m,_)};T(w,m=>{t.children?m(R):t.value?m(O,1):m(S,!1)})}var C=lt(w,2);{let m=d(()=>r()==="sm"?12:14);ar(C,{get size(){return s(m)},class:"select-chevron"})}f(c,b)},$$slots:{default:!0}}))})}f(i,u),q()}function Ir(i,t){K(t,!0);let e=l(t,"side",3,"bottom"),r=l(t,"sideOffset",3,4),o=G(t,["$$slots","$$events","$$legacy","children","class","side","sideOffset"]);var u=I(),n=k(u);rt(n,()=>xe,(a,h)=>{h(a,{children:(v,c)=>{var p=I(),b=k(p);{let w=d(()=>bt("select-content",t.class));rt(b,()=>Xe,(R,O)=>{O(R,X({get class(){return s(w)},get side(){return e()},get sideOffset(){return r()}},()=>o,{children:(S,C)=>{var m=I(),_=k(m);B(_,()=>t.children),f(S,m)},$$slots:{default:!0}}))})}f(v,p)},$$slots:{default:!0}})}),f(i,u),q()}var dr=E('<span class="select-item-text"> </span> <!>',1);function Rr(i,t){K(t,!0);let e=l(t,"disabled",3,!1),r=G(t,["$$slots","$$events","$$legacy","value","label","disabled","class"]);var o=I(),u=k(o);{const n=(h,v)=>{let c=()=>v?.().selected;var p=dr(),b=k(p),w=A(b,!0);V(b);var R=lt(b,2);{var O=S=>{Wt(S,{size:12,class:"select-item-check"})};T(R,S=>{c()&&S(O)})}nt(()=>ot(w,t.label??t.value)),f(h,p)};let a=d(()=>bt("select-item",t.class));rt(u,()=>tr,(h,v)=>{v(h,X({get value(){return t.value},get label(){return t.label},get disabled(){return e()},get class(){return s(a)}},()=>r,{children:n,$$slots:{default:!0}}))})}f(i,o),q()}const Or=rr;var cr=mt("<title> </title>"),pr=mt('<svg><!><path d="M8 15H24V17H8z"></path></svg>');function gr(i,t){const e=ft(t,["children","$$slots","$$events","$$legacy"]),r=ft(e,["size","title"]);K(t,!1);const o=gt(),u=gt();let n=l(t,"size",8,16),a=l(t,"title",8,void 0);pt(()=>(tt(e),tt(a())),()=>{g(o,e["aria-label"]||e["aria-labelledby"]||a())}),pt(()=>(s(o),tt(e)),()=>{g(u,{"aria-hidden":s(o)?void 0:!0,role:s(o)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),Vt(),xt();var h=pr();W(h,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:n(),height:n(),...s(u),...r}));var v=A(h);{var c=p=>{var b=cr(),w=A(b,!0);V(b),nt(()=>ot(w,a())),f(p,b)};T(v,p=>{a()&&p(c)})}Et(),V(h),f(i,h),q()}var fr=E('<span class="flex items-center justify-center text-current"><!></span>');function Hr(i,t){K(t,!0);let e=l(t,"checked",15,!1),r=l(t,"indeterminate",15,!1),o=l(t,"ref",15,null),u=G(t,["$$slots","$$events","$$legacy","class","checked","indeterminate","ref"]);var n=I(),a=k(n);{const h=(c,p)=>{let b=()=>p?.().checked,w=()=>p?.().indeterminate;var R=fr(),O=A(R);{var S=m=>{gr(m,{class:"size-3"})},C=m=>{Wt(m,{class:"size-3"})};T(O,m=>{w()?m(S):b()&&m(C,1)})}V(R),f(c,R)};let v=d(()=>bt("peer inline-flex size-4 shrink-0 items-center justify-center rounded-sm border border-[var(--color-border)] bg-transparent transition-colors","hover:border-[var(--color-accent)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-accent)] focus-visible:ring-offset-2 focus-visible:ring-offset-[var(--color-bg-primary)]","disabled:cursor-not-allowed disabled:opacity-50","data-[state=checked]:border-[var(--color-accent)] data-[state=checked]:bg-[var(--color-accent)] data-[state=checked]:text-white",t.class));rt(a,()=>Ke,(c,p)=>{p(c,X({get class(){return s(v)}},()=>u,{get checked(){return e()},set checked(b){e(b)},get indeterminate(){return r()},set indeterminate(b){r(b)},get ref(){return o()},set ref(b){o(b)},children:h,$$slots:{default:!0}}))})}f(i,n),q()}export{Hr as C,Or as R,Pr as S,Ir as a,Rr as b,Jt as c,jt as s};
@@ -1 +1 @@
1
- import{o as St,p as le,c as j,a as u,b as I,s as Ht,f as Ot,d as fe,e as L,t as Nt,g as ve}from"./BdF6nRVd.js";import{e as F,s as c,g as o,a4 as T,p as _t,a0 as A,b as yt,c as g,ae as Kt,r as _,l as At,d as et,a as Gt,n as Z,m as Mt,t as dt,a1 as me,a2 as be,a3 as z}from"./sZJoCX5N.js";import{s as ut,a as ct,r as ge,b as _e}from"./BKUmpdNY.js";import{i as S,b as ye}from"./BSSN_IAc.js";import{e as Ce}from"./gawey_BW.js";import{c as X}from"./4uEV2Hr-.js";import{s as Wt}from"./OZfYVFGq.js";import{b as we,B as Pe}from"./9rXsO0Bz.js";import{p as f,s as ee,r as he,l as Vt}from"./DNrFMx27.js";import{g as oe}from"./CULlunSW.js";import{i as Ut}from"./faGDeGnG.js";import{A as xe,C as re}from"./B4jNhkRC.js";import{n as U}from"./CkIXD8Ce.js";import{v as $t}from"./DWhD9HmY.js";import{w as He}from"./DvmL5xMZ.js";import{w as Zt,g as Ae,i as gt,C as Me,a as de,D as Ve,b as Yt,E as Oe,S as ke,c as ue,d as Te,e as De,P as ne,f as D,h as Ie,j as ce,n as xt,k as ze,l as Fe,m as Bt,o as se,F as Ee,p as Se,A as Ne,q as We,r as $e,s as Be,t as Ke,u as Ye,v as Le,x as Xe}from"./BdOJnB5W.js";function ie(v,t){const[e,s]=v;let n=!1;const r=t.length;for(let d=0,i=r-1;d<r;i=d++){const[p,P]=t[d]??[0,0],[y,a]=t[i]??[0,0];P>=s!=a>=s&&e<=(y-p)*(s-P)/(a-P)+p&&(n=!n)}return n}function ae(v,t){return v[0]>=t.left&&v[0]<=t.right&&v[1]>=t.top&&v[1]<=t.bottom}function je(v,t){const e=v.left+v.width/2,s=v.top+v.height/2,n=t.left+t.width/2,r=t.top+t.height/2,d=n-e,i=r-s;return Math.abs(d)>Math.abs(i)?d>0?"right":"left":i>0?"bottom":"top"}class qe{#t;#n;#o=null;#e=null;#s=null;#a(){this.#s!==null&&(cancelAnimationFrame(this.#s),this.#s=null)}#h(){this.#a(),this.#s=requestAnimationFrame(()=>{this.#s=null,!(!this.#o||!this.#e)&&(this.#r(),this.#t.onPointerExit())})}constructor(t){this.#t=t,this.#n=t.buffer??1,Zt([t.triggerNode,t.contentNode,t.enabled],([e,s,n])=>{if(!e||!s||!n){this.#r();return}const r=Ae(e),d=a=>{this.#i([a.clientX,a.clientY],e,s)},i=a=>{const l=a.relatedTarget;if(gt(l)&&s.contains(l))return;const x=this.#t.ignoredTargets?.()??[];if(!(gt(l)&&x.some(H=>H===l||H.contains(l)))){if(gt(l)&&!e.contains(l)&&!s.contains(l)&&!l.contains(s)){this.#r(),this.#t.onPointerExit();return}this.#o=[a.clientX,a.clientY],this.#e="content",this.#h()}},p=()=>{this.#r()},P=()=>{this.#r()},y=a=>{const l=a.relatedTarget;gt(l)&&e.contains(l)||(this.#o=[a.clientX,a.clientY],this.#e="trigger",this.#h())};return[St(r,"pointermove",d),St(e,"pointerleave",i),St(e,"pointerenter",p),St(s,"pointerenter",P),St(s,"pointerleave",y)].reduce((a,l)=>()=>{a(),l()},()=>{})})}#i(t,e,s){if(!this.#o||!this.#e)return;this.#a();const n=e.getBoundingClientRect(),r=s.getBoundingClientRect();if(this.#e==="content"&&ae(t,r)){this.#r();return}if(this.#e==="trigger"&&ae(t,n)){this.#r();return}const d=je(n,r),i=this.#l(n,r,d);if(i&&ie(t,i))return;const p=this.#e==="content"?r:n,P=this.#d(this.#o,p,d,this.#e);ie(t,P)||(this.#r(),this.#t.onPointerExit())}#r(){this.#o=null,this.#e=null,this.#a()}#l(t,e,s){const n=this.#n;switch(s){case"top":return[[Math.min(t.left,e.left)-n,t.top],[Math.min(t.left,e.left)-n,e.bottom],[Math.max(t.right,e.right)+n,e.bottom],[Math.max(t.right,e.right)+n,t.top]];case"bottom":return[[Math.min(t.left,e.left)-n,t.bottom],[Math.min(t.left,e.left)-n,e.top],[Math.max(t.right,e.right)+n,e.top],[Math.max(t.right,e.right)+n,t.bottom]];case"left":return[[t.left,Math.min(t.top,e.top)-n],[e.right,Math.min(t.top,e.top)-n],[e.right,Math.max(t.bottom,e.bottom)+n],[t.left,Math.max(t.bottom,e.bottom)+n]];case"right":return[[t.right,Math.min(t.top,e.top)-n],[e.left,Math.min(t.top,e.top)-n],[e.left,Math.max(t.bottom,e.bottom)+n],[t.right,Math.max(t.bottom,e.bottom)+n]]}}#d(t,e,s,n){const r=this.#n*4,[d,i]=t;switch(n==="trigger"?this.#u(s):s){case"top":return[[d-r,i+r],[d+r,i+r],[e.right+r,e.bottom],[e.right+r,e.top],[e.left-r,e.top],[e.left-r,e.bottom]];case"bottom":return[[d-r,i-r],[d+r,i-r],[e.right+r,e.top],[e.right+r,e.bottom],[e.left-r,e.bottom],[e.left-r,e.top]];case"left":return[[d+r,i-r],[d+r,i+r],[e.right,e.bottom+r],[e.left,e.bottom+r],[e.left,e.top-r],[e.right,e.top-r]];case"right":return[[d-r,i-r],[d-r,i+r],[e.left,e.bottom+r],[e.right,e.bottom+r],[e.right,e.top-r],[e.left,e.top-r]]}}#u(t){switch(t){case"top":return"bottom";case"bottom":return"top";case"left":return"right";case"right":return"left"}}}const qt=Ie({component:"popover",parts:["root","trigger","content","close","overlay"]}),Jt=new Me("Popover.Root");class Qt{static create(t){return Jt.set(new Qt(t))}opts;#t=F(null);get contentNode(){return o(this.#t)}set contentNode(t){c(this.#t,t,!0)}contentPresence;#n=F(null);get triggerNode(){return o(this.#n)}set triggerNode(t){c(this.#n,t,!0)}#o=F(null);get overlayNode(){return o(this.#o)}set overlayNode(t){c(this.#o,t,!0)}overlayPresence;#e=F(!1);get openedViaHover(){return o(this.#e)}set openedViaHover(t){c(this.#e,t,!0)}#s=F(!1);get hasInteractedWithContent(){return o(this.#s)}set hasInteractedWithContent(t){c(this.#s,t,!0)}#a=F(!1);get hoverCooldown(){return o(this.#a)}set hoverCooldown(t){c(this.#a,t,!0)}#h=F(0);get closeDelay(){return o(this.#h)}set closeDelay(t){c(this.#h,t,!0)}#i=null;#r=null;constructor(t){this.opts=t,this.contentPresence=new ne({ref:D(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new ne({ref:D(()=>this.overlayNode),open:this.opts.open}),Zt(()=>this.opts.open.current,e=>{e||(this.openedViaHover=!1,this.hasInteractedWithContent=!1,this.#l())})}setDomContext(t){this.#r=t}#l(){this.#i!==null&&this.#r&&(this.#r.clearTimeout(this.#i),this.#i=null)}toggleOpen(){this.#l(),this.opts.open.current=!this.opts.open.current}handleClose(){this.#l(),this.opts.open.current&&(this.opts.open.current=!1)}handleHoverOpen(){this.#l(),!this.opts.open.current&&(this.openedViaHover=!0,this.opts.open.current=!0)}handleHoverClose(){this.opts.open.current&&this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1)}handleDelayedHoverClose(){this.opts.open.current&&(!this.openedViaHover||this.hasInteractedWithContent||(this.#l(),this.closeDelay<=0?this.opts.open.current=!1:this.#r&&(this.#i=this.#r.setTimeout(()=>{this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1),this.#i=null},this.closeDelay))))}cancelDelayedClose(){this.#l()}markInteraction(){this.hasInteractedWithContent=!0,this.#l()}}class Rt{static create(t){return new Rt(t,Jt.get())}opts;root;attachment;domContext;#t=null;#n=null;#o=F(!1);constructor(t,e){this.opts=t,this.root=e,this.attachment=de(this.opts.ref,s=>this.root.triggerNode=s),this.domContext=new Ve(t.ref),this.root.setDomContext(this.domContext),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this),Zt(()=>this.opts.closeDelay.current,s=>{this.root.closeDelay=s})}#e(){this.#t!==null&&(this.domContext.clearTimeout(this.#t),this.#t=null)}#s(){this.#n!==null&&(this.domContext.clearTimeout(this.#n),this.#n=null)}#a(){this.#e(),this.#s()}onpointerenter(t){if(this.opts.disabled.current||!this.opts.openOnHover.current||Yt(t)||(c(this.#o,!0),this.#s(),this.root.cancelDelayedClose(),this.root.opts.open.current||this.root.hoverCooldown))return;const e=this.opts.openDelay.current;e<=0?this.root.handleHoverOpen():this.#t=this.domContext.setTimeout(()=>{this.root.handleHoverOpen(),this.#t=null},e)}onpointerleave(t){this.opts.disabled.current||this.opts.openOnHover.current&&(Yt(t)||(c(this.#o,!1),this.#e(),this.root.hoverCooldown=!1))}onclick(t){if(!this.opts.disabled.current&&t.button===0){if(this.#a(),o(this.#o)&&this.root.opts.open.current&&this.root.openedViaHover){this.root.openedViaHover=!1,this.root.hasInteractedWithContent=!0;return}o(this.#o)&&this.opts.openOnHover.current&&this.root.opts.open.current&&(this.root.hoverCooldown=!0),this.root.hoverCooldown&&!this.root.opts.open.current&&(this.root.hoverCooldown=!1),this.root.toggleOpen()}}onkeydown(t){this.opts.disabled.current||(t.key===Oe||t.key===ke)&&(t.preventDefault(),this.#a(),this.root.toggleOpen())}#h(){if(this.root.opts.open.current&&this.root.contentNode?.id)return this.root.contentNode?.id}#i=T(()=>({id:this.opts.id.current,"aria-haspopup":"dialog","aria-expanded":Te(this.root.opts.open.current),"data-state":ue(this.root.opts.open.current),"aria-controls":this.#h(),[qt.trigger]:"",disabled:this.opts.disabled.current,onkeydown:this.onkeydown,onclick:this.onclick,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment}));get props(){return o(this.#i)}set props(t){c(this.#i,t)}}class te{static create(t){return new te(t,Jt.get())}opts;root;attachment;constructor(t,e){this.opts=t,this.root=e,this.attachment=de(this.opts.ref,s=>this.root.contentNode=s),this.onpointerdown=this.onpointerdown.bind(this),this.onfocusin=this.onfocusin.bind(this),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this),new qe({triggerNode:()=>this.root.triggerNode,contentNode:()=>this.root.contentNode,enabled:()=>this.root.opts.open.current&&this.root.openedViaHover&&!this.root.hasInteractedWithContent,onPointerExit:()=>{this.root.handleDelayedHoverClose()}})}onpointerdown(t){this.root.markInteraction()}onfocusin(t){const e=t.target;gt(e)&&De(e)&&this.root.markInteraction()}onpointerenter(t){Yt(t)||this.root.cancelDelayedClose()}onpointerleave(t){Yt(t)}onInteractOutside=t=>{if(this.opts.onInteractOutside.current(t),t.defaultPrevented||!gt(t.target))return;const e=t.target.closest(qt.selector("trigger"));if(!(e&&e===this.root.triggerNode)){if(this.opts.customAnchor.current){if(gt(this.opts.customAnchor.current)){if(this.opts.customAnchor.current.contains(t.target))return}else if(typeof this.opts.customAnchor.current=="string"){const s=document.querySelector(this.opts.customAnchor.current);if(s&&s.contains(t.target))return}}this.root.handleClose()}};onEscapeKeydown=t=>{this.opts.onEscapeKeydown.current(t),!t.defaultPrevented&&this.root.handleClose()};get shouldRender(){return this.root.contentPresence.shouldRender}get shouldTrapFocus(){return!(this.root.openedViaHover&&!this.root.hasInteractedWithContent)}#t=T(()=>({open:this.root.opts.open.current}));get snippetProps(){return o(this.#t)}set snippetProps(t){c(this.#t,t)}#n=T(()=>({id:this.opts.id.current,tabindex:-1,"data-state":ue(this.root.opts.open.current),[qt.content]:"",style:{pointerEvents:"auto",contain:"layout style"},onpointerdown:this.onpointerdown,onfocusin:this.onfocusin,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment}));get props(){return o(this.#n)}set props(t){c(this.#n,t)}popperProps={onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown}}var Ge=I("<div><div><!></div></div>"),Ue=I("<div><div><!></div></div>");function Ze(v,t){const e=le();_t(t,!0);let s=f(t,"ref",15,null),n=f(t,"id",19,()=>ce(e)),r=f(t,"forceMount",3,!1),d=f(t,"onOpenAutoFocus",3,xt),i=f(t,"onCloseAutoFocus",3,xt),p=f(t,"onEscapeKeydown",3,xt),P=f(t,"onInteractOutside",3,xt),y=f(t,"trapFocus",3,!0),a=f(t,"preventScroll",3,!1),l=f(t,"customAnchor",3,null),x=he(t,["$$slots","$$events","$$legacy","child","children","ref","id","forceMount","onOpenAutoFocus","onCloseAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","customAnchor","style"]);const H=te.create({id:D(()=>n()),ref:D(()=>s(),O=>s(O)),onInteractOutside:D(()=>P()),onEscapeKeydown:D(()=>p()),customAnchor:D(()=>l())}),ot=T(()=>Bt(x,H.props)),Ct=T(()=>y()&&H.shouldTrapFocus);function wt(O){H.shouldTrapFocus||O.preventDefault(),d()(O)}var N=j(),q=A(N);{var B=O=>{ze(O,ee(()=>o(ot),()=>H.popperProps,{get ref(){return H.opts.ref},get enabled(){return H.root.opts.open.current},get id(){return n()},get trapFocus(){return o(Ct)},get preventScroll(){return a()},loop:!0,forceMount:!0,get customAnchor(){return l()},onOpenAutoFocus:wt,get onCloseAutoFocus(){return i()},get shouldRender(){return H.shouldRender},popper:(pt,nt)=>{let ft=()=>nt?.().props,st=()=>nt?.().wrapperProps;const it=T(()=>Bt(ft(),{style:se("popover")},{style:t.style}));var at=j(),Tt=A(at);{var Dt=V=>{var M=j(),E=A(M);{let J=T(()=>({props:o(it),wrapperProps:st(),...H.snippetProps}));ut(E,()=>t.child,()=>o(J))}u(V,M)},Pt=V=>{var M=Ge();ct(M,()=>({...st()}));var E=g(M);ct(E,()=>({...o(it)}));var J=g(E);ut(J,()=>t.children??Kt),_(E),_(M),u(V,M)};S(Tt,V=>{t.child?V(Dt):V(Pt,!1)})}u(pt,at)},$$slots:{popper:!0}}))},rt=O=>{Fe(O,ee(()=>o(ot),()=>H.popperProps,{get ref(){return H.opts.ref},get open(){return H.root.opts.open.current},get id(){return n()},get trapFocus(){return o(Ct)},get preventScroll(){return a()},loop:!0,forceMount:!1,get customAnchor(){return l()},onOpenAutoFocus:wt,get onCloseAutoFocus(){return i()},get shouldRender(){return H.shouldRender},popper:(pt,nt)=>{let ft=()=>nt?.().props,st=()=>nt?.().wrapperProps;const it=T(()=>Bt(ft(),{style:se("popover")},{style:t.style}));var at=j(),Tt=A(at);{var Dt=V=>{var M=j(),E=A(M);{let J=T(()=>({props:o(it),wrapperProps:st(),...H.snippetProps}));ut(E,()=>t.child,()=>o(J))}u(V,M)},Pt=V=>{var M=Ue();ct(M,()=>({...st()}));var E=g(M);ct(E,()=>({...o(it)}));var J=g(E);ut(J,()=>t.children??Kt),_(E),_(M),u(V,M)};S(Tt,V=>{t.child?V(Dt):V(Pt,!1)})}u(pt,at)},$$slots:{popper:!0}}))};S(q,O=>{r()?O(B):r()||O(rt,1)})}u(v,N),yt()}var Je=I("<button><!></button>");function Qe(v,t){const e=le();_t(t,!0);let s=f(t,"id",19,()=>ce(e)),n=f(t,"ref",15,null),r=f(t,"type",3,"button"),d=f(t,"disabled",3,!1),i=f(t,"openOnHover",3,!1),p=f(t,"openDelay",3,700),P=f(t,"closeDelay",3,300),y=he(t,["$$slots","$$events","$$legacy","children","child","id","ref","type","disabled","openOnHover","openDelay","closeDelay"]);const a=Rt.create({id:D(()=>s()),ref:D(()=>n(),x=>n(x)),disabled:D(()=>!!d()),openOnHover:D(()=>i()),openDelay:D(()=>p()),closeDelay:D(()=>P())}),l=T(()=>Bt(y,a.props,{type:r()}));Ee(v,{get id(){return s()},get ref(){return a.opts.ref},children:(x,H)=>{var ot=j(),Ct=A(ot);{var wt=q=>{var B=j(),rt=A(B);ut(rt,()=>t.child,()=>({props:o(l)})),u(q,B)},N=q=>{var B=Je();ct(B,()=>({...o(l)}));var rt=g(B);ut(rt,()=>t.children??Kt),_(B),u(q,B)};S(Ct,q=>{t.child?q(wt):q(N,!1)})}u(x,ot)},$$slots:{default:!0}}),yt()}function Re(v,t){_t(t,!0);let e=f(t,"open",15,!1),s=f(t,"onOpenChange",3,xt),n=f(t,"onOpenChangeComplete",3,xt);Qt.create({open:D(()=>e(),r=>{e(r),s()(r)}),onOpenChangeComplete:D(()=>n())}),Se(v,{children:(r,d)=>{var i=j(),p=A(i);ut(p,()=>t.children??Kt),u(r,i)},$$slots:{default:!0}}),yt()}var to=Ot("<title> </title>"),eo=Ot('<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 oo(v,t){const e=Vt(t,["children","$$slots","$$events","$$legacy"]),s=Vt(e,["size","title"]);_t(t,!1);const n=Mt(),r=Mt();let d=f(t,"size",8,16),i=f(t,"title",8,void 0);At(()=>(et(e),et(i())),()=>{c(n,e["aria-label"]||e["aria-labelledby"]||i())}),At(()=>(o(n),et(e)),()=>{c(r,{"aria-hidden":o(n)?void 0:!0,role:o(n)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),Gt(),Ut();var p=eo();ct(p,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:d(),height:d(),...o(r),...s}));var P=g(p);{var y=a=>{var l=to(),x=g(l,!0);_(l),dt(()=>Ht(x,i())),u(a,l)};S(P,a=>{i()&&a(y)})}Z(3),_(p),u(v,p),yt()}var ro=Ot("<title> </title>"),no=Ot('<svg><!><path d="M10 6H28V8H10z"></path><path d="M10 24H28V26H10z"></path><path d="M10 15H28V17H10z"></path><path d="M4 15H6V17H4z"></path><path d="M4 6H6V8H4z"></path><path d="M4 24H6V26H4z"></path></svg>');function so(v,t){const e=Vt(t,["children","$$slots","$$events","$$legacy"]),s=Vt(e,["size","title"]);_t(t,!1);const n=Mt(),r=Mt();let d=f(t,"size",8,16),i=f(t,"title",8,void 0);At(()=>(et(e),et(i())),()=>{c(n,e["aria-label"]||e["aria-labelledby"]||i())}),At(()=>(o(n),et(e)),()=>{c(r,{"aria-hidden":o(n)?void 0:!0,role:o(n)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),Gt(),Ut();var p=no();ct(p,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:d(),height:d(),...o(r),...s}));var P=g(p);{var y=a=>{var l=ro(),x=g(l,!0);_(l),dt(()=>Ht(x,i())),u(a,l)};S(P,a=>{i()&&a(y)})}Z(6),_(p),u(v,p),yt()}var io=Ot("<title> </title>"),ao=Ot('<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 lo(v,t){const e=Vt(t,["children","$$slots","$$events","$$legacy"]),s=Vt(e,["size","title"]);_t(t,!1);const n=Mt(),r=Mt();let d=f(t,"size",8,16),i=f(t,"title",8,void 0);At(()=>(et(e),et(i())),()=>{c(n,e["aria-label"]||e["aria-labelledby"]||i())}),At(()=>(o(n),et(e)),()=>{c(r,{"aria-hidden":o(n)?void 0:!0,role:o(n)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),Gt(),Ut();var p=ao();ct(p,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:d(),height:d(),...o(r),...s}));var P=g(p);{var y=a=>{var l=io(),x=g(l,!0);_(l),dt(()=>Ht(x,i())),u(a,l)};S(P,a=>{i()&&a(y)})}Z(),_(p),u(v,p),yt()}const ho=Re,uo=Qe,co=Ze;var po=I('<div class="tab active svelte-r6dy5f"><input class="tab-rename-input svelte-r6dy5f"/></div>'),fo=I('<span class="tab-close svelte-r6dy5f" title="Close"><!></span>'),vo=I('<button><span class="tab-label svelte-r6dy5f"> </span> <!></button>'),mo=I('<span class="tab-close svelte-r6dy5f" title="Close"><!></span>'),bo=I('<button><span class="tab-label svelte-r6dy5f"> </span> <!></button>'),go=I("<!> <span>New View</span>",1),_o=I('<button class="add-view-option svelte-r6dy5f"><!> List</button> <button class="add-view-option svelte-r6dy5f"><!> Calendar</button>',1),yo=I("<!> <!>",1),Co=I("<!> <!>",1),wo=I("<!> <!>",1),Po=I("<!> <!>",1),xo=I('<div class="tab-bar svelte-r6dy5f"><div class="tabs-scroll svelte-r6dy5f"><button><span class="tab-label svelte-r6dy5f">Home</span></button> <button><span class="tab-label svelte-r6dy5f">Graph</span></button> <!> <!> <!></div> <div class="bar-right svelte-r6dy5f"><!> <!></div></div> <!>',1);function Bo(v,t){_t(t,!0);let e=f(t,"activeView",3,"entity");const s=me("chat");function n(h){oe(h,{noScroll:!0})}const r=T(()=>U.selectedId!==null),d=T(()=>{if(!U.selectedRepo||!U.selectedId)return"";for(const h of He.repos){if(h.name!==U.selectedRepo)continue;const m=h.entities.find(C=>C.id===U.selectedId);if(m)return m.title}return U.selectedId.replace(/-/g," ").replace(/\b\w/g,h=>h.toUpperCase())});function i(){U.deselect(),n("/")}let p=F(!1);async function P(h){c(p,!1);const m=h==="calendar"?"Calendar":"List",C=await $t.create(m,h);oe(`/views/${C.id}`)}let y=F(null),a=F(""),l=F(null),x=F(!1);function H(h){c(x,!1),c(y,h.id,!0),c(a,h.name,!0)}be(()=>{o(y)&&o(l)&&(o(l).focus(),o(l).select(),setTimeout(()=>{c(x,!0)},50))});function ot(){o(x)&&(o(y)&&o(a).trim()&&$t.update(o(y),{name:o(a).trim()}),c(y,null),c(x,!1))}function Ct(){c(y,null),c(x,!1)}function wt(h){h.key==="Enter"&&(h.preventDefault(),c(x,!0),ot()),h.key==="Escape"&&(h.preventDefault(),Ct())}let N=F(null);function q(h,m){h.stopPropagation(),c(N,m,!0)}async function B(){o(N)&&(await $t.remove(o(N).id),c(N,null))}var rt=xo(),O=A(rt),kt=g(O),pt=g(kt);let nt;var ft=z(pt,2);let st;var it=z(ft,2);Ce(it,17,()=>$t.views,h=>h.id,(h,m)=>{var C=j(),Q=A(C);{var R=W=>{var k=po(),b=g(k);ge(b),ye(b,w=>c(l,w),()=>o(l)),_(k),dt(w=>_e(b,"size",w),[()=>Math.max(o(a).length,1)]),L("keydown",b,wt),L("input",b,w=>{c(a,w.currentTarget.value,!0)}),ve("blur",b,ot),we(b,()=>o(a),w=>c(a,w)),u(W,k)},tt=W=>{const k=T(()=>e()==="view"&&U.activeViewId===o(m).id);var b=vo();let w;var lt=g(b),$=g(lt,!0);_(lt);var K=z(lt,2);{var It=Y=>{var G=fo(),zt=g(G);re(zt,{size:12}),_(G),L("click",G,Lt=>q(Lt,o(m))),u(Y,G)};S(K,Y=>{o(k)&&Y(It)})}_(b),dt(()=>{w=Wt(b,1,"tab svelte-r6dy5f",null,w,{"tab-permanent":!o(k),active:o(k)}),Ht($,o(m).name)}),L("click",b,()=>n(`/views/${o(m).id}`)),L("dblclick",b,()=>H(o(m))),u(W,b)};S(Q,W=>{o(y)===o(m).id?W(R):W(tt,!1)})}u(h,C)});var at=z(it,2);{var Tt=h=>{const m=T(()=>e()==="entity"&&o(r));var C=bo();let Q;var R=g(C),tt=g(R,!0);_(R);var W=z(R,2);{var k=b=>{var w=mo(),lt=g(w);re(lt,{size:12}),_(w),L("click",w,$=>{$.stopPropagation(),i()}),u(b,w)};S(W,b=>{o(m)&&b(k)})}_(C),dt(()=>{Q=Wt(C,1,"tab svelte-r6dy5f",null,Q,{"tab-permanent":!o(m),active:o(m)}),Ht(tt,o(d))}),L("click",C,()=>n(U.entityPath??"/")),u(h,C)};S(at,h=>{o(r)&&h(Tt)})}var Dt=z(at,2);X(Dt,()=>ho,(h,m)=>{m(h,{get open(){return o(p)},set open(C){c(p,C,!0)},children:(C,Q)=>{var R=yo(),tt=A(R);X(tt,()=>uo,(k,b)=>{b(k,{class:"new-view-btn",title:"New view",children:(w,lt)=>{var $=go(),K=A($);xe(K,{size:16}),Z(2),u(w,$)},$$slots:{default:!0}})});var W=z(tt,2);X(W,()=>co,(k,b)=>{b(k,{class:"add-view-menu",sideOffset:4,align:"start",children:(w,lt)=>{var $=_o(),K=A($),It=g(K);so(It,{size:14}),Z(),_(K);var Y=z(K,2),G=g(Y);lo(G,{size:14}),Z(),_(Y),L("click",K,()=>P("list")),L("click",Y,()=>P("calendar")),u(w,$)},$$slots:{default:!0}})}),u(C,R)},$$slots:{default:!0}})}),_(kt);var Pt=z(kt,2),V=g(Pt);{var M=h=>{var m=j(),C=A(m);ut(C,()=>t.right),u(h,m)};S(V,h=>{t.right&&h(M)})}var E=z(V,2);{var J=h=>{Pe(h,{variant:"accent",size:"icon",class:"chat-toggle",title:"Open Agent",get onclick(){return s.toggle},children:(m,C)=>{oo(m,{size:14})},$$slots:{default:!0}})};S(E,h=>{s.open||h(J)})}_(Pt),_(O);var pe=z(O,2);{let h=T(()=>!!o(N));X(pe,()=>Xe,(m,C)=>{C(m,{get open(){return o(h)},onOpenChange:Q=>{Q||c(N,null)},children:(Q,R)=>{var tt=j(),W=A(tt);X(W,()=>Ne,(k,b)=>{b(k,{children:(w,lt)=>{var $=Po(),K=A($);X(K,()=>We,(Y,G)=>{G(Y,{children:(zt,Lt)=>{var Ft=Co(),Et=A(Ft);X(Et,()=>$e,(vt,mt)=>{mt(vt,{children:(bt,jt)=>{Z();var ht=Nt("Delete view?");u(bt,ht)},$$slots:{default:!0}})});var Xt=z(Et,2);X(Xt,()=>Be,(vt,mt)=>{mt(vt,{children:(bt,jt)=>{Z();var ht=Nt();dt(()=>Ht(ht,`The view "${o(N)?.name??""}" will be permanently deleted.`)),u(bt,ht)},$$slots:{default:!0}})}),u(zt,Ft)},$$slots:{default:!0}})});var It=z(K,2);X(It,()=>Ke,(Y,G)=>{G(Y,{children:(zt,Lt)=>{var Ft=wo(),Et=A(Ft);X(Et,()=>Ye,(vt,mt)=>{mt(vt,{children:(bt,jt)=>{Z();var ht=Nt("Cancel");u(bt,ht)},$$slots:{default:!0}})});var Xt=z(Et,2);X(Xt,()=>Le,(vt,mt)=>{mt(vt,{onclick:B,children:(bt,jt)=>{Z();var ht=Nt("Delete");u(bt,ht)},$$slots:{default:!0}})}),u(zt,Ft)},$$slots:{default:!0}})}),u(w,$)},$$slots:{default:!0}})}),u(Q,tt)},$$slots:{default:!0}})})}dt(()=>{nt=Wt(pt,1,"tab tab-permanent svelte-r6dy5f",null,nt,{active:e()==="entity"&&!o(r)}),st=Wt(ft,1,"tab tab-permanent svelte-r6dy5f",null,st,{active:e()==="graph"})}),L("click",pt,()=>{U.deselect(),n("/")}),L("click",ft,()=>e()!=="graph"&&n("/graph")),u(v,rt),yt()}fe(["click","keydown","input","dblclick"]);export{co as C,ho as R,uo as T,Bo as V,lo as a};
1
+ import{o as St,p as le,c as j,a as u,b as I,s as Ht,f as Ot,d as fe,e as L,t as Nt,g as ve}from"./BdF6nRVd.js";import{e as F,s as c,g as o,a4 as T,p as _t,a0 as A,b as yt,c as g,ae as Kt,r as _,l as At,d as et,a as Gt,n as Z,m as Mt,t as dt,a1 as me,a2 as be,a3 as z}from"./sZJoCX5N.js";import{s as ut,a as ct,r as ge,b as _e}from"./BKUmpdNY.js";import{i as S,b as ye}from"./BSSN_IAc.js";import{e as Ce}from"./gawey_BW.js";import{c as X}from"./4uEV2Hr-.js";import{s as Wt}from"./OZfYVFGq.js";import{b as we,B as Pe}from"./9rXsO0Bz.js";import{p as f,s as ee,r as he,l as Vt}from"./DNrFMx27.js";import{g as oe}from"./oTvbmuuZ.js";import{i as Ut}from"./faGDeGnG.js";import{A as xe,C as re}from"./B4jNhkRC.js";import{n as U}from"./CkIXD8Ce.js";import{v as $t}from"./BBKkjbG3.js";import{w as He}from"./DvmL5xMZ.js";import{w as Zt,g as Ae,i as gt,C as Me,a as de,D as Ve,b as Yt,E as Oe,S as ke,c as ue,d as Te,e as De,P as ne,f as D,h as Ie,j as ce,n as xt,k as ze,l as Fe,m as Bt,o as se,F as Ee,p as Se,A as Ne,q as We,r as $e,s as Be,t as Ke,u as Ye,v as Le,x as Xe}from"./BdOJnB5W.js";function ie(v,t){const[e,s]=v;let n=!1;const r=t.length;for(let d=0,i=r-1;d<r;i=d++){const[p,P]=t[d]??[0,0],[y,a]=t[i]??[0,0];P>=s!=a>=s&&e<=(y-p)*(s-P)/(a-P)+p&&(n=!n)}return n}function ae(v,t){return v[0]>=t.left&&v[0]<=t.right&&v[1]>=t.top&&v[1]<=t.bottom}function je(v,t){const e=v.left+v.width/2,s=v.top+v.height/2,n=t.left+t.width/2,r=t.top+t.height/2,d=n-e,i=r-s;return Math.abs(d)>Math.abs(i)?d>0?"right":"left":i>0?"bottom":"top"}class qe{#t;#n;#o=null;#e=null;#s=null;#a(){this.#s!==null&&(cancelAnimationFrame(this.#s),this.#s=null)}#h(){this.#a(),this.#s=requestAnimationFrame(()=>{this.#s=null,!(!this.#o||!this.#e)&&(this.#r(),this.#t.onPointerExit())})}constructor(t){this.#t=t,this.#n=t.buffer??1,Zt([t.triggerNode,t.contentNode,t.enabled],([e,s,n])=>{if(!e||!s||!n){this.#r();return}const r=Ae(e),d=a=>{this.#i([a.clientX,a.clientY],e,s)},i=a=>{const l=a.relatedTarget;if(gt(l)&&s.contains(l))return;const x=this.#t.ignoredTargets?.()??[];if(!(gt(l)&&x.some(H=>H===l||H.contains(l)))){if(gt(l)&&!e.contains(l)&&!s.contains(l)&&!l.contains(s)){this.#r(),this.#t.onPointerExit();return}this.#o=[a.clientX,a.clientY],this.#e="content",this.#h()}},p=()=>{this.#r()},P=()=>{this.#r()},y=a=>{const l=a.relatedTarget;gt(l)&&e.contains(l)||(this.#o=[a.clientX,a.clientY],this.#e="trigger",this.#h())};return[St(r,"pointermove",d),St(e,"pointerleave",i),St(e,"pointerenter",p),St(s,"pointerenter",P),St(s,"pointerleave",y)].reduce((a,l)=>()=>{a(),l()},()=>{})})}#i(t,e,s){if(!this.#o||!this.#e)return;this.#a();const n=e.getBoundingClientRect(),r=s.getBoundingClientRect();if(this.#e==="content"&&ae(t,r)){this.#r();return}if(this.#e==="trigger"&&ae(t,n)){this.#r();return}const d=je(n,r),i=this.#l(n,r,d);if(i&&ie(t,i))return;const p=this.#e==="content"?r:n,P=this.#d(this.#o,p,d,this.#e);ie(t,P)||(this.#r(),this.#t.onPointerExit())}#r(){this.#o=null,this.#e=null,this.#a()}#l(t,e,s){const n=this.#n;switch(s){case"top":return[[Math.min(t.left,e.left)-n,t.top],[Math.min(t.left,e.left)-n,e.bottom],[Math.max(t.right,e.right)+n,e.bottom],[Math.max(t.right,e.right)+n,t.top]];case"bottom":return[[Math.min(t.left,e.left)-n,t.bottom],[Math.min(t.left,e.left)-n,e.top],[Math.max(t.right,e.right)+n,e.top],[Math.max(t.right,e.right)+n,t.bottom]];case"left":return[[t.left,Math.min(t.top,e.top)-n],[e.right,Math.min(t.top,e.top)-n],[e.right,Math.max(t.bottom,e.bottom)+n],[t.left,Math.max(t.bottom,e.bottom)+n]];case"right":return[[t.right,Math.min(t.top,e.top)-n],[e.left,Math.min(t.top,e.top)-n],[e.left,Math.max(t.bottom,e.bottom)+n],[t.right,Math.max(t.bottom,e.bottom)+n]]}}#d(t,e,s,n){const r=this.#n*4,[d,i]=t;switch(n==="trigger"?this.#u(s):s){case"top":return[[d-r,i+r],[d+r,i+r],[e.right+r,e.bottom],[e.right+r,e.top],[e.left-r,e.top],[e.left-r,e.bottom]];case"bottom":return[[d-r,i-r],[d+r,i-r],[e.right+r,e.top],[e.right+r,e.bottom],[e.left-r,e.bottom],[e.left-r,e.top]];case"left":return[[d+r,i-r],[d+r,i+r],[e.right,e.bottom+r],[e.left,e.bottom+r],[e.left,e.top-r],[e.right,e.top-r]];case"right":return[[d-r,i-r],[d-r,i+r],[e.left,e.bottom+r],[e.right,e.bottom+r],[e.right,e.top-r],[e.left,e.top-r]]}}#u(t){switch(t){case"top":return"bottom";case"bottom":return"top";case"left":return"right";case"right":return"left"}}}const qt=Ie({component:"popover",parts:["root","trigger","content","close","overlay"]}),Jt=new Me("Popover.Root");class Qt{static create(t){return Jt.set(new Qt(t))}opts;#t=F(null);get contentNode(){return o(this.#t)}set contentNode(t){c(this.#t,t,!0)}contentPresence;#n=F(null);get triggerNode(){return o(this.#n)}set triggerNode(t){c(this.#n,t,!0)}#o=F(null);get overlayNode(){return o(this.#o)}set overlayNode(t){c(this.#o,t,!0)}overlayPresence;#e=F(!1);get openedViaHover(){return o(this.#e)}set openedViaHover(t){c(this.#e,t,!0)}#s=F(!1);get hasInteractedWithContent(){return o(this.#s)}set hasInteractedWithContent(t){c(this.#s,t,!0)}#a=F(!1);get hoverCooldown(){return o(this.#a)}set hoverCooldown(t){c(this.#a,t,!0)}#h=F(0);get closeDelay(){return o(this.#h)}set closeDelay(t){c(this.#h,t,!0)}#i=null;#r=null;constructor(t){this.opts=t,this.contentPresence=new ne({ref:D(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new ne({ref:D(()=>this.overlayNode),open:this.opts.open}),Zt(()=>this.opts.open.current,e=>{e||(this.openedViaHover=!1,this.hasInteractedWithContent=!1,this.#l())})}setDomContext(t){this.#r=t}#l(){this.#i!==null&&this.#r&&(this.#r.clearTimeout(this.#i),this.#i=null)}toggleOpen(){this.#l(),this.opts.open.current=!this.opts.open.current}handleClose(){this.#l(),this.opts.open.current&&(this.opts.open.current=!1)}handleHoverOpen(){this.#l(),!this.opts.open.current&&(this.openedViaHover=!0,this.opts.open.current=!0)}handleHoverClose(){this.opts.open.current&&this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1)}handleDelayedHoverClose(){this.opts.open.current&&(!this.openedViaHover||this.hasInteractedWithContent||(this.#l(),this.closeDelay<=0?this.opts.open.current=!1:this.#r&&(this.#i=this.#r.setTimeout(()=>{this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1),this.#i=null},this.closeDelay))))}cancelDelayedClose(){this.#l()}markInteraction(){this.hasInteractedWithContent=!0,this.#l()}}class Rt{static create(t){return new Rt(t,Jt.get())}opts;root;attachment;domContext;#t=null;#n=null;#o=F(!1);constructor(t,e){this.opts=t,this.root=e,this.attachment=de(this.opts.ref,s=>this.root.triggerNode=s),this.domContext=new Ve(t.ref),this.root.setDomContext(this.domContext),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this),Zt(()=>this.opts.closeDelay.current,s=>{this.root.closeDelay=s})}#e(){this.#t!==null&&(this.domContext.clearTimeout(this.#t),this.#t=null)}#s(){this.#n!==null&&(this.domContext.clearTimeout(this.#n),this.#n=null)}#a(){this.#e(),this.#s()}onpointerenter(t){if(this.opts.disabled.current||!this.opts.openOnHover.current||Yt(t)||(c(this.#o,!0),this.#s(),this.root.cancelDelayedClose(),this.root.opts.open.current||this.root.hoverCooldown))return;const e=this.opts.openDelay.current;e<=0?this.root.handleHoverOpen():this.#t=this.domContext.setTimeout(()=>{this.root.handleHoverOpen(),this.#t=null},e)}onpointerleave(t){this.opts.disabled.current||this.opts.openOnHover.current&&(Yt(t)||(c(this.#o,!1),this.#e(),this.root.hoverCooldown=!1))}onclick(t){if(!this.opts.disabled.current&&t.button===0){if(this.#a(),o(this.#o)&&this.root.opts.open.current&&this.root.openedViaHover){this.root.openedViaHover=!1,this.root.hasInteractedWithContent=!0;return}o(this.#o)&&this.opts.openOnHover.current&&this.root.opts.open.current&&(this.root.hoverCooldown=!0),this.root.hoverCooldown&&!this.root.opts.open.current&&(this.root.hoverCooldown=!1),this.root.toggleOpen()}}onkeydown(t){this.opts.disabled.current||(t.key===Oe||t.key===ke)&&(t.preventDefault(),this.#a(),this.root.toggleOpen())}#h(){if(this.root.opts.open.current&&this.root.contentNode?.id)return this.root.contentNode?.id}#i=T(()=>({id:this.opts.id.current,"aria-haspopup":"dialog","aria-expanded":Te(this.root.opts.open.current),"data-state":ue(this.root.opts.open.current),"aria-controls":this.#h(),[qt.trigger]:"",disabled:this.opts.disabled.current,onkeydown:this.onkeydown,onclick:this.onclick,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment}));get props(){return o(this.#i)}set props(t){c(this.#i,t)}}class te{static create(t){return new te(t,Jt.get())}opts;root;attachment;constructor(t,e){this.opts=t,this.root=e,this.attachment=de(this.opts.ref,s=>this.root.contentNode=s),this.onpointerdown=this.onpointerdown.bind(this),this.onfocusin=this.onfocusin.bind(this),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this),new qe({triggerNode:()=>this.root.triggerNode,contentNode:()=>this.root.contentNode,enabled:()=>this.root.opts.open.current&&this.root.openedViaHover&&!this.root.hasInteractedWithContent,onPointerExit:()=>{this.root.handleDelayedHoverClose()}})}onpointerdown(t){this.root.markInteraction()}onfocusin(t){const e=t.target;gt(e)&&De(e)&&this.root.markInteraction()}onpointerenter(t){Yt(t)||this.root.cancelDelayedClose()}onpointerleave(t){Yt(t)}onInteractOutside=t=>{if(this.opts.onInteractOutside.current(t),t.defaultPrevented||!gt(t.target))return;const e=t.target.closest(qt.selector("trigger"));if(!(e&&e===this.root.triggerNode)){if(this.opts.customAnchor.current){if(gt(this.opts.customAnchor.current)){if(this.opts.customAnchor.current.contains(t.target))return}else if(typeof this.opts.customAnchor.current=="string"){const s=document.querySelector(this.opts.customAnchor.current);if(s&&s.contains(t.target))return}}this.root.handleClose()}};onEscapeKeydown=t=>{this.opts.onEscapeKeydown.current(t),!t.defaultPrevented&&this.root.handleClose()};get shouldRender(){return this.root.contentPresence.shouldRender}get shouldTrapFocus(){return!(this.root.openedViaHover&&!this.root.hasInteractedWithContent)}#t=T(()=>({open:this.root.opts.open.current}));get snippetProps(){return o(this.#t)}set snippetProps(t){c(this.#t,t)}#n=T(()=>({id:this.opts.id.current,tabindex:-1,"data-state":ue(this.root.opts.open.current),[qt.content]:"",style:{pointerEvents:"auto",contain:"layout style"},onpointerdown:this.onpointerdown,onfocusin:this.onfocusin,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment}));get props(){return o(this.#n)}set props(t){c(this.#n,t)}popperProps={onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown}}var Ge=I("<div><div><!></div></div>"),Ue=I("<div><div><!></div></div>");function Ze(v,t){const e=le();_t(t,!0);let s=f(t,"ref",15,null),n=f(t,"id",19,()=>ce(e)),r=f(t,"forceMount",3,!1),d=f(t,"onOpenAutoFocus",3,xt),i=f(t,"onCloseAutoFocus",3,xt),p=f(t,"onEscapeKeydown",3,xt),P=f(t,"onInteractOutside",3,xt),y=f(t,"trapFocus",3,!0),a=f(t,"preventScroll",3,!1),l=f(t,"customAnchor",3,null),x=he(t,["$$slots","$$events","$$legacy","child","children","ref","id","forceMount","onOpenAutoFocus","onCloseAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","customAnchor","style"]);const H=te.create({id:D(()=>n()),ref:D(()=>s(),O=>s(O)),onInteractOutside:D(()=>P()),onEscapeKeydown:D(()=>p()),customAnchor:D(()=>l())}),ot=T(()=>Bt(x,H.props)),Ct=T(()=>y()&&H.shouldTrapFocus);function wt(O){H.shouldTrapFocus||O.preventDefault(),d()(O)}var N=j(),q=A(N);{var B=O=>{ze(O,ee(()=>o(ot),()=>H.popperProps,{get ref(){return H.opts.ref},get enabled(){return H.root.opts.open.current},get id(){return n()},get trapFocus(){return o(Ct)},get preventScroll(){return a()},loop:!0,forceMount:!0,get customAnchor(){return l()},onOpenAutoFocus:wt,get onCloseAutoFocus(){return i()},get shouldRender(){return H.shouldRender},popper:(pt,nt)=>{let ft=()=>nt?.().props,st=()=>nt?.().wrapperProps;const it=T(()=>Bt(ft(),{style:se("popover")},{style:t.style}));var at=j(),Tt=A(at);{var Dt=V=>{var M=j(),E=A(M);{let J=T(()=>({props:o(it),wrapperProps:st(),...H.snippetProps}));ut(E,()=>t.child,()=>o(J))}u(V,M)},Pt=V=>{var M=Ge();ct(M,()=>({...st()}));var E=g(M);ct(E,()=>({...o(it)}));var J=g(E);ut(J,()=>t.children??Kt),_(E),_(M),u(V,M)};S(Tt,V=>{t.child?V(Dt):V(Pt,!1)})}u(pt,at)},$$slots:{popper:!0}}))},rt=O=>{Fe(O,ee(()=>o(ot),()=>H.popperProps,{get ref(){return H.opts.ref},get open(){return H.root.opts.open.current},get id(){return n()},get trapFocus(){return o(Ct)},get preventScroll(){return a()},loop:!0,forceMount:!1,get customAnchor(){return l()},onOpenAutoFocus:wt,get onCloseAutoFocus(){return i()},get shouldRender(){return H.shouldRender},popper:(pt,nt)=>{let ft=()=>nt?.().props,st=()=>nt?.().wrapperProps;const it=T(()=>Bt(ft(),{style:se("popover")},{style:t.style}));var at=j(),Tt=A(at);{var Dt=V=>{var M=j(),E=A(M);{let J=T(()=>({props:o(it),wrapperProps:st(),...H.snippetProps}));ut(E,()=>t.child,()=>o(J))}u(V,M)},Pt=V=>{var M=Ue();ct(M,()=>({...st()}));var E=g(M);ct(E,()=>({...o(it)}));var J=g(E);ut(J,()=>t.children??Kt),_(E),_(M),u(V,M)};S(Tt,V=>{t.child?V(Dt):V(Pt,!1)})}u(pt,at)},$$slots:{popper:!0}}))};S(q,O=>{r()?O(B):r()||O(rt,1)})}u(v,N),yt()}var Je=I("<button><!></button>");function Qe(v,t){const e=le();_t(t,!0);let s=f(t,"id",19,()=>ce(e)),n=f(t,"ref",15,null),r=f(t,"type",3,"button"),d=f(t,"disabled",3,!1),i=f(t,"openOnHover",3,!1),p=f(t,"openDelay",3,700),P=f(t,"closeDelay",3,300),y=he(t,["$$slots","$$events","$$legacy","children","child","id","ref","type","disabled","openOnHover","openDelay","closeDelay"]);const a=Rt.create({id:D(()=>s()),ref:D(()=>n(),x=>n(x)),disabled:D(()=>!!d()),openOnHover:D(()=>i()),openDelay:D(()=>p()),closeDelay:D(()=>P())}),l=T(()=>Bt(y,a.props,{type:r()}));Ee(v,{get id(){return s()},get ref(){return a.opts.ref},children:(x,H)=>{var ot=j(),Ct=A(ot);{var wt=q=>{var B=j(),rt=A(B);ut(rt,()=>t.child,()=>({props:o(l)})),u(q,B)},N=q=>{var B=Je();ct(B,()=>({...o(l)}));var rt=g(B);ut(rt,()=>t.children??Kt),_(B),u(q,B)};S(Ct,q=>{t.child?q(wt):q(N,!1)})}u(x,ot)},$$slots:{default:!0}}),yt()}function Re(v,t){_t(t,!0);let e=f(t,"open",15,!1),s=f(t,"onOpenChange",3,xt),n=f(t,"onOpenChangeComplete",3,xt);Qt.create({open:D(()=>e(),r=>{e(r),s()(r)}),onOpenChangeComplete:D(()=>n())}),Se(v,{children:(r,d)=>{var i=j(),p=A(i);ut(p,()=>t.children??Kt),u(r,i)},$$slots:{default:!0}}),yt()}var to=Ot("<title> </title>"),eo=Ot('<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 oo(v,t){const e=Vt(t,["children","$$slots","$$events","$$legacy"]),s=Vt(e,["size","title"]);_t(t,!1);const n=Mt(),r=Mt();let d=f(t,"size",8,16),i=f(t,"title",8,void 0);At(()=>(et(e),et(i())),()=>{c(n,e["aria-label"]||e["aria-labelledby"]||i())}),At(()=>(o(n),et(e)),()=>{c(r,{"aria-hidden":o(n)?void 0:!0,role:o(n)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),Gt(),Ut();var p=eo();ct(p,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:d(),height:d(),...o(r),...s}));var P=g(p);{var y=a=>{var l=to(),x=g(l,!0);_(l),dt(()=>Ht(x,i())),u(a,l)};S(P,a=>{i()&&a(y)})}Z(3),_(p),u(v,p),yt()}var ro=Ot("<title> </title>"),no=Ot('<svg><!><path d="M10 6H28V8H10z"></path><path d="M10 24H28V26H10z"></path><path d="M10 15H28V17H10z"></path><path d="M4 15H6V17H4z"></path><path d="M4 6H6V8H4z"></path><path d="M4 24H6V26H4z"></path></svg>');function so(v,t){const e=Vt(t,["children","$$slots","$$events","$$legacy"]),s=Vt(e,["size","title"]);_t(t,!1);const n=Mt(),r=Mt();let d=f(t,"size",8,16),i=f(t,"title",8,void 0);At(()=>(et(e),et(i())),()=>{c(n,e["aria-label"]||e["aria-labelledby"]||i())}),At(()=>(o(n),et(e)),()=>{c(r,{"aria-hidden":o(n)?void 0:!0,role:o(n)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),Gt(),Ut();var p=no();ct(p,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:d(),height:d(),...o(r),...s}));var P=g(p);{var y=a=>{var l=ro(),x=g(l,!0);_(l),dt(()=>Ht(x,i())),u(a,l)};S(P,a=>{i()&&a(y)})}Z(6),_(p),u(v,p),yt()}var io=Ot("<title> </title>"),ao=Ot('<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 lo(v,t){const e=Vt(t,["children","$$slots","$$events","$$legacy"]),s=Vt(e,["size","title"]);_t(t,!1);const n=Mt(),r=Mt();let d=f(t,"size",8,16),i=f(t,"title",8,void 0);At(()=>(et(e),et(i())),()=>{c(n,e["aria-label"]||e["aria-labelledby"]||i())}),At(()=>(o(n),et(e)),()=>{c(r,{"aria-hidden":o(n)?void 0:!0,role:o(n)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),Gt(),Ut();var p=ao();ct(p,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:d(),height:d(),...o(r),...s}));var P=g(p);{var y=a=>{var l=io(),x=g(l,!0);_(l),dt(()=>Ht(x,i())),u(a,l)};S(P,a=>{i()&&a(y)})}Z(),_(p),u(v,p),yt()}const ho=Re,uo=Qe,co=Ze;var po=I('<div class="tab active svelte-r6dy5f"><input class="tab-rename-input svelte-r6dy5f"/></div>'),fo=I('<span class="tab-close svelte-r6dy5f" title="Close"><!></span>'),vo=I('<button><span class="tab-label svelte-r6dy5f"> </span> <!></button>'),mo=I('<span class="tab-close svelte-r6dy5f" title="Close"><!></span>'),bo=I('<button><span class="tab-label svelte-r6dy5f"> </span> <!></button>'),go=I("<!> <span>New View</span>",1),_o=I('<button class="add-view-option svelte-r6dy5f"><!> List</button> <button class="add-view-option svelte-r6dy5f"><!> Calendar</button>',1),yo=I("<!> <!>",1),Co=I("<!> <!>",1),wo=I("<!> <!>",1),Po=I("<!> <!>",1),xo=I('<div class="tab-bar svelte-r6dy5f"><div class="tabs-scroll svelte-r6dy5f"><button><span class="tab-label svelte-r6dy5f">Home</span></button> <button><span class="tab-label svelte-r6dy5f">Graph</span></button> <!> <!> <!></div> <div class="bar-right svelte-r6dy5f"><!> <!></div></div> <!>',1);function Bo(v,t){_t(t,!0);let e=f(t,"activeView",3,"entity");const s=me("chat");function n(h){oe(h,{noScroll:!0})}const r=T(()=>U.selectedId!==null),d=T(()=>{if(!U.selectedRepo||!U.selectedId)return"";for(const h of He.repos){if(h.name!==U.selectedRepo)continue;const m=h.entities.find(C=>C.id===U.selectedId);if(m)return m.title}return U.selectedId.replace(/-/g," ").replace(/\b\w/g,h=>h.toUpperCase())});function i(){U.deselect(),n("/")}let p=F(!1);async function P(h){c(p,!1);const m=h==="calendar"?"Calendar":"List",C=await $t.create(m,h);oe(`/views/${C.id}`)}let y=F(null),a=F(""),l=F(null),x=F(!1);function H(h){c(x,!1),c(y,h.id,!0),c(a,h.name,!0)}be(()=>{o(y)&&o(l)&&(o(l).focus(),o(l).select(),setTimeout(()=>{c(x,!0)},50))});function ot(){o(x)&&(o(y)&&o(a).trim()&&$t.update(o(y),{name:o(a).trim()}),c(y,null),c(x,!1))}function Ct(){c(y,null),c(x,!1)}function wt(h){h.key==="Enter"&&(h.preventDefault(),c(x,!0),ot()),h.key==="Escape"&&(h.preventDefault(),Ct())}let N=F(null);function q(h,m){h.stopPropagation(),c(N,m,!0)}async function B(){o(N)&&(await $t.remove(o(N).id),c(N,null))}var rt=xo(),O=A(rt),kt=g(O),pt=g(kt);let nt;var ft=z(pt,2);let st;var it=z(ft,2);Ce(it,17,()=>$t.views,h=>h.id,(h,m)=>{var C=j(),Q=A(C);{var R=W=>{var k=po(),b=g(k);ge(b),ye(b,w=>c(l,w),()=>o(l)),_(k),dt(w=>_e(b,"size",w),[()=>Math.max(o(a).length,1)]),L("keydown",b,wt),L("input",b,w=>{c(a,w.currentTarget.value,!0)}),ve("blur",b,ot),we(b,()=>o(a),w=>c(a,w)),u(W,k)},tt=W=>{const k=T(()=>e()==="view"&&U.activeViewId===o(m).id);var b=vo();let w;var lt=g(b),$=g(lt,!0);_(lt);var K=z(lt,2);{var It=Y=>{var G=fo(),zt=g(G);re(zt,{size:12}),_(G),L("click",G,Lt=>q(Lt,o(m))),u(Y,G)};S(K,Y=>{o(k)&&Y(It)})}_(b),dt(()=>{w=Wt(b,1,"tab svelte-r6dy5f",null,w,{"tab-permanent":!o(k),active:o(k)}),Ht($,o(m).name)}),L("click",b,()=>n(`/views/${o(m).id}`)),L("dblclick",b,()=>H(o(m))),u(W,b)};S(Q,W=>{o(y)===o(m).id?W(R):W(tt,!1)})}u(h,C)});var at=z(it,2);{var Tt=h=>{const m=T(()=>e()==="entity"&&o(r));var C=bo();let Q;var R=g(C),tt=g(R,!0);_(R);var W=z(R,2);{var k=b=>{var w=mo(),lt=g(w);re(lt,{size:12}),_(w),L("click",w,$=>{$.stopPropagation(),i()}),u(b,w)};S(W,b=>{o(m)&&b(k)})}_(C),dt(()=>{Q=Wt(C,1,"tab svelte-r6dy5f",null,Q,{"tab-permanent":!o(m),active:o(m)}),Ht(tt,o(d))}),L("click",C,()=>n(U.entityPath??"/")),u(h,C)};S(at,h=>{o(r)&&h(Tt)})}var Dt=z(at,2);X(Dt,()=>ho,(h,m)=>{m(h,{get open(){return o(p)},set open(C){c(p,C,!0)},children:(C,Q)=>{var R=yo(),tt=A(R);X(tt,()=>uo,(k,b)=>{b(k,{class:"new-view-btn",title:"New view",children:(w,lt)=>{var $=go(),K=A($);xe(K,{size:16}),Z(2),u(w,$)},$$slots:{default:!0}})});var W=z(tt,2);X(W,()=>co,(k,b)=>{b(k,{class:"add-view-menu",sideOffset:4,align:"start",children:(w,lt)=>{var $=_o(),K=A($),It=g(K);so(It,{size:14}),Z(),_(K);var Y=z(K,2),G=g(Y);lo(G,{size:14}),Z(),_(Y),L("click",K,()=>P("list")),L("click",Y,()=>P("calendar")),u(w,$)},$$slots:{default:!0}})}),u(C,R)},$$slots:{default:!0}})}),_(kt);var Pt=z(kt,2),V=g(Pt);{var M=h=>{var m=j(),C=A(m);ut(C,()=>t.right),u(h,m)};S(V,h=>{t.right&&h(M)})}var E=z(V,2);{var J=h=>{Pe(h,{variant:"accent",size:"icon",class:"chat-toggle",title:"Open Agent",get onclick(){return s.toggle},children:(m,C)=>{oo(m,{size:14})},$$slots:{default:!0}})};S(E,h=>{s.open||h(J)})}_(Pt),_(O);var pe=z(O,2);{let h=T(()=>!!o(N));X(pe,()=>Xe,(m,C)=>{C(m,{get open(){return o(h)},onOpenChange:Q=>{Q||c(N,null)},children:(Q,R)=>{var tt=j(),W=A(tt);X(W,()=>Ne,(k,b)=>{b(k,{children:(w,lt)=>{var $=Po(),K=A($);X(K,()=>We,(Y,G)=>{G(Y,{children:(zt,Lt)=>{var Ft=Co(),Et=A(Ft);X(Et,()=>$e,(vt,mt)=>{mt(vt,{children:(bt,jt)=>{Z();var ht=Nt("Delete view?");u(bt,ht)},$$slots:{default:!0}})});var Xt=z(Et,2);X(Xt,()=>Be,(vt,mt)=>{mt(vt,{children:(bt,jt)=>{Z();var ht=Nt();dt(()=>Ht(ht,`The view "${o(N)?.name??""}" will be permanently deleted.`)),u(bt,ht)},$$slots:{default:!0}})}),u(zt,Ft)},$$slots:{default:!0}})});var It=z(K,2);X(It,()=>Ke,(Y,G)=>{G(Y,{children:(zt,Lt)=>{var Ft=wo(),Et=A(Ft);X(Et,()=>Ye,(vt,mt)=>{mt(vt,{children:(bt,jt)=>{Z();var ht=Nt("Cancel");u(bt,ht)},$$slots:{default:!0}})});var Xt=z(Et,2);X(Xt,()=>Le,(vt,mt)=>{mt(vt,{onclick:B,children:(bt,jt)=>{Z();var ht=Nt("Delete");u(bt,ht)},$$slots:{default:!0}})}),u(zt,Ft)},$$slots:{default:!0}})}),u(w,$)},$$slots:{default:!0}})}),u(Q,tt)},$$slots:{default:!0}})})}dt(()=>{nt=Wt(pt,1,"tab tab-permanent svelte-r6dy5f",null,nt,{active:e()==="entity"&&!o(r)}),st=Wt(ft,1,"tab tab-permanent svelte-r6dy5f",null,st,{active:e()==="graph"})}),L("click",pt,()=>{U.deselect(),n("/")}),L("click",ft,()=>e()!=="graph"&&n("/graph")),u(v,rt),yt()}fe(["click","keydown","input","dblclick"]);export{co as C,ho as R,uo as T,Bo as V,lo as a};