rssany 0.3.1 → 0.3.2

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 (34) hide show
  1. package/app/plugins/builtin/xiaohongshu.rssany.js +59 -2
  2. package/app/webui/build/200.html +6 -6
  3. package/app/webui/build/_app/immutable/assets/0.BLOTwIuF.css +1 -0
  4. package/app/webui/build/_app/immutable/chunks/{DkamXS6W.js → BXTsojX2.js} +1 -1
  5. package/app/webui/build/_app/immutable/chunks/Brun6sCr.js +36 -0
  6. package/app/webui/build/_app/immutable/chunks/{_qj9U-za.js → DAV9bzjw.js} +1 -1
  7. package/app/webui/build/_app/immutable/chunks/{CqYSO3Dx.js → DXDBlEGf.js} +1 -1
  8. package/app/webui/build/_app/immutable/chunks/Dr67pd7v.js +1 -0
  9. package/app/webui/build/_app/immutable/entry/{app.RFfWi3_i.js → app.dq7-6soi.js} +2 -2
  10. package/app/webui/build/_app/immutable/entry/start.BnoTfBrB.js +1 -0
  11. package/app/webui/build/_app/immutable/nodes/{0.DK_mcVDm.js → 0.CQDkqUeN.js} +1 -1
  12. package/app/webui/build/_app/immutable/nodes/{1.0PRrU2uQ.js → 1.BUa24rXB.js} +1 -1
  13. package/app/webui/build/_app/immutable/nodes/{10.CsxzlUER.js → 10.MZgVhpGF.js} +1 -1
  14. package/app/webui/build/_app/immutable/nodes/{11.D-PkhIRW.js → 11.B39IbrZ0.js} +1 -1
  15. package/app/webui/build/_app/immutable/nodes/12.B5B81dLQ.js +1 -0
  16. package/app/webui/build/_app/immutable/nodes/{14.COwSLwDN.js → 14.Db6eOPqq.js} +1 -1
  17. package/app/webui/build/_app/immutable/nodes/{15.nDN_AHrs.js → 15.B2jiP2VJ.js} +1 -1
  18. package/app/webui/build/_app/immutable/nodes/{16.zfSe93Ab.js → 16.p6WfP435.js} +1 -1
  19. package/app/webui/build/_app/immutable/nodes/{3.CEVEHuaH.js → 3.BZQeL-vz.js} +1 -1
  20. package/app/webui/build/_app/immutable/nodes/{5.BZScQ2CH.js → 5.Bo_ftyqW.js} +1 -1
  21. package/app/webui/build/_app/immutable/nodes/{6.CkFk8X--.js → 6.vOowdQUr.js} +1 -1
  22. package/app/webui/build/_app/immutable/nodes/{7.CuQJk7te.js → 7.BfVbBKZu.js} +1 -1
  23. package/app/webui/build/_app/immutable/nodes/{8.DIavWJnU.js → 8.BslYG5f2.js} +1 -1
  24. package/app/webui/build/_app/immutable/nodes/{9.Db30M8x0.js → 9.DAgT-df2.js} +1 -1
  25. package/app/webui/build/_app/version.json +1 -1
  26. package/dist/index.js +47 -3
  27. package/dist/index.js.map +1 -1
  28. package/package.json +4 -4
  29. package/scripts/dev.mjs +5 -1
  30. package/app/webui/build/_app/immutable/assets/0.DsKls1SN.css +0 -1
  31. package/app/webui/build/_app/immutable/chunks/CVW0ymE1.js +0 -1
  32. package/app/webui/build/_app/immutable/chunks/DJ2e04vK.js +0 -36
  33. package/app/webui/build/_app/immutable/entry/start.DU_kyeGS.js +0 -1
  34. package/app/webui/build/_app/immutable/nodes/12.GGf-JLUY.js +0 -1
@@ -134,8 +134,7 @@ function parseListHtml(html, url) {
134
134
  const title = (titleEl?.textContent ?? "").trim() || "Note";
135
135
  const authorEl = section.querySelector('a[aria-current="page"] .name') ?? section.querySelector('a[aria-current="page"] span');
136
136
  const author = (authorEl?.textContent ?? "").trim() || undefined;
137
- const imageEl = section.querySelector("img[data-xhs-img], img");
138
- const image = imageEl?.getAttribute("src")?.trim() || undefined;
137
+ const image = pickSectionImage(section);
139
138
  const summary = image ? undefined : title;
140
139
  const guid = noteId ? hashNoteGuid(noteId) : _deps.createHash("sha256").update(link).digest("hex");
141
140
  items.push({
@@ -200,6 +199,59 @@ function extractUrl(val) {
200
199
  }
201
200
 
202
201
 
202
+ function isUsableImageUrl(url) {
203
+ const u = (url ?? "").trim();
204
+ if (!u) return false;
205
+ if (u.startsWith("data:")) return false;
206
+ if (/^blob:/i.test(u)) return false;
207
+ return u.startsWith("http://") || u.startsWith("https://") || u.startsWith("//");
208
+ }
209
+
210
+
211
+ function normalizeImageUrl(url) {
212
+ const u = (url ?? "").trim();
213
+ if (!isUsableImageUrl(u)) return undefined;
214
+ return u.startsWith("//") ? `https:${u}` : u;
215
+ }
216
+
217
+
218
+ function pickImageFromSrcset(srcset) {
219
+ const raw = (srcset ?? "").trim();
220
+ if (!raw) return undefined;
221
+ const parts = raw.split(",").map((p) => p.trim()).filter(Boolean);
222
+ for (let i = parts.length - 1; i >= 0; i -= 1) {
223
+ const candidate = parts[i]?.split(/\s+/)[0];
224
+ const normalized = normalizeImageUrl(candidate);
225
+ if (normalized) return normalized;
226
+ }
227
+ return undefined;
228
+ }
229
+
230
+
231
+ function pickSectionImage(section) {
232
+ const imageEl = section.querySelector("img[data-xhs-img], img");
233
+ if (imageEl) {
234
+ const candidates = [
235
+ imageEl.getAttribute("src"),
236
+ imageEl.getAttribute("data-src"),
237
+ imageEl.getAttribute("data-lazy-src"),
238
+ imageEl.getAttribute("data-original"),
239
+ pickImageFromSrcset(imageEl.getAttribute("srcset")),
240
+ ];
241
+ for (const candidate of candidates) {
242
+ const normalized = normalizeImageUrl(candidate);
243
+ if (normalized) return normalized;
244
+ }
245
+ }
246
+ for (const el of section.querySelectorAll("[style*='background-image']")) {
247
+ const url = extractUrl(el.getAttribute("style") ?? "");
248
+ const normalized = normalizeImageUrl(url);
249
+ if (normalized && (normalized.includes("xhscdn") || normalized.includes("sns-webpic"))) return normalized;
250
+ }
251
+ return undefined;
252
+ }
253
+
254
+
203
255
  function collectNoteImages(root) {
204
256
  const urls = [];
205
257
  const seen = new Set();
@@ -336,11 +388,16 @@ export async function fetchItems(sourceId, ctx) {
336
388
  async function enrichItem(item, ctx) {
337
389
  const { html } = await ctx.fetchHtml(item.link);
338
390
  const detail = extractDetailHtml(html);
391
+ const imgUrls = collectNoteImages(_deps.parseHtml(html));
392
+ const imageUrl = item.imageUrl ?? imgUrls[0];
339
393
  return {
340
394
  ...item,
341
395
  author: detail.author ?? item.author,
342
396
  title: detail.title ?? item.title,
343
397
  content: detail.content ? `<p>${detail.content.replace(/\n\n/g, "</p><p>")}</p>` : undefined,
344
398
  pubDate: detail.pubDate ?? item.pubDate,
399
+ imageUrl,
400
+ coverImg: imageUrl,
401
+ cover_img: imageUrl,
345
402
  };
346
403
  }
@@ -12,13 +12,13 @@
12
12
  <link rel="icon" href="/favicon.ico" sizes="32x32" />
13
13
  <link rel="icon" href="/favicon.png" type="image/png" />
14
14
  <link rel="apple-touch-icon" href="/apple-touch-icon.png" />
15
- <link href="/_app/immutable/entry/start.DU_kyeGS.js" rel="modulepreload">
16
- <link href="/_app/immutable/chunks/CVW0ymE1.js" rel="modulepreload">
15
+ <link href="/_app/immutable/entry/start.BnoTfBrB.js" rel="modulepreload">
16
+ <link href="/_app/immutable/chunks/Dr67pd7v.js" rel="modulepreload">
17
17
  <link href="/_app/immutable/chunks/vtBo8kBV.js" rel="modulepreload">
18
18
  <link href="/_app/immutable/chunks/ClknbeNl.js" rel="modulepreload">
19
19
  <link href="/_app/immutable/chunks/BUApaBEI.js" rel="modulepreload">
20
20
  <link href="/_app/immutable/chunks/Dyvi1wBH.js" rel="modulepreload">
21
- <link href="/_app/immutable/entry/app.RFfWi3_i.js" rel="modulepreload">
21
+ <link href="/_app/immutable/entry/app.dq7-6soi.js" rel="modulepreload">
22
22
  <link href="/_app/immutable/chunks/B2cyTHdf.js" rel="modulepreload">
23
23
  <link href="/_app/immutable/chunks/CS53ooo0.js" rel="modulepreload">
24
24
  <link href="/_app/immutable/chunks/BkD3yAYe.js" rel="modulepreload">
@@ -32,15 +32,15 @@
32
32
  <div id="svelte">
33
33
  <script>
34
34
  {
35
- __sveltekit_29f0f = {
35
+ __sveltekit_dhz4pi = {
36
36
  base: ""
37
37
  };
38
38
 
39
39
  const element = document.currentScript.parentElement;
40
40
 
41
41
  Promise.all([
42
- import("/_app/immutable/entry/start.DU_kyeGS.js"),
43
- import("/_app/immutable/entry/app.RFfWi3_i.js")
42
+ import("/_app/immutable/entry/start.BnoTfBrB.js"),
43
+ import("/_app/immutable/entry/app.dq7-6soi.js")
44
44
  ]).then(([kit, app]) => {
45
45
  kit.start(app, element);
46
46
  });
@@ -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.1 | 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}.static{position:static}.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))}.\[webui\:watch\]{webui:watch}}: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;text-decoration:none;cursor:pointer;-webkit-user-select:none;user-select:none;transition:color .15s ease}.nav-rail-brand.svelte-12qhfyh:hover{color:var(--color-foreground)}.nav-rail-brand.svelte-12qhfyh:focus-visible{outline:1px solid color-mix(in srgb,var(--color-primary) 55%,transparent);outline-offset:2px}.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;padding-bottom:0}
@@ -1,4 +1,4 @@
1
- var Cr=Object.defineProperty;var vs=d=>{throw TypeError(d)};var kr=(d,e,r)=>e in d?Cr(d,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):d[e]=r;var be=(d,e,r)=>kr(d,typeof e!="symbol"?e+"":e,r),Do=(d,e,r)=>e.has(d)||vs("Cannot "+r);var h=(d,e,r)=>(Do(d,e,"read from private field"),r?r.call(d):e.get(d)),$=(d,e,r)=>e.has(d)?vs("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(d):e.set(d,r),T=(d,e,r,p)=>(Do(d,e,"write to private field"),p?p.call(d,r):e.set(d,r),r),C=(d,e,r)=>(Do(d,e,"access private method"),r);import{p as Fs,c as oe,a as y,f as M,t as zt}from"./CS53ooo0.js";import"./BA4Gucnq.js";import{o as zr}from"./Dyvi1wBH.js";import{b7 as Ge,i as t,a5 as n,aA as Se,at as yo,f as N,au as bo,av as f,aj as vo,ax as c,aC as Vt,aD as Pr,aw as v,ay as pe,az as _e,U as x,u as Fe,z as P,aq as Ao}from"./vtBo8kBV.js";import{o as jt,d as xr,a as ie,s as ze,e as $r,r as Tr}from"./B2cyTHdf.js";import{s as Sr,a as ms}from"./B6WG2Sd3.js";import{i as he}from"./BkD3yAYe.js";import{e as Fo,i as ys}from"./CFwxUBGi.js";import{d as Ut,r as Pt,a as xt,e as Or,s as No}from"./DoRPmqLn.js";import{b as $t}from"./C8umpVpB.js";import{i as Mr}from"./DVa8Y-mQ.js";import{g as bs}from"./ClknbeNl.js";import{p as Io}from"./CqYSO3Dx.js";import{s as Tt}from"./CGCMIfh3.js";import{R as Dr,M as Ar,P as Fr,a as Nr,h as _s,S as Ir,b as Hr,r as Lr,s as Er,c as Wr}from"./DJ2e04vK.js";import{a as Ne}from"./CBY2biv-.js";import{D as gs,a as ws,b as Cs,c as ks,d as co}from"./DAdOEnFb.js";import{P as Vr}from"./D6kzEN_P.js";import{w as Yo,j as jr,k as it,C as Ur,a as zs,b as fe,d as Ns,l as Kr,p as mo,E as Br,S as qr,g as Is,q as Jr,r as Xr,c as Yr,f as Hs,n as St,m as ho,s as lt,I as pt,P as po}from"./DsxvjlCC.js";import{s as ht}from"./ChUctqXA.js";import{p as B,s as Ve,r as Ls,l as ft}from"./BAJAS8BI.js";import{P as Qr,a as Gr,g as Ps,F as Zr,b as Rr}from"./6prdYIKP.js";function Ho(d,e){const[r,p]=d;let u=!1;const l=e.length;for(let m=0,_=l-1;m<l;_=m++){const[q,se]=e[m]??[0,0],[Te,Z]=e[_]??[0,0];se>=p!=Z>=p&&r<=(Te-q)*(p-se)/(Z-se)+q&&(u=!u)}return u}function Lo(d,e){return d[0]>=e.left&&d[0]<=e.right&&d[1]>=e.top&&d[1]<=e.bottom}function xs(d,e){const r=d.left+d.width/2,p=d.top+d.height/2,u=e.left+e.width/2,l=e.top+e.height/2,m=u-r,_=l-p;return Math.abs(m)>Math.abs(_)?m>0?"right":"left":_>0?"bottom":"top"}var Re,Ot,Mt,He,ge,ut,ct,et,tt,z,fo,Eo,Wo,Es,Ws,Ie,Vo,Vs,js;class en{constructor(e){$(this,z);$(this,Re);$(this,Ot);$(this,Mt);$(this,He,null);$(this,ge,null);$(this,ut,[]);$(this,ct,null);$(this,et,null);$(this,tt,null);T(this,Re,e),T(this,Ot,e.buffer??1);const r=e.transitIntentTimeout;T(this,Mt,typeof r=="number"&&r>0?r:null),Yo([e.triggerNode,e.contentNode,e.enabled],([p,u,l])=>{if(!p||!u||!l){T(this,ct,null),C(this,z,Ie).call(this);return}h(this,ct)&&h(this,ct)!==p&&C(this,z,Ie).call(this),T(this,ct,p);const m=jr(p),_=A=>{C(this,z,Ws).call(this,[A.clientX,A.clientY],p,u)},q=A=>{var Oe,R;const L=A.relatedTarget;if(it(L)&&u.contains(L))return;const K=((R=(Oe=h(this,Re)).ignoredTargets)==null?void 0:R.call(Oe))??[];it(L)&&K.some(W=>W===L||W.contains(L))||(T(this,ut,it(L)&&K.length>0?K.filter(W=>L.contains(W)):[]),T(this,He,[A.clientX,A.clientY]),T(this,ge,"content"),C(this,z,Eo).call(this))},se=()=>{C(this,z,Ie).call(this)},Te=()=>{C(this,z,Ie).call(this)},Z=A=>{const L=A.relatedTarget;it(L)&&p.contains(L)||(T(this,He,[A.clientX,A.clientY]),T(this,ge,"trigger"),C(this,z,Eo).call(this))};return[jt(m,"pointermove",_),jt(p,"pointerleave",q),jt(p,"pointerenter",se),jt(u,"pointerenter",Te),jt(u,"pointerleave",Z)].reduce((A,L)=>()=>{A(),L()},()=>{})})}}Re=new WeakMap,Ot=new WeakMap,Mt=new WeakMap,He=new WeakMap,ge=new WeakMap,ut=new WeakMap,ct=new WeakMap,et=new WeakMap,tt=new WeakMap,z=new WeakSet,fo=function(){h(this,et)!==null&&(cancelAnimationFrame(h(this,et)),T(this,et,null))},Eo=function(){C(this,z,fo).call(this),T(this,et,requestAnimationFrame(()=>{T(this,et,null),!(!h(this,He)||!h(this,ge))&&(C(this,z,Ie).call(this),h(this,Re).onPointerExit())}))},Wo=function(){h(this,tt)!==null&&(clearTimeout(h(this,tt)),T(this,tt,null))},Es=function(){h(this,Mt)!==null&&(C(this,z,Wo).call(this),T(this,tt,window.setTimeout(()=>{T(this,tt,null),!(!h(this,He)||!h(this,ge))&&(C(this,z,Ie).call(this),h(this,Re).onPointerExit())},h(this,Mt))))},Ws=function(e,r,p){if(!h(this,He)||!h(this,ge))return;C(this,z,fo).call(this),C(this,z,Es).call(this);const u=r.getBoundingClientRect(),l=p.getBoundingClientRect();if(h(this,ge)==="content"&&Lo(e,l)){C(this,z,Ie).call(this);return}if(h(this,ge)==="trigger"&&Lo(e,u)){C(this,z,Ie).call(this);return}if(h(this,ge)==="content"&&h(this,ut).length>0)for(const Te of h(this,ut)){const Z=Te.getBoundingClientRect();if(Lo(e,Z))return;const A=xs(u,Z),L=C(this,z,Vo).call(this,u,Z,A);if(L&&Ho(e,L))return}const m=xs(u,l),_=C(this,z,Vo).call(this,u,l,m);if(_&&Ho(e,_))return;const q=h(this,ge)==="content"?l:u,se=C(this,z,Vs).call(this,h(this,He),q,m,h(this,ge));Ho(e,se)||(C(this,z,Ie).call(this),h(this,Re).onPointerExit())},Ie=function(){T(this,He,null),T(this,ge,null),T(this,ut,[]),C(this,z,fo).call(this),C(this,z,Wo).call(this)},Vo=function(e,r,p){const u=h(this,Ot);switch(p){case"top":return[[Math.min(e.left,r.left)-u,e.top],[Math.min(e.left,r.left)-u,r.bottom],[Math.max(e.right,r.right)+u,r.bottom],[Math.max(e.right,r.right)+u,e.top]];case"bottom":return[[Math.min(e.left,r.left)-u,e.bottom],[Math.min(e.left,r.left)-u,r.top],[Math.max(e.right,r.right)+u,r.top],[Math.max(e.right,r.right)+u,e.bottom]];case"left":return[[e.left,Math.min(e.top,r.top)-u],[r.right,Math.min(e.top,r.top)-u],[r.right,Math.max(e.bottom,r.bottom)+u],[e.left,Math.max(e.bottom,r.bottom)+u]];case"right":return[[e.right,Math.min(e.top,r.top)-u],[r.left,Math.min(e.top,r.top)-u],[r.left,Math.max(e.bottom,r.bottom)+u],[e.right,Math.max(e.bottom,r.bottom)+u]]}},Vs=function(e,r,p,u){const l=h(this,Ot)*4,[m,_]=e;switch(u==="trigger"?C(this,z,js).call(this,p):p){case"top":return[[m-l,_+l],[m+l,_+l],[r.right+l,r.bottom],[r.right+l,r.top],[r.left-l,r.top],[r.left-l,r.bottom]];case"bottom":return[[m-l,_-l],[m+l,_-l],[r.right+l,r.top],[r.right+l,r.bottom],[r.left-l,r.bottom],[r.left-l,r.top]];case"left":return[[m+l,_-l],[m+l,_+l],[r.right,r.bottom+l],[r.left,r.bottom+l],[r.left,r.top-l],[r.right,r.top-l]];case"right":return[[m-l,_-l],[m-l,_+l],[r.left,r.bottom+l],[r.right,r.bottom+l],[r.right,r.top-l],[r.left,r.top-l]]}},js=function(e){switch(e){case"top":return"bottom";case"bottom":return"top";case"left":return"right";case"right":return"left"}};const jo=Yr({component:"popover",parts:["root","trigger","content","close","overlay"]}),Qo=new Ur("Popover.Root");var Kt,Bt,qt,Jt,Xt,Yt,Qt,ot,st,Le,Ze;const Go=class Go{constructor(e){$(this,Le);be(this,"opts");$(this,Kt,Ge(null));be(this,"contentPresence");$(this,Bt,Ge(null));$(this,qt,Ge(null));be(this,"overlayPresence");$(this,Jt,Ge(!1));$(this,Xt,Ge(!1));$(this,Yt,Ge(!1));$(this,Qt,Ge(0));$(this,ot,null);$(this,st,null);this.opts=e,this.contentPresence=new zs({ref:fe(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new zs({ref:fe(()=>this.overlayNode),open:this.opts.open}),Yo(()=>this.opts.open.current,r=>{r||(this.openedViaHover=!1,this.hasInteractedWithContent=!1,C(this,Le,Ze).call(this))})}static create(e){return Qo.set(new Go(e))}get contentNode(){return t(h(this,Kt))}set contentNode(e){n(h(this,Kt),e,!0)}get triggerNode(){return t(h(this,Bt))}set triggerNode(e){n(h(this,Bt),e,!0)}get overlayNode(){return t(h(this,qt))}set overlayNode(e){n(h(this,qt),e,!0)}get openedViaHover(){return t(h(this,Jt))}set openedViaHover(e){n(h(this,Jt),e,!0)}get hasInteractedWithContent(){return t(h(this,Xt))}set hasInteractedWithContent(e){n(h(this,Xt),e,!0)}get hoverCooldown(){return t(h(this,Yt))}set hoverCooldown(e){n(h(this,Yt),e,!0)}get closeDelay(){return t(h(this,Qt))}set closeDelay(e){n(h(this,Qt),e,!0)}setDomContext(e){T(this,st,e)}toggleOpen(){C(this,Le,Ze).call(this),this.opts.open.current=!this.opts.open.current}handleClose(){C(this,Le,Ze).call(this),this.opts.open.current&&(this.opts.open.current=!1)}handleHoverOpen(){C(this,Le,Ze).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||(C(this,Le,Ze).call(this),this.closeDelay<=0?this.opts.open.current=!1:h(this,st)&&T(this,ot,h(this,st).setTimeout(()=>{this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1),T(this,ot,null)},this.closeDelay))))}cancelDelayedClose(){C(this,Le,Ze).call(this)}markInteraction(){this.hasInteractedWithContent=!0,C(this,Le,Ze).call(this)}};Kt=new WeakMap,Bt=new WeakMap,qt=new WeakMap,Jt=new WeakMap,Xt=new WeakMap,Yt=new WeakMap,Qt=new WeakMap,ot=new WeakMap,st=new WeakMap,Le=new WeakSet,Ze=function(){h(this,ot)!==null&&h(this,st)&&(h(this,st).clearTimeout(h(this,ot)),T(this,ot,null))};let Uo=Go;var rt,Dt,dt,Pe,Bo,qo,Jo,Us,Gt;const Zo=class Zo{constructor(e,r){$(this,Pe);be(this,"opts");be(this,"root");be(this,"attachment");be(this,"domContext");$(this,rt,null);$(this,Dt,null);$(this,dt,Ge(!1));$(this,Gt,Se(()=>({id:this.opts.id.current,"aria-haspopup":"dialog","aria-expanded":Jr(this.root.opts.open.current),"data-state":Is(this.root.opts.open.current),"aria-controls":C(this,Pe,Us).call(this),[jo.trigger]:"",disabled:this.opts.disabled.current,onkeydown:this.onkeydown,onclick:this.onclick,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment})));this.opts=e,this.root=r,this.attachment=Ns(this.opts.ref,p=>this.root.triggerNode=p),this.domContext=new Kr(e.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),Yo(()=>this.opts.closeDelay.current,p=>{this.root.closeDelay=p})}static create(e){return new Zo(e,Qo.get())}onpointerenter(e){if(this.opts.disabled.current||!this.opts.openOnHover.current||mo(e)||(n(h(this,dt),!0),C(this,Pe,qo).call(this),this.root.cancelDelayedClose(),this.root.opts.open.current||this.root.hoverCooldown))return;const r=this.opts.openDelay.current;r<=0?this.root.handleHoverOpen():T(this,rt,this.domContext.setTimeout(()=>{this.root.handleHoverOpen(),T(this,rt,null)},r))}onpointerleave(e){this.opts.disabled.current||this.opts.openOnHover.current&&(mo(e)||(n(h(this,dt),!1),C(this,Pe,Bo).call(this),this.root.hoverCooldown=!1))}onclick(e){if(!this.opts.disabled.current&&e.button===0){if(C(this,Pe,Jo).call(this),t(h(this,dt))&&this.root.opts.open.current&&this.root.openedViaHover){this.root.openedViaHover=!1,this.root.hasInteractedWithContent=!0;return}t(h(this,dt))&&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(e){this.opts.disabled.current||(e.key===Br||e.key===qr)&&(e.preventDefault(),C(this,Pe,Jo).call(this),this.root.toggleOpen())}get props(){return t(h(this,Gt))}set props(e){n(h(this,Gt),e)}};rt=new WeakMap,Dt=new WeakMap,dt=new WeakMap,Pe=new WeakSet,Bo=function(){h(this,rt)!==null&&(this.domContext.clearTimeout(h(this,rt)),T(this,rt,null))},qo=function(){h(this,Dt)!==null&&(this.domContext.clearTimeout(h(this,Dt)),T(this,Dt,null))},Jo=function(){C(this,Pe,Bo).call(this),C(this,Pe,qo).call(this)},Us=function(){var e,r;if(this.root.opts.open.current&&((e=this.root.contentNode)!=null&&e.id))return(r=this.root.contentNode)==null?void 0:r.id},Gt=new WeakMap;let Ko=Zo;var Zt,Rt;const Ro=class Ro{constructor(e,r){be(this,"opts");be(this,"root");be(this,"attachment");be(this,"onInteractOutside",e=>{if(this.opts.onInteractOutside.current(e),e.defaultPrevented||!it(e.target))return;const r=e.target.closest(jo.selector("trigger"));if(!(r&&r===this.root.triggerNode)){if(this.opts.customAnchor.current){if(it(this.opts.customAnchor.current)){if(this.opts.customAnchor.current.contains(e.target))return}else if(typeof this.opts.customAnchor.current=="string"){const p=document.querySelector(this.opts.customAnchor.current);if(p&&p.contains(e.target))return}}this.root.handleClose()}});be(this,"onEscapeKeydown",e=>{this.opts.onEscapeKeydown.current(e),!e.defaultPrevented&&this.root.handleClose()});$(this,Zt,Se(()=>({open:this.root.opts.open.current})));$(this,Rt,Se(()=>({id:this.opts.id.current,tabindex:-1,"data-state":Is(this.root.opts.open.current),[jo.content]:"",style:{pointerEvents:"auto",contain:"layout style"},onpointerdown:this.onpointerdown,onfocusin:this.onfocusin,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment})));be(this,"popperProps",{onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown});this.opts=e,this.root=r,this.attachment=Ns(this.opts.ref,p=>this.root.contentNode=p),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 en({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(e){return new Ro(e,Qo.get())}onpointerdown(e){this.root.markInteraction()}onfocusin(e){const r=e.target;it(r)&&Xr(r)&&this.root.markInteraction()}onpointerenter(e){mo(e)||this.root.cancelDelayedClose()}onpointerleave(e){mo(e)}get shouldRender(){return this.root.contentPresence.shouldRender}get shouldTrapFocus(){return!(this.root.openedViaHover&&!this.root.hasInteractedWithContent)}get snippetProps(){return t(h(this,Zt))}set snippetProps(e){n(h(this,Zt),e)}get props(){return t(h(this,Rt))}set props(e){n(h(this,Rt),e)}};Zt=new WeakMap,Rt=new WeakMap;let Xo=Ro;var tn=M("<div><div><!></div></div>"),on=M("<div><div><!></div></div>");function $s(d,e){const r=Fs();yo(e,!0);let p=B(e,"ref",15,null),u=B(e,"id",19,()=>Hs(r)),l=B(e,"forceMount",3,!1),m=B(e,"onOpenAutoFocus",3,St),_=B(e,"onCloseAutoFocus",3,St),q=B(e,"onEscapeKeydown",3,St),se=B(e,"onInteractOutside",3,St),Te=B(e,"trapFocus",3,!0),Z=B(e,"preventScroll",3,!1),A=B(e,"customAnchor",3,null),L=Ls(e,["$$slots","$$events","$$legacy","child","children","ref","id","forceMount","onOpenAutoFocus","onCloseAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","customAnchor","style"]);const K=Xo.create({id:fe(()=>u()),ref:fe(()=>p(),J=>p(J)),onInteractOutside:fe(()=>se()),onEscapeKeydown:fe(()=>q()),customAnchor:fe(()=>A())}),Oe=Se(()=>ho(L,K.props)),R=Se(()=>Te()&&K.shouldTrapFocus);function W(J){K.shouldTrapFocus||J.preventDefault(),m()(J)}var je=oe(),we=N(je);{var le=J=>{Qr(J,Ve(()=>t(Oe),()=>K.popperProps,{get ref(){return K.opts.ref},get enabled(){return K.root.opts.open.current},get id(){return u()},get trapFocus(){return t(R)},get preventScroll(){return Z()},loop:!0,forceMount:!0,get customAnchor(){return A()},onOpenAutoFocus:W,get onCloseAutoFocus(){return _()},get shouldRender(){return K.shouldRender},popper:(Ke,E)=>{let Be=()=>E==null?void 0:E().props,Ce=()=>E==null?void 0:E().wrapperProps;const re=Se(()=>ho(Be(),{style:Ps("popover")},{style:e.style}));var Me=oe(),xe=N(Me);{var qe=X=>{var V=oe(),j=N(V);{let I=Se(()=>({props:t(re),wrapperProps:Ce(),...K.snippetProps}));lt(j,()=>e.child,()=>t(I))}y(X,V)},ee=X=>{var V=tn();Ut(V,()=>({...Ce()}));var j=f(V);Ut(j,()=>({...t(re)}));var I=f(j);lt(I,()=>e.children??vo),c(j),c(V),y(X,V)};he(xe,X=>{e.child?X(qe):X(ee,-1)})}y(Ke,Me)},$$slots:{popper:!0}}))},ve=J=>{Gr(J,Ve(()=>t(Oe),()=>K.popperProps,{get ref(){return K.opts.ref},get open(){return K.root.opts.open.current},get id(){return u()},get trapFocus(){return t(R)},get preventScroll(){return Z()},loop:!0,forceMount:!1,get customAnchor(){return A()},onOpenAutoFocus:W,get onCloseAutoFocus(){return _()},get shouldRender(){return K.shouldRender},popper:(Ke,E)=>{let Be=()=>E==null?void 0:E().props,Ce=()=>E==null?void 0:E().wrapperProps;const re=Se(()=>ho(Be(),{style:Ps("popover")},{style:e.style}));var Me=oe(),xe=N(Me);{var qe=X=>{var V=oe(),j=N(V);{let I=Se(()=>({props:t(re),wrapperProps:Ce(),...K.snippetProps}));lt(j,()=>e.child,()=>t(I))}y(X,V)},ee=X=>{var V=on();Ut(V,()=>({...Ce()}));var j=f(V);Ut(j,()=>({...t(re)}));var I=f(j);lt(I,()=>e.children??vo),c(j),c(V),y(X,V)};he(xe,X=>{e.child?X(qe):X(ee,-1)})}y(Ke,Me)},$$slots:{popper:!0}}))};he(we,J=>{l()?J(le):l()||J(ve,1)})}y(d,je),bo()}var sn=M("<button><!></button>");function Ts(d,e){const r=Fs();yo(e,!0);let p=B(e,"id",19,()=>Hs(r)),u=B(e,"ref",15,null),l=B(e,"type",3,"button"),m=B(e,"disabled",3,!1),_=B(e,"openOnHover",3,!1),q=B(e,"openDelay",3,700),se=B(e,"closeDelay",3,300),Te=Ls(e,["$$slots","$$events","$$legacy","children","child","id","ref","type","disabled","openOnHover","openDelay","closeDelay"]);const Z=Ko.create({id:fe(()=>p()),ref:fe(()=>u(),L=>u(L)),disabled:fe(()=>!!m()),openOnHover:fe(()=>_()),openDelay:fe(()=>q()),closeDelay:fe(()=>se())}),A=Se(()=>ho(Te,Z.props,{type:l()}));Zr(d,{get id(){return p()},get ref(){return Z.opts.ref},children:(L,K)=>{var Oe=oe(),R=N(Oe);{var W=we=>{var le=oe(),ve=N(le);lt(ve,()=>e.child,()=>({props:t(A)})),y(we,le)},je=we=>{var le=sn();Ut(le,()=>({...t(A)}));var ve=f(le);lt(ve,()=>e.children??vo),c(le),y(we,le)};he(R,we=>{e.child?we(W):we(je,-1)})}y(L,Oe)},$$slots:{default:!0}}),bo()}function Ss(d,e){yo(e,!0);let r=B(e,"open",15,!1),p=B(e,"onOpenChange",3,St),u=B(e,"onOpenChangeComplete",3,St);Uo.create({open:fe(()=>r(),l=>{r(l),p()(l)}),onOpenChangeComplete:fe(()=>u())}),Rr(d,{children:(l,m)=>{var _=oe(),q=N(_);lt(q,()=>e.children??vo),y(l,_)},$$slots:{default:!0}}),bo()}function rn(d,e){const r=ft(e,["children","$$slots","$$events","$$legacy"]);/**
1
+ var Cr=Object.defineProperty;var vs=d=>{throw TypeError(d)};var kr=(d,e,r)=>e in d?Cr(d,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):d[e]=r;var be=(d,e,r)=>kr(d,typeof e!="symbol"?e+"":e,r),Do=(d,e,r)=>e.has(d)||vs("Cannot "+r);var h=(d,e,r)=>(Do(d,e,"read from private field"),r?r.call(d):e.get(d)),$=(d,e,r)=>e.has(d)?vs("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(d):e.set(d,r),T=(d,e,r,p)=>(Do(d,e,"write to private field"),p?p.call(d,r):e.set(d,r),r),C=(d,e,r)=>(Do(d,e,"access private method"),r);import{p as Fs,c as oe,a as y,f as M,t as zt}from"./CS53ooo0.js";import"./BA4Gucnq.js";import{o as zr}from"./Dyvi1wBH.js";import{b7 as Ge,i as t,a5 as n,aA as Se,at as yo,f as N,au as bo,av as f,aj as vo,ax as c,aC as Vt,aD as Pr,aw as v,ay as pe,az as _e,U as x,u as Fe,z as P,aq as Ao}from"./vtBo8kBV.js";import{o as jt,d as xr,a as ie,s as ze,e as $r,r as Tr}from"./B2cyTHdf.js";import{s as Sr,a as ms}from"./B6WG2Sd3.js";import{i as he}from"./BkD3yAYe.js";import{e as Fo,i as ys}from"./CFwxUBGi.js";import{d as Ut,r as Pt,a as xt,e as Or,s as No}from"./DoRPmqLn.js";import{b as $t}from"./C8umpVpB.js";import{i as Mr}from"./DVa8Y-mQ.js";import{g as bs}from"./ClknbeNl.js";import{p as Io}from"./DXDBlEGf.js";import{s as Tt}from"./CGCMIfh3.js";import{R as Dr,M as Ar,P as Fr,a as Nr,h as _s,S as Ir,b as Hr,r as Lr,s as Er,c as Wr}from"./Brun6sCr.js";import{a as Ne}from"./CBY2biv-.js";import{D as gs,a as ws,b as Cs,c as ks,d as co}from"./DAdOEnFb.js";import{P as Vr}from"./D6kzEN_P.js";import{w as Yo,j as jr,k as it,C as Ur,a as zs,b as fe,d as Ns,l as Kr,p as mo,E as Br,S as qr,g as Is,q as Jr,r as Xr,c as Yr,f as Hs,n as St,m as ho,s as lt,I as pt,P as po}from"./DsxvjlCC.js";import{s as ht}from"./ChUctqXA.js";import{p as B,s as Ve,r as Ls,l as ft}from"./BAJAS8BI.js";import{P as Qr,a as Gr,g as Ps,F as Zr,b as Rr}from"./6prdYIKP.js";function Ho(d,e){const[r,p]=d;let u=!1;const l=e.length;for(let m=0,_=l-1;m<l;_=m++){const[q,se]=e[m]??[0,0],[Te,Z]=e[_]??[0,0];se>=p!=Z>=p&&r<=(Te-q)*(p-se)/(Z-se)+q&&(u=!u)}return u}function Lo(d,e){return d[0]>=e.left&&d[0]<=e.right&&d[1]>=e.top&&d[1]<=e.bottom}function xs(d,e){const r=d.left+d.width/2,p=d.top+d.height/2,u=e.left+e.width/2,l=e.top+e.height/2,m=u-r,_=l-p;return Math.abs(m)>Math.abs(_)?m>0?"right":"left":_>0?"bottom":"top"}var Re,Ot,Mt,He,ge,ut,ct,et,tt,z,fo,Eo,Wo,Es,Ws,Ie,Vo,Vs,js;class en{constructor(e){$(this,z);$(this,Re);$(this,Ot);$(this,Mt);$(this,He,null);$(this,ge,null);$(this,ut,[]);$(this,ct,null);$(this,et,null);$(this,tt,null);T(this,Re,e),T(this,Ot,e.buffer??1);const r=e.transitIntentTimeout;T(this,Mt,typeof r=="number"&&r>0?r:null),Yo([e.triggerNode,e.contentNode,e.enabled],([p,u,l])=>{if(!p||!u||!l){T(this,ct,null),C(this,z,Ie).call(this);return}h(this,ct)&&h(this,ct)!==p&&C(this,z,Ie).call(this),T(this,ct,p);const m=jr(p),_=A=>{C(this,z,Ws).call(this,[A.clientX,A.clientY],p,u)},q=A=>{var Oe,R;const L=A.relatedTarget;if(it(L)&&u.contains(L))return;const K=((R=(Oe=h(this,Re)).ignoredTargets)==null?void 0:R.call(Oe))??[];it(L)&&K.some(W=>W===L||W.contains(L))||(T(this,ut,it(L)&&K.length>0?K.filter(W=>L.contains(W)):[]),T(this,He,[A.clientX,A.clientY]),T(this,ge,"content"),C(this,z,Eo).call(this))},se=()=>{C(this,z,Ie).call(this)},Te=()=>{C(this,z,Ie).call(this)},Z=A=>{const L=A.relatedTarget;it(L)&&p.contains(L)||(T(this,He,[A.clientX,A.clientY]),T(this,ge,"trigger"),C(this,z,Eo).call(this))};return[jt(m,"pointermove",_),jt(p,"pointerleave",q),jt(p,"pointerenter",se),jt(u,"pointerenter",Te),jt(u,"pointerleave",Z)].reduce((A,L)=>()=>{A(),L()},()=>{})})}}Re=new WeakMap,Ot=new WeakMap,Mt=new WeakMap,He=new WeakMap,ge=new WeakMap,ut=new WeakMap,ct=new WeakMap,et=new WeakMap,tt=new WeakMap,z=new WeakSet,fo=function(){h(this,et)!==null&&(cancelAnimationFrame(h(this,et)),T(this,et,null))},Eo=function(){C(this,z,fo).call(this),T(this,et,requestAnimationFrame(()=>{T(this,et,null),!(!h(this,He)||!h(this,ge))&&(C(this,z,Ie).call(this),h(this,Re).onPointerExit())}))},Wo=function(){h(this,tt)!==null&&(clearTimeout(h(this,tt)),T(this,tt,null))},Es=function(){h(this,Mt)!==null&&(C(this,z,Wo).call(this),T(this,tt,window.setTimeout(()=>{T(this,tt,null),!(!h(this,He)||!h(this,ge))&&(C(this,z,Ie).call(this),h(this,Re).onPointerExit())},h(this,Mt))))},Ws=function(e,r,p){if(!h(this,He)||!h(this,ge))return;C(this,z,fo).call(this),C(this,z,Es).call(this);const u=r.getBoundingClientRect(),l=p.getBoundingClientRect();if(h(this,ge)==="content"&&Lo(e,l)){C(this,z,Ie).call(this);return}if(h(this,ge)==="trigger"&&Lo(e,u)){C(this,z,Ie).call(this);return}if(h(this,ge)==="content"&&h(this,ut).length>0)for(const Te of h(this,ut)){const Z=Te.getBoundingClientRect();if(Lo(e,Z))return;const A=xs(u,Z),L=C(this,z,Vo).call(this,u,Z,A);if(L&&Ho(e,L))return}const m=xs(u,l),_=C(this,z,Vo).call(this,u,l,m);if(_&&Ho(e,_))return;const q=h(this,ge)==="content"?l:u,se=C(this,z,Vs).call(this,h(this,He),q,m,h(this,ge));Ho(e,se)||(C(this,z,Ie).call(this),h(this,Re).onPointerExit())},Ie=function(){T(this,He,null),T(this,ge,null),T(this,ut,[]),C(this,z,fo).call(this),C(this,z,Wo).call(this)},Vo=function(e,r,p){const u=h(this,Ot);switch(p){case"top":return[[Math.min(e.left,r.left)-u,e.top],[Math.min(e.left,r.left)-u,r.bottom],[Math.max(e.right,r.right)+u,r.bottom],[Math.max(e.right,r.right)+u,e.top]];case"bottom":return[[Math.min(e.left,r.left)-u,e.bottom],[Math.min(e.left,r.left)-u,r.top],[Math.max(e.right,r.right)+u,r.top],[Math.max(e.right,r.right)+u,e.bottom]];case"left":return[[e.left,Math.min(e.top,r.top)-u],[r.right,Math.min(e.top,r.top)-u],[r.right,Math.max(e.bottom,r.bottom)+u],[e.left,Math.max(e.bottom,r.bottom)+u]];case"right":return[[e.right,Math.min(e.top,r.top)-u],[r.left,Math.min(e.top,r.top)-u],[r.left,Math.max(e.bottom,r.bottom)+u],[e.right,Math.max(e.bottom,r.bottom)+u]]}},Vs=function(e,r,p,u){const l=h(this,Ot)*4,[m,_]=e;switch(u==="trigger"?C(this,z,js).call(this,p):p){case"top":return[[m-l,_+l],[m+l,_+l],[r.right+l,r.bottom],[r.right+l,r.top],[r.left-l,r.top],[r.left-l,r.bottom]];case"bottom":return[[m-l,_-l],[m+l,_-l],[r.right+l,r.top],[r.right+l,r.bottom],[r.left-l,r.bottom],[r.left-l,r.top]];case"left":return[[m+l,_-l],[m+l,_+l],[r.right,r.bottom+l],[r.left,r.bottom+l],[r.left,r.top-l],[r.right,r.top-l]];case"right":return[[m-l,_-l],[m-l,_+l],[r.left,r.bottom+l],[r.right,r.bottom+l],[r.right,r.top-l],[r.left,r.top-l]]}},js=function(e){switch(e){case"top":return"bottom";case"bottom":return"top";case"left":return"right";case"right":return"left"}};const jo=Yr({component:"popover",parts:["root","trigger","content","close","overlay"]}),Qo=new Ur("Popover.Root");var Kt,Bt,qt,Jt,Xt,Yt,Qt,ot,st,Le,Ze;const Go=class Go{constructor(e){$(this,Le);be(this,"opts");$(this,Kt,Ge(null));be(this,"contentPresence");$(this,Bt,Ge(null));$(this,qt,Ge(null));be(this,"overlayPresence");$(this,Jt,Ge(!1));$(this,Xt,Ge(!1));$(this,Yt,Ge(!1));$(this,Qt,Ge(0));$(this,ot,null);$(this,st,null);this.opts=e,this.contentPresence=new zs({ref:fe(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new zs({ref:fe(()=>this.overlayNode),open:this.opts.open}),Yo(()=>this.opts.open.current,r=>{r||(this.openedViaHover=!1,this.hasInteractedWithContent=!1,C(this,Le,Ze).call(this))})}static create(e){return Qo.set(new Go(e))}get contentNode(){return t(h(this,Kt))}set contentNode(e){n(h(this,Kt),e,!0)}get triggerNode(){return t(h(this,Bt))}set triggerNode(e){n(h(this,Bt),e,!0)}get overlayNode(){return t(h(this,qt))}set overlayNode(e){n(h(this,qt),e,!0)}get openedViaHover(){return t(h(this,Jt))}set openedViaHover(e){n(h(this,Jt),e,!0)}get hasInteractedWithContent(){return t(h(this,Xt))}set hasInteractedWithContent(e){n(h(this,Xt),e,!0)}get hoverCooldown(){return t(h(this,Yt))}set hoverCooldown(e){n(h(this,Yt),e,!0)}get closeDelay(){return t(h(this,Qt))}set closeDelay(e){n(h(this,Qt),e,!0)}setDomContext(e){T(this,st,e)}toggleOpen(){C(this,Le,Ze).call(this),this.opts.open.current=!this.opts.open.current}handleClose(){C(this,Le,Ze).call(this),this.opts.open.current&&(this.opts.open.current=!1)}handleHoverOpen(){C(this,Le,Ze).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||(C(this,Le,Ze).call(this),this.closeDelay<=0?this.opts.open.current=!1:h(this,st)&&T(this,ot,h(this,st).setTimeout(()=>{this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1),T(this,ot,null)},this.closeDelay))))}cancelDelayedClose(){C(this,Le,Ze).call(this)}markInteraction(){this.hasInteractedWithContent=!0,C(this,Le,Ze).call(this)}};Kt=new WeakMap,Bt=new WeakMap,qt=new WeakMap,Jt=new WeakMap,Xt=new WeakMap,Yt=new WeakMap,Qt=new WeakMap,ot=new WeakMap,st=new WeakMap,Le=new WeakSet,Ze=function(){h(this,ot)!==null&&h(this,st)&&(h(this,st).clearTimeout(h(this,ot)),T(this,ot,null))};let Uo=Go;var rt,Dt,dt,Pe,Bo,qo,Jo,Us,Gt;const Zo=class Zo{constructor(e,r){$(this,Pe);be(this,"opts");be(this,"root");be(this,"attachment");be(this,"domContext");$(this,rt,null);$(this,Dt,null);$(this,dt,Ge(!1));$(this,Gt,Se(()=>({id:this.opts.id.current,"aria-haspopup":"dialog","aria-expanded":Jr(this.root.opts.open.current),"data-state":Is(this.root.opts.open.current),"aria-controls":C(this,Pe,Us).call(this),[jo.trigger]:"",disabled:this.opts.disabled.current,onkeydown:this.onkeydown,onclick:this.onclick,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment})));this.opts=e,this.root=r,this.attachment=Ns(this.opts.ref,p=>this.root.triggerNode=p),this.domContext=new Kr(e.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),Yo(()=>this.opts.closeDelay.current,p=>{this.root.closeDelay=p})}static create(e){return new Zo(e,Qo.get())}onpointerenter(e){if(this.opts.disabled.current||!this.opts.openOnHover.current||mo(e)||(n(h(this,dt),!0),C(this,Pe,qo).call(this),this.root.cancelDelayedClose(),this.root.opts.open.current||this.root.hoverCooldown))return;const r=this.opts.openDelay.current;r<=0?this.root.handleHoverOpen():T(this,rt,this.domContext.setTimeout(()=>{this.root.handleHoverOpen(),T(this,rt,null)},r))}onpointerleave(e){this.opts.disabled.current||this.opts.openOnHover.current&&(mo(e)||(n(h(this,dt),!1),C(this,Pe,Bo).call(this),this.root.hoverCooldown=!1))}onclick(e){if(!this.opts.disabled.current&&e.button===0){if(C(this,Pe,Jo).call(this),t(h(this,dt))&&this.root.opts.open.current&&this.root.openedViaHover){this.root.openedViaHover=!1,this.root.hasInteractedWithContent=!0;return}t(h(this,dt))&&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(e){this.opts.disabled.current||(e.key===Br||e.key===qr)&&(e.preventDefault(),C(this,Pe,Jo).call(this),this.root.toggleOpen())}get props(){return t(h(this,Gt))}set props(e){n(h(this,Gt),e)}};rt=new WeakMap,Dt=new WeakMap,dt=new WeakMap,Pe=new WeakSet,Bo=function(){h(this,rt)!==null&&(this.domContext.clearTimeout(h(this,rt)),T(this,rt,null))},qo=function(){h(this,Dt)!==null&&(this.domContext.clearTimeout(h(this,Dt)),T(this,Dt,null))},Jo=function(){C(this,Pe,Bo).call(this),C(this,Pe,qo).call(this)},Us=function(){var e,r;if(this.root.opts.open.current&&((e=this.root.contentNode)!=null&&e.id))return(r=this.root.contentNode)==null?void 0:r.id},Gt=new WeakMap;let Ko=Zo;var Zt,Rt;const Ro=class Ro{constructor(e,r){be(this,"opts");be(this,"root");be(this,"attachment");be(this,"onInteractOutside",e=>{if(this.opts.onInteractOutside.current(e),e.defaultPrevented||!it(e.target))return;const r=e.target.closest(jo.selector("trigger"));if(!(r&&r===this.root.triggerNode)){if(this.opts.customAnchor.current){if(it(this.opts.customAnchor.current)){if(this.opts.customAnchor.current.contains(e.target))return}else if(typeof this.opts.customAnchor.current=="string"){const p=document.querySelector(this.opts.customAnchor.current);if(p&&p.contains(e.target))return}}this.root.handleClose()}});be(this,"onEscapeKeydown",e=>{this.opts.onEscapeKeydown.current(e),!e.defaultPrevented&&this.root.handleClose()});$(this,Zt,Se(()=>({open:this.root.opts.open.current})));$(this,Rt,Se(()=>({id:this.opts.id.current,tabindex:-1,"data-state":Is(this.root.opts.open.current),[jo.content]:"",style:{pointerEvents:"auto",contain:"layout style"},onpointerdown:this.onpointerdown,onfocusin:this.onfocusin,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment})));be(this,"popperProps",{onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown});this.opts=e,this.root=r,this.attachment=Ns(this.opts.ref,p=>this.root.contentNode=p),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 en({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(e){return new Ro(e,Qo.get())}onpointerdown(e){this.root.markInteraction()}onfocusin(e){const r=e.target;it(r)&&Xr(r)&&this.root.markInteraction()}onpointerenter(e){mo(e)||this.root.cancelDelayedClose()}onpointerleave(e){mo(e)}get shouldRender(){return this.root.contentPresence.shouldRender}get shouldTrapFocus(){return!(this.root.openedViaHover&&!this.root.hasInteractedWithContent)}get snippetProps(){return t(h(this,Zt))}set snippetProps(e){n(h(this,Zt),e)}get props(){return t(h(this,Rt))}set props(e){n(h(this,Rt),e)}};Zt=new WeakMap,Rt=new WeakMap;let Xo=Ro;var tn=M("<div><div><!></div></div>"),on=M("<div><div><!></div></div>");function $s(d,e){const r=Fs();yo(e,!0);let p=B(e,"ref",15,null),u=B(e,"id",19,()=>Hs(r)),l=B(e,"forceMount",3,!1),m=B(e,"onOpenAutoFocus",3,St),_=B(e,"onCloseAutoFocus",3,St),q=B(e,"onEscapeKeydown",3,St),se=B(e,"onInteractOutside",3,St),Te=B(e,"trapFocus",3,!0),Z=B(e,"preventScroll",3,!1),A=B(e,"customAnchor",3,null),L=Ls(e,["$$slots","$$events","$$legacy","child","children","ref","id","forceMount","onOpenAutoFocus","onCloseAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","customAnchor","style"]);const K=Xo.create({id:fe(()=>u()),ref:fe(()=>p(),J=>p(J)),onInteractOutside:fe(()=>se()),onEscapeKeydown:fe(()=>q()),customAnchor:fe(()=>A())}),Oe=Se(()=>ho(L,K.props)),R=Se(()=>Te()&&K.shouldTrapFocus);function W(J){K.shouldTrapFocus||J.preventDefault(),m()(J)}var je=oe(),we=N(je);{var le=J=>{Qr(J,Ve(()=>t(Oe),()=>K.popperProps,{get ref(){return K.opts.ref},get enabled(){return K.root.opts.open.current},get id(){return u()},get trapFocus(){return t(R)},get preventScroll(){return Z()},loop:!0,forceMount:!0,get customAnchor(){return A()},onOpenAutoFocus:W,get onCloseAutoFocus(){return _()},get shouldRender(){return K.shouldRender},popper:(Ke,E)=>{let Be=()=>E==null?void 0:E().props,Ce=()=>E==null?void 0:E().wrapperProps;const re=Se(()=>ho(Be(),{style:Ps("popover")},{style:e.style}));var Me=oe(),xe=N(Me);{var qe=X=>{var V=oe(),j=N(V);{let I=Se(()=>({props:t(re),wrapperProps:Ce(),...K.snippetProps}));lt(j,()=>e.child,()=>t(I))}y(X,V)},ee=X=>{var V=tn();Ut(V,()=>({...Ce()}));var j=f(V);Ut(j,()=>({...t(re)}));var I=f(j);lt(I,()=>e.children??vo),c(j),c(V),y(X,V)};he(xe,X=>{e.child?X(qe):X(ee,-1)})}y(Ke,Me)},$$slots:{popper:!0}}))},ve=J=>{Gr(J,Ve(()=>t(Oe),()=>K.popperProps,{get ref(){return K.opts.ref},get open(){return K.root.opts.open.current},get id(){return u()},get trapFocus(){return t(R)},get preventScroll(){return Z()},loop:!0,forceMount:!1,get customAnchor(){return A()},onOpenAutoFocus:W,get onCloseAutoFocus(){return _()},get shouldRender(){return K.shouldRender},popper:(Ke,E)=>{let Be=()=>E==null?void 0:E().props,Ce=()=>E==null?void 0:E().wrapperProps;const re=Se(()=>ho(Be(),{style:Ps("popover")},{style:e.style}));var Me=oe(),xe=N(Me);{var qe=X=>{var V=oe(),j=N(V);{let I=Se(()=>({props:t(re),wrapperProps:Ce(),...K.snippetProps}));lt(j,()=>e.child,()=>t(I))}y(X,V)},ee=X=>{var V=on();Ut(V,()=>({...Ce()}));var j=f(V);Ut(j,()=>({...t(re)}));var I=f(j);lt(I,()=>e.children??vo),c(j),c(V),y(X,V)};he(xe,X=>{e.child?X(qe):X(ee,-1)})}y(Ke,Me)},$$slots:{popper:!0}}))};he(we,J=>{l()?J(le):l()||J(ve,1)})}y(d,je),bo()}var sn=M("<button><!></button>");function Ts(d,e){const r=Fs();yo(e,!0);let p=B(e,"id",19,()=>Hs(r)),u=B(e,"ref",15,null),l=B(e,"type",3,"button"),m=B(e,"disabled",3,!1),_=B(e,"openOnHover",3,!1),q=B(e,"openDelay",3,700),se=B(e,"closeDelay",3,300),Te=Ls(e,["$$slots","$$events","$$legacy","children","child","id","ref","type","disabled","openOnHover","openDelay","closeDelay"]);const Z=Ko.create({id:fe(()=>p()),ref:fe(()=>u(),L=>u(L)),disabled:fe(()=>!!m()),openOnHover:fe(()=>_()),openDelay:fe(()=>q()),closeDelay:fe(()=>se())}),A=Se(()=>ho(Te,Z.props,{type:l()}));Zr(d,{get id(){return p()},get ref(){return Z.opts.ref},children:(L,K)=>{var Oe=oe(),R=N(Oe);{var W=we=>{var le=oe(),ve=N(le);lt(ve,()=>e.child,()=>({props:t(A)})),y(we,le)},je=we=>{var le=sn();Ut(le,()=>({...t(A)}));var ve=f(le);lt(ve,()=>e.children??vo),c(le),y(we,le)};he(R,we=>{e.child?we(W):we(je,-1)})}y(L,Oe)},$$slots:{default:!0}}),bo()}function Ss(d,e){yo(e,!0);let r=B(e,"open",15,!1),p=B(e,"onOpenChange",3,St),u=B(e,"onOpenChangeComplete",3,St);Uo.create({open:fe(()=>r(),l=>{r(l),p()(l)}),onOpenChangeComplete:fe(()=>u())}),Rr(d,{children:(l,m)=>{var _=oe(),q=N(_);lt(q,()=>e.children??vo),y(l,_)},$$slots:{default:!0}}),bo()}function rn(d,e){const r=ft(e,["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.
@@ -0,0 +1,36 @@
1
+ import{c as q,a as n,f as h,t as xt}from"./CS53ooo0.js";import{f as C,at as mt,b7 as ie,a4 as at,an as Ge,a5 as L,av as c,ax as i,aw as A,i as e,az as w,au as gt,aA as k,U as tt,ay as kt}from"./vtBo8kBV.js";import{d as _t,a as ye,s as O,e as ot,r as it}from"./B2cyTHdf.js";import{i as D}from"./BkD3yAYe.js";import{e as st,i as $t}from"./CFwxUBGi.js";import{c as Ne}from"./C4uF_YIK.js";import{a as We,s as S,c as rt}from"./DoRPmqLn.js";import{l as be,s as ze,p as T}from"./BAJAS8BI.js";import{a as Xe}from"./CBY2biv-.js";import{s as Oe}from"./CGCMIfh3.js";import{w as pt}from"./ClknbeNl.js";import{I as xe,P as Pt}from"./DsxvjlCC.js";import{a as wt,b as St,c as It,d as Mt,D as Dt}from"./DAdOEnFb.js";import"./BA4Gucnq.js";import{s as ke}from"./ChUctqXA.js";function lt(f,r){const d=be(r,["children","$$slots","$$events","$$legacy"]);/**
2
+ * @license lucide-svelte v0.460.1 - ISC
3
+ *
4
+ * This source code is licensed under the ISC license.
5
+ * See the LICENSE file in the root directory of this source tree.
6
+ */const o=[["path",{d:"M4 11a9 9 0 0 1 9 9"}],["path",{d:"M4 4a16 16 0 0 1 16 16"}],["circle",{cx:"5",cy:"19",r:"1"}]];xe(f,ze({name:"rss"},()=>d,{get iconNode(){return o},children:(z,F)=>{var p=q(),v=C(p);ke(v,r,"default",{}),n(z,p)},$$slots:{default:!0}}))}function ct(f,r){const d=be(r,["children","$$slots","$$events","$$legacy"]);/**
7
+ * @license lucide-svelte v0.460.1 - ISC
8
+ *
9
+ * This source code is licensed under the ISC license.
10
+ * See the LICENSE file in the root directory of this source tree.
11
+ */const o=[["path",{d:"M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z"}]];xe(f,ze({name:"puzzle"},()=>d,{get iconNode(){return o},children:(z,F)=>{var p=q(),v=C(p);ke(v,r,"default",{}),n(z,p)},$$slots:{default:!0}}))}function Lt(f,r){const d=be(r,["children","$$slots","$$events","$$legacy"]);/**
12
+ * @license lucide-svelte v0.460.1 - ISC
13
+ *
14
+ * This source code is licensed under the ISC license.
15
+ * See the LICENSE file in the root directory of this source tree.
16
+ */const o=[["path",{d:"M18 6 6 18"}],["path",{d:"m6 6 12 12"}]];xe(f,ze({name:"x"},()=>d,{get iconNode(){return o},children:(z,F)=>{var p=q(),v=C(p);ke(v,r,"default",{}),n(z,p)},$$slots:{default:!0}}))}function dt(f){const r=f.trim();if(!r)return"";const d=r.charAt(0);return/[a-z0-9\u4e00-\u9fff]/i.test(d)?d.toUpperCase():""}function yt(f,r){const d=o=>{const z=o==null?void 0:o.trim();if(!z)return"";try{return new URL(z.startsWith("http")?z:`https://${z}`).hostname.replace(/^www\./i,"")||""}catch{return""}};return d(f)||d(r||"")}function Nt(f){if(!f)return"";const r=f.charAt(0);return/[a-z0-9\u4e00-\u9fff]/i.test(r)?r.toUpperCase():""}function Tt(f,r,d,o){const z=yt(f,r),F=Nt(z);if(F)return F;if(d&&d.length>0){const v=dt(d[0].name);if(v)return v}if(o){const v=dt(o);if(v)return v}const p=(r||"").trim();if(p){const v=p.charAt(0);return/[a-z0-9\u4e00-\u9fff]/i.test(v)?v.toUpperCase():"?"}return"?"}function Rt(f){return f?`/api/feed-favicon?domain=${encodeURIComponent(f)}`:""}function Ht(f){let r=2166136261;for(let z=0;z<f.length;z++)r^=f.charCodeAt(z),r=Math.imul(r,16777619);return`hsl(${(r>>>0)%360} 46% 46%)`}function At(f){const r=f.link||"",d=f.sourceRef,{author:o,authors:z,guid:F,title:p}=f,v=yt(r,d),G=Rt(v),he=Tt(r,d,z,o),R=(F||[r,d,p,o,z==null?void 0:z.map(U=>U.name).join("|")].filter(Boolean).join("|")||he).trim(),J=Ht(R||"feed");return{siteHost:v,faviconSrc:G,letter:he,avatarSeed:R,avatarBg:J}}function Ct(f){const r=f==null?void 0:f.trim();if(r)return r}var Ft=h('<img alt="" class="feed-card-favicon svelte-1dgd2z5" width="26" height="26" loading="lazy" decoding="async"/>'),Ut=h('<span class="feed-card-icon-letter svelte-1dgd2z5" aria-hidden="true"> </span>'),jt=h('<a data-sveltekit-preload-data="hover"><!></a>'),Et=h('<img alt="" class="feed-card-favicon svelte-1dgd2z5" width="26" height="26" loading="lazy" decoding="async"/>'),Ot=h('<span class="feed-card-icon-letter svelte-1dgd2z5" aria-hidden="true"> </span>'),Bt=h('<div role="img"><!></div>'),Jt=h('<span class="feed-card-author-sep svelte-1dgd2z5">、</span>'),qt=h('<a class="feed-card-author-link svelte-1dgd2z5"> </a><!>',1),Xt=h('<a class="feed-card-author-link svelte-1dgd2z5"> </a>'),Gt=h('<span class="feed-card-author-plain svelte-1dgd2z5"> </span>'),Wt=h('<span class="feed-card-author-empty svelte-1dgd2z5">未署名</span>'),Yt=h('<time class="feed-card-time svelte-1dgd2z5"> </time>'),Kt=h('<a class="feed-card-title svelte-1dgd2z5" target="_blank" rel="noopener noreferrer"> </a>'),Qt=h('<span class="feed-card-title feed-card-title-text svelte-1dgd2z5"> </span>'),Vt=h('<div class="feed-card-title-row svelte-1dgd2z5"><!></div>'),Zt=h('<a class="feed-card-summary-link svelte-1dgd2z5" target="_blank" rel="noopener noreferrer" title="打开原文"><p class="feed-card-summary svelte-1dgd2z5"> </p></a>'),er=h('<p class="feed-card-summary svelte-1dgd2z5"> </p>'),tr=h('<a class="feed-card-open-original svelte-1dgd2z5" target="_blank" rel="noopener noreferrer">查看原文</a>'),rr=h('<a class="feed-card-media-anchor svelte-1dgd2z5" target="_blank" rel="noopener noreferrer" title="打开原文"><img alt="" class="feed-card-media-img svelte-1dgd2z5" loading="lazy" decoding="async" referrerpolicy="no-referrer"/></a>'),ar=h('<img alt="" class="feed-card-media-img svelte-1dgd2z5" loading="lazy" decoding="async" referrerpolicy="no-referrer"/>'),sr=h('<div class="feed-card-media svelte-1dgd2z5"><!></div>'),nr=h('<button class="ctx-menu-item svelte-1dgd2z5" type="button"> </button>'),or=h('<button class="ctx-menu-item ctx-delete svelte-1dgd2z5" type="button">删除</button>'),ir=h('<div class="ctx-menu-backdrop svelte-1dgd2z5" role="presentation"><div class="ctx-menu svelte-1dgd2z5" role="menu" tabindex="-1"><!> <!></div></div>'),lr=h('<div role="article"><div class="feed-card-aside svelte-1dgd2z5"><!></div> <div class="feed-card-main svelte-1dgd2z5"><div class="feed-card-author-line svelte-1dgd2z5"><span class="feed-card-author svelte-1dgd2z5"><!></span> <!></div> <!> <!> <!></div></div> <!>',1);function vt(f,r){mt(r,!0);let d=T(r,"title",3,""),o=T(r,"link",3,""),z=T(r,"summary",3,void 0),F=T(r,"content",3,void 0),p=T(r,"author",3,void 0),v=T(r,"pubDate",3,void 0),G=T(r,"sourceRef",3,void 0),he=T(r,"sourceHref",3,void 0),R=T(r,"authorHref",3,void 0),J=T(r,"authors",3,void 0),U=T(r,"guid",3,void 0),Y=T(r,"coverImg",3,void 0),te=T(r,"rawItem",3,void 0),K=T(r,"onDelete",3,void 0),Q=ie(at({show:!1,x:0,y:0})),le=ie("idle"),me=ie(!1);function Ye(t){return t.replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,"").replace(/<style\b[^<]*(?:(?!<\/style>)<[^<]*)*<\/style>/gi,"").replace(/<[^>]+>/g," ").replace(/\s+/g," ").trim()}function Be(t){const a=t.match(/!\[[^\]]*\]\(([^)\s]+)(?:\s+['"][^'"]*['"])?\)/);if(a!=null&&a[1])return a[1].trim();const l=t.match(/<img\b[^>]*\bsrc=["']([^"']+)["'][^>]*>/i);if(l!=null&&l[1])return l[1].trim()}function Je(t){return t.replace(/!\[[^\]]*\]\(([^)\s]+)(?:\s+['"][^'"]*['"])?\)/g," ").replace(/<img\b[^>]*>/gi," ")}function Ke(t){if(!t)return"";const a=new Date(t);if(Number.isNaN(a.getTime()))return"";const P=Date.now()-a.getTime(),M=a.toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"});if(P<0)return M;const u=Math.floor(P/36e5),s=Math.floor(P/864e5);return s>=7?M:s>=1?`${s} day${s===1?"":"s"} ago`:u>=1?`${u} hour${u===1?"":"s"} ago`:"just now"}Ge(()=>{o(),G(),L(me,!1)});const $e=k(()=>At({link:o()||"",sourceRef:G(),author:p(),authors:J(),guid:U(),title:d()})),re=k(()=>e($e).siteHost),Pe=k(()=>e($e).faviconSrc),ae=k(()=>!!(e(Pe)&&!e(me))),Te=k(()=>e($e).letter),Re=k(()=>e($e).avatarBg),He=k(()=>{var t,a;return(((t=F())==null?void 0:t.trim())||((a=z())==null?void 0:a.trim())||"").trim()}),Qe=k(()=>{var t;return((t=Y())==null?void 0:t.trim())||Be(e(He))}),Ae=k(()=>Ct(e(Qe))),x=k(()=>e(He)?Ye(Je(e(He))):""),y=k(()=>{var t;return!!((t=d())!=null&&t.trim())}),$=k(()=>!!(o()&&!e(y)&&e(x)));function N(t){!te()&&!(U()&&K())||(t.preventDefault(),L(le,"idle"),L(Q,{show:!0,x:t.clientX,y:t.clientY},!0))}function j(){L(Q,{...e(Q),show:!1},!0)}async function V(){if(!te())return;const t=JSON.stringify(te(),null,2);try{await navigator.clipboard.writeText(t),L(le,"copied"),window.setTimeout(j,350)}catch{L(le,"error")}}function se(){U()&&K()&&(K()(U()),j())}var Z=lr(),W=C(Z);let ge;var ne=c(W),we=c(ne);{var _e=t=>{var a=jt();let l,P;var M=c(a);{var u=m=>{var _=Ft();w(()=>S(_,"src",e(Pe))),ot("error",_,()=>L(me,!0)),it(_),n(m,_)},s=m=>{var _=Ut(),g=c(_,!0);i(_),w(()=>O(g,e(Te))),n(m,_)};D(M,m=>{e(ae)?m(u):m(s,-1)})}i(a),w(()=>{l=We(a,1,"feed-card-icon svelte-1dgd2z5",null,l,{"feed-card-icon--favicon":e(ae)}),S(a,"href",he()),S(a,"title",G()||e(re)||"筛选该来源"),P=rt(a,"",P,{"background-color":e(ae)?"transparent":e(Re),color:"#fff"})}),n(t,a)},Se=t=>{var a=Bt();let l,P;var M=c(a);{var u=m=>{var _=Et();w(()=>S(_,"src",e(Pe))),ot("error",_,()=>L(me,!0)),it(_),n(m,_)},s=m=>{var _=Ot(),g=c(_,!0);i(_),w(()=>O(g,e(Te))),n(m,_)};D(M,m=>{e(ae)?m(u):m(s,-1)})}i(a),w(()=>{l=We(a,1,"feed-card-icon svelte-1dgd2z5",null,l,{"feed-card-icon--favicon":e(ae)}),S(a,"title",G()||e(re)||"来源"),S(a,"aria-label",G()||e(re)||"来源"),P=rt(a,"",P,{"background-color":e(ae)?"transparent":e(Re),color:"#fff"})}),n(t,a)};D(we,t=>{he()?t(_e):t(Se,-1)})}i(ne);var ce=A(ne,2),de=c(ce),oe=c(de),ve=c(oe);{var Ce=t=>{var a=q(),l=C(a);st(l,17,J,$t,(P,M,u)=>{var s=qt(),m=C(s),_=c(m,!0);i(m);var g=A(m);{var b=E=>{var H=Jt();n(E,H)};D(g,E=>{u<J().length-1&&E(b)})}w(()=>{S(m,"href",e(M).href),O(_,e(M).name)}),n(P,s)}),n(t,a)},qe=t=>{var a=q(),l=C(a);{var P=u=>{var s=Xt(),m=c(s,!0);i(s),w(()=>{S(s,"href",R()),O(m,p())}),n(u,s)},M=u=>{var s=Gt(),m=c(s,!0);i(s),w(()=>O(m,p())),n(u,s)};D(l,u=>{R()?u(P):u(M,-1)})}n(t,a)},X=t=>{var a=Wt();n(t,a)};D(ve,t=>{J()&&J().length>0?t(Ce):p()?t(qe,1):t(X,-1)})}i(oe);var ue=A(oe,2);{var pe=t=>{var a=Yt(),l=c(a,!0);i(a),w(P=>{S(a,"datetime",v()),S(a,"title",v()),O(l,P)},[()=>Ke(v())]),n(t,a)};D(ue,t=>{v()&&t(pe)})}i(de);var ee=A(de,2);{var Ie=t=>{var a=Vt(),l=c(a);{var P=u=>{var s=Kt(),m=c(s,!0);i(s),w(()=>{S(s,"href",o()),O(m,d())}),n(u,s)},M=u=>{var s=Qt(),m=c(s,!0);i(s),w(()=>O(m,d())),n(u,s)};D(l,u=>{o()?u(P):u(M,-1)})}i(a),n(t,a)};D(ee,t=>{e(y)&&t(Ie)})}var fe=A(ee,2);{var Me=t=>{var a=q(),l=C(a);{var P=u=>{var s=Zt(),m=c(s),_=c(m,!0);i(m),i(s),w(()=>{S(s,"href",o()),O(_,e(x))}),n(u,s)},M=u=>{var s=er(),m=c(s,!0);i(s),w(()=>O(m,e(x))),n(u,s)};D(l,u=>{e($)?u(P):u(M,-1)})}n(t,a)},De=t=>{var a=tr();w(()=>S(a,"href",o())),n(t,a)};D(fe,t=>{e(x)?t(Me):o()&&!e(y)&&t(De,1)})}var Fe=A(fe,2);{var Ue=t=>{var a=sr(),l=c(a);{var P=u=>{var s=rr(),m=c(s);i(s),w(()=>{S(s,"href",o()),S(m,"src",e(Ae))}),n(u,s)},M=u=>{var s=ar();w(()=>S(s,"src",e(Ae))),n(u,s)};D(l,u=>{o()?u(P):u(M,-1)})}i(a),n(t,a)};D(Fe,t=>{e(Ae)&&t(Ue)})}i(ce),i(W);var je=A(W,2);{var I=t=>{var a=ir(),l=c(a);let P;var M=c(l);{var u=_=>{var g=nr(),b=c(g,!0);i(g),w(()=>O(b,e(le)==="copied"?"已复制":e(le)==="error"?"复制失败":"复制 JSON")),ye("click",g,V),n(_,g)};D(M,_=>{te()&&_(u)})}var s=A(M,2);{var m=_=>{var g=or();ye("click",g,se),n(_,g)};D(s,_=>{U()&&K()&&_(m)})}i(l),i(a),w(()=>P=rt(l,"",P,{left:`${e(Q).x}px`,top:`${e(Q).y}px`})),ye("click",a,j),ye("click",l,_=>_.stopPropagation()),ye("keydown",l,_=>_.stopPropagation()),n(t,a)};D(je,t=>{e(Q).show&&(te()||U()&&K())&&t(I)})}w(()=>ge=We(W,1,"feed-card svelte-1dgd2z5",null,ge,{"ctx-deletable":!!U()&&!!K()})),ye("contextmenu",W,N),n(f,Z),gt()}_t(["contextmenu","click","keydown"]);function cr(f,r){const d=be(r,["children","$$slots","$$events","$$legacy"]);/**
17
+ * @license lucide-svelte v0.460.1 - ISC
18
+ *
19
+ * This source code is licensed under the ISC license.
20
+ * See the LICENSE file in the root directory of this source tree.
21
+ */const o=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8"}],["path",{d:"M21 3v5h-5"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16"}],["path",{d:"M8 16H3v5"}]];xe(f,ze({name:"refresh-cw"},()=>d,{get iconNode(){return o},children:(z,F)=>{var p=q(),v=C(p);ke(v,r,"default",{}),n(z,p)},$$slots:{default:!0}}))}function ut(f,r){const d=be(r,["children","$$slots","$$events","$$legacy"]);/**
22
+ * @license lucide-svelte v0.460.1 - ISC
23
+ *
24
+ * This source code is licensed under the ISC license.
25
+ * See the LICENSE file in the root directory of this source tree.
26
+ */const o=[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20"}],["path",{d:"M2 12h20"}]];xe(f,ze({name:"globe"},()=>d,{get iconNode(){return o},children:(z,F)=>{var p=q(),v=C(p);ke(v,r,"default",{}),n(z,p)},$$slots:{default:!0}}))}function ft(f,r){const d=be(r,["children","$$slots","$$events","$$legacy"]);/**
27
+ * @license lucide-svelte v0.460.1 - ISC
28
+ *
29
+ * This source code is licensed under the ISC license.
30
+ * See the LICENSE file in the root directory of this source tree.
31
+ */const o=[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7"}]];xe(f,ze({name:"mail"},()=>d,{get iconNode(){return o},children:(z,F)=>{var p=q(),v=C(p);ke(v,r,"default",{}),n(z,p)},$$slots:{default:!0}}))}function ht(f,r){const d=be(r,["children","$$slots","$$events","$$legacy"]);/**
32
+ * @license lucide-svelte v0.460.1 - ISC
33
+ *
34
+ * This source code is licensed under the ISC license.
35
+ * See the LICENSE file in the root directory of this source tree.
36
+ */const o=[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z"}],["path",{d:"M20 3v4"}],["path",{d:"M22 5h-4"}],["path",{d:"M4 17v2"}],["path",{d:"M5 18H3"}]];xe(f,ze({name:"sparkles"},()=>d,{get iconNode(){return o},children:(z,F)=>{var p=q(),v=C(p);ke(v,r,"default",{}),n(z,p)},$$slots:{default:!0}}))}const nt=pt({});function dr(f,r){nt.update(d=>({...d,[f]:r}))}function vr(f){nt.update(r=>{const d={...r};return delete d[f],d})}var ur=h('<span class="source-sheet-meta-icon svelte-ypseth"><!></span>'),fr=h('<span class="source-sheet-proxy svelte-ypseth" aria-label="已配置代理"><!></span>'),hr=h('<div class="source-sheet-state svelte-ypseth">加载中…</div>'),mr=h('<div class="source-sheet-state err svelte-ypseth"> </div>'),gr=h('<div class="source-sheet-state svelte-ypseth">暂无条目</div>'),_r=h('<div class="source-feed-cards svelte-ypseth"></div>'),pr=h('<header class="source-sheet-header svelte-ypseth"><div class="source-sheet-title-wrap svelte-ypseth"><div class="source-sheet-title-row svelte-ypseth"><div class="source-sheet-title-cluster svelte-ypseth"><!> <div class="source-sheet-header-icons svelte-ypseth"><!> <!></div></div></div> <p class="source-sheet-sub source-sheet-sub-desc svelte-ypseth"> </p></div> <!></header> <div class="source-sheet-body svelte-ypseth"><!></div>',1),yr=h("<!> <!>",1),br=h('<span class="source-sheet-meta-icon svelte-ypseth"><!></span>'),zr=h('<span class="source-sheet-proxy svelte-ypseth" aria-label="已配置代理"><!></span>'),xr=h('<div class="source-sheet-state svelte-ypseth">加载中…</div>'),kr=h('<div class="source-sheet-state err svelte-ypseth"> </div>'),$r=h('<div class="source-sheet-state svelte-ypseth">暂无条目</div>'),Pr=h('<div class="source-feed-cards svelte-ypseth"></div>'),wr=h('<header class="source-sheet-header source-sheet-header-inline svelte-ypseth"><div class="source-sheet-title-wrap svelte-ypseth"><div class="source-sheet-title-row svelte-ypseth"><div class="source-sheet-title-cluster svelte-ypseth"><h2 class="source-sheet-title svelte-ypseth"> </h2> <div class="source-sheet-header-icons svelte-ypseth"><!> <!> <button type="button"><!></button></div></div></div> <p class="source-sheet-sub source-sheet-sub-desc svelte-ypseth"> </p></div></header> <div class="source-sheet-body svelte-ypseth"><!></div>',1),Sr=h('<div class="source-sheet-inline-empty svelte-ypseth"><p class="source-sheet-inline-empty-title svelte-ypseth">信源条目</p> <p class="source-sheet-inline-empty-hint svelte-ypseth">在左侧列表中点击某一信源,在此查看已拉取的条目。</p></div>'),Ir=h('<aside class="source-feed-panel-inline svelte-ypseth" aria-label="信源条目列表"><!></aside>');function Jr(f,r){mt(r,!0);let d=T(r,"open",3,!1),o=T(r,"sourceRef",3,""),z=T(r,"sourceLabel",3,""),F=T(r,"sourceDescription",3,""),p=T(r,"sourceProxy",3,""),v=T(r,"sourceParseHint",3,null),G=T(r,"variant",3,"overlay"),he=T(r,"onOpenChange",3,()=>{}),R=ie(at([])),J=ie(!1),U=ie(""),Y=ie(0),te=ie(null),K=ie(at({}));Ge(()=>{const x=nt.subscribe(y=>{L(K,y,!0)});return()=>x()});async function Q(){const x=o().trim();if(!x){L(R,[],!0);return}L(Y,e(Y)+1);const y=e(Y);L(J,!0),L(U,"");try{const $=new URLSearchParams;$.set("ref",x),$.set("limit","100"),$.set("offset","0");const N=await Xe("/api/items?"+$.toString());if(y!==e(Y))return;if(!N.ok)throw new Error(await N.text().catch(()=>`HTTP ${N.status}`));const j=await N.json();L(R,Array.isArray(j.items)?j.items:[],!0)}catch($){if(y!==e(Y))return;L(U,$ instanceof Error?$.message:String($),!0),L(R,[],!0)}finally{y===e(Y)&&L(J,!1)}}Ge(()=>{if(d()&&o()){if(!o().trim()){L(R,[],!0);return}tt(()=>void Q())}else d()||tt(()=>{L(Y,e(Y)+1),L(R,[],!0),L(U,""),L(J,!1)})});function le(x){const y=x.author;if(y!=null&&y.length)return y.join(", ")}function me(x){Ye(x)}async function Ye(x){const y=x.trim();if(!(!y||e(te))){L(te,y,!0);try{const $=await Xe("/api/items/"+encodeURIComponent(y),{method:"DELETE"});if(!$.ok){const N=await $.text().catch(()=>"");throw new Error(N.trim()||`HTTP ${$.status}`)}L(R,e(R).filter(N=>N.id!==y),!0),Oe("已删除该条目","success")}catch($){Oe($ instanceof Error?$.message:String($),"error")}finally{L(te,null)}}}const Be=k(()=>F().trim()?F().trim():"—"),Je=k(()=>[z(),o()].filter(Boolean).join(" · ")||void 0);async function Ke(x){for(let y=0;y<120;y++){const $=await Xe(`/api/tasks/${x}`);if(!$.ok)return{ok:!1,error:"轮询失败"};const N=await $.json();if(N.status==="done")return{ok:!0};if(N.status==="error")return{ok:!1,error:N.error??"拉取失败"};await new Promise(j=>setTimeout(j,800))}return{ok:!1,error:"拉取超时"}}async function $e(x,y){y==null||y.preventDefault(),y==null||y.stopPropagation();const $=x.trim();if(!(!$||$ in e(K)))try{const N=await Xe("/api/tasks",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({type:"source-pull",ref:$})}),j=await N.json();if(!N.ok||!j.taskId){Oe(j.error??"拉取失败","error");return}dr($,j.taskId);const V=await Ke(j.taskId);V.ok?await Q():Oe(V.error??"拉取失败","error")}catch(N){Oe(N instanceof Error?N.message:"拉取失败","error")}finally{vr($)}}const re=k(()=>G()==="inline"&&d()&&o().trim()!==""&&o()in e(K));let Pe=!1;Ge(()=>{const x=e(re);Pe&&!x&&d()&&G()==="inline"&&o().trim()&&tt(()=>void Q()),Pe=x});function ae(x){switch(x){case"rss":return"标准 RSS/Atom/JSON Feed(内置 __rss__)";case"plugin":return"Site 插件(listUrlPattern)或语鲸协议(lingowhale://)";case"llm":return"通用网页列表:LLM 解析(generic)";case"email":return"内置 IMAP 邮件插件(__email__)";default:return""}}function Te(x){switch(x){case"rss":return"解析方式:RSS/Atom";case"plugin":return"解析方式:插件";case"llm":return"解析方式:LLM";case"email":return"解析方式:邮箱";default:return"解析方式"}}var Re=q(),He=C(Re);{var Qe=x=>{var y=q(),$=C(y);Ne($,()=>Dt,(N,j)=>{j(N,{get open(){return d()},onOpenChange:V=>he()(V),children:(V,se)=>{var Z=q(),W=C(Z);Ne(W,()=>Pt,(ge,ne)=>{ne(ge,{children:(we,_e)=>{var Se=yr(),ce=C(Se);Ne(ce,()=>wt,(oe,ve)=>{ve(oe,{class:"source-sheet-overlay"})});var de=A(ce,2);Ne(de,()=>St,(oe,ve)=>{ve(oe,{class:"source-sheet-panel","aria-describedby":void 0,children:(Ce,qe)=>{var X=pr(),ue=C(X),pe=c(ue),ee=c(pe),Ie=c(ee),fe=c(Ie);Ne(fe,()=>It,(g,b)=>{b(g,{class:"source-sheet-title",get title(){return e(Je)},children:(E,H)=>{kt();var Le=xt();w(()=>O(Le,z()||o()||"信源条目")),n(E,Le)},$$slots:{default:!0}})});var Me=A(fe,2),De=c(Me);{var Fe=g=>{var b=ur(),E=c(b);{var H=B=>{lt(B,{size:16,class:"source-sheet-meta-icon-svg"})},Le=B=>{ct(B,{size:16,class:"source-sheet-meta-icon-svg"})},Ve=B=>{ht(B,{size:16,class:"source-sheet-meta-icon-svg"})},Ze=B=>{ft(B,{size:16,class:"source-sheet-meta-icon-svg"})};D(E,B=>{v()==="rss"?B(H):v()==="plugin"?B(Le,1):v()==="llm"?B(Ve,2):v()==="email"&&B(Ze,3)})}i(b),w((B,et)=>{S(b,"title",`解析方式:${B??""}`),S(b,"aria-label",et)},[()=>ae(v()),()=>Te(v())]),n(g,b)};D(De,g=>{v()&&g(Fe)})}var Ue=A(De,2);{var je=g=>{var b=fr(),E=c(b);ut(E,{size:16,class:"source-sheet-proxy-globe","aria-hidden":"true"}),i(b),w(H=>S(b,"title",`代理:${H??""}`),[()=>p().trim()]),n(g,b)},I=k(()=>p().trim());D(Ue,g=>{e(I)&&g(je)})}i(Me),i(Ie),i(ee);var t=A(ee,2),a=c(t,!0);i(t),i(pe);var l=A(pe,2);Ne(l,()=>Mt,(g,b)=>{b(g,{class:"source-sheet-close","aria-label":"关闭",children:(E,H)=>{Lt(E,{size:18})},$$slots:{default:!0}})}),i(ue);var P=A(ue,2),M=c(P);{var u=g=>{var b=hr();n(g,b)},s=g=>{var b=mr(),E=c(b,!0);i(b),w(()=>O(E,e(U))),n(g,b)},m=g=>{var b=gr();n(g,b)},_=g=>{var b=_r();st(b,21,()=>e(R),E=>E.id,(E,H)=>{{let Le=k(()=>{var Ee;return((Ee=e(H).title)==null?void 0:Ee.trim())||""}),Ve=k(()=>e(H).summary??void 0),Ze=k(()=>e(H).content??void 0),B=k(()=>le(e(H))),et=k(()=>e(H).pub_date||e(H).fetched_at),bt=k(()=>o().trim()),zt=k(()=>{var Ee;return(Ee=e(H).image_url)!=null&&Ee.trim()?e(H).image_url:void 0});vt(E,{get title(){return e(Le)},get link(){return e(H).url},get summary(){return e(Ve)},get content(){return e(Ze)},get author(){return e(B)},get pubDate(){return e(et)},get sourceRef(){return e(bt)},get coverImg(){return e(zt)},get guid(){return e(H).id},get rawItem(){return e(H)},onDelete:me})}}),i(b),n(g,b)};D(M,g=>{e(J)&&e(R).length===0?g(u):e(U)?g(s,1):e(R).length===0?g(m,2):g(_,-1)})}i(P),w(()=>{S(t,"title",o()),O(a,e(Be))}),n(Ce,X)},$$slots:{default:!0}})}),n(we,Se)},$$slots:{default:!0}})}),n(V,Z)},$$slots:{default:!0}})}),n(x,y)},Ae=x=>{var y=Ir(),$=c(y);{var N=se=>{var Z=wr(),W=C(Z),ge=c(W),ne=c(ge),we=c(ne),_e=c(we),Se=c(_e,!0);i(_e);var ce=A(_e,2),de=c(ce);{var oe=I=>{var t=br(),a=c(t);{var l=s=>{lt(s,{size:16,class:"source-sheet-meta-icon-svg"})},P=s=>{ct(s,{size:16,class:"source-sheet-meta-icon-svg"})},M=s=>{ht(s,{size:16,class:"source-sheet-meta-icon-svg"})},u=s=>{ft(s,{size:16,class:"source-sheet-meta-icon-svg"})};D(a,s=>{v()==="rss"?s(l):v()==="plugin"?s(P,1):v()==="llm"?s(M,2):v()==="email"&&s(u,3)})}i(t),w((s,m)=>{S(t,"title",`解析方式:${s??""}`),S(t,"aria-label",m)},[()=>ae(v()),()=>Te(v())]),n(I,t)};D(de,I=>{v()&&I(oe)})}var ve=A(de,2);{var Ce=I=>{var t=zr(),a=c(t);ut(a,{size:16,class:"source-sheet-proxy-globe","aria-hidden":"true"}),i(t),w(l=>S(t,"title",`代理:${l??""}`),[()=>p().trim()]),n(I,t)},qe=k(()=>p().trim());D(ve,I=>{e(qe)&&I(Ce)})}var X=A(ve,2);let ue;var pe=c(X);cr(pe,{size:16}),i(X),i(ce),i(we),i(ne);var ee=A(ne,2),Ie=c(ee,!0);i(ee),i(ge),i(W);var fe=A(W,2),Me=c(fe);{var De=I=>{var t=xr();n(I,t)},Fe=I=>{var t=kr(),a=c(t,!0);i(t),w(()=>O(a,e(U))),n(I,t)},Ue=I=>{var t=$r();n(I,t)},je=I=>{var t=Pr();st(t,21,()=>e(R),a=>a.id,(a,l)=>{{let P=k(()=>{var b;return((b=e(l).title)==null?void 0:b.trim())||""}),M=k(()=>e(l).summary??void 0),u=k(()=>e(l).content??void 0),s=k(()=>le(e(l))),m=k(()=>e(l).pub_date||e(l).fetched_at),_=k(()=>o().trim()),g=k(()=>{var b;return(b=e(l).image_url)!=null&&b.trim()?e(l).image_url:void 0});vt(a,{get title(){return e(P)},get link(){return e(l).url},get summary(){return e(M)},get content(){return e(u)},get author(){return e(s)},get pubDate(){return e(m)},get sourceRef(){return e(_)},get coverImg(){return e(g)},get guid(){return e(l).id},get rawItem(){return e(l)},onDelete:me})}}),i(t),n(I,t)};D(Me,I=>{e(J)&&e(R).length===0?I(De):e(U)?I(Fe,1):e(R).length===0?I(Ue,2):I(je,-1)})}i(fe),w(()=>{S(_e,"title",e(Je)),O(Se,z()||o()||"信源条目"),ue=We(X,1,"source-sheet-pull-status svelte-ypseth",null,ue,{pulling:e(re)}),S(X,"title",e(re)?"拉取中…":"立即拉取"),S(X,"aria-label",e(re)?"拉取中":"立即拉取"),S(X,"aria-busy",e(re)),S(ee,"title",o()),O(Ie,e(Be))}),ye("click",X,I=>$e(o(),I)),n(se,Z)},j=k(()=>d()&&o().trim()),V=se=>{var Z=Sr();n(se,Z)};D($,se=>{e(j)?se(N):se(V,-1)})}i(y),n(x,y)};D(He,x=>{G()==="overlay"?x(Qe):x(Ae,-1)})}n(f,Re),gt()}_t(["click"]);const qr=pt(null);export{ft as M,ct as P,lt as R,Jr as S,ht as a,cr as b,vr as c,qr as h,nt as r,dr as s};
@@ -1 +1 @@
1
- import{c as _,a as s,f as g}from"./CS53ooo0.js";import"./BA4Gucnq.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"./vtBo8kBV.js";import{s as z,a as j}from"./B6WG2Sd3.js";import{i as x}from"./BkD3yAYe.js";import{s as C}from"./DoRPmqLn.js";import{i as D}from"./DVa8Y-mQ.js";import{p as H}from"./CqYSO3Dx.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"./CS53ooo0.js";import"./BA4Gucnq.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"./vtBo8kBV.js";import{s as z,a as j}from"./B6WG2Sd3.js";import{i as x}from"./BkD3yAYe.js";import{s as C}from"./DoRPmqLn.js";import{i as D}from"./DVa8Y-mQ.js";import{p as H}from"./DXDBlEGf.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 +1 @@
1
- import{s as e}from"./CVW0ymE1.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"./Dr67pd7v.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};
@@ -0,0 +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{b7 as P,i as T,a5 as I,T as gt,bt as De}from"./vtBo8kBV.js";import{w as Dt}from"./ClknbeNl.js";import{b as qe,H as qt,S as Vt,R as zt}from"./BUApaBEI.js";import{o as te}from"./Dyvi1wBH.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_dhz4pi)==null?void 0:fe.base)??"";var ue;const tn=((ue=globalThis.__sveltekit_dhz4pi)==null?void 0:ue.assets)??U??"",en="1780571209371",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 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 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 j=ge(_e)??{},Z=ge(me)??{},$={url:re({}),page:re({}),navigating:Dt(null),updated:rn()};function Gt(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 Ht,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,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_dhz4pi)!=null&&s.data&&globalThis.__sveltekit_dhz4pi.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,$t=e,Ct=t.nodes[0],_t=t.nodes[1],Ct(),_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=j[R];function r(){a&&(history.scrollRestoration="manual",scrollTo(a.x,a.y))}n?(r(),await Sn($t,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,j),Ue(L),ee(me,Z)}async function Pe(t,e,n,a){let r;e.invalidateAll&&jt(),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)){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 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 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,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 $.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 Wt({loader:Ct,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 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 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):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 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 $.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,$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&&(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)),$.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=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)){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(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=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 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&&$.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=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=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,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.DK_mcVDm.js","../chunks/CS53ooo0.js","../chunks/vtBo8kBV.js","../chunks/BA4Gucnq.js","../chunks/B6WG2Sd3.js","../chunks/ClknbeNl.js","../chunks/B2cyTHdf.js","../chunks/BkD3yAYe.js","../chunks/ChUctqXA.js","../chunks/DoRPmqLn.js","../chunks/DVa8Y-mQ.js","../chunks/CqYSO3Dx.js","../chunks/CVW0ymE1.js","../chunks/BUApaBEI.js","../chunks/Dyvi1wBH.js","../chunks/CGCMIfh3.js","../chunks/DJ2e04vK.js","../chunks/CFwxUBGi.js","../chunks/C4uF_YIK.js","../chunks/BAJAS8BI.js","../chunks/CBY2biv-.js","../chunks/DsxvjlCC.js","../chunks/DCEayuDt.js","../chunks/DAdOEnFb.js","../assets/homeFeedPanelStore.CE6xTfsa.css","../assets/0.DsKls1SN.css","../nodes/1.0PRrU2uQ.js","../nodes/2.AJd2163d.js","../nodes/3.CEVEHuaH.js","../chunks/DL3Q5sfb.js","../chunks/DkamXS6W.js","../chunks/C8umpVpB.js","../chunks/D6kzEN_P.js","../chunks/6prdYIKP.js","../assets/SourcesList.D5Lso0bo.css","../nodes/4.BT_N8pCh.js","../assets/4.Di6rvlY-.css","../nodes/5.BZScQ2CH.js","../chunks/_qj9U-za.js","../assets/BackToParentRoute.DGk-X5ow.css","../assets/5.B-dPiwB7.css","../nodes/6.CkFk8X--.js","../assets/6.B27N7pdA.css","../nodes/7.CuQJk7te.js","../assets/7.CrNxmd8B.css","../nodes/8.DIavWJnU.js","../chunks/Bfc47y5P.js","../assets/8.Cgji2b15.css","../nodes/9.Db30M8x0.js","../assets/9.BsCIAvn3.css","../nodes/10.CsxzlUER.js","../assets/10.Dj8_pmut.css","../nodes/11.D-PkhIRW.js","../assets/11.qYZMiTb0.css","../nodes/12.GGf-JLUY.js","../assets/12.DfJcfUWl.css","../nodes/13.DWWcH27k.js","../assets/13.Qu_tY6H9.css","../nodes/14.COwSLwDN.js","../assets/14.DfMfOrS3.css","../nodes/15.nDN_AHrs.js","../assets/15.nNGjXhCQ.css","../nodes/16.zfSe93Ab.js","../chunks/B-CeeY89.js","../assets/16.Cw9oSkcO.css","../nodes/17.BtYZF6FM.js","../chunks/hp4PFHFv.js","../nodes/18.BIzqhTqv.js"])))=>i.map(i=>d[i]);
2
- var Z=r=>{throw TypeError(r)};var M=(r,t,e)=>t.has(r)||Z("Cannot "+e);var l=(r,t,e)=>(M(r,t,"read from private field"),e?e.call(r):t.get(r)),F=(r,t,e)=>t.has(r)?Z("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(r):t.set(r,e),H=(r,t,e,i)=>(M(r,t,"write to private field"),i?i.call(r,e):t.set(r,e),e);import{a5 as z,af as it,i as v,b6 as mt,ai as ut,z as ct,at as lt,am as _t,an as dt,T as ft,f as A,aw as vt,au as ht,b7 as J,av as gt,ax as Et,az as Pt,aA as x}from"../chunks/vtBo8kBV.js";import{h as pt,m as Rt,u as yt,s as Ot}from"../chunks/B2cyTHdf.js";import{a as E,c as I,f as $,t as bt}from"../chunks/CS53ooo0.js";import{o as Lt}from"../chunks/Dyvi1wBH.js";import{i as B}from"../chunks/BkD3yAYe.js";import{c as k}from"../chunks/C4uF_YIK.js";import{b as S}from"../chunks/B-CeeY89.js";import{p as q}from"../chunks/BAJAS8BI.js";function At(r){return class extends Tt{constructor(t){super({component:r,...t})}}}var P,_;class Tt{constructor(t){F(this,P);F(this,_);var p;var e=new Map,i=(o,a)=>{var m=ct(a,!1,!1);return e.set(o,m),m};const u=new Proxy({...t.props||{},$$events:{}},{get(o,a){return v(e.get(a)??i(a,Reflect.get(o,a)))},has(o,a){return a===it?!0:(v(e.get(a)??i(a,Reflect.get(o,a))),Reflect.has(o,a))},set(o,a,m){return z(e.get(a)??i(a,m),m),Reflect.set(o,a,m)}});H(this,_,(t.hydrate?pt:Rt)(t.component,{target:t.target,anchor:t.anchor,props:u,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError})),(!((p=t==null?void 0:t.props)!=null&&p.$$host)||t.sync===!1)&&mt(),H(this,P,u.$$events);for(const o of Object.keys(l(this,_)))o==="$set"||o==="$destroy"||o==="$on"||ut(this,o,{get(){return l(this,_)[o]},set(a){l(this,_)[o]=a},enumerable:!0});l(this,_).$set=o=>{Object.assign(u,o)},l(this,_).$destroy=()=>{yt(l(this,_))}}$set(t){l(this,_).$set(t)}$on(t,e){l(this,P)[t]=l(this,P)[t]||[];const i=(...u)=>e.call(this,...u);return l(this,P)[t].push(i),()=>{l(this,P)[t]=l(this,P)[t].filter(u=>u!==i)}}$destroy(){l(this,_).$destroy()}}P=new WeakMap,_=new WeakMap;const Dt="modulepreload",It=function(r,t){return new URL(r,t).href},N={},s=function(t,e,i){let u=Promise.resolve();if(e&&e.length>0){let o=function(c){return Promise.all(c.map(h=>Promise.resolve(h).then(R=>({status:"fulfilled",value:R}),R=>({status:"rejected",reason:R}))))};const a=document.getElementsByTagName("link"),m=document.querySelector("meta[property=csp-nonce]"),j=(m==null?void 0:m.nonce)||(m==null?void 0:m.getAttribute("nonce"));u=o(e.map(c=>{if(c=It(c,i),c in N)return;N[c]=!0;const h=c.endsWith(".css"),R=h?'[rel="stylesheet"]':"";if(!!i)for(let y=a.length-1;y>=0;y--){const n=a[y];if(n.href===c&&(!h||n.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${R}`))return;const g=document.createElement("link");if(g.rel=h?"stylesheet":Dt,h||(g.as="script"),g.crossOrigin="",g.href=c,j&&g.setAttribute("nonce",j),document.head.appendChild(g),h)return new Promise((y,n)=>{g.addEventListener("load",y),g.addEventListener("error",()=>n(new Error(`Unable to preload CSS for ${c}`)))})}))}function p(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return u.then(o=>{for(const a of o||[])a.status==="rejected"&&p(a.reason);return t().catch(p)})},Ht={};var Vt=$('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),wt=$("<!> <!>",1);function xt(r,t){lt(t,!0);let e=q(t,"components",23,()=>[]),i=q(t,"data_0",3,null),u=q(t,"data_1",3,null),p=q(t,"data_2",3,null);_t(()=>t.stores.page.set(t.page)),dt(()=>{t.stores,t.page,t.constructors,e(),t.form,i(),u(),p(),t.stores.page.notify()});let o=J(!1),a=J(!1),m=J(null);Lt(()=>{const n=t.stores.page.subscribe(()=>{v(o)&&(z(a,!0),ft().then(()=>{z(m,document.title||"untitled page",!0)}))});return z(o,!0),n});const j=x(()=>t.constructors[2]);var c=wt(),h=A(c);{var R=n=>{const O=x(()=>t.constructors[0]);var b=I(),V=A(b);k(V,()=>v(O),(L,T)=>{S(T(L,{get data(){return i()},get form(){return t.form},get params(){return t.page.params},children:(d,St)=>{var Q=I(),et=A(Q);{var rt=D=>{const U=x(()=>t.constructors[1]);var w=I(),G=A(w);k(G,()=>v(U),(W,Y)=>{S(Y(W,{get data(){return u()},get form(){return t.form},get params(){return t.page.params},children:(f,jt)=>{var X=I(),ot=A(X);k(ot,()=>v(j),(st,nt)=>{S(nt(st,{get data(){return p()},get form(){return t.form},get params(){return t.page.params}}),C=>e()[2]=C,()=>{var C;return(C=e())==null?void 0:C[2]})}),E(f,X)},$$slots:{default:!0}}),f=>e()[1]=f,()=>{var f;return(f=e())==null?void 0:f[1]})}),E(D,w)},at=D=>{const U=x(()=>t.constructors[1]);var w=I(),G=A(w);k(G,()=>v(U),(W,Y)=>{S(Y(W,{get data(){return u()},get form(){return t.form},get params(){return t.page.params}}),f=>e()[1]=f,()=>{var f;return(f=e())==null?void 0:f[1]})}),E(D,w)};B(et,D=>{t.constructors[2]?D(rt):D(at,-1)})}E(d,Q)},$$slots:{default:!0}}),d=>e()[0]=d,()=>{var d;return(d=e())==null?void 0:d[0]})}),E(n,b)},K=n=>{const O=x(()=>t.constructors[0]);var b=I(),V=A(b);k(V,()=>v(O),(L,T)=>{S(T(L,{get data(){return i()},get form(){return t.form},get params(){return t.page.params}}),d=>e()[0]=d,()=>{var d;return(d=e())==null?void 0:d[0]})}),E(n,b)};B(h,n=>{t.constructors[1]?n(R):n(K,-1)})}var g=vt(h,2);{var y=n=>{var O=Vt(),b=gt(O);{var V=L=>{var T=bt();Pt(()=>Ot(T,v(m))),E(L,T)};B(b,L=>{v(a)&&L(V)})}Et(O),E(n,O)};B(g,n=>{v(o)&&n(y)})}E(r,c),ht()}const Jt=At(xt),Kt=[()=>s(()=>import("../nodes/0.DK_mcVDm.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25]),import.meta.url),()=>s(()=>import("../nodes/1.0PRrU2uQ.js"),__vite__mapDeps([26,1,2,3,6,10,12,5,13,14]),import.meta.url),()=>s(()=>import("../nodes/2.AJd2163d.js"),__vite__mapDeps([27,1,2,3,8]),import.meta.url),()=>s(()=>import("../nodes/3.CEVEHuaH.js"),__vite__mapDeps([28,1,2,3,29,30,14,6,4,5,7,17,9,31,10,11,12,13,15,16,18,19,20,21,8,22,23,24,32,33,34]),import.meta.url),()=>s(()=>import("../nodes/4.BT_N8pCh.js"),__vite__mapDeps([35,1,2,3,14,6,7,17,29,9,10,20,36]),import.meta.url),()=>s(()=>import("../nodes/5.BZScQ2CH.js"),__vite__mapDeps([37,1,2,3,14,6,7,29,9,31,10,38,4,5,11,12,13,39,20,15,40]),import.meta.url),()=>s(()=>import("../nodes/6.CkFk8X--.js"),__vite__mapDeps([41,1,2,3,14,6,7,29,9,31,10,38,4,5,11,12,13,39,20,15,42]),import.meta.url),()=>s(()=>import("../nodes/7.CuQJk7te.js"),__vite__mapDeps([43,1,2,3,14,4,5,10,12,13,11,44]),import.meta.url),()=>s(()=>import("../nodes/8.DIavWJnU.js"),__vite__mapDeps([45,1,2,3,6,7,29,9,31,46,10,38,4,5,11,12,13,14,39,47]),import.meta.url),()=>s(()=>import("../nodes/9.Db30M8x0.js"),__vite__mapDeps([48,1,2,3,14,6,7,17,29,9,10,38,4,5,11,12,13,39,20,15,49]),import.meta.url),()=>s(()=>import("../nodes/10.CsxzlUER.js"),__vite__mapDeps([50,1,2,3,14,6,7,29,9,31,10,38,4,5,11,12,13,39,20,15,51]),import.meta.url),()=>s(()=>import("../nodes/11.D-PkhIRW.js"),__vite__mapDeps([52,1,2,3,29,30,14,6,4,5,7,17,9,31,10,11,12,13,15,16,18,19,20,21,8,22,23,24,32,33,34,38,39,53]),import.meta.url),()=>s(()=>import("../nodes/12.GGf-JLUY.js"),__vite__mapDeps([54,1,2,3,14,6,7,17,29,9,31,46,10,38,4,5,11,12,13,39,20,15,55]),import.meta.url),()=>s(()=>import("../nodes/13.DWWcH27k.js"),__vite__mapDeps([56,1,2,3,14,6,7,17,29,9,31,10,20,15,5,21,8,19,4,22,33,18,57]),import.meta.url),()=>s(()=>import("../nodes/14.COwSLwDN.js"),__vite__mapDeps([58,1,2,3,14,6,5,7,17,29,9,31,10,20,11,12,13,15,32,8,19,4,21,22,23,59]),import.meta.url),()=>s(()=>import("../nodes/15.nDN_AHrs.js"),__vite__mapDeps([60,1,2,3,14,29,10,12,5,13,61]),import.meta.url),()=>s(()=>import("../nodes/16.zfSe93Ab.js"),__vite__mapDeps([62,1,2,3,4,5,6,7,22,29,10,9,20,11,12,13,14,15,63,19,38,39,64]),import.meta.url),()=>s(()=>import("../nodes/17.BtYZF6FM.js"),__vite__mapDeps([65,66,13]),import.meta.url),()=>s(()=>import("../nodes/18.BIzqhTqv.js"),__vite__mapDeps([67,66,13]),import.meta.url)],Qt=[],Xt={"/":[3],"/admin":[4,[2]],"/admin/deliver":[5,[2]],"/admin/llm":[6,[2]],"/admin/logs":[7,[2]],"/admin/parse":[8,[2]],"/admin/pipeline":[9,[2]],"/admin/proxy":[10,[2]],"/admin/sources":[11,[2]],"/admin/tags":[12,[2]],"/logs":[13],"/plugins":[14],"/plugins/new":[15],"/plugins/[id]":[16],"/tags":[17],"/[sub]":[18]},tt={handleError:(({error:r})=>{console.error(r)}),reroute:(()=>{}),transport:{}},kt=Object.fromEntries(Object.entries(tt.transport).map(([r,t])=>[r,t.decode])),Zt=Object.fromEntries(Object.entries(tt.transport).map(([r,t])=>[r,t.encode])),Mt=!1,Nt=(r,t)=>kt[r](t);export{Nt as decode,kt as decoders,Xt as dictionary,Zt as encoders,Mt as hash,tt as hooks,Ht as matchers,Kt as nodes,Jt as root,Qt as server_loads};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.CQDkqUeN.js","../chunks/CS53ooo0.js","../chunks/vtBo8kBV.js","../chunks/BA4Gucnq.js","../chunks/B6WG2Sd3.js","../chunks/ClknbeNl.js","../chunks/B2cyTHdf.js","../chunks/BkD3yAYe.js","../chunks/ChUctqXA.js","../chunks/DoRPmqLn.js","../chunks/DVa8Y-mQ.js","../chunks/DXDBlEGf.js","../chunks/Dr67pd7v.js","../chunks/BUApaBEI.js","../chunks/Dyvi1wBH.js","../chunks/CGCMIfh3.js","../chunks/Brun6sCr.js","../chunks/CFwxUBGi.js","../chunks/C4uF_YIK.js","../chunks/BAJAS8BI.js","../chunks/CBY2biv-.js","../chunks/DsxvjlCC.js","../chunks/DCEayuDt.js","../chunks/DAdOEnFb.js","../assets/homeFeedPanelStore.CE6xTfsa.css","../assets/0.BLOTwIuF.css","../nodes/1.BUa24rXB.js","../nodes/2.AJd2163d.js","../nodes/3.BZQeL-vz.js","../chunks/DL3Q5sfb.js","../chunks/BXTsojX2.js","../chunks/C8umpVpB.js","../chunks/D6kzEN_P.js","../chunks/6prdYIKP.js","../assets/SourcesList.D5Lso0bo.css","../nodes/4.BT_N8pCh.js","../assets/4.Di6rvlY-.css","../nodes/5.Bo_ftyqW.js","../chunks/DAV9bzjw.js","../assets/BackToParentRoute.DGk-X5ow.css","../assets/5.B-dPiwB7.css","../nodes/6.vOowdQUr.js","../assets/6.B27N7pdA.css","../nodes/7.BfVbBKZu.js","../assets/7.CrNxmd8B.css","../nodes/8.BslYG5f2.js","../chunks/Bfc47y5P.js","../assets/8.Cgji2b15.css","../nodes/9.DAgT-df2.js","../assets/9.BsCIAvn3.css","../nodes/10.MZgVhpGF.js","../assets/10.Dj8_pmut.css","../nodes/11.B39IbrZ0.js","../assets/11.qYZMiTb0.css","../nodes/12.B5B81dLQ.js","../assets/12.DfJcfUWl.css","../nodes/13.DWWcH27k.js","../assets/13.Qu_tY6H9.css","../nodes/14.Db6eOPqq.js","../assets/14.DfMfOrS3.css","../nodes/15.B2jiP2VJ.js","../assets/15.nNGjXhCQ.css","../nodes/16.p6WfP435.js","../chunks/B-CeeY89.js","../assets/16.Cw9oSkcO.css","../nodes/17.BtYZF6FM.js","../chunks/hp4PFHFv.js","../nodes/18.BIzqhTqv.js"])))=>i.map(i=>d[i]);
2
+ var Z=r=>{throw TypeError(r)};var M=(r,t,e)=>t.has(r)||Z("Cannot "+e);var l=(r,t,e)=>(M(r,t,"read from private field"),e?e.call(r):t.get(r)),F=(r,t,e)=>t.has(r)?Z("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(r):t.set(r,e),H=(r,t,e,i)=>(M(r,t,"write to private field"),i?i.call(r,e):t.set(r,e),e);import{a5 as z,af as it,i as v,b6 as mt,ai as ut,z as ct,at as lt,am as _t,an as dt,T as ft,f as A,aw as vt,au as ht,b7 as J,av as gt,ax as Et,az as Pt,aA as x}from"../chunks/vtBo8kBV.js";import{h as pt,m as Rt,u as yt,s as Ot}from"../chunks/B2cyTHdf.js";import{a as E,c as I,f as $,t as bt}from"../chunks/CS53ooo0.js";import{o as Lt}from"../chunks/Dyvi1wBH.js";import{i as B}from"../chunks/BkD3yAYe.js";import{c as k}from"../chunks/C4uF_YIK.js";import{b as S}from"../chunks/B-CeeY89.js";import{p as q}from"../chunks/BAJAS8BI.js";function At(r){return class extends Tt{constructor(t){super({component:r,...t})}}}var P,_;class Tt{constructor(t){F(this,P);F(this,_);var p;var e=new Map,i=(o,a)=>{var m=ct(a,!1,!1);return e.set(o,m),m};const u=new Proxy({...t.props||{},$$events:{}},{get(o,a){return v(e.get(a)??i(a,Reflect.get(o,a)))},has(o,a){return a===it?!0:(v(e.get(a)??i(a,Reflect.get(o,a))),Reflect.has(o,a))},set(o,a,m){return z(e.get(a)??i(a,m),m),Reflect.set(o,a,m)}});H(this,_,(t.hydrate?pt:Rt)(t.component,{target:t.target,anchor:t.anchor,props:u,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError})),(!((p=t==null?void 0:t.props)!=null&&p.$$host)||t.sync===!1)&&mt(),H(this,P,u.$$events);for(const o of Object.keys(l(this,_)))o==="$set"||o==="$destroy"||o==="$on"||ut(this,o,{get(){return l(this,_)[o]},set(a){l(this,_)[o]=a},enumerable:!0});l(this,_).$set=o=>{Object.assign(u,o)},l(this,_).$destroy=()=>{yt(l(this,_))}}$set(t){l(this,_).$set(t)}$on(t,e){l(this,P)[t]=l(this,P)[t]||[];const i=(...u)=>e.call(this,...u);return l(this,P)[t].push(i),()=>{l(this,P)[t]=l(this,P)[t].filter(u=>u!==i)}}$destroy(){l(this,_).$destroy()}}P=new WeakMap,_=new WeakMap;const Dt="modulepreload",It=function(r,t){return new URL(r,t).href},N={},s=function(t,e,i){let u=Promise.resolve();if(e&&e.length>0){let o=function(c){return Promise.all(c.map(h=>Promise.resolve(h).then(R=>({status:"fulfilled",value:R}),R=>({status:"rejected",reason:R}))))};const a=document.getElementsByTagName("link"),m=document.querySelector("meta[property=csp-nonce]"),j=(m==null?void 0:m.nonce)||(m==null?void 0:m.getAttribute("nonce"));u=o(e.map(c=>{if(c=It(c,i),c in N)return;N[c]=!0;const h=c.endsWith(".css"),R=h?'[rel="stylesheet"]':"";if(!!i)for(let y=a.length-1;y>=0;y--){const n=a[y];if(n.href===c&&(!h||n.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${R}`))return;const g=document.createElement("link");if(g.rel=h?"stylesheet":Dt,h||(g.as="script"),g.crossOrigin="",g.href=c,j&&g.setAttribute("nonce",j),document.head.appendChild(g),h)return new Promise((y,n)=>{g.addEventListener("load",y),g.addEventListener("error",()=>n(new Error(`Unable to preload CSS for ${c}`)))})}))}function p(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return u.then(o=>{for(const a of o||[])a.status==="rejected"&&p(a.reason);return t().catch(p)})},Ht={};var Vt=$('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),wt=$("<!> <!>",1);function xt(r,t){lt(t,!0);let e=q(t,"components",23,()=>[]),i=q(t,"data_0",3,null),u=q(t,"data_1",3,null),p=q(t,"data_2",3,null);_t(()=>t.stores.page.set(t.page)),dt(()=>{t.stores,t.page,t.constructors,e(),t.form,i(),u(),p(),t.stores.page.notify()});let o=J(!1),a=J(!1),m=J(null);Lt(()=>{const n=t.stores.page.subscribe(()=>{v(o)&&(z(a,!0),ft().then(()=>{z(m,document.title||"untitled page",!0)}))});return z(o,!0),n});const j=x(()=>t.constructors[2]);var c=wt(),h=A(c);{var R=n=>{const O=x(()=>t.constructors[0]);var b=I(),V=A(b);k(V,()=>v(O),(L,T)=>{S(T(L,{get data(){return i()},get form(){return t.form},get params(){return t.page.params},children:(d,St)=>{var Q=I(),et=A(Q);{var rt=D=>{const U=x(()=>t.constructors[1]);var w=I(),G=A(w);k(G,()=>v(U),(W,Y)=>{S(Y(W,{get data(){return u()},get form(){return t.form},get params(){return t.page.params},children:(f,jt)=>{var X=I(),ot=A(X);k(ot,()=>v(j),(st,nt)=>{S(nt(st,{get data(){return p()},get form(){return t.form},get params(){return t.page.params}}),C=>e()[2]=C,()=>{var C;return(C=e())==null?void 0:C[2]})}),E(f,X)},$$slots:{default:!0}}),f=>e()[1]=f,()=>{var f;return(f=e())==null?void 0:f[1]})}),E(D,w)},at=D=>{const U=x(()=>t.constructors[1]);var w=I(),G=A(w);k(G,()=>v(U),(W,Y)=>{S(Y(W,{get data(){return u()},get form(){return t.form},get params(){return t.page.params}}),f=>e()[1]=f,()=>{var f;return(f=e())==null?void 0:f[1]})}),E(D,w)};B(et,D=>{t.constructors[2]?D(rt):D(at,-1)})}E(d,Q)},$$slots:{default:!0}}),d=>e()[0]=d,()=>{var d;return(d=e())==null?void 0:d[0]})}),E(n,b)},K=n=>{const O=x(()=>t.constructors[0]);var b=I(),V=A(b);k(V,()=>v(O),(L,T)=>{S(T(L,{get data(){return i()},get form(){return t.form},get params(){return t.page.params}}),d=>e()[0]=d,()=>{var d;return(d=e())==null?void 0:d[0]})}),E(n,b)};B(h,n=>{t.constructors[1]?n(R):n(K,-1)})}var g=vt(h,2);{var y=n=>{var O=Vt(),b=gt(O);{var V=L=>{var T=bt();Pt(()=>Ot(T,v(m))),E(L,T)};B(b,L=>{v(a)&&L(V)})}Et(O),E(n,O)};B(g,n=>{v(o)&&n(y)})}E(r,c),ht()}const Jt=At(xt),Kt=[()=>s(()=>import("../nodes/0.CQDkqUeN.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25]),import.meta.url),()=>s(()=>import("../nodes/1.BUa24rXB.js"),__vite__mapDeps([26,1,2,3,6,10,12,5,13,14]),import.meta.url),()=>s(()=>import("../nodes/2.AJd2163d.js"),__vite__mapDeps([27,1,2,3,8]),import.meta.url),()=>s(()=>import("../nodes/3.BZQeL-vz.js"),__vite__mapDeps([28,1,2,3,29,30,14,6,4,5,7,17,9,31,10,11,12,13,15,16,18,19,20,21,8,22,23,24,32,33,34]),import.meta.url),()=>s(()=>import("../nodes/4.BT_N8pCh.js"),__vite__mapDeps([35,1,2,3,14,6,7,17,29,9,10,20,36]),import.meta.url),()=>s(()=>import("../nodes/5.Bo_ftyqW.js"),__vite__mapDeps([37,1,2,3,14,6,7,29,9,31,10,38,4,5,11,12,13,39,20,15,40]),import.meta.url),()=>s(()=>import("../nodes/6.vOowdQUr.js"),__vite__mapDeps([41,1,2,3,14,6,7,29,9,31,10,38,4,5,11,12,13,39,20,15,42]),import.meta.url),()=>s(()=>import("../nodes/7.BfVbBKZu.js"),__vite__mapDeps([43,1,2,3,14,4,5,10,12,13,11,44]),import.meta.url),()=>s(()=>import("../nodes/8.BslYG5f2.js"),__vite__mapDeps([45,1,2,3,6,7,29,9,31,46,10,38,4,5,11,12,13,14,39,47]),import.meta.url),()=>s(()=>import("../nodes/9.DAgT-df2.js"),__vite__mapDeps([48,1,2,3,14,6,7,17,29,9,10,38,4,5,11,12,13,39,20,15,49]),import.meta.url),()=>s(()=>import("../nodes/10.MZgVhpGF.js"),__vite__mapDeps([50,1,2,3,14,6,7,29,9,31,10,38,4,5,11,12,13,39,20,15,51]),import.meta.url),()=>s(()=>import("../nodes/11.B39IbrZ0.js"),__vite__mapDeps([52,1,2,3,29,30,14,6,4,5,7,17,9,31,10,11,12,13,15,16,18,19,20,21,8,22,23,24,32,33,34,38,39,53]),import.meta.url),()=>s(()=>import("../nodes/12.B5B81dLQ.js"),__vite__mapDeps([54,1,2,3,14,6,7,17,29,9,31,46,10,38,4,5,11,12,13,39,20,15,55]),import.meta.url),()=>s(()=>import("../nodes/13.DWWcH27k.js"),__vite__mapDeps([56,1,2,3,14,6,7,17,29,9,31,10,20,15,5,21,8,19,4,22,33,18,57]),import.meta.url),()=>s(()=>import("../nodes/14.Db6eOPqq.js"),__vite__mapDeps([58,1,2,3,14,6,5,7,17,29,9,31,10,20,11,12,13,15,32,8,19,4,21,22,23,59]),import.meta.url),()=>s(()=>import("../nodes/15.B2jiP2VJ.js"),__vite__mapDeps([60,1,2,3,14,29,10,12,5,13,61]),import.meta.url),()=>s(()=>import("../nodes/16.p6WfP435.js"),__vite__mapDeps([62,1,2,3,4,5,6,7,22,29,10,9,20,11,12,13,14,15,63,19,38,39,64]),import.meta.url),()=>s(()=>import("../nodes/17.BtYZF6FM.js"),__vite__mapDeps([65,66,13]),import.meta.url),()=>s(()=>import("../nodes/18.BIzqhTqv.js"),__vite__mapDeps([67,66,13]),import.meta.url)],Qt=[],Xt={"/":[3],"/admin":[4,[2]],"/admin/deliver":[5,[2]],"/admin/llm":[6,[2]],"/admin/logs":[7,[2]],"/admin/parse":[8,[2]],"/admin/pipeline":[9,[2]],"/admin/proxy":[10,[2]],"/admin/sources":[11,[2]],"/admin/tags":[12,[2]],"/logs":[13],"/plugins":[14],"/plugins/new":[15],"/plugins/[id]":[16],"/tags":[17],"/[sub]":[18]},tt={handleError:(({error:r})=>{console.error(r)}),reroute:(()=>{}),transport:{}},kt=Object.fromEntries(Object.entries(tt.transport).map(([r,t])=>[r,t.decode])),Zt=Object.fromEntries(Object.entries(tt.transport).map(([r,t])=>[r,t.encode])),Mt=!1,Nt=(r,t)=>kt[r](t);export{Nt as decode,kt as decoders,Xt as dictionary,Zt as encoders,Mt as hash,tt as hooks,Ht as matchers,Kt as nodes,Jt as root,Qt as server_loads};
@@ -0,0 +1 @@
1
+ import{l as o,a as r}from"../chunks/Dr67pd7v.js";export{o as load_css,r as start};
@@ -1,4 +1,4 @@
1
- import{c as U,a as $,f as V}from"../chunks/CS53ooo0.js";import"../chunks/BA4Gucnq.js";import{f as S,at as la,au as ra,av as t,ax as s,az as ia,aC as P,aD as Ga,a5 as O,i as a,aw as h,aq as Ra,U as m,z as W,u as _}from"../chunks/vtBo8kBV.js";import{s as oa,a as T}from"../chunks/B6WG2Sd3.js";import{s as na}from"../chunks/B2cyTHdf.js";import{i as va}from"../chunks/BkD3yAYe.js";import{s as B}from"../chunks/ChUctqXA.js";import{a as g,s as I,G as Ca,P as ta}from"../chunks/DoRPmqLn.js";import{i as ca}from"../chunks/DVa8Y-mQ.js";import{p as Fa}from"../chunks/CqYSO3Dx.js";import{t as Na}from"../chunks/CGCMIfh3.js";import{R as Oa,P as Wa,h as w,S as Ia}from"../chunks/DJ2e04vK.js";import{l as ua,s as da}from"../chunks/BAJAS8BI.js";import{I as ha}from"../chunks/DsxvjlCC.js";const Ta=!1,Ua=!1,ce=Object.freeze(Object.defineProperty({__proto__:null,prerender:Ua,ssr:Ta},Symbol.toStringTag,{value:"Module"})),Va='<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>',Ba='</title><path d="',Da='"/></svg>',sa={title:"GitHub",slug:"github",get svg(){return Va+"GitHub"+Ba+this.path+Da},path:"M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12",source:"https://github.com/logos",hex:"181717",guidelines:"https://github.com/logos"};function La(f,o){const n=ua(o,["children","$$slots","$$events","$$legacy"]);/**
1
+ import{c as U,a as $,f as V}from"../chunks/CS53ooo0.js";import"../chunks/BA4Gucnq.js";import{f as S,at as la,au as ra,av as t,ax as s,az as ia,aC as P,aD as Ga,a5 as O,i as a,aw as h,aq as Ra,U as m,z as W,u as _}from"../chunks/vtBo8kBV.js";import{s as oa,a as T}from"../chunks/B6WG2Sd3.js";import{s as na}from"../chunks/B2cyTHdf.js";import{i as va}from"../chunks/BkD3yAYe.js";import{s as B}from"../chunks/ChUctqXA.js";import{a as g,s as I,G as Ca,P as ta}from"../chunks/DoRPmqLn.js";import{i as ca}from"../chunks/DVa8Y-mQ.js";import{p as Fa}from"../chunks/DXDBlEGf.js";import{t as Na}from"../chunks/CGCMIfh3.js";import{R as Oa,P as Wa,h as w,S as Ia}from"../chunks/Brun6sCr.js";import{l as ua,s as da}from"../chunks/BAJAS8BI.js";import{I as ha}from"../chunks/DsxvjlCC.js";const Ta=!1,Ua=!1,ce=Object.freeze(Object.defineProperty({__proto__:null,prerender:Ua,ssr:Ta},Symbol.toStringTag,{value:"Module"})),Va='<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>',Ba='</title><path d="',Da='"/></svg>',sa={title:"GitHub",slug:"github",get svg(){return Va+"GitHub"+Ba+this.path+Da},path:"M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12",source:"https://github.com/logos",hex:"181717",guidelines:"https://github.com/logos"};function La(f,o){const n=ua(o,["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.
@@ -1 +1 @@
1
- import{a as h,f as g}from"../chunks/CS53ooo0.js";import"../chunks/BA4Gucnq.js";import{at as v,f as l,az as d,au as x,av as e,ax as o,aw as _}from"../chunks/vtBo8kBV.js";import{s as p}from"../chunks/B2cyTHdf.js";import{i as $}from"../chunks/DVa8Y-mQ.js";import{s as k,p as m}from"../chunks/CVW0ymE1.js";const b={get error(){return m.error},get status(){return m.status}};k.updated.check;const i=b;var w=g("<h1> </h1> <p> </p>",1);function B(f,n){v(n,!1),$();var t=w(),r=l(t),c=e(r,!0);o(r);var a=_(r,2),u=e(a,!0);o(a),d(()=>{var s;p(c,i.status),p(u,(s=i.error)==null?void 0:s.message)}),h(f,t),x()}export{B as component};
1
+ import{a as h,f as g}from"../chunks/CS53ooo0.js";import"../chunks/BA4Gucnq.js";import{at as v,f as l,az as d,au as x,av as e,ax as o,aw as _}from"../chunks/vtBo8kBV.js";import{s as p}from"../chunks/B2cyTHdf.js";import{i as $}from"../chunks/DVa8Y-mQ.js";import{s as k,p as m}from"../chunks/Dr67pd7v.js";const b={get error(){return m.error},get status(){return m.status}};k.updated.check;const i=b;var w=g("<h1> </h1> <p> </p>",1);function B(f,n){v(n,!1),$();var t=w(),r=l(t),c=e(r,!0);o(r);var a=_(r,2),u=e(a,!0);o(a),d(()=>{var s;p(c,i.status),p(u,(s=i.error)==null?void 0:s.message)}),h(f,t),x()}export{B as component};
@@ -1 +1 @@
1
- import{a as v,f as u}from"../chunks/CS53ooo0.js";import"../chunks/BA4Gucnq.js";import{o as H}from"../chunks/Dyvi1wBH.js";import{at as $,az as B,au as C,d as J,av as a,a5 as t,i as o,z as d,$ as M,aw as m,ax as r,f as N,ay as U}from"../chunks/vtBo8kBV.js";import{d as X,a as Y,s as A}from"../chunks/B2cyTHdf.js";import{i as D}from"../chunks/BkD3yAYe.js";import{h as F}from"../chunks/DL3Q5sfb.js";import{P as q,r as G}from"../chunks/DoRPmqLn.js";import{b as I}from"../chunks/C8umpVpB.js";import{i as K}from"../chunks/DVa8Y-mQ.js";import{B as L}from"../chunks/_qj9U-za.js";import{b as j}from"../chunks/CBY2biv-.js";import{s as z}from"../chunks/CGCMIfh3.js";var Q=u('<p class="hint svelte-1f24zj">加载中…</p>'),V=u('<input type="text" class="text-input svelte-1f24zj" placeholder="http://127.0.0.1:7890" autocomplete="off"/> <p class="hint svelte-1f24zj">留空表示不在配置中设置全局代理(可继续用环境变量)。支持带账号:<code>http://user:pass@host:port</code></p>',1),W=u('<div class="feed-wrap svelte-1f24zj"><div class="feed-col svelte-1f24zj"><div class="body svelte-1f24zj"><!> <p class="intro svelte-1f24zj">写入 <code class="svelte-1f24zj">.rssany/config.json</code> 的 <code class="svelte-1f24zj">globalProxy</code>。抓取与站点登录时,若未在 <code class="svelte-1f24zj">sources.json</code> 或插件中指定单源代理,则使用此处;未填写时仍可使用环境变量 <code class="svelte-1f24zj">HTTP_PROXY</code> / <code class="svelte-1f24zj">HTTPS_PROXY</code>。</p> <section class="form-section svelte-1f24zj"><h3 class="section-title svelte-1f24zj">全局 HTTP(S) 代理</h3> <!></section> <div class="btn-row svelte-1f24zj"><button type="button" class="btn btn-primary svelte-1f24zj"> </button></div></div></div></div>');function ve(x,P){$(P,!1);let s=d(""),l=d(!0),i=d(!1);async function T(){t(l,!0);try{const e=await j("/api/proxy");t(s,typeof(e==null?void 0:e.globalProxy)=="string"?e.globalProxy:"")}catch{t(s,"")}finally{t(l,!1)}}async function w(){t(i,!0);try{const e=await j("/api/proxy",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({globalProxy:o(s).trim()})});if(!(e!=null&&e.ok))throw new Error("保存失败");t(s,typeof e.globalProxy=="string"?e.globalProxy:""),z("已保存","success")}catch(e){z("保存失败: "+(e instanceof Error?e.message:String(e)),"error")}finally{t(i,!1)}}H(T),K();var f=W();F("1f24zj",e=>{J(()=>{M.title=`代理 - ${q}`})});var y=a(f),b=a(y),h=a(b);L(h,{});var p=m(h,4),k=m(a(p),2);{var O=e=>{var n=Q();v(e,n)},R=e=>{var n=V(),_=N(n);G(_),U(2),I(_,()=>o(s),E=>t(s,E)),v(e,n)};D(k,e=>{o(l)?e(O):e(R,-1)})}r(p);var g=m(p,2),c=a(g),S=a(c,!0);r(c),r(g),r(b),r(y),r(f),B(()=>{c.disabled=o(l)||o(i),A(S,o(i)?"保存中…":"保存")}),Y("click",c,w),v(x,f),C()}X(["click"]);export{ve as component};
1
+ import{a as v,f as u}from"../chunks/CS53ooo0.js";import"../chunks/BA4Gucnq.js";import{o as H}from"../chunks/Dyvi1wBH.js";import{at as $,az as B,au as C,d as J,av as a,a5 as t,i as o,z as d,$ as M,aw as m,ax as r,f as N,ay as U}from"../chunks/vtBo8kBV.js";import{d as X,a as Y,s as A}from"../chunks/B2cyTHdf.js";import{i as D}from"../chunks/BkD3yAYe.js";import{h as F}from"../chunks/DL3Q5sfb.js";import{P as q,r as G}from"../chunks/DoRPmqLn.js";import{b as I}from"../chunks/C8umpVpB.js";import{i as K}from"../chunks/DVa8Y-mQ.js";import{B as L}from"../chunks/DAV9bzjw.js";import{b as j}from"../chunks/CBY2biv-.js";import{s as z}from"../chunks/CGCMIfh3.js";var Q=u('<p class="hint svelte-1f24zj">加载中…</p>'),V=u('<input type="text" class="text-input svelte-1f24zj" placeholder="http://127.0.0.1:7890" autocomplete="off"/> <p class="hint svelte-1f24zj">留空表示不在配置中设置全局代理(可继续用环境变量)。支持带账号:<code>http://user:pass@host:port</code></p>',1),W=u('<div class="feed-wrap svelte-1f24zj"><div class="feed-col svelte-1f24zj"><div class="body svelte-1f24zj"><!> <p class="intro svelte-1f24zj">写入 <code class="svelte-1f24zj">.rssany/config.json</code> 的 <code class="svelte-1f24zj">globalProxy</code>。抓取与站点登录时,若未在 <code class="svelte-1f24zj">sources.json</code> 或插件中指定单源代理,则使用此处;未填写时仍可使用环境变量 <code class="svelte-1f24zj">HTTP_PROXY</code> / <code class="svelte-1f24zj">HTTPS_PROXY</code>。</p> <section class="form-section svelte-1f24zj"><h3 class="section-title svelte-1f24zj">全局 HTTP(S) 代理</h3> <!></section> <div class="btn-row svelte-1f24zj"><button type="button" class="btn btn-primary svelte-1f24zj"> </button></div></div></div></div>');function ve(x,P){$(P,!1);let s=d(""),l=d(!0),i=d(!1);async function T(){t(l,!0);try{const e=await j("/api/proxy");t(s,typeof(e==null?void 0:e.globalProxy)=="string"?e.globalProxy:"")}catch{t(s,"")}finally{t(l,!1)}}async function w(){t(i,!0);try{const e=await j("/api/proxy",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({globalProxy:o(s).trim()})});if(!(e!=null&&e.ok))throw new Error("保存失败");t(s,typeof e.globalProxy=="string"?e.globalProxy:""),z("已保存","success")}catch(e){z("保存失败: "+(e instanceof Error?e.message:String(e)),"error")}finally{t(i,!1)}}H(T),K();var f=W();F("1f24zj",e=>{J(()=>{M.title=`代理 - ${q}`})});var y=a(f),b=a(y),h=a(b);L(h,{});var p=m(h,4),k=m(a(p),2);{var O=e=>{var n=Q();v(e,n)},R=e=>{var n=V(),_=N(n);G(_),U(2),I(_,()=>o(s),E=>t(s,E)),v(e,n)};D(k,e=>{o(l)?e(O):e(R,-1)})}r(p);var g=m(p,2),c=a(g),S=a(c,!0);r(c),r(g),r(b),r(y),r(f),B(()=>{c.disabled=o(l)||o(i),A(S,o(i)?"保存中…":"保存")}),Y("click",c,w),v(x,f),C()}X(["click"]);export{ve as component};
@@ -1 +1 @@
1
- import{a as s,f as m}from"../chunks/CS53ooo0.js";import"../chunks/BA4Gucnq.js";import{f as i,d as c,av as f,aw as d,$ as n,ax as p}from"../chunks/vtBo8kBV.js";import{h as v}from"../chunks/DL3Q5sfb.js";import{S as l}from"../chunks/DkamXS6W.js";import{B as _}from"../chunks/_qj9U-za.js";import{P as h}from"../chunks/DoRPmqLn.js";var u=m('<div class="admin-sources-back svelte-8cr5m9"><!></div> <!>',1);function R(o){var r=u();v("8cr5m9",$=>{c(()=>{n.title=`Sources — ${h}`})});var a=i(r),e=f(a);_(e,{}),p(a);var t=d(a,2);l(t,{}),s(o,r)}export{R as component};
1
+ import{a as s,f as m}from"../chunks/CS53ooo0.js";import"../chunks/BA4Gucnq.js";import{f as i,d as c,av as f,aw as d,$ as n,ax as p}from"../chunks/vtBo8kBV.js";import{h as v}from"../chunks/DL3Q5sfb.js";import{S as l}from"../chunks/BXTsojX2.js";import{B as _}from"../chunks/DAV9bzjw.js";import{P as h}from"../chunks/DoRPmqLn.js";var u=m('<div class="admin-sources-back svelte-8cr5m9"><!></div> <!>',1);function R(o){var r=u();v("8cr5m9",$=>{c(()=>{n.title=`Sources — ${h}`})});var a=i(r),e=f(a);_(e,{}),p(a);var t=d(a,2);l(t,{}),s(o,r)}export{R as component};