studiograph 1.3.44-next.36 → 1.3.44-next.38
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.
- package/dist/web/_app/immutable/assets/2.C-Abv8y2.css +1 -0
- package/dist/web/_app/immutable/chunks/{CDC9ezMi.js → BCef0pEe.js} +1 -1
- package/dist/web/_app/immutable/chunks/{g-7EoXL8.js → BYCjG6ng.js} +1 -1
- package/dist/web/_app/immutable/chunks/{rXfbB48Q.js → BgXlDvQ1.js} +1 -1
- package/dist/web/_app/immutable/chunks/ByP5sfMz.js +1 -0
- package/dist/web/_app/immutable/chunks/C2r294J6.js +5 -0
- package/dist/web/_app/immutable/chunks/CRbFl2U_.js +1 -0
- package/dist/web/_app/immutable/chunks/{vjx2pMfq.js → ChH5QYYQ.js} +1 -1
- package/dist/web/_app/immutable/chunks/Cl71QSIb.js +1 -0
- package/dist/web/_app/immutable/chunks/{u-yEVeEF.js → Czp0K6Jj.js} +1 -1
- package/dist/web/_app/immutable/chunks/{tvOsokaa.js → D4MVJfk7.js} +1 -1
- package/dist/web/_app/immutable/chunks/{oC_W7W7p.js → DGwT_04g.js} +1 -1
- package/dist/web/_app/immutable/chunks/{uLEXaPwE.js → Drq0Ff4O.js} +1 -1
- package/dist/web/_app/immutable/chunks/{DL4the85.js → G_zxnLMy.js} +1 -1
- package/dist/web/_app/immutable/chunks/Q7isgklS.js +1 -0
- package/dist/web/_app/immutable/chunks/RMTqoFZj.js +1 -0
- package/dist/web/_app/immutable/chunks/{EvOzFUJx.js → UYy36I9r.js} +1 -1
- package/dist/web/_app/immutable/chunks/{1OfEltsx.js → ytVav0Ug.js} +1 -1
- package/dist/web/_app/immutable/entry/{app.CXUyZWnn.js → app.CccsFRr3.js} +2 -2
- package/dist/web/_app/immutable/entry/start.-15L3C3p.js +1 -0
- package/dist/web/_app/immutable/nodes/{0.BJNPTvLu.js → 0.CuPSk376.js} +2 -2
- package/dist/web/_app/immutable/nodes/{1.DASHCXyf.js → 1.DELdT43Z.js} +1 -1
- package/dist/web/_app/immutable/nodes/{10.BAGEGSFn.js → 10.BK-5gila.js} +1 -1
- package/dist/web/_app/immutable/nodes/2.Cf9IVeUa.js +86 -0
- package/dist/web/_app/immutable/nodes/{3.CANN_YnE.js → 3.B6Z5XVH7.js} +1 -1
- package/dist/web/_app/immutable/nodes/{4.B3Rebtes.js → 4.C2F4gyZW.js} +6 -6
- package/dist/web/_app/immutable/nodes/{5.BIO27y9X.js → 5.CdkSvjiz.js} +1 -1
- package/dist/web/_app/immutable/nodes/{6.ppKBWpVP.js → 6.C0Le0wLH.js} +1 -1
- package/dist/web/_app/immutable/nodes/{7.CEeEvAkF.js → 7.DKLTXQRz.js} +1 -1
- package/dist/web/_app/immutable/nodes/{8.DTslfMr6.js → 8.B6uagsK1.js} +1 -1
- package/dist/web/_app/immutable/nodes/{9.CWvGq4dZ.js → 9.BsgiQGiB.js} +1 -1
- package/dist/web/_app/version.json +1 -1
- package/dist/web/index.html +6 -6
- package/package.json +1 -1
- package/dist/web/_app/immutable/assets/2.C--kJKdw.css +0 -1
- package/dist/web/_app/immutable/chunks/C9fg6uZg.js +0 -1
- package/dist/web/_app/immutable/chunks/CJUKmosC.js +0 -5
- package/dist/web/_app/immutable/chunks/Cx4YdFMk.js +0 -1
- package/dist/web/_app/immutable/chunks/DUx_3UwN.js +0 -1
- package/dist/web/_app/immutable/chunks/UjzxCpxn.js +0 -1
- package/dist/web/_app/immutable/chunks/vSaooFHB.js +0 -1
- package/dist/web/_app/immutable/entry/start.IwzcvwPX.js +0 -1
- package/dist/web/_app/immutable/nodes/2.Bg2z6qd3.js +0 -86
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.resize-handle.svelte-tfh9g9{position:absolute;top:0;bottom:0;width:6px;cursor:col-resize;z-index:10}.resize-handle.right.svelte-tfh9g9{right:-3px}.resize-handle.left.svelte-tfh9g9{left:-3px}.resize-handle.svelte-tfh9g9:hover,.resize-handle.active.svelte-tfh9g9{background:var(--color-accent);opacity:.3}.resize-handle.active.svelte-tfh9g9{opacity:.5}.sg-tooltip-content{z-index:1000;display:flex;flex-direction:column;gap:2px;padding:6px 10px;border-radius:6px;background:var(--color-bg-elevated);border:1px solid var(--color-border);box-shadow:0 4px 16px #0000004d;pointer-events:none;min-width:120px;max-width:260px;animation:svelte-1faeexm-tooltip-fade-in .1s ease-out}@keyframes svelte-1faeexm-tooltip-fade-in{0%{opacity:0;transform:translate(-4px)}to{opacity:1;transform:translate(0)}}.radio-item{position:relative;display:flex;align-items:center;justify-content:center;width:16px;height:16px;border-radius:50%;border:1.5px solid var(--color-text-tertiary);background:none;outline:none;flex-shrink:0;cursor:pointer}.radio-item[data-state=checked]{border-color:var(--color-accent)}.radio-item:focus-visible{box-shadow:0 0 0 2px var(--color-accent)}.radio-dot.svelte-l8hbh2{width:8px;height:8px;border-radius:50%;background:var(--color-accent)}.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{position:relative;flex-shrink:0;display:flex;flex-direction:column;overflow:hidden;background:var(--color-bg);border-right:1px solid var(--color-border)}.sidebar-header.svelte-6dohdz{height:var(--row-height);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:var(--row-height);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:var(--row-height);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:var(--row-height);line-height:var(--row-height);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:var(--row-height);line-height:var(--row-height);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;font-weight:400;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:var(--row-height);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:var(--row-height);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:var(--row-height);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}.transfer-header-col.svelte-6dohdz{display:flex;flex-direction:column;gap:4px}.transfer-list.svelte-6dohdz{display:flex;flex-direction:column;gap:2px}.transfer-list-item.svelte-6dohdz{display:flex;align-items:center;gap:10px;width:100%;padding:8px 12px;border-radius:6px;color:var(--color-text);font-size:13px;cursor:pointer}.transfer-list-item.svelte-6dohdz:hover{background:var(--color-bg-hover)}.entity-tooltip-trigger{display:contents}.entity-tooltip-title.svelte-6dohdz{font-size:13px;font-weight:600;color:var(--color-text-primary)}.entity-tooltip-meta.svelte-6dohdz{font-size:13px;color:var(--color-text-tertiary)}.chat-panel.svelte-1xwj6s7{position:relative;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:var(--row-height);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:var(--row-height);line-height:var(--row-height);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:var(--row-height);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:var(--row-height);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}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as i,f as y,g as r,s as n}from"./CT6oIU-C.js";import{g as l}from"./
|
|
1
|
+
import{e as i,f as y,g as r,s as n}from"./CT6oIU-C.js";import{g as l}from"./RMTqoFZj.js";import{d as v,u as V,c as F,f as h}from"./CALGIiWi.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 +1 @@
|
|
|
1
|
-
import{s as e}from"./
|
|
1
|
+
import{s as e}from"./RMTqoFZj.js";const r=()=>{const s=e;return{page:{subscribe:s.page.subscribe},navigating:{subscribe:s.navigating.subscribe},updated:s.updated}},b={subscribe(s){return r().page.subscribe(s)}};export{b as p};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{O as _,f as P,g as b,e as W,w as m,a as G,t as k,c as A,r as I,b as q,d as j,h as V,i as R,j as z,k as C,l as K,D as Q,p as X,m as Z}from"./CSVbGg_b.js";import{r as O}from"./
|
|
1
|
+
import{O as _,f as P,g as b,e as W,w as m,a as G,t as k,c as A,r as I,b as q,d as j,h as V,i as R,j as z,k as C,l as K,D as Q,p as X,m as Z}from"./CSVbGg_b.js";import{r as O}from"./UYy36I9r.js";const T=3e4;class $ extends _{constructor(n){super(),this.doc=n,this.clientID=n.clientID,this.states=new Map,this.meta=new Map,this._checkInterval=setInterval(()=>{const e=b();this.getLocalState()!==null&&T/2<=e-this.meta.get(this.clientID).lastUpdated&&this.setLocalState(this.getLocalState());const s=[];this.meta.forEach((a,c)=>{c!==this.clientID&&T<=e-a.lastUpdated&&this.states.has(c)&&s.push(c)}),s.length>0&&Y(this,s,"timeout")},P(T/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:b()});const i=[],u=[],r=[],f=[];n===null?f.push(e):c==null?n!=null&&i.push(e):(u.push(e),W(c,n)||r.push(e)),(i.length>0||r.length>0||f.length>0)&&this.emit("change",[{added:i,updated:r,removed:f},"local"]),this.emit("update",[{added:i,updated:u,removed:f},"local"])}setLocalStateField(n,e){const s=this.getLocalState();s!==null&&this.setLocalState({...s,[n]:e})}getStates(){return this.states}}const Y=(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 i=t.meta.get(c);t.meta.set(c,{clock:i.clock+1,lastUpdated:b()})}s.push(c)}}s.length>0&&(t.emit("change",[{added:[],updated:[],removed:s},e]),t.emit("update",[{added:[],updated:[],removed:s},e]))},H=(t,n,e=t.states)=>{const s=n.length,a=A();m(a,s);for(let c=0;c<s;c++){const i=n[c],u=e.get(i)||null,r=t.meta.get(i).clock;m(a,i),m(a,r),G(a,JSON.stringify(u))}return k(a)},tt=(t,n,e)=>{const s=j(n),a=b(),c=[],i=[],u=[],r=[],f=I(s);for(let w=0;w<f;w++){const d=I(s);let y=I(s);const h=JSON.parse(q(s)),g=t.meta.get(d),U=t.states.get(d),S=g===void 0?0:g.clock;(S<y||S===y&&h===null&&t.states.has(d))&&(h===null?d===t.clientID&&t.getLocalState()!=null?y++:t.states.delete(d):t.states.set(d,h),t.meta.set(d,{clock:y,lastUpdated:a}),g===void 0&&h!==null?c.push(d):g!==void 0&&h===null?r.push(d):h!==null&&(W(h,U)||u.push(d),i.push(d)))}(c.length>0||u.length>0||r.length>0)&&t.emit("change",[{added:c,updated:u,removed:r},e]),(c.length>0||i.length>0||r.length>0)&&t.emit("update",[{added:c,updated:i,removed:r},e])},B=0,M=1,N=2,et=(t,n)=>{m(t,B);const e=R(n);V(t,e)},nt=(t,n,e)=>{m(t,M),V(t,K(n,e))},st=(t,n,e)=>nt(n,e,C(t)),F=(t,n,e,s)=>{try{z(n,C(t),e)}catch(a){s?.(a),console.error("Caught error while handling a Yjs update",a)}},at=(t,n)=>{m(t,N),V(t,n)},ct=F,ot=(t,n,e,s,a)=>{const c=I(t);switch(c){case B:st(t,n,e);break;case M:F(t,e,s,a);break;case N:ct(t,e,s,a);break;default:throw new Error("Unknown message type")}return c},L=0,x=1;function it(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 lt(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 ut(t,n){const e=new Q,s=e.getText("content"),a=new $(e);a.setLocalStateField("user",{name:n.name,color:n.color,colorLight:n.colorLight??n.color+"33"});let c=null,i=!1,u=!1;function r(){return O.ws??null}function f(o,p){const l=r();!l||l.readyState!==WebSocket.OPEN||l.send(it(t,o,p))}function w(){const o=A();et(o,e),f(L,k(o))}function d(o){const p=o??[e.clientID],l=H(a,p);f(x,l)}function y(o){if(i||typeof o.data=="string")return;const p=o.data instanceof ArrayBuffer?o.data:null;if(!p)return;const l=lt(p);if(!(!l||l.docName!==t))if(l.msgType===L){const v=j(l.payload),D=X(v),E=A();ot(v,E,e,"ws-server"),Z(E)>0&&f(L,k(E)),!u&&(D===M||D===N)&&(u=!0,S.synced=!0)}else l.msgType===x&&tt(a,l.payload,"ws-server")}function h(o,p){if(i||p==="ws-server")return;const l=A();at(l,o),f(L,k(l))}function g({added:o,updated:p,removed:l},v){if(i||v==="ws-server")return;const D=o.concat(p,l);d(D)}function U(){if(i)return;const o=r();!o||o.readyState!==WebSocket.OPEN||(o.send(JSON.stringify({type:"collab:join",docName:t})),c&&o.removeEventListener("message",c),c=y,o.addEventListener("message",c),w(),d())}const S={ydoc:e,ytext:s,awareness:a,synced:!1,destroy:J};e.on("update",h),a.on("update",g),U(),O.addConnectHandler(U);function J(){if(i)return;i=!0,Y(a,[e.clientID],"local"),d([e.clientID]);const o=r();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",h),a.off("update",g),a.destroy(),e.destroy()}return S}export{ut as createCollabSession};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{o as Kt,c as x,a as p,p as dt,b as B,s as ht,f as St}from"./iDtAARVW.js";import{u as h,g as o,s as u,e as V,a5 as It,a4 as Ft,p as U,h as C,b as W,c as E,ad as tt,r as K,i as ut,l as yt,d as rt,a as Lt,n as Bt,m as Nt,t as lt}from"./CT6oIU-C.js";import{b as D,a as j}from"./CmCtpZ1Y.js";import{i as F}from"./72bZS3G9.js";import{p as r,s as et,r as ot,l as _t}from"./cLyZlkXv.js";import{_ as Ut,$ as Wt,C as xt,a as ct,J as gt,a0 as zt,a1 as Q,a2 as Z,E as Ct,S as nt,a3 as wt,a4 as Ht,a5 as Ot,a6 as Tt,a7 as kt,a8 as qt,a9 as Yt,aa as Gt,ab as jt,b as Mt,L as At,c as Jt,ac as Qt,w as J,t as Xt,ad as Zt,ae as Pt,af as Rt,O as $t,k as v,f as te,j as pt,n as q,P as ee,r as oe,m as $,F as se,u as ie,v as re}from"./C2r294J6.js";import{H as ne,o as ae}from"./CRbFl2U_.js";import{c as it}from"./CXH6iFbA.js";import{c as Vt}from"./BS2rFAVq.js";import{i as he}from"./Y90OgS-9.js";import{e as le}from"./CDV5Q7RN.js";class de{#t=()=>{};#e=h(()=>this.#t());constructor(t,e){let s;e!==void 0&&(s=e),this.#t=()=>{try{return s}finally{s=t()}}}get current(){return o(this.#e)}}class ue{#t;#e=h(()=>this.#t.candidateValues());#o;constructor(t){this.#t=t,this.#o=Ut("",{afterMs:1e3,getWindow:this.#t.getWindow}),this.handleTypeaheadSearch=this.handleTypeaheadSearch.bind(this),this.resetTypeahead=this.resetTypeahead.bind(this)}handleTypeaheadSearch(t){if(!this.#t.enabled()||!o(this.#e).length)return;this.#o.current=this.#o.current+t;const e=this.#t.getCurrentItem(),s=o(this.#e).find(a=>a===e)??"",n=o(this.#e).map(a=>a??""),l=Wt(n,this.#o.current,s),i=o(this.#e).find(a=>a===l);return i&&this.#t.onMatch(i),i}resetTypeahead(){this.#o.current=""}}const ce=[Z,Ht,Ot],ge=[Q,Tt,kt],pe=[...ce,...ge],fe=te({component:"select",parts:["trigger","content","item","viewport","scroll-up-button","scroll-down-button","group","group-label","separator","arrow","input","content-wrapper","item-text","value"]}),st=new xt("Select.Root | Combobox.Root"),ve=new xt("Select.Content | Combobox.Content");class Dt{opts;#t=V(!1);get touchedInput(){return o(this.#t)}set touchedInput(t){u(this.#t,t,!0)}#e=V(null);get inputNode(){return o(this.#e)}set inputNode(t){u(this.#e,t,!0)}#o=V(null);get contentNode(){return o(this.#o)}set contentNode(t){u(this.#o,t,!0)}contentPresence;#s=V(null);get viewportNode(){return o(this.#s)}set viewportNode(t){u(this.#s,t,!0)}#i=V(null);get triggerNode(){return o(this.#i)}set triggerNode(t){u(this.#i,t,!0)}#r=V("");get valueId(){return o(this.#r)}set valueId(t){u(this.#r,t,!0)}#n=V(null);get highlightedNode(){return o(this.#n)}set highlightedNode(t){u(this.#n,t,!0)}#a=h(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-value"):null);get highlightedValue(){return o(this.#a)}set highlightedValue(t){u(this.#a,t)}#h=h(()=>{if(this.highlightedNode)return this.highlightedNode.id});get highlightedId(){return o(this.#h)}set highlightedId(t){u(this.#h,t)}#l=h(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-label"):null);get highlightedLabel(){return o(this.#l)}set highlightedLabel(t){u(this.#l,t)}#d=V(!1);get contentIsPositioned(){return o(this.#d)}set contentIsPositioned(t){u(this.#d,t,!0)}isUsingKeyboard=!1;isCombobox=!1;domContext=new gt(()=>null);constructor(t){this.opts=t,this.isCombobox=t.isCombobox,this.contentPresence=new $t({ref:v(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),Ft(()=>{this.opts.open.current||this.setHighlightedNode(null)})}setHighlightedNode(t,e=!1){this.highlightedNode=t,t&&(this.isUsingKeyboard||e)&&this.scrollHighlightedNodeIntoView(t)}scrollHighlightedNodeIntoView(t){!this.viewportNode||!this.contentIsPositioned||t.scrollIntoView({block:this.opts.scrollAlignment.current})}getCandidateNodes(){const t=this.contentNode;return t?Array.from(t.querySelectorAll(`[${this.getBitsAttr("item")}]:not([data-disabled])`)):[]}setHighlightedToFirstCandidate(t=!1){this.setHighlightedNode(null);let e=this.getCandidateNodes();if(e.length){if(this.viewportNode){const s=this.viewportNode.getBoundingClientRect();e=e.filter(n=>{if(!this.viewportNode)return!1;const l=n.getBoundingClientRect();return l.right<=s.right&&l.left>=s.left&&l.bottom<=s.bottom&&l.top>=s.top})}this.setHighlightedNode(e[0],t)}}getNodeByValue(t){return this.getCandidateNodes().find(s=>s.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=>fe.getAttr(t,this.isCombobox?"combobox":void 0)}class me extends Dt{opts;isMulti=!1;#t=h(()=>this.opts.value.current!=="");get hasValue(){return o(this.#t)}set hasValue(t){u(this.#t,t)}#e=h(()=>this.opts.items.current.length?this.opts.items.current.find(t=>t.value===this.opts.value.current)?.label??"":"");get currentLabel(){return o(this.#e)}set currentLabel(t){u(this.#e,t)}#o=h(()=>this.opts.items.current.length?this.opts.items.current.filter(e=>!e.disabled).map(e=>e.label):[]);get candidateLabels(){return o(this.#o)}set candidateLabels(t){u(this.#o,t)}#s=h(()=>!(this.isMulti||this.opts.items.current.length===0));get dataTypeaheadEnabled(){return o(this.#s)}set dataTypeaheadEnabled(t){u(this.#s,t)}constructor(t){super(t),this.opts=t,It(()=>{!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 s=this.includesItem(t)?"":t;this.opts.value.current=s,s!==""&&(this.opts.inputValue.current=e)}setInitialHighlightedNode(){Rt(()=>{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 be extends Dt{opts;isMulti=!0;#t=h(()=>this.opts.value.current.length>0);get hasValue(){return o(this.#t)}set hasValue(t){u(this.#t,t)}constructor(t){super(t),this.opts=t,It(()=>{!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(s=>s!==t):this.opts.value.current=[...this.opts.value.current,t],this.opts.inputValue.current=e}setInitialHighlightedNode(){Rt(()=>{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 ye{static create(t){const{type:e,...s}=t,n=e==="single"?new me(s):new be(s);return st.set(n)}}class ft{static create(t){return new ft(t,st.get())}opts;root;attachment;#t;#e;constructor(t,e){this.opts=t,this.root=e,this.attachment=ct(t.ref,s=>this.root.triggerNode=s),this.root.domContext=new gt(t.ref),this.#t=new zt({getCurrentItem:()=>this.root.highlightedNode,onMatch:s=>{this.root.setHighlightedNode(s)},getActiveElement:()=>this.root.domContext.getActiveElement(),getWindow:()=>this.root.domContext.getWindow()}),this.#e=new ue({getCurrentItem:()=>this.root.isMulti?"":this.root.currentLabel,onMatch:s=>{if(this.root.isMulti||!this.root.opts.items.current)return;const n=this.root.opts.items.current.find(l=>l.label===s);n&&(this.root.opts.value.current=n.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)}#o(){this.root.opts.open.current=!0,this.#e.resetTypeahead(),this.#t.resetTypeahead()}#s(t){this.#o()}#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===Q||t.key===Z)&&t.preventDefault(),!this.root.opts.open.current){if(t.key===Ct||t.key===nt||t.key===Z||t.key===Q)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 i=this.root.getCandidateNodes();if(!i.length)return;if(t.key===Z){const a=i[0];this.root.setHighlightedNode(a)}else if(t.key===Q){const a=i[i.length-1];this.root.setHighlightedNode(a)}return}if(t.key===wt){this.root.handleClose();return}if((t.key===Ct||t.key===nt&&this.#t.search==="")&&!t.isComposing&&(t.preventDefault(),this.#i()))return;if(t.key===Q&&t.altKey&&this.root.handleClose(),pe.includes(t.key)){t.preventDefault();const i=this.root.getCandidateNodes(),a=this.root.highlightedNode,b=a?i.indexOf(a):-1,w=this.root.opts.loop.current;let m;if(t.key===Z?m=qt(i,b,w):t.key===Q?m=Yt(i,b,w):t.key===Tt?m=Gt(i,b,10,w):t.key===Ht?m=jt(i,b,10,w):t.key===Ot?m=i[0]:t.key===kt&&(m=i[i.length-1]),!m)return;this.root.setHighlightedNode(m);return}const e=t.ctrlKey||t.altKey||t.metaKey,s=t.key.length===1,n=t.key===nt,l=this.root.getCandidateNodes();if(t.key!==wt){if(!e&&(s||n)){!this.#t.handleTypeaheadSearch(t.key,l)&&n&&(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()))}#r=h(()=>({id:this.opts.id.current,disabled:this.root.opts.disabled.current?!0:void 0,"aria-haspopup":"listbox","aria-expanded":Jt(this.root.opts.open.current),"aria-activedescendant":this.root.highlightedId,"data-state":At(this.root.opts.open.current),"data-disabled":Mt(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 o(this.#r)}set props(t){u(this.#r,t)}}class vt{static create(t){return ve.set(new vt(t,st.get()))}opts;root;attachment;#t=V(!1);get isPositioned(){return o(this.#t)}set isPositioned(t){u(this.#t,t,!0)}domContext;constructor(t,e){this.opts=t,this.root=e,this.attachment=ct(t.ref,s=>this.root.contentNode=s),this.domContext=new gt(this.opts.ref),this.root.domContext===null&&(this.root.domContext=this.domContext),Qt(()=>{this.root.contentNode=null,this.root.contentIsPositioned=!1,this.isPositioned=!1}),J(()=>this.root.opts.open.current,()=>{this.root.opts.open.current||(this.root.contentIsPositioned=!1,this.isPositioned=!1)}),J([()=>this.isPositioned,()=>this.root.highlightedNode],()=>{!this.isPositioned||!this.root.highlightedNode||this.root.scrollHighlightedNodeIntoView(this.root.highlightedNode)}),this.onpointermove=this.onpointermove.bind(this)}onpointermove(t){this.root.isUsingKeyboard=!1}#e=h(()=>Xt(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}#o=h(()=>({open:this.root.opts.open.current}));get snippetProps(){return o(this.#o)}set snippetProps(t){u(this.#o,t)}#s=h(()=>({id:this.opts.id.current,role:"listbox","aria-multiselectable":this.root.isMulti?"true":void 0,"data-state":At(this.root.opts.open.current),[this.root.getBitsAttr("content")]:"",style:{display:"flex",flexDirection:"column",outline:"none",boxSizing:"border-box",pointerEvents:"auto",...o(this.#e)},onpointermove:this.onpointermove,...this.attachment}));get props(){return o(this.#s)}set props(t){u(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.root.contentIsPositioned=!0,this.isPositioned=!0)}}}class mt{static create(t){return new mt(t,st.get())}opts;root;attachment;#t=h(()=>this.root.includesItem(this.opts.value.current));get isSelected(){return o(this.#t)}set isSelected(t){u(this.#t,t)}#e=h(()=>this.root.highlightedValue===this.opts.value.current);get isHighlighted(){return o(this.#e)}set isHighlighted(t){u(this.#e,t)}prevHighlighted=new de(()=>this.isHighlighted);#o=V(!1);get mounted(){return o(this.#o)}set mounted(t){u(this.#o,t,!0)}constructor(t,e){this.opts=t,this.root=e,this.attachment=ct(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=h(()=>({selected:this.isSelected,highlighted:this.isHighlighted}));get snippetProps(){return o(this.#s)}set snippetProps(t){u(this.#s,t)}onpointerdown(t){t.preventDefault()}onpointerup(t){if(!(t.defaultPrevented||!this.opts.ref.current)){if(t.pointerType==="touch"&&!Zt){Kt(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=h(()=>({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":Mt(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 o(this.#i)}set props(t){u(this.#i,t)}}class bt{static create(t){return new bt(t,st.get())}opts;root;#t=h(()=>this.root.opts.name.current!=="");get shouldRender(){return o(this.#t)}set shouldRender(t){u(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=h(()=>({disabled:Pt(this.root.opts.disabled.current),required:Pt(this.root.opts.required.current),name:this.root.opts.name.current,value:this.opts.value.current,onfocus:this.onfocus}));get props(){return o(this.#e)}set props(t){u(this.#e,t)}}function at(N,t){U(t,!0);let e=r(t,"value",15);const s=bt.create({value:v(()=>e())});var n=x(),l=C(n);{var i=a=>{ne(a,et(()=>s.props,{get autocomplete(){return t.autocomplete},get value(){return e()},set value(b){e(b)}}))};F(l,a=>{s.shouldRender&&a(i)})}p(N,n),W()}var Ne=B("<div><div><!></div></div>"),_e=B("<div><div><!></div></div>");function Ce(N,t){const e=dt();U(t,!0);let s=r(t,"id",19,()=>pt(e)),n=r(t,"ref",15,null),l=r(t,"forceMount",3,!1),i=r(t,"side",3,"bottom"),a=r(t,"onInteractOutside",3,q),b=r(t,"onEscapeKeydown",3,q),w=r(t,"preventScroll",3,!1),m=ot(t,["$$slots","$$events","$$legacy","id","ref","forceMount","side","onInteractOutside","onEscapeKeydown","children","child","preventScroll","style"]);const d=vt.create({id:v(()=>s()),ref:v(()=>n(),f=>n(f)),onInteractOutside:v(()=>a()),onEscapeKeydown:v(()=>b())}),S=h(()=>$(m,d.props));var H=x(),M=C(H);{var T=f=>{ee(f,et(()=>o(S),()=>d.popperProps,{get ref(){return d.opts.ref},get side(){return i()},get enabled(){return d.root.opts.open.current},get id(){return s()},get preventScroll(){return w()},forceMount:!0,get shouldRender(){return d.shouldRender},popper:(g,y)=>{let L=()=>y?.().props,Y=()=>y?.().wrapperProps;const _=h(()=>$(L(),{style:d.props.style},{style:t.style}));var A=x(),z=C(A);{var G=P=>{var I=x(),k=C(I);{let R=h(()=>({props:o(_),wrapperProps:Y(),...d.snippetProps}));D(k,()=>t.child,()=>o(R))}p(P,I)},X=P=>{var I=Ne();j(I,()=>({...Y()}));var k=E(I);j(k,()=>({...o(_)}));var R=E(k);D(R,()=>t.children??tt),K(k),K(I),p(P,I)};F(z,P=>{t.child?P(G):P(X,!1)})}p(g,A)},$$slots:{popper:!0}}))},O=f=>{oe(f,et(()=>o(S),()=>d.popperProps,{get ref(){return d.opts.ref},get side(){return i()},get open(){return d.root.opts.open.current},get id(){return s()},get preventScroll(){return w()},forceMount:!1,get shouldRender(){return d.shouldRender},popper:(g,y)=>{let L=()=>y?.().props,Y=()=>y?.().wrapperProps;const _=h(()=>$(L(),{style:d.props.style},{style:t.style}));var A=x(),z=C(A);{var G=P=>{var I=x(),k=C(I);{let R=h(()=>({props:o(_),wrapperProps:Y(),...d.snippetProps}));D(k,()=>t.child,()=>o(R))}p(P,I)},X=P=>{var I=_e();j(I,()=>({...Y()}));var k=E(I);j(k,()=>({...o(_)}));var R=E(k);D(R,()=>t.children??tt),K(k),K(I),p(P,I)};F(z,P=>{t.child?P(G):P(X,!1)})}p(g,A)},$$slots:{popper:!0}}))};F(M,f=>{l()?f(T):l()||f(O,1)})}p(N,H),W()}function we(N,t){U(t,!0);let e=r(t,"mounted",15,!1),s=r(t,"onMountedChange",3,q);ae(()=>(e(!0),s()(!0),()=>{e(!1),s()(!1)})),W()}var Pe=B("<div><!></div>"),Se=B("<!> <!>",1);function Ge(N,t){const e=dt();U(t,!0);let s=r(t,"id",19,()=>pt(e)),n=r(t,"ref",15,null),l=r(t,"label",19,()=>t.value),i=r(t,"disabled",3,!1),a=r(t,"onHighlight",3,q),b=r(t,"onUnhighlight",3,q),w=ot(t,["$$slots","$$events","$$legacy","id","ref","value","label","disabled","children","child","onHighlight","onUnhighlight"]);const m=mt.create({id:v(()=>s()),ref:v(()=>n(),f=>n(f)),value:v(()=>t.value),disabled:v(()=>i()),label:v(()=>l()),onHighlight:v(()=>a()),onUnhighlight:v(()=>b())}),d=h(()=>$(w,m.props));var S=Se(),H=C(S);{var M=f=>{var c=x(),g=C(c);{let y=h(()=>({props:o(d),...m.snippetProps}));D(g,()=>t.child,()=>o(y))}p(f,c)},T=f=>{var c=Pe();j(c,()=>({...o(d)}));var g=E(c);D(g,()=>t.children??tt,()=>m.snippetProps),K(c),p(f,c)};F(H,f=>{t.child?f(M):f(T,!1)})}var O=ut(H,2);we(O,{get mounted(){return m.mounted},set mounted(f){m.mounted=f}}),p(N,S),W()}var Ie=B("<!> <!>",1);function xe(N,t){U(t,!0);let e=r(t,"value",15),s=r(t,"onValueChange",3,q),n=r(t,"name",3,""),l=r(t,"disabled",3,!1),i=r(t,"open",15,!1),a=r(t,"onOpenChange",3,q),b=r(t,"onOpenChangeComplete",3,q),w=r(t,"loop",3,!1),m=r(t,"scrollAlignment",3,"nearest"),d=r(t,"required",3,!1),S=r(t,"items",19,()=>[]),H=r(t,"allowDeselect",3,!1);function M(){e()===void 0&&e(t.type==="single"?"":[])}M(),J.pre(()=>e(),()=>{M()});let T=V("");const O=ye.create({type:t.type,value:v(()=>e(),_=>{e(_),s()(_)}),disabled:v(()=>l()),required:v(()=>d()),open:v(()=>i(),_=>{i(_),a()(_)}),loop:v(()=>w()),scrollAlignment:v(()=>m()),name:v(()=>n()),isCombobox:!1,items:v(()=>S()),allowDeselect:v(()=>H()),inputValue:v(()=>o(T),_=>u(T,_,!0)),onOpenChangeComplete:v(()=>b())});var f=Ie(),c=C(f);se(c,{children:(_,A)=>{var z=x(),G=C(z);D(G,()=>t.children??tt),p(_,z)},$$slots:{default:!0}});var g=ut(c,2);{var y=_=>{var A=x(),z=C(A);{var G=P=>{at(P,{get autocomplete(){return t.autocomplete}})},X=P=>{var I=x(),k=C(I);le(k,16,()=>O.opts.value.current,R=>R,(R,Et)=>{at(R,{get value(){return Et},get autocomplete(){return t.autocomplete}})}),p(P,I)};F(z,P=>{O.opts.value.current.length===0?P(G):P(X,!1)})}p(_,A)},L=h(()=>Array.isArray(O.opts.value.current)),Y=_=>{at(_,{get autocomplete(){return t.autocomplete},get value(){return O.opts.value.current},set value(A){O.opts.value.current=A}})};F(g,_=>{o(L)?_(y):_(Y,!1)})}p(N,f),W()}var He=B("<button><!></button>");function Oe(N,t){const e=dt();U(t,!0);let s=r(t,"id",19,()=>pt(e)),n=r(t,"ref",15,null),l=r(t,"type",3,"button"),i=ot(t,["$$slots","$$events","$$legacy","id","ref","child","children","type"]);const a=ft.create({id:v(()=>s()),ref:v(()=>n(),d=>n(d))}),b=h(()=>$(i,a.props,{type:l()}));var w=x(),m=C(w);it(m,()=>ie,(d,S)=>{S(d,{get id(){return s()},get ref(){return a.opts.ref},children:(H,M)=>{var T=x(),O=C(T);{var f=g=>{var y=x(),L=C(y);D(L,()=>t.child,()=>({props:o(b)})),p(g,y)},c=g=>{var y=He();j(y,()=>({...o(b)}));var L=E(y);D(L,()=>t.children??tt),K(y),p(g,y)};F(O,g=>{t.child?g(f):g(c,!1)})}p(H,T)},$$slots:{default:!0}})}),p(N,w),W()}var Te=St("<title> </title>"),ke=St('<svg><!><path d="M16 22 6 12 7.4 10.6 16 19.2 24.6 10.6 26 12z"></path></svg>');function Me(N,t){const e=_t(t,["children","$$slots","$$events","$$legacy"]),s=_t(e,["size","title"]);U(t,!1);const n=Nt(),l=Nt();let i=r(t,"size",8,16),a=r(t,"title",8,void 0);yt(()=>(rt(e),rt(a())),()=>{u(n,e["aria-label"]||e["aria-labelledby"]||a())}),yt(()=>(o(n),rt(e)),()=>{u(l,{"aria-hidden":o(n)?void 0:!0,role:o(n)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),Lt(),he();var b=ke();j(b,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:i(),height:i(),...o(l),...s}));var w=E(b);{var m=d=>{var S=Te(),H=E(S,!0);K(S),lt(()=>ht(H,a())),p(d,S)};F(w,d=>{a()&&d(m)})}Bt(),K(b),p(N,b),W()}var Ae=B("<span> </span>"),Re=B('<span class="select-placeholder"> </span>'),Ve=B("<!> <!>",1);function je(N,t){U(t,!0);let e=r(t,"placeholder",3,"Select..."),s=r(t,"size",3,"default"),n=ot(t,["$$slots","$$events","$$legacy","children","value","placeholder","class","size"]);var l=x(),i=C(l);{let a=h(()=>Vt("select-trigger",s()==="sm"&&"select-trigger-sm",t.class));it(i,()=>Oe,(b,w)=>{w(b,et({get class(){return o(a)}},()=>n,{children:(m,d)=>{var S=Ve(),H=C(S);{var M=c=>{var g=x(),y=C(g);D(y,()=>t.children),p(c,g)},T=c=>{var g=Ae(),y=E(g,!0);K(g),lt(()=>ht(y,t.value)),p(c,g)},O=c=>{var g=Re(),y=E(g,!0);K(g),lt(()=>ht(y,e())),p(c,g)};F(H,c=>{t.children?c(M):t.value?c(T,1):c(O,!1)})}var f=ut(H,2);{let c=h(()=>s()==="sm"?12:14);Me(f,{get size(){return o(c)},class:"select-chevron"})}p(m,S)},$$slots:{default:!0}}))})}p(N,l),W()}function Je(N,t){U(t,!0);let e=r(t,"side",3,"bottom"),s=r(t,"sideOffset",3,4),n=ot(t,["$$slots","$$events","$$legacy","children","class","side","sideOffset"]);var l=x(),i=C(l);it(i,()=>re,(a,b)=>{b(a,{children:(w,m)=>{var d=x(),S=C(d);{let H=h(()=>Vt("select-content",t.class));it(S,()=>Ce,(M,T)=>{T(M,et({get class(){return o(H)},get side(){return e()},get sideOffset(){return s()}},()=>n,{children:(O,f)=>{var c=x(),g=C(c);D(g,()=>t.children),p(O,c)},$$slots:{default:!0}}))})}p(w,d)},$$slots:{default:!0}})}),p(N,l),W()}const Qe=xe;export{Qe as R,Ge as S,je as a,Je as b};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import{l as Yn,o as j,c as F,a as C,p as Kt,b as ct,m as eo,u as no}from"./iDtAARVW.js";import{aO as ro,o as oo,w as io,bx as so,k as ao,e as M,by as Sn,Q as co,g as u,s as y,a_ as Yt,u as x,f as _t,aY as lo,aC as An,aX as uo,a4 as fo,a5 as Z,a6 as _e,aF as ho,p as R,h as T,b as N,ad as V,c as At,r as Ot,bz as go,bA as qn,i as de,aE as po}from"./CT6oIU-C.js";import{b as k,a as Ct}from"./CmCtpZ1Y.js";import{p as v,r as K,s as Q}from"./cLyZlkXv.js";import{B as mo,i as rt,b as Zn}from"./72bZS3G9.js";import{c as Et}from"./CXH6iFbA.js";import{c as Pt,a as Qn}from"./BS2rFAVq.js";import{b as Re}from"./DGbA7IXh.js";function vo(){return Symbol(ro)}const yo=Symbol("NaN");function bo(e,t,n){oo&&io();var r=new mo(e),o=!so();ao(()=>{var s=t();s!==s&&(s=yo),o&&s!==null&&typeof s=="object"&&(s={}),r.ensure(s,n)})}class wo extends Map{#t=new Map;#e=M(0);#n=M(0);#r=Sn||-1;constructor(t){if(super(),t){for(var[n,r]of t)super.set(n,r);this.#n.v=super.size}}#o(t){return Sn===this.#r?M(t):co(t)}has(t){var n=this.#t,r=n.get(t);if(r===void 0)if(super.has(t))r=this.#o(0),n.set(t,r);else return u(this.#e),!1;return u(r),!0}forEach(t,n){this.#i(),super.forEach(t,n)}get(t){var n=this.#t,r=n.get(t);if(r===void 0)if(super.has(t))r=this.#o(0),n.set(t,r);else{u(this.#e);return}return u(r),super.get(t)}set(t,n){var r=this.#t,o=r.get(t),s=super.get(t),i=super.set(t,n),a=this.#e;if(o===void 0)o=this.#o(0),r.set(t,o),y(this.#n,super.size),Yt(a);else if(s!==n){Yt(o);var c=a.reactions===null?null:new Set(a.reactions),l=c===null||!o.reactions?.every(h=>c.has(h));l&&Yt(a)}return i}delete(t){var n=this.#t,r=n.get(t),o=super.delete(t);return r!==void 0&&(n.delete(t),y(r,-1)),o&&(y(this.#n,super.size),Yt(this.#e)),o}clear(){if(super.size!==0){super.clear();var t=this.#t;y(this.#n,0);for(var n of t.values())y(n,-1);Yt(this.#e),t.clear()}}#i(){u(this.#e);var t=this.#t;if(this.#n.v!==t.size){for(var n of super.keys())if(!t.has(n)){var r=this.#o(0);t.set(n,r)}}for([,r]of this.#t)u(r)}keys(){return u(this.#e),super.keys()}values(){return this.#i(),super.values()}entries(){return this.#i(),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return u(this.#n),super.size}}function xo(e){return typeof e=="function"}function ne(e){return e!==null&&typeof e=="object"}const So=["string","number","bigint","boolean"];function Be(e){return e==null||So.includes(typeof e)?!0:Array.isArray(e)?e.every(t=>Be(t)):typeof e=="object"?Object.getPrototypeOf(e)===Object.prototype:!1}const Lt=Symbol("box"),Ce=Symbol("is-writable");function w(e,t){const n=x(e);return t?{[Lt]:!0,[Ce]:!0,get current(){return u(n)},set current(r){t(r)}}:{[Lt]:!0,get current(){return e()}}}function re(e){return ne(e)&&Lt in e}function Ue(e){return re(e)&&Ce in e}function Jn(e){return re(e)?e:xo(e)?w(e):ut(e)}function Ao(e){return Object.entries(e).reduce((t,[n,r])=>re(r)?(Ue(r)?Object.defineProperty(t,n,{get(){return r.current},set(o){r.current=o}}):Object.defineProperty(t,n,{get(){return r.current}}),t):Object.assign(t,{[n]:r}),{})}function Oo(e){return Ue(e)?{[Lt]:!0,get current(){return e.current}}:e}function ut(e){let t=M(_t(e));return{[Lt]:!0,[Ce]:!0,get current(){return u(t)},set current(n){y(t,n,!0)}}}function Dt(e){let t=M(_t(e));return{[Lt]:!0,[Ce]:!0,get current(){return u(t)},set current(n){y(t,n,!0)}}}Dt.from=Jn;Dt.with=w;Dt.flatten=Ao;Dt.readonly=Oo;Dt.isBox=re;Dt.isWritableBox=Ue;function $n(...e){return function(t){for(const n of e)if(n){if(t.defaultPrevented)return;typeof n=="function"?n.call(this,t):n.current?.call(this,t)}}}var On=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Co=/\n/g,Eo=/^\s*/,Po=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,To=/^:\s*/,Mo=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Fo=/^[;\s]*/,Io=/^\s+|\s+$/g,Ro=`
|
|
2
|
+
`,Cn="/",En="*",It="",No="comment",ko="declaration";function Do(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function o(g){var p=g.match(Co);p&&(n+=p.length);var b=g.lastIndexOf(Ro);r=~b?g.length-b:r+g.length}function s(){var g={line:n,column:r};return function(p){return p.position=new i(g),l(),p}}function i(g){this.start=g,this.end={line:n,column:r},this.source=t.source}i.prototype.content=e;function a(g){var p=new Error(t.source+":"+n+":"+r+": "+g);if(p.reason=g,p.filename=t.source,p.line=n,p.column=r,p.source=e,!t.silent)throw p}function c(g){var p=g.exec(e);if(p){var b=p[0];return o(b),e=e.slice(b.length),p}}function l(){c(Eo)}function h(g){var p;for(g=g||[];p=d();)p!==!1&&g.push(p);return g}function d(){var g=s();if(!(Cn!=e.charAt(0)||En!=e.charAt(1))){for(var p=2;It!=e.charAt(p)&&(En!=e.charAt(p)||Cn!=e.charAt(p+1));)++p;if(p+=2,It===e.charAt(p-1))return a("End of comment missing");var b=e.slice(2,p-2);return r+=2,o(b),e=e.slice(p),r+=2,g({type:No,comment:b})}}function m(){var g=s(),p=c(Po);if(p){if(d(),!c(To))return a("property missing ':'");var b=c(Mo),S=g({type:ko,property:Pn(p[0].replace(On,It)),value:b?Pn(b[0].replace(On,It)):It});return c(Fo),S}}function f(){var g=[];h(g);for(var p;p=m();)p!==!1&&(g.push(p),h(g));return g}return l(),f()}function Pn(e){return e?e.replace(Io,It):It}function _o(e,t){let n=null;if(!e||typeof e!="string")return n;const r=Do(e),o=typeof t=="function";return r.forEach(s=>{if(s.type!=="declaration")return;const{property:i,value:a}=s;o?t(i,a,s):a&&(n=n||{},n[i]=a)}),n}const Bo=/\d/,Lo=["-","_","/","."];function Wo(e=""){if(!Bo.test(e))return e!==e.toLowerCase()}function Vo(e){const t=[];let n="",r,o;for(const s of e){const i=Lo.includes(s);if(i===!0){t.push(n),n="",r=void 0;continue}const a=Wo(s);if(o===!1){if(r===!1&&a===!0){t.push(n),n=s,r=a;continue}if(r===!0&&a===!1&&n.length>1){const c=n.at(-1);t.push(n.slice(0,Math.max(0,n.length-1))),n=c+s,r=a;continue}}n+=s,r=a,o=i}return t.push(n),t}function tr(e){return e?Vo(e).map(t=>zo(t)).join(""):""}function Ko(e){return Ho(tr(e||""))}function zo(e){return e?e[0].toUpperCase()+e.slice(1):""}function Ho(e){return e?e[0].toLowerCase()+e.slice(1):""}function Jt(e){if(!e)return{};const t={};function n(r,o){if(r.startsWith("-moz-")||r.startsWith("-webkit-")||r.startsWith("-ms-")||r.startsWith("-o-")){t[tr(r)]=o;return}if(r.startsWith("--")){t[r]=o;return}t[Ko(r)]=o}return _o(e,n),t}function Rt(...e){return(...t)=>{for(const n of e)typeof n=="function"&&n(...t)}}function jo(e,t){const n=RegExp(e,"g");return r=>{if(typeof r!="string")throw new TypeError(`expected an argument of type string, but got ${typeof r}`);return r.match(n)?r.replace(n,t):r}}const Uo=jo(/[A-Z]/,e=>`-${e.toLowerCase()}`);function Go(e){if(!e||typeof e!="object"||Array.isArray(e))throw new TypeError(`expected an argument of type object, but got ${typeof e}`);return Object.keys(e).map(t=>`${Uo(t)}: ${e[t]};`).join(`
|
|
3
|
+
`)}function er(e={}){return Go(e).replace(`
|
|
4
|
+
`," ")}const Xo=["onabort","onanimationcancel","onanimationend","onanimationiteration","onanimationstart","onauxclick","onbeforeinput","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncompositionend","oncompositionstart","oncompositionupdate","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onfocusin","onfocusout","onformdata","ongotpointercapture","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onlostpointercapture","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onpaste","onpause","onplay","onplaying","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onprogress","onratechange","onreset","onresize","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onselectionchange","onselectstart","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitioncancel","ontransitionend","ontransitionrun","ontransitionstart","onvolumechange","onwaiting","onwebkitanimationend","onwebkitanimationiteration","onwebkitanimationstart","onwebkittransitionend","onwheel"],Yo=new Set(Xo);function qo(e){return Yo.has(e)}function ot(...e){const t={...e[0]};for(let n=1;n<e.length;n++){const r=e[n];if(r){for(const o of Object.keys(r)){const s=t[o],i=r[o],a=typeof s=="function",c=typeof i=="function";if(a&&qo(o)){const l=s,h=i;t[o]=$n(l,h)}else if(a&&c)t[o]=Rt(s,i);else if(o==="class"){const l=Be(s),h=Be(i);l&&h?t[o]=Re(s,i):l?t[o]=Re(s):h&&(t[o]=Re(i))}else if(o==="style"){const l=typeof s=="object",h=typeof i=="object",d=typeof s=="string",m=typeof i=="string";if(l&&h)t[o]={...s,...i};else if(l&&m){const f=Jt(i);t[o]={...s,...f}}else if(d&&h){const f=Jt(s);t[o]={...f,...i}}else if(d&&m){const f=Jt(s),g=Jt(i);t[o]={...f,...g}}else l?t[o]=s:h?t[o]=i:d?t[o]=s:m&&(t[o]=i)}else t[o]=i!==void 0?i:s}for(const o of Object.getOwnPropertySymbols(r)){const s=t[o],i=r[o];t[o]=i!==void 0?i:s}}}return typeof t.style=="object"&&(t.style=er(t.style).replaceAll(`
|
|
5
|
+
`," ")),t.hidden===!1&&(t.hidden=void 0,delete t.hidden),t.disabled===!1&&(t.disabled=void 0,delete t.disabled),t}const nr=typeof window<"u"?window:void 0;function Zo(e){let t=e.activeElement;for(;t?.shadowRoot;){const n=t.shadowRoot.activeElement;if(n===t)break;t=n}return t}class Qo{#t;#e;constructor(t={}){const{window:n=nr,document:r=n?.document}=t;n!==void 0&&(this.#t=r,this.#e=Yn(o=>{const s=j(n,"focusin",o),i=j(n,"focusout",o);return()=>{s(),i()}}))}get current(){return this.#e?.(),this.#t?Zo(this.#t):null}}new Qo;function Jo(e){return typeof e=="function"}class Tt{#t;#e;constructor(t){this.#t=t,this.#e=Symbol(t)}get key(){return this.#e}exists(){return lo(this.#e)}get(){const t=An(this.#e);if(t===void 0)throw new Error(`Context "${this.#t}" not found`);return t}getOr(t){const n=An(this.#e);return n===void 0?t:n}set(t){return uo(this.#e,t)}}function $o(e,t){switch(e){case"post":Z(t);break;case"pre":fo(t);break}}function rr(e,t,n,r={}){const{lazy:o=!1}=r;let s=!o,i=Array.isArray(e)?[]:void 0;$o(t,()=>{const a=Array.isArray(e)?e.map(l=>l()):e();if(!s){s=!0,i=a;return}const c=_e(()=>n(a,i));return i=a,c})}function G(e,t,n){rr(e,"post",t,n)}function ti(e,t,n){rr(e,"pre",t,n)}G.pre=ti;function Tn(e){return Jo(e)?e():e}class ei{#t={width:0,height:0};#e=!1;#n;#r;#o;#i=x(()=>(u(this.#s)?.(),this.getSize().width));#a=x(()=>(u(this.#s)?.(),this.getSize().height));#s=x(()=>{const t=Tn(this.#r);if(t)return Yn(n=>{if(!this.#o)return;const r=new this.#o.ResizeObserver(o=>{this.#e=!0;for(const s of o){const i=this.#n.box==="content-box"?s.contentBoxSize:s.borderBoxSize,a=Array.isArray(i)?i:[i];this.#t.width=a.reduce((c,l)=>Math.max(c,l.inlineSize),0),this.#t.height=a.reduce((c,l)=>Math.max(c,l.blockSize),0)}n()});return r.observe(t),()=>{this.#e=!1,r.disconnect()}})});constructor(t,n={box:"border-box"}){this.#o=n.window??nr,this.#n=n,this.#r=t,this.#t={width:0,height:0}}calculateSize(){const t=Tn(this.#r);if(!t||!this.#o)return;const n=t.offsetWidth,r=t.offsetHeight;if(this.#n.box==="border-box")return{width:n,height:r};const o=this.#o.getComputedStyle(t),s=parseFloat(o.paddingLeft)+parseFloat(o.paddingRight),i=parseFloat(o.paddingTop)+parseFloat(o.paddingBottom),a=parseFloat(o.borderLeftWidth)+parseFloat(o.borderRightWidth),c=parseFloat(o.borderTopWidth)+parseFloat(o.borderBottomWidth),l=n-s-a,h=r-i-c;return{width:l,height:h}}getSize(){return this.#e?this.#t:this.calculateSize()??this.#t}get current(){return u(this.#s)?.(),this.getSize()}get width(){return u(this.#i)}get height(){return u(this.#a)}}function zt(e){Z(()=>()=>{e()})}function or(e,t){return setTimeout(t,e)}function lt(e){ho().then(e)}const ni=1,ri=9,oi=11;function Le(e){return ne(e)&&e.nodeType===ni&&typeof e.nodeName=="string"}function ir(e){return ne(e)&&e.nodeType===ri}function ii(e){return ne(e)&&e.constructor?.name==="VisualViewport"}function si(e){return ne(e)&&e.nodeType!==void 0}function sr(e){return si(e)&&e.nodeType===oi&&"host"in e}function ai(e,t){if(!e||!t||!Le(e)||!Le(t))return!1;const n=t.getRootNode?.();if(e===t||e.contains(t))return!0;if(n&&sr(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function oe(e){return ir(e)?e:ii(e)?e.document:e?.ownerDocument??document}function Ge(e){return sr(e)?Ge(e.host):ir(e)?e.defaultView??window:Le(e)?e.ownerDocument?.defaultView??window:window}function ci(e){let t=e.activeElement;for(;t?.shadowRoot;){const n=t.shadowRoot.activeElement;if(n===t)break;t=n}return t}class Xe{element;#t=x(()=>this.element.current?this.element.current.getRootNode()??document:document);get root(){return u(this.#t)}set root(t){y(this.#t,t)}constructor(t){typeof t=="function"?this.element=w(t):this.element=t}getDocument=()=>oe(this.root);getWindow=()=>this.getDocument().defaultView??window;getActiveElement=()=>ci(this.root);isActiveElement=t=>t===this.getActiveElement();getElementById(t){return this.root.getElementById(t)}querySelector=t=>this.root?this.root.querySelector(t):null;querySelectorAll=t=>this.root?this.root.querySelectorAll(t):[];setTimeout=(t,n)=>this.getWindow().setTimeout(t,n);clearTimeout=t=>this.getWindow().clearTimeout(t)}function tt(e,t){return{[vo()]:n=>re(e)?(e.current=n,_e(()=>t?.(n)),()=>{"isConnected"in n&&n.isConnected||(e.current=null,t?.(null))}):(e(n),_e(()=>t?.(n)),()=>{"isConnected"in n&&n.isConnected||(e(null),t?.(null))})}}function ar(e){return e?"true":"false"}function Wt(e){return e?"":void 0}function uc(e){return e?!0:void 0}function Ye(e){return e?"open":"closed"}function dc(e,t){return t?"mixed":e?"true":"false"}class li{#t;#e;attrs;constructor(t){this.#t=t.getVariant?t.getVariant():null,this.#e=this.#t?`data-${this.#t}-`:`data-${t.component}-`,this.getAttr=this.getAttr.bind(this),this.selector=this.selector.bind(this),this.attrs=Object.fromEntries(t.parts.map(n=>[n,this.getAttr(n)]))}getAttr(t,n){return n?`data-${n}-${t}`:`${this.#e}${t}`}selector(t,n){return`[${this.getAttr(t,n)}]`}}function cr(e){const t=new li(e);return{...t.attrs,selector:t.selector,getAttr:t.getAttr}}const te="ArrowDown",qe="ArrowLeft",Ze="ArrowRight",fe="ArrowUp",lr="End",Ee="Enter",ui="Escape",ur="Home",di="PageDown",fi="PageUp",ie=" ",hi="Tab";function gi(e){return window.getComputedStyle(e).getPropertyValue("direction")}function pi(e="ltr",t="horizontal"){return{horizontal:e==="rtl"?qe:Ze,vertical:te}[t]}function mi(e="ltr",t="horizontal"){return{horizontal:e==="rtl"?Ze:qe,vertical:fe}[t]}function vi(e="ltr",t="horizontal"){return["ltr","rtl"].includes(e)||(e="ltr"),["horizontal","vertical"].includes(t)||(t="horizontal"),{nextKey:pi(e,t),prevKey:mi(e,t)}}const dr=typeof document<"u",Mn=yi();function yi(){return dr&&window?.navigator?.userAgent&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||window?.navigator?.maxTouchPoints>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function mt(e){return e instanceof HTMLElement}function We(e){return e instanceof Element}function fr(e){return e instanceof Element||e instanceof SVGElement}function fc(e){return e.pointerType==="touch"}function hc(e){return e.matches(":focus-visible")}function bi(e){return e!==null}function wi(e){return e instanceof HTMLInputElement&&"select"in e}class xi{#t;#e=Dt(null);constructor(t){this.#t=t}getCandidateNodes(){return this.#t.rootNode.current?this.#t.candidateSelector?Array.from(this.#t.rootNode.current.querySelectorAll(this.#t.candidateSelector)):this.#t.candidateAttr?Array.from(this.#t.rootNode.current.querySelectorAll(`[${this.#t.candidateAttr}]:not([data-disabled])`)):[]:[]}focusFirstCandidate(){const t=this.getCandidateNodes();t.length&&t[0]?.focus()}handleKeydown(t,n,r=!1){const o=this.#t.rootNode.current;if(!o||!t)return;const s=this.getCandidateNodes();if(!s.length)return;const i=s.indexOf(t),a=gi(o),{nextKey:c,prevKey:l}=vi(a,this.#t.orientation.current),h=this.#t.loop.current,d={[c]:i+1,[l]:i-1,[ur]:0,[lr]:s.length-1};if(r){const g=c===te?Ze:te,p=l===fe?qe:fe;d[g]=i+1,d[p]=i-1}let m=d[n.key];if(m===void 0)return;n.preventDefault(),m<0&&h?m=s.length-1:m===s.length&&h&&(m=0);const f=s[m];if(f)return f.focus(),this.#e.current=f.id,this.#t.onCandidateFocus?.(f),f}getTabIndex(t){const n=this.getCandidateNodes(),r=this.#e.current!==null;return t&&!r&&n[0]===t?(this.#e.current=t.id,0):t?.id===this.#e.current?0:-1}setCurrentTabStopId(t){this.#e.current=t}focusCurrentTabStop(){const t=this.#e.current;if(!t)return;const n=this.#t.rootNode.current?.querySelector(`#${t}`);!n||!mt(n)||n.focus()}}class Si{#t;#e=null;constructor(t){this.#t=t,zt(()=>this.#n())}#n(){this.#e&&(window.cancelAnimationFrame(this.#e),this.#e=null)}run(t){this.#n();const n=this.#t.ref.current;if(n){if(typeof n.getAnimations!="function"){this.#r(t);return}this.#e=window.requestAnimationFrame(()=>{const r=n.getAnimations();if(r.length===0){this.#r(t);return}Promise.allSettled(r.map(o=>o.finished)).then(()=>{this.#r(t)})})}}#r(t){const n=()=>{t()};this.#t.afterTick?lt(n):n()}}class Ve{#t;#e;#n;#r=M(!1);constructor(t){this.#t=t,y(this.#r,t.open.current,!0),this.#e=t.enabled??!0,this.#n=new Si({ref:this.#t.ref,afterTick:this.#t.open}),G(()=>this.#t.open.current,n=>{n&&y(this.#r,!0),this.#e&&this.#n.run(()=>{n===this.#t.open.current&&(this.#t.open.current||y(this.#r,!1),this.#t.onComplete?.())})})}get shouldRender(){return u(this.#r)}}function W(){}function Ht(e,t){return`bits-${e}`}const Ai=cr({component:"dialog",parts:["content","trigger","overlay","title","description","close","cancel","action"]}),vt=new Tt("Dialog.Root | AlertDialog.Root");class Qe{static create(t){const n=vt.getOr(null);return vt.set(new Qe(t,n))}opts;#t=M(null);get triggerNode(){return u(this.#t)}set triggerNode(t){y(this.#t,t,!0)}#e=M(null);get contentNode(){return u(this.#e)}set contentNode(t){y(this.#e,t,!0)}#n=M(null);get overlayNode(){return u(this.#n)}set overlayNode(t){y(this.#n,t,!0)}#r=M(null);get descriptionNode(){return u(this.#r)}set descriptionNode(t){y(this.#r,t,!0)}#o=M(void 0);get contentId(){return u(this.#o)}set contentId(t){y(this.#o,t,!0)}#i=M(void 0);get titleId(){return u(this.#i)}set titleId(t){y(this.#i,t,!0)}#a=M(void 0);get triggerId(){return u(this.#a)}set triggerId(t){y(this.#a,t,!0)}#s=M(void 0);get descriptionId(){return u(this.#s)}set descriptionId(t){y(this.#s,t,!0)}#c=M(null);get cancelNode(){return u(this.#c)}set cancelNode(t){y(this.#c,t,!0)}#u=M(0);get nestedOpenCount(){return u(this.#u)}set nestedOpenCount(t){y(this.#u,t,!0)}depth;parent;contentPresence;overlayPresence;constructor(t,n){this.opts=t,this.parent=n,this.depth=n?n.depth+1:0,this.handleOpen=this.handleOpen.bind(this),this.handleClose=this.handleClose.bind(this),this.contentPresence=new Ve({ref:w(()=>this.contentNode),open:this.opts.open,enabled:!0,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new Ve({ref:w(()=>this.overlayNode),open:this.opts.open,enabled:!0}),G(()=>this.opts.open.current,r=>{this.parent&&(r?this.parent.incrementNested():this.parent.decrementNested())},{lazy:!0}),zt(()=>{this.opts.open.current&&this.parent?.decrementNested()})}handleOpen(){this.opts.open.current||(this.opts.open.current=!0)}handleClose(){this.opts.open.current&&(this.opts.open.current=!1)}getBitsAttr=t=>Ai.getAttr(t,this.opts.variant.current);incrementNested(){this.nestedOpenCount++,this.parent?.incrementNested()}decrementNested(){this.nestedOpenCount!==0&&(this.nestedOpenCount--,this.parent?.decrementNested())}#l=x(()=>({"data-state":Ye(this.opts.open.current)}));get sharedProps(){return u(this.#l)}set sharedProps(t){y(this.#l,t)}}class hr{static create(t){return new hr(t,vt.get())}opts;root;attachment;constructor(t,n){this.opts=t,this.root=n,this.attachment=tt(this.opts.ref),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}onclick(t){this.opts.disabled.current||t.button>0||this.root.handleClose()}onkeydown(t){this.opts.disabled.current||(t.key===ie||t.key===Ee)&&(t.preventDefault(),this.root.handleClose())}#t=x(()=>({id:this.opts.id.current,[this.root.getBitsAttr(this.opts.variant.current)]:"",onclick:this.onclick,onkeydown:this.onkeydown,disabled:this.opts.disabled.current?!0:void 0,tabindex:0,...this.root.sharedProps,...this.attachment}));get props(){return u(this.#t)}set props(t){y(this.#t,t)}}class Je{static create(t){return new Je(t,vt.get())}opts;root;attachment;constructor(t,n){this.opts=t,this.root=n,this.attachment=tt(this.opts.ref)}#t=x(()=>({id:this.opts.id.current,[this.root.getBitsAttr("action")]:"",...this.root.sharedProps,...this.attachment}));get props(){return u(this.#t)}set props(t){y(this.#t,t)}}class $e{static create(t){return new $e(t,vt.get())}opts;root;attachment;constructor(t,n){this.opts=t,this.root=n,this.root.titleId=this.opts.id.current,this.attachment=tt(this.opts.ref),G.pre(()=>this.opts.id.current,r=>{this.root.titleId=r})}#t=x(()=>({id:this.opts.id.current,role:"heading","aria-level":this.opts.level.current,[this.root.getBitsAttr("title")]:"",...this.root.sharedProps,...this.attachment}));get props(){return u(this.#t)}set props(t){y(this.#t,t)}}class tn{static create(t){return new tn(t,vt.get())}opts;root;attachment;constructor(t,n){this.opts=t,this.root=n,this.root.descriptionId=this.opts.id.current,this.attachment=tt(this.opts.ref,r=>{this.root.descriptionNode=r}),G.pre(()=>this.opts.id.current,r=>{this.root.descriptionId=r})}#t=x(()=>({id:this.opts.id.current,[this.root.getBitsAttr("description")]:"",...this.root.sharedProps,...this.attachment}));get props(){return u(this.#t)}set props(t){y(this.#t,t)}}class en{static create(t){return new en(t,vt.get())}opts;root;attachment;constructor(t,n){this.opts=t,this.root=n,this.attachment=tt(this.opts.ref,r=>{this.root.contentNode=r,this.root.contentId=r?.id})}#t=x(()=>({open:this.root.opts.open.current}));get snippetProps(){return u(this.#t)}set snippetProps(t){y(this.#t,t)}#e=x(()=>({id:this.opts.id.current,role:this.root.opts.variant.current==="alert-dialog"?"alertdialog":"dialog","aria-modal":"true","aria-describedby":this.root.descriptionId,"aria-labelledby":this.root.titleId,[this.root.getBitsAttr("content")]:"",style:{pointerEvents:"auto",outline:this.root.opts.variant.current==="alert-dialog"?"none":void 0,"--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount,contain:"layout style"},tabindex:this.root.opts.variant.current==="alert-dialog"?-1:void 0,"data-nested-open":Wt(this.root.nestedOpenCount>0),"data-nested":Wt(this.root.parent!==null),...this.root.sharedProps,...this.attachment}));get props(){return u(this.#e)}set props(t){y(this.#e,t)}get shouldRender(){return this.root.contentPresence.shouldRender}}class nn{static create(t){return new nn(t,vt.get())}opts;root;attachment;constructor(t,n){this.opts=t,this.root=n,this.attachment=tt(this.opts.ref,r=>this.root.overlayNode=r)}#t=x(()=>({open:this.root.opts.open.current}));get snippetProps(){return u(this.#t)}set snippetProps(t){y(this.#t,t)}#e=x(()=>({id:this.opts.id.current,[this.root.getBitsAttr("overlay")]:"",style:{pointerEvents:"auto","--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount},"data-nested-open":Wt(this.root.nestedOpenCount>0),"data-nested":Wt(this.root.parent!==null),...this.root.sharedProps,...this.attachment}));get props(){return u(this.#e)}set props(t){y(this.#e,t)}get shouldRender(){return this.root.overlayPresence.shouldRender}}class rn{static create(t){return new rn(t,vt.get())}opts;root;attachment;constructor(t,n){this.opts=t,this.root=n,this.attachment=tt(this.opts.ref,r=>this.root.cancelNode=r),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}onclick(t){this.opts.disabled.current||t.button>0||this.root.handleClose()}onkeydown(t){this.opts.disabled.current||(t.key===ie||t.key===Ee)&&(t.preventDefault(),this.root.handleClose())}#t=x(()=>({id:this.opts.id.current,[this.root.getBitsAttr("cancel")]:"",onclick:this.onclick,onkeydown:this.onkeydown,tabindex:0,...this.root.sharedProps,...this.attachment}));get props(){return u(this.#t)}set props(t){y(this.#t,t)}}function Oi(e,t){R(t,!0);let n=v(t,"open",15,!1),r=v(t,"onOpenChange",3,W),o=v(t,"onOpenChangeComplete",3,W);Qe.create({variant:w(()=>"alert-dialog"),open:w(()=>n(),a=>{n(a),r()(a)}),onOpenChangeComplete:w(()=>o())});var s=F(),i=T(s);k(i,()=>t.children??V),C(e,s),N()}var Ci=ct("<div><!></div>");function Ei(e,t){const n=Kt();R(t,!0);let r=v(t,"id",19,()=>Ht(n)),o=v(t,"ref",15,null),s=v(t,"level",3,2),i=K(t,["$$slots","$$events","$$legacy","id","ref","child","children","level"]);const a=$e.create({id:w(()=>r()),level:w(()=>s()),ref:w(()=>o(),f=>o(f))}),c=x(()=>ot(i,a.props));var l=F(),h=T(l);{var d=f=>{var g=F(),p=T(g);k(p,()=>t.child,()=>({props:u(c)})),C(f,g)},m=f=>{var g=Ci();Ct(g,()=>({...u(c)}));var p=At(g);k(p,()=>t.children??V),Ot(g),C(f,g)};rt(h,f=>{t.child?f(d):f(m,!1)})}C(e,l),N()}var Pi=ct("<button><!></button>");function Ti(e,t){const n=Kt();R(t,!0);let r=v(t,"id",19,()=>Ht(n)),o=v(t,"ref",15,null),s=K(t,["$$slots","$$events","$$legacy","children","child","id","ref"]);const i=Je.create({id:w(()=>r()),ref:w(()=>o(),m=>o(m))}),a=x(()=>ot(s,i.props));var c=F(),l=T(c);{var h=m=>{var f=F(),g=T(f);k(g,()=>t.child,()=>({props:u(a)})),C(m,f)},d=m=>{var f=Pi();Ct(f,()=>({...u(a)}));var g=At(f);k(g,()=>t.children??V),Ot(f),C(m,f)};rt(l,m=>{t.child?m(h):m(d,!1)})}C(e,c),N()}var Mi=ct("<button><!></button>");function Fi(e,t){const n=Kt();R(t,!0);let r=v(t,"id",19,()=>Ht(n)),o=v(t,"ref",15,null),s=v(t,"disabled",3,!1),i=K(t,["$$slots","$$events","$$legacy","id","ref","children","child","disabled"]);const a=rn.create({id:w(()=>r()),ref:w(()=>o(),f=>o(f)),disabled:w(()=>!!s())}),c=x(()=>ot(i,a.props));var l=F(),h=T(l);{var d=f=>{var g=F(),p=T(g);k(p,()=>t.child,()=>({props:u(c)})),C(f,g)},m=f=>{var g=Mi();Ct(g,()=>({...u(c)}));var p=At(g);k(p,()=>t.children??V),Ot(g),C(f,g)};rt(h,f=>{t.child?f(d):f(m,!1)})}C(e,l),N()}function Ii(e,t){var n=F(),r=T(n);bo(r,()=>t.children,o=>{var s=F(),i=T(s);k(i,()=>t.children??V),C(o,s)}),C(e,n)}const Ri=new Tt("BitsConfig");function Ni(){const e=new ki(null,{});return Ri.getOr(e).opts}class ki{opts;constructor(t,n){const r=Di(t,n);this.opts={defaultPortalTo:r(o=>o.defaultPortalTo),defaultLocale:r(o=>o.defaultLocale)}}}function Di(e,t){return n=>w(()=>{const o=n(t)?.current;if(o!==void 0)return o;if(e!==null)return n(e.opts)?.current})}function _i(e,t){return n=>{const r=Ni();return w(()=>{const o=n();if(o!==void 0)return o;const s=e(r).current;return s!==void 0?s:t})}}const Bi=_i(e=>e.defaultPortalTo,"body");function Li(e,t){R(t,!0);const n=Bi(()=>t.to),r=go();let o=x(s);function s(){if(!dr||t.disabled)return null;let d=null;return typeof n.current=="string"?d=document.querySelector(n.current):d=n.current,d}let i;function a(){i&&(no(i),i=null)}G([()=>u(o),()=>t.disabled],([d,m])=>{if(!d||m){a();return}return i=eo(Ii,{target:d,props:{children:t.children},context:r}),()=>{a()}});var c=F(),l=T(c);{var h=d=>{var m=F(),f=T(m);k(f,()=>t.children??V),C(d,m)};rt(l,d=>{t.disabled&&d(h)})}C(e,c),N()}class Wi{eventName;options;constructor(t,n={bubbles:!0,cancelable:!0}){this.eventName=t,this.options=n}createEvent(t){return new CustomEvent(this.eventName,{...this.options,detail:t})}dispatch(t,n){const r=this.createEvent(n);return t.dispatchEvent(r),r}listen(t,n,r){const o=s=>{n(s)};return j(t,this.eventName,o,r)}}function Fn(e,t=500){let n=null;const r=(...o)=>{n!==null&&clearTimeout(n),n=setTimeout(()=>{e(...o)},t)};return r.destroy=()=>{n!==null&&(clearTimeout(n),n=null)},r}function gr(e,t){return e===t||e.contains(t)}function pr(e){return e?.ownerDocument??document}function Vi(e,t){const{clientX:n,clientY:r}=e,o=t.getBoundingClientRect();return n<o.left||n>o.right||r<o.top||r>o.bottom}const Ki=[Ee,ie],zi=[te,fi,ur],mr=[fe,di,lr],Hi=[...zi,...mr];function In(e){return e.pointerType==="mouse"}function ji(e,{select:t=!1}={}){if(!e||!e.focus)return;const n=oe(e);if(n.activeElement===e)return;const r=n.activeElement;e.focus({preventScroll:!0}),e!==r&&wi(e)&&t&&e.select()}function Ui(e,{select:t=!1}={},n){const r=n();for(const o of e)if(ji(o,{select:t}),n()!==r)return!0}let qt=M(!1);class wt{static _refs=0;static _cleanup;constructor(){Z(()=>(wt._refs===0&&(wt._cleanup=qn(()=>{const t=[],n=o=>{y(qt,!1)},r=o=>{y(qt,!0)};return t.push(j(document,"pointerdown",n,{capture:!0}),j(document,"pointermove",n,{capture:!0}),j(document,"keydown",r,{capture:!0})),Rt(...t)})),wt._refs++,()=>{wt._refs--,wt._refs===0&&(y(qt,!1),wt._cleanup?.())}))}get current(){return u(qt)}set current(t){y(qt,t,!0)}}var vr=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],he=vr.join(","),yr=typeof Element>"u",Nt=yr?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,ge=!yr&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e?.ownerDocument},pe=function(t,n){var r;n===void 0&&(n=!0);var o=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"inert"),s=o===""||o==="true",i=s||n&&t&&(typeof t.closest=="function"?t.closest("[inert]"):pe(t.parentNode));return i},Gi=function(t){var n,r=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return r===""||r==="true"},br=function(t,n,r){if(pe(t))return[];var o=Array.prototype.slice.apply(t.querySelectorAll(he));return n&&Nt.call(t,he)&&o.unshift(t),o=o.filter(r),o},me=function(t,n,r){for(var o=[],s=Array.from(t);s.length;){var i=s.shift();if(!pe(i,!1))if(i.tagName==="SLOT"){var a=i.assignedElements(),c=a.length?a:i.children,l=me(c,!0,r);r.flatten?o.push.apply(o,l):o.push({scopeParent:i,candidates:l})}else{var h=Nt.call(i,he);h&&r.filter(i)&&(n||!t.includes(i))&&o.push(i);var d=i.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(i),m=!pe(d,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(i));if(d&&m){var f=me(d===!0?i.children:d.children,!0,r);r.flatten?o.push.apply(o,f):o.push({scopeParent:i,candidates:f})}else s.unshift.apply(s,i.children)}}return o},wr=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},xr=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||Gi(t))&&!wr(t)?0:t.tabIndex},Xi=function(t,n){var r=xr(t);return r<0&&n&&!wr(t)?0:r},Yi=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},Sr=function(t){return t.tagName==="INPUT"},qi=function(t){return Sr(t)&&t.type==="hidden"},Zi=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},Qi=function(t,n){for(var r=0;r<t.length;r++)if(t[r].checked&&t[r].form===n)return t[r]},Ji=function(t){if(!t.name)return!0;var n=t.form||ge(t),r=function(a){return n.querySelectorAll('input[type="radio"][name="'+a+'"]')},o;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")o=r(window.CSS.escape(t.name));else try{o=r(t.name)}catch(i){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",i.message),!1}var s=Qi(o,t.form);return!s||s===t},$i=function(t){return Sr(t)&&t.type==="radio"},ts=function(t){return $i(t)&&!Ji(t)},es=function(t){var n,r=t&&ge(t),o=(n=r)===null||n===void 0?void 0:n.host,s=!1;if(r&&r!==t){var i,a,c;for(s=!!((i=o)!==null&&i!==void 0&&(a=i.ownerDocument)!==null&&a!==void 0&&a.contains(o)||t!=null&&(c=t.ownerDocument)!==null&&c!==void 0&&c.contains(t));!s&&o;){var l,h,d;r=ge(o),o=(l=r)===null||l===void 0?void 0:l.host,s=!!((h=o)!==null&&h!==void 0&&(d=h.ownerDocument)!==null&&d!==void 0&&d.contains(o))}}return s},Rn=function(t){var n=t.getBoundingClientRect(),r=n.width,o=n.height;return r===0&&o===0},ns=function(t,n){var r=n.displayCheck,o=n.getShadowRoot;if(r==="full-native"&&"checkVisibility"in t){var s=t.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!s}if(getComputedStyle(t).visibility==="hidden")return!0;var i=Nt.call(t,"details>summary:first-of-type"),a=i?t.parentElement:t;if(Nt.call(a,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="full-native"||r==="legacy-full"){if(typeof o=="function"){for(var c=t;t;){var l=t.parentElement,h=ge(t);if(l&&!l.shadowRoot&&o(l)===!0)return Rn(t);t.assignedSlot?t=t.assignedSlot:!l&&h!==t.ownerDocument?t=h.host:t=l}t=c}if(es(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return Rn(t);return!1},rs=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var n=t.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r<n.children.length;r++){var o=n.children.item(r);if(o.tagName==="LEGEND")return Nt.call(n,"fieldset[disabled] *")?!0:!o.contains(t)}return!0}n=n.parentElement}return!1},ve=function(t,n){return!(n.disabled||qi(n)||ns(n,t)||Zi(n)||rs(n))},Ke=function(t,n){return!(ts(n)||xr(n)<0||!ve(t,n))},os=function(t){var n=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},Ar=function(t){var n=[],r=[];return t.forEach(function(o,s){var i=!!o.scopeParent,a=i?o.scopeParent:o,c=Xi(a,i),l=i?Ar(o.candidates):a;c===0?i?n.push.apply(n,l):n.push(a):r.push({documentOrder:s,tabIndex:c,item:o,isScope:i,content:l})}),r.sort(Yi).reduce(function(o,s){return s.isScope?o.push.apply(o,s.content):o.push(s.content),o},[]).concat(n)},Or=function(t,n){n=n||{};var r;return n.getShadowRoot?r=me([t],n.includeContainer,{filter:Ke.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:os}):r=br(t,n.includeContainer,Ke.bind(null,n)),Ar(r)},Cr=function(t,n){n=n||{};var r;return n.getShadowRoot?r=me([t],n.includeContainer,{filter:ve.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):r=br(t,n.includeContainer,ve.bind(null,n)),r},on=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return Nt.call(t,he)===!1?!1:Ke(n,t)},is=vr.concat("iframe:not([inert]):not([inert] *)").join(","),Er=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return Nt.call(t,is)===!1?!1:ve(n,t)};function $t(){return{getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"}}function ss(e,t){if(!on(e,$t()))return as(e,t);const n=oe(e),r=Or(n.body,$t());t==="prev"&&r.reverse();const o=r.indexOf(e);return o===-1?n.body:r.slice(o+1)[0]}function as(e,t){const n=oe(e);if(!Er(e,$t()))return n.body;const r=Cr(n.body,$t());t==="prev"&&r.reverse();const o=r.indexOf(e);return o===-1?n.body:r.slice(o+1).find(i=>on(i,$t()))??n.body}function cs(e,t){return e.length!==t.length?!1:e.every((n,r)=>Pr(n,t[r]))}function Pr(e,t){return Number.isNaN(e)&&Number.isNaN(t)?!0:Array.isArray(e)&&Array.isArray(t)?cs(e,t):typeof e=="object"&&typeof t=="object"?ls(e,t):Object.is(e,t)}function ls(e,t){if(typeof e!="object"||typeof t!="object"||e===null||t===null)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const o of n)if(!r.includes(o)||!Pr(e[o],t[o]))return!1;return!0}function gc(e,t,n=!0){if(!(e.length===0||t<0||t>=e.length))return e.length===1&&t===0?e[0]:t===e.length-1?n?e[0]:void 0:e[t+1]}function pc(e,t,n=!0){if(!(e.length===0||t<0||t>=e.length))return e.length===1&&t===0?e[0]:t===0?n?e[e.length-1]:void 0:e[t-1]}function mc(e,t,n,r=!0){if(e.length===0||t<0||t>=e.length)return;let o=t+n;return r?o=(o%e.length+e.length)%e.length:o=Math.max(0,Math.min(o,e.length-1)),e[o]}function vc(e,t,n,r=!0){if(e.length===0||t<0||t>=e.length)return;let o=t-n;return r?o=(o%e.length+e.length)%e.length:o=Math.max(0,Math.min(o,e.length-1)),e[o]}function Tr(e,t,n){const r=t.toLowerCase();if(r.endsWith(" ")){const d=r.slice(0,-1);if(e.filter(p=>p.toLowerCase().startsWith(d)).length<=1)return Tr(e,d,n);const f=n?.toLowerCase();if(f&&f.startsWith(d)&&f.charAt(d.length)===" "&&t.trim()===d)return n;const g=e.filter(p=>p.toLowerCase().startsWith(r));if(g.length>0){const p=n?e.indexOf(n):-1;return Nn(g,Math.max(p,0)).find(A=>A!==n)||n}}const s=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,i=s.toLowerCase(),a=n?e.indexOf(n):-1;let c=Nn(e,Math.max(a,0));s.length===1&&(c=c.filter(d=>d!==n));const h=c.find(d=>d?.toLowerCase().startsWith(i));return h!==n?h:void 0}function Nn(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const us={afterMs:1e4,onChange:W};function Mr(e,t){const{afterMs:n,onChange:r,getWindow:o}={...us,...t};let s=null,i=M(_t(e));function a(){return o().setTimeout(()=>{y(i,e,!0),r?.(e)},n)}return Z(()=>()=>{s&&o().clearTimeout(s)}),w(()=>u(i),c=>{y(i,c,!0),r?.(c),s&&o().clearTimeout(s),s=a()})}class ds{#t;#e;#n=x(()=>this.#t.onMatch?this.#t.onMatch:t=>t.focus());#r=x(()=>this.#t.getCurrentItem?this.#t.getCurrentItem:this.#t.getActiveElement);constructor(t){this.#t=t,this.#e=Mr("",{afterMs:1e3,getWindow:t.getWindow}),this.handleTypeaheadSearch=this.handleTypeaheadSearch.bind(this),this.resetTypeahead=this.resetTypeahead.bind(this)}handleTypeaheadSearch(t,n){if(!n.length)return;this.#e.current=this.#e.current+t;const r=u(this.#r)(),o=n.find(c=>c===r)?.textContent?.trim()??"",s=n.map(c=>c.textContent?.trim()??""),i=Tr(s,this.#e.current,o),a=n.find(c=>c.textContent?.trim()===i);return a&&u(this.#n)(a),a}resetTypeahead(){this.#e.current=""}get search(){return this.#e.current}}class fs{#t;#e;#n;#r=M(null);constructor(t){this.#t=t,this.#e=x(()=>this.#t.enabled()),this.#n=Mr(!1,{afterMs:t.transitTimeout??300,onChange:n=>{u(this.#e)&&this.#t.setIsPointerInTransit?.(n)},getWindow:()=>Ge(this.#t.triggerNode())}),G([t.triggerNode,t.contentNode,t.enabled],([n,r,o])=>{if(!n||!r||!o)return;const s=a=>{this.#i(a,r)},i=a=>{this.#i(a,n)};return Rt(j(n,"pointerleave",s),j(r,"pointerleave",i))}),G(()=>u(this.#r),()=>{const n=o=>{if(!u(this.#r))return;const s=o.target;if(!We(s))return;const i={x:o.clientX,y:o.clientY},a=t.triggerNode()?.contains(s)||t.contentNode()?.contains(s),c=!ms(i,u(this.#r));a?this.#o():c&&(this.#o(),t.onPointerExit())},r=oe(t.triggerNode()??t.contentNode());if(r)return j(r,"pointermove",n)})}#o(){y(this.#r,null),this.#n.current=!1}#i(t,n){const r=t.currentTarget;if(!mt(r))return;const o={x:t.clientX,y:t.clientY},s=hs(o,r.getBoundingClientRect()),i=gs(o,s),a=ps(n.getBoundingClientRect()),c=vs([...i,...a]);y(this.#r,c,!0),this.#n.current=!0}}function hs(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,o,s)){case s:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function gs(e,t,n=5){const r=n*1.5;switch(t){case"top":return[{x:e.x-n,y:e.y+n},{x:e.x,y:e.y-r},{x:e.x+n,y:e.y+n}];case"bottom":return[{x:e.x-n,y:e.y-n},{x:e.x,y:e.y+r},{x:e.x+n,y:e.y-n}];case"left":return[{x:e.x+n,y:e.y-n},{x:e.x-r,y:e.y},{x:e.x+n,y:e.y+n}];case"right":return[{x:e.x-n,y:e.y-n},{x:e.x+r,y:e.y},{x:e.x-n,y:e.y+n}]}}function ps(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function ms(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,i=t.length-1;s<t.length;i=s++){const a=t[s].x,c=t[s].y,l=t[i].x,h=t[i].y;c>r!=h>r&&n<(l-a)*(r-c)/(h-c)+a&&(o=!o)}return o}function vs(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),ys(t)}function ys(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const s=t[t.length-1],i=t[t.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const s=n[n.length-1],i=n[n.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}const bs="data-context-menu-trigger",ws="data-context-menu-content",Fr=new Tt("Menu.Root"),sn=new Tt("Menu.Root | Menu.Sub"),Ir=new Tt("Menu.Content"),xs=new Wi("bitsmenuopen",{bubbles:!1,cancelable:!0}),Ss=cr({component:"menu",parts:["trigger","content","sub-trigger","item","group","group-heading","checkbox-group","checkbox-item","radio-group","radio-item","separator","sub-content","arrow"]});class Rr{static create(t){const n=new Rr(t);return Fr.set(n)}opts;isUsingKeyboard=new wt;#t=M(!1);get ignoreCloseAutoFocus(){return u(this.#t)}set ignoreCloseAutoFocus(t){y(this.#t,t,!0)}#e=M(!1);get isPointerInTransit(){return u(this.#e)}set isPointerInTransit(t){y(this.#e,t,!0)}constructor(t){this.opts=t}getBitsAttr=t=>Ss.getAttr(t,this.opts.variant.current)}class Nr{static create(t,n){return sn.set(new Nr(t,n,null))}opts;root;parentMenu;contentId=w(()=>"");#t=M(null);get contentNode(){return u(this.#t)}set contentNode(t){y(this.#t,t,!0)}contentPresence;#e=M(null);get triggerNode(){return u(this.#e)}set triggerNode(t){y(this.#e,t,!0)}constructor(t,n,r){this.opts=t,this.root=n,this.parentMenu=r,this.contentPresence=new Ve({ref:w(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),r&&G(()=>r.opts.open.current,()=>{r.opts.open.current||(this.opts.open.current=!1)})}toggleOpen(){this.opts.open.current=!this.opts.open.current}onOpen(){this.opts.open.current=!0}onClose(){this.opts.open.current=!1}}class kr{static create(t){return Ir.set(new kr(t,sn.get()))}opts;parentMenu;rovingFocusGroup;domContext;attachment;#t=M("");get search(){return u(this.#t)}set search(t){y(this.#t,t,!0)}#e=0;#n;#r=M(!1);get mounted(){return u(this.#r)}set mounted(t){y(this.#r,t,!0)}#o;constructor(t,n){this.opts=t,this.parentMenu=n,this.domContext=new Xe(t.ref),this.attachment=tt(this.opts.ref,r=>{this.parentMenu.contentNode!==r&&(this.parentMenu.contentNode=r)}),n.contentId=t.id,this.#o=t.isSub??!1,this.onkeydown=this.onkeydown.bind(this),this.onblur=this.onblur.bind(this),this.onfocus=this.onfocus.bind(this),this.handleInteractOutside=this.handleInteractOutside.bind(this),new fs({contentNode:()=>this.parentMenu.contentNode,triggerNode:()=>this.parentMenu.triggerNode,enabled:()=>this.parentMenu.opts.open.current&&!!this.parentMenu.triggerNode?.hasAttribute(this.parentMenu.root.getBitsAttr("sub-trigger")),onPointerExit:()=>{this.parentMenu.opts.open.current=!1},setIsPointerInTransit:r=>{this.parentMenu.root.isPointerInTransit=r}}),this.#n=new ds({getActiveElement:()=>this.domContext.getActiveElement(),getWindow:()=>this.domContext.getWindow()}).handleTypeaheadSearch,this.rovingFocusGroup=new xi({rootNode:w(()=>this.parentMenu.contentNode),candidateAttr:this.parentMenu.root.getBitsAttr("item"),loop:this.opts.loop,orientation:w(()=>"vertical")}),G(()=>this.parentMenu.contentNode,r=>{if(!r)return;const o=()=>{lt(()=>{this.parentMenu.root.isUsingKeyboard.current&&this.rovingFocusGroup.focusFirstCandidate()})};return xs.listen(r,o)}),Z(()=>{this.parentMenu.opts.open.current||this.domContext.getWindow().clearTimeout(this.#e)})}#i(){const t=this.parentMenu.contentNode;return t?Array.from(t.querySelectorAll(`[${this.parentMenu.root.getBitsAttr("item")}]:not([data-disabled])`)):[]}#a(){return this.parentMenu.root.isPointerInTransit}onCloseAutoFocus=t=>{if(this.opts.onCloseAutoFocus.current?.(t),!(t.defaultPrevented||this.#o)){if(this.parentMenu.root.ignoreCloseAutoFocus){t.preventDefault();return}this.parentMenu.triggerNode&&on(this.parentMenu.triggerNode)&&(t.preventDefault(),this.parentMenu.triggerNode.focus())}};handleTabKeyDown(t){let n=this.parentMenu;for(;n.parentMenu!==null;)n=n.parentMenu;if(!n.triggerNode)return;t.preventDefault();const r=ss(n.triggerNode,t.shiftKey?"prev":"next");r?(this.parentMenu.root.ignoreCloseAutoFocus=!0,n.onClose(),lt(()=>{r.focus(),lt(()=>{this.parentMenu.root.ignoreCloseAutoFocus=!1})})):this.domContext.getDocument().body.focus()}onkeydown(t){if(t.defaultPrevented)return;if(t.key===hi){this.handleTabKeyDown(t);return}const n=t.target,r=t.currentTarget;if(!mt(n)||!mt(r))return;const o=n.closest(`[${this.parentMenu.root.getBitsAttr("content")}]`)?.id===this.parentMenu.contentId.current,s=t.ctrlKey||t.altKey||t.metaKey,i=t.key.length===1;if(this.rovingFocusGroup.handleKeydown(n,t)||t.code==="Space")return;const c=this.#i();o&&!s&&i&&this.#n(t.key,c),t.target?.id===this.parentMenu.contentId.current&&Hi.includes(t.key)&&(t.preventDefault(),mr.includes(t.key)&&c.reverse(),Ui(c,{select:!1},()=>this.domContext.getActiveElement()))}onblur(t){We(t.currentTarget)&&We(t.target)&&(t.currentTarget.contains?.(t.target)||(this.domContext.getWindow().clearTimeout(this.#e),this.search=""))}onfocus(t){this.parentMenu.root.isUsingKeyboard.current&<(()=>this.rovingFocusGroup.focusFirstCandidate())}onItemEnter(){return this.#a()}onItemLeave(t){if(t.currentTarget.hasAttribute(this.parentMenu.root.getBitsAttr("sub-trigger"))||this.#a()||this.parentMenu.root.isUsingKeyboard.current)return;this.parentMenu.contentNode?.focus(),this.rovingFocusGroup.setCurrentTabStopId("")}onTriggerLeave(){return!!this.#a()}handleInteractOutside(t){if(!fr(t.target))return;const n=this.parentMenu.triggerNode?.id;if(t.target.id===n){t.preventDefault();return}if(t.target.closest(`#${n}`)){t.preventDefault();return}this.parentMenu.root.ignoreCloseAutoFocus=!0,lt(()=>{this.parentMenu.root.ignoreCloseAutoFocus=!1})}get shouldRender(){return this.parentMenu.contentPresence.shouldRender}#s=x(()=>({open:this.parentMenu.opts.open.current}));get snippetProps(){return u(this.#s)}set snippetProps(t){y(this.#s,t)}#c=x(()=>({id:this.opts.id.current,role:"menu","aria-orientation":"vertical",[this.parentMenu.root.getBitsAttr("content")]:"","data-state":Ye(this.parentMenu.opts.open.current),onkeydown:this.onkeydown,onblur:this.onblur,onfocus:this.onfocus,dir:this.parentMenu.root.opts.dir.current,style:{pointerEvents:"auto",contain:"layout style"},...this.attachment}));get props(){return u(this.#c)}set props(t){y(this.#c,t)}popperProps={onCloseAutoFocus:t=>this.onCloseAutoFocus(t)}}class As{opts;content;attachment;#t=M(!1);constructor(t,n){this.opts=t,this.content=n,this.attachment=tt(this.opts.ref),this.onpointermove=this.onpointermove.bind(this),this.onpointerleave=this.onpointerleave.bind(this),this.onfocus=this.onfocus.bind(this),this.onblur=this.onblur.bind(this)}onpointermove(t){if(!t.defaultPrevented&&In(t))if(this.opts.disabled.current)this.content.onItemLeave(t);else{if(this.content.onItemEnter())return;const r=t.currentTarget;if(!mt(r))return;r.focus()}}onpointerleave(t){t.defaultPrevented||In(t)&&this.content.onItemLeave(t)}onfocus(t){lt(()=>{t.defaultPrevented||this.opts.disabled.current||y(this.#t,!0)})}onblur(t){lt(()=>{t.defaultPrevented||y(this.#t,!1)})}#e=x(()=>({id:this.opts.id.current,tabindex:-1,role:"menuitem","aria-disabled":ar(this.opts.disabled.current),"data-disabled":Wt(this.opts.disabled.current),"data-highlighted":u(this.#t)?"":void 0,[this.content.parentMenu.root.getBitsAttr("item")]:"",onpointermove:this.onpointermove,onpointerleave:this.onpointerleave,onfocus:this.onfocus,onblur:this.onblur,...this.attachment}));get props(){return u(this.#e)}set props(t){y(this.#e,t)}}class Dr{static create(t){const n=new As(t,Ir.get());return new Dr(t,n)}opts;item;root;#t=!1;constructor(t,n){this.opts=t,this.item=n,this.root=n.content.parentMenu.root,this.onkeydown=this.onkeydown.bind(this),this.onclick=this.onclick.bind(this),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this)}#e(){if(this.item.opts.disabled.current)return;const t=new CustomEvent("menuitemselect",{bubbles:!0,cancelable:!0});if(this.opts.onSelect.current(t),t.defaultPrevented){this.item.content.parentMenu.root.isUsingKeyboard.current=!1;return}this.opts.closeOnSelect.current&&this.item.content.parentMenu.root.opts.onClose()}onkeydown(t){const n=this.item.content.search!=="";if(!(this.item.opts.disabled.current||n&&t.key===ie)&&Ki.includes(t.key)){if(!mt(t.currentTarget))return;t.currentTarget.click(),t.preventDefault()}}onclick(t){this.item.opts.disabled.current||this.#e()}onpointerup(t){if(!t.defaultPrevented&&!this.#t){if(!mt(t.currentTarget))return;t.currentTarget?.click()}}onpointerdown(t){this.#t=!0}#n=x(()=>ot(this.item.props,{onclick:this.onclick,onpointerdown:this.onpointerdown,onpointerup:this.onpointerup,onkeydown:this.onkeydown}));get props(){return u(this.#n)}set props(t){y(this.#n,t)}}class _r{static create(t){return new _r(t,Fr.get())}opts;root;attachment;constructor(t,n){this.opts=t,this.root=n,this.attachment=tt(this.opts.ref)}#t=x(()=>({id:this.opts.id.current,role:"group",[this.root.getBitsAttr("separator")]:"",...this.attachment}));get props(){return u(this.#t)}set props(t){y(this.#t,t)}}class Br{static create(t){return new Br(t,sn.get())}opts;parentMenu;attachment;constructor(t,n){this.opts=t,this.parentMenu=n,this.attachment=tt(this.opts.ref,r=>this.parentMenu.triggerNode=r)}onclick=t=>{this.opts.disabled.current||t.detail!==0||(this.parentMenu.toggleOpen(),t.preventDefault())};onpointerdown=t=>{if(!this.opts.disabled.current){if(t.pointerType==="touch")return t.preventDefault();t.button===0&&t.ctrlKey===!1&&(this.parentMenu.toggleOpen(),this.parentMenu.opts.open.current||t.preventDefault())}};onpointerup=t=>{this.opts.disabled.current||t.pointerType==="touch"&&(t.preventDefault(),this.parentMenu.toggleOpen())};onkeydown=t=>{if(!this.opts.disabled.current){if(t.key===ie||t.key===Ee){this.parentMenu.toggleOpen(),t.preventDefault();return}t.key===te&&(this.parentMenu.onOpen(),t.preventDefault())}};#t=x(()=>{if(this.parentMenu.opts.open.current&&this.parentMenu.contentId.current)return this.parentMenu.contentId.current});#e=x(()=>({id:this.opts.id.current,disabled:this.opts.disabled.current,"aria-haspopup":"menu","aria-expanded":ar(this.parentMenu.opts.open.current),"aria-controls":u(this.#t),"data-disabled":Wt(this.opts.disabled.current),"data-state":Ye(this.parentMenu.opts.open.current),[this.parentMenu.root.getBitsAttr("trigger")]:"",onclick:this.onclick,onpointerdown:this.onpointerdown,onpointerup:this.onpointerup,onkeydown:this.onkeydown,...this.attachment}));get props(){return u(this.#e)}set props(t){y(this.#e,t)}}globalThis.bitsDismissableLayers??=new Map;class an{static create(t){return new an(t)}opts;#t;#e;#n={pointerdown:!1};#r=!1;#o=!1;#i=void 0;#a;#s=W;constructor(t){this.opts=t,this.#e=t.interactOutsideBehavior,this.#t=t.onInteractOutside,this.#a=t.onFocusOutside,Z(()=>{this.#i=pr(this.opts.ref.current)});let n=W;const r=()=>{this.#f(),globalThis.bitsDismissableLayers.delete(this),this.#d.destroy(),n()};G([()=>this.opts.enabled.current,()=>this.opts.ref.current],()=>{if(!(!this.opts.enabled.current||!this.opts.ref.current))return or(1,()=>{this.opts.ref.current&&(globalThis.bitsDismissableLayers.set(this,this.#e),n(),n=this.#u())}),r}),zt(()=>{this.#f.destroy(),globalThis.bitsDismissableLayers.delete(this),this.#d.destroy(),this.#s(),n()})}#c=t=>{t.defaultPrevented||this.opts.ref.current&<(()=>{!this.opts.ref.current||this.#m(t.target)||t.target&&!this.#o&&this.#a.current?.(t)})};#u(){return Rt(j(this.#i,"pointerdown",Rt(this.#h,this.#p),{capture:!0}),j(this.#i,"pointerdown",Rt(this.#g,this.#d)),j(this.#i,"focusin",this.#c))}#l=t=>{let n=t;n.defaultPrevented&&(n=kn(t)),this.#t.current(t)};#d=Fn(t=>{if(!this.opts.ref.current){this.#s();return}const n=this.opts.isValidEvent.current(t,this.opts.ref.current)||Es(t,this.opts.ref.current);if(!this.#r||this.#v()||!n){this.#s();return}let r=t;if(r.defaultPrevented&&(r=kn(r)),this.#e.current!=="close"&&this.#e.current!=="defer-otherwise-close"){this.#s();return}t.pointerType==="touch"?(this.#s(),this.#s=j(this.#i,"click",this.#l,{once:!0})):this.#t.current(r)},10);#h=t=>{this.#n[t.type]=!0};#g=t=>{this.#n[t.type]=!1};#p=()=>{this.opts.ref.current&&(this.#r=Cs(this.opts.ref.current))};#m=t=>this.opts.ref.current?gr(this.opts.ref.current,t):!1;#f=Fn(()=>{for(const t in this.#n)this.#n[t]=!1;this.#r=!1},20);#v(){return Object.values(this.#n).some(Boolean)}#y=()=>{this.#o=!0};#b=()=>{this.#o=!1};props={onfocuscapture:this.#y,onblurcapture:this.#b}}function Os(e=[...globalThis.bitsDismissableLayers]){return e.findLast(([t,{current:n}])=>n==="close"||n==="ignore")}function Cs(e){const t=[...globalThis.bitsDismissableLayers],n=Os(t);if(n)return n[0].opts.ref.current===e;const[r]=t[0];return r.opts.ref.current===e}function Es(e,t){const n=e.target;if(!fr(n))return!1;const r=!!n.closest(`[${bs}]`);if("button"in e&&e.button>0&&!r)return!1;if("button"in e&&e.button===0&&r)return!0;const o=!!t.closest(`[${ws}]`);return r&&o?!1:pr(n).documentElement.contains(n)&&!gr(t,n)&&Vi(e,t)}function kn(e){const t=e.currentTarget,n=e.target;let r;e instanceof PointerEvent?r=new PointerEvent(e.type,e):r=new PointerEvent("pointerdown",e);let o=!1;return new Proxy(r,{get:(i,a)=>a==="currentTarget"?t:a==="target"?n:a==="preventDefault"?()=>{o=!0,typeof i.preventDefault=="function"&&i.preventDefault()}:a==="defaultPrevented"?o:a in i?i[a]:e[a]})}function Lr(e,t){R(t,!0);let n=v(t,"interactOutsideBehavior",3,"close"),r=v(t,"onInteractOutside",3,W),o=v(t,"onFocusOutside",3,W),s=v(t,"isValidEvent",3,()=>!1);const i=an.create({id:w(()=>t.id),interactOutsideBehavior:w(()=>n()),onInteractOutside:w(()=>r()),enabled:w(()=>t.enabled),onFocusOutside:w(()=>o()),isValidEvent:w(()=>s()),ref:t.ref});var a=F(),c=T(a);k(c,()=>t.children??V,()=>({props:i.props})),C(e,a),N()}globalThis.bitsEscapeLayers??=new Map;class cn{static create(t){return new cn(t)}opts;domContext;constructor(t){this.opts=t,this.domContext=new Xe(this.opts.ref);let n=W;G(()=>t.enabled.current,r=>(r&&(globalThis.bitsEscapeLayers.set(this,t.escapeKeydownBehavior),n=this.#t()),()=>{n(),globalThis.bitsEscapeLayers.delete(this)}))}#t=()=>j(this.domContext.getDocument(),"keydown",this.#e,{passive:!1});#e=t=>{if(t.key!==ui||!Ps(this))return;const n=new KeyboardEvent(t.type,t);t.preventDefault();const r=this.opts.escapeKeydownBehavior.current;r!=="close"&&r!=="defer-otherwise-close"||this.opts.onEscapeKeydown.current(n)}}function Ps(e){const t=[...globalThis.bitsEscapeLayers],n=t.findLast(([o,{current:s}])=>s==="close"||s==="ignore");if(n)return n[0]===e;const[r]=t[0];return r===e}function Wr(e,t){R(t,!0);let n=v(t,"escapeKeydownBehavior",3,"close"),r=v(t,"onEscapeKeydown",3,W);cn.create({escapeKeydownBehavior:w(()=>n()),onEscapeKeydown:w(()=>r()),enabled:w(()=>t.enabled),ref:t.ref});var o=F(),s=T(o);k(s,()=>t.children??V),C(e,o),N()}class ln{static instance;#t=ut([]);#e=new WeakMap;#n=new WeakMap;static getInstance(){return this.instance||(this.instance=new ln),this.instance}register(t){const n=this.getActive();n&&n!==t&&n.pause();const r=document.activeElement;r&&r!==document.body&&this.#n.set(t,r),this.#t.current=this.#t.current.filter(o=>o!==t),this.#t.current.unshift(t)}unregister(t){this.#t.current=this.#t.current.filter(r=>r!==t);const n=this.getActive();n&&n.resume()}getActive(){return this.#t.current[0]}setFocusMemory(t,n){this.#e.set(t,n)}getFocusMemory(t){return this.#e.get(t)}isActiveScope(t){return this.getActive()===t}setPreFocusMemory(t,n){this.#n.set(t,n)}getPreFocusMemory(t){return this.#n.get(t)}clearPreFocusMemory(t){this.#n.delete(t)}}class un{#t=!1;#e=null;#n=ln.getInstance();#r=[];#o;constructor(t){this.#o=t}get paused(){return this.#t}pause(){this.#t=!0}resume(){this.#t=!1}#i(){for(const t of this.#r)t();this.#r=[]}mount(t){this.#e&&this.unmount(),this.#e=t,this.#n.register(this),this.#c(),this.#a()}unmount(){this.#e&&(this.#i(),this.#s(),this.#n.unregister(this),this.#n.clearPreFocusMemory(this),this.#e=null)}#a(){if(!this.#e)return;const t=new CustomEvent("focusScope.onOpenAutoFocus",{bubbles:!1,cancelable:!0});this.#o.onOpenAutoFocus.current(t),t.defaultPrevented||requestAnimationFrame(()=>{if(!this.#e)return;const n=this.#l();n?(n.focus(),this.#n.setFocusMemory(this,n)):this.#e.focus()})}#s(){const t=new CustomEvent("focusScope.onCloseAutoFocus",{bubbles:!1,cancelable:!0});if(this.#o.onCloseAutoFocus.current?.(t),!t.defaultPrevented){const n=this.#n.getPreFocusMemory(this);if(n&&document.contains(n))try{n.focus()}catch{document.body.focus()}}}#c(){if(!this.#e||!this.#o.trap.current)return;const t=this.#e,n=t.ownerDocument,r=i=>{if(this.#t||!this.#n.isActiveScope(this))return;const a=i.target;if(!a)return;if(t.contains(a))this.#n.setFocusMemory(this,a);else{const l=this.#n.getFocusMemory(this);if(l&&t.contains(l)&&Er(l))i.preventDefault(),l.focus();else{const h=this.#l(),d=this.#d()[0];(h||d||t).focus()}}},o=i=>{if(!this.#o.loop||this.#t||i.key!=="Tab"||!this.#n.isActiveScope(this))return;const a=this.#u();if(a.length===0)return;const c=a[0],l=a[a.length-1];!i.shiftKey&&n.activeElement===l?(i.preventDefault(),c.focus()):i.shiftKey&&n.activeElement===c&&(i.preventDefault(),l.focus())};this.#r.push(j(n,"focusin",r,{capture:!0}),j(t,"keydown",o));const s=new MutationObserver(()=>{const i=this.#n.getFocusMemory(this);if(i&&!t.contains(i)){const a=this.#l(),c=this.#d()[0],l=a||c;l?(l.focus(),this.#n.setFocusMemory(this,l)):t.focus()}});s.observe(t,{childList:!0,subtree:!0}),this.#r.push(()=>s.disconnect())}#u(){return this.#e?Or(this.#e,{includeContainer:!1,getShadowRoot:!0}):[]}#l(){return this.#u()[0]||null}#d(){return this.#e?Cr(this.#e,{includeContainer:!1,getShadowRoot:!0}):[]}static use(t){let n=null;return G([()=>t.ref.current,()=>t.enabled.current],([r,o])=>{r&&o?(n||(n=new un(t)),n.mount(r)):n&&(n.unmount(),n=null)}),zt(()=>{n?.unmount()}),{get props(){return{tabindex:-1}}}}}function Vr(e,t){R(t,!0);let n=v(t,"enabled",3,!1),r=v(t,"trapFocus",3,!1),o=v(t,"loop",3,!1),s=v(t,"onCloseAutoFocus",3,W),i=v(t,"onOpenAutoFocus",3,W);const a=un.use({enabled:w(()=>n()),trap:w(()=>r()),loop:o(),onCloseAutoFocus:w(()=>s()),onOpenAutoFocus:w(()=>i()),ref:t.ref});var c=F(),l=T(c);k(l,()=>t.focusScope??V,()=>({props:a.props})),C(e,c),N()}globalThis.bitsTextSelectionLayers??=new Map;class dn{static create(t){return new dn(t)}opts;domContext;#t=W;constructor(t){this.opts=t,this.domContext=new Xe(t.ref);let n=W;G(()=>this.opts.enabled.current,r=>(r&&(globalThis.bitsTextSelectionLayers.set(this,this.opts.enabled),n(),n=this.#e()),()=>{n(),this.#r(),globalThis.bitsTextSelectionLayers.delete(this)}))}#e(){return Rt(j(this.domContext.getDocument(),"pointerdown",this.#n),j(this.domContext.getDocument(),"pointerup",$n(this.#r,this.opts.onPointerUp.current)))}#n=t=>{const n=this.opts.ref.current,r=t.target;!mt(n)||!mt(r)||!this.opts.enabled.current||!Ms(this)||!ai(n,r)||(this.opts.onPointerDown.current(t),!t.defaultPrevented&&(this.#t=Ts(n,this.domContext.getDocument().body)))};#r=()=>{this.#t(),this.#t=W}}const Dn=e=>e.style.userSelect||e.style.webkitUserSelect;function Ts(e,t){const n=Dn(t),r=Dn(e);return ae(t,"none"),ae(e,"text"),()=>{ae(t,n),ae(e,r)}}function ae(e,t){e.style.userSelect=t,e.style.webkitUserSelect=t}function Ms(e){const t=[...globalThis.bitsTextSelectionLayers];if(!t.length)return!1;const n=t.at(-1);return n?n[0]===e:!1}function Kr(e,t){R(t,!0);let n=v(t,"preventOverflowTextSelection",3,!0),r=v(t,"onPointerDown",3,W),o=v(t,"onPointerUp",3,W);dn.create({id:w(()=>t.id),onPointerDown:w(()=>r()),onPointerUp:w(()=>o()),enabled:w(()=>t.enabled&&n()),ref:t.ref});var s=F(),i=T(s);k(i,()=>t.children??V),C(e,s),N()}globalThis.bitsIdCounter??={current:0};function fn(e="bits"){return globalThis.bitsIdCounter.current++,`${e}-${globalThis.bitsIdCounter.current}`}class Fs{#t;#e=0;#n=M();#r;constructor(t){this.#t=t}#o(){this.#e-=1,this.#r&&this.#e<=0&&(this.#r(),y(this.#n,void 0),this.#r=void 0)}get(...t){return this.#e+=1,u(this.#n)===void 0&&(this.#r=qn(()=>{y(this.#n,this.#t(...t),!0)})),Z(()=>()=>{this.#o()}),u(this.#n)}}const ue=new wo;let ce=M(null),Ne=null,Zt=null,Qt=!1;const _n=w(()=>{for(const e of ue.values())if(e)return!0;return!1});let ke=null;const Is=new Fs(()=>{function e(){document.body.setAttribute("style",u(ce)??""),document.body.style.removeProperty("--scrollbar-width"),Mn&&Ne?.(),y(ce,null)}function t(){Zt!==null&&(window.clearTimeout(Zt),Zt=null)}function n(o,s){t(),Qt=!0,ke=Date.now();const i=ke,a=()=>{Zt=null,ke===i&&(zr(ue)?Qt=!1:(Qt=!1,s()))},c=o===null?24:o;Zt=window.setTimeout(a,c)}function r(){u(ce)===null&&ue.size===0&&!Qt&&y(ce,document.body.getAttribute("style"),!0)}return G(()=>_n.current,()=>{if(!_n.current)return;r(),Qt=!1;const o=getComputedStyle(document.documentElement),s=getComputedStyle(document.body),i=o.scrollbarGutter?.includes("stable")||s.scrollbarGutter?.includes("stable"),a=window.innerWidth-document.documentElement.clientWidth,l={padding:Number.parseInt(s.paddingRight??"0",10)+a,margin:Number.parseInt(s.marginRight??"0",10)};a>0&&!i&&(document.body.style.paddingRight=`${l.padding}px`,document.body.style.marginRight=`${l.margin}px`,document.body.style.setProperty("--scrollbar-width",`${a}px`)),document.body.style.overflow="hidden",Mn&&(Ne=j(document,"touchmove",h=>{h.target===document.documentElement&&(h.touches.length>1||h.preventDefault())},{passive:!1})),lt(()=>{document.body.style.pointerEvents="none",document.body.style.overflow="hidden"})}),zt(()=>()=>{Ne?.()}),{get lockMap(){return ue},resetBodyStyle:e,scheduleCleanupIfNoNewLocks:n,cancelPendingCleanup:t,ensureInitialStyleCaptured:r}});class Rs{#t=fn();#e;#n=()=>null;#r;locked;constructor(t,n=()=>null){this.#e=t,this.#n=n,this.#r=Is.get(),this.#r&&(this.#r.cancelPendingCleanup(),this.#r.ensureInitialStyleCaptured(),this.#r.lockMap.set(this.#t,this.#e??!1),this.locked=w(()=>this.#r.lockMap.get(this.#t)??!1,r=>this.#r.lockMap.set(this.#t,r)),zt(()=>{if(this.#r.lockMap.delete(this.#t),zr(this.#r.lockMap))return;const r=this.#n();this.#r.scheduleCleanupIfNoNewLocks(r,()=>{this.#r.resetBodyStyle()})}))}}function zr(e){for(const[t,n]of e)if(n)return!0;return!1}function ye(e,t){R(t,!0);let n=v(t,"preventScroll",3,!0),r=v(t,"restoreScrollDelay",3,null);n()&&new Rs(n(),()=>r()),N()}var Ns=ct("<!> <!>",1),ks=ct("<!> <div><!></div>",1);function Ds(e,t){const n=Kt();R(t,!0);let r=v(t,"id",19,()=>Ht(n)),o=v(t,"ref",15,null),s=v(t,"forceMount",3,!1),i=v(t,"interactOutsideBehavior",3,"ignore"),a=v(t,"onCloseAutoFocus",3,W),c=v(t,"onEscapeKeydown",3,W),l=v(t,"onOpenAutoFocus",3,W),h=v(t,"onInteractOutside",3,W),d=v(t,"preventScroll",3,!0),m=v(t,"trapFocus",3,!0),f=v(t,"restoreScrollDelay",3,null),g=K(t,["$$slots","$$events","$$legacy","id","children","child","ref","forceMount","interactOutsideBehavior","onCloseAutoFocus","onEscapeKeydown","onOpenAutoFocus","onInteractOutside","preventScroll","trapFocus","restoreScrollDelay"]);const p=en.create({id:w(()=>r()),ref:w(()=>o(),O=>o(O))}),b=x(()=>ot(g,p.props));var S=F(),A=T(S);{var E=O=>{Vr(O,{get ref(){return p.opts.ref},loop:!0,get trapFocus(){return m()},get enabled(){return p.root.opts.open.current},get onCloseAutoFocus(){return a()},onOpenAutoFocus:P=>{l()(P),!P.defaultPrevented&&(P.preventDefault(),or(0,()=>p.opts.ref.current?.focus()))},focusScope:(P,D)=>{let X=()=>D?.().props;Wr(P,Q(()=>u(b),{get enabled(){return p.root.opts.open.current},get ref(){return p.opts.ref},onEscapeKeydown:z=>{c()(z),!z.defaultPrevented&&p.root.handleClose()},children:(z,_)=>{Lr(z,Q(()=>u(b),{get ref(){return p.opts.ref},get enabled(){return p.root.opts.open.current},get interactOutsideBehavior(){return i()},onInteractOutside:B=>{h()(B),!B.defaultPrevented&&p.root.handleClose()},children:(B,J)=>{Kr(B,Q(()=>u(b),{get ref(){return p.opts.ref},get enabled(){return p.root.opts.open.current},children:(L,H)=>{var q=F(),et=T(q);{var $=U=>{var pt=Ns(),Gt=T(pt);{var Xt=Mt=>{ye(Mt,{get preventScroll(){return d()},get restoreScrollDelay(){return f()}})};rt(Gt,Mt=>{p.root.opts.open.current&&Mt(Xt)})}var Ie=de(Gt,2);{let Mt=x(()=>({props:ot(u(b),X()),...p.snippetProps}));k(Ie,()=>t.child,()=>u(Mt))}C(U,pt)},Y=U=>{var pt=ks(),Gt=T(pt);ye(Gt,{get preventScroll(){return d()}});var Xt=de(Gt,2);Ct(Xt,Mt=>({...Mt}),[()=>ot(u(b),X())]);var Ie=At(Xt);k(Ie,()=>t.children??V),Ot(Xt),C(U,pt)};rt(et,U=>{t.child?U($):U(Y,!1)})}C(L,q)},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{focusScope:!0}})};rt(A,O=>{(p.shouldRender||s())&&O(E)})}C(e,S),N()}var _s=ct("<div><!></div>");function Bs(e,t){const n=Kt();R(t,!0);let r=v(t,"id",19,()=>Ht(n)),o=v(t,"forceMount",3,!1),s=v(t,"ref",15,null),i=K(t,["$$slots","$$events","$$legacy","id","forceMount","child","children","ref"]);const a=nn.create({id:w(()=>r()),ref:w(()=>s(),m=>s(m))}),c=x(()=>ot(i,a.props));var l=F(),h=T(l);{var d=m=>{var f=F(),g=T(f);{var p=S=>{var A=F(),E=T(A);{let O=x(()=>({props:ot(u(c)),...a.snippetProps}));k(E,()=>t.child,()=>u(O))}C(S,A)},b=S=>{var A=_s();Ct(A,O=>({...O}),[()=>ot(u(c))]);var E=At(A);k(E,()=>t.children??V,()=>a.snippetProps),Ot(A),C(S,A)};rt(g,S=>{t.child?S(p):S(b,!1)})}C(m,f)};rt(h,m=>{(a.shouldRender||o())&&m(d)})}C(e,l),N()}var Ls=ct("<div><!></div>");function Ws(e,t){const n=Kt();R(t,!0);let r=v(t,"id",19,()=>Ht(n)),o=v(t,"ref",15,null),s=K(t,["$$slots","$$events","$$legacy","id","children","child","ref"]);const i=tn.create({id:w(()=>r()),ref:w(()=>o(),m=>o(m))}),a=x(()=>ot(s,i.props));var c=F(),l=T(c);{var h=m=>{var f=F(),g=T(f);k(g,()=>t.child,()=>({props:u(a)})),C(m,f)},d=m=>{var f=Ls();Ct(f,()=>({...u(a)}));var g=At(f);k(g,()=>t.children??V),Ot(f),C(m,f)};rt(l,m=>{t.child?m(h):m(d,!1)})}C(e,c),N()}const Vs=["top","right","bottom","left"],xt=Math.min,nt=Math.max,be=Math.round,le=Math.floor,ft=e=>({x:e,y:e}),Ks={left:"right",right:"left",bottom:"top",top:"bottom"},zs={start:"end",end:"start"};function ze(e,t,n){return nt(e,xt(t,n))}function yt(e,t){return typeof e=="function"?e(t):e}function bt(e){return e.split("-")[0]}function jt(e){return e.split("-")[1]}function hn(e){return e==="x"?"y":"x"}function gn(e){return e==="y"?"height":"width"}const Hs=new Set(["top","bottom"]);function dt(e){return Hs.has(bt(e))?"y":"x"}function pn(e){return hn(dt(e))}function js(e,t,n){n===void 0&&(n=!1);const r=jt(e),o=pn(e),s=gn(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=we(i)),[i,we(i)]}function Us(e){const t=we(e);return[He(e),t,He(t)]}function He(e){return e.replace(/start|end/g,t=>zs[t])}const Bn=["left","right"],Ln=["right","left"],Gs=["top","bottom"],Xs=["bottom","top"];function Ys(e,t,n){switch(e){case"top":case"bottom":return n?t?Ln:Bn:t?Bn:Ln;case"left":case"right":return t?Gs:Xs;default:return[]}}function qs(e,t,n,r){const o=jt(e);let s=Ys(bt(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(He)))),s}function we(e){return e.replace(/left|right|bottom|top/g,t=>Ks[t])}function Zs(e){return{top:0,right:0,bottom:0,left:0,...e}}function Hr(e){return typeof e!="number"?Zs(e):{top:e,right:e,bottom:e,left:e}}function xe(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Wn(e,t,n){let{reference:r,floating:o}=e;const s=dt(t),i=pn(t),a=gn(i),c=bt(t),l=s==="y",h=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,m=r[a]/2-o[a]/2;let f;switch(c){case"top":f={x:h,y:r.y-o.height};break;case"bottom":f={x:h,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:d};break;case"left":f={x:r.x-o.width,y:d};break;default:f={x:r.x,y:r.y}}switch(jt(t)){case"start":f[i]-=m*(n&&l?-1:1);break;case"end":f[i]+=m*(n&&l?-1:1);break}return f}async function Qs(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:i,elements:a,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:h="viewport",elementContext:d="floating",altBoundary:m=!1,padding:f=0}=yt(t,e),g=Hr(f),b=a[m?d==="floating"?"reference":"floating":d],S=xe(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(b)))==null||n?b:b.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:l,rootBoundary:h,strategy:c})),A=d==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),O=await(s.isElement==null?void 0:s.isElement(E))?await(s.getScale==null?void 0:s.getScale(E))||{x:1,y:1}:{x:1,y:1},I=xe(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:A,offsetParent:E,strategy:c}):A);return{top:(S.top-I.top+g.top)/O.y,bottom:(I.bottom-S.bottom+g.bottom)/O.y,left:(S.left-I.left+g.left)/O.x,right:(I.right-S.right+g.right)/O.x}}const Js=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,a=s.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(t));let l=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:h,y:d}=Wn(l,r,c),m=r,f={},g=0;for(let b=0;b<a.length;b++){var p;const{name:S,fn:A}=a[b],{x:E,y:O,data:I,reset:P}=await A({x:h,y:d,initialPlacement:r,placement:m,strategy:o,middlewareData:f,rects:l,platform:{...i,detectOverflow:(p=i.detectOverflow)!=null?p:Qs},elements:{reference:e,floating:t}});h=E??h,d=O??d,f={...f,[S]:{...f[S],...I}},P&&g<=50&&(g++,typeof P=="object"&&(P.placement&&(m=P.placement),P.rects&&(l=P.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):P.rects),{x:h,y:d}=Wn(l,m,c)),b=-1)}return{x:h,y:d,placement:m,strategy:o,middlewareData:f}},$s=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:i,elements:a,middlewareData:c}=t,{element:l,padding:h=0}=yt(e,t)||{};if(l==null)return{};const d=Hr(h),m={x:n,y:r},f=pn(o),g=gn(f),p=await i.getDimensions(l),b=f==="y",S=b?"top":"left",A=b?"bottom":"right",E=b?"clientHeight":"clientWidth",O=s.reference[g]+s.reference[f]-m[f]-s.floating[g],I=m[f]-s.reference[f],P=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l));let D=P?P[E]:0;(!D||!await(i.isElement==null?void 0:i.isElement(P)))&&(D=a.floating[E]||s.floating[g]);const X=O/2-I/2,z=D/2-p[g]/2-1,_=xt(d[S],z),B=xt(d[A],z),J=_,L=D-p[g]-B,H=D/2-p[g]/2+X,q=ze(J,H,L),et=!c.arrow&&jt(o)!=null&&H!==q&&s.reference[g]/2-(H<J?_:B)-p[g]/2<0,$=et?H<J?H-J:H-L:0;return{[f]:m[f]+$,data:{[f]:q,centerOffset:H-q-$,...et&&{alignmentOffset:$}},reset:et}}}),ta=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:i,initialPlacement:a,platform:c,elements:l}=t,{mainAxis:h=!0,crossAxis:d=!0,fallbackPlacements:m,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:p=!0,...b}=yt(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const S=bt(o),A=dt(a),E=bt(a)===a,O=await(c.isRTL==null?void 0:c.isRTL(l.floating)),I=m||(E||!p?[we(a)]:Us(a)),P=g!=="none";!m&&P&&I.push(...qs(a,p,g,O));const D=[a,...I],X=await c.detectOverflow(t,b),z=[];let _=((r=s.flip)==null?void 0:r.overflows)||[];if(h&&z.push(X[S]),d){const H=js(o,i,O);z.push(X[H[0]],X[H[1]])}if(_=[..._,{placement:o,overflows:z}],!z.every(H=>H<=0)){var B,J;const H=(((B=s.flip)==null?void 0:B.index)||0)+1,q=D[H];if(q&&(!(d==="alignment"?A!==dt(q):!1)||_.every(Y=>dt(Y.placement)===A?Y.overflows[0]>0:!0)))return{data:{index:H,overflows:_},reset:{placement:q}};let et=(J=_.filter($=>$.overflows[0]<=0).sort(($,Y)=>$.overflows[1]-Y.overflows[1])[0])==null?void 0:J.placement;if(!et)switch(f){case"bestFit":{var L;const $=(L=_.filter(Y=>{if(P){const U=dt(Y.placement);return U===A||U==="y"}return!0}).map(Y=>[Y.placement,Y.overflows.filter(U=>U>0).reduce((U,pt)=>U+pt,0)]).sort((Y,U)=>Y[1]-U[1])[0])==null?void 0:L[0];$&&(et=$);break}case"initialPlacement":et=a;break}if(o!==et)return{reset:{placement:et}}}return{}}}};function Vn(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Kn(e){return Vs.some(t=>e[t]>=0)}const ea=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...s}=yt(e,t);switch(o){case"referenceHidden":{const i=await r.detectOverflow(t,{...s,elementContext:"reference"}),a=Vn(i,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Kn(a)}}}case"escaped":{const i=await r.detectOverflow(t,{...s,altBoundary:!0}),a=Vn(i,n.floating);return{data:{escapedOffsets:a,escaped:Kn(a)}}}default:return{}}}}},jr=new Set(["left","top"]);async function na(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=bt(n),a=jt(n),c=dt(n)==="y",l=jr.has(i)?-1:1,h=s&&c?-1:1,d=yt(t,e);let{mainAxis:m,crossAxis:f,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof g=="number"&&(f=a==="end"?g*-1:g),c?{x:f*h,y:m*l}:{x:m*l,y:f*h}}const ra=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:i,middlewareData:a}=t,c=await na(t,e);return i===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:s+c.y,data:{...c,placement:i}}}}},oa=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:s}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:c={fn:S=>{let{x:A,y:E}=S;return{x:A,y:E}}},...l}=yt(e,t),h={x:n,y:r},d=await s.detectOverflow(t,l),m=dt(bt(o)),f=hn(m);let g=h[f],p=h[m];if(i){const S=f==="y"?"top":"left",A=f==="y"?"bottom":"right",E=g+d[S],O=g-d[A];g=ze(E,g,O)}if(a){const S=m==="y"?"top":"left",A=m==="y"?"bottom":"right",E=p+d[S],O=p-d[A];p=ze(E,p,O)}const b=c.fn({...t,[f]:g,[m]:p});return{...b,data:{x:b.x-n,y:b.y-r,enabled:{[f]:i,[m]:a}}}}}},ia=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:i}=t,{offset:a=0,mainAxis:c=!0,crossAxis:l=!0}=yt(e,t),h={x:n,y:r},d=dt(o),m=hn(d);let f=h[m],g=h[d];const p=yt(a,t),b=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(c){const E=m==="y"?"height":"width",O=s.reference[m]-s.floating[E]+b.mainAxis,I=s.reference[m]+s.reference[E]-b.mainAxis;f<O?f=O:f>I&&(f=I)}if(l){var S,A;const E=m==="y"?"width":"height",O=jr.has(bt(o)),I=s.reference[d]-s.floating[E]+(O&&((S=i.offset)==null?void 0:S[d])||0)+(O?0:b.crossAxis),P=s.reference[d]+s.reference[E]+(O?0:((A=i.offset)==null?void 0:A[d])||0)-(O?b.crossAxis:0);g<I?g=I:g>P&&(g=P)}return{[m]:f,[d]:g}}}},sa=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:i,elements:a}=t,{apply:c=()=>{},...l}=yt(e,t),h=await i.detectOverflow(t,l),d=bt(o),m=jt(o),f=dt(o)==="y",{width:g,height:p}=s.floating;let b,S;d==="top"||d==="bottom"?(b=d,S=m===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(S=d,b=m==="end"?"top":"bottom");const A=p-h.top-h.bottom,E=g-h.left-h.right,O=xt(p-h[b],A),I=xt(g-h[S],E),P=!t.middlewareData.shift;let D=O,X=I;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(X=E),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(D=A),P&&!m){const _=nt(h.left,0),B=nt(h.right,0),J=nt(h.top,0),L=nt(h.bottom,0);f?X=g-2*(_!==0||B!==0?_+B:nt(h.left,h.right)):D=p-2*(J!==0||L!==0?J+L:nt(h.top,h.bottom))}await c({...t,availableWidth:X,availableHeight:D});const z=await i.getDimensions(a.floating);return g!==z.width||p!==z.height?{reset:{rects:!0}}:{}}}};function Pe(){return typeof window<"u"}function Ut(e){return Ur(e)?(e.nodeName||"").toLowerCase():"#document"}function it(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function gt(e){var t;return(t=(Ur(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ur(e){return Pe()?e instanceof Node||e instanceof it(e).Node:!1}function st(e){return Pe()?e instanceof Element||e instanceof it(e).Element:!1}function ht(e){return Pe()?e instanceof HTMLElement||e instanceof it(e).HTMLElement:!1}function zn(e){return!Pe()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof it(e).ShadowRoot}const aa=new Set(["inline","contents"]);function se(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=at(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!aa.has(o)}const ca=new Set(["table","td","th"]);function la(e){return ca.has(Ut(e))}const ua=[":popover-open",":modal"];function Te(e){return ua.some(t=>{try{return e.matches(t)}catch{return!1}})}const da=["transform","translate","scale","rotate","perspective"],fa=["transform","translate","scale","rotate","perspective","filter"],ha=["paint","layout","strict","content"];function mn(e){const t=vn(),n=st(e)?at(e):e;return da.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||fa.some(r=>(n.willChange||"").includes(r))||ha.some(r=>(n.contain||"").includes(r))}function ga(e){let t=St(e);for(;ht(t)&&!Vt(t);){if(mn(t))return t;if(Te(t))return null;t=St(t)}return null}function vn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const pa=new Set(["html","body","#document"]);function Vt(e){return pa.has(Ut(e))}function at(e){return it(e).getComputedStyle(e)}function Me(e){return st(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function St(e){if(Ut(e)==="html")return e;const t=e.assignedSlot||e.parentNode||zn(e)&&e.host||gt(e);return zn(t)?t.host:t}function Gr(e){const t=St(e);return Vt(t)?e.ownerDocument?e.ownerDocument.body:e.body:ht(t)&&se(t)?t:Gr(t)}function ee(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Gr(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=it(o);if(s){const a=je(i);return t.concat(i,i.visualViewport||[],se(o)?o:[],a&&n?ee(a):[])}return t.concat(o,ee(o,[],n))}function je(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Xr(e){const t=at(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=ht(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,a=be(n)!==s||be(r)!==i;return a&&(n=s,r=i),{width:n,height:r,$:a}}function yn(e){return st(e)?e:e.contextElement}function Bt(e){const t=yn(e);if(!ht(t))return ft(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=Xr(t);let i=(s?be(n.width):n.width)/r,a=(s?be(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const ma=ft(0);function Yr(e){const t=it(e);return!vn()||!t.visualViewport?ma:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function va(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==it(e)?!1:t}function kt(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=yn(e);let i=ft(1);t&&(r?st(r)&&(i=Bt(r)):i=Bt(e));const a=va(s,n,r)?Yr(s):ft(0);let c=(o.left+a.x)/i.x,l=(o.top+a.y)/i.y,h=o.width/i.x,d=o.height/i.y;if(s){const m=it(s),f=r&&st(r)?it(r):r;let g=m,p=je(g);for(;p&&r&&f!==g;){const b=Bt(p),S=p.getBoundingClientRect(),A=at(p),E=S.left+(p.clientLeft+parseFloat(A.paddingLeft))*b.x,O=S.top+(p.clientTop+parseFloat(A.paddingTop))*b.y;c*=b.x,l*=b.y,h*=b.x,d*=b.y,c+=E,l+=O,g=it(p),p=je(g)}}return xe({width:h,height:d,x:c,y:l})}function Fe(e,t){const n=Me(e).scrollLeft;return t?t.left+n:kt(gt(e)).left+n}function qr(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Fe(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function ya(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=gt(r),a=t?Te(t.floating):!1;if(r===i||a&&s)return n;let c={scrollLeft:0,scrollTop:0},l=ft(1);const h=ft(0),d=ht(r);if((d||!d&&!s)&&((Ut(r)!=="body"||se(i))&&(c=Me(r)),ht(r))){const f=kt(r);l=Bt(r),h.x=f.x+r.clientLeft,h.y=f.y+r.clientTop}const m=i&&!d&&!s?qr(i,c):ft(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+h.x+m.x,y:n.y*l.y-c.scrollTop*l.y+h.y+m.y}}function ba(e){return Array.from(e.getClientRects())}function wa(e){const t=gt(e),n=Me(e),r=e.ownerDocument.body,o=nt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=nt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+Fe(e);const a=-n.scrollTop;return at(r).direction==="rtl"&&(i+=nt(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:a}}const Hn=25;function xa(e,t){const n=it(e),r=gt(e),o=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,a=0,c=0;if(o){s=o.width,i=o.height;const h=vn();(!h||h&&t==="fixed")&&(a=o.offsetLeft,c=o.offsetTop)}const l=Fe(r);if(l<=0){const h=r.ownerDocument,d=h.body,m=getComputedStyle(d),f=h.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,g=Math.abs(r.clientWidth-d.clientWidth-f);g<=Hn&&(s-=g)}else l<=Hn&&(s+=l);return{width:s,height:i,x:a,y:c}}const Sa=new Set(["absolute","fixed"]);function Aa(e,t){const n=kt(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=ht(e)?Bt(e):ft(1),i=e.clientWidth*s.x,a=e.clientHeight*s.y,c=o*s.x,l=r*s.y;return{width:i,height:a,x:c,y:l}}function jn(e,t,n){let r;if(t==="viewport")r=xa(e,n);else if(t==="document")r=wa(gt(e));else if(st(t))r=Aa(t,n);else{const o=Yr(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return xe(r)}function Zr(e,t){const n=St(e);return n===t||!st(n)||Vt(n)?!1:at(n).position==="fixed"||Zr(n,t)}function Oa(e,t){const n=t.get(e);if(n)return n;let r=ee(e,[],!1).filter(a=>st(a)&&Ut(a)!=="body"),o=null;const s=at(e).position==="fixed";let i=s?St(e):e;for(;st(i)&&!Vt(i);){const a=at(i),c=mn(i);!c&&a.position==="fixed"&&(o=null),(s?!c&&!o:!c&&a.position==="static"&&!!o&&Sa.has(o.position)||se(i)&&!c&&Zr(e,i))?r=r.filter(h=>h!==i):o=a,i=St(i)}return t.set(e,r),r}function Ca(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?Te(t)?[]:Oa(t,this._c):[].concat(n),r],a=i[0],c=i.reduce((l,h)=>{const d=jn(t,h,o);return l.top=nt(d.top,l.top),l.right=xt(d.right,l.right),l.bottom=xt(d.bottom,l.bottom),l.left=nt(d.left,l.left),l},jn(t,a,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Ea(e){const{width:t,height:n}=Xr(e);return{width:t,height:n}}function Pa(e,t,n){const r=ht(t),o=gt(t),s=n==="fixed",i=kt(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const c=ft(0);function l(){c.x=Fe(o)}if(r||!r&&!s)if((Ut(t)!=="body"||se(o))&&(a=Me(t)),r){const f=kt(t,!0,s,t);c.x=f.x+t.clientLeft,c.y=f.y+t.clientTop}else o&&l();s&&!r&&o&&l();const h=o&&!r&&!s?qr(o,a):ft(0),d=i.left+a.scrollLeft-c.x-h.x,m=i.top+a.scrollTop-c.y-h.y;return{x:d,y:m,width:i.width,height:i.height}}function De(e){return at(e).position==="static"}function Un(e,t){if(!ht(e)||at(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return gt(e)===n&&(n=n.ownerDocument.body),n}function Qr(e,t){const n=it(e);if(Te(e))return n;if(!ht(e)){let o=St(e);for(;o&&!Vt(o);){if(st(o)&&!De(o))return o;o=St(o)}return n}let r=Un(e,t);for(;r&&la(r)&&De(r);)r=Un(r,t);return r&&Vt(r)&&De(r)&&!mn(r)?n:r||ga(e)||n}const Ta=async function(e){const t=this.getOffsetParent||Qr,n=this.getDimensions,r=await n(e.floating);return{reference:Pa(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Ma(e){return at(e).direction==="rtl"}const Fa={convertOffsetParentRelativeRectToViewportRelativeRect:ya,getDocumentElement:gt,getClippingRect:Ca,getOffsetParent:Qr,getElementRects:Ta,getClientRects:ba,getDimensions:Ea,getScale:Bt,isElement:st,isRTL:Ma};function Jr(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Ia(e,t){let n=null,r;const o=gt(e);function s(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function i(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),s();const l=e.getBoundingClientRect(),{left:h,top:d,width:m,height:f}=l;if(a||t(),!m||!f)return;const g=le(d),p=le(o.clientWidth-(h+m)),b=le(o.clientHeight-(d+f)),S=le(h),E={rootMargin:-g+"px "+-p+"px "+-b+"px "+-S+"px",threshold:nt(0,xt(1,c))||1};let O=!0;function I(P){const D=P[0].intersectionRatio;if(D!==c){if(!O)return i();D?i(!1,D):r=setTimeout(()=>{i(!1,1e-7)},1e3)}D===1&&!Jr(l,e.getBoundingClientRect())&&i(),O=!1}try{n=new IntersectionObserver(I,{...E,root:o.ownerDocument})}catch{n=new IntersectionObserver(I,E)}n.observe(e)}return i(!0),s}function Ra(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,l=yn(e),h=o||s?[...l?ee(l):[],...ee(t)]:[];h.forEach(S=>{o&&S.addEventListener("scroll",n,{passive:!0}),s&&S.addEventListener("resize",n)});const d=l&&a?Ia(l,n):null;let m=-1,f=null;i&&(f=new ResizeObserver(S=>{let[A]=S;A&&A.target===l&&f&&(f.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var E;(E=f)==null||E.observe(t)})),n()}),l&&!c&&f.observe(l),f.observe(t));let g,p=c?kt(e):null;c&&b();function b(){const S=kt(e);p&&!Jr(p,S)&&n(),p=S,g=requestAnimationFrame(b)}return n(),()=>{var S;h.forEach(A=>{o&&A.removeEventListener("scroll",n),s&&A.removeEventListener("resize",n)}),d?.(),(S=f)==null||S.disconnect(),f=null,c&&cancelAnimationFrame(g)}}const Na=ra,ka=oa,Da=ta,_a=sa,Ba=ea,La=$s,Wa=ia,Va=(e,t,n)=>{const r=new Map,o={platform:Fa,...n},s={...o.platform,_c:r};return Js(e,t,{...o,platform:s})};function Ft(e){return typeof e=="function"?e():e}function $r(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Gn(e,t){const n=$r(e);return Math.round(t*n)/n}function yc(e){return{[`--bits-${e}-content-transform-origin`]:"var(--bits-floating-transform-origin)",[`--bits-${e}-content-available-width`]:"var(--bits-floating-available-width)",[`--bits-${e}-content-available-height`]:"var(--bits-floating-available-height)",[`--bits-${e}-anchor-width`]:"var(--bits-floating-anchor-width)",[`--bits-${e}-anchor-height`]:"var(--bits-floating-anchor-height)"}}function Ka(e){const t=e.whileElementsMounted,n=x(()=>Ft(e.open)??!0),r=x(()=>Ft(e.middleware)),o=x(()=>Ft(e.transform)??!0),s=x(()=>Ft(e.placement)??"bottom"),i=x(()=>Ft(e.strategy)??"absolute"),a=x(()=>Ft(e.sideOffset)??0),c=x(()=>Ft(e.alignOffset)??0),l=e.reference;let h=M(0),d=M(0);const m=ut(null);let f=M(_t(u(i))),g=M(_t(u(s))),p=M(_t({})),b=M(!1),S=!1,A=0;const E=x(()=>{const _=m.current?Gn(m.current,u(h)):u(h),B=m.current?Gn(m.current,u(d)):u(d);return u(o)?{position:u(f),left:"0",top:"0",transform:`translate(${_}px, ${B}px)`,...m.current&&$r(m.current)>=1.5&&{willChange:"transform"}}:{position:u(f),left:`${_}px`,top:`${B}px`}});let O;function I(){if(l.current===null||m.current===null)return;const _=l.current,B=m.current,J=++A;Va(_,B,{middleware:u(r),placement:u(s),strategy:u(i)}).then(L=>{if(J!==A||l.current!==_||m.current!==B)return;if(za(_)){y(p,{...u(p),hide:{...u(p).hide,referenceHidden:!0}},!0);return}if(!u(n)&&u(h)!==0&&u(d)!==0){const q=Math.max(Math.abs(u(a)),Math.abs(u(c)),15);if(L.x<=q&&L.y<=q)return}y(h,L.x,!0),y(d,L.y,!0),y(f,L.strategy,!0),y(g,L.placement,!0),y(p,L.middlewareData,!0),y(b,!0)})}function P(){typeof O=="function"&&(O(),O=void 0),A++}function D(){if(P(),t===void 0){I();return}u(n)&&(l.current===null||m.current===null||(O=t(l.current,m.current,I)))}function X(){!u(n)&&m.current===null&&y(b,!1)}function z(){return[u(r),u(s),u(i),u(a),u(c),u(n)]}return Z(()=>{t===void 0&&u(n)&&I()}),Z(D),Z(()=>{if(t!==void 0){if(z(),!u(n)){S=!1;return}if(!u(b)){S=!1;return}if(!S){S=!0;return}I()}}),Z(X),Z(()=>P),{floating:m,reference:l,get strategy(){return u(f)},get placement(){return u(g)},get middlewareData(){return u(p)},get isPositioned(){return u(b)},get floatingStyles(){return u(E)},get update(){return I}}}function za(e){return e instanceof Element?!e.isConnected||e instanceof HTMLElement&&e.hidden?!0:e.getClientRects().length===0:!1}const Ha={top:"bottom",right:"left",bottom:"top",left:"right"},bn=new Tt("Floating.Root"),Xn=new Tt("Floating.Content"),wn=new Tt("Floating.Root");class Se{static create(t=!1){return t?wn.set(new Se):bn.set(new Se)}anchorNode=ut(null);customAnchorNode=ut(null);triggerNode=ut(null);constructor(){Z(()=>{this.customAnchorNode.current?typeof this.customAnchorNode.current=="string"?this.anchorNode.current=document.querySelector(this.customAnchorNode.current):this.anchorNode.current=this.customAnchorNode.current:this.anchorNode.current=this.triggerNode.current})}}class Ae{static create(t,n=!1){return n?Xn.set(new Ae(t,wn.get())):Xn.set(new Ae(t,bn.get()))}opts;root;contentRef=ut(null);wrapperRef=ut(null);arrowRef=ut(null);contentAttachment=tt(this.contentRef);wrapperAttachment=tt(this.wrapperRef);arrowAttachment=tt(this.arrowRef);arrowId=ut(fn());#t=x(()=>{if(typeof this.opts.style=="string")return Jt(this.opts.style);if(!this.opts.style)return{}});#e=void 0;#n=new ei(()=>this.arrowRef.current??void 0);#r=x(()=>this.#n?.width??0);#o=x(()=>this.#n?.height??0);#i=x(()=>this.opts.side?.current+(this.opts.align.current!=="center"?`-${this.opts.align.current}`:""));#a=x(()=>Array.isArray(this.opts.collisionBoundary.current)?this.opts.collisionBoundary.current:[this.opts.collisionBoundary.current]);#s=x(()=>u(this.#a).length>0);get hasExplicitBoundaries(){return u(this.#s)}set hasExplicitBoundaries(t){y(this.#s,t)}#c=x(()=>({padding:this.opts.collisionPadding.current,boundary:u(this.#a).filter(bi),altBoundary:this.hasExplicitBoundaries}));get detectOverflowOptions(){return u(this.#c)}set detectOverflowOptions(t){y(this.#c,t)}#u=M(void 0);#l=M(void 0);#d=M(void 0);#h=M(void 0);#g=x(()=>[Na({mainAxis:this.opts.sideOffset.current+u(this.#o),alignmentAxis:this.opts.alignOffset.current}),this.opts.avoidCollisions.current&&ka({mainAxis:!0,crossAxis:!1,limiter:this.opts.sticky.current==="partial"?Wa():void 0,...this.detectOverflowOptions}),this.opts.avoidCollisions.current&&Da({...this.detectOverflowOptions}),_a({...this.detectOverflowOptions,apply:({rects:t,availableWidth:n,availableHeight:r})=>{const{width:o,height:s}=t.reference;y(this.#u,n,!0),y(this.#l,r,!0),y(this.#d,o,!0),y(this.#h,s,!0)}}),this.arrowRef.current&&La({element:this.arrowRef.current,padding:this.opts.arrowPadding.current}),ja({arrowWidth:u(this.#r),arrowHeight:u(this.#o)}),this.opts.hideWhenDetached.current&&Ba({strategy:"referenceHidden",...this.detectOverflowOptions})].filter(Boolean));get middleware(){return u(this.#g)}set middleware(t){y(this.#g,t)}floating;#p=x(()=>Ua(this.floating.placement));get placedSide(){return u(this.#p)}set placedSide(t){y(this.#p,t)}#m=x(()=>Ga(this.floating.placement));get placedAlign(){return u(this.#m)}set placedAlign(t){y(this.#m,t)}#f=x(()=>this.floating.middlewareData.arrow?.x??0);get arrowX(){return u(this.#f)}set arrowX(t){y(this.#f,t)}#v=x(()=>this.floating.middlewareData.arrow?.y??0);get arrowY(){return u(this.#v)}set arrowY(t){y(this.#v,t)}#y=x(()=>this.floating.middlewareData.arrow?.centerOffset!==0);get cannotCenterArrow(){return u(this.#y)}set cannotCenterArrow(t){y(this.#y,t)}#b=M();get contentZIndex(){return u(this.#b)}set contentZIndex(t){y(this.#b,t,!0)}#w=x(()=>Ha[this.placedSide]);get arrowBaseSide(){return u(this.#w)}set arrowBaseSide(t){y(this.#w,t)}#x=x(()=>({id:this.opts.wrapperId.current,"data-bits-floating-content-wrapper":"",style:{...this.floating.floatingStyles,transform:this.floating.isPositioned?this.floating.floatingStyles.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:this.contentZIndex,"--bits-floating-transform-origin":`${this.floating.middlewareData.transformOrigin?.x} ${this.floating.middlewareData.transformOrigin?.y}`,"--bits-floating-available-width":`${u(this.#u)}px`,"--bits-floating-available-height":`${u(this.#l)}px`,"--bits-floating-anchor-width":`${u(this.#d)}px`,"--bits-floating-anchor-height":`${u(this.#h)}px`,...this.floating.middlewareData.hide?.referenceHidden&&{visibility:"hidden","pointer-events":"none"},...u(this.#t)},dir:this.opts.dir.current,...this.wrapperAttachment}));get wrapperProps(){return u(this.#x)}set wrapperProps(t){y(this.#x,t)}#S=x(()=>({"data-side":this.placedSide,"data-align":this.placedAlign,style:er({...u(this.#t)}),...this.contentAttachment}));get props(){return u(this.#S)}set props(t){y(this.#S,t)}#A=x(()=>({position:"absolute",left:this.arrowX?`${this.arrowX}px`:void 0,top:this.arrowY?`${this.arrowY}px`:void 0,[this.arrowBaseSide]:0,"transform-origin":{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[this.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[this.placedSide],visibility:this.cannotCenterArrow?"hidden":void 0}));get arrowStyle(){return u(this.#A)}set arrowStyle(t){y(this.#A,t)}constructor(t,n){this.opts=t,this.root=n,this.#e=t.updatePositionStrategy,t.customAnchor&&(this.root.customAnchorNode.current=t.customAnchor.current),G(()=>t.customAnchor.current,r=>{this.root.customAnchorNode.current=r}),this.floating=Ka({strategy:()=>this.opts.strategy.current,placement:()=>u(this.#i),middleware:()=>this.middleware,reference:this.root.anchorNode,whileElementsMounted:(...r)=>Ra(...r,{animationFrame:this.#e?.current==="always"}),open:()=>this.opts.enabled.current,sideOffset:()=>this.opts.sideOffset.current,alignOffset:()=>this.opts.alignOffset.current}),Z(()=>{this.floating.isPositioned&&this.opts.onPlaced?.current()}),G(()=>this.contentRef.current,r=>{if(!r||!this.opts.enabled.current)return;const o=Ge(r),s=o.requestAnimationFrame(()=>{if(this.contentRef.current!==r||!this.opts.enabled.current)return;const i=o.getComputedStyle(r).zIndex;i!==this.contentZIndex&&(this.contentZIndex=i)});return()=>{o.cancelAnimationFrame(s)}}),Z(()=>{this.floating.floating.current=this.wrapperRef.current})}}class Oe{static create(t,n=!1){return n?new Oe(t,wn.get()):new Oe(t,bn.get())}opts;root;constructor(t,n){this.opts=t,this.root=n,t.virtualEl&&t.virtualEl.current?n.triggerNode=Jn(t.virtualEl.current):n.triggerNode=t.ref}}function ja(e){return{name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,i=o.arrow?.centerOffset!==0,a=i?0:e.arrowWidth,c=i?0:e.arrowHeight,[l,h]=xn(n),d={start:"0%",center:"50%",end:"100%"}[h],m=(o.arrow?.x??0)+a/2,f=(o.arrow?.y??0)+c/2;let g="",p="";return l==="bottom"?(g=i?d:`${m}px`,p=`${-c}px`):l==="top"?(g=i?d:`${m}px`,p=`${r.floating.height+c}px`):l==="right"?(g=`${-c}px`,p=i?d:`${f}px`):l==="left"&&(g=`${r.floating.width+c}px`,p=i?d:`${f}px`),{data:{x:g,y:p}}}}}function xn(e){const[t,n="center"]=e.split("-");return[t,n]}function Ua(e){return xn(e)[0]}function Ga(e){return xn(e)[1]}function bc(e,t){R(t,!0);let n=v(t,"tooltip",3,!1);Se.create(n());var r=F(),o=T(r);k(o,()=>t.children??V),C(e,r),N()}function wc(e,t){R(t,!0);let n=v(t,"tooltip",3,!1);Oe.create({id:w(()=>t.id),virtualEl:w(()=>t.virtualEl),ref:t.ref},n());var r=F(),o=T(r);k(o,()=>t.children??V),C(e,r),N()}function Xa(e,t){R(t,!0);let n=v(t,"side",3,"bottom"),r=v(t,"sideOffset",3,0),o=v(t,"align",3,"center"),s=v(t,"alignOffset",3,0),i=v(t,"arrowPadding",3,0),a=v(t,"avoidCollisions",3,!0),c=v(t,"collisionBoundary",19,()=>[]),l=v(t,"collisionPadding",3,0),h=v(t,"hideWhenDetached",3,!1),d=v(t,"onPlaced",3,()=>{}),m=v(t,"sticky",3,"partial"),f=v(t,"updatePositionStrategy",3,"optimized"),g=v(t,"strategy",3,"fixed"),p=v(t,"dir",3,"ltr"),b=v(t,"style",19,()=>({})),S=v(t,"wrapperId",19,fn),A=v(t,"customAnchor",3,null),E=v(t,"tooltip",3,!1);const O=Ae.create({side:w(()=>n()),sideOffset:w(()=>r()),align:w(()=>o()),alignOffset:w(()=>s()),id:w(()=>t.id),arrowPadding:w(()=>i()),avoidCollisions:w(()=>a()),collisionBoundary:w(()=>c()),collisionPadding:w(()=>l()),hideWhenDetached:w(()=>h()),onPlaced:w(()=>d()),sticky:w(()=>m()),updatePositionStrategy:w(()=>f()),strategy:w(()=>g()),dir:w(()=>p()),style:w(()=>b()),enabled:w(()=>t.enabled),wrapperId:w(()=>S()),customAnchor:w(()=>A())},E()),I=x(()=>ot(O.wrapperProps,{style:{pointerEvents:"auto"}}));var P=F(),D=T(P);k(D,()=>t.content??V,()=>({props:O.props,wrapperProps:u(I)})),C(e,P),N()}function Ya(e,t){R(t,!0),po(()=>{t.onPlaced?.()});var n=F(),r=T(n);k(r,()=>t.content??V,()=>({props:{},wrapperProps:{}})),C(e,n),N()}function qa(e,t){let n=v(t,"isStatic",3,!1),r=K(t,["$$slots","$$events","$$legacy","content","isStatic","onPlaced"]);var o=F(),s=T(o);{var i=c=>{Ya(c,{get content(){return t.content},get onPlaced(){return t.onPlaced}})},a=c=>{Xa(c,Q({get content(){return t.content},get onPlaced(){return t.onPlaced}},()=>r))};rt(s,c=>{n()?c(i):c(a,!1)})}C(e,o)}var Za=ct("<!> <!>",1);function to(e,t){R(t,!0);let n=v(t,"interactOutsideBehavior",3,"close"),r=v(t,"trapFocus",3,!0),o=v(t,"isValidEvent",3,()=>!1),s=v(t,"customAnchor",3,null),i=v(t,"isStatic",3,!1),a=v(t,"tooltip",3,!1),c=v(t,"contentPointerEvents",3,"auto"),l=K(t,["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled","ref","tooltip","contentPointerEvents"]);const h=x(()=>t.preventScroll??!0),d=x(()=>t.strategy??(u(h)?"fixed":"absolute"));qa(e,{get isStatic(){return i()},get id(){return t.id},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return u(d)},get dir(){return t.dir},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return s()},get enabled(){return t.enabled},get tooltip(){return a()},content:(f,g)=>{let p=()=>g?.().props,b=()=>g?.().wrapperProps;var S=Za(),A=T(S);{var E=P=>{ye(P,{get preventScroll(){return u(h)}})},O=P=>{ye(P,{get preventScroll(){return u(h)}})};rt(A,P=>{t.forceMount&&t.enabled?P(E):t.forceMount||P(O,1)})}var I=de(A,2);Vr(I,{get onOpenAutoFocus(){return t.onOpenAutoFocus},get onCloseAutoFocus(){return t.onCloseAutoFocus},get loop(){return t.loop},get enabled(){return t.enabled},get trapFocus(){return r()},get forceMount(){return t.forceMount},get ref(){return t.ref},focusScope:(D,X)=>{let z=()=>X?.().props;Wr(D,{get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get enabled(){return t.enabled},get ref(){return t.ref},children:(_,B)=>{Lr(_,{get id(){return t.id},get onInteractOutside(){return t.onInteractOutside},get onFocusOutside(){return t.onFocusOutside},get interactOutsideBehavior(){return n()},get isValidEvent(){return o()},get enabled(){return t.enabled},get ref(){return t.ref},children:(L,H)=>{let q=()=>H?.().props;Kr(L,{get id(){return t.id},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get enabled(){return t.enabled},get ref(){return t.ref},children:(et,$)=>{var Y=F(),U=T(Y);{let pt=x(()=>({props:ot(l,p(),q(),z(),{style:{pointerEvents:c()}}),wrapperProps:b()}));k(U,()=>t.popper??V,()=>u(pt))}C(et,Y)},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{focusScope:!0}}),C(f,S)},$$slots:{content:!0}}),N()}function xc(e,t){let n=v(t,"interactOutsideBehavior",3,"close"),r=v(t,"trapFocus",3,!0),o=v(t,"isValidEvent",3,()=>!1),s=v(t,"customAnchor",3,null),i=v(t,"isStatic",3,!1),a=K(t,["$$slots","$$events","$$legacy","popper","open","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","ref","shouldRender"]);var c=F(),l=T(c);{var h=d=>{to(d,Q({get popper(){return t.popper},get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get id(){return t.id},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get preventScroll(){return t.preventScroll},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return s()},get isStatic(){return i()},get enabled(){return t.open},get onInteractOutside(){return t.onInteractOutside},get onCloseAutoFocus(){return t.onCloseAutoFocus},get onOpenAutoFocus(){return t.onOpenAutoFocus},get interactOutsideBehavior(){return n()},get loop(){return t.loop},get trapFocus(){return r()},get isValidEvent(){return o()},get onFocusOutside(){return t.onFocusOutside},forceMount:!1,get ref(){return t.ref}},()=>a))};rt(l,d=>{t.shouldRender&&d(h)})}C(e,c)}function Sc(e,t){let n=v(t,"interactOutsideBehavior",3,"close"),r=v(t,"trapFocus",3,!0),o=v(t,"isValidEvent",3,()=>!1),s=v(t,"customAnchor",3,null),i=v(t,"isStatic",3,!1),a=K(t,["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled"]);to(e,Q({get popper(){return t.popper},get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get id(){return t.id},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get preventScroll(){return t.preventScroll},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return s()},get isStatic(){return i()},get enabled(){return t.enabled},get onInteractOutside(){return t.onInteractOutside},get onCloseAutoFocus(){return t.onCloseAutoFocus},get onOpenAutoFocus(){return t.onOpenAutoFocus},get interactOutsideBehavior(){return n()},get loop(){return t.loop},get trapFocus(){return r()},get isValidEvent(){return o()},get onFocusOutside(){return t.onFocusOutside}},()=>a,{forceMount:!0}))}function Ac(e,t){R(t,!0);let n=v(t,"open",15,!1),r=K(t,["$$slots","$$events","$$legacy","open"]);var o=F(),s=T(o);Et(s,()=>Oi,(i,a)=>{a(i,Q(()=>r,{get open(){return n()},set open(c){n(c)}}))}),C(e,o),N()}function Qa(e,t){let n=K(t,["$$slots","$$events","$$legacy"]);var r=F(),o=T(r);Et(o,()=>Li,(s,i)=>{i(s,Q(()=>n))}),C(e,r)}function Oc(e,t){R(t,!0);let n=v(t,"ref",15,null),r=K(t,["$$slots","$$events","$$legacy","ref","class"]);var o=F(),s=T(o);{let i=x(()=>Pt("text-lg font-semibold",t.class));Et(s,()=>Ei,(a,c)=>{c(a,Q({"data-slot":"alert-dialog-title",get class(){return u(i)}},()=>r,{get ref(){return n()},set ref(l){n(l)}}))})}C(e,o),N()}function Cc(e,t){R(t,!0);let n=v(t,"ref",15,null),r=K(t,["$$slots","$$events","$$legacy","ref","class"]);var o=F(),s=T(o);{let i=x(()=>t.class||Pt(Qn()));Et(s,()=>Ti,(a,c)=>{c(a,Q({"data-slot":"alert-dialog-action",get class(){return u(i)}},()=>r,{get ref(){return n()},set ref(l){n(l)}}))})}C(e,o),N()}function Ec(e,t){R(t,!0);let n=v(t,"ref",15,null),r=K(t,["$$slots","$$events","$$legacy","ref","class"]);var o=F(),s=T(o);{let i=x(()=>t.class||Pt(Qn({variant:"ghost"})));Et(s,()=>Fi,(a,c)=>{c(a,Q({"data-slot":"alert-dialog-cancel",get class(){return u(i)}},()=>r,{get ref(){return n()},set ref(l){n(l)}}))})}C(e,o),N()}var Ja=ct("<div><!></div>");function Pc(e,t){R(t,!0);let n=v(t,"ref",15,null),r=K(t,["$$slots","$$events","$$legacy","ref","class","children"]);var o=Ja();Ct(o,i=>({"data-slot":"alert-dialog-footer",class:i,...r}),[()=>Pt("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",t.class)]);var s=At(o);k(s,()=>t.children??V),Ot(o),Zn(o,i=>n(i),()=>n()),C(e,o),N()}var $a=ct("<div><!></div>");function Tc(e,t){R(t,!0);let n=v(t,"ref",15,null),r=K(t,["$$slots","$$events","$$legacy","ref","class","children"]);var o=$a();Ct(o,i=>({"data-slot":"alert-dialog-header",class:i,...r}),[()=>Pt("flex flex-col gap-2 text-center sm:text-start",t.class)]);var s=At(o);k(s,()=>t.children??V),Ot(o),Zn(o,i=>n(i),()=>n()),C(e,o),N()}function tc(e,t){R(t,!0);let n=v(t,"ref",15,null),r=K(t,["$$slots","$$events","$$legacy","ref","class"]);var o=F(),s=T(o);{let i=x(()=>Pt("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t.class));Et(s,()=>Bs,(a,c)=>{c(a,Q({"data-slot":"alert-dialog-overlay",get class(){return u(i)}},()=>r,{get ref(){return n()},set ref(l){n(l)}}))})}C(e,o),N()}var ec=ct("<!> <!>",1);function Mc(e,t){R(t,!0);let n=v(t,"ref",15,null),r=K(t,["$$slots","$$events","$$legacy","ref","class","portalProps"]);Qa(e,Q(()=>t.portalProps,{children:(o,s)=>{var i=ec(),a=T(i);tc(a,{});var c=de(a,2);{let l=x(()=>Pt("bg-[var(--color-bg-elevated)] border-[var(--color-border)] text-[var(--color-text-primary)] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",t.class));Et(c,()=>Ds,(h,d)=>{d(h,Q({"data-slot":"alert-dialog-content",get class(){return u(l)}},()=>r,{get ref(){return n()},set ref(m){n(m)}}))})}C(o,i)},$$slots:{default:!0}})),N()}function Fc(e,t){R(t,!0);let n=v(t,"ref",15,null),r=K(t,["$$slots","$$events","$$legacy","ref","class"]);var o=F(),s=T(o);{let i=x(()=>Pt("text-[var(--color-text-secondary)] text-sm",t.class));Et(s,()=>Ws,(a,c)=>{c(a,Q({"data-slot":"alert-dialog-description",get class(){return u(i)}},()=>r,{get ref(){return n()},set ref(l){n(l)}}))})}C(e,o),N()}export{Tr as $,Mc as A,Pc as B,Tt as C,Br as D,Ee as E,bc as F,Ec as G,Cc as H,Ac as I,Xe as J,fc as K,Ye as L,Dr as M,on as N,Ve as O,Sc as P,Qe as Q,en as R,ie as S,Vr as T,Wr as U,Lr as V,Kr as W,ye as X,Bs as Y,Ei as Z,Mr as _,tt as a,ds as a0,fe as a1,te as a2,hi as a3,fi as a4,ur as a5,di as a6,lr as a7,gc as a8,pc as a9,mc as aa,vc as ab,zt as ac,Mn as ad,uc as ae,lt as af,xi as ag,bo as ah,hr as ai,wo as aj,ut as ak,hc as al,Ws as am,Wt as b,ar as c,dc as d,mt as e,cr as f,oe as g,cs as h,We as i,Ht as j,w as k,_r as l,ot as m,W as n,Rr as o,Nr as p,kr as q,xc as r,er as s,yc as t,wc as u,Li as v,G as w,Tc as x,Oc as y,Fc as z};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as f,s as S,f as z,c as O,b as R}from"./iDtAARVW.js";import{i as A}from"./Y90OgS-9.js";import{p as k,l as h,s as _,d as p,g as s,a as B,c as b,n as H,r as x,b as C,m as w,t as N,a5 as Y,a6 as E,h as T,u as W}from"./CT6oIU-C.js";import{i as P}from"./72bZS3G9.js";import{a as y}from"./CmCtpZ1Y.js";import{l as $,p as g,r as X}from"./cLyZlkXv.js";import{b as j}from"./BS2rFAVq.js";import{s as q,m as D}from"./C2r294J6.js";var F=z("<title> </title>"),G=z('<svg><!><path d="M22 16 12 26 10.6 24.6 19.2 16 10.6 7.4 12 6z"></path></svg>');function oe(d,t){const e=$(t,["children","$$slots","$$events","$$legacy"]),m=$(e,["size","title"]);k(t,!1);const a=w(),l=w();let v=g(t,"size",8,16),r=g(t,"title",8,void 0);h(()=>(p(e),p(r())),()=>{_(a,e["aria-label"]||e["aria-labelledby"]||r())}),h(()=>(s(a),p(e)),()=>{_(l,{"aria-hidden":s(a)?void 0:!0,role:s(a)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),B(),A();var i=G();y(i,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:v(),height:v(),...s(l),...m}));var o=b(i);{var n=u=>{var c=F(),M=b(c,!0);x(c),N(()=>S(M,r())),f(u,c)};P(o,u=>{r()&&u(n)})}H(),x(i),f(d,i),C()}const I={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%)"},J=q(I);function ne(d){Y(()=>E(()=>d()))}var K=R("<input/>"),L=R("<input/>");function le(d,t){k(t,!0);let e=g(t,"value",15),m=X(t,["$$slots","$$events","$$legacy","value"]);const a=W(()=>D(m,{"aria-hidden":"true",tabindex:-1,style:J}));var l=O(),v=T(l);{var r=o=>{var n=K();y(n,()=>({...s(a),value:e()}),void 0,void 0,void 0,void 0,!0),f(o,n)},i=o=>{var n=L();y(n,()=>({...s(a)}),void 0,void 0,void 0,void 0,!0),j(n,e),f(o,n)};P(v,o=>{s(a).type==="checkbox"?o(r):o(i,!1)})}f(d,l),C()}var Q=z("<title> </title>"),U=z('<svg><!><path d="M13 24 4 15 5.414 13.586 13 21.171 26.586 7.586 28 9 13 24z"></path></svg>');function de(d,t){const e=$(t,["children","$$slots","$$events","$$legacy"]),m=$(e,["size","title"]);k(t,!1);const a=w(),l=w();let v=g(t,"size",8,16),r=g(t,"title",8,void 0);h(()=>(p(e),p(r())),()=>{_(a,e["aria-label"]||e["aria-labelledby"]||r())}),h(()=>(s(a),p(e)),()=>{_(l,{"aria-hidden":s(a)?void 0:!0,role:s(a)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),B(),A();var i=U();y(i,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:v(),height:v(),...s(l),...m}));var o=b(i);{var n=u=>{var c=Q(),M=b(c,!0);x(c),N(()=>S(M,r())),f(u,c)};P(o,u=>{r()&&u(n)})}H(),x(i),f(d,i),C()}export{de as C,le as H,oe as a,ne as o};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as ae,c as A,a as d,b as B,s as ee,f as
|
|
1
|
+
import{p as ae,c as A,a as d,b as B,s as ee,f as he,t as ne}from"./iDtAARVW.js";import{p as G,h as S,b as N,g as i,c as U,ad as X,r as z,u as L,e as Pe,f as ye,s as de,l as fe,d as le,a as be,n as te,m as ve,t as re,i as ie}from"./CT6oIU-C.js";import{b as H,a as j}from"./CmCtpZ1Y.js";import{i as q}from"./72bZS3G9.js";import{p as s,r as oe,s as pe,l as _e}from"./cLyZlkXv.js";import{j as se,n as J,M as Me,k as b,m as Q,l as we,o as Ce,p as Se,F as xe,q as Oe,P as Ae,r as Fe,t as ge,D as Ie,u as Re,v as ke,A as Ee,x as Le,y as He,z as Ke,B as Te,G as Ue,H as ze,I as De}from"./C2r294J6.js";import{r as ce}from"./UYy36I9r.js";import{i as je}from"./Y90OgS-9.js";import{c as D}from"./CXH6iFbA.js";import{a as me}from"./BS2rFAVq.js";var Be=B("<div><!></div>");function Ve(c,e){const l=ae();G(e,!0);let m=s(e,"ref",15,null),p=s(e,"id",19,()=>se(l)),_=s(e,"disabled",3,!1),M=s(e,"onSelect",3,J),P=s(e,"closeOnSelect",3,!0),f=oe(e,["$$slots","$$events","$$legacy","child","children","ref","id","disabled","onSelect","closeOnSelect"]);const w=Me.create({id:b(()=>p()),disabled:b(()=>_()),onSelect:b(()=>M()),ref:b(()=>m(),r=>m(r)),closeOnSelect:b(()=>P())}),u=L(()=>Q(f,w.props));var x=A(),a=S(x);{var t=r=>{var o=A(),h=S(o);H(h,()=>e.child,()=>({props:i(u)})),d(r,o)},n=r=>{var o=Be();j(o,()=>({...i(u)}));var h=U(o);H(h,()=>e.children??X),z(o),d(r,o)};q(a,r=>{e.child?r(t):r(n,!1)})}d(c,x),N()}var Ze=B("<div><!></div>");function We(c,e){const l=ae();G(e,!0);let m=s(e,"ref",15,null),p=s(e,"id",19,()=>se(l)),_=oe(e,["$$slots","$$events","$$legacy","ref","id","child","children"]);const M=we.create({id:b(()=>p()),ref:b(()=>m(),a=>m(a))}),P=L(()=>Q(_,M.props));var f=A(),w=S(f);{var u=a=>{var t=A(),n=S(t);H(n,()=>e.child,()=>({props:i(P)})),d(a,t)},x=a=>{var t=Ze();j(t,()=>({...i(P)}));var n=U(t);H(n,()=>e.children??X),z(t),d(a,t)};q(w,a=>{e.child?a(u):a(x,!1)})}d(c,f),N()}function qe(c,e){G(e,!0);let l=s(e,"open",15,!1),m=s(e,"dir",3,"ltr"),p=s(e,"onOpenChange",3,J),_=s(e,"onOpenChangeComplete",3,J),M=s(e,"_internal_variant",3,"dropdown-menu");const P=Ce.create({variant:b(()=>M()),dir:b(()=>m()),onClose:()=>{l(!1),p()(!1)}});Se.create({open:b(()=>l(),f=>{l(f),p()(f)}),onOpenChangeComplete:b(()=>_())},P),xe(c,{children:(f,w)=>{var u=A(),x=S(u);H(x,()=>e.children??X),d(f,u)},$$slots:{default:!0}}),N()}var Ge=B("<div><div><!></div></div>"),Ne=B("<div><div><!></div></div>");function Ye(c,e){const l=ae();G(e,!0);let m=s(e,"id",19,()=>se(l)),p=s(e,"ref",15,null),_=s(e,"loop",3,!0),M=s(e,"onInteractOutside",3,J),P=s(e,"onEscapeKeydown",3,J),f=s(e,"onCloseAutoFocus",3,J),w=s(e,"forceMount",3,!1),u=s(e,"trapFocus",3,!1),x=oe(e,["$$slots","$$events","$$legacy","id","child","children","ref","loop","onInteractOutside","onEscapeKeydown","onCloseAutoFocus","forceMount","trapFocus","style"]);const a=Oe.create({id:b(()=>m()),loop:b(()=>_()),ref:b(()=>p(),g=>p(g)),onCloseAutoFocus:b(()=>f())}),t=L(()=>Q(x,a.props));function n(g){if(a.handleInteractOutside(g),!g.defaultPrevented&&(M()(g),!g.defaultPrevented)){if(g.target&&g.target instanceof Element){const V=`[${a.parentMenu.root.getBitsAttr("sub-content")}]`;if(g.target.closest(V))return}a.parentMenu.onClose()}}function r(g){P()(g),!g.defaultPrevented&&a.parentMenu.onClose()}var o=A(),h=S(o);{var O=g=>{Ae(g,pe(()=>i(t),()=>a.popperProps,{get ref(){return a.opts.ref},get enabled(){return a.parentMenu.opts.open.current},onInteractOutside:n,onEscapeKeydown:r,get trapFocus(){return u()},get loop(){return _()},forceMount:!0,get id(){return m()},get shouldRender(){return a.shouldRender},popper:(Z,K)=>{let $=()=>K?.().props,F=()=>K?.().wrapperProps;const I=L(()=>Q($(),{style:ge("dropdown-menu")},{style:e.style}));var T=A(),R=S(T);{var k=y=>{var v=A(),C=S(v);{let W=L(()=>({props:i(I),wrapperProps:F(),...a.snippetProps}));H(C,()=>e.child,()=>i(W))}d(y,v)},E=y=>{var v=Ge();j(v,()=>({...F()}));var C=U(v);j(C,()=>({...i(I)}));var W=U(C);H(W,()=>e.children??X),z(C),z(v),d(y,v)};q(R,y=>{e.child?y(k):y(E,!1)})}d(Z,T)},$$slots:{popper:!0}}))},Y=g=>{Fe(g,pe(()=>i(t),()=>a.popperProps,{get ref(){return a.opts.ref},get open(){return a.parentMenu.opts.open.current},onInteractOutside:n,onEscapeKeydown:r,get trapFocus(){return u()},get loop(){return _()},forceMount:!1,get id(){return m()},get shouldRender(){return a.shouldRender},popper:(Z,K)=>{let $=()=>K?.().props,F=()=>K?.().wrapperProps;const I=L(()=>Q($(),{style:ge("dropdown-menu")},{style:e.style}));var T=A(),R=S(T);{var k=y=>{var v=A(),C=S(v);{let W=L(()=>({props:i(I),wrapperProps:F(),...a.snippetProps}));H(C,()=>e.child,()=>i(W))}d(y,v)},E=y=>{var v=Ne();j(v,()=>({...F()}));var C=U(v);j(C,()=>({...i(I)}));var W=U(C);H(W,()=>e.children??X),z(C),z(v),d(y,v)};q(R,y=>{e.child?y(k):y(E,!1)})}d(Z,T)},$$slots:{popper:!0}}))};q(h,g=>{w()?g(O):w()||g(Y,1)})}d(c,o),N()}var Je=B("<button><!></button>");function Qe(c,e){const l=ae();G(e,!0);let m=s(e,"id",19,()=>se(l)),p=s(e,"ref",15,null),_=s(e,"disabled",3,!1),M=s(e,"type",3,"button"),P=oe(e,["$$slots","$$events","$$legacy","id","ref","child","children","disabled","type"]);const f=Ie.create({id:b(()=>m()),disabled:b(()=>_()??!1),ref:b(()=>p(),u=>p(u))}),w=L(()=>Q(P,f.props,{type:M()}));Re(c,{get id(){return m()},get ref(){return f.opts.ref},children:(u,x)=>{var a=A(),t=S(a);{var n=o=>{var h=A(),O=S(h);H(O,()=>e.child,()=>({props:i(w)})),d(o,h)},r=o=>{var h=Je();j(h,()=>({...i(w)}));var O=U(h);H(O,()=>e.children??X),z(h),d(o,h)};q(t,o=>{e.child?o(n):o(r,!1)})}d(u,a)},$$slots:{default:!0}}),N()}const pt=qe,_t=Qe,gt=ke,mt=Ye,ht=Ve,Pt=We;function Xe(){let c=Pe(ye({})),e=null,l=null;function m(t,n,r){l&&(clearInterval(l),l=null),e=`${t}/${n}/${r}`,_("enter",t,n,r),l=setInterval(()=>{e&&_("heartbeat",t,n,r)},3e4)}function p(){if(l&&(clearInterval(l),l=null),e){const[t,n,r]=e.split("/");t&&n&&r&&_("leave",t,n,r),e=null}}function _(t,n,r,o){ce.send({type:"presence",action:t,repo:n,entityType:r,entityId:o})}function M(t){const n=`${t.repo}/${t.entityType}/${t.entityId}`,r=i(c)[n]??[];if(t.action==="leave")i(c)[n]=r.filter(o=>o.id!==t.user.id);else{const o=r.findIndex(h=>h.id===t.user.id);o>=0?(r[o]=t.user,i(c)[n]=[...r]):i(c)[n]=[...r,t.user]}}function P(){if(de(c,{},!0),!e)return;const[t,n,r]=e.split("/");t&&n&&r&&_("enter",t,n,r)}function f(t,n,r,o){const h=`${t}/${n}/${r}`,O=i(c)[h]??[];return o?O.filter(Y=>Y.id!==o):O}function w(t,n){const r=new Map;for(const[o,h]of Object.entries(i(c)))if(o.startsWith(t))for(const O of h)(!n||O.id!==n)&&r.set(O.id,O);return[...r.values()]}function u(t,n){return w(`${t}/`,n)}function x(t){const n=new Map;for(const r of Object.values(i(c)))for(const o of r)(!t||o.id!==t)&&n.set(o.id,o);return[...n.values()]}const a=L(()=>{const t=new Map;for(const n of Object.values(i(c)))for(const r of n)t.set(r.id,r);return[...t.values()]});return{enter:m,leave:p,handlePresenceEvent:M,resetAndResend:P,getPresence:f,getPresenceByPrefix:w,getRepoPresence:u,getAllUsers:x,get allUsers(){return i(a)}}}const ue=Xe();ce.setPresenceHandler(c=>ue.handlePresenceEvent(c));ce.addConnectHandler(()=>ue.resetAndResend());typeof window<"u"&&window.addEventListener("beforeunload",()=>ue.leave());var $e=he("<title> </title>"),et=he('<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 yt(c,e){const l=_e(e,["children","$$slots","$$events","$$legacy"]),m=_e(l,["size","title"]);G(e,!1);const p=ve(),_=ve();let M=s(e,"size",8,16),P=s(e,"title",8,void 0);fe(()=>(le(l),le(P())),()=>{de(p,l["aria-label"]||l["aria-labelledby"]||P())}),fe(()=>(i(p),le(l)),()=>{de(_,{"aria-hidden":i(p)?void 0:!0,role:i(p)?"img":void 0,focusable:Number(l.tabindex)===0?!0:void 0})}),be(),je();var f=et();j(f,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:M(),height:M(),...i(_),...m}));var w=U(f);{var u=x=>{var a=$e(),t=U(a,!0);z(a),re(()=>ee(t,P())),d(x,a)};q(w,x=>{P()&&x(u)})}te(2),z(f),d(c,f),N()}var tt=B("<!> <!>",1),rt=B("<!> <!>",1),nt=B("<!> <!>",1);function bt(c,e){G(e,!0);let l=s(e,"open",15),m=s(e,"confirmLabel",3,"Confirm"),p=s(e,"cancelLabel",3,"Cancel"),_=s(e,"destructive",3,!1);var M=A(),P=S(M);D(P,()=>De,(f,w)=>{w(f,{onOpenChange:u=>{u||e.oncancel()},get open(){return l()},set open(u){l(u)},children:(u,x)=>{var a=A(),t=S(a);D(t,()=>Ee,(n,r)=>{r(n,{children:(o,h)=>{var O=nt(),Y=S(O);D(Y,()=>Le,(V,Z)=>{Z(V,{children:(K,$)=>{var F=tt(),I=S(F);D(I,()=>He,(R,k)=>{k(R,{children:(E,y)=>{te();var v=ne();re(()=>ee(v,e.title)),d(E,v)},$$slots:{default:!0}})});var T=ie(I,2);D(T,()=>Ke,(R,k)=>{k(R,{children:(E,y)=>{te();var v=ne();re(()=>ee(v,e.message)),d(E,v)},$$slots:{default:!0}})}),d(K,F)},$$slots:{default:!0}})});var g=ie(Y,2);D(g,()=>Te,(V,Z)=>{Z(V,{children:(K,$)=>{var F=rt(),I=S(F);{let R=L(()=>me({variant:"ghost"}));D(I,()=>Ue,(k,E)=>{E(k,{get class(){return i(R)},get onclick(){return e.oncancel},children:(y,v)=>{te();var C=ne();re(()=>ee(C,p())),d(y,C)},$$slots:{default:!0}})})}var T=ie(I,2);{let R=L(()=>me({variant:_()?"destructive":"accent"}));D(T,()=>ze,(k,E)=>{E(k,{get class(){return i(R)},get onclick(){return e.onconfirm},children:(y,v)=>{te();var C=ne();re(()=>ee(C,m())),d(y,C)},$$slots:{default:!0}})})}d(K,F)},$$slots:{default:!0}})}),d(o,O)},$$slots:{default:!0}})}),d(u,a)},$$slots:{default:!0}})}),d(c,M),N()}export{mt as C,ht as I,gt as P,pt as R,Pt as S,_t as T,yt as a,bt as b,ue as p};
|