rssany 0.1.2 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. package/README.md +28 -50
  2. package/dist/index.js +17 -5
  3. package/dist/index.js.map +1 -1
  4. package/package.json +1 -1
  5. package/webui/build/200.html +6 -6
  6. package/webui/build/_app/immutable/assets/0.DjU2hdCQ.css +1 -0
  7. package/webui/build/_app/immutable/chunks/{DcAshVxe.js → C85CNwD2.js} +1 -1
  8. package/webui/build/_app/immutable/chunks/{BXCWEhUd.js → CdMsRjxJ.js} +1 -1
  9. package/webui/build/_app/immutable/chunks/{EIZIMsXK.js → CllQAdvt.js} +1 -1
  10. package/webui/build/_app/immutable/chunks/{CkUAV0m0.js → Dv1VCsiB.js} +1 -1
  11. package/webui/build/_app/immutable/entry/{app.DdgnooOk.js → app.BcD2eSsQ.js} +2 -2
  12. package/webui/build/_app/immutable/entry/start.CbkdJdz1.js +1 -0
  13. package/webui/build/_app/immutable/nodes/{0.BE05Cuc4.js → 0.DSUDmOx2.js} +1 -1
  14. package/webui/build/_app/immutable/nodes/{1.5DFDaT4c.js → 1.DU9aYGAb.js} +1 -1
  15. package/webui/build/_app/immutable/nodes/{10.OVK4i9XE.js → 10.Db6vw7Ih.js} +1 -1
  16. package/webui/build/_app/immutable/nodes/{11.Dhn_rO4A.js → 11.BaAcorz3.js} +1 -1
  17. package/webui/build/_app/immutable/nodes/{14.B_KpJLxn.js → 14.DqT4pcrQ.js} +1 -1
  18. package/webui/build/_app/immutable/nodes/{15.RaWaA-0I.js → 15.CCLbjxnH.js} +1 -1
  19. package/webui/build/_app/immutable/nodes/{16.DSUgqolV.js → 16.DiigpVdP.js} +1 -1
  20. package/webui/build/_app/immutable/nodes/{3.wQvGs9w-.js → 3.DEcYOQc-.js} +1 -1
  21. package/webui/build/_app/immutable/nodes/{5.CCtn90c0.js → 5.CvM1TkLG.js} +1 -1
  22. package/webui/build/_app/immutable/nodes/{6.C2_mjW1u.js → 6.Dscr6LkS.js} +1 -1
  23. package/webui/build/_app/immutable/nodes/{7.Dwz6W7A1.js → 7.Bp60MobD.js} +1 -1
  24. package/webui/build/_app/immutable/nodes/{8.DzkEw6rx.js → 8.DwSg0MHh.js} +1 -1
  25. package/webui/build/_app/immutable/nodes/{9.DtlXEwe1.js → 9.BeYOUjxR.js} +1 -1
  26. package/webui/build/_app/version.json +1 -1
  27. package/webui/build/_app/immutable/assets/0.C6Q_nuW9.css +0 -1
  28. package/webui/build/_app/immutable/entry/start.DhJaJZhR.js +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rssany",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "Universal RSS/Atom/JSON Feed pipeline — fetches, extracts, parses and converts any web content into consumable feeds with plugin support",
5
5
  "author": "Joo",
6
6
  "type": "module",
@@ -10,13 +10,13 @@
10
10
  rel="stylesheet"
11
11
  />
12
12
  <link rel="icon" href="/favicon.png" />
13
- <link href="/_app/immutable/entry/start.DhJaJZhR.js" rel="modulepreload">
14
- <link href="/_app/immutable/chunks/BXCWEhUd.js" rel="modulepreload">
13
+ <link href="/_app/immutable/entry/start.CbkdJdz1.js" rel="modulepreload">
14
+ <link href="/_app/immutable/chunks/CdMsRjxJ.js" rel="modulepreload">
15
15
  <link href="/_app/immutable/chunks/BbWUOQ_m.js" rel="modulepreload">
16
16
  <link href="/_app/immutable/chunks/D5GvRCv7.js" rel="modulepreload">
17
17
  <link href="/_app/immutable/chunks/BUApaBEI.js" rel="modulepreload">
18
18
  <link href="/_app/immutable/chunks/Bp63qm3L.js" rel="modulepreload">
19
- <link href="/_app/immutable/entry/app.DdgnooOk.js" rel="modulepreload">
19
+ <link href="/_app/immutable/entry/app.BcD2eSsQ.js" rel="modulepreload">
20
20
  <link href="/_app/immutable/chunks/DMWEh-Ek.js" rel="modulepreload">
21
21
  <link href="/_app/immutable/chunks/BK3WtZwv.js" rel="modulepreload">
22
22
  <link href="/_app/immutable/chunks/Dt2CddFe.js" rel="modulepreload">
@@ -30,15 +30,15 @@
30
30
  <div id="svelte">
31
31
  <script>
32
32
  {
33
- __sveltekit_r3ntyw = {
33
+ __sveltekit_91j5zs = {
34
34
  base: ""
35
35
  };
36
36
 
37
37
  const element = document.currentScript.parentElement;
38
38
 
39
39
  Promise.all([
40
- import("/_app/immutable/entry/start.DhJaJZhR.js"),
41
- import("/_app/immutable/entry/app.DdgnooOk.js")
40
+ import("/_app/immutable/entry/start.CbkdJdz1.js"),
41
+ import("/_app/immutable/entry/app.BcD2eSsQ.js")
42
42
  ]).then(([kit, app]) => {
43
43
  kit.start(app, element);
44
44
  });
@@ -0,0 +1 @@
1
+ .toast.svelte-zemmny{position:fixed;top:1rem;left:50%;transform:translate(-50%);background:#111;color:#fff;padding:.625rem 1.25rem;border-radius:8px;font-size:.875rem;z-index:100;white-space:nowrap;pointer-events:none}.toast.error.svelte-zemmny{background:#c0392b}.toast.success.svelte-zemmny{background:#1a7f37}/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-outline-style:solid}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--spacing:.25rem;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.fixed{position:fixed}.sticky{position:sticky}.start{inset-inline-start:var(--spacing)}.flex{display:flex}.inline{display:inline}.table{display:table}.flex-shrink{flex-shrink:1}.border-collapse{border-collapse:collapse}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.flex-wrap{flex-wrap:wrap}.border{border-style:var(--tw-border-style);border-width:1px}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}}:root{--primary:#5e6ad2;--primary-foreground:#fff;--color-primary:var(--primary);--color-primary-hover:#7c85e8;--color-primary-light:#5e6ad22e;--color-primary-foreground:var(--primary-foreground);--background:#f7f7f7;--foreground:#1f1f1f;--color-background:var(--background);--color-foreground:var(--foreground);--color-card:#fff;--color-card-elevated:#fcfcfc;--color-card-foreground:#2e2e2e;--color-muted:#0000000e;--color-muted-foreground:#737373;--color-muted-foreground-strong:#4a4a4a;--color-muted-foreground-soft:#787878;--color-accent:#0000000e;--color-accent-foreground:#2e2e2e;--color-border:#0000001c;--color-border-muted:#00000013;--color-hairline:#00000013;--color-input:#00000024;--color-destructive:#b12525;--color-destructive-foreground:#fff;--color-success:#207945;--color-success-foreground:#fff;--color-scrollbar-thumb:#00000038;--shadow-panel:0 12px 40px #00000014;--radius-sm:6px;--radius-md:8px;--radius-lg:10px;--shell-gutter:clamp(.5rem, 1.8vw, 1rem);--layout-page-inset:clamp(.4rem, 1.25vw, .85rem);--layout-max-width:64rem;--content-max:64rem;--topbar-sticky-offset: 3.125rem ;--main-padding-top:1.5rem;--feed-sticky-gap-after:1rem}html{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;height:100%}body{background:var(--color-background);height:100%;min-height:100%;color:var(--color-foreground);flex-direction:column;width:100%;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;display:flex;overflow:hidden}#svelte{flex-direction:column;flex:1;height:100%;min-height:0;display:flex;overflow:hidden}*{scrollbar-width:thin;scrollbar-color:var(--color-scrollbar-thumb) transparent}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-thumb{background:var(--color-scrollbar-thumb);border-radius:999px}::-webkit-scrollbar-track{background:0 0}.options-menu-trigger{width:2rem;height:2rem;color:var(--color-muted-foreground);border-radius:var(--radius-sm);cursor:pointer;-webkit-tap-highlight-color:transparent;background:0 0;border:1px solid #0000;flex-shrink:0;justify-content:center;align-items:center;padding:0;transition:color .15s,background-color .15s,border-color .15s;display:inline-flex}.options-menu-trigger:hover:not(:disabled){color:var(--color-foreground);background:var(--color-muted);border-color:var(--color-border)}.options-menu-trigger:focus-visible{outline:2px solid var(--color-primary);outline-offset:2px}.options-menu-trigger:disabled{opacity:.45;cursor:not-allowed}.options-menu-panel{z-index:100;background:var(--color-card-elevated);border:1px solid var(--color-border);border-radius:var(--radius-md);min-width:9rem;box-shadow:var(--shadow-panel);padding:.35rem}.options-menu-item{box-sizing:border-box;text-align:left;width:100%;color:var(--color-foreground);border-radius:var(--radius-sm);cursor:pointer;background:0 0;border:none;margin:0;padding:.5rem .65rem;font-family:inherit;font-size:.8125rem;line-height:1.35;transition:background .12s;display:block}.options-menu-item:hover:not(:disabled){background:var(--color-muted)}.options-menu-item:disabled{opacity:.55;cursor:not-allowed}.options-menu-item-danger{color:var(--color-destructive)}.options-menu-item-danger:hover:not(:disabled){background:var(--color-destructive)}@supports (color:color-mix(in lab,red,red)){.options-menu-item-danger:hover:not(:disabled){background:color-mix(in srgb,var(--color-destructive) 12%,transparent)}}.page-header .options-menu-trigger{margin-top:.1rem}.admin-feed-header{border-bottom:1px solid var(--color-border-muted);flex-shrink:0;justify-content:space-between;align-items:flex-end;gap:1rem;padding:.75rem 0;display:flex}.admin-feed-header__left{flex:1;min-width:0}.admin-feed-header__left>h2{color:var(--color-foreground);margin:0 0 .15rem;font-size:.9375rem;font-weight:600}.admin-feed-header__desc{color:var(--color-muted-foreground-soft);margin:0;font-size:.75rem;line-height:1.45}.admin-feed-header__actions{flex-direction:row;flex-shrink:0;align-items:center;gap:.5rem;min-width:0;display:flex}.admin-toolbar-btn{box-sizing:border-box;white-space:nowrap;cursor:pointer;border-radius:6px;flex-shrink:0;justify-content:center;align-items:center;gap:.35rem;min-height:2rem;padding:.35rem .65rem;font-family:inherit;font-size:.8125rem;font-weight:500;line-height:1.25;transition:opacity .15s,background .15s;display:inline-flex}.admin-toolbar-btn:disabled{opacity:.5;cursor:not-allowed}.admin-toolbar-btn--primary{color:var(--color-primary-foreground);background:var(--color-primary);border:none}.admin-toolbar-btn--primary:hover:not(:disabled){opacity:.9;background:var(--color-primary-hover,var(--color-primary))}.admin-toolbar-btn--secondary{color:var(--color-foreground);background:var(--color-muted);border:1px solid var(--color-border)}.admin-toolbar-btn--secondary:hover:not(:disabled){background:var(--color-accent)}.admin-toolbar-btn--danger{color:var(--color-destructive);background:var(--color-destructive)}@supports (color:color-mix(in lab,red,red)){.admin-toolbar-btn--danger{background:color-mix(in srgb,var(--color-destructive) 12%,var(--color-muted))}}.admin-toolbar-btn--danger{border:1px solid var(--color-destructive)}@supports (color:color-mix(in lab,red,red)){.admin-toolbar-btn--danger{border:1px solid color-mix(in srgb,var(--color-destructive) 35%,transparent)}}.admin-toolbar-btn--danger:hover:not(:disabled){background:var(--color-destructive)}@supports (color:color-mix(in lab,red,red)){.admin-toolbar-btn--danger:hover:not(:disabled){background:color-mix(in srgb,var(--color-destructive) 18%,var(--color-muted))}}.admin-toolbar-input{box-sizing:border-box;border:1px solid var(--color-input);border-radius:var(--radius-sm);background:var(--color-card-elevated);width:min(100%,18rem);min-width:10rem;height:2rem;min-height:2rem;color:var(--color-foreground);padding:.35rem .6rem;font-family:inherit;font-size:.8125rem}.admin-toolbar-input:focus{border-color:var(--color-primary);outline:none}.admin-toolbar-input::placeholder{color:var(--color-muted-foreground-soft)}@media(max-width:600px){.admin-feed-header{flex-direction:column;align-items:stretch}.admin-feed-header__actions{justify-content:flex-end}.admin-feed-header__actions .admin-toolbar-input{flex:1;width:auto;min-width:0}}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}button:not([class]),button[class=""]{font:inherit;cursor:pointer;padding:.35rem .75rem;border:1px solid var(--color-input);border-radius:var(--radius-sm, 6px);background:var(--color-card-elevated);color:var(--color-foreground)}button:not([class]):hover:not(:disabled),button[class=""]:hover:not(:disabled){background:var(--color-accent);border-color:var(--color-border)}button:not([class]):disabled,button[class=""]:disabled{opacity:.45;cursor:not-allowed}.layout-outer.svelte-12qhfyh{box-sizing:border-box;display:flex;flex-direction:column;width:100%;flex:1;min-height:0;overflow:hidden;padding:var(--layout-page-inset, .75rem);--home-feed-rail-width: 36rem;--nav-rail-width: 3rem}.layout-app.svelte-12qhfyh{display:flex;flex-direction:row;justify-content:center;align-items:stretch;flex:1;min-height:0;width:100%;overflow:hidden}.layout-merged-cluster.svelte-12qhfyh{box-sizing:border-box;display:flex;flex-direction:row;align-items:stretch;flex:0 1 var(--layout-max-width);align-self:stretch;min-width:0;min-height:0;width:min(100%,var(--layout-max-width));max-width:min(100%,var(--layout-max-width));margin-inline:auto;border:1px solid var(--color-border-muted);border-radius:var(--radius-lg);overflow:hidden;background:var(--color-card)}.layout-nav-rail.svelte-12qhfyh{flex:0 0 var(--nav-rail-width);width:var(--nav-rail-width);display:flex;flex-direction:column;justify-content:space-between;align-items:stretch;flex-shrink:0;background:transparent;border-right:1px solid var(--color-border-muted);z-index:30}.nav-rail-links.svelte-12qhfyh{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding:.75rem .35rem;flex:1;min-height:0}.nav-rail-cluster.svelte-12qhfyh{display:flex;flex-direction:column;gap:0;width:100%;max-width:2.35rem;border-radius:var(--radius-sm);overflow:hidden;background:var(--color-muted)}.nav-rail-link.svelte-12qhfyh{display:flex;align-items:center;justify-content:center;min-height:2.65rem;padding:.4rem .25rem;color:var(--color-muted-foreground-strong);text-decoration:none;border-radius:0;border-bottom:1px solid var(--color-border-muted);transition:color .15s ease,background .15s ease}.nav-rail-link.svelte-12qhfyh:last-child{border-bottom:none}.nav-rail-link.svelte-12qhfyh svg{flex-shrink:0}.nav-rail-link.svelte-12qhfyh:hover:not(.active){color:var(--color-foreground);background:var(--color-muted)}.nav-rail-link.active.svelte-12qhfyh{color:var(--color-primary);background:var(--color-primary-light)}.nav-rail-footer.svelte-12qhfyh{display:flex;flex-direction:column;align-items:center;gap:.5rem;padding:.5rem .2rem .75rem;border-top:1px solid var(--color-border-muted);background:transparent}.nav-rail-github.svelte-12qhfyh{display:inline-flex;align-items:center;justify-content:center;padding:.35rem;color:var(--color-muted-foreground);border-radius:6px;transition:color .15s ease,background .15s ease}.nav-rail-github.svelte-12qhfyh:hover{color:var(--color-foreground);background:var(--color-muted)}.nav-rail-github-icon.svelte-12qhfyh{width:18px;height:18px;display:block}.nav-rail-brand.svelte-12qhfyh{font-size:.62rem;font-weight:600;line-height:1.15;color:var(--color-muted-foreground-soft);writing-mode:vertical-rl;text-orientation:mixed;letter-spacing:.06em;max-height:6.5rem;overflow:hidden;text-overflow:ellipsis;cursor:default;-webkit-user-select:none;user-select:none}.shell.svelte-12qhfyh{box-sizing:border-box;width:100%;max-width:min(var(--content-max),100%);margin-left:auto;margin-right:auto;padding-inline:var(--shell-gutter)}.shell-frame.svelte-12qhfyh{box-sizing:border-box;display:flex;flex-direction:column;flex:1 1 auto;min-width:0;min-height:0;max-width:none;border:none;background:transparent}.shell-frame--with-feed-rail.svelte-12qhfyh{border-right:none}.layout-feed-rail.svelte-12qhfyh{box-sizing:border-box;flex:0 0 var(--home-feed-rail-width);width:var(--home-feed-rail-width);display:flex;flex-direction:column;min-height:0;align-self:stretch;border-left:1px solid var(--color-border-muted);background:transparent}.layout-feed-rail--home.svelte-12qhfyh{padding-top:calc(var(--main-padding-top) + .75rem)}.layout-feed-rail.svelte-12qhfyh .source-feed-panel-inline{flex:1 1 auto;min-height:0;width:100%;max-width:none;height:100%}@media(max-width:720px){.layout-merged-cluster.svelte-12qhfyh{flex-direction:column;width:100%!important;border-radius:var(--radius-md);border-left:none;border-right:none}.layout-nav-rail.svelte-12qhfyh{flex:0 0 auto;width:100%;flex-direction:row;align-items:center;justify-content:space-between;border-right:none;border-bottom:1px solid var(--color-border-muted)}.nav-rail-links.svelte-12qhfyh{flex-direction:row;justify-content:center;padding:.4rem .5rem}.nav-rail-cluster.svelte-12qhfyh{flex-direction:row;max-width:none;width:auto}.nav-rail-link.svelte-12qhfyh{min-height:0;min-width:2.65rem;padding:.45rem .5rem;border-bottom:none;border-right:1px solid var(--color-border-muted)}.nav-rail-link.svelte-12qhfyh:last-child{border-right:none}.nav-rail-footer.svelte-12qhfyh{flex-direction:row;border-top:none;padding:.35rem .5rem;gap:.5rem}.nav-rail-brand.svelte-12qhfyh{writing-mode:horizontal-tb;max-height:none;font-size:.65rem;max-width:5rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.shell-frame--with-feed-rail.svelte-12qhfyh{border-right:none}.layout-feed-rail.svelte-12qhfyh{flex:1 1 auto;width:100%;max-width:none;max-height:min(42vh,22rem);min-height:12rem;border-left:none;border-top:1px solid var(--color-border-muted)}.layout-feed-rail--home.svelte-12qhfyh{padding-top:0}}.main.svelte-12qhfyh{flex:0 1 auto;min-width:0;display:flex;flex-direction:column;padding-top:var(--main-padding-top);padding-bottom:1.5rem}.main.main-fill.svelte-12qhfyh{flex:1;min-height:0;overflow:hidden}
@@ -1 +1 @@
1
- import{s as e}from"./BXCWEhUd.js";const r=()=>{const s=e;return{page:{subscribe:s.page.subscribe},navigating:{subscribe:s.navigating.subscribe},updated:s.updated}},b={subscribe(s){return r().page.subscribe(s)}};export{b as p};
1
+ import{s as e}from"./CdMsRjxJ.js";const r=()=>{const s=e;return{page:{subscribe:s.page.subscribe},navigating:{subscribe:s.navigating.subscribe},updated:s.updated}},b={subscribe(s){return r().page.subscribe(s)}};export{b as p};
@@ -1 +1 @@
1
- var Zt=t=>{throw TypeError(t)};var Ne=(t,e,n)=>e.has(t)||Zt("Cannot "+n);var v=(t,e,n)=>(Ne(t,e,"read from private field"),n?n.call(t):e.get(t)),A=(t,e,n)=>e.has(t)?Zt("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n);import{b4 as P,i as T,a5 as I,T as gt,bq as De}from"./BbWUOQ_m.js";import{w as Dt}from"./D5GvRCv7.js";import{b as qe,H as qt,S as Vt,R as Bt}from"./BUApaBEI.js";import{o as te}from"./Bp63qm3L.js";new URL("sveltekit-internal://");function Ve(t,e){return t==="/"||e==="ignore"?t:e==="never"?t.endsWith("/")?t.slice(0,-1):t:e==="always"&&!t.endsWith("/")?t+"/":t}function Be(t){return t.split("%25").map(decodeURI).join("%25")}function Ke(t){for(const e in t)t[e]=decodeURIComponent(t[e]);return t}function At({href:t}){return t.split("#")[0]}function Fe(t,e,n,a=!1){const r=new URL(t);Object.defineProperty(r,"searchParams",{value:new Proxy(r.searchParams,{get(i,o){if(o==="get"||o==="getAll"||o==="has")return(c,...p)=>(n(c),i[o](c,...p));e();const l=Reflect.get(i,o);return typeof l=="function"?l.bind(i):l}}),enumerable:!0,configurable:!0});const s=["href","pathname","search","toString","toJSON"];a&&s.push("hash");for(const i of s)Object.defineProperty(r,i,{get(){return e(),t[i]},enumerable:!0,configurable:!0});return r}function Ge(...t){let e=5381;for(const n of t)if(typeof n=="string"){let a=n.length;for(;a;)e=e*33^n.charCodeAt(--a)}else if(ArrayBuffer.isView(n)){const a=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let r=a.length;for(;r;)e=e*33^a[--r]}else throw new TypeError("value must be a string or TypedArray");return(e>>>0).toString(36)}const He=window.fetch;window.fetch=(t,e)=>((t instanceof Request?t.method:(e==null?void 0:e.method)||"GET")!=="GET"&&z.delete(Kt(t)),He(t,e));const z=new Map;function Me(t,e){const n=Kt(t,e),a=document.querySelector(n);if(a!=null&&a.textContent){a.remove();let{body:r,...s}=JSON.parse(a.textContent);const i=a.getAttribute("data-ttl");return i&&z.set(n,{body:r,init:s,ttl:1e3*Number(i)}),a.getAttribute("data-b64")!==null&&(r=qe(r)),Promise.resolve(new Response(r,s))}return window.fetch(t,e)}function We(t,e,n){if(z.size>0){const a=Kt(t,n),r=z.get(a);if(r){if(performance.now()<r.ttl&&["default","force-cache","only-if-cached",void 0].includes(n==null?void 0:n.cache))return new Response(r.body,r.init);z.delete(a)}}return window.fetch(e,n)}function Kt(t,e){let a=`script[data-sveltekit-fetched][data-url=${JSON.stringify(t instanceof Request?t.url:t)}]`;if(e!=null&&e.headers||e!=null&&e.body){const r=[];e.headers&&r.push([...new Headers(e.headers)].join(",")),e.body&&(typeof e.body=="string"||ArrayBuffer.isView(e.body))&&r.push(e.body),a+=`[data-hash="${Ge(...r)}"]`}return a}const Ye=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;function ze(t){const e=[];return{pattern:t==="/"?/^\/$/:new RegExp(`^${Xe(t).map(a=>{const r=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(a);if(r)return e.push({name:r[1],matcher:r[2],optional:!1,rest:!0,chained:!0}),"(?:/([^]*))?";const s=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(a);if(s)return e.push({name:s[1],matcher:s[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!a)return;const i=a.split(/\[(.+?)\](?!\])/);return"/"+i.map((l,c)=>{if(c%2){if(l.startsWith("x+"))return Pt(String.fromCharCode(parseInt(l.slice(2),16)));if(l.startsWith("u+"))return Pt(String.fromCharCode(...l.slice(2).split("-").map(f=>parseInt(f,16))));const p=Ye.exec(l),[,h,_,g,d]=p;return e.push({name:g,matcher:d,optional:!!h,rest:!!_,chained:_?c===1&&i[0]==="":!1}),_?"([^]*?)":h?"([^/]*)?":"([^/]+?)"}return Pt(l)}).join("")}).join("")}/?$`),params:e}}function Je(t){return t!==""&&!/^\([^)]+\)$/.test(t)}function Xe(t){return t.slice(1).split("/").filter(Je)}function Qe(t,e,n){const a={},r=t.slice(1),s=r.filter(o=>o!==void 0);let i=0;for(let o=0;o<e.length;o+=1){const l=e[o];let c=r[o-i];if(l.chained&&l.rest&&i&&(c=r.slice(o-i,o+1).filter(p=>p).join("/"),i=0),c===void 0)if(l.rest)c="";else continue;if(!l.matcher||n[l.matcher](c)){a[l.name]=c;const p=e[o+1],h=r[o+1];p&&!p.rest&&p.optional&&h&&l.chained&&(i=0),!p&&!h&&Object.keys(a).length===s.length&&(i=0);continue}if(l.optional&&l.chained){i++;continue}return}if(!i)return a}function Pt(t){return t.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function Ze({nodes:t,server_loads:e,dictionary:n,matchers:a}){const r=new Set(e);return Object.entries(n).map(([o,[l,c,p]])=>{const{pattern:h,params:_}=ze(o),g={id:o,exec:d=>{const f=h.exec(d);if(f)return Qe(f,_,a)},errors:[1,...p||[]].map(d=>t[d]),layouts:[0,...c||[]].map(i),leaf:s(l)};return g.errors.length=g.layouts.length=Math.max(g.errors.length,g.layouts.length),g});function s(o){const l=o<0;return l&&(o=~o),[l,t[o]]}function i(o){return o===void 0?o:[r.has(o),t[o]]}}function ge(t,e=JSON.parse){try{return e(sessionStorage[t])}catch{}}function ee(t,e,n=JSON.stringify){const a=n(e);try{sessionStorage[t]=a}catch{}}var fe;const U=((fe=globalThis.__sveltekit_r3ntyw)==null?void 0:fe.base)??"";var ue;const tn=((ue=globalThis.__sveltekit_r3ntyw)==null?void 0:ue.assets)??U??"",en="1775806756267",me="sveltekit:snapshot",_e="sveltekit:scroll",we="sveltekit:states",nn="sveltekit:pageurl",F="sveltekit:history",X="sveltekit:navigation",D={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},Et=location.origin;function Ft(t){if(t instanceof URL)return t;let e=document.baseURI;if(!e){const n=document.getElementsByTagName("base");e=n.length?n[0].href:document.URL}return new URL(t,e)}function V(){return{x:pageXOffset,y:pageYOffset}}function K(t,e){return t.getAttribute(`data-sveltekit-${e}`)}const ne={...D,"":D.hover};function ve(t){let e=t.assignedSlot??t.parentNode;return(e==null?void 0:e.nodeType)===11&&(e=e.host),e}function ye(t,e){for(;t&&t!==e;){if(t.nodeName.toUpperCase()==="A"&&t.hasAttribute("href"))return t;t=ve(t)}}function Ot(t,e,n){let a;try{if(a=new URL(t instanceof SVGAElement?t.href.baseVal:t.href,document.baseURI),n&&a.hash.match(/^#[^/]/)){const o=location.hash.split("#")[1]||"/";a.hash=`#${o}${a.hash}`}}catch{}const r=t instanceof SVGAElement?t.target.baseVal:t.target,s=!a||!!r||St(a,e,n)||(t.getAttribute("rel")||"").split(/\s+/).includes("external"),i=(a==null?void 0:a.origin)===Et&&t.hasAttribute("download");return{url:a,external:s,target:r,download:i}}function mt(t){let e=null,n=null,a=null,r=null,s=null,i=null,o=t;for(;o&&o!==document.documentElement;)a===null&&(a=K(o,"preload-code")),r===null&&(r=K(o,"preload-data")),e===null&&(e=K(o,"keepfocus")),n===null&&(n=K(o,"noscroll")),s===null&&(s=K(o,"reload")),i===null&&(i=K(o,"replacestate")),o=ve(o);function l(c){switch(c){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:ne[a??"off"],preload_data:ne[r??"off"],keepfocus:l(e),noscroll:l(n),reload:l(s),replace_state:l(i)}}function re(t){const e=Dt(t);let n=!0;function a(){n=!0,e.update(i=>i)}function r(i){n=!1,e.set(i)}function s(i){let o;return e.subscribe(l=>{(o===void 0||n&&l!==o)&&i(o=l)})}return{notify:a,set:r,subscribe:s}}const be={v:()=>{}};function rn(){const{set:t,subscribe:e}=Dt(!1);let n;async function a(){clearTimeout(n);try{const r=await fetch(`${tn}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!r.ok)return!1;const i=(await r.json()).version!==en;return i&&(t(!0),be.v(),clearTimeout(n)),i}catch{return!1}}return{subscribe:e,check:a}}function St(t,e,n){return t.origin!==Et||!t.pathname.startsWith(e)?!0:n?t.pathname!==location.pathname:!1}function Cn(t){}const ke=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...ke];const an=new Set([...ke]);[...an];function on(t){return t.filter(e=>e!=null)}function Gt(t){return t instanceof qt||t instanceof Vt?t.status:500}function sn(t){return t instanceof Vt?t.text:"Internal Error"}let S,Q,Tt;const ln=te.toString().includes("$$")||/function \w+\(\) \{\}/.test(te.toString()),ae="a:";var rt,at,ot,it,st,lt,ct,ft,de,ut,he,dt,pe;ln?(S={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL(ae)},Q={current:null},Tt={current:!1}):(S=new(de=class{constructor(){A(this,rt,P({}));A(this,at,P(null));A(this,ot,P(null));A(this,it,P({}));A(this,st,P({id:null}));A(this,lt,P({}));A(this,ct,P(-1));A(this,ft,P(new URL(ae)))}get data(){return T(v(this,rt))}set data(e){I(v(this,rt),e)}get form(){return T(v(this,at))}set form(e){I(v(this,at),e)}get error(){return T(v(this,ot))}set error(e){I(v(this,ot),e)}get params(){return T(v(this,it))}set params(e){I(v(this,it),e)}get route(){return T(v(this,st))}set route(e){I(v(this,st),e)}get state(){return T(v(this,lt))}set state(e){I(v(this,lt),e)}get status(){return T(v(this,ct))}set status(e){I(v(this,ct),e)}get url(){return T(v(this,ft))}set url(e){I(v(this,ft),e)}},rt=new WeakMap,at=new WeakMap,ot=new WeakMap,it=new WeakMap,st=new WeakMap,lt=new WeakMap,ct=new WeakMap,ft=new WeakMap,de),Q=new(he=class{constructor(){A(this,ut,P(null))}get current(){return T(v(this,ut))}set current(e){I(v(this,ut),e)}},ut=new WeakMap,he),Tt=new(pe=class{constructor(){A(this,dt,P(!1))}get current(){return T(v(this,dt))}set current(e){I(v(this,dt),e)}},dt=new WeakMap,pe),be.v=()=>Tt.current=!0);function cn(t){Object.assign(S,t)}const oe={spanContext(){return fn},setAttribute(){return this},setAttributes(){return this},addEvent(){return this},setStatus(){return this},updateName(){return this},end(){return this},isRecording(){return!1},recordException(){return this},addLink(){return this},addLinks(){return this}},fn={traceId:"",spanId:"",traceFlags:0},un=new Set(["icon","shortcut icon","apple-touch-icon"]);let W=null;const j=ge(_e)??{},Z=ge(me)??{},$={url:re({}),page:re({}),navigating:Dt(null),updated:rn()};function Ht(t){j[t]=V()}function dn(t,e){let n=t+1;for(;j[n];)delete j[n],n+=1;for(n=e+1;Z[n];)delete Z[n],n+=1}function tt(t,e=!1){return e?location.replace(t.href):location.href=t.href,new Promise(()=>{})}async function Re(){if("serviceWorker"in navigator){const t=await navigator.serviceWorker.getRegistration(U||"/");t&&await t.update()}}function ie(){}let Mt,Ct,_t,O,$t,k;const wt=[],vt=[];let b=null;function jt(){var t;(t=b==null?void 0:b.fork)==null||t.then(e=>e==null?void 0:e.discard()),b=null}const pt=new Map,Ee=new Set,hn=new Set,J=new Set;let w={branch:[],error:null,url:null},Se=!1,yt=!1,se=!0,et=!1,Y=!1,xe=!1,Wt=!1,Le,R,L,q;const bt=new Set,le=new Map;async function Dn(t,e,n){var s,i,o,l,c;(s=globalThis.__sveltekit_r3ntyw)!=null&&s.data&&globalThis.__sveltekit_r3ntyw.data,document.URL!==location.href&&(location.href=location.href),k=t,await((o=(i=t.hooks).init)==null?void 0:o.call(i)),Mt=Ze(t),O=document.documentElement,$t=e,Ct=t.nodes[0],_t=t.nodes[1],Ct(),_t(),R=(l=history.state)==null?void 0:l[F],L=(c=history.state)==null?void 0:c[X],R||(R=L=Date.now(),history.replaceState({...history.state,[F]:R,[X]:L},""));const a=j[R];function r(){a&&(history.scrollRestoration="manual",scrollTo(a.x,a.y))}n?(r(),await Sn($t,n)):(await G({type:"enter",url:Ft(k.hash?Un(new URL(location.href)):location.href),replace_state:!0}),r()),En()}function pn(){wt.length=0,Wt=!1}function Ue(t){vt.some(e=>e==null?void 0:e.snapshot)&&(Z[t]=vt.map(e=>{var n;return(n=e==null?void 0:e.snapshot)==null?void 0:n.capture()}))}function Ae(t){var e;(e=Z[t])==null||e.forEach((n,a)=>{var r,s;(s=(r=vt[a])==null?void 0:r.snapshot)==null||s.restore(n)})}function ce(){Ht(R),ee(_e,j),Ue(L),ee(me,Z)}async function Pe(t,e,n,a){let r;e.invalidateAll&&jt(),await G({type:"goto",url:Ft(t),keepfocus:e.keepFocus,noscroll:e.noScroll,replace_state:e.replaceState,state:e.state,redirect_count:n,nav_token:a,accept:()=>{e.invalidateAll&&(Wt=!0,r=[...le.keys()]),e.invalidate&&e.invalidate.forEach(Rn)}}),e.invalidateAll&&gt().then(gt).then(()=>{le.forEach(({resource:s},i)=>{var o;r!=null&&r.includes(i)&&((o=s.refresh)==null||o.call(s))})})}async function gn(t){if(t.id!==(b==null?void 0:b.id)){jt();const e={};bt.add(e),b={id:t.id,token:e,promise:Oe({...t,preload:e}).then(n=>(bt.delete(e),n.type==="loaded"&&n.state.error&&jt(),n)),fork:null}}return b.promise}async function It(t){var n;const e=(n=await xt(t,!1))==null?void 0:n.route;e&&await Promise.all([...e.layouts,e.leaf].filter(Boolean).map(a=>a[1]()))}async function Te(t,e,n){var s;const a={params:w.params,route:{id:((s=w.route)==null?void 0:s.id)??null},url:new URL(location.href)};w={...t.state,nav:a};const r=document.querySelector("style[data-sveltekit]");if(r&&r.remove(),Object.assign(S,t.props.page),Le=new k.root({target:e,props:{...t.props,stores:$,components:vt},hydrate:n,sync:!1,transformError:void 0}),await Promise.resolve(),Ae(L),n){const i={from:null,to:{...a,scroll:j[R]??V()},willUnload:!1,type:"enter",complete:Promise.resolve()};J.forEach(o=>o(i))}yt=!0}async function kt({url:t,params:e,branch:n,errors:a,status:r,error:s,route:i,form:o}){let l="never";if(U&&(t.pathname===U||t.pathname===U+"/"))l="always";else for(const d of n)(d==null?void 0:d.slash)!==void 0&&(l=d.slash);t.pathname=Ve(t.pathname,l),t.search=t.search;const c={type:"loaded",state:{url:t,params:e,branch:n,error:s,route:i},props:{constructors:on(n).map(d=>d.node.component),page:Qt(S)}};o!==void 0&&(c.props.form=o);let p={},h=!S,_=0;for(let d=0;d<Math.max(n.length,w.branch.length);d+=1){const f=n[d],u=w.branch[d];(f==null?void 0:f.data)!==(u==null?void 0:u.data)&&(h=!0),f&&(p={...p,...f.data},h&&(c.props[`data_${_}`]=p),_+=1)}return(!w.url||t.href!==w.url.href||w.error!==s||o!==void 0&&o!==S.form||h)&&(c.props.page={error:s,params:e,route:{id:(i==null?void 0:i.id)??null},state:{},status:r,url:new URL(t),form:o??null,data:h?p:S.data}),c}async function Yt({loader:t,parent:e,url:n,params:a,route:r,server_data_node:s}){var p,h,_;let i=null,o=!0;const l={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},c=await t();if((p=c.universal)!=null&&p.load){let g=function(...f){for(const u of f){const{href:m}=new URL(u,n);l.dependencies.add(m)}};const d={tracing:{enabled:!1,root:oe,current:oe},route:new Proxy(r,{get:(f,u)=>(o&&(l.route=!0),f[u])}),params:new Proxy(a,{get:(f,u)=>(o&&l.params.add(u),f[u])}),data:(s==null?void 0:s.data)??null,url:Fe(n,()=>{o&&(l.url=!0)},f=>{o&&l.search_params.add(f)},k.hash),async fetch(f,u){f instanceof Request&&(u={body:f.method==="GET"||f.method==="HEAD"?void 0:await f.blob(),cache:f.cache,credentials:f.credentials,headers:[...f.headers].length>0?f==null?void 0:f.headers:void 0,integrity:f.integrity,keepalive:f.keepalive,method:f.method,mode:f.mode,redirect:f.redirect,referrer:f.referrer,referrerPolicy:f.referrerPolicy,signal:f.signal,...u});const{resolved:m,promise:y}=Ie(f,u,n);return o&&g(m.href),y},setHeaders:()=>{},depends:g,parent(){return o&&(l.parent=!0),e()},untrack(f){o=!1;try{return f()}finally{o=!0}}};i=await c.universal.load.call(null,d)??null}return{node:c,loader:t,server:s,universal:(h=c.universal)!=null&&h.load?{type:"data",data:i,uses:l}:null,data:i??(s==null?void 0:s.data)??null,slash:((_=c.universal)==null?void 0:_.trailingSlash)??(s==null?void 0:s.slash)}}function Ie(t,e,n){let a=t instanceof Request?t.url:t;const r=new URL(a,n);r.origin===n.origin&&(a=r.href.slice(n.origin.length));const s=yt?We(a,r.href,e):Me(a,e);return{resolved:r,promise:s}}function mn(t,e,n,a,r,s){if(Wt)return!0;if(!r)return!1;if(r.parent&&t||r.route&&e||r.url&&n)return!0;for(const i of r.search_params)if(a.has(i))return!0;for(const i of r.params)if(s[i]!==w.params[i])return!0;for(const i of r.dependencies)if(wt.some(o=>o(new URL(i))))return!0;return!1}function zt(t,e){return(t==null?void 0:t.type)==="data"?t:(t==null?void 0:t.type)==="skip"?e??null:null}function _n(t,e){if(!t)return new Set(e.searchParams.keys());const n=new Set([...t.searchParams.keys(),...e.searchParams.keys()]);for(const a of n){const r=t.searchParams.getAll(a),s=e.searchParams.getAll(a);r.every(i=>s.includes(i))&&s.every(i=>r.includes(i))&&n.delete(a)}return n}function wn({error:t,url:e,route:n,params:a}){return{type:"loaded",state:{error:t,url:e,route:n,params:a,branch:[]},props:{page:Qt(S),constructors:[]}}}async function Oe({id:t,invalidating:e,url:n,params:a,route:r,preload:s}){if((b==null?void 0:b.id)===t)return bt.delete(b.token),b.promise;const{errors:i,layouts:o,leaf:l}=r,c=[...o,l];i.forEach(u=>u==null?void 0:u().catch(()=>{})),c.forEach(u=>u==null?void 0:u[1]().catch(()=>{}));const p=w.url?t!==Rt(w.url):!1,h=w.route?r.id!==w.route.id:!1,_=_n(w.url,n);let g=!1;const d=c.map(async(u,m)=>{var C;if(!u)return;const y=w.branch[m];return u[1]===(y==null?void 0:y.loader)&&!mn(g,h,p,_,(C=y.universal)==null?void 0:C.uses,a)?y:(g=!0,Yt({loader:u[1],url:n,params:a,route:r,parent:async()=>{var ht;const N={};for(let B=0;B<m;B+=1)Object.assign(N,(ht=await d[B])==null?void 0:ht.data);return N},server_data_node:zt(u[0]?{type:"skip"}:null,u[0]?y==null?void 0:y.server:void 0)}))});for(const u of d)u.catch(()=>{});const f=[];for(let u=0;u<c.length;u+=1)if(c[u])try{f.push(await d[u])}catch(m){if(m instanceof Bt)return{type:"redirect",location:m.location};if(bt.has(s))return wn({error:await nt(m,{params:a,url:n,route:{id:r.id}}),url:n,params:a,route:r});let y=Gt(m),x;if(m instanceof qt)x=m.body;else{if(await $.updated.check())return await Re(),await tt(n);x=await nt(m,{params:a,url:n,route:{id:r.id}})}const C=await vn(u,f,i);return C?kt({url:n,params:a,branch:f.slice(0,C.idx).concat(C.node),errors:i,status:y,error:x,route:r}):await $e(n,{id:r.id},x,y)}else f.push(void 0);return kt({url:n,params:a,branch:f,errors:i,status:200,error:null,route:r,form:e?void 0:null})}async function vn(t,e,n){for(;t--;)if(n[t]){let a=t;for(;!e[a];)a-=1;try{return{idx:a+1,node:{node:await n[t](),loader:n[t],data:{},server:null,universal:null}}}catch{continue}}}async function Jt({status:t,error:e,url:n,route:a}){const r={};let s=null;try{const i=await Yt({loader:Ct,url:n,params:r,route:a,parent:()=>Promise.resolve({}),server_data_node:zt(s)}),o={node:await _t(),loader:_t,universal:null,server:null,data:null};return kt({url:n,params:r,branch:[i,o],status:t,error:e,errors:[],route:null})}catch(i){if(i instanceof Bt)return Pe(new URL(i.location,location.href),{},0);throw i}}async function yn(t){const e=t.href;if(pt.has(e))return pt.get(e);let n;try{const a=(async()=>{let r=await k.hooks.reroute({url:new URL(t),fetch:async(s,i)=>Ie(s,i,t).promise})??t;if(typeof r=="string"){const s=new URL(t);k.hash?s.hash=r:s.pathname=r,r=s}return r})();pt.set(e,a),n=await a}catch{pt.delete(e);return}return n}async function xt(t,e){if(t&&!St(t,U,k.hash)){const n=await yn(t);if(!n)return;const a=bn(n);for(const r of Mt){const s=r.exec(a);if(s)return{id:Rt(t),invalidating:e,route:r,params:Ke(s),url:t}}}}function bn(t){return Be(k.hash?t.hash.replace(/^#/,"").replace(/[?#].+/,""):t.pathname.slice(U.length))||"/"}function Rt(t){return(k.hash?t.hash.replace(/^#/,""):t.pathname)+t.search}function Ce({url:t,type:e,intent:n,delta:a,event:r,scroll:s}){let i=!1;const o=Xt(w,n,t,e,s??null);a!==void 0&&(o.navigation.delta=a),r!==void 0&&(o.navigation.event=r);const l={...o.navigation,cancel:()=>{i=!0,o.reject(new Error("navigation cancelled"))}};return et||Ee.forEach(c=>c(l)),i?null:o}async function G({type:t,url:e,popped:n,keepfocus:a,noscroll:r,replace_state:s,state:i={},redirect_count:o=0,nav_token:l={},accept:c=ie,block:p=ie,event:h}){var B;const _=q;q=l;const g=await xt(e,!1),d=t==="enter"?Xt(w,g,e,t):Ce({url:e,type:t,delta:n==null?void 0:n.delta,intent:g,scroll:n==null?void 0:n.scroll,event:h});if(!d){p(),q===l&&(q=_);return}const f=R,u=L;c(),et=!0,yt&&d.navigation.type!=="enter"&&$.navigating.set(Q.current=d.navigation);let m=g&&await Oe(g);if(!m){if(St(e,U,k.hash))return await tt(e,s);m=await $e(e,{id:null},await nt(new Vt(404,"Not Found",`Not found: ${e.pathname}`),{url:e,params:{},route:{id:null}}),404,s)}if(e=(g==null?void 0:g.url)||e,q!==l)return d.reject(new Error("navigation aborted")),!1;if(m.type==="redirect"){if(o<20){await G({type:t,url:new URL(m.location,e),popped:n,keepfocus:a,noscroll:r,replace_state:s,state:i,redirect_count:o+1,nav_token:l}),d.fulfil(void 0);return}m=await Jt({status:500,error:await nt(new Error("Redirect loop"),{url:e,params:{},route:{id:null}}),url:e,route:{id:null}})}else m.props.page.status>=400&&await $.updated.check()&&(await Re(),await tt(e,s));if(pn(),Ht(f),Ue(u),m.props.page.url.pathname!==e.pathname&&(e.pathname=m.props.page.url.pathname),i=n?n.state:i,!n){const E=s?0:1,H={[F]:R+=E,[X]:L+=E,[we]:i};(s?history.replaceState:history.pushState).call(history,H,"",e),s||dn(R,L)}const y=g&&(b==null?void 0:b.id)===g.id?b.fork:null;b=null,m.props.page.state=i;let x;if(yt){const E=(await Promise.all(Array.from(hn,M=>M(d.navigation)))).filter(M=>typeof M=="function");if(E.length>0){let M=function(){E.forEach(Ut=>{J.delete(Ut)})};E.push(M),E.forEach(Ut=>{J.add(Ut)})}const H=d.navigation.to;w={...m.state,nav:{params:H.params,route:H.route,url:H.url}},m.props.page&&(m.props.page.url=e);const Lt=y&&await y;Lt?x=Lt.commit():(W=null,Le.$set(m.props),W&&Object.assign(m.props.page,W),cn(m.props.page),x=(B=De)==null?void 0:B()),xe=!0}else await Te(m,$t,!1);const{activeElement:C}=document;await x,await gt(),await gt();let N=null;if(se){const E=n?n.scroll:r?V():null;E?scrollTo(E.x,E.y):(N=e.hash&&document.getElementById(je(e)))?N.scrollIntoView():scrollTo(0,0)}const ht=document.activeElement!==C&&document.activeElement!==document.body;!a&&!ht&&Ln(e,!N),se=!0,m.props.page&&(W&&Object.assign(m.props.page,W),Object.assign(S,m.props.page)),et=!1,t==="popstate"&&Ae(L),d.fulfil(void 0),d.navigation.to&&(d.navigation.to.scroll=V()),J.forEach(E=>E(d.navigation)),$.navigating.set(Q.current=null)}async function $e(t,e,n,a,r){return t.origin===Et&&t.pathname===location.pathname&&!Se?await Jt({status:a,error:n,url:t,route:e}):await tt(t,r)}function kn(){let t,e={element:void 0,href:void 0},n;O.addEventListener("mousemove",o=>{const l=o.target;clearTimeout(t),t=setTimeout(()=>{s(l,D.hover)},20)});function a(o){o.defaultPrevented||s(o.composedPath()[0],D.tap)}O.addEventListener("mousedown",a),O.addEventListener("touchstart",a,{passive:!0});const r=new IntersectionObserver(o=>{for(const l of o)l.isIntersecting&&(It(new URL(l.target.href)),r.unobserve(l.target))},{threshold:0});async function s(o,l){const c=ye(o,O),p=c===e.element&&(c==null?void 0:c.href)===e.href&&l>=n;if(!c||p)return;const{url:h,external:_,download:g}=Ot(c,U,k.hash);if(_||g)return;const d=mt(c),f=h&&Rt(w.url)===Rt(h);if(!(d.reload||f))if(l<=d.preload_data){e={element:c,href:c.href},n=D.tap;const u=await xt(h,!1);if(!u)return;gn(u)}else l<=d.preload_code&&(e={element:c,href:c.href},n=l,It(h))}function i(){r.disconnect();for(const o of O.querySelectorAll("a")){const{url:l,external:c,download:p}=Ot(o,U,k.hash);if(c||p)continue;const h=mt(o);h.reload||(h.preload_code===D.viewport&&r.observe(o),h.preload_code===D.eager&&It(l))}}J.add(i),i()}function nt(t,e){if(t instanceof qt)return t.body;const n=Gt(t),a=sn(t);return k.hooks.handleError({error:t,event:e,status:n,message:a})??{message:a}}function qn(t,e={}){return t=new URL(Ft(t)),t.origin!==Et?Promise.reject(new Error("goto: invalid URL")):Pe(t,e,0)}function Rn(t){if(typeof t=="function")wt.push(t);else{const{href:e}=new URL(t,location.href);wt.push(n=>n.href===e)}}function En(){var e;history.scrollRestoration="manual",addEventListener("beforeunload",n=>{let a=!1;if(ce(),!et){const r=Xt(w,void 0,null,"leave"),s={...r.navigation,cancel:()=>{a=!0,r.reject(new Error("navigation cancelled"))}};Ee.forEach(i=>i(s))}a?(n.preventDefault(),n.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&ce()}),(e=navigator.connection)!=null&&e.saveData||kn(),O.addEventListener("click",async n=>{if(n.button||n.which!==1||n.metaKey||n.ctrlKey||n.shiftKey||n.altKey||n.defaultPrevented)return;const a=ye(n.composedPath()[0],O);if(!a)return;const{url:r,external:s,target:i,download:o}=Ot(a,U,k.hash);if(!r)return;if(i==="_parent"||i==="_top"){if(window.parent!==window)return}else if(i&&i!=="_self")return;const l=mt(a);if(!(a instanceof SVGAElement)&&r.protocol!==location.protocol&&!(r.protocol==="https:"||r.protocol==="http:")||o)return;const[p,h]=(k.hash?r.hash.replace(/^#/,""):r.href).split("#"),_=p===At(location);if(s||l.reload&&(!_||!h)){Ce({url:r,type:"link",event:n})?et=!0:n.preventDefault();return}if(h!==void 0&&_){const[,g]=w.url.href.split("#");if(g===h){if(n.preventDefault(),h===""||h==="top"&&a.ownerDocument.getElementById("top")===null)scrollTo({top:0});else{const d=a.ownerDocument.getElementById(decodeURIComponent(h));d&&(d.scrollIntoView(),d.focus())}return}if(Y=!0,Ht(R),t(r),!l.replace_state)return;Y=!1}n.preventDefault(),await new Promise(g=>{requestAnimationFrame(()=>{setTimeout(g,0)}),setTimeout(g,100)}),await G({type:"link",url:r,keepfocus:l.keepfocus,noscroll:l.noscroll,replace_state:l.replace_state??r.href===location.href,event:n})}),O.addEventListener("submit",n=>{if(n.defaultPrevented)return;const a=HTMLFormElement.prototype.cloneNode.call(n.target),r=n.submitter;if(((r==null?void 0:r.formTarget)||a.target)==="_blank"||((r==null?void 0:r.formMethod)||a.method)!=="get")return;const o=new URL((r==null?void 0:r.hasAttribute("formaction"))&&(r==null?void 0:r.formAction)||a.action);if(St(o,U,!1))return;const l=n.target,c=mt(l);if(c.reload)return;n.preventDefault(),n.stopPropagation();const p=new FormData(l,r);o.search=new URLSearchParams(p).toString(),G({type:"form",url:o,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??o.href===location.href,event:n})}),addEventListener("popstate",async n=>{var a;if(!Nt){if((a=n.state)!=null&&a[F]){const r=n.state[F];if(q={},r===R)return;const s=j[r],i=n.state[we]??{},o=new URL(n.state[nn]??location.href),l=n.state[X],c=w.url?At(location)===At(w.url):!1;if(l===L&&(xe||c)){i!==S.state&&(S.state=i),t(o),j[R]=V(),s&&scrollTo(s.x,s.y),R=r;return}const h=r-R;await G({type:"popstate",url:o,popped:{state:i,scroll:s,delta:h},accept:()=>{R=r,L=l},block:()=>{history.go(-h)},nav_token:q,event:n})}else if(!Y){const r=new URL(location.href);t(r),k.hash&&location.reload()}}}),addEventListener("hashchange",()=>{Y&&(Y=!1,history.replaceState({...history.state,[F]:++R,[X]:L},"",location.href))});for(const n of document.querySelectorAll("link"))un.has(n.rel)&&(n.href=n.href);addEventListener("pageshow",n=>{n.persisted&&$.navigating.set(Q.current=null)});function t(n){w.url=S.url=n,$.page.set(Qt(S)),$.page.notify()}}async function Sn(t,{status:e=200,error:n,node_ids:a,params:r,route:s,server_route:i,data:o,form:l}){Se=!0;const c=new URL(location.href);let p;({params:r={},route:s={id:null}}=await xt(c,!1)||{}),p=Mt.find(({id:g})=>g===s.id);let h,_=!0;try{const g=a.map(async(f,u)=>{const m=o[u];return m!=null&&m.uses&&(m.uses=xn(m.uses)),Yt({loader:k.nodes[f],url:c,params:r,route:s,parent:async()=>{const y={};for(let x=0;x<u;x+=1)Object.assign(y,(await g[x]).data);return y},server_data_node:zt(m)})}),d=await Promise.all(g);if(p){const f=p.layouts;for(let u=0;u<f.length;u++)f[u]||d.splice(u,0,void 0)}h=await kt({url:c,params:r,branch:d,status:e,error:n,errors:p==null?void 0:p.errors,form:l,route:p??null})}catch(g){if(g instanceof Bt){await tt(new URL(g.location,location.href));return}h=await Jt({status:Gt(g),error:await nt(g,{url:c,params:r,route:s}),url:c,route:s}),t.textContent="",_=!1}h.props.page&&(h.props.page.state={}),await Te(h,t,_)}function xn(t){return{dependencies:new Set((t==null?void 0:t.dependencies)??[]),params:new Set((t==null?void 0:t.params)??[]),parent:!!(t!=null&&t.parent),route:!!(t!=null&&t.route),url:!!(t!=null&&t.url),search_params:new Set((t==null?void 0:t.search_params)??[])}}let Nt=!1;function Ln(t,e=!0){const n=document.querySelector("[autofocus]");if(n)n.focus();else{const a=je(t);if(a&&document.getElementById(a)){const{x:s,y:i}=V();setTimeout(()=>{const o=history.state;Nt=!0,location.replace(new URL(`#${a}`,location.href)),history.replaceState(o,"",t),e&&scrollTo(s,i),Nt=!1})}else{const s=document.body,i=s.getAttribute("tabindex");s.tabIndex=-1,s.focus({preventScroll:!0,focusVisible:!1}),i!==null?s.setAttribute("tabindex",i):s.removeAttribute("tabindex")}const r=getSelection();if(r&&r.type!=="None"){const s=[];for(let i=0;i<r.rangeCount;i+=1)s.push(r.getRangeAt(i));setTimeout(()=>{if(r.rangeCount===s.length){for(let i=0;i<r.rangeCount;i+=1){const o=s[i],l=r.getRangeAt(i);if(o.commonAncestorContainer!==l.commonAncestorContainer||o.startContainer!==l.startContainer||o.endContainer!==l.endContainer||o.startOffset!==l.startOffset||o.endOffset!==l.endOffset)return}r.removeAllRanges()}})}}}function Xt(t,e,n,a,r=null){var c,p;let s,i;const o=new Promise((h,_)=>{s=h,i=_});return o.catch(()=>{}),{navigation:{from:{params:t.params,route:{id:((c=t.route)==null?void 0:c.id)??null},url:t.url,scroll:V()},to:n&&{params:(e==null?void 0:e.params)??null,route:{id:((p=e==null?void 0:e.route)==null?void 0:p.id)??null},url:n,scroll:r},willUnload:!e,type:a,complete:o},fulfil:s,reject:i}}function Qt(t){return{data:t.data,error:t.error,form:t.form,params:t.params,route:t.route,state:t.state,status:t.status,url:t.url}}function Un(t){const e=new URL(t);return e.hash=decodeURIComponent(t.hash),e}function je(t){let e;if(k.hash){const[,,n]=t.hash.split("#",3);e=n??""}else e=t.hash.slice(1);return decodeURIComponent(e)}export{Dn as a,qn as g,Cn as l,S as p,$ as s};
1
+ var Zt=t=>{throw TypeError(t)};var Ne=(t,e,n)=>e.has(t)||Zt("Cannot "+n);var v=(t,e,n)=>(Ne(t,e,"read from private field"),n?n.call(t):e.get(t)),A=(t,e,n)=>e.has(t)?Zt("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n);import{b4 as P,i as T,a5 as I,T as gt,bq as De}from"./BbWUOQ_m.js";import{w as Dt}from"./D5GvRCv7.js";import{b as qe,H as qt,S as Vt,R as zt}from"./BUApaBEI.js";import{o as te}from"./Bp63qm3L.js";new URL("sveltekit-internal://");function Ve(t,e){return t==="/"||e==="ignore"?t:e==="never"?t.endsWith("/")?t.slice(0,-1):t:e==="always"&&!t.endsWith("/")?t+"/":t}function ze(t){return t.split("%25").map(decodeURI).join("%25")}function Be(t){for(const e in t)t[e]=decodeURIComponent(t[e]);return t}function At({href:t}){return t.split("#")[0]}function Ke(t,e,n,a=!1){const r=new URL(t);Object.defineProperty(r,"searchParams",{value:new Proxy(r.searchParams,{get(i,o){if(o==="get"||o==="getAll"||o==="has")return(c,...p)=>(n(c),i[o](c,...p));e();const l=Reflect.get(i,o);return typeof l=="function"?l.bind(i):l}}),enumerable:!0,configurable:!0});const s=["href","pathname","search","toString","toJSON"];a&&s.push("hash");for(const i of s)Object.defineProperty(r,i,{get(){return e(),t[i]},enumerable:!0,configurable:!0});return r}function Fe(...t){let e=5381;for(const n of t)if(typeof n=="string"){let a=n.length;for(;a;)e=e*33^n.charCodeAt(--a)}else if(ArrayBuffer.isView(n)){const a=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let r=a.length;for(;r;)e=e*33^a[--r]}else throw new TypeError("value must be a string or TypedArray");return(e>>>0).toString(36)}const Ge=window.fetch;window.fetch=(t,e)=>((t instanceof Request?t.method:(e==null?void 0:e.method)||"GET")!=="GET"&&Y.delete(Bt(t)),Ge(t,e));const Y=new Map;function He(t,e){const n=Bt(t,e),a=document.querySelector(n);if(a!=null&&a.textContent){a.remove();let{body:r,...s}=JSON.parse(a.textContent);const i=a.getAttribute("data-ttl");return i&&Y.set(n,{body:r,init:s,ttl:1e3*Number(i)}),a.getAttribute("data-b64")!==null&&(r=qe(r)),Promise.resolve(new Response(r,s))}return window.fetch(t,e)}function Me(t,e,n){if(Y.size>0){const a=Bt(t,n),r=Y.get(a);if(r){if(performance.now()<r.ttl&&["default","force-cache","only-if-cached",void 0].includes(n==null?void 0:n.cache))return new Response(r.body,r.init);Y.delete(a)}}return window.fetch(e,n)}function Bt(t,e){let a=`script[data-sveltekit-fetched][data-url=${JSON.stringify(t instanceof Request?t.url:t)}]`;if(e!=null&&e.headers||e!=null&&e.body){const r=[];e.headers&&r.push([...new Headers(e.headers)].join(",")),e.body&&(typeof e.body=="string"||ArrayBuffer.isView(e.body))&&r.push(e.body),a+=`[data-hash="${Fe(...r)}"]`}return a}const We=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;function Ye(t){const e=[];return{pattern:t==="/"?/^\/$/:new RegExp(`^${Xe(t).map(a=>{const r=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(a);if(r)return e.push({name:r[1],matcher:r[2],optional:!1,rest:!0,chained:!0}),"(?:/([^]*))?";const s=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(a);if(s)return e.push({name:s[1],matcher:s[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!a)return;const i=a.split(/\[(.+?)\](?!\])/);return"/"+i.map((l,c)=>{if(c%2){if(l.startsWith("x+"))return Pt(String.fromCharCode(parseInt(l.slice(2),16)));if(l.startsWith("u+"))return Pt(String.fromCharCode(...l.slice(2).split("-").map(f=>parseInt(f,16))));const p=We.exec(l),[,h,_,g,d]=p;return e.push({name:g,matcher:d,optional:!!h,rest:!!_,chained:_?c===1&&i[0]==="":!1}),_?"([^]*?)":h?"([^/]*)?":"([^/]+?)"}return Pt(l)}).join("")}).join("")}/?$`),params:e}}function Je(t){return t!==""&&!/^\([^)]+\)$/.test(t)}function Xe(t){return t.slice(1).split("/").filter(Je)}function Qe(t,e,n){const a={},r=t.slice(1),s=r.filter(o=>o!==void 0);let i=0;for(let o=0;o<e.length;o+=1){const l=e[o];let c=r[o-i];if(l.chained&&l.rest&&i&&(c=r.slice(o-i,o+1).filter(p=>p).join("/"),i=0),c===void 0)if(l.rest)c="";else continue;if(!l.matcher||n[l.matcher](c)){a[l.name]=c;const p=e[o+1],h=r[o+1];p&&!p.rest&&p.optional&&h&&l.chained&&(i=0),!p&&!h&&Object.keys(a).length===s.length&&(i=0);continue}if(l.optional&&l.chained){i++;continue}return}if(!i)return a}function Pt(t){return t.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function Ze({nodes:t,server_loads:e,dictionary:n,matchers:a}){const r=new Set(e);return Object.entries(n).map(([o,[l,c,p]])=>{const{pattern:h,params:_}=Ye(o),g={id:o,exec:d=>{const f=h.exec(d);if(f)return Qe(f,_,a)},errors:[1,...p||[]].map(d=>t[d]),layouts:[0,...c||[]].map(i),leaf:s(l)};return g.errors.length=g.layouts.length=Math.max(g.errors.length,g.layouts.length),g});function s(o){const l=o<0;return l&&(o=~o),[l,t[o]]}function i(o){return o===void 0?o:[r.has(o),t[o]]}}function ge(t,e=JSON.parse){try{return e(sessionStorage[t])}catch{}}function ee(t,e,n=JSON.stringify){const a=n(e);try{sessionStorage[t]=a}catch{}}var fe;const U=((fe=globalThis.__sveltekit_91j5zs)==null?void 0:fe.base)??"";var ue;const tn=((ue=globalThis.__sveltekit_91j5zs)==null?void 0:ue.assets)??U??"",en="1775930177938",me="sveltekit:snapshot",_e="sveltekit:scroll",we="sveltekit:states",nn="sveltekit:pageurl",K="sveltekit:history",X="sveltekit:navigation",D={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},Et=location.origin;function Kt(t){if(t instanceof URL)return t;let e=document.baseURI;if(!e){const n=document.getElementsByTagName("base");e=n.length?n[0].href:document.URL}return new URL(t,e)}function V(){return{x:pageXOffset,y:pageYOffset}}function B(t,e){return t.getAttribute(`data-sveltekit-${e}`)}const ne={...D,"":D.hover};function ve(t){let e=t.assignedSlot??t.parentNode;return(e==null?void 0:e.nodeType)===11&&(e=e.host),e}function ye(t,e){for(;t&&t!==e;){if(t.nodeName.toUpperCase()==="A"&&t.hasAttribute("href"))return t;t=ve(t)}}function Ot(t,e,n){let a;try{if(a=new URL(t instanceof SVGAElement?t.href.baseVal:t.href,document.baseURI),n&&a.hash.match(/^#[^/]/)){const o=location.hash.split("#")[1]||"/";a.hash=`#${o}${a.hash}`}}catch{}const r=t instanceof SVGAElement?t.target.baseVal:t.target,s=!a||!!r||St(a,e,n)||(t.getAttribute("rel")||"").split(/\s+/).includes("external"),i=(a==null?void 0:a.origin)===Et&&t.hasAttribute("download");return{url:a,external:s,target:r,download:i}}function mt(t){let e=null,n=null,a=null,r=null,s=null,i=null,o=t;for(;o&&o!==document.documentElement;)a===null&&(a=B(o,"preload-code")),r===null&&(r=B(o,"preload-data")),e===null&&(e=B(o,"keepfocus")),n===null&&(n=B(o,"noscroll")),s===null&&(s=B(o,"reload")),i===null&&(i=B(o,"replacestate")),o=ve(o);function l(c){switch(c){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:ne[a??"off"],preload_data:ne[r??"off"],keepfocus:l(e),noscroll:l(n),reload:l(s),replace_state:l(i)}}function re(t){const e=Dt(t);let n=!0;function a(){n=!0,e.update(i=>i)}function r(i){n=!1,e.set(i)}function s(i){let o;return e.subscribe(l=>{(o===void 0||n&&l!==o)&&i(o=l)})}return{notify:a,set:r,subscribe:s}}const be={v:()=>{}};function rn(){const{set:t,subscribe:e}=Dt(!1);let n;async function a(){clearTimeout(n);try{const r=await fetch(`${tn}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!r.ok)return!1;const i=(await r.json()).version!==en;return i&&(t(!0),be.v(),clearTimeout(n)),i}catch{return!1}}return{subscribe:e,check:a}}function St(t,e,n){return t.origin!==Et||!t.pathname.startsWith(e)?!0:n?t.pathname!==location.pathname:!1}function jn(t){}const ke=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...ke];const an=new Set([...ke]);[...an];function on(t){return t.filter(e=>e!=null)}function Ft(t){return t instanceof qt||t instanceof Vt?t.status:500}function sn(t){return t instanceof Vt?t.text:"Internal Error"}let S,Q,Tt;const ln=te.toString().includes("$$")||/function \w+\(\) \{\}/.test(te.toString()),ae="a:";var rt,at,ot,it,st,lt,ct,ft,de,ut,he,dt,pe;ln?(S={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL(ae)},Q={current:null},Tt={current:!1}):(S=new(de=class{constructor(){A(this,rt,P({}));A(this,at,P(null));A(this,ot,P(null));A(this,it,P({}));A(this,st,P({id:null}));A(this,lt,P({}));A(this,ct,P(-1));A(this,ft,P(new URL(ae)))}get data(){return T(v(this,rt))}set data(e){I(v(this,rt),e)}get form(){return T(v(this,at))}set form(e){I(v(this,at),e)}get error(){return T(v(this,ot))}set error(e){I(v(this,ot),e)}get params(){return T(v(this,it))}set params(e){I(v(this,it),e)}get route(){return T(v(this,st))}set route(e){I(v(this,st),e)}get state(){return T(v(this,lt))}set state(e){I(v(this,lt),e)}get status(){return T(v(this,ct))}set status(e){I(v(this,ct),e)}get url(){return T(v(this,ft))}set url(e){I(v(this,ft),e)}},rt=new WeakMap,at=new WeakMap,ot=new WeakMap,it=new WeakMap,st=new WeakMap,lt=new WeakMap,ct=new WeakMap,ft=new WeakMap,de),Q=new(he=class{constructor(){A(this,ut,P(null))}get current(){return T(v(this,ut))}set current(e){I(v(this,ut),e)}},ut=new WeakMap,he),Tt=new(pe=class{constructor(){A(this,dt,P(!1))}get current(){return T(v(this,dt))}set current(e){I(v(this,dt),e)}},dt=new WeakMap,pe),be.v=()=>Tt.current=!0);function cn(t){Object.assign(S,t)}const oe={spanContext(){return fn},setAttribute(){return this},setAttributes(){return this},addEvent(){return this},setStatus(){return this},updateName(){return this},end(){return this},isRecording(){return!1},recordException(){return this},addLink(){return this},addLinks(){return this}},fn={traceId:"",spanId:"",traceFlags:0},un=new Set(["icon","shortcut icon","apple-touch-icon"]);let M=null;const $=ge(_e)??{},Z=ge(me)??{},C={url:re({}),page:re({}),navigating:Dt(null),updated:rn()};function Gt(t){$[t]=V()}function dn(t,e){let n=t+1;for(;$[n];)delete $[n],n+=1;for(n=e+1;Z[n];)delete Z[n],n+=1}function tt(t,e=!1){return e?location.replace(t.href):location.href=t.href,new Promise(()=>{})}async function Re(){if("serviceWorker"in navigator){const t=await navigator.serviceWorker.getRegistration(U||"/");t&&await t.update()}}function ie(){}let Ht,jt,_t,O,Ct,k;const wt=[],vt=[];let b=null;function $t(){var t;(t=b==null?void 0:b.fork)==null||t.then(e=>e==null?void 0:e.discard()),b=null}const pt=new Map,Ee=new Set,hn=new Set,J=new Set;let w={branch:[],error:null,url:null},Se=!1,yt=!1,se=!0,et=!1,W=!1,xe=!1,Mt=!1,Le,R,L,q;const bt=new Set,le=new Map;async function Dn(t,e,n){var s,i,o,l,c;(s=globalThis.__sveltekit_91j5zs)!=null&&s.data&&globalThis.__sveltekit_91j5zs.data,document.URL!==location.href&&(location.href=location.href),k=t,await((o=(i=t.hooks).init)==null?void 0:o.call(i)),Ht=Ze(t),O=document.documentElement,Ct=e,jt=t.nodes[0],_t=t.nodes[1],jt(),_t(),R=(l=history.state)==null?void 0:l[K],L=(c=history.state)==null?void 0:c[X],R||(R=L=Date.now(),history.replaceState({...history.state,[K]:R,[X]:L},""));const a=$[R];function r(){a&&(history.scrollRestoration="manual",scrollTo(a.x,a.y))}n?(r(),await Sn(Ct,n)):(await F({type:"enter",url:Kt(k.hash?Un(new URL(location.href)):location.href),replace_state:!0}),r()),En()}function pn(){wt.length=0,Mt=!1}function Ue(t){vt.some(e=>e==null?void 0:e.snapshot)&&(Z[t]=vt.map(e=>{var n;return(n=e==null?void 0:e.snapshot)==null?void 0:n.capture()}))}function Ae(t){var e;(e=Z[t])==null||e.forEach((n,a)=>{var r,s;(s=(r=vt[a])==null?void 0:r.snapshot)==null||s.restore(n)})}function ce(){Gt(R),ee(_e,$),Ue(L),ee(me,Z)}async function Pe(t,e,n,a){let r;e.invalidateAll&&$t(),await F({type:"goto",url:Kt(t),keepfocus:e.keepFocus,noscroll:e.noScroll,replace_state:e.replaceState,state:e.state,redirect_count:n,nav_token:a,accept:()=>{e.invalidateAll&&(Mt=!0,r=[...le.keys()]),e.invalidate&&e.invalidate.forEach(Rn)}}),e.invalidateAll&&gt().then(gt).then(()=>{le.forEach(({resource:s},i)=>{var o;r!=null&&r.includes(i)&&((o=s.refresh)==null||o.call(s))})})}async function gn(t){if(t.id!==(b==null?void 0:b.id)){$t();const e={};bt.add(e),b={id:t.id,token:e,promise:Oe({...t,preload:e}).then(n=>(bt.delete(e),n.type==="loaded"&&n.state.error&&$t(),n)),fork:null}}return b.promise}async function It(t){var n;const e=(n=await xt(t,!1))==null?void 0:n.route;e&&await Promise.all([...e.layouts,e.leaf].filter(Boolean).map(a=>a[1]()))}async function Te(t,e,n){var s;const a={params:w.params,route:{id:((s=w.route)==null?void 0:s.id)??null},url:new URL(location.href)};w={...t.state,nav:a};const r=document.querySelector("style[data-sveltekit]");if(r&&r.remove(),Object.assign(S,t.props.page),Le=new k.root({target:e,props:{...t.props,stores:C,components:vt},hydrate:n,sync:!1,transformError:void 0}),await Promise.resolve(),Ae(L),n){const i={from:null,to:{...a,scroll:$[R]??V()},willUnload:!1,type:"enter",complete:Promise.resolve()};J.forEach(o=>o(i))}yt=!0}async function kt({url:t,params:e,branch:n,errors:a,status:r,error:s,route:i,form:o}){let l="never";if(U&&(t.pathname===U||t.pathname===U+"/"))l="always";else for(const d of n)(d==null?void 0:d.slash)!==void 0&&(l=d.slash);t.pathname=Ve(t.pathname,l),t.search=t.search;const c={type:"loaded",state:{url:t,params:e,branch:n,error:s,route:i},props:{constructors:on(n).map(d=>d.node.component),page:Qt(S)}};o!==void 0&&(c.props.form=o);let p={},h=!S,_=0;for(let d=0;d<Math.max(n.length,w.branch.length);d+=1){const f=n[d],u=w.branch[d];(f==null?void 0:f.data)!==(u==null?void 0:u.data)&&(h=!0),f&&(p={...p,...f.data},h&&(c.props[`data_${_}`]=p),_+=1)}return(!w.url||t.href!==w.url.href||w.error!==s||o!==void 0&&o!==S.form||h)&&(c.props.page={error:s,params:e,route:{id:(i==null?void 0:i.id)??null},state:{},status:r,url:new URL(t),form:o??null,data:h?p:S.data}),c}async function Wt({loader:t,parent:e,url:n,params:a,route:r,server_data_node:s}){var p,h,_;let i=null,o=!0;const l={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},c=await t();if((p=c.universal)!=null&&p.load){let g=function(...f){for(const u of f){const{href:m}=new URL(u,n);l.dependencies.add(m)}};const d={tracing:{enabled:!1,root:oe,current:oe},route:new Proxy(r,{get:(f,u)=>(o&&(l.route=!0),f[u])}),params:new Proxy(a,{get:(f,u)=>(o&&l.params.add(u),f[u])}),data:(s==null?void 0:s.data)??null,url:Ke(n,()=>{o&&(l.url=!0)},f=>{o&&l.search_params.add(f)},k.hash),async fetch(f,u){f instanceof Request&&(u={body:f.method==="GET"||f.method==="HEAD"?void 0:await f.blob(),cache:f.cache,credentials:f.credentials,headers:[...f.headers].length>0?f==null?void 0:f.headers:void 0,integrity:f.integrity,keepalive:f.keepalive,method:f.method,mode:f.mode,redirect:f.redirect,referrer:f.referrer,referrerPolicy:f.referrerPolicy,signal:f.signal,...u});const{resolved:m,promise:y}=Ie(f,u,n);return o&&g(m.href),y},setHeaders:()=>{},depends:g,parent(){return o&&(l.parent=!0),e()},untrack(f){o=!1;try{return f()}finally{o=!0}}};i=await c.universal.load.call(null,d)??null}return{node:c,loader:t,server:s,universal:(h=c.universal)!=null&&h.load?{type:"data",data:i,uses:l}:null,data:i??(s==null?void 0:s.data)??null,slash:((_=c.universal)==null?void 0:_.trailingSlash)??(s==null?void 0:s.slash)}}function Ie(t,e,n){let a=t instanceof Request?t.url:t;const r=new URL(a,n);r.origin===n.origin&&(a=r.href.slice(n.origin.length));const s=yt?Me(a,r.href,e):He(a,e);return{resolved:r,promise:s}}function mn(t,e,n,a,r,s){if(Mt)return!0;if(!r)return!1;if(r.parent&&t||r.route&&e||r.url&&n)return!0;for(const i of r.search_params)if(a.has(i))return!0;for(const i of r.params)if(s[i]!==w.params[i])return!0;for(const i of r.dependencies)if(wt.some(o=>o(new URL(i))))return!0;return!1}function Yt(t,e){return(t==null?void 0:t.type)==="data"?t:(t==null?void 0:t.type)==="skip"?e??null:null}function _n(t,e){if(!t)return new Set(e.searchParams.keys());const n=new Set([...t.searchParams.keys(),...e.searchParams.keys()]);for(const a of n){const r=t.searchParams.getAll(a),s=e.searchParams.getAll(a);r.every(i=>s.includes(i))&&s.every(i=>r.includes(i))&&n.delete(a)}return n}function wn({error:t,url:e,route:n,params:a}){return{type:"loaded",state:{error:t,url:e,route:n,params:a,branch:[]},props:{page:Qt(S),constructors:[]}}}async function Oe({id:t,invalidating:e,url:n,params:a,route:r,preload:s}){if((b==null?void 0:b.id)===t)return bt.delete(b.token),b.promise;const{errors:i,layouts:o,leaf:l}=r,c=[...o,l];i.forEach(u=>u==null?void 0:u().catch(()=>{})),c.forEach(u=>u==null?void 0:u[1]().catch(()=>{}));const p=w.url?t!==Rt(w.url):!1,h=w.route?r.id!==w.route.id:!1,_=_n(w.url,n);let g=!1;const d=c.map(async(u,m)=>{var j;if(!u)return;const y=w.branch[m];return u[1]===(y==null?void 0:y.loader)&&!mn(g,h,p,_,(j=y.universal)==null?void 0:j.uses,a)?y:(g=!0,Wt({loader:u[1],url:n,params:a,route:r,parent:async()=>{var ht;const N={};for(let z=0;z<m;z+=1)Object.assign(N,(ht=await d[z])==null?void 0:ht.data);return N},server_data_node:Yt(u[0]?{type:"skip"}:null,u[0]?y==null?void 0:y.server:void 0)}))});for(const u of d)u.catch(()=>{});const f=[];for(let u=0;u<c.length;u+=1)if(c[u])try{f.push(await d[u])}catch(m){if(m instanceof zt)return{type:"redirect",location:m.location};if(bt.has(s))return wn({error:await nt(m,{params:a,url:n,route:{id:r.id}}),url:n,params:a,route:r});let y=Ft(m),x;if(m instanceof qt)x=m.body;else{if(await C.updated.check())return await Re(),await tt(n);x=await nt(m,{params:a,url:n,route:{id:r.id}})}const j=await vn(u,f,i);return j?kt({url:n,params:a,branch:f.slice(0,j.idx).concat(j.node),errors:i,status:y,error:x,route:r}):await Ce(n,{id:r.id},x,y)}else f.push(void 0);return kt({url:n,params:a,branch:f,errors:i,status:200,error:null,route:r,form:e?void 0:null})}async function vn(t,e,n){for(;t--;)if(n[t]){let a=t;for(;!e[a];)a-=1;try{return{idx:a+1,node:{node:await n[t](),loader:n[t],data:{},server:null,universal:null}}}catch{continue}}}async function Jt({status:t,error:e,url:n,route:a}){const r={};let s=null;try{const i=await Wt({loader:jt,url:n,params:r,route:a,parent:()=>Promise.resolve({}),server_data_node:Yt(s)}),o={node:await _t(),loader:_t,universal:null,server:null,data:null};return kt({url:n,params:r,branch:[i,o],status:t,error:e,errors:[],route:null})}catch(i){if(i instanceof zt)return Pe(new URL(i.location,location.href),{},0);throw i}}async function yn(t){const e=t.href;if(pt.has(e))return pt.get(e);let n;try{const a=(async()=>{let r=await k.hooks.reroute({url:new URL(t),fetch:async(s,i)=>Ie(s,i,t).promise})??t;if(typeof r=="string"){const s=new URL(t);k.hash?s.hash=r:s.pathname=r,r=s}return r})();pt.set(e,a),n=await a}catch{pt.delete(e);return}return n}async function xt(t,e){if(t&&!St(t,U,k.hash)){const n=await yn(t);if(!n)return;const a=bn(n);for(const r of Ht){const s=r.exec(a);if(s)return{id:Rt(t),invalidating:e,route:r,params:Be(s),url:t}}}}function bn(t){return ze(k.hash?t.hash.replace(/^#/,"").replace(/[?#].+/,""):t.pathname.slice(U.length))||"/"}function Rt(t){return(k.hash?t.hash.replace(/^#/,""):t.pathname)+t.search}function je({url:t,type:e,intent:n,delta:a,event:r,scroll:s}){let i=!1;const o=Xt(w,n,t,e,s??null);a!==void 0&&(o.navigation.delta=a),r!==void 0&&(o.navigation.event=r);const l={...o.navigation,cancel:()=>{i=!0,o.reject(new Error("navigation cancelled"))}};return et||Ee.forEach(c=>c(l)),i?null:o}async function F({type:t,url:e,popped:n,keepfocus:a,noscroll:r,replace_state:s,state:i={},redirect_count:o=0,nav_token:l={},accept:c=ie,block:p=ie,event:h}){var z;const _=q;q=l;const g=await xt(e,!1),d=t==="enter"?Xt(w,g,e,t):je({url:e,type:t,delta:n==null?void 0:n.delta,intent:g,scroll:n==null?void 0:n.scroll,event:h});if(!d){p(),q===l&&(q=_);return}const f=R,u=L;c(),et=!0,yt&&d.navigation.type!=="enter"&&C.navigating.set(Q.current=d.navigation);let m=g&&await Oe(g);if(!m){if(St(e,U,k.hash))return await tt(e,s);m=await Ce(e,{id:null},await nt(new Vt(404,"Not Found",`Not found: ${e.pathname}`),{url:e,params:{},route:{id:null}}),404,s)}if(e=(g==null?void 0:g.url)||e,q!==l)return d.reject(new Error("navigation aborted")),!1;if(m.type==="redirect"){if(o<20){await F({type:t,url:new URL(m.location,e),popped:n,keepfocus:a,noscroll:r,replace_state:s,state:i,redirect_count:o+1,nav_token:l}),d.fulfil(void 0);return}m=await Jt({status:500,error:await nt(new Error("Redirect loop"),{url:e,params:{},route:{id:null}}),url:e,route:{id:null}})}else m.props.page.status>=400&&await C.updated.check()&&(await Re(),await tt(e,s));if(pn(),Gt(f),Ue(u),m.props.page.url.pathname!==e.pathname&&(e.pathname=m.props.page.url.pathname),i=n?n.state:i,!n){const E=s?0:1,G={[K]:R+=E,[X]:L+=E,[we]:i};(s?history.replaceState:history.pushState).call(history,G,"",e),s||dn(R,L)}const y=g&&(b==null?void 0:b.id)===g.id?b.fork:null;b=null,m.props.page.state=i;let x;if(yt){const E=(await Promise.all(Array.from(hn,H=>H(d.navigation)))).filter(H=>typeof H=="function");if(E.length>0){let H=function(){E.forEach(Ut=>{J.delete(Ut)})};E.push(H),E.forEach(Ut=>{J.add(Ut)})}const G=d.navigation.to;w={...m.state,nav:{params:G.params,route:G.route,url:G.url}},m.props.page&&(m.props.page.url=e);const Lt=y&&await y;Lt?x=Lt.commit():(M=null,Le.$set(m.props),M&&Object.assign(m.props.page,M),cn(m.props.page),x=(z=De)==null?void 0:z()),xe=!0}else await Te(m,Ct,!1);const{activeElement:j}=document;await x,await gt(),await gt();let N=null;if(se){const E=n?n.scroll:r?V():null;E?scrollTo(E.x,E.y):(N=e.hash&&document.getElementById($e(e)))?N.scrollIntoView():scrollTo(0,0)}const ht=document.activeElement!==j&&document.activeElement!==document.body;!a&&!ht&&Ln(e,!N),se=!0,m.props.page&&(M&&Object.assign(m.props.page,M),Object.assign(S,m.props.page)),et=!1,t==="popstate"&&Ae(L),d.fulfil(void 0),d.navigation.to&&(d.navigation.to.scroll=V()),J.forEach(E=>E(d.navigation)),C.navigating.set(Q.current=null)}async function Ce(t,e,n,a,r){return t.origin===Et&&t.pathname===location.pathname&&!Se?await Jt({status:a,error:n,url:t,route:e}):await tt(t,r)}function kn(){let t,e={element:void 0,href:void 0},n;O.addEventListener("mousemove",o=>{const l=o.target;clearTimeout(t),t=setTimeout(()=>{s(l,D.hover)},20)});function a(o){o.defaultPrevented||s(o.composedPath()[0],D.tap)}O.addEventListener("mousedown",a),O.addEventListener("touchstart",a,{passive:!0});const r=new IntersectionObserver(o=>{for(const l of o)l.isIntersecting&&(It(new URL(l.target.href)),r.unobserve(l.target))},{threshold:0});async function s(o,l){const c=ye(o,O),p=c===e.element&&(c==null?void 0:c.href)===e.href&&l>=n;if(!c||p)return;const{url:h,external:_,download:g}=Ot(c,U,k.hash);if(_||g)return;const d=mt(c),f=h&&Rt(w.url)===Rt(h);if(!(d.reload||f))if(l<=d.preload_data){e={element:c,href:c.href},n=D.tap;const u=await xt(h,!1);if(!u)return;gn(u)}else l<=d.preload_code&&(e={element:c,href:c.href},n=l,It(h))}function i(){r.disconnect();for(const o of O.querySelectorAll("a")){const{url:l,external:c,download:p}=Ot(o,U,k.hash);if(c||p)continue;const h=mt(o);h.reload||(h.preload_code===D.viewport&&r.observe(o),h.preload_code===D.eager&&It(l))}}J.add(i),i()}function nt(t,e){if(t instanceof qt)return t.body;const n=Ft(t),a=sn(t);return k.hooks.handleError({error:t,event:e,status:n,message:a})??{message:a}}function qn(t,e={}){return t=new URL(Kt(t)),t.origin!==Et?Promise.reject(new Error("goto: invalid URL")):Pe(t,e,0)}function Rn(t){if(typeof t=="function")wt.push(t);else{const{href:e}=new URL(t,location.href);wt.push(n=>n.href===e)}}function En(){var e;history.scrollRestoration="manual",addEventListener("beforeunload",n=>{let a=!1;if(ce(),!et){const r=Xt(w,void 0,null,"leave"),s={...r.navigation,cancel:()=>{a=!0,r.reject(new Error("navigation cancelled"))}};Ee.forEach(i=>i(s))}a?(n.preventDefault(),n.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&ce()}),(e=navigator.connection)!=null&&e.saveData||kn(),O.addEventListener("click",async n=>{if(n.button||n.which!==1||n.metaKey||n.ctrlKey||n.shiftKey||n.altKey||n.defaultPrevented)return;const a=ye(n.composedPath()[0],O);if(!a)return;const{url:r,external:s,target:i,download:o}=Ot(a,U,k.hash);if(!r)return;if(i==="_parent"||i==="_top"){if(window.parent!==window)return}else if(i&&i!=="_self")return;const l=mt(a);if(!(a instanceof SVGAElement)&&r.protocol!==location.protocol&&!(r.protocol==="https:"||r.protocol==="http:")||o)return;const[p,h]=(k.hash?r.hash.replace(/^#/,""):r.href).split("#"),_=p===At(location);if(s||l.reload&&(!_||!h)){je({url:r,type:"link",event:n})?et=!0:n.preventDefault();return}if(h!==void 0&&_){const[,g]=w.url.href.split("#");if(g===h){if(n.preventDefault(),h===""||h==="top"&&a.ownerDocument.getElementById("top")===null)scrollTo({top:0});else{const d=a.ownerDocument.getElementById(decodeURIComponent(h));d&&(d.scrollIntoView(),d.focus())}return}if(W=!0,Gt(R),t(r),!l.replace_state)return;W=!1}n.preventDefault(),await new Promise(g=>{requestAnimationFrame(()=>{setTimeout(g,0)}),setTimeout(g,100)}),await F({type:"link",url:r,keepfocus:l.keepfocus,noscroll:l.noscroll,replace_state:l.replace_state??r.href===location.href,event:n})}),O.addEventListener("submit",n=>{if(n.defaultPrevented)return;const a=HTMLFormElement.prototype.cloneNode.call(n.target),r=n.submitter;if(((r==null?void 0:r.formTarget)||a.target)==="_blank"||((r==null?void 0:r.formMethod)||a.method)!=="get")return;const o=new URL((r==null?void 0:r.hasAttribute("formaction"))&&(r==null?void 0:r.formAction)||a.action);if(St(o,U,!1))return;const l=n.target,c=mt(l);if(c.reload)return;n.preventDefault(),n.stopPropagation();const p=new FormData(l,r);o.search=new URLSearchParams(p).toString(),F({type:"form",url:o,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??o.href===location.href,event:n})}),addEventListener("popstate",async n=>{var a;if(!Nt){if((a=n.state)!=null&&a[K]){const r=n.state[K];if(q={},r===R)return;const s=$[r],i=n.state[we]??{},o=new URL(n.state[nn]??location.href),l=n.state[X],c=w.url?At(location)===At(w.url):!1;if(l===L&&(xe||c)){i!==S.state&&(S.state=i),t(o),$[R]=V(),s&&scrollTo(s.x,s.y),R=r;return}const h=r-R;await F({type:"popstate",url:o,popped:{state:i,scroll:s,delta:h},accept:()=>{R=r,L=l},block:()=>{history.go(-h)},nav_token:q,event:n})}else if(!W){const r=new URL(location.href);t(r),k.hash&&location.reload()}}}),addEventListener("hashchange",()=>{W&&(W=!1,history.replaceState({...history.state,[K]:++R,[X]:L},"",location.href))});for(const n of document.querySelectorAll("link"))un.has(n.rel)&&(n.href=n.href);addEventListener("pageshow",n=>{n.persisted&&C.navigating.set(Q.current=null)});function t(n){w.url=S.url=n,C.page.set(Qt(S)),C.page.notify()}}async function Sn(t,{status:e=200,error:n,node_ids:a,params:r,route:s,server_route:i,data:o,form:l}){Se=!0;const c=new URL(location.href);let p;({params:r={},route:s={id:null}}=await xt(c,!1)||{}),p=Ht.find(({id:g})=>g===s.id);let h,_=!0;try{const g=a.map(async(f,u)=>{const m=o[u];return m!=null&&m.uses&&(m.uses=xn(m.uses)),Wt({loader:k.nodes[f],url:c,params:r,route:s,parent:async()=>{const y={};for(let x=0;x<u;x+=1)Object.assign(y,(await g[x]).data);return y},server_data_node:Yt(m)})}),d=await Promise.all(g);if(p){const f=p.layouts;for(let u=0;u<f.length;u++)f[u]||d.splice(u,0,void 0)}h=await kt({url:c,params:r,branch:d,status:e,error:n,errors:p==null?void 0:p.errors,form:l,route:p??null})}catch(g){if(g instanceof zt){await tt(new URL(g.location,location.href));return}h=await Jt({status:Ft(g),error:await nt(g,{url:c,params:r,route:s}),url:c,route:s}),t.textContent="",_=!1}h.props.page&&(h.props.page.state={}),await Te(h,t,_)}function xn(t){return{dependencies:new Set((t==null?void 0:t.dependencies)??[]),params:new Set((t==null?void 0:t.params)??[]),parent:!!(t!=null&&t.parent),route:!!(t!=null&&t.route),url:!!(t!=null&&t.url),search_params:new Set((t==null?void 0:t.search_params)??[])}}let Nt=!1;function Ln(t,e=!0){const n=document.querySelector("[autofocus]");if(n)n.focus();else{const a=$e(t);if(a&&document.getElementById(a)){const{x:s,y:i}=V();setTimeout(()=>{const o=history.state;Nt=!0,location.replace(new URL(`#${a}`,location.href)),history.replaceState(o,"",t),e&&scrollTo(s,i),Nt=!1})}else{const s=document.body,i=s.getAttribute("tabindex");s.tabIndex=-1,s.focus({preventScroll:!0,focusVisible:!1}),i!==null?s.setAttribute("tabindex",i):s.removeAttribute("tabindex")}const r=getSelection();if(r&&r.type!=="None"){const s=[];for(let i=0;i<r.rangeCount;i+=1)s.push(r.getRangeAt(i));setTimeout(()=>{if(r.rangeCount===s.length){for(let i=0;i<r.rangeCount;i+=1){const o=s[i],l=r.getRangeAt(i);if(o.commonAncestorContainer!==l.commonAncestorContainer||o.startContainer!==l.startContainer||o.endContainer!==l.endContainer||o.startOffset!==l.startOffset||o.endOffset!==l.endOffset)return}r.removeAllRanges()}})}}}function Xt(t,e,n,a,r=null){var c,p;let s,i;const o=new Promise((h,_)=>{s=h,i=_});return o.catch(()=>{}),{navigation:{from:{params:t.params,route:{id:((c=t.route)==null?void 0:c.id)??null},url:t.url,scroll:V()},to:n&&{params:(e==null?void 0:e.params)??null,route:{id:((p=e==null?void 0:e.route)==null?void 0:p.id)??null},url:n,scroll:r},willUnload:!e,type:a,complete:o},fulfil:s,reject:i}}function Qt(t){return{data:t.data,error:t.error,form:t.form,params:t.params,route:t.route,state:t.state,status:t.status,url:t.url}}function Un(t){const e=new URL(t);return e.hash=decodeURIComponent(t.hash),e}function $e(t){let e;if(k.hash){const[,,n]=t.hash.split("#",3);e=n??""}else e=t.hash.slice(1);return decodeURIComponent(e)}export{Dn as a,qn as g,jn as l,S as p,C as s};
@@ -1 +1 @@
1
- import{c as _,a as s,f as g}from"./BK3WtZwv.js";import"./lk5LaiqA.js";import{at as d,aC as b,aD as h,f as v,au as $,a5 as k,i as n,z as y,az as B}from"./BbWUOQ_m.js";import{s as z,a as j}from"./DjNLq3TF.js";import{i as x}from"./Dt2CddFe.js";import{s as C}from"./B2Q1a1-H.js";import{i as D}from"./CVzlFH44.js";import{p as H}from"./DcAshVxe.js";var P=g('<a class="back-to-parent admin-toolbar-btn admin-toolbar-btn--secondary svelte-1md38m6" data-sveltekit-preload-data="hover" aria-label="返回上一层">返回</a>');function I(i,p){d(p,!1);const r=()=>j(H,"$page",f),[f,l]=z(),e=y();function m(t){const a=t.split("/").filter(Boolean);return a.length===0?null:a.length===1?a[0]==="admin"?null:a[0]==="plugins"||a[0]==="logs"?"/":null:(a.pop(),"/"+a.join("/"))}b(()=>r(),()=>{k(e,m(r().url.pathname))}),h(),D();var o=_(),c=v(o);{var u=t=>{var a=P();B(()=>C(a,"href",n(e))),s(t,a)};x(c,t=>{n(e)&&t(u)})}s(i,o),$(),l()}export{I as B};
1
+ import{c as _,a as s,f as g}from"./BK3WtZwv.js";import"./lk5LaiqA.js";import{at as d,aC as b,aD as h,f as v,au as $,a5 as k,i as n,z as y,az as B}from"./BbWUOQ_m.js";import{s as z,a as j}from"./DjNLq3TF.js";import{i as x}from"./Dt2CddFe.js";import{s as C}from"./B2Q1a1-H.js";import{i as D}from"./CVzlFH44.js";import{p as H}from"./C85CNwD2.js";var P=g('<a class="back-to-parent admin-toolbar-btn admin-toolbar-btn--secondary svelte-1md38m6" data-sveltekit-preload-data="hover" aria-label="返回上一层">返回</a>');function I(i,p){d(p,!1);const r=()=>j(H,"$page",f),[f,l]=z(),e=y();function m(t){const a=t.split("/").filter(Boolean);return a.length===0?null:a.length===1?a[0]==="admin"?null:a[0]==="plugins"||a[0]==="logs"?"/":null:(a.pop(),"/"+a.join("/"))}b(()=>r(),()=>{k(e,m(r().url.pathname))}),h(),D();var o=_(),c=v(o);{var u=t=>{var a=P();B(()=>C(a,"href",n(e))),s(t,a)};x(c,t=>{n(e)&&t(u)})}s(i,o),$(),l()}export{I as B};
@@ -1,4 +1,4 @@
1
- var Os=Object.defineProperty;var Xr=e=>{throw TypeError(e)};var Cs=(e,t,n)=>t in e?Os(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ot=(e,t,n)=>Cs(e,typeof t!="symbol"?t+"":t,n),Yo=(e,t,n)=>t.has(e)||Xr("Cannot "+n);var f=(e,t,n)=>(Yo(e,t,"read from private field"),n?n.call(e):t.get(e)),A=(e,t,n)=>t.has(e)?Xr("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),j=(e,t,n,r)=>(Yo(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),B=(e,t,n)=>(Yo(e,t,"access private method"),n);import{c as dt,a as z,f as at,p as Oi,t as Xe}from"./BK3WtZwv.js";import"./lk5LaiqA.js";import{o as Ci}from"./Bp63qm3L.js";import{aA as W,i as o,b4 as yt,a4 as qo,an as he,a5 as d,at as ie,f as X,aj as ne,au as se,aw as M,av as S,ax as C,aC as wn,aD as Ss,ay as zt,az as kt,U as st,u as te,z as G,aq as Jo}from"./BbWUOQ_m.js";import{f as As,o as bn,d as zs,a as Et,s as Lt,e as ks,r as Es}from"./DMWEh-Ek.js";import{s as Fs,a as Yr}from"./DjNLq3TF.js";import{i as xt}from"./Dt2CddFe.js";import{e as Zo,i as qr}from"./BQqoDzLx.js";import{e as xn,r as Ye,a as qe,c as Ts,s as Qo}from"./B2Q1a1-H.js";import{b as Je}from"./Dw782Tjs.js";import{i as Ds}from"./CVzlFH44.js";import{g as Jr}from"./D5GvRCv7.js";import{p as Go}from"./DcAshVxe.js";import{s as $o}from"./tB7QMF3U.js";import{R as Ms,P as Ls,h as Zr,S as Is,a as Ws,E as Ns,r as Hs,s as Rs,c as Bs}from"./CtijX1u3.js";import{a as ee}from"./CBY2biv-.js";import{e as Vs,s as _e,C as Eo,f as Ks,g as _n,u as Si,h as Us,i as js,j as Xs,w as Pn,k as Ys,l as Bt,m as U,n as Qe,F as qs,S as Qr,E as Js,o as Zs,T as Qs,p as Gs,q as Te,r as Gr,t as $s,v as wo,x as ta,y as ea,z as Ai,A as na,B as oa,G as ra,H as zi,J as Ze,I as Ce,D as $r,P as vo,a as ti,b as ei,c as ni,d as go}from"./mW5RwvnK.js";import{P as ia}from"./CWNeClHp.js";import{s as Se}from"./B-OsL1Ct.js";import{p as k,s as Nt,r as ln,l as Ae}from"./xtNWTdbD.js";function sa(e){return typeof e=="function"}function oi(e){return sa(e)?e():e}var pe,$e,tn,en,ve,Co,So,nn;class aa{constructor(t,n={box:"border-box"}){A(this,pe,{width:0,height:0});A(this,$e,!1);A(this,tn);A(this,en);A(this,ve);A(this,Co,W(()=>{var t;return(t=o(f(this,nn)))==null||t(),this.getSize().width}));A(this,So,W(()=>{var t;return(t=o(f(this,nn)))==null||t(),this.getSize().height}));A(this,nn,W(()=>{const t=oi(f(this,en));if(t)return As(n=>{if(!f(this,ve))return;const r=new(f(this,ve)).ResizeObserver(i=>{j(this,$e,!0);for(const s of i){const a=f(this,tn).box==="content-box"?s.contentBoxSize:s.borderBoxSize,l=Array.isArray(a)?a:[a];f(this,pe).width=l.reduce((h,m)=>Math.max(h,m.inlineSize),0),f(this,pe).height=l.reduce((h,m)=>Math.max(h,m.blockSize),0)}n()});return r.observe(t),()=>{j(this,$e,!1),r.disconnect()}})}));j(this,ve,n.window??Vs),j(this,tn,n),j(this,en,t),j(this,pe,{width:0,height:0})}calculateSize(){const t=oi(f(this,en));if(!t||!f(this,ve))return;const n=t.offsetWidth,r=t.offsetHeight;if(f(this,tn).box==="border-box")return{width:n,height:r};const i=f(this,ve).getComputedStyle(t),s=parseFloat(i.paddingLeft)+parseFloat(i.paddingRight),a=parseFloat(i.paddingTop)+parseFloat(i.paddingBottom),l=parseFloat(i.borderLeftWidth)+parseFloat(i.borderRightWidth),h=parseFloat(i.borderTopWidth)+parseFloat(i.borderBottomWidth),m=n-s-l,y=r-a-h;return{width:m,height:y}}getSize(){return f(this,$e)?f(this,pe):this.calculateSize()??f(this,pe)}get current(){var t;return(t=o(f(this,nn)))==null||t(),this.getSize()}get width(){return o(f(this,Co))}get height(){return o(f(this,So))}}pe=new WeakMap,$e=new WeakMap,tn=new WeakMap,en=new WeakMap,ve=new WeakMap,Co=new WeakMap,So=new WeakMap,nn=new WeakMap;const la=["top","right","bottom","left"],Pe=Math.min,It=Math.max,bo=Math.round,mo=Math.floor,Zt=e=>({x:e,y:e}),ca={left:"right",right:"left",bottom:"top",top:"bottom"};function rr(e,t,n){return It(e,Pe(t,n))}function oe(e,t){return typeof e=="function"?e(t):e}function re(e){return e.split("-")[0]}function cn(e){return e.split("-")[1]}function yr(e){return e==="x"?"y":"x"}function wr(e){return e==="y"?"height":"width"}function Jt(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function br(e){return yr(Jt(e))}function ua(e,t,n){n===void 0&&(n=!1);const r=cn(e),i=br(e),s=wr(i);let a=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=xo(a)),[a,xo(a)]}function da(e){const t=xo(e);return[ir(e),t,ir(t)]}function ir(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const ri=["left","right"],ii=["right","left"],fa=["top","bottom"],ha=["bottom","top"];function pa(e,t,n){switch(e){case"top":case"bottom":return n?t?ii:ri:t?ri:ii;case"left":case"right":return t?fa:ha;default:return[]}}function va(e,t,n,r){const i=cn(e);let s=pa(re(e),n==="start",r);return i&&(s=s.map(a=>a+"-"+i),t&&(s=s.concat(s.map(ir)))),s}function xo(e){const t=re(e);return ca[t]+e.slice(t.length)}function ga(e){return{top:0,right:0,bottom:0,left:0,...e}}function ki(e){return typeof e!="number"?ga(e):{top:e,right:e,bottom:e,left:e}}function _o(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function si(e,t,n){let{reference:r,floating:i}=e;const s=Jt(t),a=br(t),l=wr(a),h=re(t),m=s==="y",y=r.x+r.width/2-i.width/2,v=r.y+r.height/2-i.height/2,g=r[l]/2-i[l]/2;let p;switch(h){case"top":p={x:y,y:r.y-i.height};break;case"bottom":p={x:y,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:v};break;case"left":p={x:r.x-i.width,y:v};break;default:p={x:r.x,y:r.y}}switch(cn(t)){case"start":p[a]-=g*(n&&m?-1:1);break;case"end":p[a]+=g*(n&&m?-1:1);break}return p}async function ma(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:s,rects:a,elements:l,strategy:h}=e,{boundary:m="clippingAncestors",rootBoundary:y="viewport",elementContext:v="floating",altBoundary:g=!1,padding:p=0}=oe(t,e),w=ki(p),O=l[g?v==="floating"?"reference":"floating":v],x=_o(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(O)))==null||n?O:O.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:m,rootBoundary:y,strategy:h})),D=v==="floating"?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,T=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),E=await(s.isElement==null?void 0:s.isElement(T))?await(s.getScale==null?void 0:s.getScale(T))||{x:1,y:1}:{x:1,y:1},L=_o(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:D,offsetParent:T,strategy:h}):D);return{top:(x.top-L.top+w.top)/E.y,bottom:(L.bottom-x.bottom+w.bottom)/E.y,left:(x.left-L.left+w.left)/E.x,right:(L.right-x.right+w.right)/E.x}}const ya=50,wa=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:s=[],platform:a}=n,l=a.detectOverflow?a:{...a,detectOverflow:ma},h=await(a.isRTL==null?void 0:a.isRTL(t));let m=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:y,y:v}=si(m,r,h),g=r,p=0;const w={};for(let P=0;P<s.length;P++){const O=s[P];if(!O)continue;const{name:x,fn:D}=O,{x:T,y:E,data:L,reset:F}=await D({x:y,y:v,initialPlacement:r,placement:g,strategy:i,middlewareData:w,rects:m,platform:l,elements:{reference:e,floating:t}});y=T??y,v=E??v,w[x]={...w[x],...L},F&&p<ya&&(p++,typeof F=="object"&&(F.placement&&(g=F.placement),F.rects&&(m=F.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:i}):F.rects),{x:y,y:v}=si(m,g,h)),P=-1)}return{x:y,y:v,placement:g,strategy:i,middlewareData:w}},ba=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:s,platform:a,elements:l,middlewareData:h}=t,{element:m,padding:y=0}=oe(e,t)||{};if(m==null)return{};const v=ki(y),g={x:n,y:r},p=br(i),w=wr(p),P=await a.getDimensions(m),O=p==="y",x=O?"top":"left",D=O?"bottom":"right",T=O?"clientHeight":"clientWidth",E=s.reference[w]+s.reference[p]-g[p]-s.floating[w],L=g[p]-s.reference[p],F=await(a.getOffsetParent==null?void 0:a.getOffsetParent(m));let Q=F?F[T]:0;(!Q||!await(a.isElement==null?void 0:a.isElement(F)))&&(Q=l.floating[T]||s.floating[w]);const ft=E/2-L/2,R=Q/2-P[w]/2-1,$=Pe(v[x],R),et=Pe(v[D],R),tt=$,nt=Q-P[w]-et,Y=Q/2-P[w]/2+ft,ht=rr(tt,Y,nt),rt=!h.arrow&&cn(i)!=null&&Y!==ht&&s.reference[w]/2-(Y<tt?$:et)-P[w]/2<0,J=rt?Y<tt?Y-tt:Y-nt:0;return{[p]:g[p]+J,data:{[p]:ht,centerOffset:Y-ht-J,...rt&&{alignmentOffset:J}},reset:rt}}}),xa=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:s,rects:a,initialPlacement:l,platform:h,elements:m}=t,{mainAxis:y=!0,crossAxis:v=!0,fallbackPlacements:g,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:P=!0,...O}=oe(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const x=re(i),D=Jt(l),T=re(l)===l,E=await(h.isRTL==null?void 0:h.isRTL(m.floating)),L=g||(T||!P?[xo(l)]:da(l)),F=w!=="none";!g&&F&&L.push(...va(l,P,w,E));const Q=[l,...L],ft=await h.detectOverflow(t,O),R=[];let $=((r=s.flip)==null?void 0:r.overflows)||[];if(y&&R.push(ft[x]),v){const Y=ua(i,a,E);R.push(ft[Y[0]],ft[Y[1]])}if($=[...$,{placement:i,overflows:R}],!R.every(Y=>Y<=0)){var et,tt;const Y=(((et=s.flip)==null?void 0:et.index)||0)+1,ht=Q[Y];if(ht&&(!(v==="alignment"?D!==Jt(ht):!1)||$.every(V=>Jt(V.placement)===D?V.overflows[0]>0:!0)))return{data:{index:Y,overflows:$},reset:{placement:ht}};let rt=(tt=$.filter(J=>J.overflows[0]<=0).sort((J,V)=>J.overflows[1]-V.overflows[1])[0])==null?void 0:tt.placement;if(!rt)switch(p){case"bestFit":{var nt;const J=(nt=$.filter(V=>{if(F){const Z=Jt(V.placement);return Z===D||Z==="y"}return!0}).map(V=>[V.placement,V.overflows.filter(Z=>Z>0).reduce((Z,it)=>Z+it,0)]).sort((V,Z)=>V[1]-Z[1])[0])==null?void 0:nt[0];J&&(rt=J);break}case"initialPlacement":rt=l;break}if(i!==rt)return{reset:{placement:rt}}}return{}}}};function ai(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function li(e){return la.some(t=>e[t]>=0)}const _a=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:i="referenceHidden",...s}=oe(e,t);switch(i){case"referenceHidden":{const a=await r.detectOverflow(t,{...s,elementContext:"reference"}),l=ai(a,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:li(l)}}}case"escaped":{const a=await r.detectOverflow(t,{...s,altBoundary:!0}),l=ai(a,n.floating);return{data:{escapedOffsets:l,escaped:li(l)}}}default:return{}}}}},Ei=new Set(["left","top"]);async function Pa(e,t){const{placement:n,platform:r,elements:i}=e,s=await(r.isRTL==null?void 0:r.isRTL(i.floating)),a=re(n),l=cn(n),h=Jt(n)==="y",m=Ei.has(a)?-1:1,y=s&&h?-1:1,v=oe(t,e);let{mainAxis:g,crossAxis:p,alignmentAxis:w}=typeof v=="number"?{mainAxis:v,crossAxis:0,alignmentAxis:null}:{mainAxis:v.mainAxis||0,crossAxis:v.crossAxis||0,alignmentAxis:v.alignmentAxis};return l&&typeof w=="number"&&(p=l==="end"?w*-1:w),h?{x:p*y,y:g*m}:{x:g*m,y:p*y}}const Oa=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:s,placement:a,middlewareData:l}=t,h=await Pa(t,e);return a===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:i+h.x,y:s+h.y,data:{...h,placement:a}}}}},Ca=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i,platform:s}=t,{mainAxis:a=!0,crossAxis:l=!1,limiter:h={fn:x=>{let{x:D,y:T}=x;return{x:D,y:T}}},...m}=oe(e,t),y={x:n,y:r},v=await s.detectOverflow(t,m),g=Jt(re(i)),p=yr(g);let w=y[p],P=y[g];if(a){const x=p==="y"?"top":"left",D=p==="y"?"bottom":"right",T=w+v[x],E=w-v[D];w=rr(T,w,E)}if(l){const x=g==="y"?"top":"left",D=g==="y"?"bottom":"right",T=P+v[x],E=P-v[D];P=rr(T,P,E)}const O=h.fn({...t,[p]:w,[g]:P});return{...O,data:{x:O.x-n,y:O.y-r,enabled:{[p]:a,[g]:l}}}}}},Sa=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:s,middlewareData:a}=t,{offset:l=0,mainAxis:h=!0,crossAxis:m=!0}=oe(e,t),y={x:n,y:r},v=Jt(i),g=yr(v);let p=y[g],w=y[v];const P=oe(l,t),O=typeof P=="number"?{mainAxis:P,crossAxis:0}:{mainAxis:0,crossAxis:0,...P};if(h){const T=g==="y"?"height":"width",E=s.reference[g]-s.floating[T]+O.mainAxis,L=s.reference[g]+s.reference[T]-O.mainAxis;p<E?p=E:p>L&&(p=L)}if(m){var x,D;const T=g==="y"?"width":"height",E=Ei.has(re(i)),L=s.reference[v]-s.floating[T]+(E&&((x=a.offset)==null?void 0:x[v])||0)+(E?0:O.crossAxis),F=s.reference[v]+s.reference[T]+(E?0:((D=a.offset)==null?void 0:D[v])||0)-(E?O.crossAxis:0);w<L?w=L:w>F&&(w=F)}return{[g]:p,[v]:w}}}},Aa=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:s,platform:a,elements:l}=t,{apply:h=()=>{},...m}=oe(e,t),y=await a.detectOverflow(t,m),v=re(i),g=cn(i),p=Jt(i)==="y",{width:w,height:P}=s.floating;let O,x;v==="top"||v==="bottom"?(O=v,x=g===(await(a.isRTL==null?void 0:a.isRTL(l.floating))?"start":"end")?"left":"right"):(x=v,O=g==="end"?"top":"bottom");const D=P-y.top-y.bottom,T=w-y.left-y.right,E=Pe(P-y[O],D),L=Pe(w-y[x],T),F=!t.middlewareData.shift;let Q=E,ft=L;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(ft=T),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(Q=D),F&&!g){const $=It(y.left,0),et=It(y.right,0),tt=It(y.top,0),nt=It(y.bottom,0);p?ft=w-2*($!==0||et!==0?$+et:It(y.left,y.right)):Q=P-2*(tt!==0||nt!==0?tt+nt:It(y.top,y.bottom))}await h({...t,availableWidth:ft,availableHeight:Q});const R=await a.getDimensions(l.floating);return w!==R.width||P!==R.height?{reset:{rects:!0}}:{}}}};function Fo(){return typeof window<"u"}function un(e){return Fi(e)?(e.nodeName||"").toLowerCase():"#document"}function Wt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Qt(e){var t;return(t=(Fi(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Fi(e){return Fo()?e instanceof Node||e instanceof Wt(e).Node:!1}function Vt(e){return Fo()?e instanceof Element||e instanceof Wt(e).Element:!1}function ae(e){return Fo()?e instanceof HTMLElement||e instanceof Wt(e).HTMLElement:!1}function ci(e){return!Fo()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Wt(e).ShadowRoot}function oo(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Kt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!=="inline"&&i!=="contents"}function za(e){return/^(table|td|th)$/.test(un(e))}function To(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const ka=/transform|translate|scale|rotate|perspective|filter/,Ea=/paint|layout|strict|content/,Ee=e=>!!e&&e!=="none";let tr;function xr(e){const t=Vt(e)?Kt(e):e;return Ee(t.transform)||Ee(t.translate)||Ee(t.scale)||Ee(t.rotate)||Ee(t.perspective)||!_r()&&(Ee(t.backdropFilter)||Ee(t.filter))||ka.test(t.willChange||"")||Ea.test(t.contain||"")}function Fa(e){let t=Oe(e);for(;ae(t)&&!an(t);){if(xr(t))return t;if(To(t))return null;t=Oe(t)}return null}function _r(){return tr==null&&(tr=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),tr}function an(e){return/^(html|body|#document)$/.test(un(e))}function Kt(e){return Wt(e).getComputedStyle(e)}function Do(e){return Vt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Oe(e){if(un(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ci(e)&&e.host||Qt(e);return ci(t)?t.host:t}function Ti(e){const t=Oe(e);return an(t)?e.ownerDocument?e.ownerDocument.body:e.body:ae(t)&&oo(t)?t:Ti(t)}function On(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=Ti(e),s=i===((r=e.ownerDocument)==null?void 0:r.body),a=Wt(i);if(s){const l=sr(a);return t.concat(a,a.visualViewport||[],oo(i)?i:[],l&&n?On(l):[])}else return t.concat(i,On(i,[],n))}function sr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Di(e){const t=Kt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=ae(e),s=i?e.offsetWidth:n,a=i?e.offsetHeight:r,l=bo(n)!==s||bo(r)!==a;return l&&(n=s,r=a),{width:n,height:r,$:l}}function Pr(e){return Vt(e)?e:e.contextElement}function Ge(e){const t=Pr(e);if(!ae(t))return Zt(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:s}=Di(t);let a=(s?bo(n.width):n.width)/r,l=(s?bo(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const Ta=Zt(0);function Mi(e){const t=Wt(e);return!_r()||!t.visualViewport?Ta:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Da(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Wt(e)?!1:t}function Ie(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),s=Pr(e);let a=Zt(1);t&&(r?Vt(r)&&(a=Ge(r)):a=Ge(e));const l=Da(s,n,r)?Mi(s):Zt(0);let h=(i.left+l.x)/a.x,m=(i.top+l.y)/a.y,y=i.width/a.x,v=i.height/a.y;if(s){const g=Wt(s),p=r&&Vt(r)?Wt(r):r;let w=g,P=sr(w);for(;P&&r&&p!==w;){const O=Ge(P),x=P.getBoundingClientRect(),D=Kt(P),T=x.left+(P.clientLeft+parseFloat(D.paddingLeft))*O.x,E=x.top+(P.clientTop+parseFloat(D.paddingTop))*O.y;h*=O.x,m*=O.y,y*=O.x,v*=O.y,h+=T,m+=E,w=Wt(P),P=sr(w)}}return _o({width:y,height:v,x:h,y:m})}function Mo(e,t){const n=Do(e).scrollLeft;return t?t.left+n:Ie(Qt(e)).left+n}function Li(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Mo(e,n),i=n.top+t.scrollTop;return{x:r,y:i}}function Ma(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const s=i==="fixed",a=Qt(r),l=t?To(t.floating):!1;if(r===a||l&&s)return n;let h={scrollLeft:0,scrollTop:0},m=Zt(1);const y=Zt(0),v=ae(r);if((v||!v&&!s)&&((un(r)!=="body"||oo(a))&&(h=Do(r)),v)){const p=Ie(r);m=Ge(r),y.x=p.x+r.clientLeft,y.y=p.y+r.clientTop}const g=a&&!v&&!s?Li(a,h):Zt(0);return{width:n.width*m.x,height:n.height*m.y,x:n.x*m.x-h.scrollLeft*m.x+y.x+g.x,y:n.y*m.y-h.scrollTop*m.y+y.y+g.y}}function La(e){return Array.from(e.getClientRects())}function Ia(e){const t=Qt(e),n=Do(e),r=e.ownerDocument.body,i=It(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=It(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Mo(e);const l=-n.scrollTop;return Kt(r).direction==="rtl"&&(a+=It(t.clientWidth,r.clientWidth)-i),{width:i,height:s,x:a,y:l}}const ui=25;function Wa(e,t){const n=Wt(e),r=Qt(e),i=n.visualViewport;let s=r.clientWidth,a=r.clientHeight,l=0,h=0;if(i){s=i.width,a=i.height;const y=_r();(!y||y&&t==="fixed")&&(l=i.offsetLeft,h=i.offsetTop)}const m=Mo(r);if(m<=0){const y=r.ownerDocument,v=y.body,g=getComputedStyle(v),p=y.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,w=Math.abs(r.clientWidth-v.clientWidth-p);w<=ui&&(s-=w)}else m<=ui&&(s+=m);return{width:s,height:a,x:l,y:h}}function Na(e,t){const n=Ie(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,s=ae(e)?Ge(e):Zt(1),a=e.clientWidth*s.x,l=e.clientHeight*s.y,h=i*s.x,m=r*s.y;return{width:a,height:l,x:h,y:m}}function di(e,t,n){let r;if(t==="viewport")r=Wa(e,n);else if(t==="document")r=Ia(Qt(e));else if(Vt(t))r=Na(t,n);else{const i=Mi(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return _o(r)}function Ii(e,t){const n=Oe(e);return n===t||!Vt(n)||an(n)?!1:Kt(n).position==="fixed"||Ii(n,t)}function Ha(e,t){const n=t.get(e);if(n)return n;let r=On(e,[],!1).filter(l=>Vt(l)&&un(l)!=="body"),i=null;const s=Kt(e).position==="fixed";let a=s?Oe(e):e;for(;Vt(a)&&!an(a);){const l=Kt(a),h=xr(a);!h&&l.position==="fixed"&&(i=null),(s?!h&&!i:!h&&l.position==="static"&&!!i&&(i.position==="absolute"||i.position==="fixed")||oo(a)&&!h&&Ii(e,a))?r=r.filter(y=>y!==a):i=l,a=Oe(a)}return t.set(e,r),r}function Ra(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const a=[...n==="clippingAncestors"?To(t)?[]:Ha(t,this._c):[].concat(n),r],l=di(t,a[0],i);let h=l.top,m=l.right,y=l.bottom,v=l.left;for(let g=1;g<a.length;g++){const p=di(t,a[g],i);h=It(p.top,h),m=Pe(p.right,m),y=Pe(p.bottom,y),v=It(p.left,v)}return{width:m-v,height:y-h,x:v,y:h}}function Ba(e){const{width:t,height:n}=Di(e);return{width:t,height:n}}function Va(e,t,n){const r=ae(t),i=Qt(t),s=n==="fixed",a=Ie(e,!0,s,t);let l={scrollLeft:0,scrollTop:0};const h=Zt(0);function m(){h.x=Mo(i)}if(r||!r&&!s)if((un(t)!=="body"||oo(i))&&(l=Do(t)),r){const p=Ie(t,!0,s,t);h.x=p.x+t.clientLeft,h.y=p.y+t.clientTop}else i&&m();s&&!r&&i&&m();const y=i&&!r&&!s?Li(i,l):Zt(0),v=a.left+l.scrollLeft-h.x-y.x,g=a.top+l.scrollTop-h.y-y.y;return{x:v,y:g,width:a.width,height:a.height}}function er(e){return Kt(e).position==="static"}function fi(e,t){if(!ae(e)||Kt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Qt(e)===n&&(n=n.ownerDocument.body),n}function Wi(e,t){const n=Wt(e);if(To(e))return n;if(!ae(e)){let i=Oe(e);for(;i&&!an(i);){if(Vt(i)&&!er(i))return i;i=Oe(i)}return n}let r=fi(e,t);for(;r&&za(r)&&er(r);)r=fi(r,t);return r&&an(r)&&er(r)&&!xr(r)?n:r||Fa(e)||n}const Ka=async function(e){const t=this.getOffsetParent||Wi,n=this.getDimensions,r=await n(e.floating);return{reference:Va(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Ua(e){return Kt(e).direction==="rtl"}const ja={convertOffsetParentRelativeRectToViewportRelativeRect:Ma,getDocumentElement:Qt,getClippingRect:Ra,getOffsetParent:Wi,getElementRects:Ka,getClientRects:La,getDimensions:Ba,getScale:Ge,isElement:Vt,isRTL:Ua};function Ni(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Xa(e,t){let n=null,r;const i=Qt(e);function s(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function a(l,h){l===void 0&&(l=!1),h===void 0&&(h=1),s();const m=e.getBoundingClientRect(),{left:y,top:v,width:g,height:p}=m;if(l||t(),!g||!p)return;const w=mo(v),P=mo(i.clientWidth-(y+g)),O=mo(i.clientHeight-(v+p)),x=mo(y),T={rootMargin:-w+"px "+-P+"px "+-O+"px "+-x+"px",threshold:It(0,Pe(1,h))||1};let E=!0;function L(F){const Q=F[0].intersectionRatio;if(Q!==h){if(!E)return a();Q?a(!1,Q):r=setTimeout(()=>{a(!1,1e-7)},1e3)}Q===1&&!Ni(m,e.getBoundingClientRect())&&a(),E=!1}try{n=new IntersectionObserver(L,{...T,root:i.ownerDocument})}catch{n=new IntersectionObserver(L,T)}n.observe(e)}return a(!0),s}function Ya(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:h=!1}=r,m=Pr(e),y=i||s?[...m?On(m):[],...t?On(t):[]]:[];y.forEach(x=>{i&&x.addEventListener("scroll",n,{passive:!0}),s&&x.addEventListener("resize",n)});const v=m&&l?Xa(m,n):null;let g=-1,p=null;a&&(p=new ResizeObserver(x=>{let[D]=x;D&&D.target===m&&p&&t&&(p.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var T;(T=p)==null||T.observe(t)})),n()}),m&&!h&&p.observe(m),t&&p.observe(t));let w,P=h?Ie(e):null;h&&O();function O(){const x=Ie(e);P&&!Ni(P,x)&&n(),P=x,w=requestAnimationFrame(O)}return n(),()=>{var x;y.forEach(D=>{i&&D.removeEventListener("scroll",n),s&&D.removeEventListener("resize",n)}),v==null||v(),(x=p)==null||x.disconnect(),p=null,h&&cancelAnimationFrame(w)}}const qa=Oa,Ja=Ca,Za=xa,Qa=Aa,Ga=_a,$a=ba,tl=Sa,el=(e,t,n)=>{const r=new Map,i={platform:ja,...n},s={...i.platform,_c:r};return wa(e,t,{...i,platform:s})};function Fe(e){return typeof e=="function"?e():e}function Hi(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function hi(e,t){const n=Hi(e);return Math.round(t*n)/n}function pi(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 nl(e){const t=e.whileElementsMounted,n=W(()=>Fe(e.open)??!0),r=W(()=>Fe(e.middleware)),i=W(()=>Fe(e.transform)??!0),s=W(()=>Fe(e.placement)??"bottom"),a=W(()=>Fe(e.strategy)??"absolute"),l=W(()=>Fe(e.sideOffset)??0),h=W(()=>Fe(e.alignOffset)??0),m=e.reference;let y=yt(0),v=yt(0);const g=_e(null);let p=yt(qo(o(a))),w=yt(qo(o(s))),P=yt(qo({})),O=yt(!1),x=!1,D=0;const T=W(()=>{const $=g.current?hi(g.current,o(y)):o(y),et=g.current?hi(g.current,o(v)):o(v);return o(i)?{position:o(p),left:"0",top:"0",transform:`translate(${$}px, ${et}px)`,...g.current&&Hi(g.current)>=1.5&&{willChange:"transform"}}:{position:o(p),left:`${$}px`,top:`${et}px`}});let E;function L(){if(m.current===null||g.current===null)return;const $=m.current,et=g.current,tt=++D;el($,et,{middleware:o(r),placement:o(s),strategy:o(a)}).then(nt=>{if(tt!==D||m.current!==$||g.current!==et)return;if(ol($)){d(P,{...o(P),hide:{...o(P).hide,referenceHidden:!0}},!0);return}if(!o(n)&&o(y)!==0&&o(v)!==0){const ht=Math.max(Math.abs(o(l)),Math.abs(o(h)),15);if(nt.x<=ht&&nt.y<=ht)return}d(y,nt.x,!0),d(v,nt.y,!0),d(p,nt.strategy,!0),d(w,nt.placement,!0),d(P,nt.middlewareData,!0),d(O,!0)})}function F(){typeof E=="function"&&(E(),E=void 0),D++}function Q(){if(F(),t===void 0){L();return}o(n)&&(m.current===null||g.current===null||(E=t(m.current,g.current,L)))}function ft(){!o(n)&&g.current===null&&d(O,!1)}function R(){return[o(r),o(s),o(a),o(l),o(h),o(n)]}return he(()=>{t===void 0&&o(n)&&L()}),he(Q),he(()=>{if(t!==void 0){if(R(),!o(n)){x=!1;return}if(!o(O)){x=!1;return}if(!x){x=!0;return}L()}}),he(ft),he(()=>F),{floating:g,reference:m,get strategy(){return o(p)},get placement(){return o(w)},get middlewareData(){return o(P)},get isPositioned(){return o(O)},get floatingStyles(){return o(T)},get update(){return L}}}function ol(e){return e instanceof Element?!e.isConnected||e instanceof HTMLElement&&e.hidden?!0:e.getClientRects().length===0:!1}const rl={top:"bottom",right:"left",bottom:"top",left:"right"},Or=new Eo("Floating.Root"),vi=new Eo("Floating.Content"),Cr=new Eo("Floating.Root");class Po{constructor(){ot(this,"anchorNode",_e(null));ot(this,"customAnchorNode",_e(null));ot(this,"triggerNode",_e(null));he(()=>{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})}static create(t=!1){return t?Cr.set(new Po):Or.set(new Po)}}var Cn,Sn,An,Ao,zn,zo,kn,En,Fn,Tn,Dn,Mn,Ln,In,Wn,Nn,Hn,Rn,Bn,Vn,Kn,Un,jn,Xn;const ko=class ko{constructor(t,n){ot(this,"opts");ot(this,"root");ot(this,"contentRef",_e(null));ot(this,"wrapperRef",_e(null));ot(this,"arrowRef",_e(null));ot(this,"contentAttachment",_n(this.contentRef));ot(this,"wrapperAttachment",_n(this.wrapperRef));ot(this,"arrowAttachment",_n(this.arrowRef));ot(this,"arrowId",_e(Si()));A(this,Cn,W(()=>{if(typeof this.opts.style=="string")return Us(this.opts.style);if(!this.opts.style)return{}}));A(this,Sn);A(this,An,new aa(()=>this.arrowRef.current??void 0));A(this,Ao,W(()=>{var t;return((t=f(this,An))==null?void 0:t.width)??0}));A(this,zn,W(()=>{var t;return((t=f(this,An))==null?void 0:t.height)??0}));A(this,zo,W(()=>{var t;return((t=this.opts.side)==null?void 0:t.current)+(this.opts.align.current!=="center"?`-${this.opts.align.current}`:"")}));A(this,kn,W(()=>Array.isArray(this.opts.collisionBoundary.current)?this.opts.collisionBoundary.current:[this.opts.collisionBoundary.current]));A(this,En,W(()=>o(f(this,kn)).length>0));A(this,Fn,W(()=>({padding:this.opts.collisionPadding.current,boundary:o(f(this,kn)).filter(js),altBoundary:this.hasExplicitBoundaries})));A(this,Tn,yt(void 0));A(this,Dn,yt(void 0));A(this,Mn,yt(void 0));A(this,Ln,yt(void 0));A(this,In,W(()=>[qa({mainAxis:this.opts.sideOffset.current+o(f(this,zn)),alignmentAxis:this.opts.alignOffset.current}),this.opts.avoidCollisions.current&&Ja({mainAxis:!0,crossAxis:!1,limiter:this.opts.sticky.current==="partial"?tl():void 0,...this.detectOverflowOptions}),this.opts.avoidCollisions.current&&Za({...this.detectOverflowOptions}),Qa({...this.detectOverflowOptions,apply:({rects:t,availableWidth:n,availableHeight:r})=>{const{width:i,height:s}=t.reference;d(f(this,Tn),n,!0),d(f(this,Dn),r,!0),d(f(this,Mn),i,!0),d(f(this,Ln),s,!0)}}),this.arrowRef.current&&$a({element:this.arrowRef.current,padding:this.opts.arrowPadding.current}),il({arrowWidth:o(f(this,Ao)),arrowHeight:o(f(this,zn))}),this.opts.hideWhenDetached.current&&Ga({strategy:"referenceHidden",...this.detectOverflowOptions})].filter(Boolean)));ot(this,"floating");A(this,Wn,W(()=>sl(this.floating.placement)));A(this,Nn,W(()=>al(this.floating.placement)));A(this,Hn,W(()=>{var t;return((t=this.floating.middlewareData.arrow)==null?void 0:t.x)??0}));A(this,Rn,W(()=>{var t;return((t=this.floating.middlewareData.arrow)==null?void 0:t.y)??0}));A(this,Bn,W(()=>{var t;return((t=this.floating.middlewareData.arrow)==null?void 0:t.centerOffset)!==0}));A(this,Vn,yt());A(this,Kn,W(()=>rl[this.placedSide]));A(this,Un,W(()=>{var t,n,r;return{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":`${(t=this.floating.middlewareData.transformOrigin)==null?void 0:t.x} ${(n=this.floating.middlewareData.transformOrigin)==null?void 0:n.y}`,"--bits-floating-available-width":`${o(f(this,Tn))}px`,"--bits-floating-available-height":`${o(f(this,Dn))}px`,"--bits-floating-anchor-width":`${o(f(this,Mn))}px`,"--bits-floating-anchor-height":`${o(f(this,Ln))}px`,...((r=this.floating.middlewareData.hide)==null?void 0:r.referenceHidden)&&{visibility:"hidden","pointer-events":"none"},...o(f(this,Cn))},dir:this.opts.dir.current,...this.wrapperAttachment}}));A(this,jn,W(()=>({"data-side":this.placedSide,"data-align":this.placedAlign,style:Xs({...o(f(this,Cn))}),...this.contentAttachment})));A(this,Xn,W(()=>({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})));this.opts=t,this.root=n,j(this,Sn,t.updatePositionStrategy),t.customAnchor&&(this.root.customAnchorNode.current=t.customAnchor.current),Pn(()=>t.customAnchor.current,r=>{this.root.customAnchorNode.current=r}),this.floating=nl({strategy:()=>this.opts.strategy.current,placement:()=>o(f(this,zo)),middleware:()=>this.middleware,reference:this.root.anchorNode,whileElementsMounted:(...r)=>{var s;return Ya(...r,{animationFrame:((s=f(this,Sn))==null?void 0:s.current)==="always"})},open:()=>this.opts.enabled.current,sideOffset:()=>this.opts.sideOffset.current,alignOffset:()=>this.opts.alignOffset.current}),he(()=>{var r;this.floating.isPositioned&&((r=this.opts.onPlaced)==null||r.current())}),Pn(()=>this.contentRef.current,r=>{if(!r||!this.opts.enabled.current)return;const i=Ys(r),s=i.requestAnimationFrame(()=>{if(this.contentRef.current!==r||!this.opts.enabled.current)return;const a=i.getComputedStyle(r).zIndex;a!==this.contentZIndex&&(this.contentZIndex=a)});return()=>{i.cancelAnimationFrame(s)}}),he(()=>{this.floating.floating.current=this.wrapperRef.current})}static create(t,n=!1){return n?vi.set(new ko(t,Cr.get())):vi.set(new ko(t,Or.get()))}get hasExplicitBoundaries(){return o(f(this,En))}set hasExplicitBoundaries(t){d(f(this,En),t)}get detectOverflowOptions(){return o(f(this,Fn))}set detectOverflowOptions(t){d(f(this,Fn),t)}get middleware(){return o(f(this,In))}set middleware(t){d(f(this,In),t)}get placedSide(){return o(f(this,Wn))}set placedSide(t){d(f(this,Wn),t)}get placedAlign(){return o(f(this,Nn))}set placedAlign(t){d(f(this,Nn),t)}get arrowX(){return o(f(this,Hn))}set arrowX(t){d(f(this,Hn),t)}get arrowY(){return o(f(this,Rn))}set arrowY(t){d(f(this,Rn),t)}get cannotCenterArrow(){return o(f(this,Bn))}set cannotCenterArrow(t){d(f(this,Bn),t)}get contentZIndex(){return o(f(this,Vn))}set contentZIndex(t){d(f(this,Vn),t,!0)}get arrowBaseSide(){return o(f(this,Kn))}set arrowBaseSide(t){d(f(this,Kn),t)}get wrapperProps(){return o(f(this,Un))}set wrapperProps(t){d(f(this,Un),t)}get props(){return o(f(this,jn))}set props(t){d(f(this,jn),t)}get arrowStyle(){return o(f(this,Xn))}set arrowStyle(t){d(f(this,Xn),t)}};Cn=new WeakMap,Sn=new WeakMap,An=new WeakMap,Ao=new WeakMap,zn=new WeakMap,zo=new WeakMap,kn=new WeakMap,En=new WeakMap,Fn=new WeakMap,Tn=new WeakMap,Dn=new WeakMap,Mn=new WeakMap,Ln=new WeakMap,In=new WeakMap,Wn=new WeakMap,Nn=new WeakMap,Hn=new WeakMap,Rn=new WeakMap,Bn=new WeakMap,Vn=new WeakMap,Kn=new WeakMap,Un=new WeakMap,jn=new WeakMap,Xn=new WeakMap;let ar=ko;class Oo{constructor(t,n){ot(this,"opts");ot(this,"root");this.opts=t,this.root=n,t.virtualEl&&t.virtualEl.current?n.triggerNode=Ks(t.virtualEl.current):n.triggerNode=t.ref}static create(t,n=!1){return n?new Oo(t,Cr.get()):new Oo(t,Or.get())}}function il(e){return{name:"transformOrigin",options:e,fn(t){var O,x,D;const{placement:n,rects:r,middlewareData:i}=t,a=((O=i.arrow)==null?void 0:O.centerOffset)!==0,l=a?0:e.arrowWidth,h=a?0:e.arrowHeight,[m,y]=Sr(n),v={start:"0%",center:"50%",end:"100%"}[y],g=(((x=i.arrow)==null?void 0:x.x)??0)+l/2,p=(((D=i.arrow)==null?void 0:D.y)??0)+h/2;let w="",P="";return m==="bottom"?(w=a?v:`${g}px`,P=`${-h}px`):m==="top"?(w=a?v:`${g}px`,P=`${r.floating.height+h}px`):m==="right"?(w=`${-h}px`,P=a?v:`${p}px`):m==="left"&&(w=`${r.floating.width+h}px`,P=a?v:`${p}px`),{data:{x:w,y:P}}}}}function Sr(e){const[t,n="center"]=e.split("-");return[t,n]}function sl(e){return Sr(e)[0]}function al(e){return Sr(e)[1]}function ll(e,t){ie(t,!0);let n=k(t,"tooltip",3,!1);Po.create(n());var r=dt(),i=X(r);Bt(i,()=>t.children??ne),z(e,r),se()}function cl(e,t){ie(t,!0);let n=k(t,"tooltip",3,!1);Oo.create({id:U(()=>t.id),virtualEl:U(()=>t.virtualEl),ref:t.ref},n());var r=dt(),i=X(r);Bt(i,()=>t.children??ne),z(e,r),se()}function ul(e,t){ie(t,!0);let n=k(t,"side",3,"bottom"),r=k(t,"sideOffset",3,0),i=k(t,"align",3,"center"),s=k(t,"alignOffset",3,0),a=k(t,"arrowPadding",3,0),l=k(t,"avoidCollisions",3,!0),h=k(t,"collisionBoundary",19,()=>[]),m=k(t,"collisionPadding",3,0),y=k(t,"hideWhenDetached",3,!1),v=k(t,"onPlaced",3,()=>{}),g=k(t,"sticky",3,"partial"),p=k(t,"updatePositionStrategy",3,"optimized"),w=k(t,"strategy",3,"fixed"),P=k(t,"dir",3,"ltr"),O=k(t,"style",19,()=>({})),x=k(t,"wrapperId",19,Si),D=k(t,"customAnchor",3,null),T=k(t,"tooltip",3,!1);const E=ar.create({side:U(()=>n()),sideOffset:U(()=>r()),align:U(()=>i()),alignOffset:U(()=>s()),id:U(()=>t.id),arrowPadding:U(()=>a()),avoidCollisions:U(()=>l()),collisionBoundary:U(()=>h()),collisionPadding:U(()=>m()),hideWhenDetached:U(()=>y()),onPlaced:U(()=>v()),sticky:U(()=>g()),updatePositionStrategy:U(()=>p()),strategy:U(()=>w()),dir:U(()=>P()),style:U(()=>O()),enabled:U(()=>t.enabled),wrapperId:U(()=>x()),customAnchor:U(()=>D())},T()),L=W(()=>Qe(E.wrapperProps,{style:{pointerEvents:"auto"}}));var F=dt(),Q=X(F);Bt(Q,()=>t.content??ne,()=>({props:E.props,wrapperProps:o(L)})),z(e,F),se()}function dl(e,t){ie(t,!0),Ci(()=>{var i;(i=t.onPlaced)==null||i.call(t)});var n=dt(),r=X(n);Bt(r,()=>t.content??ne,()=>({props:{},wrapperProps:{}})),z(e,n),se()}function fl(e,t){let n=k(t,"isStatic",3,!1),r=ln(t,["$$slots","$$events","$$legacy","content","isStatic","onPlaced"]);var i=dt(),s=X(i);{var a=h=>{dl(h,{get content(){return t.content},get onPlaced(){return t.onPlaced}})},l=h=>{ul(h,Nt({get content(){return t.content},get onPlaced(){return t.onPlaced}},()=>r))};xt(s,h=>{n()?h(a):h(l,-1)})}z(e,i)}var hl=at("<!> <!>",1);function Ri(e,t){ie(t,!0);let n=k(t,"interactOutsideBehavior",3,"close"),r=k(t,"trapFocus",3,!0),i=k(t,"isValidEvent",3,()=>!1),s=k(t,"customAnchor",3,null),a=k(t,"isStatic",3,!1),l=k(t,"tooltip",3,!1),h=k(t,"contentPointerEvents",3,"auto"),m=ln(t,["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled","ref","tooltip","contentPointerEvents"]);const y=W(()=>t.preventScroll??!0),v=W(()=>t.strategy??(o(y)?"fixed":"absolute"));fl(e,{get isStatic(){return a()},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 o(v)},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 l()},content:(p,w)=>{let P=()=>w==null?void 0:w().props,O=()=>w==null?void 0:w().wrapperProps;var x=hl(),D=X(x);{var T=F=>{Qr(F,{get preventScroll(){return o(y)}})},E=F=>{Qr(F,{get preventScroll(){return o(y)}})};xt(D,F=>{t.forceMount&&t.enabled?F(T):t.forceMount||F(E,1)})}var L=M(D,2);qs(L,{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:(Q,ft)=>{let R=()=>ft==null?void 0:ft().props;Js(Q,{get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get enabled(){return t.enabled},get ref(){return t.ref},children:($,et)=>{Zs($,{get id(){return t.id},get onInteractOutside(){return t.onInteractOutside},get onFocusOutside(){return t.onFocusOutside},get interactOutsideBehavior(){return n()},get isValidEvent(){return i()},get enabled(){return t.enabled},get ref(){return t.ref},children:(nt,Y)=>{let ht=()=>Y==null?void 0:Y().props;Qs(nt,{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:(rt,J)=>{var V=dt(),Z=X(V);{let it=W(()=>({props:Qe(m,P(),ht(),R(),{style:{pointerEvents:h()}}),wrapperProps:O()}));Bt(Z,()=>t.popper??ne,()=>o(it))}z(rt,V)},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{focusScope:!0}}),z(p,x)},$$slots:{content:!0}}),se()}function pl(e,t){let n=k(t,"interactOutsideBehavior",3,"close"),r=k(t,"trapFocus",3,!0),i=k(t,"isValidEvent",3,()=>!1),s=k(t,"customAnchor",3,null),a=k(t,"isStatic",3,!1),l=ln(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 h=dt(),m=X(h);{var y=v=>{Ri(v,Nt({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 a()},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 i()},get onFocusOutside(){return t.onFocusOutside},forceMount:!1,get ref(){return t.ref}},()=>l))};xt(m,v=>{t.shouldRender&&v(y)})}z(e,h)}function vl(e,t){let n=k(t,"interactOutsideBehavior",3,"close"),r=k(t,"trapFocus",3,!0),i=k(t,"isValidEvent",3,()=>!1),s=k(t,"customAnchor",3,null),a=k(t,"isStatic",3,!1),l=ln(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"]);Ri(e,Nt({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 a()},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 i()},get onFocusOutside(){return t.onFocusOutside}},()=>l,{forceMount:!0}))}function nr(e,t){const[n,r]=e;let i=!1;const s=t.length;for(let a=0,l=s-1;a<s;l=a++){const[h,m]=t[a]??[0,0],[y,v]=t[l]??[0,0];m>=r!=v>=r&&n<=(y-h)*(r-m)/(v-m)+h&&(i=!i)}return i}function or(e,t){return e[0]>=t.left&&e[0]<=t.right&&e[1]>=t.top&&e[1]<=t.bottom}function gi(e,t){const n=e.left+e.width/2,r=e.top+e.height/2,i=t.left+t.width/2,s=t.top+t.height/2,a=i-n,l=s-r;return Math.abs(a)>Math.abs(l)?a>0?"right":"left":l>0?"bottom":"top"}var ge,on,rn,Yt,Dt,De,Me,me,ye,q,yo,lr,cr,Bi,Vi,Xt,ur,Ki,Ui;class gl{constructor(t){A(this,q);A(this,ge);A(this,on);A(this,rn);A(this,Yt,null);A(this,Dt,null);A(this,De,[]);A(this,Me,null);A(this,me,null);A(this,ye,null);j(this,ge,t),j(this,on,t.buffer??1);const n=t.transitIntentTimeout;j(this,rn,typeof n=="number"&&n>0?n:null),Pn([t.triggerNode,t.contentNode,t.enabled],([r,i,s])=>{if(!r||!i||!s){j(this,Me,null),B(this,q,Xt).call(this);return}f(this,Me)&&f(this,Me)!==r&&B(this,q,Xt).call(this),j(this,Me,r);const a=Gs(r),l=g=>{B(this,q,Vi).call(this,[g.clientX,g.clientY],r,i)},h=g=>{var P,O;const p=g.relatedTarget;if(Te(p)&&i.contains(p))return;const w=((O=(P=f(this,ge)).ignoredTargets)==null?void 0:O.call(P))??[];Te(p)&&w.some(x=>x===p||x.contains(p))||(j(this,De,Te(p)&&w.length>0?w.filter(x=>p.contains(x)):[]),j(this,Yt,[g.clientX,g.clientY]),j(this,Dt,"content"),B(this,q,lr).call(this))},m=()=>{B(this,q,Xt).call(this)},y=()=>{B(this,q,Xt).call(this)},v=g=>{const p=g.relatedTarget;Te(p)&&r.contains(p)||(j(this,Yt,[g.clientX,g.clientY]),j(this,Dt,"trigger"),B(this,q,lr).call(this))};return[bn(a,"pointermove",l),bn(r,"pointerleave",h),bn(r,"pointerenter",m),bn(i,"pointerenter",y),bn(i,"pointerleave",v)].reduce((g,p)=>()=>{g(),p()},()=>{})})}}ge=new WeakMap,on=new WeakMap,rn=new WeakMap,Yt=new WeakMap,Dt=new WeakMap,De=new WeakMap,Me=new WeakMap,me=new WeakMap,ye=new WeakMap,q=new WeakSet,yo=function(){f(this,me)!==null&&(cancelAnimationFrame(f(this,me)),j(this,me,null))},lr=function(){B(this,q,yo).call(this),j(this,me,requestAnimationFrame(()=>{j(this,me,null),!(!f(this,Yt)||!f(this,Dt))&&(B(this,q,Xt).call(this),f(this,ge).onPointerExit())}))},cr=function(){f(this,ye)!==null&&(clearTimeout(f(this,ye)),j(this,ye,null))},Bi=function(){f(this,rn)!==null&&(B(this,q,cr).call(this),j(this,ye,window.setTimeout(()=>{j(this,ye,null),!(!f(this,Yt)||!f(this,Dt))&&(B(this,q,Xt).call(this),f(this,ge).onPointerExit())},f(this,rn))))},Vi=function(t,n,r){if(!f(this,Yt)||!f(this,Dt))return;B(this,q,yo).call(this),B(this,q,Bi).call(this);const i=n.getBoundingClientRect(),s=r.getBoundingClientRect();if(f(this,Dt)==="content"&&or(t,s)){B(this,q,Xt).call(this);return}if(f(this,Dt)==="trigger"&&or(t,i)){B(this,q,Xt).call(this);return}if(f(this,Dt)==="content"&&f(this,De).length>0)for(const y of f(this,De)){const v=y.getBoundingClientRect();if(or(t,v))return;const g=gi(i,v),p=B(this,q,ur).call(this,i,v,g);if(p&&nr(t,p))return}const a=gi(i,s),l=B(this,q,ur).call(this,i,s,a);if(l&&nr(t,l))return;const h=f(this,Dt)==="content"?s:i,m=B(this,q,Ki).call(this,f(this,Yt),h,a,f(this,Dt));nr(t,m)||(B(this,q,Xt).call(this),f(this,ge).onPointerExit())},Xt=function(){j(this,Yt,null),j(this,Dt,null),j(this,De,[]),B(this,q,yo).call(this),B(this,q,cr).call(this)},ur=function(t,n,r){const i=f(this,on);switch(r){case"top":return[[Math.min(t.left,n.left)-i,t.top],[Math.min(t.left,n.left)-i,n.bottom],[Math.max(t.right,n.right)+i,n.bottom],[Math.max(t.right,n.right)+i,t.top]];case"bottom":return[[Math.min(t.left,n.left)-i,t.bottom],[Math.min(t.left,n.left)-i,n.top],[Math.max(t.right,n.right)+i,n.top],[Math.max(t.right,n.right)+i,t.bottom]];case"left":return[[t.left,Math.min(t.top,n.top)-i],[n.right,Math.min(t.top,n.top)-i],[n.right,Math.max(t.bottom,n.bottom)+i],[t.left,Math.max(t.bottom,n.bottom)+i]];case"right":return[[t.right,Math.min(t.top,n.top)-i],[n.left,Math.min(t.top,n.top)-i],[n.left,Math.max(t.bottom,n.bottom)+i],[t.right,Math.max(t.bottom,n.bottom)+i]]}},Ki=function(t,n,r,i){const s=f(this,on)*4,[a,l]=t;switch(i==="trigger"?B(this,q,Ui).call(this,r):r){case"top":return[[a-s,l+s],[a+s,l+s],[n.right+s,n.bottom],[n.right+s,n.top],[n.left-s,n.top],[n.left-s,n.bottom]];case"bottom":return[[a-s,l-s],[a+s,l-s],[n.right+s,n.top],[n.right+s,n.bottom],[n.left-s,n.bottom],[n.left-s,n.top]];case"left":return[[a+s,l-s],[a+s,l+s],[n.right,n.bottom+s],[n.left,n.bottom+s],[n.left,n.top-s],[n.right,n.top-s]];case"right":return[[a-s,l-s],[a-s,l+s],[n.left,n.bottom+s],[n.right,n.bottom+s],[n.right,n.top-s],[n.left,n.top-s]]}},Ui=function(t){switch(t){case"top":return"bottom";case"bottom":return"top";case"left":return"right";case"right":return"left"}};const dr=ra({component:"popover",parts:["root","trigger","content","close","overlay"]}),Ar=new Eo("Popover.Root");var Yn,qn,Jn,Zn,Qn,Gn,$n,we,be,qt,fe;const zr=class zr{constructor(t){A(this,qt);ot(this,"opts");A(this,Yn,yt(null));ot(this,"contentPresence");A(this,qn,yt(null));A(this,Jn,yt(null));ot(this,"overlayPresence");A(this,Zn,yt(!1));A(this,Qn,yt(!1));A(this,Gn,yt(!1));A(this,$n,yt(0));A(this,we,null);A(this,be,null);this.opts=t,this.contentPresence=new Gr({ref:U(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new Gr({ref:U(()=>this.overlayNode),open:this.opts.open}),Pn(()=>this.opts.open.current,n=>{n||(this.openedViaHover=!1,this.hasInteractedWithContent=!1,B(this,qt,fe).call(this))})}static create(t){return Ar.set(new zr(t))}get contentNode(){return o(f(this,Yn))}set contentNode(t){d(f(this,Yn),t,!0)}get triggerNode(){return o(f(this,qn))}set triggerNode(t){d(f(this,qn),t,!0)}get overlayNode(){return o(f(this,Jn))}set overlayNode(t){d(f(this,Jn),t,!0)}get openedViaHover(){return o(f(this,Zn))}set openedViaHover(t){d(f(this,Zn),t,!0)}get hasInteractedWithContent(){return o(f(this,Qn))}set hasInteractedWithContent(t){d(f(this,Qn),t,!0)}get hoverCooldown(){return o(f(this,Gn))}set hoverCooldown(t){d(f(this,Gn),t,!0)}get closeDelay(){return o(f(this,$n))}set closeDelay(t){d(f(this,$n),t,!0)}setDomContext(t){j(this,be,t)}toggleOpen(){B(this,qt,fe).call(this),this.opts.open.current=!this.opts.open.current}handleClose(){B(this,qt,fe).call(this),this.opts.open.current&&(this.opts.open.current=!1)}handleHoverOpen(){B(this,qt,fe).call(this),!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||(B(this,qt,fe).call(this),this.closeDelay<=0?this.opts.open.current=!1:f(this,be)&&j(this,we,f(this,be).setTimeout(()=>{this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1),j(this,we,null)},this.closeDelay))))}cancelDelayedClose(){B(this,qt,fe).call(this)}markInteraction(){this.hasInteractedWithContent=!0,B(this,qt,fe).call(this)}};Yn=new WeakMap,qn=new WeakMap,Jn=new WeakMap,Zn=new WeakMap,Qn=new WeakMap,Gn=new WeakMap,$n=new WeakMap,we=new WeakMap,be=new WeakMap,qt=new WeakSet,fe=function(){f(this,we)!==null&&f(this,be)&&(f(this,be).clearTimeout(f(this,we)),j(this,we,null))};let fr=zr;var xe,sn,Le,Ht,pr,vr,gr,ji,to;const kr=class kr{constructor(t,n){A(this,Ht);ot(this,"opts");ot(this,"root");ot(this,"attachment");ot(this,"domContext");A(this,xe,null);A(this,sn,null);A(this,Le,yt(!1));A(this,to,W(()=>({id:this.opts.id.current,"aria-haspopup":"dialog","aria-expanded":na(this.root.opts.open.current),"data-state":Ai(this.root.opts.open.current),"aria-controls":B(this,Ht,ji).call(this),[dr.trigger]:"",disabled:this.opts.disabled.current,onkeydown:this.onkeydown,onclick:this.onclick,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment})));this.opts=t,this.root=n,this.attachment=_n(this.opts.ref,r=>this.root.triggerNode=r),this.domContext=new $s(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),Pn(()=>this.opts.closeDelay.current,r=>{this.root.closeDelay=r})}static create(t){return new kr(t,Ar.get())}onpointerenter(t){if(this.opts.disabled.current||!this.opts.openOnHover.current||wo(t)||(d(f(this,Le),!0),B(this,Ht,vr).call(this),this.root.cancelDelayedClose(),this.root.opts.open.current||this.root.hoverCooldown))return;const n=this.opts.openDelay.current;n<=0?this.root.handleHoverOpen():j(this,xe,this.domContext.setTimeout(()=>{this.root.handleHoverOpen(),j(this,xe,null)},n))}onpointerleave(t){this.opts.disabled.current||this.opts.openOnHover.current&&(wo(t)||(d(f(this,Le),!1),B(this,Ht,pr).call(this),this.root.hoverCooldown=!1))}onclick(t){if(!this.opts.disabled.current&&t.button===0){if(B(this,Ht,gr).call(this),o(f(this,Le))&&this.root.opts.open.current&&this.root.openedViaHover){this.root.openedViaHover=!1,this.root.hasInteractedWithContent=!0;return}o(f(this,Le))&&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===ta||t.key===ea)&&(t.preventDefault(),B(this,Ht,gr).call(this),this.root.toggleOpen())}get props(){return o(f(this,to))}set props(t){d(f(this,to),t)}};xe=new WeakMap,sn=new WeakMap,Le=new WeakMap,Ht=new WeakSet,pr=function(){f(this,xe)!==null&&(this.domContext.clearTimeout(f(this,xe)),j(this,xe,null))},vr=function(){f(this,sn)!==null&&(this.domContext.clearTimeout(f(this,sn)),j(this,sn,null))},gr=function(){B(this,Ht,pr).call(this),B(this,Ht,vr).call(this)},ji=function(){var t,n;if(this.root.opts.open.current&&((t=this.root.contentNode)!=null&&t.id))return(n=this.root.contentNode)==null?void 0:n.id},to=new WeakMap;let hr=kr;var eo,no;const Er=class Er{constructor(t,n){ot(this,"opts");ot(this,"root");ot(this,"attachment");ot(this,"onInteractOutside",t=>{if(this.opts.onInteractOutside.current(t),t.defaultPrevented||!Te(t.target))return;const n=t.target.closest(dr.selector("trigger"));if(!(n&&n===this.root.triggerNode)){if(this.opts.customAnchor.current){if(Te(this.opts.customAnchor.current)){if(this.opts.customAnchor.current.contains(t.target))return}else if(typeof this.opts.customAnchor.current=="string"){const r=document.querySelector(this.opts.customAnchor.current);if(r&&r.contains(t.target))return}}this.root.handleClose()}});ot(this,"onEscapeKeydown",t=>{this.opts.onEscapeKeydown.current(t),!t.defaultPrevented&&this.root.handleClose()});A(this,eo,W(()=>({open:this.root.opts.open.current})));A(this,no,W(()=>({id:this.opts.id.current,tabindex:-1,"data-state":Ai(this.root.opts.open.current),[dr.content]:"",style:{pointerEvents:"auto",contain:"layout style"},onpointerdown:this.onpointerdown,onfocusin:this.onfocusin,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment})));ot(this,"popperProps",{onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown});this.opts=t,this.root=n,this.attachment=_n(this.opts.ref,r=>this.root.contentNode=r),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 gl({triggerNode:()=>this.root.triggerNode,contentNode:()=>this.root.contentNode,enabled:()=>this.root.opts.open.current&&this.root.openedViaHover&&!this.root.hasInteractedWithContent,onPointerExit:()=>{this.root.handleDelayedHoverClose()}})}static create(t){return new Er(t,Ar.get())}onpointerdown(t){this.root.markInteraction()}onfocusin(t){const n=t.target;Te(n)&&oa(n)&&this.root.markInteraction()}onpointerenter(t){wo(t)||this.root.cancelDelayedClose()}onpointerleave(t){wo(t)}get shouldRender(){return this.root.contentPresence.shouldRender}get shouldTrapFocus(){return!(this.root.openedViaHover&&!this.root.hasInteractedWithContent)}get snippetProps(){return o(f(this,eo))}set snippetProps(t){d(f(this,eo),t)}get props(){return o(f(this,no))}set props(t){d(f(this,no),t)}};eo=new WeakMap,no=new WeakMap;let mr=Er;var ml=at("<div><div><!></div></div>"),yl=at("<div><div><!></div></div>");function mi(e,t){const n=Oi();ie(t,!0);let r=k(t,"ref",15,null),i=k(t,"id",19,()=>zi(n)),s=k(t,"forceMount",3,!1),a=k(t,"onOpenAutoFocus",3,Ze),l=k(t,"onCloseAutoFocus",3,Ze),h=k(t,"onEscapeKeydown",3,Ze),m=k(t,"onInteractOutside",3,Ze),y=k(t,"trapFocus",3,!0),v=k(t,"preventScroll",3,!1),g=k(t,"customAnchor",3,null),p=ln(t,["$$slots","$$events","$$legacy","child","children","ref","id","forceMount","onOpenAutoFocus","onCloseAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","customAnchor","style"]);const w=mr.create({id:U(()=>i()),ref:U(()=>r(),F=>r(F)),onInteractOutside:U(()=>m()),onEscapeKeydown:U(()=>h()),customAnchor:U(()=>g())}),P=W(()=>Qe(p,w.props)),O=W(()=>y()&&w.shouldTrapFocus);function x(F){w.shouldTrapFocus||F.preventDefault(),a()(F)}var D=dt(),T=X(D);{var E=F=>{vl(F,Nt(()=>o(P),()=>w.popperProps,{get ref(){return w.opts.ref},get enabled(){return w.root.opts.open.current},get id(){return i()},get trapFocus(){return o(O)},get preventScroll(){return v()},loop:!0,forceMount:!0,get customAnchor(){return g()},onOpenAutoFocus:x,get onCloseAutoFocus(){return l()},get shouldRender(){return w.shouldRender},popper:(ft,R)=>{let $=()=>R==null?void 0:R().props,et=()=>R==null?void 0:R().wrapperProps;const tt=W(()=>Qe($(),{style:pi("popover")},{style:t.style}));var nt=dt(),Y=X(nt);{var ht=J=>{var V=dt(),Z=X(V);{let it=W(()=>({props:o(tt),wrapperProps:et(),...w.snippetProps}));Bt(Z,()=>t.child,()=>o(it))}z(J,V)},rt=J=>{var V=ml();xn(V,()=>({...et()}));var Z=S(V);xn(Z,()=>({...o(tt)}));var it=S(Z);Bt(it,()=>t.children??ne),C(Z),C(V),z(J,V)};xt(Y,J=>{t.child?J(ht):J(rt,-1)})}z(ft,nt)},$$slots:{popper:!0}}))},L=F=>{pl(F,Nt(()=>o(P),()=>w.popperProps,{get ref(){return w.opts.ref},get open(){return w.root.opts.open.current},get id(){return i()},get trapFocus(){return o(O)},get preventScroll(){return v()},loop:!0,forceMount:!1,get customAnchor(){return g()},onOpenAutoFocus:x,get onCloseAutoFocus(){return l()},get shouldRender(){return w.shouldRender},popper:(ft,R)=>{let $=()=>R==null?void 0:R().props,et=()=>R==null?void 0:R().wrapperProps;const tt=W(()=>Qe($(),{style:pi("popover")},{style:t.style}));var nt=dt(),Y=X(nt);{var ht=J=>{var V=dt(),Z=X(V);{let it=W(()=>({props:o(tt),wrapperProps:et(),...w.snippetProps}));Bt(Z,()=>t.child,()=>o(it))}z(J,V)},rt=J=>{var V=yl();xn(V,()=>({...et()}));var Z=S(V);xn(Z,()=>({...o(tt)}));var it=S(Z);Bt(it,()=>t.children??ne),C(Z),C(V),z(J,V)};xt(Y,J=>{t.child?J(ht):J(rt,-1)})}z(ft,nt)},$$slots:{popper:!0}}))};xt(T,F=>{s()?F(E):s()||F(L,1)})}z(e,D),se()}var wl=at("<button><!></button>");function yi(e,t){const n=Oi();ie(t,!0);let r=k(t,"id",19,()=>zi(n)),i=k(t,"ref",15,null),s=k(t,"type",3,"button"),a=k(t,"disabled",3,!1),l=k(t,"openOnHover",3,!1),h=k(t,"openDelay",3,700),m=k(t,"closeDelay",3,300),y=ln(t,["$$slots","$$events","$$legacy","children","child","id","ref","type","disabled","openOnHover","openDelay","closeDelay"]);const v=hr.create({id:U(()=>r()),ref:U(()=>i(),p=>i(p)),disabled:U(()=>!!a()),openOnHover:U(()=>l()),openDelay:U(()=>h()),closeDelay:U(()=>m())}),g=W(()=>Qe(y,v.props,{type:s()}));cl(e,{get id(){return r()},get ref(){return v.opts.ref},children:(p,w)=>{var P=dt(),O=X(P);{var x=T=>{var E=dt(),L=X(E);Bt(L,()=>t.child,()=>({props:o(g)})),z(T,E)},D=T=>{var E=wl();xn(E,()=>({...o(g)}));var L=S(E);Bt(L,()=>t.children??ne),C(E),z(T,E)};xt(O,T=>{t.child?T(x):T(D,-1)})}z(p,P)},$$slots:{default:!0}}),se()}function wi(e,t){ie(t,!0);let n=k(t,"open",15,!1),r=k(t,"onOpenChange",3,Ze),i=k(t,"onOpenChangeComplete",3,Ze);fr.create({open:U(()=>n(),s=>{n(s),r()(s)}),onOpenChangeComplete:U(()=>i())}),ll(e,{children:(s,a)=>{var l=dt(),h=X(l);Bt(h,()=>t.children??ne),z(s,l)},$$slots:{default:!0}}),se()}function bl(e,t){const n=Ae(t,["children","$$slots","$$events","$$legacy"]);/**
1
+ var Os=Object.defineProperty;var Xr=e=>{throw TypeError(e)};var Cs=(e,t,n)=>t in e?Os(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ot=(e,t,n)=>Cs(e,typeof t!="symbol"?t+"":t,n),Yo=(e,t,n)=>t.has(e)||Xr("Cannot "+n);var f=(e,t,n)=>(Yo(e,t,"read from private field"),n?n.call(e):t.get(e)),A=(e,t,n)=>t.has(e)?Xr("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),j=(e,t,n,r)=>(Yo(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),B=(e,t,n)=>(Yo(e,t,"access private method"),n);import{c as dt,a as z,f as at,p as Oi,t as Xe}from"./BK3WtZwv.js";import"./lk5LaiqA.js";import{o as Ci}from"./Bp63qm3L.js";import{aA as W,i as o,b4 as yt,a4 as qo,an as he,a5 as d,at as ie,f as X,aj as ne,au as se,aw as M,av as S,ax as C,aC as wn,aD as Ss,ay as zt,az as kt,U as st,u as te,z as G,aq as Jo}from"./BbWUOQ_m.js";import{f as As,o as bn,d as zs,a as Et,s as Lt,e as ks,r as Es}from"./DMWEh-Ek.js";import{s as Fs,a as Yr}from"./DjNLq3TF.js";import{i as xt}from"./Dt2CddFe.js";import{e as Zo,i as qr}from"./BQqoDzLx.js";import{e as xn,r as Ye,a as qe,c as Ts,s as Qo}from"./B2Q1a1-H.js";import{b as Je}from"./Dw782Tjs.js";import{i as Ds}from"./CVzlFH44.js";import{g as Jr}from"./D5GvRCv7.js";import{p as Go}from"./C85CNwD2.js";import{s as $o}from"./tB7QMF3U.js";import{R as Ms,P as Ls,h as Zr,S as Is,a as Ws,E as Ns,r as Hs,s as Rs,c as Bs}from"./CtijX1u3.js";import{a as ee}from"./CBY2biv-.js";import{e as Vs,s as _e,C as Eo,f as Ks,g as _n,u as Si,h as Us,i as js,j as Xs,w as Pn,k as Ys,l as Bt,m as U,n as Qe,F as qs,S as Qr,E as Js,o as Zs,T as Qs,p as Gs,q as Te,r as Gr,t as $s,v as wo,x as ta,y as ea,z as Ai,A as na,B as oa,G as ra,H as zi,J as Ze,I as Ce,D as $r,P as vo,a as ti,b as ei,c as ni,d as go}from"./mW5RwvnK.js";import{P as ia}from"./CWNeClHp.js";import{s as Se}from"./B-OsL1Ct.js";import{p as k,s as Nt,r as ln,l as Ae}from"./xtNWTdbD.js";function sa(e){return typeof e=="function"}function oi(e){return sa(e)?e():e}var pe,$e,tn,en,ve,Co,So,nn;class aa{constructor(t,n={box:"border-box"}){A(this,pe,{width:0,height:0});A(this,$e,!1);A(this,tn);A(this,en);A(this,ve);A(this,Co,W(()=>{var t;return(t=o(f(this,nn)))==null||t(),this.getSize().width}));A(this,So,W(()=>{var t;return(t=o(f(this,nn)))==null||t(),this.getSize().height}));A(this,nn,W(()=>{const t=oi(f(this,en));if(t)return As(n=>{if(!f(this,ve))return;const r=new(f(this,ve)).ResizeObserver(i=>{j(this,$e,!0);for(const s of i){const a=f(this,tn).box==="content-box"?s.contentBoxSize:s.borderBoxSize,l=Array.isArray(a)?a:[a];f(this,pe).width=l.reduce((h,m)=>Math.max(h,m.inlineSize),0),f(this,pe).height=l.reduce((h,m)=>Math.max(h,m.blockSize),0)}n()});return r.observe(t),()=>{j(this,$e,!1),r.disconnect()}})}));j(this,ve,n.window??Vs),j(this,tn,n),j(this,en,t),j(this,pe,{width:0,height:0})}calculateSize(){const t=oi(f(this,en));if(!t||!f(this,ve))return;const n=t.offsetWidth,r=t.offsetHeight;if(f(this,tn).box==="border-box")return{width:n,height:r};const i=f(this,ve).getComputedStyle(t),s=parseFloat(i.paddingLeft)+parseFloat(i.paddingRight),a=parseFloat(i.paddingTop)+parseFloat(i.paddingBottom),l=parseFloat(i.borderLeftWidth)+parseFloat(i.borderRightWidth),h=parseFloat(i.borderTopWidth)+parseFloat(i.borderBottomWidth),m=n-s-l,y=r-a-h;return{width:m,height:y}}getSize(){return f(this,$e)?f(this,pe):this.calculateSize()??f(this,pe)}get current(){var t;return(t=o(f(this,nn)))==null||t(),this.getSize()}get width(){return o(f(this,Co))}get height(){return o(f(this,So))}}pe=new WeakMap,$e=new WeakMap,tn=new WeakMap,en=new WeakMap,ve=new WeakMap,Co=new WeakMap,So=new WeakMap,nn=new WeakMap;const la=["top","right","bottom","left"],Pe=Math.min,It=Math.max,bo=Math.round,mo=Math.floor,Zt=e=>({x:e,y:e}),ca={left:"right",right:"left",bottom:"top",top:"bottom"};function rr(e,t,n){return It(e,Pe(t,n))}function oe(e,t){return typeof e=="function"?e(t):e}function re(e){return e.split("-")[0]}function cn(e){return e.split("-")[1]}function yr(e){return e==="x"?"y":"x"}function wr(e){return e==="y"?"height":"width"}function Jt(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function br(e){return yr(Jt(e))}function ua(e,t,n){n===void 0&&(n=!1);const r=cn(e),i=br(e),s=wr(i);let a=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=xo(a)),[a,xo(a)]}function da(e){const t=xo(e);return[ir(e),t,ir(t)]}function ir(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const ri=["left","right"],ii=["right","left"],fa=["top","bottom"],ha=["bottom","top"];function pa(e,t,n){switch(e){case"top":case"bottom":return n?t?ii:ri:t?ri:ii;case"left":case"right":return t?fa:ha;default:return[]}}function va(e,t,n,r){const i=cn(e);let s=pa(re(e),n==="start",r);return i&&(s=s.map(a=>a+"-"+i),t&&(s=s.concat(s.map(ir)))),s}function xo(e){const t=re(e);return ca[t]+e.slice(t.length)}function ga(e){return{top:0,right:0,bottom:0,left:0,...e}}function ki(e){return typeof e!="number"?ga(e):{top:e,right:e,bottom:e,left:e}}function _o(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function si(e,t,n){let{reference:r,floating:i}=e;const s=Jt(t),a=br(t),l=wr(a),h=re(t),m=s==="y",y=r.x+r.width/2-i.width/2,v=r.y+r.height/2-i.height/2,g=r[l]/2-i[l]/2;let p;switch(h){case"top":p={x:y,y:r.y-i.height};break;case"bottom":p={x:y,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:v};break;case"left":p={x:r.x-i.width,y:v};break;default:p={x:r.x,y:r.y}}switch(cn(t)){case"start":p[a]-=g*(n&&m?-1:1);break;case"end":p[a]+=g*(n&&m?-1:1);break}return p}async function ma(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:s,rects:a,elements:l,strategy:h}=e,{boundary:m="clippingAncestors",rootBoundary:y="viewport",elementContext:v="floating",altBoundary:g=!1,padding:p=0}=oe(t,e),w=ki(p),O=l[g?v==="floating"?"reference":"floating":v],x=_o(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(O)))==null||n?O:O.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:m,rootBoundary:y,strategy:h})),D=v==="floating"?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,T=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),E=await(s.isElement==null?void 0:s.isElement(T))?await(s.getScale==null?void 0:s.getScale(T))||{x:1,y:1}:{x:1,y:1},L=_o(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:D,offsetParent:T,strategy:h}):D);return{top:(x.top-L.top+w.top)/E.y,bottom:(L.bottom-x.bottom+w.bottom)/E.y,left:(x.left-L.left+w.left)/E.x,right:(L.right-x.right+w.right)/E.x}}const ya=50,wa=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:s=[],platform:a}=n,l=a.detectOverflow?a:{...a,detectOverflow:ma},h=await(a.isRTL==null?void 0:a.isRTL(t));let m=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:y,y:v}=si(m,r,h),g=r,p=0;const w={};for(let P=0;P<s.length;P++){const O=s[P];if(!O)continue;const{name:x,fn:D}=O,{x:T,y:E,data:L,reset:F}=await D({x:y,y:v,initialPlacement:r,placement:g,strategy:i,middlewareData:w,rects:m,platform:l,elements:{reference:e,floating:t}});y=T??y,v=E??v,w[x]={...w[x],...L},F&&p<ya&&(p++,typeof F=="object"&&(F.placement&&(g=F.placement),F.rects&&(m=F.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:i}):F.rects),{x:y,y:v}=si(m,g,h)),P=-1)}return{x:y,y:v,placement:g,strategy:i,middlewareData:w}},ba=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:s,platform:a,elements:l,middlewareData:h}=t,{element:m,padding:y=0}=oe(e,t)||{};if(m==null)return{};const v=ki(y),g={x:n,y:r},p=br(i),w=wr(p),P=await a.getDimensions(m),O=p==="y",x=O?"top":"left",D=O?"bottom":"right",T=O?"clientHeight":"clientWidth",E=s.reference[w]+s.reference[p]-g[p]-s.floating[w],L=g[p]-s.reference[p],F=await(a.getOffsetParent==null?void 0:a.getOffsetParent(m));let Q=F?F[T]:0;(!Q||!await(a.isElement==null?void 0:a.isElement(F)))&&(Q=l.floating[T]||s.floating[w]);const ft=E/2-L/2,R=Q/2-P[w]/2-1,$=Pe(v[x],R),et=Pe(v[D],R),tt=$,nt=Q-P[w]-et,Y=Q/2-P[w]/2+ft,ht=rr(tt,Y,nt),rt=!h.arrow&&cn(i)!=null&&Y!==ht&&s.reference[w]/2-(Y<tt?$:et)-P[w]/2<0,J=rt?Y<tt?Y-tt:Y-nt:0;return{[p]:g[p]+J,data:{[p]:ht,centerOffset:Y-ht-J,...rt&&{alignmentOffset:J}},reset:rt}}}),xa=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:s,rects:a,initialPlacement:l,platform:h,elements:m}=t,{mainAxis:y=!0,crossAxis:v=!0,fallbackPlacements:g,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:P=!0,...O}=oe(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const x=re(i),D=Jt(l),T=re(l)===l,E=await(h.isRTL==null?void 0:h.isRTL(m.floating)),L=g||(T||!P?[xo(l)]:da(l)),F=w!=="none";!g&&F&&L.push(...va(l,P,w,E));const Q=[l,...L],ft=await h.detectOverflow(t,O),R=[];let $=((r=s.flip)==null?void 0:r.overflows)||[];if(y&&R.push(ft[x]),v){const Y=ua(i,a,E);R.push(ft[Y[0]],ft[Y[1]])}if($=[...$,{placement:i,overflows:R}],!R.every(Y=>Y<=0)){var et,tt;const Y=(((et=s.flip)==null?void 0:et.index)||0)+1,ht=Q[Y];if(ht&&(!(v==="alignment"?D!==Jt(ht):!1)||$.every(V=>Jt(V.placement)===D?V.overflows[0]>0:!0)))return{data:{index:Y,overflows:$},reset:{placement:ht}};let rt=(tt=$.filter(J=>J.overflows[0]<=0).sort((J,V)=>J.overflows[1]-V.overflows[1])[0])==null?void 0:tt.placement;if(!rt)switch(p){case"bestFit":{var nt;const J=(nt=$.filter(V=>{if(F){const Z=Jt(V.placement);return Z===D||Z==="y"}return!0}).map(V=>[V.placement,V.overflows.filter(Z=>Z>0).reduce((Z,it)=>Z+it,0)]).sort((V,Z)=>V[1]-Z[1])[0])==null?void 0:nt[0];J&&(rt=J);break}case"initialPlacement":rt=l;break}if(i!==rt)return{reset:{placement:rt}}}return{}}}};function ai(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function li(e){return la.some(t=>e[t]>=0)}const _a=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:i="referenceHidden",...s}=oe(e,t);switch(i){case"referenceHidden":{const a=await r.detectOverflow(t,{...s,elementContext:"reference"}),l=ai(a,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:li(l)}}}case"escaped":{const a=await r.detectOverflow(t,{...s,altBoundary:!0}),l=ai(a,n.floating);return{data:{escapedOffsets:l,escaped:li(l)}}}default:return{}}}}},Ei=new Set(["left","top"]);async function Pa(e,t){const{placement:n,platform:r,elements:i}=e,s=await(r.isRTL==null?void 0:r.isRTL(i.floating)),a=re(n),l=cn(n),h=Jt(n)==="y",m=Ei.has(a)?-1:1,y=s&&h?-1:1,v=oe(t,e);let{mainAxis:g,crossAxis:p,alignmentAxis:w}=typeof v=="number"?{mainAxis:v,crossAxis:0,alignmentAxis:null}:{mainAxis:v.mainAxis||0,crossAxis:v.crossAxis||0,alignmentAxis:v.alignmentAxis};return l&&typeof w=="number"&&(p=l==="end"?w*-1:w),h?{x:p*y,y:g*m}:{x:g*m,y:p*y}}const Oa=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:s,placement:a,middlewareData:l}=t,h=await Pa(t,e);return a===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:i+h.x,y:s+h.y,data:{...h,placement:a}}}}},Ca=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i,platform:s}=t,{mainAxis:a=!0,crossAxis:l=!1,limiter:h={fn:x=>{let{x:D,y:T}=x;return{x:D,y:T}}},...m}=oe(e,t),y={x:n,y:r},v=await s.detectOverflow(t,m),g=Jt(re(i)),p=yr(g);let w=y[p],P=y[g];if(a){const x=p==="y"?"top":"left",D=p==="y"?"bottom":"right",T=w+v[x],E=w-v[D];w=rr(T,w,E)}if(l){const x=g==="y"?"top":"left",D=g==="y"?"bottom":"right",T=P+v[x],E=P-v[D];P=rr(T,P,E)}const O=h.fn({...t,[p]:w,[g]:P});return{...O,data:{x:O.x-n,y:O.y-r,enabled:{[p]:a,[g]:l}}}}}},Sa=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:s,middlewareData:a}=t,{offset:l=0,mainAxis:h=!0,crossAxis:m=!0}=oe(e,t),y={x:n,y:r},v=Jt(i),g=yr(v);let p=y[g],w=y[v];const P=oe(l,t),O=typeof P=="number"?{mainAxis:P,crossAxis:0}:{mainAxis:0,crossAxis:0,...P};if(h){const T=g==="y"?"height":"width",E=s.reference[g]-s.floating[T]+O.mainAxis,L=s.reference[g]+s.reference[T]-O.mainAxis;p<E?p=E:p>L&&(p=L)}if(m){var x,D;const T=g==="y"?"width":"height",E=Ei.has(re(i)),L=s.reference[v]-s.floating[T]+(E&&((x=a.offset)==null?void 0:x[v])||0)+(E?0:O.crossAxis),F=s.reference[v]+s.reference[T]+(E?0:((D=a.offset)==null?void 0:D[v])||0)-(E?O.crossAxis:0);w<L?w=L:w>F&&(w=F)}return{[g]:p,[v]:w}}}},Aa=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:s,platform:a,elements:l}=t,{apply:h=()=>{},...m}=oe(e,t),y=await a.detectOverflow(t,m),v=re(i),g=cn(i),p=Jt(i)==="y",{width:w,height:P}=s.floating;let O,x;v==="top"||v==="bottom"?(O=v,x=g===(await(a.isRTL==null?void 0:a.isRTL(l.floating))?"start":"end")?"left":"right"):(x=v,O=g==="end"?"top":"bottom");const D=P-y.top-y.bottom,T=w-y.left-y.right,E=Pe(P-y[O],D),L=Pe(w-y[x],T),F=!t.middlewareData.shift;let Q=E,ft=L;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(ft=T),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(Q=D),F&&!g){const $=It(y.left,0),et=It(y.right,0),tt=It(y.top,0),nt=It(y.bottom,0);p?ft=w-2*($!==0||et!==0?$+et:It(y.left,y.right)):Q=P-2*(tt!==0||nt!==0?tt+nt:It(y.top,y.bottom))}await h({...t,availableWidth:ft,availableHeight:Q});const R=await a.getDimensions(l.floating);return w!==R.width||P!==R.height?{reset:{rects:!0}}:{}}}};function Fo(){return typeof window<"u"}function un(e){return Fi(e)?(e.nodeName||"").toLowerCase():"#document"}function Wt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Qt(e){var t;return(t=(Fi(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Fi(e){return Fo()?e instanceof Node||e instanceof Wt(e).Node:!1}function Vt(e){return Fo()?e instanceof Element||e instanceof Wt(e).Element:!1}function ae(e){return Fo()?e instanceof HTMLElement||e instanceof Wt(e).HTMLElement:!1}function ci(e){return!Fo()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Wt(e).ShadowRoot}function oo(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Kt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!=="inline"&&i!=="contents"}function za(e){return/^(table|td|th)$/.test(un(e))}function To(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const ka=/transform|translate|scale|rotate|perspective|filter/,Ea=/paint|layout|strict|content/,Ee=e=>!!e&&e!=="none";let tr;function xr(e){const t=Vt(e)?Kt(e):e;return Ee(t.transform)||Ee(t.translate)||Ee(t.scale)||Ee(t.rotate)||Ee(t.perspective)||!_r()&&(Ee(t.backdropFilter)||Ee(t.filter))||ka.test(t.willChange||"")||Ea.test(t.contain||"")}function Fa(e){let t=Oe(e);for(;ae(t)&&!an(t);){if(xr(t))return t;if(To(t))return null;t=Oe(t)}return null}function _r(){return tr==null&&(tr=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),tr}function an(e){return/^(html|body|#document)$/.test(un(e))}function Kt(e){return Wt(e).getComputedStyle(e)}function Do(e){return Vt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Oe(e){if(un(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ci(e)&&e.host||Qt(e);return ci(t)?t.host:t}function Ti(e){const t=Oe(e);return an(t)?e.ownerDocument?e.ownerDocument.body:e.body:ae(t)&&oo(t)?t:Ti(t)}function On(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=Ti(e),s=i===((r=e.ownerDocument)==null?void 0:r.body),a=Wt(i);if(s){const l=sr(a);return t.concat(a,a.visualViewport||[],oo(i)?i:[],l&&n?On(l):[])}else return t.concat(i,On(i,[],n))}function sr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Di(e){const t=Kt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=ae(e),s=i?e.offsetWidth:n,a=i?e.offsetHeight:r,l=bo(n)!==s||bo(r)!==a;return l&&(n=s,r=a),{width:n,height:r,$:l}}function Pr(e){return Vt(e)?e:e.contextElement}function Ge(e){const t=Pr(e);if(!ae(t))return Zt(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:s}=Di(t);let a=(s?bo(n.width):n.width)/r,l=(s?bo(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const Ta=Zt(0);function Mi(e){const t=Wt(e);return!_r()||!t.visualViewport?Ta:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Da(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Wt(e)?!1:t}function Ie(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),s=Pr(e);let a=Zt(1);t&&(r?Vt(r)&&(a=Ge(r)):a=Ge(e));const l=Da(s,n,r)?Mi(s):Zt(0);let h=(i.left+l.x)/a.x,m=(i.top+l.y)/a.y,y=i.width/a.x,v=i.height/a.y;if(s){const g=Wt(s),p=r&&Vt(r)?Wt(r):r;let w=g,P=sr(w);for(;P&&r&&p!==w;){const O=Ge(P),x=P.getBoundingClientRect(),D=Kt(P),T=x.left+(P.clientLeft+parseFloat(D.paddingLeft))*O.x,E=x.top+(P.clientTop+parseFloat(D.paddingTop))*O.y;h*=O.x,m*=O.y,y*=O.x,v*=O.y,h+=T,m+=E,w=Wt(P),P=sr(w)}}return _o({width:y,height:v,x:h,y:m})}function Mo(e,t){const n=Do(e).scrollLeft;return t?t.left+n:Ie(Qt(e)).left+n}function Li(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Mo(e,n),i=n.top+t.scrollTop;return{x:r,y:i}}function Ma(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const s=i==="fixed",a=Qt(r),l=t?To(t.floating):!1;if(r===a||l&&s)return n;let h={scrollLeft:0,scrollTop:0},m=Zt(1);const y=Zt(0),v=ae(r);if((v||!v&&!s)&&((un(r)!=="body"||oo(a))&&(h=Do(r)),v)){const p=Ie(r);m=Ge(r),y.x=p.x+r.clientLeft,y.y=p.y+r.clientTop}const g=a&&!v&&!s?Li(a,h):Zt(0);return{width:n.width*m.x,height:n.height*m.y,x:n.x*m.x-h.scrollLeft*m.x+y.x+g.x,y:n.y*m.y-h.scrollTop*m.y+y.y+g.y}}function La(e){return Array.from(e.getClientRects())}function Ia(e){const t=Qt(e),n=Do(e),r=e.ownerDocument.body,i=It(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=It(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Mo(e);const l=-n.scrollTop;return Kt(r).direction==="rtl"&&(a+=It(t.clientWidth,r.clientWidth)-i),{width:i,height:s,x:a,y:l}}const ui=25;function Wa(e,t){const n=Wt(e),r=Qt(e),i=n.visualViewport;let s=r.clientWidth,a=r.clientHeight,l=0,h=0;if(i){s=i.width,a=i.height;const y=_r();(!y||y&&t==="fixed")&&(l=i.offsetLeft,h=i.offsetTop)}const m=Mo(r);if(m<=0){const y=r.ownerDocument,v=y.body,g=getComputedStyle(v),p=y.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,w=Math.abs(r.clientWidth-v.clientWidth-p);w<=ui&&(s-=w)}else m<=ui&&(s+=m);return{width:s,height:a,x:l,y:h}}function Na(e,t){const n=Ie(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,s=ae(e)?Ge(e):Zt(1),a=e.clientWidth*s.x,l=e.clientHeight*s.y,h=i*s.x,m=r*s.y;return{width:a,height:l,x:h,y:m}}function di(e,t,n){let r;if(t==="viewport")r=Wa(e,n);else if(t==="document")r=Ia(Qt(e));else if(Vt(t))r=Na(t,n);else{const i=Mi(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return _o(r)}function Ii(e,t){const n=Oe(e);return n===t||!Vt(n)||an(n)?!1:Kt(n).position==="fixed"||Ii(n,t)}function Ha(e,t){const n=t.get(e);if(n)return n;let r=On(e,[],!1).filter(l=>Vt(l)&&un(l)!=="body"),i=null;const s=Kt(e).position==="fixed";let a=s?Oe(e):e;for(;Vt(a)&&!an(a);){const l=Kt(a),h=xr(a);!h&&l.position==="fixed"&&(i=null),(s?!h&&!i:!h&&l.position==="static"&&!!i&&(i.position==="absolute"||i.position==="fixed")||oo(a)&&!h&&Ii(e,a))?r=r.filter(y=>y!==a):i=l,a=Oe(a)}return t.set(e,r),r}function Ra(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const a=[...n==="clippingAncestors"?To(t)?[]:Ha(t,this._c):[].concat(n),r],l=di(t,a[0],i);let h=l.top,m=l.right,y=l.bottom,v=l.left;for(let g=1;g<a.length;g++){const p=di(t,a[g],i);h=It(p.top,h),m=Pe(p.right,m),y=Pe(p.bottom,y),v=It(p.left,v)}return{width:m-v,height:y-h,x:v,y:h}}function Ba(e){const{width:t,height:n}=Di(e);return{width:t,height:n}}function Va(e,t,n){const r=ae(t),i=Qt(t),s=n==="fixed",a=Ie(e,!0,s,t);let l={scrollLeft:0,scrollTop:0};const h=Zt(0);function m(){h.x=Mo(i)}if(r||!r&&!s)if((un(t)!=="body"||oo(i))&&(l=Do(t)),r){const p=Ie(t,!0,s,t);h.x=p.x+t.clientLeft,h.y=p.y+t.clientTop}else i&&m();s&&!r&&i&&m();const y=i&&!r&&!s?Li(i,l):Zt(0),v=a.left+l.scrollLeft-h.x-y.x,g=a.top+l.scrollTop-h.y-y.y;return{x:v,y:g,width:a.width,height:a.height}}function er(e){return Kt(e).position==="static"}function fi(e,t){if(!ae(e)||Kt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Qt(e)===n&&(n=n.ownerDocument.body),n}function Wi(e,t){const n=Wt(e);if(To(e))return n;if(!ae(e)){let i=Oe(e);for(;i&&!an(i);){if(Vt(i)&&!er(i))return i;i=Oe(i)}return n}let r=fi(e,t);for(;r&&za(r)&&er(r);)r=fi(r,t);return r&&an(r)&&er(r)&&!xr(r)?n:r||Fa(e)||n}const Ka=async function(e){const t=this.getOffsetParent||Wi,n=this.getDimensions,r=await n(e.floating);return{reference:Va(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Ua(e){return Kt(e).direction==="rtl"}const ja={convertOffsetParentRelativeRectToViewportRelativeRect:Ma,getDocumentElement:Qt,getClippingRect:Ra,getOffsetParent:Wi,getElementRects:Ka,getClientRects:La,getDimensions:Ba,getScale:Ge,isElement:Vt,isRTL:Ua};function Ni(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Xa(e,t){let n=null,r;const i=Qt(e);function s(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function a(l,h){l===void 0&&(l=!1),h===void 0&&(h=1),s();const m=e.getBoundingClientRect(),{left:y,top:v,width:g,height:p}=m;if(l||t(),!g||!p)return;const w=mo(v),P=mo(i.clientWidth-(y+g)),O=mo(i.clientHeight-(v+p)),x=mo(y),T={rootMargin:-w+"px "+-P+"px "+-O+"px "+-x+"px",threshold:It(0,Pe(1,h))||1};let E=!0;function L(F){const Q=F[0].intersectionRatio;if(Q!==h){if(!E)return a();Q?a(!1,Q):r=setTimeout(()=>{a(!1,1e-7)},1e3)}Q===1&&!Ni(m,e.getBoundingClientRect())&&a(),E=!1}try{n=new IntersectionObserver(L,{...T,root:i.ownerDocument})}catch{n=new IntersectionObserver(L,T)}n.observe(e)}return a(!0),s}function Ya(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:h=!1}=r,m=Pr(e),y=i||s?[...m?On(m):[],...t?On(t):[]]:[];y.forEach(x=>{i&&x.addEventListener("scroll",n,{passive:!0}),s&&x.addEventListener("resize",n)});const v=m&&l?Xa(m,n):null;let g=-1,p=null;a&&(p=new ResizeObserver(x=>{let[D]=x;D&&D.target===m&&p&&t&&(p.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var T;(T=p)==null||T.observe(t)})),n()}),m&&!h&&p.observe(m),t&&p.observe(t));let w,P=h?Ie(e):null;h&&O();function O(){const x=Ie(e);P&&!Ni(P,x)&&n(),P=x,w=requestAnimationFrame(O)}return n(),()=>{var x;y.forEach(D=>{i&&D.removeEventListener("scroll",n),s&&D.removeEventListener("resize",n)}),v==null||v(),(x=p)==null||x.disconnect(),p=null,h&&cancelAnimationFrame(w)}}const qa=Oa,Ja=Ca,Za=xa,Qa=Aa,Ga=_a,$a=ba,tl=Sa,el=(e,t,n)=>{const r=new Map,i={platform:ja,...n},s={...i.platform,_c:r};return wa(e,t,{...i,platform:s})};function Fe(e){return typeof e=="function"?e():e}function Hi(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function hi(e,t){const n=Hi(e);return Math.round(t*n)/n}function pi(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 nl(e){const t=e.whileElementsMounted,n=W(()=>Fe(e.open)??!0),r=W(()=>Fe(e.middleware)),i=W(()=>Fe(e.transform)??!0),s=W(()=>Fe(e.placement)??"bottom"),a=W(()=>Fe(e.strategy)??"absolute"),l=W(()=>Fe(e.sideOffset)??0),h=W(()=>Fe(e.alignOffset)??0),m=e.reference;let y=yt(0),v=yt(0);const g=_e(null);let p=yt(qo(o(a))),w=yt(qo(o(s))),P=yt(qo({})),O=yt(!1),x=!1,D=0;const T=W(()=>{const $=g.current?hi(g.current,o(y)):o(y),et=g.current?hi(g.current,o(v)):o(v);return o(i)?{position:o(p),left:"0",top:"0",transform:`translate(${$}px, ${et}px)`,...g.current&&Hi(g.current)>=1.5&&{willChange:"transform"}}:{position:o(p),left:`${$}px`,top:`${et}px`}});let E;function L(){if(m.current===null||g.current===null)return;const $=m.current,et=g.current,tt=++D;el($,et,{middleware:o(r),placement:o(s),strategy:o(a)}).then(nt=>{if(tt!==D||m.current!==$||g.current!==et)return;if(ol($)){d(P,{...o(P),hide:{...o(P).hide,referenceHidden:!0}},!0);return}if(!o(n)&&o(y)!==0&&o(v)!==0){const ht=Math.max(Math.abs(o(l)),Math.abs(o(h)),15);if(nt.x<=ht&&nt.y<=ht)return}d(y,nt.x,!0),d(v,nt.y,!0),d(p,nt.strategy,!0),d(w,nt.placement,!0),d(P,nt.middlewareData,!0),d(O,!0)})}function F(){typeof E=="function"&&(E(),E=void 0),D++}function Q(){if(F(),t===void 0){L();return}o(n)&&(m.current===null||g.current===null||(E=t(m.current,g.current,L)))}function ft(){!o(n)&&g.current===null&&d(O,!1)}function R(){return[o(r),o(s),o(a),o(l),o(h),o(n)]}return he(()=>{t===void 0&&o(n)&&L()}),he(Q),he(()=>{if(t!==void 0){if(R(),!o(n)){x=!1;return}if(!o(O)){x=!1;return}if(!x){x=!0;return}L()}}),he(ft),he(()=>F),{floating:g,reference:m,get strategy(){return o(p)},get placement(){return o(w)},get middlewareData(){return o(P)},get isPositioned(){return o(O)},get floatingStyles(){return o(T)},get update(){return L}}}function ol(e){return e instanceof Element?!e.isConnected||e instanceof HTMLElement&&e.hidden?!0:e.getClientRects().length===0:!1}const rl={top:"bottom",right:"left",bottom:"top",left:"right"},Or=new Eo("Floating.Root"),vi=new Eo("Floating.Content"),Cr=new Eo("Floating.Root");class Po{constructor(){ot(this,"anchorNode",_e(null));ot(this,"customAnchorNode",_e(null));ot(this,"triggerNode",_e(null));he(()=>{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})}static create(t=!1){return t?Cr.set(new Po):Or.set(new Po)}}var Cn,Sn,An,Ao,zn,zo,kn,En,Fn,Tn,Dn,Mn,Ln,In,Wn,Nn,Hn,Rn,Bn,Vn,Kn,Un,jn,Xn;const ko=class ko{constructor(t,n){ot(this,"opts");ot(this,"root");ot(this,"contentRef",_e(null));ot(this,"wrapperRef",_e(null));ot(this,"arrowRef",_e(null));ot(this,"contentAttachment",_n(this.contentRef));ot(this,"wrapperAttachment",_n(this.wrapperRef));ot(this,"arrowAttachment",_n(this.arrowRef));ot(this,"arrowId",_e(Si()));A(this,Cn,W(()=>{if(typeof this.opts.style=="string")return Us(this.opts.style);if(!this.opts.style)return{}}));A(this,Sn);A(this,An,new aa(()=>this.arrowRef.current??void 0));A(this,Ao,W(()=>{var t;return((t=f(this,An))==null?void 0:t.width)??0}));A(this,zn,W(()=>{var t;return((t=f(this,An))==null?void 0:t.height)??0}));A(this,zo,W(()=>{var t;return((t=this.opts.side)==null?void 0:t.current)+(this.opts.align.current!=="center"?`-${this.opts.align.current}`:"")}));A(this,kn,W(()=>Array.isArray(this.opts.collisionBoundary.current)?this.opts.collisionBoundary.current:[this.opts.collisionBoundary.current]));A(this,En,W(()=>o(f(this,kn)).length>0));A(this,Fn,W(()=>({padding:this.opts.collisionPadding.current,boundary:o(f(this,kn)).filter(js),altBoundary:this.hasExplicitBoundaries})));A(this,Tn,yt(void 0));A(this,Dn,yt(void 0));A(this,Mn,yt(void 0));A(this,Ln,yt(void 0));A(this,In,W(()=>[qa({mainAxis:this.opts.sideOffset.current+o(f(this,zn)),alignmentAxis:this.opts.alignOffset.current}),this.opts.avoidCollisions.current&&Ja({mainAxis:!0,crossAxis:!1,limiter:this.opts.sticky.current==="partial"?tl():void 0,...this.detectOverflowOptions}),this.opts.avoidCollisions.current&&Za({...this.detectOverflowOptions}),Qa({...this.detectOverflowOptions,apply:({rects:t,availableWidth:n,availableHeight:r})=>{const{width:i,height:s}=t.reference;d(f(this,Tn),n,!0),d(f(this,Dn),r,!0),d(f(this,Mn),i,!0),d(f(this,Ln),s,!0)}}),this.arrowRef.current&&$a({element:this.arrowRef.current,padding:this.opts.arrowPadding.current}),il({arrowWidth:o(f(this,Ao)),arrowHeight:o(f(this,zn))}),this.opts.hideWhenDetached.current&&Ga({strategy:"referenceHidden",...this.detectOverflowOptions})].filter(Boolean)));ot(this,"floating");A(this,Wn,W(()=>sl(this.floating.placement)));A(this,Nn,W(()=>al(this.floating.placement)));A(this,Hn,W(()=>{var t;return((t=this.floating.middlewareData.arrow)==null?void 0:t.x)??0}));A(this,Rn,W(()=>{var t;return((t=this.floating.middlewareData.arrow)==null?void 0:t.y)??0}));A(this,Bn,W(()=>{var t;return((t=this.floating.middlewareData.arrow)==null?void 0:t.centerOffset)!==0}));A(this,Vn,yt());A(this,Kn,W(()=>rl[this.placedSide]));A(this,Un,W(()=>{var t,n,r;return{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":`${(t=this.floating.middlewareData.transformOrigin)==null?void 0:t.x} ${(n=this.floating.middlewareData.transformOrigin)==null?void 0:n.y}`,"--bits-floating-available-width":`${o(f(this,Tn))}px`,"--bits-floating-available-height":`${o(f(this,Dn))}px`,"--bits-floating-anchor-width":`${o(f(this,Mn))}px`,"--bits-floating-anchor-height":`${o(f(this,Ln))}px`,...((r=this.floating.middlewareData.hide)==null?void 0:r.referenceHidden)&&{visibility:"hidden","pointer-events":"none"},...o(f(this,Cn))},dir:this.opts.dir.current,...this.wrapperAttachment}}));A(this,jn,W(()=>({"data-side":this.placedSide,"data-align":this.placedAlign,style:Xs({...o(f(this,Cn))}),...this.contentAttachment})));A(this,Xn,W(()=>({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})));this.opts=t,this.root=n,j(this,Sn,t.updatePositionStrategy),t.customAnchor&&(this.root.customAnchorNode.current=t.customAnchor.current),Pn(()=>t.customAnchor.current,r=>{this.root.customAnchorNode.current=r}),this.floating=nl({strategy:()=>this.opts.strategy.current,placement:()=>o(f(this,zo)),middleware:()=>this.middleware,reference:this.root.anchorNode,whileElementsMounted:(...r)=>{var s;return Ya(...r,{animationFrame:((s=f(this,Sn))==null?void 0:s.current)==="always"})},open:()=>this.opts.enabled.current,sideOffset:()=>this.opts.sideOffset.current,alignOffset:()=>this.opts.alignOffset.current}),he(()=>{var r;this.floating.isPositioned&&((r=this.opts.onPlaced)==null||r.current())}),Pn(()=>this.contentRef.current,r=>{if(!r||!this.opts.enabled.current)return;const i=Ys(r),s=i.requestAnimationFrame(()=>{if(this.contentRef.current!==r||!this.opts.enabled.current)return;const a=i.getComputedStyle(r).zIndex;a!==this.contentZIndex&&(this.contentZIndex=a)});return()=>{i.cancelAnimationFrame(s)}}),he(()=>{this.floating.floating.current=this.wrapperRef.current})}static create(t,n=!1){return n?vi.set(new ko(t,Cr.get())):vi.set(new ko(t,Or.get()))}get hasExplicitBoundaries(){return o(f(this,En))}set hasExplicitBoundaries(t){d(f(this,En),t)}get detectOverflowOptions(){return o(f(this,Fn))}set detectOverflowOptions(t){d(f(this,Fn),t)}get middleware(){return o(f(this,In))}set middleware(t){d(f(this,In),t)}get placedSide(){return o(f(this,Wn))}set placedSide(t){d(f(this,Wn),t)}get placedAlign(){return o(f(this,Nn))}set placedAlign(t){d(f(this,Nn),t)}get arrowX(){return o(f(this,Hn))}set arrowX(t){d(f(this,Hn),t)}get arrowY(){return o(f(this,Rn))}set arrowY(t){d(f(this,Rn),t)}get cannotCenterArrow(){return o(f(this,Bn))}set cannotCenterArrow(t){d(f(this,Bn),t)}get contentZIndex(){return o(f(this,Vn))}set contentZIndex(t){d(f(this,Vn),t,!0)}get arrowBaseSide(){return o(f(this,Kn))}set arrowBaseSide(t){d(f(this,Kn),t)}get wrapperProps(){return o(f(this,Un))}set wrapperProps(t){d(f(this,Un),t)}get props(){return o(f(this,jn))}set props(t){d(f(this,jn),t)}get arrowStyle(){return o(f(this,Xn))}set arrowStyle(t){d(f(this,Xn),t)}};Cn=new WeakMap,Sn=new WeakMap,An=new WeakMap,Ao=new WeakMap,zn=new WeakMap,zo=new WeakMap,kn=new WeakMap,En=new WeakMap,Fn=new WeakMap,Tn=new WeakMap,Dn=new WeakMap,Mn=new WeakMap,Ln=new WeakMap,In=new WeakMap,Wn=new WeakMap,Nn=new WeakMap,Hn=new WeakMap,Rn=new WeakMap,Bn=new WeakMap,Vn=new WeakMap,Kn=new WeakMap,Un=new WeakMap,jn=new WeakMap,Xn=new WeakMap;let ar=ko;class Oo{constructor(t,n){ot(this,"opts");ot(this,"root");this.opts=t,this.root=n,t.virtualEl&&t.virtualEl.current?n.triggerNode=Ks(t.virtualEl.current):n.triggerNode=t.ref}static create(t,n=!1){return n?new Oo(t,Cr.get()):new Oo(t,Or.get())}}function il(e){return{name:"transformOrigin",options:e,fn(t){var O,x,D;const{placement:n,rects:r,middlewareData:i}=t,a=((O=i.arrow)==null?void 0:O.centerOffset)!==0,l=a?0:e.arrowWidth,h=a?0:e.arrowHeight,[m,y]=Sr(n),v={start:"0%",center:"50%",end:"100%"}[y],g=(((x=i.arrow)==null?void 0:x.x)??0)+l/2,p=(((D=i.arrow)==null?void 0:D.y)??0)+h/2;let w="",P="";return m==="bottom"?(w=a?v:`${g}px`,P=`${-h}px`):m==="top"?(w=a?v:`${g}px`,P=`${r.floating.height+h}px`):m==="right"?(w=`${-h}px`,P=a?v:`${p}px`):m==="left"&&(w=`${r.floating.width+h}px`,P=a?v:`${p}px`),{data:{x:w,y:P}}}}}function Sr(e){const[t,n="center"]=e.split("-");return[t,n]}function sl(e){return Sr(e)[0]}function al(e){return Sr(e)[1]}function ll(e,t){ie(t,!0);let n=k(t,"tooltip",3,!1);Po.create(n());var r=dt(),i=X(r);Bt(i,()=>t.children??ne),z(e,r),se()}function cl(e,t){ie(t,!0);let n=k(t,"tooltip",3,!1);Oo.create({id:U(()=>t.id),virtualEl:U(()=>t.virtualEl),ref:t.ref},n());var r=dt(),i=X(r);Bt(i,()=>t.children??ne),z(e,r),se()}function ul(e,t){ie(t,!0);let n=k(t,"side",3,"bottom"),r=k(t,"sideOffset",3,0),i=k(t,"align",3,"center"),s=k(t,"alignOffset",3,0),a=k(t,"arrowPadding",3,0),l=k(t,"avoidCollisions",3,!0),h=k(t,"collisionBoundary",19,()=>[]),m=k(t,"collisionPadding",3,0),y=k(t,"hideWhenDetached",3,!1),v=k(t,"onPlaced",3,()=>{}),g=k(t,"sticky",3,"partial"),p=k(t,"updatePositionStrategy",3,"optimized"),w=k(t,"strategy",3,"fixed"),P=k(t,"dir",3,"ltr"),O=k(t,"style",19,()=>({})),x=k(t,"wrapperId",19,Si),D=k(t,"customAnchor",3,null),T=k(t,"tooltip",3,!1);const E=ar.create({side:U(()=>n()),sideOffset:U(()=>r()),align:U(()=>i()),alignOffset:U(()=>s()),id:U(()=>t.id),arrowPadding:U(()=>a()),avoidCollisions:U(()=>l()),collisionBoundary:U(()=>h()),collisionPadding:U(()=>m()),hideWhenDetached:U(()=>y()),onPlaced:U(()=>v()),sticky:U(()=>g()),updatePositionStrategy:U(()=>p()),strategy:U(()=>w()),dir:U(()=>P()),style:U(()=>O()),enabled:U(()=>t.enabled),wrapperId:U(()=>x()),customAnchor:U(()=>D())},T()),L=W(()=>Qe(E.wrapperProps,{style:{pointerEvents:"auto"}}));var F=dt(),Q=X(F);Bt(Q,()=>t.content??ne,()=>({props:E.props,wrapperProps:o(L)})),z(e,F),se()}function dl(e,t){ie(t,!0),Ci(()=>{var i;(i=t.onPlaced)==null||i.call(t)});var n=dt(),r=X(n);Bt(r,()=>t.content??ne,()=>({props:{},wrapperProps:{}})),z(e,n),se()}function fl(e,t){let n=k(t,"isStatic",3,!1),r=ln(t,["$$slots","$$events","$$legacy","content","isStatic","onPlaced"]);var i=dt(),s=X(i);{var a=h=>{dl(h,{get content(){return t.content},get onPlaced(){return t.onPlaced}})},l=h=>{ul(h,Nt({get content(){return t.content},get onPlaced(){return t.onPlaced}},()=>r))};xt(s,h=>{n()?h(a):h(l,-1)})}z(e,i)}var hl=at("<!> <!>",1);function Ri(e,t){ie(t,!0);let n=k(t,"interactOutsideBehavior",3,"close"),r=k(t,"trapFocus",3,!0),i=k(t,"isValidEvent",3,()=>!1),s=k(t,"customAnchor",3,null),a=k(t,"isStatic",3,!1),l=k(t,"tooltip",3,!1),h=k(t,"contentPointerEvents",3,"auto"),m=ln(t,["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled","ref","tooltip","contentPointerEvents"]);const y=W(()=>t.preventScroll??!0),v=W(()=>t.strategy??(o(y)?"fixed":"absolute"));fl(e,{get isStatic(){return a()},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 o(v)},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 l()},content:(p,w)=>{let P=()=>w==null?void 0:w().props,O=()=>w==null?void 0:w().wrapperProps;var x=hl(),D=X(x);{var T=F=>{Qr(F,{get preventScroll(){return o(y)}})},E=F=>{Qr(F,{get preventScroll(){return o(y)}})};xt(D,F=>{t.forceMount&&t.enabled?F(T):t.forceMount||F(E,1)})}var L=M(D,2);qs(L,{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:(Q,ft)=>{let R=()=>ft==null?void 0:ft().props;Js(Q,{get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get enabled(){return t.enabled},get ref(){return t.ref},children:($,et)=>{Zs($,{get id(){return t.id},get onInteractOutside(){return t.onInteractOutside},get onFocusOutside(){return t.onFocusOutside},get interactOutsideBehavior(){return n()},get isValidEvent(){return i()},get enabled(){return t.enabled},get ref(){return t.ref},children:(nt,Y)=>{let ht=()=>Y==null?void 0:Y().props;Qs(nt,{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:(rt,J)=>{var V=dt(),Z=X(V);{let it=W(()=>({props:Qe(m,P(),ht(),R(),{style:{pointerEvents:h()}}),wrapperProps:O()}));Bt(Z,()=>t.popper??ne,()=>o(it))}z(rt,V)},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{focusScope:!0}}),z(p,x)},$$slots:{content:!0}}),se()}function pl(e,t){let n=k(t,"interactOutsideBehavior",3,"close"),r=k(t,"trapFocus",3,!0),i=k(t,"isValidEvent",3,()=>!1),s=k(t,"customAnchor",3,null),a=k(t,"isStatic",3,!1),l=ln(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 h=dt(),m=X(h);{var y=v=>{Ri(v,Nt({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 a()},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 i()},get onFocusOutside(){return t.onFocusOutside},forceMount:!1,get ref(){return t.ref}},()=>l))};xt(m,v=>{t.shouldRender&&v(y)})}z(e,h)}function vl(e,t){let n=k(t,"interactOutsideBehavior",3,"close"),r=k(t,"trapFocus",3,!0),i=k(t,"isValidEvent",3,()=>!1),s=k(t,"customAnchor",3,null),a=k(t,"isStatic",3,!1),l=ln(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"]);Ri(e,Nt({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 a()},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 i()},get onFocusOutside(){return t.onFocusOutside}},()=>l,{forceMount:!0}))}function nr(e,t){const[n,r]=e;let i=!1;const s=t.length;for(let a=0,l=s-1;a<s;l=a++){const[h,m]=t[a]??[0,0],[y,v]=t[l]??[0,0];m>=r!=v>=r&&n<=(y-h)*(r-m)/(v-m)+h&&(i=!i)}return i}function or(e,t){return e[0]>=t.left&&e[0]<=t.right&&e[1]>=t.top&&e[1]<=t.bottom}function gi(e,t){const n=e.left+e.width/2,r=e.top+e.height/2,i=t.left+t.width/2,s=t.top+t.height/2,a=i-n,l=s-r;return Math.abs(a)>Math.abs(l)?a>0?"right":"left":l>0?"bottom":"top"}var ge,on,rn,Yt,Dt,De,Me,me,ye,q,yo,lr,cr,Bi,Vi,Xt,ur,Ki,Ui;class gl{constructor(t){A(this,q);A(this,ge);A(this,on);A(this,rn);A(this,Yt,null);A(this,Dt,null);A(this,De,[]);A(this,Me,null);A(this,me,null);A(this,ye,null);j(this,ge,t),j(this,on,t.buffer??1);const n=t.transitIntentTimeout;j(this,rn,typeof n=="number"&&n>0?n:null),Pn([t.triggerNode,t.contentNode,t.enabled],([r,i,s])=>{if(!r||!i||!s){j(this,Me,null),B(this,q,Xt).call(this);return}f(this,Me)&&f(this,Me)!==r&&B(this,q,Xt).call(this),j(this,Me,r);const a=Gs(r),l=g=>{B(this,q,Vi).call(this,[g.clientX,g.clientY],r,i)},h=g=>{var P,O;const p=g.relatedTarget;if(Te(p)&&i.contains(p))return;const w=((O=(P=f(this,ge)).ignoredTargets)==null?void 0:O.call(P))??[];Te(p)&&w.some(x=>x===p||x.contains(p))||(j(this,De,Te(p)&&w.length>0?w.filter(x=>p.contains(x)):[]),j(this,Yt,[g.clientX,g.clientY]),j(this,Dt,"content"),B(this,q,lr).call(this))},m=()=>{B(this,q,Xt).call(this)},y=()=>{B(this,q,Xt).call(this)},v=g=>{const p=g.relatedTarget;Te(p)&&r.contains(p)||(j(this,Yt,[g.clientX,g.clientY]),j(this,Dt,"trigger"),B(this,q,lr).call(this))};return[bn(a,"pointermove",l),bn(r,"pointerleave",h),bn(r,"pointerenter",m),bn(i,"pointerenter",y),bn(i,"pointerleave",v)].reduce((g,p)=>()=>{g(),p()},()=>{})})}}ge=new WeakMap,on=new WeakMap,rn=new WeakMap,Yt=new WeakMap,Dt=new WeakMap,De=new WeakMap,Me=new WeakMap,me=new WeakMap,ye=new WeakMap,q=new WeakSet,yo=function(){f(this,me)!==null&&(cancelAnimationFrame(f(this,me)),j(this,me,null))},lr=function(){B(this,q,yo).call(this),j(this,me,requestAnimationFrame(()=>{j(this,me,null),!(!f(this,Yt)||!f(this,Dt))&&(B(this,q,Xt).call(this),f(this,ge).onPointerExit())}))},cr=function(){f(this,ye)!==null&&(clearTimeout(f(this,ye)),j(this,ye,null))},Bi=function(){f(this,rn)!==null&&(B(this,q,cr).call(this),j(this,ye,window.setTimeout(()=>{j(this,ye,null),!(!f(this,Yt)||!f(this,Dt))&&(B(this,q,Xt).call(this),f(this,ge).onPointerExit())},f(this,rn))))},Vi=function(t,n,r){if(!f(this,Yt)||!f(this,Dt))return;B(this,q,yo).call(this),B(this,q,Bi).call(this);const i=n.getBoundingClientRect(),s=r.getBoundingClientRect();if(f(this,Dt)==="content"&&or(t,s)){B(this,q,Xt).call(this);return}if(f(this,Dt)==="trigger"&&or(t,i)){B(this,q,Xt).call(this);return}if(f(this,Dt)==="content"&&f(this,De).length>0)for(const y of f(this,De)){const v=y.getBoundingClientRect();if(or(t,v))return;const g=gi(i,v),p=B(this,q,ur).call(this,i,v,g);if(p&&nr(t,p))return}const a=gi(i,s),l=B(this,q,ur).call(this,i,s,a);if(l&&nr(t,l))return;const h=f(this,Dt)==="content"?s:i,m=B(this,q,Ki).call(this,f(this,Yt),h,a,f(this,Dt));nr(t,m)||(B(this,q,Xt).call(this),f(this,ge).onPointerExit())},Xt=function(){j(this,Yt,null),j(this,Dt,null),j(this,De,[]),B(this,q,yo).call(this),B(this,q,cr).call(this)},ur=function(t,n,r){const i=f(this,on);switch(r){case"top":return[[Math.min(t.left,n.left)-i,t.top],[Math.min(t.left,n.left)-i,n.bottom],[Math.max(t.right,n.right)+i,n.bottom],[Math.max(t.right,n.right)+i,t.top]];case"bottom":return[[Math.min(t.left,n.left)-i,t.bottom],[Math.min(t.left,n.left)-i,n.top],[Math.max(t.right,n.right)+i,n.top],[Math.max(t.right,n.right)+i,t.bottom]];case"left":return[[t.left,Math.min(t.top,n.top)-i],[n.right,Math.min(t.top,n.top)-i],[n.right,Math.max(t.bottom,n.bottom)+i],[t.left,Math.max(t.bottom,n.bottom)+i]];case"right":return[[t.right,Math.min(t.top,n.top)-i],[n.left,Math.min(t.top,n.top)-i],[n.left,Math.max(t.bottom,n.bottom)+i],[t.right,Math.max(t.bottom,n.bottom)+i]]}},Ki=function(t,n,r,i){const s=f(this,on)*4,[a,l]=t;switch(i==="trigger"?B(this,q,Ui).call(this,r):r){case"top":return[[a-s,l+s],[a+s,l+s],[n.right+s,n.bottom],[n.right+s,n.top],[n.left-s,n.top],[n.left-s,n.bottom]];case"bottom":return[[a-s,l-s],[a+s,l-s],[n.right+s,n.top],[n.right+s,n.bottom],[n.left-s,n.bottom],[n.left-s,n.top]];case"left":return[[a+s,l-s],[a+s,l+s],[n.right,n.bottom+s],[n.left,n.bottom+s],[n.left,n.top-s],[n.right,n.top-s]];case"right":return[[a-s,l-s],[a-s,l+s],[n.left,n.bottom+s],[n.right,n.bottom+s],[n.right,n.top-s],[n.left,n.top-s]]}},Ui=function(t){switch(t){case"top":return"bottom";case"bottom":return"top";case"left":return"right";case"right":return"left"}};const dr=ra({component:"popover",parts:["root","trigger","content","close","overlay"]}),Ar=new Eo("Popover.Root");var Yn,qn,Jn,Zn,Qn,Gn,$n,we,be,qt,fe;const zr=class zr{constructor(t){A(this,qt);ot(this,"opts");A(this,Yn,yt(null));ot(this,"contentPresence");A(this,qn,yt(null));A(this,Jn,yt(null));ot(this,"overlayPresence");A(this,Zn,yt(!1));A(this,Qn,yt(!1));A(this,Gn,yt(!1));A(this,$n,yt(0));A(this,we,null);A(this,be,null);this.opts=t,this.contentPresence=new Gr({ref:U(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new Gr({ref:U(()=>this.overlayNode),open:this.opts.open}),Pn(()=>this.opts.open.current,n=>{n||(this.openedViaHover=!1,this.hasInteractedWithContent=!1,B(this,qt,fe).call(this))})}static create(t){return Ar.set(new zr(t))}get contentNode(){return o(f(this,Yn))}set contentNode(t){d(f(this,Yn),t,!0)}get triggerNode(){return o(f(this,qn))}set triggerNode(t){d(f(this,qn),t,!0)}get overlayNode(){return o(f(this,Jn))}set overlayNode(t){d(f(this,Jn),t,!0)}get openedViaHover(){return o(f(this,Zn))}set openedViaHover(t){d(f(this,Zn),t,!0)}get hasInteractedWithContent(){return o(f(this,Qn))}set hasInteractedWithContent(t){d(f(this,Qn),t,!0)}get hoverCooldown(){return o(f(this,Gn))}set hoverCooldown(t){d(f(this,Gn),t,!0)}get closeDelay(){return o(f(this,$n))}set closeDelay(t){d(f(this,$n),t,!0)}setDomContext(t){j(this,be,t)}toggleOpen(){B(this,qt,fe).call(this),this.opts.open.current=!this.opts.open.current}handleClose(){B(this,qt,fe).call(this),this.opts.open.current&&(this.opts.open.current=!1)}handleHoverOpen(){B(this,qt,fe).call(this),!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||(B(this,qt,fe).call(this),this.closeDelay<=0?this.opts.open.current=!1:f(this,be)&&j(this,we,f(this,be).setTimeout(()=>{this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1),j(this,we,null)},this.closeDelay))))}cancelDelayedClose(){B(this,qt,fe).call(this)}markInteraction(){this.hasInteractedWithContent=!0,B(this,qt,fe).call(this)}};Yn=new WeakMap,qn=new WeakMap,Jn=new WeakMap,Zn=new WeakMap,Qn=new WeakMap,Gn=new WeakMap,$n=new WeakMap,we=new WeakMap,be=new WeakMap,qt=new WeakSet,fe=function(){f(this,we)!==null&&f(this,be)&&(f(this,be).clearTimeout(f(this,we)),j(this,we,null))};let fr=zr;var xe,sn,Le,Ht,pr,vr,gr,ji,to;const kr=class kr{constructor(t,n){A(this,Ht);ot(this,"opts");ot(this,"root");ot(this,"attachment");ot(this,"domContext");A(this,xe,null);A(this,sn,null);A(this,Le,yt(!1));A(this,to,W(()=>({id:this.opts.id.current,"aria-haspopup":"dialog","aria-expanded":na(this.root.opts.open.current),"data-state":Ai(this.root.opts.open.current),"aria-controls":B(this,Ht,ji).call(this),[dr.trigger]:"",disabled:this.opts.disabled.current,onkeydown:this.onkeydown,onclick:this.onclick,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment})));this.opts=t,this.root=n,this.attachment=_n(this.opts.ref,r=>this.root.triggerNode=r),this.domContext=new $s(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),Pn(()=>this.opts.closeDelay.current,r=>{this.root.closeDelay=r})}static create(t){return new kr(t,Ar.get())}onpointerenter(t){if(this.opts.disabled.current||!this.opts.openOnHover.current||wo(t)||(d(f(this,Le),!0),B(this,Ht,vr).call(this),this.root.cancelDelayedClose(),this.root.opts.open.current||this.root.hoverCooldown))return;const n=this.opts.openDelay.current;n<=0?this.root.handleHoverOpen():j(this,xe,this.domContext.setTimeout(()=>{this.root.handleHoverOpen(),j(this,xe,null)},n))}onpointerleave(t){this.opts.disabled.current||this.opts.openOnHover.current&&(wo(t)||(d(f(this,Le),!1),B(this,Ht,pr).call(this),this.root.hoverCooldown=!1))}onclick(t){if(!this.opts.disabled.current&&t.button===0){if(B(this,Ht,gr).call(this),o(f(this,Le))&&this.root.opts.open.current&&this.root.openedViaHover){this.root.openedViaHover=!1,this.root.hasInteractedWithContent=!0;return}o(f(this,Le))&&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===ta||t.key===ea)&&(t.preventDefault(),B(this,Ht,gr).call(this),this.root.toggleOpen())}get props(){return o(f(this,to))}set props(t){d(f(this,to),t)}};xe=new WeakMap,sn=new WeakMap,Le=new WeakMap,Ht=new WeakSet,pr=function(){f(this,xe)!==null&&(this.domContext.clearTimeout(f(this,xe)),j(this,xe,null))},vr=function(){f(this,sn)!==null&&(this.domContext.clearTimeout(f(this,sn)),j(this,sn,null))},gr=function(){B(this,Ht,pr).call(this),B(this,Ht,vr).call(this)},ji=function(){var t,n;if(this.root.opts.open.current&&((t=this.root.contentNode)!=null&&t.id))return(n=this.root.contentNode)==null?void 0:n.id},to=new WeakMap;let hr=kr;var eo,no;const Er=class Er{constructor(t,n){ot(this,"opts");ot(this,"root");ot(this,"attachment");ot(this,"onInteractOutside",t=>{if(this.opts.onInteractOutside.current(t),t.defaultPrevented||!Te(t.target))return;const n=t.target.closest(dr.selector("trigger"));if(!(n&&n===this.root.triggerNode)){if(this.opts.customAnchor.current){if(Te(this.opts.customAnchor.current)){if(this.opts.customAnchor.current.contains(t.target))return}else if(typeof this.opts.customAnchor.current=="string"){const r=document.querySelector(this.opts.customAnchor.current);if(r&&r.contains(t.target))return}}this.root.handleClose()}});ot(this,"onEscapeKeydown",t=>{this.opts.onEscapeKeydown.current(t),!t.defaultPrevented&&this.root.handleClose()});A(this,eo,W(()=>({open:this.root.opts.open.current})));A(this,no,W(()=>({id:this.opts.id.current,tabindex:-1,"data-state":Ai(this.root.opts.open.current),[dr.content]:"",style:{pointerEvents:"auto",contain:"layout style"},onpointerdown:this.onpointerdown,onfocusin:this.onfocusin,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment})));ot(this,"popperProps",{onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown});this.opts=t,this.root=n,this.attachment=_n(this.opts.ref,r=>this.root.contentNode=r),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 gl({triggerNode:()=>this.root.triggerNode,contentNode:()=>this.root.contentNode,enabled:()=>this.root.opts.open.current&&this.root.openedViaHover&&!this.root.hasInteractedWithContent,onPointerExit:()=>{this.root.handleDelayedHoverClose()}})}static create(t){return new Er(t,Ar.get())}onpointerdown(t){this.root.markInteraction()}onfocusin(t){const n=t.target;Te(n)&&oa(n)&&this.root.markInteraction()}onpointerenter(t){wo(t)||this.root.cancelDelayedClose()}onpointerleave(t){wo(t)}get shouldRender(){return this.root.contentPresence.shouldRender}get shouldTrapFocus(){return!(this.root.openedViaHover&&!this.root.hasInteractedWithContent)}get snippetProps(){return o(f(this,eo))}set snippetProps(t){d(f(this,eo),t)}get props(){return o(f(this,no))}set props(t){d(f(this,no),t)}};eo=new WeakMap,no=new WeakMap;let mr=Er;var ml=at("<div><div><!></div></div>"),yl=at("<div><div><!></div></div>");function mi(e,t){const n=Oi();ie(t,!0);let r=k(t,"ref",15,null),i=k(t,"id",19,()=>zi(n)),s=k(t,"forceMount",3,!1),a=k(t,"onOpenAutoFocus",3,Ze),l=k(t,"onCloseAutoFocus",3,Ze),h=k(t,"onEscapeKeydown",3,Ze),m=k(t,"onInteractOutside",3,Ze),y=k(t,"trapFocus",3,!0),v=k(t,"preventScroll",3,!1),g=k(t,"customAnchor",3,null),p=ln(t,["$$slots","$$events","$$legacy","child","children","ref","id","forceMount","onOpenAutoFocus","onCloseAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","customAnchor","style"]);const w=mr.create({id:U(()=>i()),ref:U(()=>r(),F=>r(F)),onInteractOutside:U(()=>m()),onEscapeKeydown:U(()=>h()),customAnchor:U(()=>g())}),P=W(()=>Qe(p,w.props)),O=W(()=>y()&&w.shouldTrapFocus);function x(F){w.shouldTrapFocus||F.preventDefault(),a()(F)}var D=dt(),T=X(D);{var E=F=>{vl(F,Nt(()=>o(P),()=>w.popperProps,{get ref(){return w.opts.ref},get enabled(){return w.root.opts.open.current},get id(){return i()},get trapFocus(){return o(O)},get preventScroll(){return v()},loop:!0,forceMount:!0,get customAnchor(){return g()},onOpenAutoFocus:x,get onCloseAutoFocus(){return l()},get shouldRender(){return w.shouldRender},popper:(ft,R)=>{let $=()=>R==null?void 0:R().props,et=()=>R==null?void 0:R().wrapperProps;const tt=W(()=>Qe($(),{style:pi("popover")},{style:t.style}));var nt=dt(),Y=X(nt);{var ht=J=>{var V=dt(),Z=X(V);{let it=W(()=>({props:o(tt),wrapperProps:et(),...w.snippetProps}));Bt(Z,()=>t.child,()=>o(it))}z(J,V)},rt=J=>{var V=ml();xn(V,()=>({...et()}));var Z=S(V);xn(Z,()=>({...o(tt)}));var it=S(Z);Bt(it,()=>t.children??ne),C(Z),C(V),z(J,V)};xt(Y,J=>{t.child?J(ht):J(rt,-1)})}z(ft,nt)},$$slots:{popper:!0}}))},L=F=>{pl(F,Nt(()=>o(P),()=>w.popperProps,{get ref(){return w.opts.ref},get open(){return w.root.opts.open.current},get id(){return i()},get trapFocus(){return o(O)},get preventScroll(){return v()},loop:!0,forceMount:!1,get customAnchor(){return g()},onOpenAutoFocus:x,get onCloseAutoFocus(){return l()},get shouldRender(){return w.shouldRender},popper:(ft,R)=>{let $=()=>R==null?void 0:R().props,et=()=>R==null?void 0:R().wrapperProps;const tt=W(()=>Qe($(),{style:pi("popover")},{style:t.style}));var nt=dt(),Y=X(nt);{var ht=J=>{var V=dt(),Z=X(V);{let it=W(()=>({props:o(tt),wrapperProps:et(),...w.snippetProps}));Bt(Z,()=>t.child,()=>o(it))}z(J,V)},rt=J=>{var V=yl();xn(V,()=>({...et()}));var Z=S(V);xn(Z,()=>({...o(tt)}));var it=S(Z);Bt(it,()=>t.children??ne),C(Z),C(V),z(J,V)};xt(Y,J=>{t.child?J(ht):J(rt,-1)})}z(ft,nt)},$$slots:{popper:!0}}))};xt(T,F=>{s()?F(E):s()||F(L,1)})}z(e,D),se()}var wl=at("<button><!></button>");function yi(e,t){const n=Oi();ie(t,!0);let r=k(t,"id",19,()=>zi(n)),i=k(t,"ref",15,null),s=k(t,"type",3,"button"),a=k(t,"disabled",3,!1),l=k(t,"openOnHover",3,!1),h=k(t,"openDelay",3,700),m=k(t,"closeDelay",3,300),y=ln(t,["$$slots","$$events","$$legacy","children","child","id","ref","type","disabled","openOnHover","openDelay","closeDelay"]);const v=hr.create({id:U(()=>r()),ref:U(()=>i(),p=>i(p)),disabled:U(()=>!!a()),openOnHover:U(()=>l()),openDelay:U(()=>h()),closeDelay:U(()=>m())}),g=W(()=>Qe(y,v.props,{type:s()}));cl(e,{get id(){return r()},get ref(){return v.opts.ref},children:(p,w)=>{var P=dt(),O=X(P);{var x=T=>{var E=dt(),L=X(E);Bt(L,()=>t.child,()=>({props:o(g)})),z(T,E)},D=T=>{var E=wl();xn(E,()=>({...o(g)}));var L=S(E);Bt(L,()=>t.children??ne),C(E),z(T,E)};xt(O,T=>{t.child?T(x):T(D,-1)})}z(p,P)},$$slots:{default:!0}}),se()}function wi(e,t){ie(t,!0);let n=k(t,"open",15,!1),r=k(t,"onOpenChange",3,Ze),i=k(t,"onOpenChangeComplete",3,Ze);fr.create({open:U(()=>n(),s=>{n(s),r()(s)}),onOpenChangeComplete:U(()=>i())}),ll(e,{children:(s,a)=>{var l=dt(),h=X(l);Bt(h,()=>t.children??ne),z(s,l)},$$slots:{default:!0}}),se()}function bl(e,t){const n=Ae(t,["children","$$slots","$$events","$$legacy"]);/**
2
2
  * @license lucide-svelte v0.460.1 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.