studiograph 1.3.44-next.21 → 1.3.44-next.23
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/4.DfrppcF_.css +1 -0
- package/dist/web/_app/immutable/assets/{8.DKYjn_lM.css → 8.BrXOeHJA.css} +1 -1
- package/dist/web/_app/immutable/chunks/{C1S8fyYX.js → -2EMa1ML.js} +1 -1
- package/dist/web/_app/immutable/chunks/{B1c_qzmY.js → B0qTqRR8.js} +1 -1
- package/dist/web/_app/immutable/chunks/{DO03XMS-.js → B17cx9Sm.js} +1 -1
- package/dist/web/_app/immutable/chunks/{DIBaaeCL.js → BSBiehHY.js} +1 -1
- package/dist/web/_app/immutable/chunks/{CwnWYvfz.js → BasUgd5N.js} +1 -1
- package/dist/web/_app/immutable/chunks/{CCA2E2CK.js → BenpwI6m.js} +1 -1
- package/dist/web/_app/immutable/chunks/{BgRr0V7g.js → BjAmYrTY.js} +1 -1
- package/dist/web/_app/immutable/chunks/{csGnu8Rb.js → BvwzgaXa.js} +1 -1
- package/dist/web/_app/immutable/chunks/{BN6gr1HX.js → BzfUn14C.js} +1 -1
- package/dist/web/_app/immutable/chunks/{BVhp5b7F.js → CDFdgZ9U.js} +1 -1
- package/dist/web/_app/immutable/chunks/{Dgs7g6Xf.js → CLw5zKi0.js} +1 -1
- package/dist/web/_app/immutable/chunks/{usxM-xOh.js → COik51fd.js} +1 -1
- package/dist/web/_app/immutable/chunks/{DkuxRPZv.js → CStpN6HQ.js} +1 -1
- package/dist/web/_app/immutable/chunks/CX_fJaNF.js +1 -0
- package/dist/web/_app/immutable/chunks/{NuvuAeCX.js → CbwDFpOn.js} +1 -1
- package/dist/web/_app/immutable/chunks/{BKHfe9E-.js → CieeblIr.js} +1 -1
- package/dist/web/_app/immutable/chunks/{BzjUB_Ym.js → CoAsXxNb.js} +1 -1
- package/dist/web/_app/immutable/chunks/CvAezToa.js +1 -0
- package/dist/web/_app/immutable/chunks/{pQmxOXKv.js → CyzLSh3b.js} +1 -1
- package/dist/web/_app/immutable/chunks/{D8mTIH9Y.js → DAD7hf2c.js} +1 -1
- package/dist/web/_app/immutable/chunks/{CwUXqlAx.js → DC1nGnOD.js} +1 -1
- package/dist/web/_app/immutable/chunks/{Ca2kuiZq.js → DLe_R6S0.js} +1 -1
- package/dist/web/_app/immutable/chunks/{DD3_vCgV.js → DN_2uSjw.js} +1 -1
- package/dist/web/_app/immutable/chunks/DQmnydAv.js +1 -0
- package/dist/web/_app/immutable/chunks/DkilSMcP.js +5 -0
- package/dist/web/_app/immutable/chunks/{D-H9HeD_.js → DkoZfYJt.js} +1 -1
- package/dist/web/_app/immutable/chunks/{DYLAPjKD.js → DkyV2KO_.js} +1 -1
- package/dist/web/_app/immutable/chunks/{DeyUjeaz.js → Dt6bIUGm.js} +1 -1
- package/dist/web/_app/immutable/chunks/{BZ2Q53D5.js → DtsqpIgr.js} +1 -1
- package/dist/web/_app/immutable/chunks/{yUs562n0.js → Dvv4bkXH.js} +1 -1
- package/dist/web/_app/immutable/chunks/{C74mA5aC.js → DwG0Us6L.js} +1 -1
- package/dist/web/_app/immutable/chunks/{y7AXCX7T.js → FQq1g0yX.js} +1 -1
- package/dist/web/_app/immutable/chunks/{BdNoKWAr.js → fgXuQcv7.js} +2 -2
- package/dist/web/_app/immutable/chunks/{BpdrS9kL.js → h2NtTN7K.js} +1 -1
- package/dist/web/_app/immutable/chunks/{DLZAjAct.js → owhS8Kw_.js} +1 -1
- package/dist/web/_app/immutable/chunks/{DHholpIc.js → wWaI7EIw.js} +1 -1
- package/dist/web/_app/immutable/entry/{app.Ci1ytk_v.js → app.CfPTwl0D.js} +2 -2
- package/dist/web/_app/immutable/entry/start.CzvcbWLa.js +1 -0
- package/dist/web/_app/immutable/nodes/{0.D4NmzO9T.js → 0.4O4jT99H.js} +2 -2
- package/dist/web/_app/immutable/nodes/{1.B49NrV3g.js → 1.YWRiTXrL.js} +1 -1
- package/dist/web/_app/immutable/nodes/{10.OXZpT8w9.js → 10.D-El_Hsa.js} +1 -1
- package/dist/web/_app/immutable/nodes/{2.DaqdIYKU.js → 2.ViGoUIc6.js} +4 -4
- package/dist/web/_app/immutable/nodes/{3.Q_RC4D9P.js → 3.BbexcpeM.js} +1 -1
- package/dist/web/_app/immutable/nodes/4.C2H0fLm7.js +11 -0
- package/dist/web/_app/immutable/nodes/{5.U-zEu0Mw.js → 5.BQEbSnbz.js} +1 -1
- package/dist/web/_app/immutable/nodes/{6.SYsyu9GD.js → 6.ChylSlHg.js} +1 -1
- package/dist/web/_app/immutable/nodes/{7.BLgQGI-C.js → 7.DxQsYoNz.js} +1 -1
- package/dist/web/_app/immutable/nodes/8.C6L2M9te.js +1 -0
- package/dist/web/_app/immutable/nodes/{9.D0aRCiZD.js → 9.BzQNdaYi.js} +1 -1
- package/dist/web/_app/version.json +1 -1
- package/dist/web/index.html +11 -11
- package/package.json +1 -1
- package/dist/web/_app/immutable/assets/4.B3dbj90y.css +0 -1
- package/dist/web/_app/immutable/chunks/1BE_eYuA.js +0 -1
- package/dist/web/_app/immutable/chunks/Mtmwulo1.js +0 -1
- package/dist/web/_app/immutable/chunks/e8QVPHqJ.js +0 -5
- package/dist/web/_app/immutable/chunks/oz3vOf3Y.js +0 -1
- package/dist/web/_app/immutable/entry/start.DNk71wbw.js +0 -1
- package/dist/web/_app/immutable/nodes/4.CIDSQYhF.js +0 -11
- package/dist/web/_app/immutable/nodes/8.67Laxdj-.js +0 -1
package/dist/web/index.html
CHANGED
|
@@ -7,30 +7,30 @@
|
|
|
7
7
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
|
8
8
|
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap" rel="stylesheet" />
|
|
9
9
|
<link rel="stylesheet" href="/api/chrome/chrome.css">
|
|
10
|
-
<link href="/_app/immutable/entry/start.
|
|
11
|
-
<link href="/_app/immutable/chunks/
|
|
12
|
-
<link href="/_app/immutable/chunks/
|
|
13
|
-
<link href="/_app/immutable/entry/app.
|
|
10
|
+
<link href="/_app/immutable/entry/start.CzvcbWLa.js" rel="modulepreload">
|
|
11
|
+
<link href="/_app/immutable/chunks/BvwzgaXa.js" rel="modulepreload">
|
|
12
|
+
<link href="/_app/immutable/chunks/BenpwI6m.js" rel="modulepreload">
|
|
13
|
+
<link href="/_app/immutable/entry/app.CfPTwl0D.js" rel="modulepreload">
|
|
14
14
|
<link href="/_app/immutable/chunks/PPVm8Dsz.js" rel="modulepreload">
|
|
15
|
-
<link href="/_app/immutable/chunks/
|
|
16
|
-
<link href="/_app/immutable/chunks/
|
|
17
|
-
<link href="/_app/immutable/chunks/
|
|
18
|
-
<link href="/_app/immutable/chunks/
|
|
15
|
+
<link href="/_app/immutable/chunks/COik51fd.js" rel="modulepreload">
|
|
16
|
+
<link href="/_app/immutable/chunks/Dvv4bkXH.js" rel="modulepreload">
|
|
17
|
+
<link href="/_app/immutable/chunks/CbwDFpOn.js" rel="modulepreload">
|
|
18
|
+
<link href="/_app/immutable/chunks/wWaI7EIw.js" rel="modulepreload">
|
|
19
19
|
|
|
20
20
|
</head>
|
|
21
21
|
<body data-sveltekit-preload-data="hover" data-sg-workspace="true">
|
|
22
22
|
<div style="display: contents">
|
|
23
23
|
<script>
|
|
24
24
|
{
|
|
25
|
-
|
|
25
|
+
__sveltekit_1vvo670 = {
|
|
26
26
|
base: ""
|
|
27
27
|
};
|
|
28
28
|
|
|
29
29
|
const element = document.currentScript.parentElement;
|
|
30
30
|
|
|
31
31
|
Promise.all([
|
|
32
|
-
import("/_app/immutable/entry/start.
|
|
33
|
-
import("/_app/immutable/entry/app.
|
|
32
|
+
import("/_app/immutable/entry/start.CzvcbWLa.js"),
|
|
33
|
+
import("/_app/immutable/entry/app.CfPTwl0D.js")
|
|
34
34
|
]).then(([kit, app]) => {
|
|
35
35
|
kit.start(app, element);
|
|
36
36
|
});
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.autocomplete.svelte-84vb17{position:relative;width:100%}.input-row.svelte-84vb17{display:flex;flex-wrap:wrap;align-items:center;gap:4px;min-height:22px;padding:0;background:transparent;border:none;border-radius:4px}.chip.svelte-84vb17{display:inline-flex;align-items:center;gap:4px;height:20px;padding:0 8px;border-radius:9999px;font-size:13px;background:var(--color-accent-muted);color:var(--color-link, #e07070);flex-shrink:0}.chip.svelte-84vb17 .chip-remove{width:14px;height:14px;padding:0;color:var(--color-text-tertiary);font-size:13px;line-height:1}.chip.svelte-84vb17 .chip-remove:hover{color:var(--color-text-primary)}.ac-input.svelte-84vb17{flex:1;min-width:80px;height:22px;padding:0;font-size:14px;font-family:inherit;color:var(--color-text-primary);background:transparent;border:none;outline:none}.dropdown.svelte-84vb17{position:absolute;top:100%;left:0;right:0;margin-top:4px;max-height:240px;overflow-y:auto;background:var(--color-bg-elevated);border:1px solid var(--color-border);border-radius:6px;box-shadow:0 4px 16px #00000040;z-index:50}.dropdown-item.svelte-84vb17{display:flex;align-items:center;justify-content:space-between;padding:6px 10px;cursor:pointer;gap:8px}.dropdown-item.highlighted.svelte-84vb17{background:var(--color-bg-hover)}.entity-title.svelte-84vb17{font-size:14px;color:var(--color-text-primary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}.entity-meta.svelte-84vb17{display:flex;align-items:center;gap:6px;flex-shrink:0}.entity-type-badge.svelte-84vb17{font-size:12px;padding:1px 6px;border-radius:9999px;background:var(--color-badge-bg);color:var(--color-badge-text)}.entity-repo.svelte-84vb17{font-size:12px;color:var(--color-text-tertiary)}.property-row.svelte-eh8ho9{display:grid;grid-template-columns:20px 130px 1fr;align-items:center;gap:10px;padding:5px 8px;margin:0 -8px;border-radius:4px;min-height:30px}.prop-icon.svelte-eh8ho9{display:flex;align-items:center;justify-content:center;color:var(--color-text-tertiary)}.icon-trigger{all:unset;display:flex;align-items:center;justify-content:center;cursor:pointer;color:var(--color-text-tertiary);border-radius:3px}.icon-trigger:hover{color:var(--color-text-secondary);background:var(--color-bg-hover)}.prop-key.svelte-eh8ho9{font-size:14px;color:var(--color-text-tertiary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.prop-value.svelte-eh8ho9{font-size:14px;color:var(--color-text-primary);min-width:0;display:flex;align-items:center;gap:6px;cursor:pointer}.dot.svelte-eh8ho9{width:8px;height:8px;border-radius:50%;flex-shrink:0}.edit-input.svelte-eh8ho9{width:100%;font-size:14px;font-family:inherit;color:var(--color-text-primary);background:transparent;border:none;outline:none;padding:0}.text-value.svelte-eh8ho9,.date-value.svelte-eh8ho9{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.date-trigger{all:unset;font-size:14px;font-family:inherit;color:var(--color-text-primary);cursor:pointer}.date-popover{z-index:1100;padding:12px;border:1px solid var(--color-border);border-radius:8px;background:var(--color-bg-elevated);box-shadow:0 8px 24px #0000004d}.cal-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.cal-heading{font-size:14px;font-weight:500;color:var(--color-text-primary)}.cal-nav{all:unset;display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:4px;font-size:18px;color:var(--color-text-secondary);cursor:pointer}.cal-nav:hover{background:var(--color-bg-hover)}.cal-grid{border-collapse:collapse}.cal-row{display:flex}.cal-head-cell{width:32px;height:28px;display:flex;align-items:center;justify-content:center;font-size:11px;color:var(--color-text-tertiary)}.cal-cell{padding:0}.cal-day{all:unset;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:4px;font-size:13px;color:var(--color-text-secondary);cursor:pointer}.cal-day:hover{background:var(--color-bg-hover)}.cal-day[data-selected]{background:var(--color-accent);color:#fff}.cal-day[data-today]{font-weight:600;color:var(--color-text-primary)}.cal-day[data-outside-month]{color:var(--color-text-tertiary);opacity:.5}.cal-day[data-disabled]{opacity:.3;cursor:default}.edit-input.svelte-eh8ho9::placeholder{color:var(--color-text-tertiary)}.url-display.svelte-eh8ho9{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;cursor:pointer}.url-link.svelte-eh8ho9{color:var(--color-link, #e07070);text-decoration:none}.url-link.svelte-eh8ho9:hover{text-decoration:underline}.empty-hint.svelte-eh8ho9{color:var(--color-text-tertiary)}.badge-value.svelte-eh8ho9{display:inline-flex;padding:2px 8px;border-radius:4px;font-size:12px;font-weight:500;background:var(--color-badge-bg, rgba(224, 80, 80, .1));color:var(--color-badge-text, #e07070)}.wikilink-display.svelte-eh8ho9{display:flex;flex-wrap:wrap;align-items:center;gap:4px;min-width:0}.wikilink-input.svelte-eh8ho9{flex:1;min-width:60px;font-size:14px;font-family:inherit;color:var(--color-text-primary);background:transparent;border:none;outline:none;padding:0;cursor:text}.wikilink-input.svelte-eh8ho9::placeholder{color:var(--color-text-tertiary)}.wikilink-chip{padding:2px 8px!important;font-size:13px!important;border-radius:4px!important;background:var(--color-badge-bg, rgba(224, 80, 80, .1))!important;color:var(--color-badge-text, #e07070)!important}.dotted-item{display:flex;align-items:center;gap:8px;height:36px;padding:0 10px;border-radius:4px;font-size:14px;color:var(--color-text-secondary);cursor:pointer;outline:none}.dotted-item[data-highlighted]{background:var(--color-bg-hover);color:var(--color-text-primary)}.dotted-item[data-selected]{color:var(--color-text-primary)}.item-check{margin-left:auto;color:var(--color-accent)}.status-trigger{border:none!important;box-shadow:none!important;padding:0!important;height:auto!important;background:transparent!important;gap:6px!important}.type-menu-content{z-index:1100;min-width:140px;padding:6px;border:1px solid var(--color-border-strong, var(--color-border));border-radius:8px;background:var(--color-bg-elevated);box-shadow:0 8px 24px #0000004d}.type-menu-item{display:flex;align-items:center;justify-content:space-between;gap:8px;height:36px;padding:0 10px;border-radius:4px;font-size:14px;color:var(--color-text-secondary);cursor:pointer;outline:none}.type-menu-item[data-highlighted]{background:var(--color-bg-hover);color:var(--color-text-primary)}.type-menu-danger{color:var(--color-error, #e55)!important}[data-dropdown-menu-separator]{height:1px;margin:4px 0;background:var(--color-border)}.entity-properties.svelte-1a2lez6{padding:16px 40px 8px;border-bottom:1px solid var(--color-border)}.name-headline.svelte-1a2lez6{margin:8px 0;cursor:text}.name-text.svelte-1a2lez6{font-size:22px;font-weight:600;color:var(--color-text-primary);line-height:1.3}.name-input.svelte-1a2lez6{font-size:22px;font-weight:600;font-family:inherit;color:var(--color-text-primary);background:transparent;border:none;outline:none;width:100%;line-height:1.3;padding:0}.fields-toggle.svelte-1a2lez6{display:flex;align-items:baseline;gap:10px;background:none;border:none;font-family:inherit;font-size:14px;color:var(--color-text-secondary);cursor:pointer;padding:4px 8px;margin:0 -8px}.fields-toggle.svelte-1a2lez6:hover{color:var(--color-text-primary)}.fields-chevron.svelte-1a2lez6{display:inline-flex;align-items:center;justify-content:center;align-self:center;width:20px;color:var(--color-text-tertiary);transition:transform .15s}.fields-chevron.expanded.svelte-1a2lez6{transform:rotate(90deg)}.fields-label.svelte-1a2lez6{font-weight:400}.fields-count.svelte-1a2lez6{font-size:12px;color:var(--color-text-tertiary)}.fields-list.svelte-1a2lez6{margin-top:4px}.add-field-row.svelte-1a2lez6{padding:5px 8px;margin:0 -8px}.add-field-input.svelte-1a2lez6{font-size:14px;font-family:inherit;color:var(--color-text-primary);background:transparent;border:none;outline:none;padding:0;width:100%}.entity-properties.svelte-1a2lez6 .add-field-btn{margin:8px -8px;font-size:14px}.connections-panel.svelte-16xienp{margin:80px 0 48px;padding:16px 40px 0;border-top:1px solid var(--color-border)}.connections-header.svelte-16xienp{display:flex;align-items:baseline;gap:10px;background:none;border:none;font-family:inherit;font-size:14px;color:var(--color-text-secondary);cursor:pointer;padding:4px 8px;margin:0 -8px}.connections-header.svelte-16xienp:hover{color:var(--color-text-primary)}.header-chevron.svelte-16xienp{display:inline-flex;align-items:center;justify-content:center;width:20px;color:var(--color-text-tertiary);transition:transform .15s;transform:rotate(90deg)}.header-chevron.collapsed.svelte-16xienp{transform:rotate(0)}.header-label.svelte-16xienp{font-weight:400}.header-count.svelte-16xienp{font-size:12px;color:var(--color-text-tertiary)}.connections-body.svelte-16xienp{display:flex;flex-direction:column;gap:0;margin-top:8px}.connection-chip.svelte-16xienp{display:flex;align-items:center;gap:8px;padding:6px 8px;background:none;border:none;border-radius:4px;font-family:inherit;font-size:13px;color:var(--color-text-primary);cursor:pointer;text-align:left}.connection-chip.svelte-16xienp:hover{background:var(--color-bg-hover)}.chip-dot.svelte-16xienp{width:6px;height:6px;border-radius:50%;flex-shrink:0}.chip-name.svelte-16xienp{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chip-type.svelte-16xienp{font-size:12px;color:var(--color-text-tertiary);flex-shrink:0}.editor-wrap.svelte-ok7wy5{display:flex;min-height:0;position:relative}.cm-container.svelte-ok7wy5{flex:1;min-height:100px}.cm-container.svelte-ok7wy5 .cm-editor{min-height:100px;outline:none}.cm-container.svelte-ok7wy5 .cm-scroller{overflow:visible!important}.cursor-overlay.svelte-ok7wy5{position:absolute;inset:0;pointer-events:none;overflow:hidden}.remote-cursor.svelte-ok7wy5{position:absolute;width:2px;background-color:var(--cursor-color);z-index:10}.remote-cursor-label.svelte-ok7wy5{position:absolute;top:-1.4em;left:-1px;font-size:12px;font-family:var(--font-sans);font-weight:500;padding:0 4px;border-radius:3px 3px 3px 0;white-space:nowrap;line-height:1.5;color:#fff}.csv-editor.svelte-63hltt{padding:32px 40px 0}.table-scroll.svelte-63hltt{overflow-x:auto}table.svelte-63hltt{border-collapse:collapse;width:max-content;min-width:100%;font-size:14px;font-family:var(--font-sans)}th.svelte-63hltt,td.svelte-63hltt{border:1px solid var(--color-border);padding:0;height:32px;min-width:120px;max-width:300px}th.svelte-63hltt{background:transparent;font-weight:500;color:var(--color-text-secondary);position:sticky;top:0;z-index:1}th.svelte-63hltt:not(.row-num):not(.col-add){position:sticky;top:0;z-index:1}.row-num.svelte-63hltt{width:40px;min-width:40px;max-width:40px;text-align:center;color:var(--color-text-tertiary);font-size:12px;background:transparent}.cell-input.svelte-63hltt{width:100%;height:100%;border:none;background:transparent;color:var(--color-text-primary);font-family:var(--font-sans);font-size:14px;padding:4px 8px;outline:none}.cell-input.svelte-63hltt:focus{outline:2px solid var(--color-accent);outline-offset:-2px}.header-input.svelte-63hltt{font-weight:500;color:var(--color-text-secondary)}th.svelte-63hltt:not(.row-num):not(.col-add){position:relative}th.svelte-63hltt .col-delete-btn{position:absolute;top:2px;right:2px;width:18px;height:18px;display:none;background:var(--color-bg-hover);border-radius:3px;padding:0}th.svelte-63hltt:hover .col-delete-btn{display:flex}th.svelte-63hltt .col-delete-btn:hover{color:var(--color-destructive);background:var(--color-bg-selected)}.col-add.svelte-63hltt{width:32px;border:none;background:transparent}.col-add.svelte-63hltt .col-add-btn{width:100%;height:100%;border-radius:0;padding:0}.col-add.svelte-63hltt .col-add-btn:hover{color:var(--color-accent)}.actions.svelte-63hltt{width:32px;text-align:center;border:none}.actions.svelte-63hltt .delete-btn{display:none;width:20px;height:20px;padding:0;margin:0 auto}tr.svelte-63hltt:hover .delete-btn{display:flex}tr.svelte-63hltt .delete-btn:hover{color:var(--color-destructive)}.csv-footer.svelte-63hltt{display:flex;align-items:center;gap:16px;padding:8px 0}.csv-footer.svelte-63hltt .add-row-btn{font-size:14px}.remote-active.svelte-63hltt{outline:2px solid var(--rc-color, #e05050);outline-offset:-2px;position:relative}.remote-cell-label.svelte-63hltt{position:absolute;top:-18px;left:-1px;font-size:11px;font-family:var(--font-sans);font-weight:500;padding:0 4px;border-radius:3px 3px 3px 0;white-space:nowrap;line-height:1.6;color:#fff;z-index:2;pointer-events:none}.diff-view.svelte-1g4tvol{flex:1;overflow-y:auto;min-height:0}.diff-properties.svelte-1g4tvol{padding:16px 40px 8px;border-bottom:1px solid var(--color-border)}.dp-row.svelte-1g4tvol{display:grid;grid-template-columns:20px 120px 1fr;align-items:start;gap:8px;padding:5px 8px;margin:0 -8px;border-radius:4px;min-height:30px}.dp-icon.svelte-1g4tvol{display:flex;align-items:center;justify-content:center;color:var(--color-text-tertiary);height:22px}.dp-key.svelte-1g4tvol{font-size:14px;color:var(--color-text-tertiary);line-height:22px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dp-value.svelte-1g4tvol{display:flex;flex-direction:column;gap:2px;min-height:22px;line-height:22px;font-size:14px;color:var(--color-text-primary)}.dp-diff-old.svelte-1g4tvol{display:inline-flex;align-items:center;padding:0 8px;border-radius:4px;background:#dc505026;color:var(--color-destructive, #e54d4d);min-height:22px;line-height:22px;width:fit-content}.dp-diff-new.svelte-1g4tvol{display:inline-flex;align-items:center;padding:0 8px;border-radius:4px;background:#50c86426;color:var(--color-success, #3ecf8e);min-height:22px;line-height:22px;width:fit-content}.diff-body.svelte-1g4tvol{padding:32px 40px;font-family:var(--font-sans);font-size:16px;line-height:1.6;color:var(--color-text-primary);white-space:pre-wrap;word-break:break-word}.diff-body.svelte-1g4tvol .db-removed{background:#dc505026;color:var(--color-destructive, #e54d4d);border-radius:2px}.diff-body.svelte-1g4tvol .db-added{background:#50c86426;color:var(--color-success, #3ecf8e);border-radius:2px}.document-scroll.svelte-udj3er{flex:1;overflow-y:auto;min-height:0}.document-well.svelte-udj3er{max-width:720px;margin:0 auto;width:100%}.editor-bar.svelte-udj3er{height:40px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:0 16px 0 40px;border-bottom:1px solid var(--color-border)}.breadcrumb-path.svelte-udj3er{font-size:14px;color:var(--color-text-secondary);line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}.bc-sep.svelte-udj3er{color:var(--color-text-tertiary);margin:0 6px}.bc-segment.svelte-udj3er{color:var(--color-text-secondary)}.bc-current.svelte-udj3er{color:var(--color-text-primary)}.editor-actions.svelte-udj3er{display:flex;align-items:center;gap:8px;flex-shrink:0;white-space:nowrap}.status-text.svelte-udj3er{font-size:13px}.status-text.saving.svelte-udj3er{color:var(--color-text-tertiary)}.status-text.error.svelte-udj3er{color:var(--color-destructive)}.editor-actions.svelte-udj3er .open-app{text-transform:capitalize}.refresh-panel.svelte-udj3er{border-bottom:1px solid var(--color-border);padding:12px 40px;background:var(--color-bg-secondary, var(--color-bg-hover));font-size:14px;flex-shrink:0}.refresh-uptodate.svelte-udj3er{color:var(--color-text-secondary)}.editor-bar-diff.svelte-udj3er{background:var(--color-bg)}.diff-action-title.svelte-udj3er{font-size:14px;color:var(--color-text-primary);font-weight:600}.diff-action-buttons.svelte-udj3er{display:flex;align-items:center;gap:6px}@media(max-width:960px){.breadcrumb-path.svelte-udj3er{display:none}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as m,s as U,f as _}from"./usxM-xOh.js";import{i as O}from"./DIBaaeCL.js";import{p as T,l as h,s as l,d as u,g as i,a as H,c as C,n as P,r as g,b as V,m as y,t as x}from"./CCA2E2CK.js";import{i as z}from"./yUs562n0.js";import{a as M}from"./DkuxRPZv.js";import{l as $,p as R}from"./DHholpIc.js";import{a as t}from"./BKHfe9E-.js";var w=_("<title> </title>"),A=_('<svg><!><path d="M12 12H14V24H12z"></path><path d="M18 12H20V24H18z"></path><path d="M4,6V8H6V28a2,2,0,0,0,2,2H24a2,2,0,0,0,2-2V8h2V6ZM8,28V8H24V28Z"></path><path d="M12 2H20V4H12z"></path></svg>');function D(e,n){const o=$(n,["children","$$slots","$$events","$$legacy"]),v=$(o,["size","title"]);T(n,!1);const r=y(),d=y();let f=R(n,"size",8,16),a=R(n,"title",8,void 0);h(()=>(u(o),u(a())),()=>{l(r,o["aria-label"]||o["aria-labelledby"]||a())}),h(()=>(i(r),u(o)),()=>{l(d,{"aria-hidden":i(r)?void 0:!0,role:i(r)?"img":void 0,focusable:Number(o.tabindex)===0?!0:void 0})}),H(),O();var s=A();M(s,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:f(),height:f(),...i(d),...v}));var b=C(s);{var I=c=>{var p=w(),S=C(p,!0);g(p),x(()=>U(S,a())),m(c,p)};z(b,c=>{a()&&c(I)})}P(4),g(s),m(e,s),V()}function F(e){return t(`/api/repos/${encodeURIComponent(e)}/sync`,{method:"POST"})}function L(){return t("/api/sync",{method:"POST"})}function W(e,n,o){return t(`/api/repos/${encodeURIComponent(e)}/entities/${encodeURIComponent(n)}/${encodeURIComponent(o)}/refresh`,{method:"POST"})}function Y(e,n,o){return t(`/api/repos/${encodeURIComponent(e)}/entities/${encodeURIComponent(n)}/${encodeURIComponent(o)}/refresh/apply`,{method:"POST"})}function q(){return t("/api/sources")}function G(){return t("/api/connectors")}function K(e){return t(`/api/connectors/${encodeURIComponent(e)}/config`)}function Q(e,n){return t(`/api/connectors/${encodeURIComponent(e)}/config`,{method:"POST",body:JSON.stringify({...n,name:e})})}function X(e){return t(`/api/connectors/${encodeURIComponent(e)}/config`,{method:"DELETE"})}function ee(e){return t(`/api/sources/${encodeURIComponent(e)}`)}function te(e,n){return t(`/api/sources/${encodeURIComponent(e)}`,{method:"POST",body:JSON.stringify(n)})}function ne(e,n){return t(`/api/repos/${encodeURIComponent(e)}`,{method:"PATCH",body:JSON.stringify({sync:n})})}function oe(e){return t(`/api/connectors/${encodeURIComponent(e)}/oauth/authorize`,{method:"POST"})}function re(e){return t(`/api/connectors/${encodeURIComponent(e)}/oauth/status`)}function ae(e){return t(`/api/connectors/${encodeURIComponent(e)}/oauth/disconnect`,{method:"POST"})}export{D as T,G as a,ee as b,K as c,Q as d,ae as e,q as f,X as g,re as h,oe as i,L as j,F as k,Y as l,W as r,te as s,ne as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{o as St,p as le,c as j,a as u,b as I,s as Ht,f as Ot,d as fe,e as L,t as Nt,g as ve}from"./usxM-xOh.js";import{e as F,s as c,g as o,a4 as T,p as _t,a0 as A,b as yt,c as g,ae as Kt,r as _,l as At,d as et,a as Gt,n as Z,m as Mt,t as dt,a1 as me,a2 as be,a3 as z}from"./CCA2E2CK.js";import{s as ut,a as ct,r as ge,b as _e}from"./DkuxRPZv.js";import{i as S,b as ye}from"./yUs562n0.js";import{e as Ce}from"./BpdrS9kL.js";import{c as X}from"./NuvuAeCX.js";import{s as Wt}from"./BKHfe9E-.js";import{b as we,B as Pe}from"./D8mTIH9Y.js";import{p as f,s as ee,r as he,l as Vt}from"./DHholpIc.js";import{g as oe}from"./csGnu8Rb.js";import{i as Ut}from"./DIBaaeCL.js";import{A as xe,C as re}from"./Dgs7g6Xf.js";import{n as U}from"./BVhp5b7F.js";import{v as $t}from"./y7AXCX7T.js";import{w as He}from"./BgRr0V7g.js";import{w as Zt,j as Ae,k as gt,C as Me,a as de,D as Ve,l as Yt,E as Oe,S as ke,n as ue,c as Te,o as De,P as ne,h as D,d as Ie,f as ce,p as xt,q as ze,r as Fe,m as Bt,s as se,F as Ee,t as Se,A as Ne,u as We,v as $e,x as Be,y as Ke,z as Ye,B as Le,G as Xe}from"./e8QVPHqJ.js";function ie(v,t){const[e,s]=v;let n=!1;const r=t.length;for(let d=0,i=r-1;d<r;i=d++){const[p,P]=t[d]??[0,0],[y,a]=t[i]??[0,0];P>=s!=a>=s&&e<=(y-p)*(s-P)/(a-P)+p&&(n=!n)}return n}function ae(v,t){return v[0]>=t.left&&v[0]<=t.right&&v[1]>=t.top&&v[1]<=t.bottom}function je(v,t){const e=v.left+v.width/2,s=v.top+v.height/2,n=t.left+t.width/2,r=t.top+t.height/2,d=n-e,i=r-s;return Math.abs(d)>Math.abs(i)?d>0?"right":"left":i>0?"bottom":"top"}class qe{#t;#n;#o=null;#e=null;#s=null;#a(){this.#s!==null&&(cancelAnimationFrame(this.#s),this.#s=null)}#h(){this.#a(),this.#s=requestAnimationFrame(()=>{this.#s=null,!(!this.#o||!this.#e)&&(this.#r(),this.#t.onPointerExit())})}constructor(t){this.#t=t,this.#n=t.buffer??1,Zt([t.triggerNode,t.contentNode,t.enabled],([e,s,n])=>{if(!e||!s||!n){this.#r();return}const r=Ae(e),d=a=>{this.#i([a.clientX,a.clientY],e,s)},i=a=>{const l=a.relatedTarget;if(gt(l)&&s.contains(l))return;const x=this.#t.ignoredTargets?.()??[];if(!(gt(l)&&x.some(H=>H===l||H.contains(l)))){if(gt(l)&&!e.contains(l)&&!s.contains(l)&&!l.contains(s)){this.#r(),this.#t.onPointerExit();return}this.#o=[a.clientX,a.clientY],this.#e="content",this.#h()}},p=()=>{this.#r()},P=()=>{this.#r()},y=a=>{const l=a.relatedTarget;gt(l)&&e.contains(l)||(this.#o=[a.clientX,a.clientY],this.#e="trigger",this.#h())};return[St(r,"pointermove",d),St(e,"pointerleave",i),St(e,"pointerenter",p),St(s,"pointerenter",P),St(s,"pointerleave",y)].reduce((a,l)=>()=>{a(),l()},()=>{})})}#i(t,e,s){if(!this.#o||!this.#e)return;this.#a();const n=e.getBoundingClientRect(),r=s.getBoundingClientRect();if(this.#e==="content"&&ae(t,r)){this.#r();return}if(this.#e==="trigger"&&ae(t,n)){this.#r();return}const d=je(n,r),i=this.#l(n,r,d);if(i&&ie(t,i))return;const p=this.#e==="content"?r:n,P=this.#d(this.#o,p,d,this.#e);ie(t,P)||(this.#r(),this.#t.onPointerExit())}#r(){this.#o=null,this.#e=null,this.#a()}#l(t,e,s){const n=this.#n;switch(s){case"top":return[[Math.min(t.left,e.left)-n,t.top],[Math.min(t.left,e.left)-n,e.bottom],[Math.max(t.right,e.right)+n,e.bottom],[Math.max(t.right,e.right)+n,t.top]];case"bottom":return[[Math.min(t.left,e.left)-n,t.bottom],[Math.min(t.left,e.left)-n,e.top],[Math.max(t.right,e.right)+n,e.top],[Math.max(t.right,e.right)+n,t.bottom]];case"left":return[[t.left,Math.min(t.top,e.top)-n],[e.right,Math.min(t.top,e.top)-n],[e.right,Math.max(t.bottom,e.bottom)+n],[t.left,Math.max(t.bottom,e.bottom)+n]];case"right":return[[t.right,Math.min(t.top,e.top)-n],[e.left,Math.min(t.top,e.top)-n],[e.left,Math.max(t.bottom,e.bottom)+n],[t.right,Math.max(t.bottom,e.bottom)+n]]}}#d(t,e,s,n){const r=this.#n*4,[d,i]=t;switch(n==="trigger"?this.#u(s):s){case"top":return[[d-r,i+r],[d+r,i+r],[e.right+r,e.bottom],[e.right+r,e.top],[e.left-r,e.top],[e.left-r,e.bottom]];case"bottom":return[[d-r,i-r],[d+r,i-r],[e.right+r,e.top],[e.right+r,e.bottom],[e.left-r,e.bottom],[e.left-r,e.top]];case"left":return[[d+r,i-r],[d+r,i+r],[e.right,e.bottom+r],[e.left,e.bottom+r],[e.left,e.top-r],[e.right,e.top-r]];case"right":return[[d-r,i-r],[d-r,i+r],[e.left,e.bottom+r],[e.right,e.bottom+r],[e.right,e.top-r],[e.left,e.top-r]]}}#u(t){switch(t){case"top":return"bottom";case"bottom":return"top";case"left":return"right";case"right":return"left"}}}const qt=Ie({component:"popover",parts:["root","trigger","content","close","overlay"]}),Jt=new Me("Popover.Root");class Qt{static create(t){return Jt.set(new Qt(t))}opts;#t=F(null);get contentNode(){return o(this.#t)}set contentNode(t){c(this.#t,t,!0)}contentPresence;#n=F(null);get triggerNode(){return o(this.#n)}set triggerNode(t){c(this.#n,t,!0)}#o=F(null);get overlayNode(){return o(this.#o)}set overlayNode(t){c(this.#o,t,!0)}overlayPresence;#e=F(!1);get openedViaHover(){return o(this.#e)}set openedViaHover(t){c(this.#e,t,!0)}#s=F(!1);get hasInteractedWithContent(){return o(this.#s)}set hasInteractedWithContent(t){c(this.#s,t,!0)}#a=F(!1);get hoverCooldown(){return o(this.#a)}set hoverCooldown(t){c(this.#a,t,!0)}#h=F(0);get closeDelay(){return o(this.#h)}set closeDelay(t){c(this.#h,t,!0)}#i=null;#r=null;constructor(t){this.opts=t,this.contentPresence=new ne({ref:D(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new ne({ref:D(()=>this.overlayNode),open:this.opts.open}),Zt(()=>this.opts.open.current,e=>{e||(this.openedViaHover=!1,this.hasInteractedWithContent=!1,this.#l())})}setDomContext(t){this.#r=t}#l(){this.#i!==null&&this.#r&&(this.#r.clearTimeout(this.#i),this.#i=null)}toggleOpen(){this.#l(),this.opts.open.current=!this.opts.open.current}handleClose(){this.#l(),this.opts.open.current&&(this.opts.open.current=!1)}handleHoverOpen(){this.#l(),!this.opts.open.current&&(this.openedViaHover=!0,this.opts.open.current=!0)}handleHoverClose(){this.opts.open.current&&this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1)}handleDelayedHoverClose(){this.opts.open.current&&(!this.openedViaHover||this.hasInteractedWithContent||(this.#l(),this.closeDelay<=0?this.opts.open.current=!1:this.#r&&(this.#i=this.#r.setTimeout(()=>{this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1),this.#i=null},this.closeDelay))))}cancelDelayedClose(){this.#l()}markInteraction(){this.hasInteractedWithContent=!0,this.#l()}}class Rt{static create(t){return new Rt(t,Jt.get())}opts;root;attachment;domContext;#t=null;#n=null;#o=F(!1);constructor(t,e){this.opts=t,this.root=e,this.attachment=de(this.opts.ref,s=>this.root.triggerNode=s),this.domContext=new Ve(t.ref),this.root.setDomContext(this.domContext),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this),Zt(()=>this.opts.closeDelay.current,s=>{this.root.closeDelay=s})}#e(){this.#t!==null&&(this.domContext.clearTimeout(this.#t),this.#t=null)}#s(){this.#n!==null&&(this.domContext.clearTimeout(this.#n),this.#n=null)}#a(){this.#e(),this.#s()}onpointerenter(t){if(this.opts.disabled.current||!this.opts.openOnHover.current||Yt(t)||(c(this.#o,!0),this.#s(),this.root.cancelDelayedClose(),this.root.opts.open.current||this.root.hoverCooldown))return;const e=this.opts.openDelay.current;e<=0?this.root.handleHoverOpen():this.#t=this.domContext.setTimeout(()=>{this.root.handleHoverOpen(),this.#t=null},e)}onpointerleave(t){this.opts.disabled.current||this.opts.openOnHover.current&&(Yt(t)||(c(this.#o,!1),this.#e(),this.root.hoverCooldown=!1))}onclick(t){if(!this.opts.disabled.current&&t.button===0){if(this.#a(),o(this.#o)&&this.root.opts.open.current&&this.root.openedViaHover){this.root.openedViaHover=!1,this.root.hasInteractedWithContent=!0;return}o(this.#o)&&this.opts.openOnHover.current&&this.root.opts.open.current&&(this.root.hoverCooldown=!0),this.root.hoverCooldown&&!this.root.opts.open.current&&(this.root.hoverCooldown=!1),this.root.toggleOpen()}}onkeydown(t){this.opts.disabled.current||(t.key===Oe||t.key===ke)&&(t.preventDefault(),this.#a(),this.root.toggleOpen())}#h(){if(this.root.opts.open.current&&this.root.contentNode?.id)return this.root.contentNode?.id}#i=T(()=>({id:this.opts.id.current,"aria-haspopup":"dialog","aria-expanded":Te(this.root.opts.open.current),"data-state":ue(this.root.opts.open.current),"aria-controls":this.#h(),[qt.trigger]:"",disabled:this.opts.disabled.current,onkeydown:this.onkeydown,onclick:this.onclick,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment}));get props(){return o(this.#i)}set props(t){c(this.#i,t)}}class te{static create(t){return new te(t,Jt.get())}opts;root;attachment;constructor(t,e){this.opts=t,this.root=e,this.attachment=de(this.opts.ref,s=>this.root.contentNode=s),this.onpointerdown=this.onpointerdown.bind(this),this.onfocusin=this.onfocusin.bind(this),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this),new qe({triggerNode:()=>this.root.triggerNode,contentNode:()=>this.root.contentNode,enabled:()=>this.root.opts.open.current&&this.root.openedViaHover&&!this.root.hasInteractedWithContent,onPointerExit:()=>{this.root.handleDelayedHoverClose()}})}onpointerdown(t){this.root.markInteraction()}onfocusin(t){const e=t.target;gt(e)&&De(e)&&this.root.markInteraction()}onpointerenter(t){Yt(t)||this.root.cancelDelayedClose()}onpointerleave(t){Yt(t)}onInteractOutside=t=>{if(this.opts.onInteractOutside.current(t),t.defaultPrevented||!gt(t.target))return;const e=t.target.closest(qt.selector("trigger"));if(!(e&&e===this.root.triggerNode)){if(this.opts.customAnchor.current){if(gt(this.opts.customAnchor.current)){if(this.opts.customAnchor.current.contains(t.target))return}else if(typeof this.opts.customAnchor.current=="string"){const s=document.querySelector(this.opts.customAnchor.current);if(s&&s.contains(t.target))return}}this.root.handleClose()}};onEscapeKeydown=t=>{this.opts.onEscapeKeydown.current(t),!t.defaultPrevented&&this.root.handleClose()};get shouldRender(){return this.root.contentPresence.shouldRender}get shouldTrapFocus(){return!(this.root.openedViaHover&&!this.root.hasInteractedWithContent)}#t=T(()=>({open:this.root.opts.open.current}));get snippetProps(){return o(this.#t)}set snippetProps(t){c(this.#t,t)}#n=T(()=>({id:this.opts.id.current,tabindex:-1,"data-state":ue(this.root.opts.open.current),[qt.content]:"",style:{pointerEvents:"auto",contain:"layout style"},onpointerdown:this.onpointerdown,onfocusin:this.onfocusin,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment}));get props(){return o(this.#n)}set props(t){c(this.#n,t)}popperProps={onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown}}var Ge=I("<div><div><!></div></div>"),Ue=I("<div><div><!></div></div>");function Ze(v,t){const e=le();_t(t,!0);let s=f(t,"ref",15,null),n=f(t,"id",19,()=>ce(e)),r=f(t,"forceMount",3,!1),d=f(t,"onOpenAutoFocus",3,xt),i=f(t,"onCloseAutoFocus",3,xt),p=f(t,"onEscapeKeydown",3,xt),P=f(t,"onInteractOutside",3,xt),y=f(t,"trapFocus",3,!0),a=f(t,"preventScroll",3,!1),l=f(t,"customAnchor",3,null),x=he(t,["$$slots","$$events","$$legacy","child","children","ref","id","forceMount","onOpenAutoFocus","onCloseAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","customAnchor","style"]);const H=te.create({id:D(()=>n()),ref:D(()=>s(),O=>s(O)),onInteractOutside:D(()=>P()),onEscapeKeydown:D(()=>p()),customAnchor:D(()=>l())}),ot=T(()=>Bt(x,H.props)),Ct=T(()=>y()&&H.shouldTrapFocus);function wt(O){H.shouldTrapFocus||O.preventDefault(),d()(O)}var N=j(),q=A(N);{var B=O=>{ze(O,ee(()=>o(ot),()=>H.popperProps,{get ref(){return H.opts.ref},get enabled(){return H.root.opts.open.current},get id(){return n()},get trapFocus(){return o(Ct)},get preventScroll(){return a()},loop:!0,forceMount:!0,get customAnchor(){return l()},onOpenAutoFocus:wt,get onCloseAutoFocus(){return i()},get shouldRender(){return H.shouldRender},popper:(pt,nt)=>{let ft=()=>nt?.().props,st=()=>nt?.().wrapperProps;const it=T(()=>Bt(ft(),{style:se("popover")},{style:t.style}));var at=j(),Tt=A(at);{var Dt=V=>{var M=j(),E=A(M);{let J=T(()=>({props:o(it),wrapperProps:st(),...H.snippetProps}));ut(E,()=>t.child,()=>o(J))}u(V,M)},Pt=V=>{var M=Ge();ct(M,()=>({...st()}));var E=g(M);ct(E,()=>({...o(it)}));var J=g(E);ut(J,()=>t.children??Kt),_(E),_(M),u(V,M)};S(Tt,V=>{t.child?V(Dt):V(Pt,!1)})}u(pt,at)},$$slots:{popper:!0}}))},rt=O=>{Fe(O,ee(()=>o(ot),()=>H.popperProps,{get ref(){return H.opts.ref},get open(){return H.root.opts.open.current},get id(){return n()},get trapFocus(){return o(Ct)},get preventScroll(){return a()},loop:!0,forceMount:!1,get customAnchor(){return l()},onOpenAutoFocus:wt,get onCloseAutoFocus(){return i()},get shouldRender(){return H.shouldRender},popper:(pt,nt)=>{let ft=()=>nt?.().props,st=()=>nt?.().wrapperProps;const it=T(()=>Bt(ft(),{style:se("popover")},{style:t.style}));var at=j(),Tt=A(at);{var Dt=V=>{var M=j(),E=A(M);{let J=T(()=>({props:o(it),wrapperProps:st(),...H.snippetProps}));ut(E,()=>t.child,()=>o(J))}u(V,M)},Pt=V=>{var M=Ue();ct(M,()=>({...st()}));var E=g(M);ct(E,()=>({...o(it)}));var J=g(E);ut(J,()=>t.children??Kt),_(E),_(M),u(V,M)};S(Tt,V=>{t.child?V(Dt):V(Pt,!1)})}u(pt,at)},$$slots:{popper:!0}}))};S(q,O=>{r()?O(B):r()||O(rt,1)})}u(v,N),yt()}var Je=I("<button><!></button>");function Qe(v,t){const e=le();_t(t,!0);let s=f(t,"id",19,()=>ce(e)),n=f(t,"ref",15,null),r=f(t,"type",3,"button"),d=f(t,"disabled",3,!1),i=f(t,"openOnHover",3,!1),p=f(t,"openDelay",3,700),P=f(t,"closeDelay",3,300),y=he(t,["$$slots","$$events","$$legacy","children","child","id","ref","type","disabled","openOnHover","openDelay","closeDelay"]);const a=Rt.create({id:D(()=>s()),ref:D(()=>n(),x=>n(x)),disabled:D(()=>!!d()),openOnHover:D(()=>i()),openDelay:D(()=>p()),closeDelay:D(()=>P())}),l=T(()=>Bt(y,a.props,{type:r()}));Ee(v,{get id(){return s()},get ref(){return a.opts.ref},children:(x,H)=>{var ot=j(),Ct=A(ot);{var wt=q=>{var B=j(),rt=A(B);ut(rt,()=>t.child,()=>({props:o(l)})),u(q,B)},N=q=>{var B=Je();ct(B,()=>({...o(l)}));var rt=g(B);ut(rt,()=>t.children??Kt),_(B),u(q,B)};S(Ct,q=>{t.child?q(wt):q(N,!1)})}u(x,ot)},$$slots:{default:!0}}),yt()}function Re(v,t){_t(t,!0);let e=f(t,"open",15,!1),s=f(t,"onOpenChange",3,xt),n=f(t,"onOpenChangeComplete",3,xt);Qt.create({open:D(()=>e(),r=>{e(r),s()(r)}),onOpenChangeComplete:D(()=>n())}),Se(v,{children:(r,d)=>{var i=j(),p=A(i);ut(p,()=>t.children??Kt),u(r,i)},$$slots:{default:!0}}),yt()}var to=Ot("<title> </title>"),eo=Ot('<svg><!><path d="M17.74,30,16,29l4-7h6a2,2,0,0,0,2-2V8a2,2,0,0,0-2-2H6A2,2,0,0,0,4,8V20a2,2,0,0,0,2,2h9v2H6a4,4,0,0,1-4-4V8A4,4,0,0,1,6,4H26a4,4,0,0,1,4,4V20a4,4,0,0,1-4,4H21.16Z"></path><path d="M8 10H24V12H8z"></path><path d="M8 16H18V18H8z"></path></svg>');function oo(v,t){const e=Vt(t,["children","$$slots","$$events","$$legacy"]),s=Vt(e,["size","title"]);_t(t,!1);const n=Mt(),r=Mt();let d=f(t,"size",8,16),i=f(t,"title",8,void 0);At(()=>(et(e),et(i())),()=>{c(n,e["aria-label"]||e["aria-labelledby"]||i())}),At(()=>(o(n),et(e)),()=>{c(r,{"aria-hidden":o(n)?void 0:!0,role:o(n)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),Gt(),Ut();var p=eo();ct(p,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:d(),height:d(),...o(r),...s}));var P=g(p);{var y=a=>{var l=to(),x=g(l,!0);_(l),dt(()=>Ht(x,i())),u(a,l)};S(P,a=>{i()&&a(y)})}Z(3),_(p),u(v,p),yt()}var ro=Ot("<title> </title>"),no=Ot('<svg><!><path d="M10 6H28V8H10z"></path><path d="M10 24H28V26H10z"></path><path d="M10 15H28V17H10z"></path><path d="M4 15H6V17H4z"></path><path d="M4 6H6V8H4z"></path><path d="M4 24H6V26H4z"></path></svg>');function so(v,t){const e=Vt(t,["children","$$slots","$$events","$$legacy"]),s=Vt(e,["size","title"]);_t(t,!1);const n=Mt(),r=Mt();let d=f(t,"size",8,16),i=f(t,"title",8,void 0);At(()=>(et(e),et(i())),()=>{c(n,e["aria-label"]||e["aria-labelledby"]||i())}),At(()=>(o(n),et(e)),()=>{c(r,{"aria-hidden":o(n)?void 0:!0,role:o(n)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),Gt(),Ut();var p=no();ct(p,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:d(),height:d(),...o(r),...s}));var P=g(p);{var y=a=>{var l=ro(),x=g(l,!0);_(l),dt(()=>Ht(x,i())),u(a,l)};S(P,a=>{i()&&a(y)})}Z(6),_(p),u(v,p),yt()}var io=Ot("<title> </title>"),ao=Ot('<svg><!><path d="M26,4h-4V2h-2v2h-8V2h-2v2H6C4.9,4,4,4.9,4,6v20c0,1.1,0.9,2,2,2h20c1.1,0,2-0.9,2-2V6C28,4.9,27.1,4,26,4z M26,26H6V12h20 V26z M26,10H6V6h4v2h2V6h8v2h2V6h4V10z"></path></svg>');function lo(v,t){const e=Vt(t,["children","$$slots","$$events","$$legacy"]),s=Vt(e,["size","title"]);_t(t,!1);const n=Mt(),r=Mt();let d=f(t,"size",8,16),i=f(t,"title",8,void 0);At(()=>(et(e),et(i())),()=>{c(n,e["aria-label"]||e["aria-labelledby"]||i())}),At(()=>(o(n),et(e)),()=>{c(r,{"aria-hidden":o(n)?void 0:!0,role:o(n)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),Gt(),Ut();var p=ao();ct(p,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:d(),height:d(),...o(r),...s}));var P=g(p);{var y=a=>{var l=io(),x=g(l,!0);_(l),dt(()=>Ht(x,i())),u(a,l)};S(P,a=>{i()&&a(y)})}Z(),_(p),u(v,p),yt()}const ho=Re,uo=Qe,co=Ze;var po=I('<div class="tab active svelte-r6dy5f"><input class="tab-rename-input svelte-r6dy5f"/></div>'),fo=I('<span class="tab-close svelte-r6dy5f" title="Close"><!></span>'),vo=I('<button><span class="tab-label svelte-r6dy5f"> </span> <!></button>'),mo=I('<span class="tab-close svelte-r6dy5f" title="Close"><!></span>'),bo=I('<button><span class="tab-label svelte-r6dy5f"> </span> <!></button>'),go=I("<!> <span>New View</span>",1),_o=I('<button class="add-view-option svelte-r6dy5f"><!> List</button> <button class="add-view-option svelte-r6dy5f"><!> Calendar</button>',1),yo=I("<!> <!>",1),Co=I("<!> <!>",1),wo=I("<!> <!>",1),Po=I("<!> <!>",1),xo=I('<div class="tab-bar svelte-r6dy5f"><div class="tabs-scroll svelte-r6dy5f"><button><span class="tab-label svelte-r6dy5f">Home</span></button> <button><span class="tab-label svelte-r6dy5f">Graph</span></button> <!> <!> <!></div> <div class="bar-right svelte-r6dy5f"><!> <!></div></div> <!>',1);function Bo(v,t){_t(t,!0);let e=f(t,"activeView",3,"entity");const s=me("chat");function n(h){oe(h,{noScroll:!0})}const r=T(()=>U.selectedId!==null),d=T(()=>{if(!U.selectedRepo||!U.selectedId)return"";for(const h of He.repos){if(h.name!==U.selectedRepo)continue;const m=h.entities.find(C=>C.id===U.selectedId);if(m)return m.title}return U.selectedId.replace(/-/g," ").replace(/\b\w/g,h=>h.toUpperCase())});function i(){U.deselect(),n("/")}let p=F(!1);async function P(h){c(p,!1);const m=h==="calendar"?"Calendar":"List",C=await $t.create(m,h);oe(`/views/${C.id}`)}let y=F(null),a=F(""),l=F(null),x=F(!1);function H(h){c(x,!1),c(y,h.id,!0),c(a,h.name,!0)}be(()=>{o(y)&&o(l)&&(o(l).focus(),o(l).select(),setTimeout(()=>{c(x,!0)},50))});function ot(){o(x)&&(o(y)&&o(a).trim()&&$t.update(o(y),{name:o(a).trim()}),c(y,null),c(x,!1))}function Ct(){c(y,null),c(x,!1)}function wt(h){h.key==="Enter"&&(h.preventDefault(),c(x,!0),ot()),h.key==="Escape"&&(h.preventDefault(),Ct())}let N=F(null);function q(h,m){h.stopPropagation(),c(N,m,!0)}async function B(){o(N)&&(await $t.remove(o(N).id),c(N,null))}var rt=xo(),O=A(rt),kt=g(O),pt=g(kt);let nt;var ft=z(pt,2);let st;var it=z(ft,2);Ce(it,17,()=>$t.views,h=>h.id,(h,m)=>{var C=j(),Q=A(C);{var R=W=>{var k=po(),b=g(k);ge(b),ye(b,w=>c(l,w),()=>o(l)),_(k),dt(w=>_e(b,"size",w),[()=>Math.max(o(a).length,1)]),L("keydown",b,wt),L("input",b,w=>{c(a,w.currentTarget.value,!0)}),ve("blur",b,ot),we(b,()=>o(a),w=>c(a,w)),u(W,k)},tt=W=>{const k=T(()=>e()==="view"&&U.activeViewId===o(m).id);var b=vo();let w;var lt=g(b),$=g(lt,!0);_(lt);var K=z(lt,2);{var It=Y=>{var G=fo(),zt=g(G);re(zt,{size:12}),_(G),L("click",G,Lt=>q(Lt,o(m))),u(Y,G)};S(K,Y=>{o(k)&&Y(It)})}_(b),dt(()=>{w=Wt(b,1,"tab svelte-r6dy5f",null,w,{"tab-permanent":!o(k),active:o(k)}),Ht($,o(m).name)}),L("click",b,()=>n(`/views/${o(m).id}`)),L("dblclick",b,()=>H(o(m))),u(W,b)};S(Q,W=>{o(y)===o(m).id?W(R):W(tt,!1)})}u(h,C)});var at=z(it,2);{var Tt=h=>{const m=T(()=>e()==="entity"&&o(r));var C=bo();let Q;var R=g(C),tt=g(R,!0);_(R);var W=z(R,2);{var k=b=>{var w=mo(),lt=g(w);re(lt,{size:12}),_(w),L("click",w,$=>{$.stopPropagation(),i()}),u(b,w)};S(W,b=>{o(m)&&b(k)})}_(C),dt(()=>{Q=Wt(C,1,"tab svelte-r6dy5f",null,Q,{"tab-permanent":!o(m),active:o(m)}),Ht(tt,o(d))}),L("click",C,()=>n(U.entityPath??"/")),u(h,C)};S(at,h=>{o(r)&&h(Tt)})}var Dt=z(at,2);X(Dt,()=>ho,(h,m)=>{m(h,{get open(){return o(p)},set open(C){c(p,C,!0)},children:(C,Q)=>{var R=yo(),tt=A(R);X(tt,()=>uo,(k,b)=>{b(k,{class:"new-view-btn",title:"New view",children:(w,lt)=>{var $=go(),K=A($);xe(K,{size:16}),Z(2),u(w,$)},$$slots:{default:!0}})});var W=z(tt,2);X(W,()=>co,(k,b)=>{b(k,{class:"add-view-menu",sideOffset:4,align:"start",children:(w,lt)=>{var $=_o(),K=A($),It=g(K);so(It,{size:14}),Z(),_(K);var Y=z(K,2),G=g(Y);lo(G,{size:14}),Z(),_(Y),L("click",K,()=>P("list")),L("click",Y,()=>P("calendar")),u(w,$)},$$slots:{default:!0}})}),u(C,R)},$$slots:{default:!0}})}),_(kt);var Pt=z(kt,2),V=g(Pt);{var M=h=>{var m=j(),C=A(m);ut(C,()=>t.right),u(h,m)};S(V,h=>{t.right&&h(M)})}var E=z(V,2);{var J=h=>{Pe(h,{variant:"accent",size:"icon",class:"chat-toggle",title:"Open Agent",get onclick(){return s.toggle},children:(m,C)=>{oo(m,{size:14})},$$slots:{default:!0}})};S(E,h=>{s.open||h(J)})}_(Pt),_(O);var pe=z(O,2);{let h=T(()=>!!o(N));X(pe,()=>Xe,(m,C)=>{C(m,{get open(){return o(h)},onOpenChange:Q=>{Q||c(N,null)},children:(Q,R)=>{var tt=j(),W=A(tt);X(W,()=>Ne,(k,b)=>{b(k,{children:(w,lt)=>{var $=Po(),K=A($);X(K,()=>We,(Y,G)=>{G(Y,{children:(zt,Lt)=>{var Ft=Co(),Et=A(Ft);X(Et,()=>$e,(vt,mt)=>{mt(vt,{children:(bt,jt)=>{Z();var ht=Nt("Delete view?");u(bt,ht)},$$slots:{default:!0}})});var Xt=z(Et,2);X(Xt,()=>Be,(vt,mt)=>{mt(vt,{children:(bt,jt)=>{Z();var ht=Nt();dt(()=>Ht(ht,`The view "${o(N)?.name??""}" will be permanently deleted.`)),u(bt,ht)},$$slots:{default:!0}})}),u(zt,Ft)},$$slots:{default:!0}})});var It=z(K,2);X(It,()=>Ke,(Y,G)=>{G(Y,{children:(zt,Lt)=>{var Ft=wo(),Et=A(Ft);X(Et,()=>Ye,(vt,mt)=>{mt(vt,{children:(bt,jt)=>{Z();var ht=Nt("Cancel");u(bt,ht)},$$slots:{default:!0}})});var Xt=z(Et,2);X(Xt,()=>Le,(vt,mt)=>{mt(vt,{onclick:B,children:(bt,jt)=>{Z();var ht=Nt("Delete");u(bt,ht)},$$slots:{default:!0}})}),u(zt,Ft)},$$slots:{default:!0}})}),u(w,$)},$$slots:{default:!0}})}),u(Q,tt)},$$slots:{default:!0}})})}dt(()=>{nt=Wt(pt,1,"tab tab-permanent svelte-r6dy5f",null,nt,{active:e()==="entity"&&!o(r)}),st=Wt(ft,1,"tab tab-permanent svelte-r6dy5f",null,st,{active:e()==="graph"})}),L("click",pt,()=>{U.deselect(),n("/")}),L("click",ft,()=>e()!=="graph"&&n("/graph")),u(v,rt),yt()}fe(["click","keydown","input","dblclick"]);export{co as C,Qt as P,ho as R,uo as T,Bo as V,Ze as a,Qe as b,lo as c};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import{l as Qn,o as V,c as M,a as C,p as Ht,b as ct,m as so,u as ao}from"./usxM-xOh.js";import{aM as co,j as uo,q as lo,bx as fo,i as ho,e as T,by as Pn,N as go,g as l,s as y,aZ as Zt,a4 as x,f as Bt,aX as po,a1 as Tn,aW as mo,a6 as vo,a2 as Z,a7 as Ve,aE as yo,p as k,a0 as P,b as N,ae as L,c as St,r as At,bz as bo,bA as $n,a3 as ge,aD as wo}from"./CCA2E2CK.js";import{s as D,a as Ot}from"./DkuxRPZv.js";import{p as v,r as W,s as J}from"./DHholpIc.js";import{B as xo,i as nt,b as tr}from"./yUs562n0.js";import{c as Et}from"./NuvuAeCX.js";import{c as Ct,a as er}from"./D8mTIH9Y.js";import{b as Be}from"./BKHfe9E-.js";function So(){return Symbol(co)}const Ao=Symbol("NaN");function Oo(e,t,n){uo&&lo();var r=new xo(e),o=!fo();ho(()=>{var s=t();s!==s&&(s=Ao),o&&s!==null&&typeof s=="object"&&(s={}),r.ensure(s,n)})}class Eo extends Map{#t=new Map;#e=T(0);#n=T(0);#r=Pn||-1;constructor(t){if(super(),t){for(var[n,r]of t)super.set(n,r);this.#n.v=super.size}}#o(t){return Pn===this.#r?T(t):go(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 l(this.#e),!1;return l(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{l(this.#e);return}return l(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),Zt(a);else if(s!==n){Zt(o);var c=a.reactions===null?null:new Set(a.reactions),u=c===null||!o.reactions?.every(h=>c.has(h));u&&Zt(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),Zt(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);Zt(this.#e),t.clear()}}#i(){l(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)l(r)}keys(){return l(this.#e),super.keys()}values(){return this.#i(),super.values()}entries(){return this.#i(),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return l(this.#n),super.size}}function Co(e){return typeof e=="function"}function oe(e){return e!==null&&typeof e=="object"}const Po=["string","number","bigint","boolean"];function ze(e){return e==null||Po.includes(typeof e)?!0:Array.isArray(e)?e.every(t=>ze(t)):typeof e=="object"?Object.getPrototypeOf(e)===Object.prototype:!1}const Wt=Symbol("box"),Me=Symbol("is-writable");function w(e,t){const n=x(e);return t?{[Wt]:!0,[Me]:!0,get current(){return l(n)},set current(r){t(r)}}:{[Wt]:!0,get current(){return e()}}}function ie(e){return oe(e)&&Wt in e}function Je(e){return ie(e)&&Me in e}function nr(e){return ie(e)?e:Co(e)?w(e):ut(e)}function To(e){return Object.entries(e).reduce((t,[n,r])=>ie(r)?(Je(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 Mo(e){return Je(e)?{[Wt]:!0,get current(){return e.current}}:e}function ut(e){let t=T(Bt(e));return{[Wt]:!0,[Me]:!0,get current(){return l(t)},set current(n){y(t,n,!0)}}}function Dt(e){let t=T(Bt(e));return{[Wt]:!0,[Me]:!0,get current(){return l(t)},set current(n){y(t,n,!0)}}}Dt.from=nr;Dt.with=w;Dt.flatten=To;Dt.readonly=Mo;Dt.isBox=ie;Dt.isWritableBox=Je;function rr(...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 Mn=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Fo=/\n/g,Io=/^\s*/,Ro=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,ko=/^:\s*/,No=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Do=/^[;\s]*/,_o=/^\s+|\s+$/g,Bo=`
|
|
2
|
-
`,Fn="/",In="*",It="",Lo="comment",Wo="declaration";function Ko(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(Fo);p&&(n+=p.length);var b=g.lastIndexOf(Bo);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),u(),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 u(){c(Io)}function h(g){var p;for(g=g||[];p=d();)p!==!1&&g.push(p);return g}function d(){var g=s();if(!(Fn!=e.charAt(0)||In!=e.charAt(1))){for(var p=2;It!=e.charAt(p)&&(In!=e.charAt(p)||Fn!=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:Lo,comment:b})}}function m(){var g=s(),p=c(Ro);if(p){if(d(),!c(ko))return a("property missing ':'");var b=c(No),S=g({type:Wo,property:Rn(p[0].replace(Mn,It)),value:b?Rn(b[0].replace(Mn,It)):It});return c(Do),S}}function f(){var g=[];h(g);for(var p;p=m();)p!==!1&&(g.push(p),h(g));return g}return u(),f()}function Rn(e){return e?e.replace(_o,It):It}function Vo(e,t){let n=null;if(!e||typeof e!="string")return n;const r=Ko(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 zo=/\d/,Ho=["-","_","/","."];function Uo(e=""){if(!zo.test(e))return e!==e.toLowerCase()}function jo(e){const t=[];let n="",r,o;for(const s of e){const i=Ho.includes(s);if(i===!0){t.push(n),n="",r=void 0;continue}const a=Uo(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 or(e){return e?jo(e).map(t=>Yo(t)).join(""):""}function Go(e){return Xo(or(e||""))}function Yo(e){return e?e[0].toUpperCase()+e.slice(1):""}function Xo(e){return e?e[0].toLowerCase()+e.slice(1):""}function te(e){if(!e)return{};const t={};function n(r,o){if(r.startsWith("-moz-")||r.startsWith("-webkit-")||r.startsWith("-ms-")||r.startsWith("-o-")){t[or(r)]=o;return}if(r.startsWith("--")){t[r]=o;return}t[Go(r)]=o}return Vo(e,n),t}function Rt(...e){return(...t)=>{for(const n of e)typeof n=="function"&&n(...t)}}function qo(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 Zo=qo(/[A-Z]/,e=>`-${e.toLowerCase()}`);function Jo(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=>`${Zo(t)}: ${e[t]};`).join(`
|
|
3
|
-
`)}function ir(e={}){return Jo(e).replace(`
|
|
4
|
-
`," ")}const Qo=["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"],$o=new Set(Qo);function ti(e){return $o.has(e)}function tt(...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&&ti(o)){const u=s,h=i;t[o]=rr(u,h)}else if(a&&c)t[o]=Rt(s,i);else if(o==="class"){const u=ze(s),h=ze(i);u&&h?t[o]=Be(s,i):u?t[o]=Be(s):h&&(t[o]=Be(i))}else if(o==="style"){const u=typeof s=="object",h=typeof i=="object",d=typeof s=="string",m=typeof i=="string";if(u&&h)t[o]={...s,...i};else if(u&&m){const f=te(i);t[o]={...s,...f}}else if(d&&h){const f=te(s);t[o]={...f,...i}}else if(d&&m){const f=te(s),g=te(i);t[o]={...f,...g}}else u?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=ir(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 sr=typeof window<"u"?window:void 0;function ei(e){let t=e.activeElement;for(;t?.shadowRoot;){const n=t.shadowRoot.activeElement;if(n===t)break;t=n}return t}class ni{#t;#e;constructor(t={}){const{window:n=sr,document:r=n?.document}=t;n!==void 0&&(this.#t=r,this.#e=Qn(o=>{const s=V(n,"focusin",o),i=V(n,"focusout",o);return()=>{s(),i()}}))}get current(){return this.#e?.(),this.#t?ei(this.#t):null}}new ni;function ri(e){return typeof e=="function"}class Pt{#t;#e;constructor(t){this.#t=t,this.#e=Symbol(t)}get key(){return this.#e}exists(){return po(this.#e)}get(){const t=Tn(this.#e);if(t===void 0)throw new Error(`Context "${this.#t}" not found`);return t}getOr(t){const n=Tn(this.#e);return n===void 0?t:n}set(t){return mo(this.#e,t)}}function oi(e,t){switch(e){case"post":Z(t);break;case"pre":vo(t);break}}function ar(e,t,n,r={}){const{lazy:o=!1}=r;let s=!o,i=Array.isArray(e)?[]:void 0;oi(t,()=>{const a=Array.isArray(e)?e.map(u=>u()):e();if(!s){s=!0,i=a;return}const c=Ve(()=>n(a,i));return i=a,c})}function H(e,t,n){ar(e,"post",t,n)}function ii(e,t,n){ar(e,"pre",t,n)}H.pre=ii;function kn(e){return ri(e)?e():e}class si{#t={width:0,height:0};#e=!1;#n;#r;#o;#i=x(()=>(l(this.#s)?.(),this.getSize().width));#a=x(()=>(l(this.#s)?.(),this.getSize().height));#s=x(()=>{const t=kn(this.#r);if(t)return Qn(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,u)=>Math.max(c,u.inlineSize),0),this.#t.height=a.reduce((c,u)=>Math.max(c,u.blockSize),0)}n()});return r.observe(t),()=>{this.#e=!1,r.disconnect()}})});constructor(t,n={box:"border-box"}){this.#o=n.window??sr,this.#n=n,this.#r=t,this.#t={width:0,height:0}}calculateSize(){const t=kn(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),u=n-s-a,h=r-i-c;return{width:u,height:h}}getSize(){return this.#e?this.#t:this.calculateSize()??this.#t}get current(){return l(this.#s)?.(),this.getSize()}get width(){return l(this.#i)}get height(){return l(this.#a)}}function _t(e){Z(()=>()=>{e()})}function cr(e,t){return setTimeout(t,e)}function lt(e){yo().then(e)}const ai=1,ci=9,ui=11;function He(e){return oe(e)&&e.nodeType===ai&&typeof e.nodeName=="string"}function ur(e){return oe(e)&&e.nodeType===ci}function li(e){return oe(e)&&e.constructor?.name==="VisualViewport"}function di(e){return oe(e)&&e.nodeType!==void 0}function lr(e){return di(e)&&e.nodeType===ui&&"host"in e}function fi(e,t){if(!e||!t||!He(e)||!He(t))return!1;const n=t.getRootNode?.();if(e===t||e.contains(t))return!0;if(n&&lr(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function se(e){return ur(e)?e:li(e)?e.document:e?.ownerDocument??document}function Qe(e){return lr(e)?Qe(e.host):ur(e)?e.defaultView??window:He(e)?e.ownerDocument?.defaultView??window:window}function hi(e){let t=e.activeElement;for(;t?.shadowRoot;){const n=t.shadowRoot.activeElement;if(n===t)break;t=n}return t}class $e{element;#t=x(()=>this.element.current?this.element.current.getRootNode()??document:document);get root(){return l(this.#t)}set root(t){y(this.#t,t)}constructor(t){typeof t=="function"?this.element=w(t):this.element=t}getDocument=()=>se(this.root);getWindow=()=>this.getDocument().defaultView??window;getActiveElement=()=>hi(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 Q(e,t){return{[So()]:n=>ie(e)?(e.current=n,Ve(()=>t?.(n)),()=>{"isConnected"in n&&n.isConnected||(e.current=null,t?.(null))}):(e(n),Ve(()=>t?.(n)),()=>{"isConnected"in n&&n.isConnected||(e(null),t?.(null))})}}function tn(e){return e?"true":"false"}function fc(e){return e?"true":void 0}function Kt(e){return e?"":void 0}function hc(e){return e?!0:void 0}function Fe(e){return e?"open":"closed"}function gc(e,t){return t?"mixed":e?"true":"false"}class gi{#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 dr(e){const t=new gi(e);return{...t.attrs,selector:t.selector,getAttr:t.getAttr}}const ne="ArrowDown",ae="ArrowLeft",ce="ArrowRight",pe="ArrowUp",fr="End",Ie="Enter",pi="Escape",hr="Home",mi="PageDown",vi="PageUp",Ut=" ",yi="Tab";function bi(e){return window.getComputedStyle(e).getPropertyValue("direction")}function wi(e="ltr",t="horizontal"){return{horizontal:e==="rtl"?ae:ce,vertical:ne}[t]}function xi(e="ltr",t="horizontal"){return{horizontal:e==="rtl"?ce:ae,vertical:pe}[t]}function Si(e="ltr",t="horizontal"){return["ltr","rtl"].includes(e)||(e="ltr"),["horizontal","vertical"].includes(t)||(t="horizontal"),{nextKey:wi(e,t),prevKey:xi(e,t)}}const gr=typeof document<"u",Nn=Ai();function Ai(){return gr&&window?.navigator?.userAgent&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||window?.navigator?.maxTouchPoints>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function ht(e){return e instanceof HTMLElement}function Ue(e){return e instanceof Element}function pr(e){return e instanceof Element||e instanceof SVGElement}function pc(e){return e===null}function mc(e){return e.pointerType==="touch"}function Oi(e){return e!==null}function Ei(e){return e instanceof HTMLInputElement&&"select"in e}class Ci{#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=bi(o),{nextKey:c,prevKey:u}=Si(a,this.#t.orientation.current),h=this.#t.loop.current,d={[c]:i+1,[u]:i-1,[hr]:0,[fr]:s.length-1};if(r){const g=c===ne?ce:ne,p=u===pe?ae:pe;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||!ht(n)||n.focus()}}class Pi{#t;#e=null;constructor(t){this.#t=t,_t(()=>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 je{#t;#e;#n;#r=T(!1);constructor(t){this.#t=t,y(this.#r,t.open.current,!0),this.#e=t.enabled??!0,this.#n=new Pi({ref:this.#t.ref,afterTick:this.#t.open}),H(()=>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 l(this.#r)}}function B(){}function jt(e,t){return`bits-${e}`}const Ti=dr({component:"dialog",parts:["content","trigger","overlay","title","description","close","cancel","action"]}),mt=new Pt("Dialog.Root | AlertDialog.Root");class en{static create(t){const n=mt.getOr(null);return mt.set(new en(t,n))}opts;#t=T(null);get triggerNode(){return l(this.#t)}set triggerNode(t){y(this.#t,t,!0)}#e=T(null);get contentNode(){return l(this.#e)}set contentNode(t){y(this.#e,t,!0)}#n=T(null);get overlayNode(){return l(this.#n)}set overlayNode(t){y(this.#n,t,!0)}#r=T(null);get descriptionNode(){return l(this.#r)}set descriptionNode(t){y(this.#r,t,!0)}#o=T(void 0);get contentId(){return l(this.#o)}set contentId(t){y(this.#o,t,!0)}#i=T(void 0);get titleId(){return l(this.#i)}set titleId(t){y(this.#i,t,!0)}#a=T(void 0);get triggerId(){return l(this.#a)}set triggerId(t){y(this.#a,t,!0)}#s=T(void 0);get descriptionId(){return l(this.#s)}set descriptionId(t){y(this.#s,t,!0)}#c=T(null);get cancelNode(){return l(this.#c)}set cancelNode(t){y(this.#c,t,!0)}#l=T(0);get nestedOpenCount(){return l(this.#l)}set nestedOpenCount(t){y(this.#l,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 je({ref:w(()=>this.contentNode),open:this.opts.open,enabled:!0,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new je({ref:w(()=>this.overlayNode),open:this.opts.open,enabled:!0}),H(()=>this.opts.open.current,r=>{this.parent&&(r?this.parent.incrementNested():this.parent.decrementNested())},{lazy:!0}),_t(()=>{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=>Ti.getAttr(t,this.opts.variant.current);incrementNested(){this.nestedOpenCount++,this.parent?.incrementNested()}decrementNested(){this.nestedOpenCount!==0&&(this.nestedOpenCount--,this.parent?.decrementNested())}#u=x(()=>({"data-state":Fe(this.opts.open.current)}));get sharedProps(){return l(this.#u)}set sharedProps(t){y(this.#u,t)}}class mr{static create(t){return new mr(t,mt.get())}opts;root;attachment;constructor(t,n){this.opts=t,this.root=n,this.attachment=Q(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===Ut||t.key===Ie)&&(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 l(this.#t)}set props(t){y(this.#t,t)}}class nn{static create(t){return new nn(t,mt.get())}opts;root;attachment;constructor(t,n){this.opts=t,this.root=n,this.attachment=Q(this.opts.ref)}#t=x(()=>({id:this.opts.id.current,[this.root.getBitsAttr("action")]:"",...this.root.sharedProps,...this.attachment}));get props(){return l(this.#t)}set props(t){y(this.#t,t)}}class rn{static create(t){return new rn(t,mt.get())}opts;root;attachment;constructor(t,n){this.opts=t,this.root=n,this.root.titleId=this.opts.id.current,this.attachment=Q(this.opts.ref),H.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 l(this.#t)}set props(t){y(this.#t,t)}}class on{static create(t){return new on(t,mt.get())}opts;root;attachment;constructor(t,n){this.opts=t,this.root=n,this.root.descriptionId=this.opts.id.current,this.attachment=Q(this.opts.ref,r=>{this.root.descriptionNode=r}),H.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 l(this.#t)}set props(t){y(this.#t,t)}}class sn{static create(t){return new sn(t,mt.get())}opts;root;attachment;constructor(t,n){this.opts=t,this.root=n,this.attachment=Q(this.opts.ref,r=>{this.root.contentNode=r,this.root.contentId=r?.id})}#t=x(()=>({open:this.root.opts.open.current}));get snippetProps(){return l(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":Kt(this.root.nestedOpenCount>0),"data-nested":Kt(this.root.parent!==null),...this.root.sharedProps,...this.attachment}));get props(){return l(this.#e)}set props(t){y(this.#e,t)}get shouldRender(){return this.root.contentPresence.shouldRender}}class an{static create(t){return new an(t,mt.get())}opts;root;attachment;constructor(t,n){this.opts=t,this.root=n,this.attachment=Q(this.opts.ref,r=>this.root.overlayNode=r)}#t=x(()=>({open:this.root.opts.open.current}));get snippetProps(){return l(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":Kt(this.root.nestedOpenCount>0),"data-nested":Kt(this.root.parent!==null),...this.root.sharedProps,...this.attachment}));get props(){return l(this.#e)}set props(t){y(this.#e,t)}get shouldRender(){return this.root.overlayPresence.shouldRender}}class cn{static create(t){return new cn(t,mt.get())}opts;root;attachment;constructor(t,n){this.opts=t,this.root=n,this.attachment=Q(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===Ut||t.key===Ie)&&(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 l(this.#t)}set props(t){y(this.#t,t)}}function Mi(e,t){k(t,!0);let n=v(t,"open",15,!1),r=v(t,"onOpenChange",3,B),o=v(t,"onOpenChangeComplete",3,B);en.create({variant:w(()=>"alert-dialog"),open:w(()=>n(),a=>{n(a),r()(a)}),onOpenChangeComplete:w(()=>o())});var s=M(),i=P(s);D(i,()=>t.children??L),C(e,s),N()}var Fi=ct("<div><!></div>");function Ii(e,t){const n=Ht();k(t,!0);let r=v(t,"id",19,()=>jt(n)),o=v(t,"ref",15,null),s=v(t,"level",3,2),i=W(t,["$$slots","$$events","$$legacy","id","ref","child","children","level"]);const a=rn.create({id:w(()=>r()),level:w(()=>s()),ref:w(()=>o(),f=>o(f))}),c=x(()=>tt(i,a.props));var u=M(),h=P(u);{var d=f=>{var g=M(),p=P(g);D(p,()=>t.child,()=>({props:l(c)})),C(f,g)},m=f=>{var g=Fi();Ot(g,()=>({...l(c)}));var p=St(g);D(p,()=>t.children??L),At(g),C(f,g)};nt(h,f=>{t.child?f(d):f(m,!1)})}C(e,u),N()}var Ri=ct("<button><!></button>");function ki(e,t){const n=Ht();k(t,!0);let r=v(t,"id",19,()=>jt(n)),o=v(t,"ref",15,null),s=W(t,["$$slots","$$events","$$legacy","children","child","id","ref"]);const i=nn.create({id:w(()=>r()),ref:w(()=>o(),m=>o(m))}),a=x(()=>tt(s,i.props));var c=M(),u=P(c);{var h=m=>{var f=M(),g=P(f);D(g,()=>t.child,()=>({props:l(a)})),C(m,f)},d=m=>{var f=Ri();Ot(f,()=>({...l(a)}));var g=St(f);D(g,()=>t.children??L),At(f),C(m,f)};nt(u,m=>{t.child?m(h):m(d,!1)})}C(e,c),N()}var Ni=ct("<button><!></button>");function Di(e,t){const n=Ht();k(t,!0);let r=v(t,"id",19,()=>jt(n)),o=v(t,"ref",15,null),s=v(t,"disabled",3,!1),i=W(t,["$$slots","$$events","$$legacy","id","ref","children","child","disabled"]);const a=cn.create({id:w(()=>r()),ref:w(()=>o(),f=>o(f)),disabled:w(()=>!!s())}),c=x(()=>tt(i,a.props));var u=M(),h=P(u);{var d=f=>{var g=M(),p=P(g);D(p,()=>t.child,()=>({props:l(c)})),C(f,g)},m=f=>{var g=Ni();Ot(g,()=>({...l(c)}));var p=St(g);D(p,()=>t.children??L),At(g),C(f,g)};nt(h,f=>{t.child?f(d):f(m,!1)})}C(e,u),N()}function _i(e,t){var n=M(),r=P(n);Oo(r,()=>t.children,o=>{var s=M(),i=P(s);D(i,()=>t.children??L),C(o,s)}),C(e,n)}const Bi=new Pt("BitsConfig");function Li(){const e=new Wi(null,{});return Bi.getOr(e).opts}class Wi{opts;constructor(t,n){const r=Ki(t,n);this.opts={defaultPortalTo:r(o=>o.defaultPortalTo),defaultLocale:r(o=>o.defaultLocale)}}}function Ki(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 vr(e,t){return n=>{const r=Li();return w(()=>{const o=n();if(o!==void 0)return o;const s=e(r).current;return s!==void 0?s:t})}}const vc=vr(e=>e.defaultLocale,"en"),Vi=vr(e=>e.defaultPortalTo,"body");function zi(e,t){k(t,!0);const n=Vi(()=>t.to),r=bo();let o=x(s);function s(){if(!gr||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&&(ao(i),i=null)}H([()=>l(o),()=>t.disabled],([d,m])=>{if(!d||m){a();return}return i=so(_i,{target:d,props:{children:t.children},context:r}),()=>{a()}});var c=M(),u=P(c);{var h=d=>{var m=M(),f=P(m);D(f,()=>t.children??L),C(d,m)};nt(u,d=>{t.disabled&&d(h)})}C(e,c),N()}class Hi{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 V(t,this.eventName,o,r)}}function Dn(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 yr(e,t){return e===t||e.contains(t)}function br(e){return e?.ownerDocument??document}function Ui(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 Ge=[Ie,Ut],ji=[ne,vi,hr],wr=[pe,mi,fr],Gi=[...ji,...wr],Yi={ltr:[...Ge,ce],rtl:[...Ge,ae]},yc={ltr:[ae],rtl:[ce]};function me(e){return e.pointerType==="mouse"}function Xi(e,{select:t=!1}={}){if(!e||!e.focus)return;const n=se(e);if(n.activeElement===e)return;const r=n.activeElement;e.focus({preventScroll:!0}),e!==r&&Ei(e)&&t&&e.select()}function qi(e,{select:t=!1}={},n){const r=n();for(const o of e)if(Xi(o,{select:t}),n()!==r)return!0}let Jt=T(!1);class bt{static _refs=0;static _cleanup;constructor(){Z(()=>(bt._refs===0&&(bt._cleanup=$n(()=>{const t=[],n=o=>{y(Jt,!1)},r=o=>{y(Jt,!0)};return t.push(V(document,"pointerdown",n,{capture:!0}),V(document,"pointermove",n,{capture:!0}),V(document,"keydown",r,{capture:!0})),Rt(...t)})),bt._refs++,()=>{bt._refs--,bt._refs===0&&(y(Jt,!1),bt._cleanup?.())}))}get current(){return l(Jt)}set current(t){y(Jt,t,!0)}}var xr=["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] *)"],ve=xr.join(","),Sr=typeof Element>"u",kt=Sr?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,ye=!Sr&&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},be=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]"):be(t.parentNode));return i},Zi=function(t){var n,r=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return r===""||r==="true"},Ar=function(t,n,r){if(be(t))return[];var o=Array.prototype.slice.apply(t.querySelectorAll(ve));return n&&kt.call(t,ve)&&o.unshift(t),o=o.filter(r),o},we=function(t,n,r){for(var o=[],s=Array.from(t);s.length;){var i=s.shift();if(!be(i,!1))if(i.tagName==="SLOT"){var a=i.assignedElements(),c=a.length?a:i.children,u=we(c,!0,r);r.flatten?o.push.apply(o,u):o.push({scopeParent:i,candidates:u})}else{var h=kt.call(i,ve);h&&r.filter(i)&&(n||!t.includes(i))&&o.push(i);var d=i.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(i),m=!be(d,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(i));if(d&&m){var f=we(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},Or=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},Er=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||Zi(t))&&!Or(t)?0:t.tabIndex},Ji=function(t,n){var r=Er(t);return r<0&&n&&!Or(t)?0:r},Qi=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},Cr=function(t){return t.tagName==="INPUT"},$i=function(t){return Cr(t)&&t.type==="hidden"},ts=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},es=function(t,n){for(var r=0;r<t.length;r++)if(t[r].checked&&t[r].form===n)return t[r]},ns=function(t){if(!t.name)return!0;var n=t.form||ye(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=es(o,t.form);return!s||s===t},rs=function(t){return Cr(t)&&t.type==="radio"},os=function(t){return rs(t)&&!ns(t)},is=function(t){var n,r=t&&ye(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 u,h,d;r=ye(o),o=(u=r)===null||u===void 0?void 0:u.host,s=!!((h=o)!==null&&h!==void 0&&(d=h.ownerDocument)!==null&&d!==void 0&&d.contains(o))}}return s},_n=function(t){var n=t.getBoundingClientRect(),r=n.width,o=n.height;return r===0&&o===0},ss=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=kt.call(t,"details>summary:first-of-type"),a=i?t.parentElement:t;if(kt.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 u=t.parentElement,h=ye(t);if(u&&!u.shadowRoot&&o(u)===!0)return _n(t);t.assignedSlot?t=t.assignedSlot:!u&&h!==t.ownerDocument?t=h.host:t=u}t=c}if(is(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return _n(t);return!1},as=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 kt.call(n,"fieldset[disabled] *")?!0:!o.contains(t)}return!0}n=n.parentElement}return!1},xe=function(t,n){return!(n.disabled||$i(n)||ss(n,t)||ts(n)||as(n))},Ye=function(t,n){return!(os(n)||Er(n)<0||!xe(t,n))},cs=function(t){var n=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},Pr=function(t){var n=[],r=[];return t.forEach(function(o,s){var i=!!o.scopeParent,a=i?o.scopeParent:o,c=Ji(a,i),u=i?Pr(o.candidates):a;c===0?i?n.push.apply(n,u):n.push(a):r.push({documentOrder:s,tabIndex:c,item:o,isScope:i,content:u})}),r.sort(Qi).reduce(function(o,s){return s.isScope?o.push.apply(o,s.content):o.push(s.content),o},[]).concat(n)},Tr=function(t,n){n=n||{};var r;return n.getShadowRoot?r=we([t],n.includeContainer,{filter:Ye.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:cs}):r=Ar(t,n.includeContainer,Ye.bind(null,n)),Pr(r)},Mr=function(t,n){n=n||{};var r;return n.getShadowRoot?r=we([t],n.includeContainer,{filter:xe.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):r=Ar(t,n.includeContainer,xe.bind(null,n)),r},un=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return kt.call(t,ve)===!1?!1:Ye(n,t)},us=xr.concat("iframe:not([inert]):not([inert] *)").join(","),Fr=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return kt.call(t,us)===!1?!1:xe(n,t)};function ee(){return{getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"}}function ls(e,t){if(!un(e,ee()))return ds(e,t);const n=se(e),r=Tr(n.body,ee());t==="prev"&&r.reverse();const o=r.indexOf(e);return o===-1?n.body:r.slice(o+1)[0]}function ds(e,t){const n=se(e);if(!Fr(e,ee()))return n.body;const r=Mr(n.body,ee());t==="prev"&&r.reverse();const o=r.indexOf(e);return o===-1?n.body:r.slice(o+1).find(i=>un(i,ee()))??n.body}function fs(e,t){return e.length!==t.length?!1:e.every((n,r)=>Ir(n,t[r]))}function Ir(e,t){return Number.isNaN(e)&&Number.isNaN(t)?!0:Array.isArray(e)&&Array.isArray(t)?fs(e,t):typeof e=="object"&&typeof t=="object"?hs(e,t):Object.is(e,t)}function hs(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)||!Ir(e[o],t[o]))return!1;return!0}function bc(e,t){const n=[];for(let r=0;r<e.length;r+=t)n.push(e.slice(r,r+t));return n}function wc(e,t){return e>=0&&e<t.length}function xc(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 Sc(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 Ac(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 Oc(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 Rr(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 Rr(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 Bn(g,Math.max(p,0)).find(O=>O!==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=Bn(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 Bn(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const gs={afterMs:1e4,onChange:B};function kr(e,t){const{afterMs:n,onChange:r,getWindow:o}={...gs,...t};let s=null,i=T(Bt(e));function a(){return o().setTimeout(()=>{y(i,e,!0),r?.(e)},n)}return Z(()=>()=>{s&&o().clearTimeout(s)}),w(()=>l(i),c=>{y(i,c,!0),r?.(c),s&&o().clearTimeout(s),s=a()})}class ps{#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=kr("",{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=l(this.#r)(),o=n.find(c=>c===r)?.textContent?.trim()??"",s=n.map(c=>c.textContent?.trim()??""),i=Rr(s,this.#e.current,o),a=n.find(c=>c.textContent?.trim()===i);return a&&l(this.#n)(a),a}resetTypeahead(){this.#e.current=""}get search(){return this.#e.current}}class ms{#t;#e;#n;#r=T(null);constructor(t){this.#t=t,this.#e=x(()=>this.#t.enabled()),this.#n=kr(!1,{afterMs:t.transitTimeout??300,onChange:n=>{l(this.#e)&&this.#t.setIsPointerInTransit?.(n)},getWindow:()=>Qe(this.#t.triggerNode())}),H([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(V(n,"pointerleave",s),V(r,"pointerleave",i))}),H(()=>l(this.#r),()=>{const n=o=>{if(!l(this.#r))return;const s=o.target;if(!Ue(s))return;const i={x:o.clientX,y:o.clientY},a=t.triggerNode()?.contains(s)||t.contentNode()?.contains(s),c=!ws(i,l(this.#r));a?this.#o():c&&(this.#o(),t.onPointerExit())},r=se(t.triggerNode()??t.contentNode());if(r)return V(r,"pointermove",n)})}#o(){y(this.#r,null),this.#n.current=!1}#i(t,n){const r=t.currentTarget;if(!ht(r))return;const o={x:t.clientX,y:t.clientY},s=vs(o,r.getBoundingClientRect()),i=ys(o,s),a=bs(n.getBoundingClientRect()),c=xs([...i,...a]);y(this.#r,c,!0),this.#n.current=!0}}function vs(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 ys(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 bs(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 ws(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,u=t[i].x,h=t[i].y;c>r!=h>r&&n<(u-a)*(r-c)/(h-c)+a&&(o=!o)}return o}function xs(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),Ss(t)}function Ss(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 As="data-context-menu-trigger",Os="data-context-menu-content",Nr=new Pt("Menu.Root"),Vt=new Pt("Menu.Root | Menu.Sub"),ln=new Pt("Menu.Content"),Dr=new Hi("bitsmenuopen",{bubbles:!1,cancelable:!0}),Es=dr({component:"menu",parts:["trigger","content","sub-trigger","item","group","group-heading","checkbox-group","checkbox-item","radio-group","radio-item","separator","sub-content","arrow"]});class _r{static create(t){const n=new _r(t);return Nr.set(n)}opts;isUsingKeyboard=new bt;#t=T(!1);get ignoreCloseAutoFocus(){return l(this.#t)}set ignoreCloseAutoFocus(t){y(this.#t,t,!0)}#e=T(!1);get isPointerInTransit(){return l(this.#e)}set isPointerInTransit(t){y(this.#e,t,!0)}constructor(t){this.opts=t}getBitsAttr=t=>Es.getAttr(t,this.opts.variant.current)}class dn{static create(t,n){return Vt.set(new dn(t,n,null))}opts;root;parentMenu;contentId=w(()=>"");#t=T(null);get contentNode(){return l(this.#t)}set contentNode(t){y(this.#t,t,!0)}contentPresence;#e=T(null);get triggerNode(){return l(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 je({ref:w(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),r&&H(()=>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 Br{static create(t){return ln.set(new Br(t,Vt.get()))}opts;parentMenu;rovingFocusGroup;domContext;attachment;#t=T("");get search(){return l(this.#t)}set search(t){y(this.#t,t,!0)}#e=0;#n;#r=T(!1);get mounted(){return l(this.#r)}set mounted(t){y(this.#r,t,!0)}#o;constructor(t,n){this.opts=t,this.parentMenu=n,this.domContext=new $e(t.ref),this.attachment=Q(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 ms({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 ps({getActiveElement:()=>this.domContext.getActiveElement(),getWindow:()=>this.domContext.getWindow()}).handleTypeaheadSearch,this.rovingFocusGroup=new Ci({rootNode:w(()=>this.parentMenu.contentNode),candidateAttr:this.parentMenu.root.getBitsAttr("item"),loop:this.opts.loop,orientation:w(()=>"vertical")}),H(()=>this.parentMenu.contentNode,r=>{if(!r)return;const o=()=>{lt(()=>{this.parentMenu.root.isUsingKeyboard.current&&this.rovingFocusGroup.focusFirstCandidate()})};return Dr.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=>{this.opts.onCloseAutoFocus.current?.(t),!(t.defaultPrevented||this.#o)&&this.parentMenu.triggerNode&&un(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=ls(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===yi){this.handleTabKeyDown(t);return}const n=t.target,r=t.currentTarget;if(!ht(n)||!ht(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&&Gi.includes(t.key)&&(t.preventDefault(),wr.includes(t.key)&&c.reverse(),qi(c,{select:!1},()=>this.domContext.getActiveElement()))}onblur(t){Ue(t.currentTarget)&&Ue(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(!pr(t.target))return;const n=this.parentMenu.triggerNode?.id;if(t.target.id===n){t.preventDefault();return}t.target.closest(`#${n}`)&&t.preventDefault()}get shouldRender(){return this.parentMenu.contentPresence.shouldRender}#s=x(()=>({open:this.parentMenu.opts.open.current}));get snippetProps(){return l(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":Fe(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 l(this.#c)}set props(t){y(this.#c,t)}popperProps={onCloseAutoFocus:t=>this.onCloseAutoFocus(t)}}class Lr{opts;content;attachment;#t=T(!1);constructor(t,n){this.opts=t,this.content=n,this.attachment=Q(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&&me(t))if(this.opts.disabled.current)this.content.onItemLeave(t);else{if(this.content.onItemEnter())return;const r=t.currentTarget;if(!ht(r))return;r.focus()}}onpointerleave(t){t.defaultPrevented||me(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":tn(this.opts.disabled.current),"data-disabled":Kt(this.opts.disabled.current),"data-highlighted":l(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 l(this.#e)}set props(t){y(this.#e,t)}}class Wr{static create(t){const n=new Lr(t,ln.get());return new Wr(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===Ut)&&Ge.includes(t.key)){if(!ht(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(!ht(t.currentTarget))return;t.currentTarget?.click()}}onpointerdown(t){this.#t=!0}#n=x(()=>tt(this.item.props,{onclick:this.onclick,onpointerdown:this.onpointerdown,onpointerup:this.onpointerup,onkeydown:this.onkeydown}));get props(){return l(this.#n)}set props(t){y(this.#n,t)}}class Kr{static create(t){const n=ln.get(),r=new Lr(t,n),o=Vt.get();return new Kr(t,r,n,o)}opts;item;content;submenu;attachment;#t=null;constructor(t,n,r,o){this.opts=t,this.item=n,this.content=r,this.submenu=o,this.attachment=Q(this.opts.ref,s=>this.submenu.triggerNode=s),this.onpointerleave=this.onpointerleave.bind(this),this.onpointermove=this.onpointermove.bind(this),this.onkeydown=this.onkeydown.bind(this),this.onclick=this.onclick.bind(this),_t(()=>{this.#e()})}#e(){this.#t!==null&&(this.content.domContext.getWindow().clearTimeout(this.#t),this.#t=null)}onpointermove(t){me(t)&&!this.item.opts.disabled.current&&!this.submenu.opts.open.current&&!this.#t&&!this.content.parentMenu.root.isPointerInTransit&&(this.#t=this.content.domContext.setTimeout(()=>{this.submenu.onOpen(),this.#e()},this.opts.openDelay.current))}onpointerleave(t){me(t)&&this.#e()}onkeydown(t){const n=this.content.search!=="";this.item.opts.disabled.current||n&&t.key===Ut||Yi[this.submenu.root.opts.dir.current].includes(t.key)&&(t.currentTarget.click(),t.preventDefault())}onclick(t){if(this.item.opts.disabled.current||!ht(t.currentTarget))return;t.currentTarget.focus();const n=new CustomEvent("menusubtriggerselect",{bubbles:!0,cancelable:!0});this.opts.onSelect.current(n),this.submenu.opts.open.current||(this.submenu.onOpen(),lt(()=>{const r=this.submenu.contentNode;r&&Dr.dispatch(r)}))}#n=x(()=>tt({"aria-haspopup":"menu","aria-expanded":tn(this.submenu.opts.open.current),"data-state":Fe(this.submenu.opts.open.current),"aria-controls":this.submenu.opts.open.current?this.submenu.contentId.current:void 0,[this.submenu.root.getBitsAttr("sub-trigger")]:"",onclick:this.onclick,onpointermove:this.onpointermove,onpointerleave:this.onpointerleave,onkeydown:this.onkeydown,...this.attachment},this.item.props));get props(){return l(this.#n)}set props(t){y(this.#n,t)}}class Vr{static create(t){return new Vr(t,Nr.get())}opts;root;attachment;constructor(t,n){this.opts=t,this.root=n,this.attachment=Q(this.opts.ref)}#t=x(()=>({id:this.opts.id.current,role:"group",[this.root.getBitsAttr("separator")]:"",...this.attachment}));get props(){return l(this.#t)}set props(t){y(this.#t,t)}}class zr{static create(t){return new zr(t,Vt.get())}opts;parentMenu;attachment;constructor(t,n){this.opts=t,this.parentMenu=n,this.attachment=Q(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===Ut||t.key===Ie){this.parentMenu.toggleOpen(),t.preventDefault();return}t.key===ne&&(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":tn(this.parentMenu.opts.open.current),"aria-controls":l(this.#t),"data-disabled":Kt(this.opts.disabled.current),"data-state":Fe(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 l(this.#e)}set props(t){y(this.#e,t)}}class Ec{static create(t){const n=Vt.get();return Vt.set(new dn(t,n.root,n))}}globalThis.bitsDismissableLayers??=new Map;class fn{static create(t){return new fn(t)}opts;#t;#e;#n={pointerdown:!1};#r=!1;#o=!1;#i=void 0;#a;#s=B;constructor(t){this.opts=t,this.#e=t.interactOutsideBehavior,this.#t=t.onInteractOutside,this.#a=t.onFocusOutside,Z(()=>{this.#i=br(this.opts.ref.current)});let n=B;const r=()=>{this.#f(),globalThis.bitsDismissableLayers.delete(this),this.#d.destroy(),n()};H([()=>this.opts.enabled.current,()=>this.opts.ref.current],()=>{if(!(!this.opts.enabled.current||!this.opts.ref.current))return cr(1,()=>{this.opts.ref.current&&(globalThis.bitsDismissableLayers.set(this,this.#e),n(),n=this.#l())}),r}),_t(()=>{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)})};#l(){return Rt(V(this.#i,"pointerdown",Rt(this.#h,this.#p),{capture:!0}),V(this.#i,"pointerdown",Rt(this.#g,this.#d)),V(this.#i,"focusin",this.#c))}#u=t=>{let n=t;n.defaultPrevented&&(n=Ln(t)),this.#t.current(t)};#d=Dn(t=>{if(!this.opts.ref.current){this.#s();return}const n=this.opts.isValidEvent.current(t,this.opts.ref.current)||Ts(t,this.opts.ref.current);if(!this.#r||this.#v()||!n){this.#s();return}let r=t;if(r.defaultPrevented&&(r=Ln(r)),this.#e.current!=="close"&&this.#e.current!=="defer-otherwise-close"){this.#s();return}t.pointerType==="touch"?(this.#s(),this.#s=V(this.#i,"click",this.#u,{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=Ps(this.opts.ref.current))};#m=t=>this.opts.ref.current?yr(this.opts.ref.current,t):!1;#f=Dn(()=>{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 Cs(e=[...globalThis.bitsDismissableLayers]){return e.findLast(([t,{current:n}])=>n==="close"||n==="ignore")}function Ps(e){const t=[...globalThis.bitsDismissableLayers],n=Cs(t);if(n)return n[0].opts.ref.current===e;const[r]=t[0];return r.opts.ref.current===e}function Ts(e,t){const n=e.target;if(!pr(n))return!1;const r=!!n.closest(`[${As}]`);if("button"in e&&e.button>0&&!r)return!1;if("button"in e&&e.button===0&&r)return!0;const o=!!t.closest(`[${Os}]`);return r&&o?!1:br(n).documentElement.contains(n)&&!yr(t,n)&&Ui(e,t)}function Ln(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 Hr(e,t){k(t,!0);let n=v(t,"interactOutsideBehavior",3,"close"),r=v(t,"onInteractOutside",3,B),o=v(t,"onFocusOutside",3,B),s=v(t,"isValidEvent",3,()=>!1);const i=fn.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=M(),c=P(a);D(c,()=>t.children??L,()=>({props:i.props})),C(e,a),N()}globalThis.bitsEscapeLayers??=new Map;class hn{static create(t){return new hn(t)}opts;domContext;constructor(t){this.opts=t,this.domContext=new $e(this.opts.ref);let n=B;H(()=>t.enabled.current,r=>(r&&(globalThis.bitsEscapeLayers.set(this,t.escapeKeydownBehavior),n=this.#t()),()=>{n(),globalThis.bitsEscapeLayers.delete(this)}))}#t=()=>V(this.domContext.getDocument(),"keydown",this.#e,{passive:!1});#e=t=>{if(t.key!==pi||!Ms(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 Ms(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 Ur(e,t){k(t,!0);let n=v(t,"escapeKeydownBehavior",3,"close"),r=v(t,"onEscapeKeydown",3,B);hn.create({escapeKeydownBehavior:w(()=>n()),onEscapeKeydown:w(()=>r()),enabled:w(()=>t.enabled),ref:t.ref});var o=M(),s=P(o);D(s,()=>t.children??L),C(e,o),N()}class gn{static instance;#t=ut([]);#e=new WeakMap;#n=new WeakMap;static getInstance(){return this.instance||(this.instance=new gn),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 pn{#t=!1;#e=null;#n=gn.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.#u();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 u=this.#n.getFocusMemory(this);if(u&&t.contains(u)&&Fr(u))i.preventDefault(),u.focus();else{const h=this.#u(),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.#l();if(a.length===0)return;const c=a[0],u=a[a.length-1];!i.shiftKey&&n.activeElement===u?(i.preventDefault(),c.focus()):i.shiftKey&&n.activeElement===c&&(i.preventDefault(),u.focus())};this.#r.push(V(n,"focusin",r,{capture:!0}),V(t,"keydown",o));const s=new MutationObserver(()=>{const i=this.#n.getFocusMemory(this);if(i&&!t.contains(i)){const a=this.#u(),c=this.#d()[0],u=a||c;u?(u.focus(),this.#n.setFocusMemory(this,u)):t.focus()}});s.observe(t,{childList:!0,subtree:!0}),this.#r.push(()=>s.disconnect())}#l(){return this.#e?Tr(this.#e,{includeContainer:!1,getShadowRoot:!0}):[]}#u(){return this.#l()[0]||null}#d(){return this.#e?Mr(this.#e,{includeContainer:!1,getShadowRoot:!0}):[]}static use(t){let n=null;return H([()=>t.ref.current,()=>t.enabled.current],([r,o])=>{r&&o?(n||(n=new pn(t)),n.mount(r)):n&&(n.unmount(),n=null)}),_t(()=>{n?.unmount()}),{get props(){return{tabindex:-1}}}}}function jr(e,t){k(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,B),i=v(t,"onOpenAutoFocus",3,B);const a=pn.use({enabled:w(()=>n()),trap:w(()=>r()),loop:o(),onCloseAutoFocus:w(()=>s()),onOpenAutoFocus:w(()=>i()),ref:t.ref});var c=M(),u=P(c);D(u,()=>t.focusScope??L,()=>({props:a.props})),C(e,c),N()}globalThis.bitsTextSelectionLayers??=new Map;class mn{static create(t){return new mn(t)}opts;domContext;#t=B;constructor(t){this.opts=t,this.domContext=new $e(t.ref);let n=B;H(()=>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(V(this.domContext.getDocument(),"pointerdown",this.#n),V(this.domContext.getDocument(),"pointerup",rr(this.#r,this.opts.onPointerUp.current)))}#n=t=>{const n=this.opts.ref.current,r=t.target;!ht(n)||!ht(r)||!this.opts.enabled.current||!Is(this)||!fi(n,r)||(this.opts.onPointerDown.current(t),!t.defaultPrevented&&(this.#t=Fs(n,this.domContext.getDocument().body)))};#r=()=>{this.#t(),this.#t=B}}const Wn=e=>e.style.userSelect||e.style.webkitUserSelect;function Fs(e,t){const n=Wn(t),r=Wn(e);return le(t,"none"),le(e,"text"),()=>{le(t,n),le(e,r)}}function le(e,t){e.style.userSelect=t,e.style.webkitUserSelect=t}function Is(e){const t=[...globalThis.bitsTextSelectionLayers];if(!t.length)return!1;const n=t.at(-1);return n?n[0]===e:!1}function Gr(e,t){k(t,!0);let n=v(t,"preventOverflowTextSelection",3,!0),r=v(t,"onPointerDown",3,B),o=v(t,"onPointerUp",3,B);mn.create({id:w(()=>t.id),onPointerDown:w(()=>r()),onPointerUp:w(()=>o()),enabled:w(()=>t.enabled&&n()),ref:t.ref});var s=M(),i=P(s);D(i,()=>t.children??L),C(e,s),N()}globalThis.bitsIdCounter??={current:0};function vn(e="bits"){return globalThis.bitsIdCounter.current++,`${e}-${globalThis.bitsIdCounter.current}`}class Rs{#t;#e=0;#n=T();#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,l(this.#n)===void 0&&(this.#r=$n(()=>{y(this.#n,this.#t(...t),!0)})),Z(()=>()=>{this.#o()}),l(this.#n)}}const he=new Eo;let de=T(null),Le=null,Qt=null,$t=!1;const Kn=w(()=>{for(const e of he.values())if(e)return!0;return!1});let We=null;const ks=new Rs(()=>{function e(){document.body.setAttribute("style",l(de)??""),document.body.style.removeProperty("--scrollbar-width"),Nn&&Le?.(),y(de,null)}function t(){Qt!==null&&(window.clearTimeout(Qt),Qt=null)}function n(o,s){t(),$t=!0,We=Date.now();const i=We,a=()=>{Qt=null,We===i&&(Yr(he)?$t=!1:($t=!1,s()))},c=o===null?24:o;Qt=window.setTimeout(a,c)}function r(){l(de)===null&&he.size===0&&!$t&&y(de,document.body.getAttribute("style"),!0)}return H(()=>Kn.current,()=>{if(!Kn.current)return;r(),$t=!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,u={padding:Number.parseInt(s.paddingRight??"0",10)+a,margin:Number.parseInt(s.marginRight??"0",10)};a>0&&!i&&(document.body.style.paddingRight=`${u.padding}px`,document.body.style.marginRight=`${u.margin}px`,document.body.style.setProperty("--scrollbar-width",`${a}px`)),document.body.style.overflow="hidden",Nn&&(Le=V(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"})}),_t(()=>()=>{Le?.()}),{get lockMap(){return he},resetBodyStyle:e,scheduleCleanupIfNoNewLocks:n,cancelPendingCleanup:t,ensureInitialStyleCaptured:r}});class Ns{#t=vn();#e;#n=()=>null;#r;locked;constructor(t,n=()=>null){this.#e=t,this.#n=n,this.#r=ks.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)),_t(()=>{if(this.#r.lockMap.delete(this.#t),Yr(this.#r.lockMap))return;const r=this.#n();this.#r.scheduleCleanupIfNoNewLocks(r,()=>{this.#r.resetBodyStyle()})}))}}function Yr(e){for(const[t,n]of e)if(n)return!0;return!1}function Se(e,t){k(t,!0);let n=v(t,"preventScroll",3,!0),r=v(t,"restoreScrollDelay",3,null);n()&&new Ns(n(),()=>r()),N()}var Ds=ct("<!> <!>",1),_s=ct("<!> <div><!></div>",1);function Bs(e,t){const n=Ht();k(t,!0);let r=v(t,"id",19,()=>jt(n)),o=v(t,"ref",15,null),s=v(t,"forceMount",3,!1),i=v(t,"interactOutsideBehavior",3,"ignore"),a=v(t,"onCloseAutoFocus",3,B),c=v(t,"onEscapeKeydown",3,B),u=v(t,"onOpenAutoFocus",3,B),h=v(t,"onInteractOutside",3,B),d=v(t,"preventScroll",3,!0),m=v(t,"trapFocus",3,!0),f=v(t,"restoreScrollDelay",3,null),g=W(t,["$$slots","$$events","$$legacy","id","children","child","ref","forceMount","interactOutsideBehavior","onCloseAutoFocus","onEscapeKeydown","onOpenAutoFocus","onInteractOutside","preventScroll","trapFocus","restoreScrollDelay"]);const p=sn.create({id:w(()=>r()),ref:w(()=>o(),A=>o(A))}),b=x(()=>tt(g,p.props));var S=M(),O=P(S);{var E=A=>{jr(A,{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:F=>{u()(F),!F.defaultPrevented&&(F.preventDefault(),cr(0,()=>p.opts.ref.current?.focus()))},focusScope:(F,_)=>{let U=()=>_?.().props;Ur(F,J(()=>l(b),{get enabled(){return p.root.opts.open.current},get ref(){return p.opts.ref},onEscapeKeydown:R=>{c()(R),!R.defaultPrevented&&p.root.handleClose()},children:(R,K)=>{Hr(R,J(()=>l(b),{get ref(){return p.opts.ref},get enabled(){return p.root.opts.open.current},get interactOutsideBehavior(){return i()},onInteractOutside:j=>{h()(j),!j.defaultPrevented&&p.root.handleClose()},children:(j,G)=>{Gr(j,J(()=>l(b),{get ref(){return p.opts.ref},get enabled(){return p.root.opts.open.current},children:(ot,z)=>{var it=M(),$=P(it);{var Y=q=>{var Tt=Ds(),Xt=P(Tt);{var qt=Mt=>{Se(Mt,{get preventScroll(){return d()},get restoreScrollDelay(){return f()}})};nt(Xt,Mt=>{p.root.opts.open.current&&Mt(qt)})}var _e=ge(Xt,2);{let Mt=x(()=>({props:tt(l(b),U()),...p.snippetProps}));D(_e,()=>t.child,()=>l(Mt))}C(q,Tt)},X=q=>{var Tt=_s(),Xt=P(Tt);Se(Xt,{get preventScroll(){return d()}});var qt=ge(Xt,2);Ot(qt,Mt=>({...Mt}),[()=>tt(l(b),U())]);var _e=St(qt);D(_e,()=>t.children??L),At(qt),C(q,Tt)};nt($,q=>{t.child?q(Y):q(X,!1)})}C(ot,it)},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{focusScope:!0}})};nt(O,A=>{(p.shouldRender||s())&&A(E)})}C(e,S),N()}var Ls=ct("<div><!></div>");function Ws(e,t){const n=Ht();k(t,!0);let r=v(t,"id",19,()=>jt(n)),o=v(t,"forceMount",3,!1),s=v(t,"ref",15,null),i=W(t,["$$slots","$$events","$$legacy","id","forceMount","child","children","ref"]);const a=an.create({id:w(()=>r()),ref:w(()=>s(),m=>s(m))}),c=x(()=>tt(i,a.props));var u=M(),h=P(u);{var d=m=>{var f=M(),g=P(f);{var p=S=>{var O=M(),E=P(O);{let A=x(()=>({props:tt(l(c)),...a.snippetProps}));D(E,()=>t.child,()=>l(A))}C(S,O)},b=S=>{var O=Ls();Ot(O,A=>({...A}),[()=>tt(l(c))]);var E=St(O);D(E,()=>t.children??L,()=>a.snippetProps),At(O),C(S,O)};nt(g,S=>{t.child?S(p):S(b,!1)})}C(m,f)};nt(h,m=>{(a.shouldRender||o())&&m(d)})}C(e,u),N()}var Ks=ct("<div><!></div>");function Vs(e,t){const n=Ht();k(t,!0);let r=v(t,"id",19,()=>jt(n)),o=v(t,"ref",15,null),s=W(t,["$$slots","$$events","$$legacy","id","children","child","ref"]);const i=on.create({id:w(()=>r()),ref:w(()=>o(),m=>o(m))}),a=x(()=>tt(s,i.props));var c=M(),u=P(c);{var h=m=>{var f=M(),g=P(f);D(g,()=>t.child,()=>({props:l(a)})),C(m,f)},d=m=>{var f=Ks();Ot(f,()=>({...l(a)}));var g=St(f);D(g,()=>t.children??L),At(f),C(m,f)};nt(u,m=>{t.child?m(h):m(d,!1)})}C(e,c),N()}const zs=["top","right","bottom","left"],wt=Math.min,et=Math.max,Ae=Math.round,fe=Math.floor,ft=e=>({x:e,y:e}),Hs={left:"right",right:"left",bottom:"top",top:"bottom"},Us={start:"end",end:"start"};function Xe(e,t,n){return et(e,wt(t,n))}function vt(e,t){return typeof e=="function"?e(t):e}function yt(e){return e.split("-")[0]}function Gt(e){return e.split("-")[1]}function yn(e){return e==="x"?"y":"x"}function bn(e){return e==="y"?"height":"width"}const js=new Set(["top","bottom"]);function dt(e){return js.has(yt(e))?"y":"x"}function wn(e){return yn(dt(e))}function Gs(e,t,n){n===void 0&&(n=!1);const r=Gt(e),o=wn(e),s=bn(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=Oe(i)),[i,Oe(i)]}function Ys(e){const t=Oe(e);return[qe(e),t,qe(t)]}function qe(e){return e.replace(/start|end/g,t=>Us[t])}const Vn=["left","right"],zn=["right","left"],Xs=["top","bottom"],qs=["bottom","top"];function Zs(e,t,n){switch(e){case"top":case"bottom":return n?t?zn:Vn:t?Vn:zn;case"left":case"right":return t?Xs:qs;default:return[]}}function Js(e,t,n,r){const o=Gt(e);let s=Zs(yt(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(qe)))),s}function Oe(e){return e.replace(/left|right|bottom|top/g,t=>Hs[t])}function Qs(e){return{top:0,right:0,bottom:0,left:0,...e}}function Xr(e){return typeof e!="number"?Qs(e):{top:e,right:e,bottom:e,left:e}}function Ee(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 Hn(e,t,n){let{reference:r,floating:o}=e;const s=dt(t),i=wn(t),a=bn(i),c=yt(t),u=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(Gt(t)){case"start":f[i]-=m*(n&&u?-1:1);break;case"end":f[i]+=m*(n&&u?-1:1);break}return f}async function $s(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:i,elements:a,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:h="viewport",elementContext:d="floating",altBoundary:m=!1,padding:f=0}=vt(t,e),g=Xr(f),b=a[m?d==="floating"?"reference":"floating":d],S=Ee(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:u,rootBoundary:h,strategy:c})),O=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)),A=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=Ee(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:O,offsetParent:E,strategy:c}):O);return{top:(S.top-I.top+g.top)/A.y,bottom:(I.bottom-S.bottom+g.bottom)/A.y,left:(S.left-I.left+g.left)/A.x,right:(I.right-S.right+g.right)/A.x}}const ta=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 u=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:h,y:d}=Hn(u,r,c),m=r,f={},g=0;for(let b=0;b<a.length;b++){var p;const{name:S,fn:O}=a[b],{x:E,y:A,data:I,reset:F}=await O({x:h,y:d,initialPlacement:r,placement:m,strategy:o,middlewareData:f,rects:u,platform:{...i,detectOverflow:(p=i.detectOverflow)!=null?p:$s},elements:{reference:e,floating:t}});h=E??h,d=A??d,f={...f,[S]:{...f[S],...I}},F&&g<=50&&(g++,typeof F=="object"&&(F.placement&&(m=F.placement),F.rects&&(u=F.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):F.rects),{x:h,y:d}=Hn(u,m,c)),b=-1)}return{x:h,y:d,placement:m,strategy:o,middlewareData:f}},ea=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:u,padding:h=0}=vt(e,t)||{};if(u==null)return{};const d=Xr(h),m={x:n,y:r},f=wn(o),g=bn(f),p=await i.getDimensions(u),b=f==="y",S=b?"top":"left",O=b?"bottom":"right",E=b?"clientHeight":"clientWidth",A=s.reference[g]+s.reference[f]-m[f]-s.floating[g],I=m[f]-s.reference[f],F=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let _=F?F[E]:0;(!_||!await(i.isElement==null?void 0:i.isElement(F)))&&(_=a.floating[E]||s.floating[g]);const U=A/2-I/2,R=_/2-p[g]/2-1,K=wt(d[S],R),j=wt(d[O],R),G=K,ot=_-p[g]-j,z=_/2-p[g]/2+U,it=Xe(G,z,ot),$=!c.arrow&&Gt(o)!=null&&z!==it&&s.reference[g]/2-(z<G?K:j)-p[g]/2<0,Y=$?z<G?z-G:z-ot:0;return{[f]:m[f]+Y,data:{[f]:it,centerOffset:z-it-Y,...$&&{alignmentOffset:Y}},reset:$}}}),na=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:u}=t,{mainAxis:h=!0,crossAxis:d=!0,fallbackPlacements:m,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:p=!0,...b}=vt(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const S=yt(o),O=dt(a),E=yt(a)===a,A=await(c.isRTL==null?void 0:c.isRTL(u.floating)),I=m||(E||!p?[Oe(a)]:Ys(a)),F=g!=="none";!m&&F&&I.push(...Js(a,p,g,A));const _=[a,...I],U=await c.detectOverflow(t,b),R=[];let K=((r=s.flip)==null?void 0:r.overflows)||[];if(h&&R.push(U[S]),d){const z=Gs(o,i,A);R.push(U[z[0]],U[z[1]])}if(K=[...K,{placement:o,overflows:R}],!R.every(z=>z<=0)){var j,G;const z=(((j=s.flip)==null?void 0:j.index)||0)+1,it=_[z];if(it&&(!(d==="alignment"?O!==dt(it):!1)||K.every(X=>dt(X.placement)===O?X.overflows[0]>0:!0)))return{data:{index:z,overflows:K},reset:{placement:it}};let $=(G=K.filter(Y=>Y.overflows[0]<=0).sort((Y,X)=>Y.overflows[1]-X.overflows[1])[0])==null?void 0:G.placement;if(!$)switch(f){case"bestFit":{var ot;const Y=(ot=K.filter(X=>{if(F){const q=dt(X.placement);return q===O||q==="y"}return!0}).map(X=>[X.placement,X.overflows.filter(q=>q>0).reduce((q,Tt)=>q+Tt,0)]).sort((X,q)=>X[1]-q[1])[0])==null?void 0:ot[0];Y&&($=Y);break}case"initialPlacement":$=a;break}if(o!==$)return{reset:{placement:$}}}return{}}}};function Un(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function jn(e){return zs.some(t=>e[t]>=0)}const ra=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...s}=vt(e,t);switch(o){case"referenceHidden":{const i=await r.detectOverflow(t,{...s,elementContext:"reference"}),a=Un(i,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:jn(a)}}}case"escaped":{const i=await r.detectOverflow(t,{...s,altBoundary:!0}),a=Un(i,n.floating);return{data:{escapedOffsets:a,escaped:jn(a)}}}default:return{}}}}},qr=new Set(["left","top"]);async function oa(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=yt(n),a=Gt(n),c=dt(n)==="y",u=qr.has(i)?-1:1,h=s&&c?-1:1,d=vt(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*u}:{x:m*u,y:f*h}}const ia=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 oa(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}}}}},sa=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:O,y:E}=S;return{x:O,y:E}}},...u}=vt(e,t),h={x:n,y:r},d=await s.detectOverflow(t,u),m=dt(yt(o)),f=yn(m);let g=h[f],p=h[m];if(i){const S=f==="y"?"top":"left",O=f==="y"?"bottom":"right",E=g+d[S],A=g-d[O];g=Xe(E,g,A)}if(a){const S=m==="y"?"top":"left",O=m==="y"?"bottom":"right",E=p+d[S],A=p-d[O];p=Xe(E,p,A)}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}}}}}},aa=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:u=!0}=vt(e,t),h={x:n,y:r},d=dt(o),m=yn(d);let f=h[m],g=h[d];const p=vt(a,t),b=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(c){const E=m==="y"?"height":"width",A=s.reference[m]-s.floating[E]+b.mainAxis,I=s.reference[m]+s.reference[E]-b.mainAxis;f<A?f=A:f>I&&(f=I)}if(u){var S,O;const E=m==="y"?"width":"height",A=qr.has(yt(o)),I=s.reference[d]-s.floating[E]+(A&&((S=i.offset)==null?void 0:S[d])||0)+(A?0:b.crossAxis),F=s.reference[d]+s.reference[E]+(A?0:((O=i.offset)==null?void 0:O[d])||0)-(A?b.crossAxis:0);g<I?g=I:g>F&&(g=F)}return{[m]:f,[d]:g}}}},ca=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=()=>{},...u}=vt(e,t),h=await i.detectOverflow(t,u),d=yt(o),m=Gt(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 O=p-h.top-h.bottom,E=g-h.left-h.right,A=wt(p-h[b],O),I=wt(g-h[S],E),F=!t.middlewareData.shift;let _=A,U=I;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(U=E),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(_=O),F&&!m){const K=et(h.left,0),j=et(h.right,0),G=et(h.top,0),ot=et(h.bottom,0);f?U=g-2*(K!==0||j!==0?K+j:et(h.left,h.right)):_=p-2*(G!==0||ot!==0?G+ot:et(h.top,h.bottom))}await c({...t,availableWidth:U,availableHeight:_});const R=await i.getDimensions(a.floating);return g!==R.width||p!==R.height?{reset:{rects:!0}}:{}}}};function Re(){return typeof window<"u"}function Yt(e){return Zr(e)?(e.nodeName||"").toLowerCase():"#document"}function rt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function pt(e){var t;return(t=(Zr(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Zr(e){return Re()?e instanceof Node||e instanceof rt(e).Node:!1}function st(e){return Re()?e instanceof Element||e instanceof rt(e).Element:!1}function gt(e){return Re()?e instanceof HTMLElement||e instanceof rt(e).HTMLElement:!1}function Gn(e){return!Re()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof rt(e).ShadowRoot}const ua=new Set(["inline","contents"]);function ue(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=at(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!ua.has(o)}const la=new Set(["table","td","th"]);function da(e){return la.has(Yt(e))}const fa=[":popover-open",":modal"];function ke(e){return fa.some(t=>{try{return e.matches(t)}catch{return!1}})}const ha=["transform","translate","scale","rotate","perspective"],ga=["transform","translate","scale","rotate","perspective","filter"],pa=["paint","layout","strict","content"];function xn(e){const t=Sn(),n=st(e)?at(e):e;return ha.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)||ga.some(r=>(n.willChange||"").includes(r))||pa.some(r=>(n.contain||"").includes(r))}function ma(e){let t=xt(e);for(;gt(t)&&!zt(t);){if(xn(t))return t;if(ke(t))return null;t=xt(t)}return null}function Sn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const va=new Set(["html","body","#document"]);function zt(e){return va.has(Yt(e))}function at(e){return rt(e).getComputedStyle(e)}function Ne(e){return st(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function xt(e){if(Yt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Gn(e)&&e.host||pt(e);return Gn(t)?t.host:t}function Jr(e){const t=xt(e);return zt(t)?e.ownerDocument?e.ownerDocument.body:e.body:gt(t)&&ue(t)?t:Jr(t)}function re(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Jr(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=rt(o);if(s){const a=Ze(i);return t.concat(i,i.visualViewport||[],ue(o)?o:[],a&&n?re(a):[])}return t.concat(o,re(o,[],n))}function Ze(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Qr(e){const t=at(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=gt(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,a=Ae(n)!==s||Ae(r)!==i;return a&&(n=s,r=i),{width:n,height:r,$:a}}function An(e){return st(e)?e:e.contextElement}function Lt(e){const t=An(e);if(!gt(t))return ft(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=Qr(t);let i=(s?Ae(n.width):n.width)/r,a=(s?Ae(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const ya=ft(0);function $r(e){const t=rt(e);return!Sn()||!t.visualViewport?ya:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ba(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==rt(e)?!1:t}function Nt(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=An(e);let i=ft(1);t&&(r?st(r)&&(i=Lt(r)):i=Lt(e));const a=ba(s,n,r)?$r(s):ft(0);let c=(o.left+a.x)/i.x,u=(o.top+a.y)/i.y,h=o.width/i.x,d=o.height/i.y;if(s){const m=rt(s),f=r&&st(r)?rt(r):r;let g=m,p=Ze(g);for(;p&&r&&f!==g;){const b=Lt(p),S=p.getBoundingClientRect(),O=at(p),E=S.left+(p.clientLeft+parseFloat(O.paddingLeft))*b.x,A=S.top+(p.clientTop+parseFloat(O.paddingTop))*b.y;c*=b.x,u*=b.y,h*=b.x,d*=b.y,c+=E,u+=A,g=rt(p),p=Ze(g)}}return Ee({width:h,height:d,x:c,y:u})}function De(e,t){const n=Ne(e).scrollLeft;return t?t.left+n:Nt(pt(e)).left+n}function to(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-De(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function wa(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=pt(r),a=t?ke(t.floating):!1;if(r===i||a&&s)return n;let c={scrollLeft:0,scrollTop:0},u=ft(1);const h=ft(0),d=gt(r);if((d||!d&&!s)&&((Yt(r)!=="body"||ue(i))&&(c=Ne(r)),gt(r))){const f=Nt(r);u=Lt(r),h.x=f.x+r.clientLeft,h.y=f.y+r.clientTop}const m=i&&!d&&!s?to(i,c):ft(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+h.x+m.x,y:n.y*u.y-c.scrollTop*u.y+h.y+m.y}}function xa(e){return Array.from(e.getClientRects())}function Sa(e){const t=pt(e),n=Ne(e),r=e.ownerDocument.body,o=et(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=et(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+De(e);const a=-n.scrollTop;return at(r).direction==="rtl"&&(i+=et(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:a}}const Yn=25;function Aa(e,t){const n=rt(e),r=pt(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=Sn();(!h||h&&t==="fixed")&&(a=o.offsetLeft,c=o.offsetTop)}const u=De(r);if(u<=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<=Yn&&(s-=g)}else u<=Yn&&(s+=u);return{width:s,height:i,x:a,y:c}}const Oa=new Set(["absolute","fixed"]);function Ea(e,t){const n=Nt(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=gt(e)?Lt(e):ft(1),i=e.clientWidth*s.x,a=e.clientHeight*s.y,c=o*s.x,u=r*s.y;return{width:i,height:a,x:c,y:u}}function Xn(e,t,n){let r;if(t==="viewport")r=Aa(e,n);else if(t==="document")r=Sa(pt(e));else if(st(t))r=Ea(t,n);else{const o=$r(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Ee(r)}function eo(e,t){const n=xt(e);return n===t||!st(n)||zt(n)?!1:at(n).position==="fixed"||eo(n,t)}function Ca(e,t){const n=t.get(e);if(n)return n;let r=re(e,[],!1).filter(a=>st(a)&&Yt(a)!=="body"),o=null;const s=at(e).position==="fixed";let i=s?xt(e):e;for(;st(i)&&!zt(i);){const a=at(i),c=xn(i);!c&&a.position==="fixed"&&(o=null),(s?!c&&!o:!c&&a.position==="static"&&!!o&&Oa.has(o.position)||ue(i)&&!c&&eo(e,i))?r=r.filter(h=>h!==i):o=a,i=xt(i)}return t.set(e,r),r}function Pa(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?ke(t)?[]:Ca(t,this._c):[].concat(n),r],a=i[0],c=i.reduce((u,h)=>{const d=Xn(t,h,o);return u.top=et(d.top,u.top),u.right=wt(d.right,u.right),u.bottom=wt(d.bottom,u.bottom),u.left=et(d.left,u.left),u},Xn(t,a,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Ta(e){const{width:t,height:n}=Qr(e);return{width:t,height:n}}function Ma(e,t,n){const r=gt(t),o=pt(t),s=n==="fixed",i=Nt(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const c=ft(0);function u(){c.x=De(o)}if(r||!r&&!s)if((Yt(t)!=="body"||ue(o))&&(a=Ne(t)),r){const f=Nt(t,!0,s,t);c.x=f.x+t.clientLeft,c.y=f.y+t.clientTop}else o&&u();s&&!r&&o&&u();const h=o&&!r&&!s?to(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 Ke(e){return at(e).position==="static"}function qn(e,t){if(!gt(e)||at(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return pt(e)===n&&(n=n.ownerDocument.body),n}function no(e,t){const n=rt(e);if(ke(e))return n;if(!gt(e)){let o=xt(e);for(;o&&!zt(o);){if(st(o)&&!Ke(o))return o;o=xt(o)}return n}let r=qn(e,t);for(;r&&da(r)&&Ke(r);)r=qn(r,t);return r&&zt(r)&&Ke(r)&&!xn(r)?n:r||ma(e)||n}const Fa=async function(e){const t=this.getOffsetParent||no,n=this.getDimensions,r=await n(e.floating);return{reference:Ma(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Ia(e){return at(e).direction==="rtl"}const Ra={convertOffsetParentRelativeRectToViewportRelativeRect:wa,getDocumentElement:pt,getClippingRect:Pa,getOffsetParent:no,getElementRects:Fa,getClientRects:xa,getDimensions:Ta,getScale:Lt,isElement:st,isRTL:Ia};function ro(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ka(e,t){let n=null,r;const o=pt(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 u=e.getBoundingClientRect(),{left:h,top:d,width:m,height:f}=u;if(a||t(),!m||!f)return;const g=fe(d),p=fe(o.clientWidth-(h+m)),b=fe(o.clientHeight-(d+f)),S=fe(h),E={rootMargin:-g+"px "+-p+"px "+-b+"px "+-S+"px",threshold:et(0,wt(1,c))||1};let A=!0;function I(F){const _=F[0].intersectionRatio;if(_!==c){if(!A)return i();_?i(!1,_):r=setTimeout(()=>{i(!1,1e-7)},1e3)}_===1&&!ro(u,e.getBoundingClientRect())&&i(),A=!1}try{n=new IntersectionObserver(I,{...E,root:o.ownerDocument})}catch{n=new IntersectionObserver(I,E)}n.observe(e)}return i(!0),s}function Na(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,u=An(e),h=o||s?[...u?re(u):[],...re(t)]:[];h.forEach(S=>{o&&S.addEventListener("scroll",n,{passive:!0}),s&&S.addEventListener("resize",n)});const d=u&&a?ka(u,n):null;let m=-1,f=null;i&&(f=new ResizeObserver(S=>{let[O]=S;O&&O.target===u&&f&&(f.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var E;(E=f)==null||E.observe(t)})),n()}),u&&!c&&f.observe(u),f.observe(t));let g,p=c?Nt(e):null;c&&b();function b(){const S=Nt(e);p&&!ro(p,S)&&n(),p=S,g=requestAnimationFrame(b)}return n(),()=>{var S;h.forEach(O=>{o&&O.removeEventListener("scroll",n),s&&O.removeEventListener("resize",n)}),d?.(),(S=f)==null||S.disconnect(),f=null,c&&cancelAnimationFrame(g)}}const Da=ia,_a=sa,Ba=na,La=ca,Wa=ra,Ka=ea,Va=aa,za=(e,t,n)=>{const r=new Map,o={platform:Ra,...n},s={...o.platform,_c:r};return ta(e,t,{...o,platform:s})};function Ft(e){return typeof e=="function"?e():e}function oo(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Zn(e,t){const n=oo(e);return Math.round(t*n)/n}function Cc(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 Ha(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),u=e.reference;let h=T(0),d=T(0);const m=ut(null);let f=T(Bt(l(i))),g=T(Bt(l(s))),p=T(Bt({})),b=T(!1),S=!1;const O=x(()=>{const R=m.current?Zn(m.current,l(h)):l(h),K=m.current?Zn(m.current,l(d)):l(d);return l(o)?{position:l(f),left:"0",top:"0",transform:`translate(${R}px, ${K}px)`,...m.current&&oo(m.current)>=1.5&&{willChange:"transform"}}:{position:l(f),left:`${R}px`,top:`${K}px`}});let E;function A(){u.current===null||m.current===null||za(u.current,m.current,{middleware:l(r),placement:l(s),strategy:l(i)}).then(R=>{const K=u.current;if(Ua(K)){y(p,{...l(p),hide:{...l(p).hide,referenceHidden:!0}},!0);return}if(!l(n)&&l(h)!==0&&l(d)!==0){const G=Math.max(Math.abs(l(a)),Math.abs(l(c)),15);if(R.x<=G&&R.y<=G)return}y(h,R.x,!0),y(d,R.y,!0),y(f,R.strategy,!0),y(g,R.placement,!0),y(p,R.middlewareData,!0),y(b,!0)})}function I(){typeof E=="function"&&(E(),E=void 0)}function F(){if(I(),t===void 0){A();return}l(n)&&(u.current===null||m.current===null||(E=t(u.current,m.current,A)))}function _(){l(n)||y(b,!1)}function U(){return[l(r),l(s),l(i),l(a),l(c),l(n)]}return Z(()=>{t===void 0&&l(n)&&A()}),Z(F),Z(()=>{if(t!==void 0){if(U(),!l(n)){S=!1;return}if(!l(b)){S=!1;return}if(!S){S=!0;return}A()}}),Z(_),Z(()=>I),{floating:m,reference:u,get strategy(){return l(f)},get placement(){return l(g)},get middlewareData(){return l(p)},get isPositioned(){return l(b)},get floatingStyles(){return l(O)},get update(){return A}}}function Ua(e){return e instanceof Element?!e.isConnected||e instanceof HTMLElement&&e.hidden?!0:e.getClientRects().length===0:!1}const ja={top:"bottom",right:"left",bottom:"top",left:"right"},On=new Pt("Floating.Root"),Jn=new Pt("Floating.Content"),En=new Pt("Floating.Root");class Ce{static create(t=!1){return t?En.set(new Ce):On.set(new Ce)}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 Pe{static create(t,n=!1){return n?Jn.set(new Pe(t,En.get())):Jn.set(new Pe(t,On.get()))}opts;root;contentRef=ut(null);wrapperRef=ut(null);arrowRef=ut(null);contentAttachment=Q(this.contentRef);wrapperAttachment=Q(this.wrapperRef);arrowAttachment=Q(this.arrowRef);arrowId=ut(vn());#t=x(()=>{if(typeof this.opts.style=="string")return te(this.opts.style);if(!this.opts.style)return{}});#e=void 0;#n=new si(()=>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(()=>l(this.#a).length>0);get hasExplicitBoundaries(){return l(this.#s)}set hasExplicitBoundaries(t){y(this.#s,t)}#c=x(()=>({padding:this.opts.collisionPadding.current,boundary:l(this.#a).filter(Oi),altBoundary:this.hasExplicitBoundaries}));get detectOverflowOptions(){return l(this.#c)}set detectOverflowOptions(t){y(this.#c,t)}#l=T(void 0);#u=T(void 0);#d=T(void 0);#h=T(void 0);#g=x(()=>[Da({mainAxis:this.opts.sideOffset.current+l(this.#o),alignmentAxis:this.opts.alignOffset.current}),this.opts.avoidCollisions.current&&_a({mainAxis:!0,crossAxis:!1,limiter:this.opts.sticky.current==="partial"?Va():void 0,...this.detectOverflowOptions}),this.opts.avoidCollisions.current&&Ba({...this.detectOverflowOptions}),La({...this.detectOverflowOptions,apply:({rects:t,availableWidth:n,availableHeight:r})=>{const{width:o,height:s}=t.reference;y(this.#l,n,!0),y(this.#u,r,!0),y(this.#d,o,!0),y(this.#h,s,!0)}}),this.arrowRef.current&&Ka({element:this.arrowRef.current,padding:this.opts.arrowPadding.current}),Ga({arrowWidth:l(this.#r),arrowHeight:l(this.#o)}),this.opts.hideWhenDetached.current&&Wa({strategy:"referenceHidden",...this.detectOverflowOptions})].filter(Boolean));get middleware(){return l(this.#g)}set middleware(t){y(this.#g,t)}floating;#p=x(()=>Ya(this.floating.placement));get placedSide(){return l(this.#p)}set placedSide(t){y(this.#p,t)}#m=x(()=>Xa(this.floating.placement));get placedAlign(){return l(this.#m)}set placedAlign(t){y(this.#m,t)}#f=x(()=>this.floating.middlewareData.arrow?.x??0);get arrowX(){return l(this.#f)}set arrowX(t){y(this.#f,t)}#v=x(()=>this.floating.middlewareData.arrow?.y??0);get arrowY(){return l(this.#v)}set arrowY(t){y(this.#v,t)}#y=x(()=>this.floating.middlewareData.arrow?.centerOffset!==0);get cannotCenterArrow(){return l(this.#y)}set cannotCenterArrow(t){y(this.#y,t)}#b=T();get contentZIndex(){return l(this.#b)}set contentZIndex(t){y(this.#b,t,!0)}#w=x(()=>ja[this.placedSide]);get arrowBaseSide(){return l(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":`${l(this.#l)}px`,"--bits-floating-available-height":`${l(this.#u)}px`,"--bits-floating-anchor-width":`${l(this.#d)}px`,"--bits-floating-anchor-height":`${l(this.#h)}px`,...this.floating.middlewareData.hide?.referenceHidden&&{visibility:"hidden","pointer-events":"none"},...l(this.#t)},dir:this.opts.dir.current,...this.wrapperAttachment}));get wrapperProps(){return l(this.#x)}set wrapperProps(t){y(this.#x,t)}#S=x(()=>({"data-side":this.placedSide,"data-align":this.placedAlign,style:ir({...l(this.#t)}),...this.contentAttachment}));get props(){return l(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 l(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),H(()=>t.customAnchor.current,r=>{this.root.customAnchorNode.current=r}),this.floating=Ha({strategy:()=>this.opts.strategy.current,placement:()=>l(this.#i),middleware:()=>this.middleware,reference:this.root.anchorNode,whileElementsMounted:(...r)=>Na(...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()}),H(()=>this.contentRef.current,r=>{if(!r||!this.opts.enabled.current)return;const o=Qe(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 Te{static create(t,n=!1){return n?new Te(t,En.get()):new Te(t,On.get())}opts;root;constructor(t,n){this.opts=t,this.root=n,t.virtualEl&&t.virtualEl.current?n.triggerNode=nr(t.virtualEl.current):n.triggerNode=t.ref}}function Ga(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,[u,h]=Cn(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 u==="bottom"?(g=i?d:`${m}px`,p=`${-c}px`):u==="top"?(g=i?d:`${m}px`,p=`${r.floating.height+c}px`):u==="right"?(g=`${-c}px`,p=i?d:`${f}px`):u==="left"&&(g=`${r.floating.width+c}px`,p=i?d:`${f}px`),{data:{x:g,y:p}}}}}function Cn(e){const[t,n="center"]=e.split("-");return[t,n]}function Ya(e){return Cn(e)[0]}function Xa(e){return Cn(e)[1]}function Pc(e,t){k(t,!0);let n=v(t,"tooltip",3,!1);Ce.create(n());var r=M(),o=P(r);D(o,()=>t.children??L),C(e,r),N()}function Tc(e,t){k(t,!0);let n=v(t,"tooltip",3,!1);Te.create({id:w(()=>t.id),virtualEl:w(()=>t.virtualEl),ref:t.ref},n());var r=M(),o=P(r);D(o,()=>t.children??L),C(e,r),N()}function qa(e,t){k(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,()=>[]),u=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,vn),O=v(t,"customAnchor",3,null),E=v(t,"tooltip",3,!1);const A=Pe.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(()=>u()),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(()=>O())},E()),I=x(()=>tt(A.wrapperProps,{style:{pointerEvents:"auto"}}));var F=M(),_=P(F);D(_,()=>t.content??L,()=>({props:A.props,wrapperProps:l(I)})),C(e,F),N()}function Za(e,t){k(t,!0),wo(()=>{t.onPlaced?.()});var n=M(),r=P(n);D(r,()=>t.content??L,()=>({props:{},wrapperProps:{}})),C(e,n),N()}function Ja(e,t){let n=v(t,"isStatic",3,!1),r=W(t,["$$slots","$$events","$$legacy","content","isStatic","onPlaced"]);var o=M(),s=P(o);{var i=c=>{Za(c,{get content(){return t.content},get onPlaced(){return t.onPlaced}})},a=c=>{qa(c,J({get content(){return t.content},get onPlaced(){return t.onPlaced}},()=>r))};nt(s,c=>{n()?c(i):c(a,!1)})}C(e,o)}var Qa=ct("<!> <!>",1);function io(e,t){k(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"),u=W(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"]);Ja(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 t.strategy},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:(d,m)=>{let f=()=>m?.().props,g=()=>m?.().wrapperProps;var p=Qa(),b=P(p);{var S=A=>{Se(A,{get preventScroll(){return t.preventScroll}})},O=A=>{Se(A,{get preventScroll(){return t.preventScroll}})};nt(b,A=>{t.forceMount&&t.enabled?A(S):t.forceMount||A(O,1)})}var E=ge(b,2);jr(E,{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:(I,F)=>{let _=()=>F?.().props;Ur(I,{get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get enabled(){return t.enabled},get ref(){return t.ref},children:(U,R)=>{Hr(U,{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:(j,G)=>{let ot=()=>G?.().props;Gr(j,{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:(z,it)=>{var $=M(),Y=P($);{let X=x(()=>({props:tt(u,f(),ot(),_(),{style:{pointerEvents:c()}}),wrapperProps:g()}));D(Y,()=>t.popper??L,()=>l(X))}C(z,$)},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{focusScope:!0}}),C(d,p)},$$slots:{content:!0}}),N()}function Mc(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=W(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=M(),u=P(c);{var h=d=>{io(d,J({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))};nt(u,d=>{t.shouldRender&&d(h)})}C(e,c)}function Fc(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=W(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"]);io(e,J({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 Ic(e,t){k(t,!0);let n=v(t,"open",15,!1),r=W(t,["$$slots","$$events","$$legacy","open"]);var o=M(),s=P(o);Et(s,()=>Mi,(i,a)=>{a(i,J(()=>r,{get open(){return n()},set open(c){n(c)}}))}),C(e,o),N()}function $a(e,t){let n=W(t,["$$slots","$$events","$$legacy"]);var r=M(),o=P(r);Et(o,()=>zi,(s,i)=>{i(s,J(()=>n))}),C(e,r)}function Rc(e,t){k(t,!0);let n=v(t,"ref",15,null),r=W(t,["$$slots","$$events","$$legacy","ref","class"]);var o=M(),s=P(o);{let i=x(()=>Ct("text-lg font-semibold",t.class));Et(s,()=>Ii,(a,c)=>{c(a,J({"data-slot":"alert-dialog-title",get class(){return l(i)}},()=>r,{get ref(){return n()},set ref(u){n(u)}}))})}C(e,o),N()}function kc(e,t){k(t,!0);let n=v(t,"ref",15,null),r=W(t,["$$slots","$$events","$$legacy","ref","class"]);var o=M(),s=P(o);{let i=x(()=>t.class||Ct(er()));Et(s,()=>ki,(a,c)=>{c(a,J({"data-slot":"alert-dialog-action",get class(){return l(i)}},()=>r,{get ref(){return n()},set ref(u){n(u)}}))})}C(e,o),N()}function Nc(e,t){k(t,!0);let n=v(t,"ref",15,null),r=W(t,["$$slots","$$events","$$legacy","ref","class"]);var o=M(),s=P(o);{let i=x(()=>t.class||Ct(er({variant:"ghost"})));Et(s,()=>Di,(a,c)=>{c(a,J({"data-slot":"alert-dialog-cancel",get class(){return l(i)}},()=>r,{get ref(){return n()},set ref(u){n(u)}}))})}C(e,o),N()}var tc=ct("<div><!></div>");function Dc(e,t){k(t,!0);let n=v(t,"ref",15,null),r=W(t,["$$slots","$$events","$$legacy","ref","class","children"]);var o=tc();Ot(o,i=>({"data-slot":"alert-dialog-footer",class:i,...r}),[()=>Ct("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",t.class)]);var s=St(o);D(s,()=>t.children??L),At(o),tr(o,i=>n(i),()=>n()),C(e,o),N()}var ec=ct("<div><!></div>");function _c(e,t){k(t,!0);let n=v(t,"ref",15,null),r=W(t,["$$slots","$$events","$$legacy","ref","class","children"]);var o=ec();Ot(o,i=>({"data-slot":"alert-dialog-header",class:i,...r}),[()=>Ct("flex flex-col gap-2 text-center sm:text-start",t.class)]);var s=St(o);D(s,()=>t.children??L),At(o),tr(o,i=>n(i),()=>n()),C(e,o),N()}function nc(e,t){k(t,!0);let n=v(t,"ref",15,null),r=W(t,["$$slots","$$events","$$legacy","ref","class"]);var o=M(),s=P(o);{let i=x(()=>Ct("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,()=>Ws,(a,c)=>{c(a,J({"data-slot":"alert-dialog-overlay",get class(){return l(i)}},()=>r,{get ref(){return n()},set ref(u){n(u)}}))})}C(e,o),N()}var rc=ct("<!> <!>",1);function Bc(e,t){k(t,!0);let n=v(t,"ref",15,null),r=W(t,["$$slots","$$events","$$legacy","ref","class","portalProps"]);$a(e,J(()=>t.portalProps,{children:(o,s)=>{var i=rc(),a=P(i);nc(a,{});var c=ge(a,2);{let u=x(()=>Ct("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,()=>Bs,(h,d)=>{d(h,J({"data-slot":"alert-dialog-content",get class(){return l(u)}},()=>r,{get ref(){return n()},set ref(m){n(m)}}))})}C(o,i)},$$slots:{default:!0}})),N()}function Lc(e,t){k(t,!0);let n=v(t,"ref",15,null),r=W(t,["$$slots","$$events","$$legacy","ref","class"]);var o=M(),s=P(o);{let i=x(()=>Ct("text-[var(--color-text-secondary)] text-sm",t.class));Et(s,()=>Vs,(a,c)=>{c(a,J({"data-slot":"alert-dialog-description",get class(){return l(i)}},()=>r,{get ref(){return n()},set ref(u){n(u)}}))})}C(e,o),N()}export{Ws as $,Bc as A,kc as B,Pt as C,$e as D,Ie as E,Tc as F,Ic as G,Wr as H,Vr as I,Br as J,Dr as K,yc as L,Ec as M,Kr as N,_r as O,je as P,dn as Q,zr as R,Ut as S,zi as T,en as U,sn as V,jr as W,Ur as X,Hr as Y,Gr as Z,Se as _,Q as a,Ii as a0,ir as a1,kr as a2,Rr as a3,ps as a4,pe as a5,ne as a6,yi as a7,vi as a8,hr as a9,mi as aa,fr as ab,xc as ac,Sc as ad,Ac as ae,Oc as af,_t as ag,Nn as ah,hc as ai,lt as aj,Ci as ak,Oo as al,mr as am,Eo as an,Vs as ao,gr as ap,pc as aq,ce as ar,ae as as,wc as at,bc as au,vn as av,fc as aw,ut as ax,vc as ay,Kt as b,tn as c,dr as d,fs as e,jt as f,gc as g,w as h,ht as i,se as j,Ue as k,mc as l,tt as m,Fe as n,un as o,B as p,Fc as q,Mc as r,Cc as s,Pc as t,_c as u,Rc as v,H as w,Lc as x,Dc as y,Nc as z};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as l,s as ie,f as G,c as C,p as be,b as A}from"./usxM-xOh.js";import{i as de}from"./DIBaaeCL.js";import{p as m,l as W,s as U,d as M,g as u,a as ce,c as D,n as ue,r as S,b,m as X,t as Y,a0 as _,ae as fe,a3 as $,a4 as j}from"./CCA2E2CK.js";import{i as I}from"./yUs562n0.js";import{a as ee,s as P}from"./DkuxRPZv.js";import{l as q,p as s,s as K,r as te}from"./DHholpIc.js";import{c as L}from"./NuvuAeCX.js";import{p as F,U as ye,h as R,f as Ce,V as Pe,W as De,X as Se,Y as we,Z as xe,_ as le,m as Q,T as Oe,$ as ze,a0 as Fe}from"./e8QVPHqJ.js";import{c as Z}from"./D8mTIH9Y.js";import{c as re,s as oe}from"./BKHfe9E-.js";var Me=G("<title> </title>"),Ae=G('<svg><!><path d="M2 26H30V28H2z"></path><path d="M25.4,9c0.8-0.8,0.8-2,0-2.8c0,0,0,0,0,0l-3.6-3.6c-0.8-0.8-2-0.8-2.8,0c0,0,0,0,0,0l-15,15V24h6.4L25.4,9z M20.4,4L24,7.6 l-3,3L17.4,7L20.4,4z M6,22v-3.6l10-10l3.6,3.6l-10,10H6z"></path></svg>');function rt(a,e){const t=q(e,["children","$$slots","$$events","$$legacy"]),n=q(t,["size","title"]);m(e,!1);const r=X(),c=X();let f=s(e,"size",8,16),o=s(e,"title",8,void 0);W(()=>(M(t),M(o())),()=>{U(r,t["aria-label"]||t["aria-labelledby"]||o())}),W(()=>(u(r),M(t)),()=>{U(c,{"aria-hidden":u(r)?void 0:!0,role:u(r)?"img":void 0,focusable:Number(t.tabindex)===0?!0:void 0})}),ce(),de();var i=Ae();ee(i,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:f(),height:f(),...u(c),...n}));var p=D(i);{var g=v=>{var h=Me(),y=D(h,!0);S(h),Y(()=>ie(y,o())),l(v,h)};I(p,v=>{o()&&v(g)})}ue(2),S(i),l(a,i),b()}function He(a,e){m(e,!0);let t=s(e,"open",15,!1),n=s(e,"onOpenChange",3,F),r=s(e,"onOpenChangeComplete",3,F);ye.create({variant:R(()=>"dialog"),open:R(()=>t(),o=>{t(o),n()(o)}),onOpenChangeComplete:R(()=>r())});var c=C(),f=_(c);P(f,()=>e.children??fe),l(a,c),b()}var Ve=A("<!> <!>",1),Ee=A("<!> <div><!></div>",1);function Ie(a,e){const t=be();m(e,!0);let n=s(e,"id",19,()=>Ce(t)),r=s(e,"ref",15,null),c=s(e,"forceMount",3,!1),f=s(e,"onCloseAutoFocus",3,F),o=s(e,"onOpenAutoFocus",3,F),i=s(e,"onEscapeKeydown",3,F),p=s(e,"onInteractOutside",3,F),g=s(e,"trapFocus",3,!0),v=s(e,"preventScroll",3,!0),h=s(e,"restoreScrollDelay",3,null),y=te(e,["$$slots","$$events","$$legacy","id","children","child","ref","forceMount","onCloseAutoFocus","onOpenAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","restoreScrollDelay"]);const d=Pe.create({id:R(()=>n()),ref:R(()=>r(),x=>r(x))}),w=j(()=>Q(y,d.props));var k=C(),ae=_(k);{var B=x=>{De(x,{get ref(){return d.opts.ref},loop:!0,get trapFocus(){return g()},get enabled(){return d.root.opts.open.current},get onOpenAutoFocus(){return o()},get onCloseAutoFocus(){return f()},focusScope:(ve,ge)=>{let ne=()=>ge?.().props;Se(ve,K(()=>u(w),{get enabled(){return d.root.opts.open.current},get ref(){return d.opts.ref},onEscapeKeydown:N=>{i()(N),!N.defaultPrevented&&d.root.handleClose()},children:(N,Ne)=>{we(N,K(()=>u(w),{get ref(){return d.opts.ref},get enabled(){return d.root.opts.open.current},onInteractOutside:T=>{p()(T),!T.defaultPrevented&&d.root.handleClose()},children:(T,Te)=>{xe(T,K(()=>u(w),{get ref(){return d.opts.ref},get enabled(){return d.root.opts.open.current},children:(_e,We)=>{var se=C(),he=_(se);{var pe=z=>{var H=Ve(),V=_(H);{var E=O=>{le(O,{get preventScroll(){return v()},get restoreScrollDelay(){return h()}})};I(V,O=>{d.root.opts.open.current&&O(E)})}var J=$(V,2);{let O=j(()=>({props:Q(u(w),ne()),...d.snippetProps}));P(J,()=>e.child,()=>u(O))}l(z,H)},me=z=>{var H=Ee(),V=_(H);le(V,{get preventScroll(){return v()}});var E=$(V,2);ee(E,O=>({...O}),[()=>Q(u(w),ne())]);var J=D(E);P(J,()=>e.children??fe),S(E),l(z,H)};I(he,z=>{e.child?z(pe):z(me,!1)})}l(_e,se)},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{focusScope:!0}})};I(ae,x=>{(d.shouldRender||c())&&x(B)})}l(a,k),b()}function ot(a,e){m(e,!0);let t=s(e,"open",15,!1),n=te(e,["$$slots","$$events","$$legacy","open","onOpenChange","children"]);var r=C(),c=_(r);L(c,()=>He,(f,o)=>{o(f,K({get onOpenChange(){return e.onOpenChange}},()=>n,{get open(){return t()},set open(i){t(i)},children:(i,p)=>{var g=C(),v=_(g);P(v,()=>e.children),l(i,g)},$$slots:{default:!0}}))}),l(a,r),b()}var Ke=A("<!> <!>",1);function at(a,e){m(e,!0);let t=s(e,"size",3,"md"),n=te(e,["$$slots","$$events","$$legacy","children","class","size"]);var r=C(),c=_(r);L(c,()=>Oe,(f,o)=>{o(f,{children:(i,p)=>{var g=Ke(),v=_(g);L(v,()=>ze,(y,d)=>{d(y,{class:"dialog-overlay"})});var h=$(v,2);{let y=j(()=>Z("dialog-content",`dialog-${t()}`,e.class));L(h,()=>Ie,(d,w)=>{w(d,K({get class(){return u(y)}},()=>n,{children:(k,ae)=>{var B=C(),x=_(B);P(x,()=>e.children),l(k,B)},$$slots:{default:!0}}))})}l(i,g)},$$slots:{default:!0}})}),l(a,r),b()}var Le=A("<div><!></div>");function nt(a,e){m(e,!0);var t=Le(),n=D(t);P(n,()=>e.children),S(t),Y(r=>oe(t,1,r),[()=>re(Z("dialog-header",e.class))]),l(a,t),b()}function st(a,e){m(e,!0);var t=C(),n=_(t);{let r=j(()=>Z("dialog-title",e.class));L(n,()=>Fe,(c,f)=>{f(c,{get class(){return u(r)},children:(o,i)=>{var p=C(),g=_(p);P(g,()=>e.children),l(o,p)},$$slots:{default:!0}})})}l(a,t),b()}var Re=A("<div><!></div>");function lt(a,e){m(e,!0);var t=Re(),n=D(t);P(n,()=>e.children),S(t),Y(r=>oe(t,1,r),[()=>re(Z("dialog-body",e.class))]),l(a,t),b()}var Ye=A("<div><!></div>");function it(a,e){m(e,!0);var t=Ye(),n=D(t);P(n,()=>e.children),S(t),Y(r=>oe(t,1,r),[()=>re(Z("dialog-footer",e.class))]),l(a,t),b()}var Ze=G("<title> </title>"),ke=G('<svg><!><path d="M28,10V28H10V10H28m0-2H10a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10a2,2,0,0,0-2-2Z"></path><path d="M4,18H2V4A2,2,0,0,1,4,2H18V4H4Z"></path></svg>');function dt(a,e){const t=q(e,["children","$$slots","$$events","$$legacy"]),n=q(t,["size","title"]);m(e,!1);const r=X(),c=X();let f=s(e,"size",8,16),o=s(e,"title",8,void 0);W(()=>(M(t),M(o())),()=>{U(r,t["aria-label"]||t["aria-labelledby"]||o())}),W(()=>(u(r),M(t)),()=>{U(c,{"aria-hidden":u(r)?void 0:!0,role:u(r)?"img":void 0,focusable:Number(t.tabindex)===0?!0:void 0})}),ce(),de();var i=ke();ee(i,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:f(),height:f(),...u(c),...n}));var p=D(i);{var g=v=>{var h=Ze(),y=D(h,!0);S(h),Y(()=>ie(y,o())),l(v,h)};I(p,v=>{o()&&v(g)})}ue(2),S(i),l(a,i),b()}export{dt as C,at as D,rt as E,nt as a,st as b,lt as c,it as d,ot as e};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{l as o,a as r}from"../chunks/csGnu8Rb.js";export{o as load_css,r as start};
|