rssany 0.1.2 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +28 -50
- package/app/plugins/builtin/agi-eval-evaluation.rssany.js +188 -0
- package/app/plugins/builtin/amii-research-talent.rssany.js +73 -0
- package/app/plugins/builtin/anthropic-research.rssany.js +155 -0
- package/app/plugins/builtin/appen-resources.rssany.js +155 -0
- package/app/plugins/builtin/baai-wudao-paper-article.rssany.js +185 -0
- package/app/plugins/builtin/baaidata-csdn.rssany.js +242 -0
- package/app/plugins/builtin/baidu-research.rssany.js +222 -0
- package/app/plugins/builtin/brightdata-blog.rssany.js +301 -0
- package/app/plugins/builtin/bytedance-seed-research.rssany.js +231 -0
- package/app/plugins/builtin/five-radar.rssany.js +490 -0
- package/app/plugins/builtin/flageval-news.rssany.js +118 -0
- package/app/plugins/builtin/google-deepmind-research.rssany.js +223 -0
- package/app/plugins/builtin/google-research-datasets.rssany.js +171 -0
- package/app/plugins/builtin/google-research.rssany.js +220 -0
- package/app/plugins/builtin/google.rssany.js +187 -0
- package/app/plugins/builtin/hacker-news-newest.rssany.js +130 -0
- package/app/plugins/builtin/harvard-dataverse.rssany.js +166 -0
- package/app/plugins/builtin/huaweicloud-bbs-blogs.rssany.js +185 -0
- package/app/plugins/builtin/lingowhale.rssany.js +119 -0
- package/app/plugins/builtin/meituan-tech.rssany.js +130 -0
- package/app/plugins/builtin/meta-ai-publications.rssany.js +221 -0
- package/app/plugins/builtin/mila-quebec.rssany.js +199 -0
- package/app/plugins/builtin/mit-csail-research.rssany.js +208 -0
- package/app/plugins/builtin/moonshot.rssany.js +127 -0
- package/app/plugins/builtin/opendatalab-news.rssany.js +174 -0
- package/app/plugins/builtin/opendatalab.rssany.js +109 -0
- package/app/plugins/builtin/opendrivelab-autonomous-driving.rssany.js +114 -0
- package/app/plugins/builtin/opendrivelab-embodiedai.rssany.js +114 -0
- package/app/plugins/builtin/opendrivelab-publications.rssany.js +130 -0
- package/app/plugins/builtin/opendrivelab.rssany.js +333 -0
- package/app/plugins/builtin/paperswithcode.rssany.js +227 -0
- package/app/plugins/builtin/pjlab-adg-publications.rssany.js +202 -0
- package/app/plugins/builtin/rss.rssany.js +11 -1
- package/app/plugins/builtin/selectdataset.rssany.js +206 -0
- package/app/plugins/builtin/sensetime-tech-achievements.rssany.js +154 -0
- package/app/plugins/builtin/supervisely-blog.rssany.js +159 -0
- package/app/plugins/builtin/uci-ml-repository.rssany.js +111 -0
- package/app/plugins/builtin/venturebeat.rssany.js +97 -0
- package/app/plugins/builtin/worldlabs.rssany.js +129 -0
- package/app/plugins/builtin/x.rssany.js +159 -0
- package/app/plugins/builtin/xiaohongshu.rssany.js +283 -0
- package/app/plugins/builtin/zhipu-research.rssany.js +334 -0
- package/dist/index.js +79 -9
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/webui/build/200.html +6 -6
- package/webui/build/_app/immutable/assets/0.BB88QFoe.css +1 -0
- package/webui/build/_app/immutable/assets/{homeFeedPanelStore.BopJZtHu.css → homeFeedPanelStore.iOmfP2qL.css} +1 -1
- package/webui/build/_app/immutable/chunks/CZD-YNDw.js +31 -0
- package/webui/build/_app/immutable/chunks/{DcAshVxe.js → D6VIKef0.js} +1 -1
- package/webui/build/_app/immutable/chunks/{EIZIMsXK.js → Dbqx2mXq.js} +1 -1
- package/webui/build/_app/immutable/chunks/DeX-oq5W.js +41 -0
- package/webui/build/_app/immutable/chunks/{BXCWEhUd.js → dhB8G5Is.js} +1 -1
- package/webui/build/_app/immutable/entry/{app.DdgnooOk.js → app.XPso7q7g.js} +2 -2
- package/webui/build/_app/immutable/entry/start.Db4snNCd.js +1 -0
- package/webui/build/_app/immutable/nodes/0.BKTQePmA.js +11 -0
- package/webui/build/_app/immutable/nodes/{1.5DFDaT4c.js → 1.BS3_Rfxm.js} +1 -1
- package/webui/build/_app/immutable/nodes/{10.OVK4i9XE.js → 10.CyyxDCIS.js} +1 -1
- package/webui/build/_app/immutable/nodes/{11.Dhn_rO4A.js → 11.CtYgIaGj.js} +1 -1
- package/webui/build/_app/immutable/nodes/{14.B_KpJLxn.js → 14.D5OEGPR2.js} +1 -1
- package/webui/build/_app/immutable/nodes/{15.RaWaA-0I.js → 15.B4dFN1Gk.js} +1 -1
- package/webui/build/_app/immutable/nodes/{16.DSUgqolV.js → 16.M7ZII7tl.js} +1 -1
- package/webui/build/_app/immutable/nodes/{3.wQvGs9w-.js → 3.7r8v7qkm.js} +1 -1
- package/webui/build/_app/immutable/nodes/{5.CCtn90c0.js → 5.CHIzoGrb.js} +1 -1
- package/webui/build/_app/immutable/nodes/{6.C2_mjW1u.js → 6.BDBqx-GY.js} +1 -1
- package/webui/build/_app/immutable/nodes/{7.Dwz6W7A1.js → 7.D5czsDmz.js} +1 -1
- package/webui/build/_app/immutable/nodes/{8.DzkEw6rx.js → 8.pjVNsCdV.js} +1 -1
- package/webui/build/_app/immutable/nodes/{9.DtlXEwe1.js → 9.CsARv1BH.js} +1 -1
- package/webui/build/_app/version.json +1 -1
- package/webui/build/_app/immutable/assets/0.C6Q_nuW9.css +0 -1
- package/webui/build/_app/immutable/chunks/CkUAV0m0.js +0 -41
- package/webui/build/_app/immutable/chunks/CtijX1u3.js +0 -31
- package/webui/build/_app/immutable/entry/start.DhJaJZhR.js +0 -1
- package/webui/build/_app/immutable/nodes/0.BE05Cuc4.js +0 -11
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as u,f as g}from"../chunks/BK3WtZwv.js";import"../chunks/lk5LaiqA.js";import{o as se}from"../chunks/Bp63qm3L.js";import{at as te,au as re,d as le,av as o,$ as ie,ay as B,ax as i,aw as c,i as a,a5 as r,z as b,az as T,aA as oe}from"../chunks/BbWUOQ_m.js";import{s as I,e as f}from"../chunks/DMWEh-Ek.js";import{i as O}from"../chunks/Dt2CddFe.js";import{e as ne,i as de}from"../chunks/BQqoDzLx.js";import{h as ve}from"../chunks/DEDI7Ecm.js";import{P as ce,r as fe,a as pe,b as me}from"../chunks/B2Q1a1-H.js";import{i as ue}from"../chunks/CVzlFH44.js";import{B as be}from"../chunks/
|
|
1
|
+
import{a as u,f as g}from"../chunks/BK3WtZwv.js";import"../chunks/lk5LaiqA.js";import{o as se}from"../chunks/Bp63qm3L.js";import{at as te,au as re,d as le,av as o,$ as ie,ay as B,ax as i,aw as c,i as a,a5 as r,z as b,az as T,aA as oe}from"../chunks/BbWUOQ_m.js";import{s as I,e as f}from"../chunks/DMWEh-Ek.js";import{i as O}from"../chunks/Dt2CddFe.js";import{e as ne,i as de}from"../chunks/BQqoDzLx.js";import{h as ve}from"../chunks/DEDI7Ecm.js";import{P as ce,r as fe,a as pe,b as me}from"../chunks/B2Q1a1-H.js";import{i as ue}from"../chunks/CVzlFH44.js";import{B as be}from"../chunks/Dbqx2mXq.js";import{b as $}from"../chunks/CBY2biv-.js";import{s as z}from"../chunks/tB7QMF3U.js";var ge=g('<div class="state svelte-jqd85f">加载中…</div>'),_e=g('<div role="listitem" draggable="true"><span class="drag-handle svelte-jqd85f" title="拖拽排序">⋮⋮</span> <label class="toggle-wrap svelte-jqd85f"><input type="checkbox" class="svelte-jqd85f"/> <span class="toggle-slider svelte-jqd85f"></span></label> <span class="step-label svelte-jqd85f"> </span></div>'),he=g('<button type="button" class="btn-add svelte-jqd85f">+ 添加步骤</button>'),je=g('<div class="body svelte-jqd85f"><section class="pipeline-section svelte-jqd85f"><h3 class="section-title svelte-jqd85f">Pipeline(入库前)</h3> <p class="hint svelte-jqd85f">对每条新入库条目执行,顺序由上到下。</p> <div class="step-list svelte-jqd85f" role="list"></div> <!></section> <div class="save-row svelte-jqd85f"><button type="button" class="btn btn-primary svelte-jqd85f"> </button></div></div>'),qe=g('<div class="feed-wrap svelte-jqd85f"><div class="feed-col svelte-jqd85f"><div class="feed-header svelte-jqd85f"><!> <h2 class="svelte-jqd85f">Pipeline</h2> <p class="page-desc svelte-jqd85f">入库前处理(打标签、翻译),可调整顺序与开关。</p></div> <!></div></div>');function $e(C,F){te(F,!1);const J={qualityFilter:"质量过滤",tagger:"打标签",translator:"翻译"};let t=b([]),_=b([]),q=b(!0),p=b(!1),m=b(null);async function L(){r(q,!0);try{const e=await $("/api/pipeline");r(t,(e==null?void 0:e.steps)??[]),r(_,(e==null?void 0:e.availableIds)??[])}catch{r(t,[]),r(_,[])}finally{r(q,!1)}}async function M(){r(p,!0);try{const e=await $("/api/pipeline",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({steps:a(t)})});if(!(e!=null&&e.ok))throw new Error((e==null?void 0:e.message)??"保存失败");r(t,(e==null?void 0:e.steps)??a(t)),z("已保存","success")}catch(e){z("保存失败: "+(e instanceof Error?e.message:String(e)),"error")}finally{r(p,!1)}}function N(e){r(t,a(t).map((s,l)=>l===e?{...s,enabled:!s.enabled}:s))}function R(e){r(m,e)}function U(e){e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="move")}function G(e){if(a(m)==null)return;const s=[...a(t)],[l]=s.splice(a(m),1);s.splice(e,0,l),r(t,s),r(m,null)}function H(){const e=new Set(a(t).map(l=>l.id)),s=a(_).find(l=>!e.has(l));s&&r(t,[...a(t),{id:s,enabled:!1}])}se(L),ue();var y=qe();ve("jqd85f",e=>{le(()=>{ie.title=`Pipeline - ${ce}`})});var k=o(y),w=o(k),K=o(w);be(K,{}),B(4),i(w);var Q=c(w,2);{var V=e=>{var s=ge();u(e,s)},W=e=>{var s=je(),l=o(s),x=c(o(l),4);ne(x,5,()=>a(t),de,(d,n,j)=>{var v=_e();let D;var P=c(o(v),2),S=o(P);fe(S),B(2),i(P);var A=c(P,2),ae=o(A,!0);i(A),i(v),T(()=>{D=pe(v,1,"step-row svelte-jqd85f",null,D,{dragging:a(m)===j}),me(S,a(n).enabled),I(ae,J[a(n).id]??a(n).id)}),f("change",S,()=>N(j)),f("dragstart",v,()=>R(j)),f("dragover",v,U),f("drop",v,()=>G(j)),u(d,v)}),i(x);var X=c(x,2);{var Y=d=>{var n=he();T(()=>n.disabled=a(p)),f("click",n,H),u(d,n)},Z=oe(()=>a(_).some(d=>!a(t).some(n=>n.id===d)));O(X,d=>{a(Z)&&d(Y)})}i(l);var E=c(l,2),h=o(E),ee=o(h,!0);i(h),i(E),i(s),T(()=>{h.disabled=a(p),I(ee,a(p)?"保存中…":"保存")}),f("click",h,M),u(e,s)};O(Q,e=>{a(q)?e(V):e(W,-1)})}i(k),i(y),u(C,y),re()}export{$e as component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"
|
|
1
|
+
{"version":"1776164640133"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.toast.svelte-zemmny{position:fixed;top:1rem;left:50%;transform:translate(-50%);background:#111;color:#fff;padding:.625rem 1.25rem;border-radius:8px;font-size:.875rem;z-index:100;white-space:nowrap;pointer-events:none}.toast.error.svelte-zemmny{background:#c0392b}.toast.success.svelte-zemmny{background:#1a7f37}/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-outline-style:solid}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--spacing:.25rem;--radius-sm:.25rem;--radius-md:.375rem;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.fixed{position:fixed}.sticky{position:sticky}.start{inset-inline-start:var(--spacing)}.flex{display:flex}.inline{display:inline}.table{display:table}.flex-shrink{flex-shrink:1}.border-collapse{border-collapse:collapse}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.flex-wrap{flex-wrap:wrap}.border{border-style:var(--tw-border-style);border-width:1px}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}}:root{--primary:#5e6ad2;--primary-foreground:#fff;--color-primary:var(--primary);--color-primary-hover:#7c85e8;--color-primary-light:#5e6ad22e;--color-primary-foreground:var(--primary-foreground);--background:#f7f7f7;--foreground:#1f1f1f;--color-background:var(--background);--color-foreground:var(--foreground);--color-card:#fff;--color-card-elevated:#fcfcfc;--color-card-foreground:#2e2e2e;--color-muted:#0000000e;--color-muted-foreground:#737373;--color-muted-foreground-strong:#4a4a4a;--color-muted-foreground-soft:#787878;--color-accent:#0000000e;--color-accent-foreground:#2e2e2e;--color-border:#0000001c;--color-border-muted:#00000013;--color-hairline:#00000013;--color-input:#00000024;--color-destructive:#b12525;--color-destructive-foreground:#fff;--color-success:#207945;--color-success-foreground:#fff;--color-scrollbar-thumb:#00000038;--shadow-panel:0 12px 40px #00000014;--radius-sm:6px;--radius-md:8px;--radius-lg:10px;--shell-gutter:clamp(.5rem, 1.8vw, 1rem);--layout-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;--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;padding-inline:var(--shell-gutter)}.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:0;overflow:hidden;background:var(--color-card);box-shadow:var(--shadow-panel)}.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:0;overflow:hidden;background:var(--color-muted)}.nav-rail-link.svelte-12qhfyh{display:flex;align-items:center;justify-content:center;min-height:2.65rem;padding:.4rem .25rem;color:var(--color-muted-foreground-strong);text-decoration:none;border-radius:0;border-bottom:1px solid var(--color-border-muted);transition:color .15s ease,background .15s ease}.nav-rail-link.svelte-12qhfyh:last-child{border-bottom:none}.nav-rail-link.svelte-12qhfyh svg{flex-shrink:0}.nav-rail-link.svelte-12qhfyh:hover:not(.active){color:var(--color-foreground);background:var(--color-muted)}.nav-rail-link.active.svelte-12qhfyh{color:var(--color-primary);background:var(--color-primary-light)}.nav-rail-footer.svelte-12qhfyh{display:flex;flex-direction:column;align-items:center;gap:.5rem;padding:.5rem .2rem .75rem;border-top:1px solid var(--color-border-muted);background:transparent}.nav-rail-github.svelte-12qhfyh{display:inline-flex;align-items:center;justify-content:center;padding:.35rem;color:var(--color-muted-foreground);border-radius:6px;transition:color .15s ease,background .15s ease}.nav-rail-github.svelte-12qhfyh:hover{color:var(--color-foreground);background:var(--color-muted)}.nav-rail-github-icon.svelte-12qhfyh{width:18px;height:18px;display:block}.nav-rail-brand.svelte-12qhfyh{font-size:.62rem;font-weight:600;line-height:1.15;color:var(--color-muted-foreground-soft);writing-mode:vertical-rl;text-orientation:mixed;letter-spacing:.06em;max-height:6.5rem;overflow:hidden;text-overflow:ellipsis;cursor:default;-webkit-user-select:none;user-select:none}.shell.svelte-12qhfyh{box-sizing:border-box;width:100%;max-width:min(var(--content-max),100%);margin-left:auto;margin-right:auto;padding-inline:var(--shell-gutter)}.shell-frame.svelte-12qhfyh{box-sizing:border-box;display:flex;flex-direction:column;flex:1 1 auto;min-width:0;min-height:0;max-width:none;border:none;background:transparent}.shell-frame--with-feed-rail.svelte-12qhfyh{border-right:none}.layout-feed-rail.svelte-12qhfyh{box-sizing:border-box;flex:0 0 var(--home-feed-rail-width);width:var(--home-feed-rail-width);display:flex;flex-direction:column;min-height:0;align-self:stretch;border-left:1px solid var(--color-border-muted);background:transparent}.layout-feed-rail--home.svelte-12qhfyh{padding-top:calc(var(--main-padding-top) + .75rem)}.layout-feed-rail.svelte-12qhfyh .source-feed-panel-inline{flex:1 1 auto;min-height:0;width:100%;max-width:none;height:100%}@media(max-width:720px){.layout-app.svelte-12qhfyh{padding-inline:0}.layout-merged-cluster.svelte-12qhfyh{flex-direction:column;width:100%!important;border-radius:0;border-left:none;border-right:none;box-shadow:none}.layout-nav-rail.svelte-12qhfyh{flex:0 0 auto;width:100%;flex-direction:row;align-items:center;justify-content:space-between;border-right:none;border-bottom:1px solid var(--color-border-muted)}.nav-rail-links.svelte-12qhfyh{flex-direction:row;justify-content:center;padding:.4rem .5rem}.nav-rail-cluster.svelte-12qhfyh{flex-direction:row;max-width:none;width:auto}.nav-rail-link.svelte-12qhfyh{min-height:0;min-width:2.65rem;padding:.45rem .5rem;border-bottom:none;border-right:1px solid var(--color-border-muted)}.nav-rail-link.svelte-12qhfyh:last-child{border-right:none}.nav-rail-footer.svelte-12qhfyh{flex-direction:row;border-top:none;padding:.35rem .5rem;gap:.5rem}.nav-rail-brand.svelte-12qhfyh{writing-mode:horizontal-tb;max-height:none;font-size:.65rem;max-width:5rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.shell-frame--with-feed-rail.svelte-12qhfyh{border-right:none}.layout-feed-rail.svelte-12qhfyh{flex:1 1 auto;width:100%;max-width:none;max-height:min(42vh,22rem);min-height:12rem;border-left:none;border-top:1px solid var(--color-border-muted)}.layout-feed-rail--home.svelte-12qhfyh{padding-top:0}}.main.svelte-12qhfyh{flex:0 1 auto;min-width:0;display:flex;flex-direction:column;padding-top:var(--main-padding-top);padding-bottom:1.5rem}.main.main-fill.svelte-12qhfyh{flex:1;min-height:0;overflow:hidden}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
var Os=Object.defineProperty;var Xr=e=>{throw TypeError(e)};var Cs=(e,t,n)=>t in e?Os(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ot=(e,t,n)=>Cs(e,typeof t!="symbol"?t+"":t,n),Yo=(e,t,n)=>t.has(e)||Xr("Cannot "+n);var f=(e,t,n)=>(Yo(e,t,"read from private field"),n?n.call(e):t.get(e)),A=(e,t,n)=>t.has(e)?Xr("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),j=(e,t,n,r)=>(Yo(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),B=(e,t,n)=>(Yo(e,t,"access private method"),n);import{c as dt,a as z,f as at,p as Oi,t as Xe}from"./BK3WtZwv.js";import"./lk5LaiqA.js";import{o as Ci}from"./Bp63qm3L.js";import{aA as W,i as o,b4 as yt,a4 as qo,an as he,a5 as d,at as ie,f as X,aj as ne,au as se,aw as M,av as S,ax as C,aC as wn,aD as Ss,ay as zt,az as kt,U as st,u as te,z as G,aq as Jo}from"./BbWUOQ_m.js";import{f as As,o as bn,d as zs,a as Et,s as Lt,e as ks,r as Es}from"./DMWEh-Ek.js";import{s as Fs,a as Yr}from"./DjNLq3TF.js";import{i as xt}from"./Dt2CddFe.js";import{e as Zo,i as qr}from"./BQqoDzLx.js";import{e as xn,r as Ye,a as qe,c as Ts,s as Qo}from"./B2Q1a1-H.js";import{b as Je}from"./Dw782Tjs.js";import{i as Ds}from"./CVzlFH44.js";import{g as Jr}from"./D5GvRCv7.js";import{p as Go}from"./DcAshVxe.js";import{s as $o}from"./tB7QMF3U.js";import{R as Ms,P as Ls,h as Zr,S as Is,a as Ws,E as Ns,r as Hs,s as Rs,c as Bs}from"./CtijX1u3.js";import{a as ee}from"./CBY2biv-.js";import{e as Vs,s as _e,C as Eo,f as Ks,g as _n,u as Si,h as Us,i as js,j as Xs,w as Pn,k as Ys,l as Bt,m as U,n as Qe,F as qs,S as Qr,E as Js,o as Zs,T as Qs,p as Gs,q as Te,r as Gr,t as $s,v as wo,x as ta,y as ea,z as Ai,A as na,B as oa,G as ra,H as zi,J as Ze,I as Ce,D as $r,P as vo,a as ti,b as ei,c as ni,d as go}from"./mW5RwvnK.js";import{P as ia}from"./CWNeClHp.js";import{s as Se}from"./B-OsL1Ct.js";import{p as k,s as Nt,r as ln,l as Ae}from"./xtNWTdbD.js";function sa(e){return typeof e=="function"}function oi(e){return sa(e)?e():e}var pe,$e,tn,en,ve,Co,So,nn;class aa{constructor(t,n={box:"border-box"}){A(this,pe,{width:0,height:0});A(this,$e,!1);A(this,tn);A(this,en);A(this,ve);A(this,Co,W(()=>{var t;return(t=o(f(this,nn)))==null||t(),this.getSize().width}));A(this,So,W(()=>{var t;return(t=o(f(this,nn)))==null||t(),this.getSize().height}));A(this,nn,W(()=>{const t=oi(f(this,en));if(t)return As(n=>{if(!f(this,ve))return;const r=new(f(this,ve)).ResizeObserver(i=>{j(this,$e,!0);for(const s of i){const a=f(this,tn).box==="content-box"?s.contentBoxSize:s.borderBoxSize,l=Array.isArray(a)?a:[a];f(this,pe).width=l.reduce((h,m)=>Math.max(h,m.inlineSize),0),f(this,pe).height=l.reduce((h,m)=>Math.max(h,m.blockSize),0)}n()});return r.observe(t),()=>{j(this,$e,!1),r.disconnect()}})}));j(this,ve,n.window??Vs),j(this,tn,n),j(this,en,t),j(this,pe,{width:0,height:0})}calculateSize(){const t=oi(f(this,en));if(!t||!f(this,ve))return;const n=t.offsetWidth,r=t.offsetHeight;if(f(this,tn).box==="border-box")return{width:n,height:r};const i=f(this,ve).getComputedStyle(t),s=parseFloat(i.paddingLeft)+parseFloat(i.paddingRight),a=parseFloat(i.paddingTop)+parseFloat(i.paddingBottom),l=parseFloat(i.borderLeftWidth)+parseFloat(i.borderRightWidth),h=parseFloat(i.borderTopWidth)+parseFloat(i.borderBottomWidth),m=n-s-l,y=r-a-h;return{width:m,height:y}}getSize(){return f(this,$e)?f(this,pe):this.calculateSize()??f(this,pe)}get current(){var t;return(t=o(f(this,nn)))==null||t(),this.getSize()}get width(){return o(f(this,Co))}get height(){return o(f(this,So))}}pe=new WeakMap,$e=new WeakMap,tn=new WeakMap,en=new WeakMap,ve=new WeakMap,Co=new WeakMap,So=new WeakMap,nn=new WeakMap;const la=["top","right","bottom","left"],Pe=Math.min,It=Math.max,bo=Math.round,mo=Math.floor,Zt=e=>({x:e,y:e}),ca={left:"right",right:"left",bottom:"top",top:"bottom"};function rr(e,t,n){return It(e,Pe(t,n))}function oe(e,t){return typeof e=="function"?e(t):e}function re(e){return e.split("-")[0]}function cn(e){return e.split("-")[1]}function yr(e){return e==="x"?"y":"x"}function wr(e){return e==="y"?"height":"width"}function Jt(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function br(e){return yr(Jt(e))}function ua(e,t,n){n===void 0&&(n=!1);const r=cn(e),i=br(e),s=wr(i);let a=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=xo(a)),[a,xo(a)]}function da(e){const t=xo(e);return[ir(e),t,ir(t)]}function ir(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const ri=["left","right"],ii=["right","left"],fa=["top","bottom"],ha=["bottom","top"];function pa(e,t,n){switch(e){case"top":case"bottom":return n?t?ii:ri:t?ri:ii;case"left":case"right":return t?fa:ha;default:return[]}}function va(e,t,n,r){const i=cn(e);let s=pa(re(e),n==="start",r);return i&&(s=s.map(a=>a+"-"+i),t&&(s=s.concat(s.map(ir)))),s}function xo(e){const t=re(e);return ca[t]+e.slice(t.length)}function ga(e){return{top:0,right:0,bottom:0,left:0,...e}}function ki(e){return typeof e!="number"?ga(e):{top:e,right:e,bottom:e,left:e}}function _o(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function si(e,t,n){let{reference:r,floating:i}=e;const s=Jt(t),a=br(t),l=wr(a),h=re(t),m=s==="y",y=r.x+r.width/2-i.width/2,v=r.y+r.height/2-i.height/2,g=r[l]/2-i[l]/2;let p;switch(h){case"top":p={x:y,y:r.y-i.height};break;case"bottom":p={x:y,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:v};break;case"left":p={x:r.x-i.width,y:v};break;default:p={x:r.x,y:r.y}}switch(cn(t)){case"start":p[a]-=g*(n&&m?-1:1);break;case"end":p[a]+=g*(n&&m?-1:1);break}return p}async function ma(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:s,rects:a,elements:l,strategy:h}=e,{boundary:m="clippingAncestors",rootBoundary:y="viewport",elementContext:v="floating",altBoundary:g=!1,padding:p=0}=oe(t,e),w=ki(p),O=l[g?v==="floating"?"reference":"floating":v],x=_o(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(O)))==null||n?O:O.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:m,rootBoundary:y,strategy:h})),D=v==="floating"?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,T=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),E=await(s.isElement==null?void 0:s.isElement(T))?await(s.getScale==null?void 0:s.getScale(T))||{x:1,y:1}:{x:1,y:1},L=_o(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:D,offsetParent:T,strategy:h}):D);return{top:(x.top-L.top+w.top)/E.y,bottom:(L.bottom-x.bottom+w.bottom)/E.y,left:(x.left-L.left+w.left)/E.x,right:(L.right-x.right+w.right)/E.x}}const ya=50,wa=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:s=[],platform:a}=n,l=a.detectOverflow?a:{...a,detectOverflow:ma},h=await(a.isRTL==null?void 0:a.isRTL(t));let m=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:y,y:v}=si(m,r,h),g=r,p=0;const w={};for(let P=0;P<s.length;P++){const O=s[P];if(!O)continue;const{name:x,fn:D}=O,{x:T,y:E,data:L,reset:F}=await D({x:y,y:v,initialPlacement:r,placement:g,strategy:i,middlewareData:w,rects:m,platform:l,elements:{reference:e,floating:t}});y=T??y,v=E??v,w[x]={...w[x],...L},F&&p<ya&&(p++,typeof F=="object"&&(F.placement&&(g=F.placement),F.rects&&(m=F.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:i}):F.rects),{x:y,y:v}=si(m,g,h)),P=-1)}return{x:y,y:v,placement:g,strategy:i,middlewareData:w}},ba=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:s,platform:a,elements:l,middlewareData:h}=t,{element:m,padding:y=0}=oe(e,t)||{};if(m==null)return{};const v=ki(y),g={x:n,y:r},p=br(i),w=wr(p),P=await a.getDimensions(m),O=p==="y",x=O?"top":"left",D=O?"bottom":"right",T=O?"clientHeight":"clientWidth",E=s.reference[w]+s.reference[p]-g[p]-s.floating[w],L=g[p]-s.reference[p],F=await(a.getOffsetParent==null?void 0:a.getOffsetParent(m));let Q=F?F[T]:0;(!Q||!await(a.isElement==null?void 0:a.isElement(F)))&&(Q=l.floating[T]||s.floating[w]);const ft=E/2-L/2,R=Q/2-P[w]/2-1,$=Pe(v[x],R),et=Pe(v[D],R),tt=$,nt=Q-P[w]-et,Y=Q/2-P[w]/2+ft,ht=rr(tt,Y,nt),rt=!h.arrow&&cn(i)!=null&&Y!==ht&&s.reference[w]/2-(Y<tt?$:et)-P[w]/2<0,J=rt?Y<tt?Y-tt:Y-nt:0;return{[p]:g[p]+J,data:{[p]:ht,centerOffset:Y-ht-J,...rt&&{alignmentOffset:J}},reset:rt}}}),xa=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:s,rects:a,initialPlacement:l,platform:h,elements:m}=t,{mainAxis:y=!0,crossAxis:v=!0,fallbackPlacements:g,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:P=!0,...O}=oe(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const x=re(i),D=Jt(l),T=re(l)===l,E=await(h.isRTL==null?void 0:h.isRTL(m.floating)),L=g||(T||!P?[xo(l)]:da(l)),F=w!=="none";!g&&F&&L.push(...va(l,P,w,E));const Q=[l,...L],ft=await h.detectOverflow(t,O),R=[];let $=((r=s.flip)==null?void 0:r.overflows)||[];if(y&&R.push(ft[x]),v){const Y=ua(i,a,E);R.push(ft[Y[0]],ft[Y[1]])}if($=[...$,{placement:i,overflows:R}],!R.every(Y=>Y<=0)){var et,tt;const Y=(((et=s.flip)==null?void 0:et.index)||0)+1,ht=Q[Y];if(ht&&(!(v==="alignment"?D!==Jt(ht):!1)||$.every(V=>Jt(V.placement)===D?V.overflows[0]>0:!0)))return{data:{index:Y,overflows:$},reset:{placement:ht}};let rt=(tt=$.filter(J=>J.overflows[0]<=0).sort((J,V)=>J.overflows[1]-V.overflows[1])[0])==null?void 0:tt.placement;if(!rt)switch(p){case"bestFit":{var nt;const J=(nt=$.filter(V=>{if(F){const Z=Jt(V.placement);return Z===D||Z==="y"}return!0}).map(V=>[V.placement,V.overflows.filter(Z=>Z>0).reduce((Z,it)=>Z+it,0)]).sort((V,Z)=>V[1]-Z[1])[0])==null?void 0:nt[0];J&&(rt=J);break}case"initialPlacement":rt=l;break}if(i!==rt)return{reset:{placement:rt}}}return{}}}};function ai(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function li(e){return la.some(t=>e[t]>=0)}const _a=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:i="referenceHidden",...s}=oe(e,t);switch(i){case"referenceHidden":{const a=await r.detectOverflow(t,{...s,elementContext:"reference"}),l=ai(a,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:li(l)}}}case"escaped":{const a=await r.detectOverflow(t,{...s,altBoundary:!0}),l=ai(a,n.floating);return{data:{escapedOffsets:l,escaped:li(l)}}}default:return{}}}}},Ei=new Set(["left","top"]);async function Pa(e,t){const{placement:n,platform:r,elements:i}=e,s=await(r.isRTL==null?void 0:r.isRTL(i.floating)),a=re(n),l=cn(n),h=Jt(n)==="y",m=Ei.has(a)?-1:1,y=s&&h?-1:1,v=oe(t,e);let{mainAxis:g,crossAxis:p,alignmentAxis:w}=typeof v=="number"?{mainAxis:v,crossAxis:0,alignmentAxis:null}:{mainAxis:v.mainAxis||0,crossAxis:v.crossAxis||0,alignmentAxis:v.alignmentAxis};return l&&typeof w=="number"&&(p=l==="end"?w*-1:w),h?{x:p*y,y:g*m}:{x:g*m,y:p*y}}const Oa=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:s,placement:a,middlewareData:l}=t,h=await Pa(t,e);return a===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:i+h.x,y:s+h.y,data:{...h,placement:a}}}}},Ca=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i,platform:s}=t,{mainAxis:a=!0,crossAxis:l=!1,limiter:h={fn:x=>{let{x:D,y:T}=x;return{x:D,y:T}}},...m}=oe(e,t),y={x:n,y:r},v=await s.detectOverflow(t,m),g=Jt(re(i)),p=yr(g);let w=y[p],P=y[g];if(a){const x=p==="y"?"top":"left",D=p==="y"?"bottom":"right",T=w+v[x],E=w-v[D];w=rr(T,w,E)}if(l){const x=g==="y"?"top":"left",D=g==="y"?"bottom":"right",T=P+v[x],E=P-v[D];P=rr(T,P,E)}const O=h.fn({...t,[p]:w,[g]:P});return{...O,data:{x:O.x-n,y:O.y-r,enabled:{[p]:a,[g]:l}}}}}},Sa=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:s,middlewareData:a}=t,{offset:l=0,mainAxis:h=!0,crossAxis:m=!0}=oe(e,t),y={x:n,y:r},v=Jt(i),g=yr(v);let p=y[g],w=y[v];const P=oe(l,t),O=typeof P=="number"?{mainAxis:P,crossAxis:0}:{mainAxis:0,crossAxis:0,...P};if(h){const T=g==="y"?"height":"width",E=s.reference[g]-s.floating[T]+O.mainAxis,L=s.reference[g]+s.reference[T]-O.mainAxis;p<E?p=E:p>L&&(p=L)}if(m){var x,D;const T=g==="y"?"width":"height",E=Ei.has(re(i)),L=s.reference[v]-s.floating[T]+(E&&((x=a.offset)==null?void 0:x[v])||0)+(E?0:O.crossAxis),F=s.reference[v]+s.reference[T]+(E?0:((D=a.offset)==null?void 0:D[v])||0)-(E?O.crossAxis:0);w<L?w=L:w>F&&(w=F)}return{[g]:p,[v]:w}}}},Aa=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:s,platform:a,elements:l}=t,{apply:h=()=>{},...m}=oe(e,t),y=await a.detectOverflow(t,m),v=re(i),g=cn(i),p=Jt(i)==="y",{width:w,height:P}=s.floating;let O,x;v==="top"||v==="bottom"?(O=v,x=g===(await(a.isRTL==null?void 0:a.isRTL(l.floating))?"start":"end")?"left":"right"):(x=v,O=g==="end"?"top":"bottom");const D=P-y.top-y.bottom,T=w-y.left-y.right,E=Pe(P-y[O],D),L=Pe(w-y[x],T),F=!t.middlewareData.shift;let Q=E,ft=L;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(ft=T),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(Q=D),F&&!g){const $=It(y.left,0),et=It(y.right,0),tt=It(y.top,0),nt=It(y.bottom,0);p?ft=w-2*($!==0||et!==0?$+et:It(y.left,y.right)):Q=P-2*(tt!==0||nt!==0?tt+nt:It(y.top,y.bottom))}await h({...t,availableWidth:ft,availableHeight:Q});const R=await a.getDimensions(l.floating);return w!==R.width||P!==R.height?{reset:{rects:!0}}:{}}}};function Fo(){return typeof window<"u"}function un(e){return Fi(e)?(e.nodeName||"").toLowerCase():"#document"}function Wt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Qt(e){var t;return(t=(Fi(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Fi(e){return Fo()?e instanceof Node||e instanceof Wt(e).Node:!1}function Vt(e){return Fo()?e instanceof Element||e instanceof Wt(e).Element:!1}function ae(e){return Fo()?e instanceof HTMLElement||e instanceof Wt(e).HTMLElement:!1}function ci(e){return!Fo()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Wt(e).ShadowRoot}function oo(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Kt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!=="inline"&&i!=="contents"}function za(e){return/^(table|td|th)$/.test(un(e))}function To(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const ka=/transform|translate|scale|rotate|perspective|filter/,Ea=/paint|layout|strict|content/,Ee=e=>!!e&&e!=="none";let tr;function xr(e){const t=Vt(e)?Kt(e):e;return Ee(t.transform)||Ee(t.translate)||Ee(t.scale)||Ee(t.rotate)||Ee(t.perspective)||!_r()&&(Ee(t.backdropFilter)||Ee(t.filter))||ka.test(t.willChange||"")||Ea.test(t.contain||"")}function Fa(e){let t=Oe(e);for(;ae(t)&&!an(t);){if(xr(t))return t;if(To(t))return null;t=Oe(t)}return null}function _r(){return tr==null&&(tr=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),tr}function an(e){return/^(html|body|#document)$/.test(un(e))}function Kt(e){return Wt(e).getComputedStyle(e)}function Do(e){return Vt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Oe(e){if(un(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ci(e)&&e.host||Qt(e);return ci(t)?t.host:t}function Ti(e){const t=Oe(e);return an(t)?e.ownerDocument?e.ownerDocument.body:e.body:ae(t)&&oo(t)?t:Ti(t)}function On(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=Ti(e),s=i===((r=e.ownerDocument)==null?void 0:r.body),a=Wt(i);if(s){const l=sr(a);return t.concat(a,a.visualViewport||[],oo(i)?i:[],l&&n?On(l):[])}else return t.concat(i,On(i,[],n))}function sr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Di(e){const t=Kt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=ae(e),s=i?e.offsetWidth:n,a=i?e.offsetHeight:r,l=bo(n)!==s||bo(r)!==a;return l&&(n=s,r=a),{width:n,height:r,$:l}}function Pr(e){return Vt(e)?e:e.contextElement}function Ge(e){const t=Pr(e);if(!ae(t))return Zt(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:s}=Di(t);let a=(s?bo(n.width):n.width)/r,l=(s?bo(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const Ta=Zt(0);function Mi(e){const t=Wt(e);return!_r()||!t.visualViewport?Ta:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Da(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Wt(e)?!1:t}function Ie(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),s=Pr(e);let a=Zt(1);t&&(r?Vt(r)&&(a=Ge(r)):a=Ge(e));const l=Da(s,n,r)?Mi(s):Zt(0);let h=(i.left+l.x)/a.x,m=(i.top+l.y)/a.y,y=i.width/a.x,v=i.height/a.y;if(s){const g=Wt(s),p=r&&Vt(r)?Wt(r):r;let w=g,P=sr(w);for(;P&&r&&p!==w;){const O=Ge(P),x=P.getBoundingClientRect(),D=Kt(P),T=x.left+(P.clientLeft+parseFloat(D.paddingLeft))*O.x,E=x.top+(P.clientTop+parseFloat(D.paddingTop))*O.y;h*=O.x,m*=O.y,y*=O.x,v*=O.y,h+=T,m+=E,w=Wt(P),P=sr(w)}}return _o({width:y,height:v,x:h,y:m})}function Mo(e,t){const n=Do(e).scrollLeft;return t?t.left+n:Ie(Qt(e)).left+n}function Li(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Mo(e,n),i=n.top+t.scrollTop;return{x:r,y:i}}function Ma(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const s=i==="fixed",a=Qt(r),l=t?To(t.floating):!1;if(r===a||l&&s)return n;let h={scrollLeft:0,scrollTop:0},m=Zt(1);const y=Zt(0),v=ae(r);if((v||!v&&!s)&&((un(r)!=="body"||oo(a))&&(h=Do(r)),v)){const p=Ie(r);m=Ge(r),y.x=p.x+r.clientLeft,y.y=p.y+r.clientTop}const g=a&&!v&&!s?Li(a,h):Zt(0);return{width:n.width*m.x,height:n.height*m.y,x:n.x*m.x-h.scrollLeft*m.x+y.x+g.x,y:n.y*m.y-h.scrollTop*m.y+y.y+g.y}}function La(e){return Array.from(e.getClientRects())}function Ia(e){const t=Qt(e),n=Do(e),r=e.ownerDocument.body,i=It(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=It(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Mo(e);const l=-n.scrollTop;return Kt(r).direction==="rtl"&&(a+=It(t.clientWidth,r.clientWidth)-i),{width:i,height:s,x:a,y:l}}const ui=25;function Wa(e,t){const n=Wt(e),r=Qt(e),i=n.visualViewport;let s=r.clientWidth,a=r.clientHeight,l=0,h=0;if(i){s=i.width,a=i.height;const y=_r();(!y||y&&t==="fixed")&&(l=i.offsetLeft,h=i.offsetTop)}const m=Mo(r);if(m<=0){const y=r.ownerDocument,v=y.body,g=getComputedStyle(v),p=y.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,w=Math.abs(r.clientWidth-v.clientWidth-p);w<=ui&&(s-=w)}else m<=ui&&(s+=m);return{width:s,height:a,x:l,y:h}}function Na(e,t){const n=Ie(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,s=ae(e)?Ge(e):Zt(1),a=e.clientWidth*s.x,l=e.clientHeight*s.y,h=i*s.x,m=r*s.y;return{width:a,height:l,x:h,y:m}}function di(e,t,n){let r;if(t==="viewport")r=Wa(e,n);else if(t==="document")r=Ia(Qt(e));else if(Vt(t))r=Na(t,n);else{const i=Mi(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return _o(r)}function Ii(e,t){const n=Oe(e);return n===t||!Vt(n)||an(n)?!1:Kt(n).position==="fixed"||Ii(n,t)}function Ha(e,t){const n=t.get(e);if(n)return n;let r=On(e,[],!1).filter(l=>Vt(l)&&un(l)!=="body"),i=null;const s=Kt(e).position==="fixed";let a=s?Oe(e):e;for(;Vt(a)&&!an(a);){const l=Kt(a),h=xr(a);!h&&l.position==="fixed"&&(i=null),(s?!h&&!i:!h&&l.position==="static"&&!!i&&(i.position==="absolute"||i.position==="fixed")||oo(a)&&!h&&Ii(e,a))?r=r.filter(y=>y!==a):i=l,a=Oe(a)}return t.set(e,r),r}function Ra(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const a=[...n==="clippingAncestors"?To(t)?[]:Ha(t,this._c):[].concat(n),r],l=di(t,a[0],i);let h=l.top,m=l.right,y=l.bottom,v=l.left;for(let g=1;g<a.length;g++){const p=di(t,a[g],i);h=It(p.top,h),m=Pe(p.right,m),y=Pe(p.bottom,y),v=It(p.left,v)}return{width:m-v,height:y-h,x:v,y:h}}function Ba(e){const{width:t,height:n}=Di(e);return{width:t,height:n}}function Va(e,t,n){const r=ae(t),i=Qt(t),s=n==="fixed",a=Ie(e,!0,s,t);let l={scrollLeft:0,scrollTop:0};const h=Zt(0);function m(){h.x=Mo(i)}if(r||!r&&!s)if((un(t)!=="body"||oo(i))&&(l=Do(t)),r){const p=Ie(t,!0,s,t);h.x=p.x+t.clientLeft,h.y=p.y+t.clientTop}else i&&m();s&&!r&&i&&m();const y=i&&!r&&!s?Li(i,l):Zt(0),v=a.left+l.scrollLeft-h.x-y.x,g=a.top+l.scrollTop-h.y-y.y;return{x:v,y:g,width:a.width,height:a.height}}function er(e){return Kt(e).position==="static"}function fi(e,t){if(!ae(e)||Kt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Qt(e)===n&&(n=n.ownerDocument.body),n}function Wi(e,t){const n=Wt(e);if(To(e))return n;if(!ae(e)){let i=Oe(e);for(;i&&!an(i);){if(Vt(i)&&!er(i))return i;i=Oe(i)}return n}let r=fi(e,t);for(;r&&za(r)&&er(r);)r=fi(r,t);return r&&an(r)&&er(r)&&!xr(r)?n:r||Fa(e)||n}const Ka=async function(e){const t=this.getOffsetParent||Wi,n=this.getDimensions,r=await n(e.floating);return{reference:Va(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Ua(e){return Kt(e).direction==="rtl"}const ja={convertOffsetParentRelativeRectToViewportRelativeRect:Ma,getDocumentElement:Qt,getClippingRect:Ra,getOffsetParent:Wi,getElementRects:Ka,getClientRects:La,getDimensions:Ba,getScale:Ge,isElement:Vt,isRTL:Ua};function Ni(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Xa(e,t){let n=null,r;const i=Qt(e);function s(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function a(l,h){l===void 0&&(l=!1),h===void 0&&(h=1),s();const m=e.getBoundingClientRect(),{left:y,top:v,width:g,height:p}=m;if(l||t(),!g||!p)return;const w=mo(v),P=mo(i.clientWidth-(y+g)),O=mo(i.clientHeight-(v+p)),x=mo(y),T={rootMargin:-w+"px "+-P+"px "+-O+"px "+-x+"px",threshold:It(0,Pe(1,h))||1};let E=!0;function L(F){const Q=F[0].intersectionRatio;if(Q!==h){if(!E)return a();Q?a(!1,Q):r=setTimeout(()=>{a(!1,1e-7)},1e3)}Q===1&&!Ni(m,e.getBoundingClientRect())&&a(),E=!1}try{n=new IntersectionObserver(L,{...T,root:i.ownerDocument})}catch{n=new IntersectionObserver(L,T)}n.observe(e)}return a(!0),s}function Ya(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:h=!1}=r,m=Pr(e),y=i||s?[...m?On(m):[],...t?On(t):[]]:[];y.forEach(x=>{i&&x.addEventListener("scroll",n,{passive:!0}),s&&x.addEventListener("resize",n)});const v=m&&l?Xa(m,n):null;let g=-1,p=null;a&&(p=new ResizeObserver(x=>{let[D]=x;D&&D.target===m&&p&&t&&(p.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var T;(T=p)==null||T.observe(t)})),n()}),m&&!h&&p.observe(m),t&&p.observe(t));let w,P=h?Ie(e):null;h&&O();function O(){const x=Ie(e);P&&!Ni(P,x)&&n(),P=x,w=requestAnimationFrame(O)}return n(),()=>{var x;y.forEach(D=>{i&&D.removeEventListener("scroll",n),s&&D.removeEventListener("resize",n)}),v==null||v(),(x=p)==null||x.disconnect(),p=null,h&&cancelAnimationFrame(w)}}const qa=Oa,Ja=Ca,Za=xa,Qa=Aa,Ga=_a,$a=ba,tl=Sa,el=(e,t,n)=>{const r=new Map,i={platform:ja,...n},s={...i.platform,_c:r};return wa(e,t,{...i,platform:s})};function Fe(e){return typeof e=="function"?e():e}function Hi(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function hi(e,t){const n=Hi(e);return Math.round(t*n)/n}function pi(e){return{[`--bits-${e}-content-transform-origin`]:"var(--bits-floating-transform-origin)",[`--bits-${e}-content-available-width`]:"var(--bits-floating-available-width)",[`--bits-${e}-content-available-height`]:"var(--bits-floating-available-height)",[`--bits-${e}-anchor-width`]:"var(--bits-floating-anchor-width)",[`--bits-${e}-anchor-height`]:"var(--bits-floating-anchor-height)"}}function nl(e){const t=e.whileElementsMounted,n=W(()=>Fe(e.open)??!0),r=W(()=>Fe(e.middleware)),i=W(()=>Fe(e.transform)??!0),s=W(()=>Fe(e.placement)??"bottom"),a=W(()=>Fe(e.strategy)??"absolute"),l=W(()=>Fe(e.sideOffset)??0),h=W(()=>Fe(e.alignOffset)??0),m=e.reference;let y=yt(0),v=yt(0);const g=_e(null);let p=yt(qo(o(a))),w=yt(qo(o(s))),P=yt(qo({})),O=yt(!1),x=!1,D=0;const T=W(()=>{const $=g.current?hi(g.current,o(y)):o(y),et=g.current?hi(g.current,o(v)):o(v);return o(i)?{position:o(p),left:"0",top:"0",transform:`translate(${$}px, ${et}px)`,...g.current&&Hi(g.current)>=1.5&&{willChange:"transform"}}:{position:o(p),left:`${$}px`,top:`${et}px`}});let E;function L(){if(m.current===null||g.current===null)return;const $=m.current,et=g.current,tt=++D;el($,et,{middleware:o(r),placement:o(s),strategy:o(a)}).then(nt=>{if(tt!==D||m.current!==$||g.current!==et)return;if(ol($)){d(P,{...o(P),hide:{...o(P).hide,referenceHidden:!0}},!0);return}if(!o(n)&&o(y)!==0&&o(v)!==0){const ht=Math.max(Math.abs(o(l)),Math.abs(o(h)),15);if(nt.x<=ht&&nt.y<=ht)return}d(y,nt.x,!0),d(v,nt.y,!0),d(p,nt.strategy,!0),d(w,nt.placement,!0),d(P,nt.middlewareData,!0),d(O,!0)})}function F(){typeof E=="function"&&(E(),E=void 0),D++}function Q(){if(F(),t===void 0){L();return}o(n)&&(m.current===null||g.current===null||(E=t(m.current,g.current,L)))}function ft(){!o(n)&&g.current===null&&d(O,!1)}function R(){return[o(r),o(s),o(a),o(l),o(h),o(n)]}return he(()=>{t===void 0&&o(n)&&L()}),he(Q),he(()=>{if(t!==void 0){if(R(),!o(n)){x=!1;return}if(!o(O)){x=!1;return}if(!x){x=!0;return}L()}}),he(ft),he(()=>F),{floating:g,reference:m,get strategy(){return o(p)},get placement(){return o(w)},get middlewareData(){return o(P)},get isPositioned(){return o(O)},get floatingStyles(){return o(T)},get update(){return L}}}function ol(e){return e instanceof Element?!e.isConnected||e instanceof HTMLElement&&e.hidden?!0:e.getClientRects().length===0:!1}const rl={top:"bottom",right:"left",bottom:"top",left:"right"},Or=new Eo("Floating.Root"),vi=new Eo("Floating.Content"),Cr=new Eo("Floating.Root");class Po{constructor(){ot(this,"anchorNode",_e(null));ot(this,"customAnchorNode",_e(null));ot(this,"triggerNode",_e(null));he(()=>{this.customAnchorNode.current?typeof this.customAnchorNode.current=="string"?this.anchorNode.current=document.querySelector(this.customAnchorNode.current):this.anchorNode.current=this.customAnchorNode.current:this.anchorNode.current=this.triggerNode.current})}static create(t=!1){return t?Cr.set(new Po):Or.set(new Po)}}var Cn,Sn,An,Ao,zn,zo,kn,En,Fn,Tn,Dn,Mn,Ln,In,Wn,Nn,Hn,Rn,Bn,Vn,Kn,Un,jn,Xn;const ko=class ko{constructor(t,n){ot(this,"opts");ot(this,"root");ot(this,"contentRef",_e(null));ot(this,"wrapperRef",_e(null));ot(this,"arrowRef",_e(null));ot(this,"contentAttachment",_n(this.contentRef));ot(this,"wrapperAttachment",_n(this.wrapperRef));ot(this,"arrowAttachment",_n(this.arrowRef));ot(this,"arrowId",_e(Si()));A(this,Cn,W(()=>{if(typeof this.opts.style=="string")return Us(this.opts.style);if(!this.opts.style)return{}}));A(this,Sn);A(this,An,new aa(()=>this.arrowRef.current??void 0));A(this,Ao,W(()=>{var t;return((t=f(this,An))==null?void 0:t.width)??0}));A(this,zn,W(()=>{var t;return((t=f(this,An))==null?void 0:t.height)??0}));A(this,zo,W(()=>{var t;return((t=this.opts.side)==null?void 0:t.current)+(this.opts.align.current!=="center"?`-${this.opts.align.current}`:"")}));A(this,kn,W(()=>Array.isArray(this.opts.collisionBoundary.current)?this.opts.collisionBoundary.current:[this.opts.collisionBoundary.current]));A(this,En,W(()=>o(f(this,kn)).length>0));A(this,Fn,W(()=>({padding:this.opts.collisionPadding.current,boundary:o(f(this,kn)).filter(js),altBoundary:this.hasExplicitBoundaries})));A(this,Tn,yt(void 0));A(this,Dn,yt(void 0));A(this,Mn,yt(void 0));A(this,Ln,yt(void 0));A(this,In,W(()=>[qa({mainAxis:this.opts.sideOffset.current+o(f(this,zn)),alignmentAxis:this.opts.alignOffset.current}),this.opts.avoidCollisions.current&&Ja({mainAxis:!0,crossAxis:!1,limiter:this.opts.sticky.current==="partial"?tl():void 0,...this.detectOverflowOptions}),this.opts.avoidCollisions.current&&Za({...this.detectOverflowOptions}),Qa({...this.detectOverflowOptions,apply:({rects:t,availableWidth:n,availableHeight:r})=>{const{width:i,height:s}=t.reference;d(f(this,Tn),n,!0),d(f(this,Dn),r,!0),d(f(this,Mn),i,!0),d(f(this,Ln),s,!0)}}),this.arrowRef.current&&$a({element:this.arrowRef.current,padding:this.opts.arrowPadding.current}),il({arrowWidth:o(f(this,Ao)),arrowHeight:o(f(this,zn))}),this.opts.hideWhenDetached.current&&Ga({strategy:"referenceHidden",...this.detectOverflowOptions})].filter(Boolean)));ot(this,"floating");A(this,Wn,W(()=>sl(this.floating.placement)));A(this,Nn,W(()=>al(this.floating.placement)));A(this,Hn,W(()=>{var t;return((t=this.floating.middlewareData.arrow)==null?void 0:t.x)??0}));A(this,Rn,W(()=>{var t;return((t=this.floating.middlewareData.arrow)==null?void 0:t.y)??0}));A(this,Bn,W(()=>{var t;return((t=this.floating.middlewareData.arrow)==null?void 0:t.centerOffset)!==0}));A(this,Vn,yt());A(this,Kn,W(()=>rl[this.placedSide]));A(this,Un,W(()=>{var t,n,r;return{id:this.opts.wrapperId.current,"data-bits-floating-content-wrapper":"",style:{...this.floating.floatingStyles,transform:this.floating.isPositioned?this.floating.floatingStyles.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:this.contentZIndex,"--bits-floating-transform-origin":`${(t=this.floating.middlewareData.transformOrigin)==null?void 0:t.x} ${(n=this.floating.middlewareData.transformOrigin)==null?void 0:n.y}`,"--bits-floating-available-width":`${o(f(this,Tn))}px`,"--bits-floating-available-height":`${o(f(this,Dn))}px`,"--bits-floating-anchor-width":`${o(f(this,Mn))}px`,"--bits-floating-anchor-height":`${o(f(this,Ln))}px`,...((r=this.floating.middlewareData.hide)==null?void 0:r.referenceHidden)&&{visibility:"hidden","pointer-events":"none"},...o(f(this,Cn))},dir:this.opts.dir.current,...this.wrapperAttachment}}));A(this,jn,W(()=>({"data-side":this.placedSide,"data-align":this.placedAlign,style:Xs({...o(f(this,Cn))}),...this.contentAttachment})));A(this,Xn,W(()=>({position:"absolute",left:this.arrowX?`${this.arrowX}px`:void 0,top:this.arrowY?`${this.arrowY}px`:void 0,[this.arrowBaseSide]:0,"transform-origin":{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[this.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[this.placedSide],visibility:this.cannotCenterArrow?"hidden":void 0})));this.opts=t,this.root=n,j(this,Sn,t.updatePositionStrategy),t.customAnchor&&(this.root.customAnchorNode.current=t.customAnchor.current),Pn(()=>t.customAnchor.current,r=>{this.root.customAnchorNode.current=r}),this.floating=nl({strategy:()=>this.opts.strategy.current,placement:()=>o(f(this,zo)),middleware:()=>this.middleware,reference:this.root.anchorNode,whileElementsMounted:(...r)=>{var s;return Ya(...r,{animationFrame:((s=f(this,Sn))==null?void 0:s.current)==="always"})},open:()=>this.opts.enabled.current,sideOffset:()=>this.opts.sideOffset.current,alignOffset:()=>this.opts.alignOffset.current}),he(()=>{var r;this.floating.isPositioned&&((r=this.opts.onPlaced)==null||r.current())}),Pn(()=>this.contentRef.current,r=>{if(!r||!this.opts.enabled.current)return;const i=Ys(r),s=i.requestAnimationFrame(()=>{if(this.contentRef.current!==r||!this.opts.enabled.current)return;const a=i.getComputedStyle(r).zIndex;a!==this.contentZIndex&&(this.contentZIndex=a)});return()=>{i.cancelAnimationFrame(s)}}),he(()=>{this.floating.floating.current=this.wrapperRef.current})}static create(t,n=!1){return n?vi.set(new ko(t,Cr.get())):vi.set(new ko(t,Or.get()))}get hasExplicitBoundaries(){return o(f(this,En))}set hasExplicitBoundaries(t){d(f(this,En),t)}get detectOverflowOptions(){return o(f(this,Fn))}set detectOverflowOptions(t){d(f(this,Fn),t)}get middleware(){return o(f(this,In))}set middleware(t){d(f(this,In),t)}get placedSide(){return o(f(this,Wn))}set placedSide(t){d(f(this,Wn),t)}get placedAlign(){return o(f(this,Nn))}set placedAlign(t){d(f(this,Nn),t)}get arrowX(){return o(f(this,Hn))}set arrowX(t){d(f(this,Hn),t)}get arrowY(){return o(f(this,Rn))}set arrowY(t){d(f(this,Rn),t)}get cannotCenterArrow(){return o(f(this,Bn))}set cannotCenterArrow(t){d(f(this,Bn),t)}get contentZIndex(){return o(f(this,Vn))}set contentZIndex(t){d(f(this,Vn),t,!0)}get arrowBaseSide(){return o(f(this,Kn))}set arrowBaseSide(t){d(f(this,Kn),t)}get wrapperProps(){return o(f(this,Un))}set wrapperProps(t){d(f(this,Un),t)}get props(){return o(f(this,jn))}set props(t){d(f(this,jn),t)}get arrowStyle(){return o(f(this,Xn))}set arrowStyle(t){d(f(this,Xn),t)}};Cn=new WeakMap,Sn=new WeakMap,An=new WeakMap,Ao=new WeakMap,zn=new WeakMap,zo=new WeakMap,kn=new WeakMap,En=new WeakMap,Fn=new WeakMap,Tn=new WeakMap,Dn=new WeakMap,Mn=new WeakMap,Ln=new WeakMap,In=new WeakMap,Wn=new WeakMap,Nn=new WeakMap,Hn=new WeakMap,Rn=new WeakMap,Bn=new WeakMap,Vn=new WeakMap,Kn=new WeakMap,Un=new WeakMap,jn=new WeakMap,Xn=new WeakMap;let ar=ko;class Oo{constructor(t,n){ot(this,"opts");ot(this,"root");this.opts=t,this.root=n,t.virtualEl&&t.virtualEl.current?n.triggerNode=Ks(t.virtualEl.current):n.triggerNode=t.ref}static create(t,n=!1){return n?new Oo(t,Cr.get()):new Oo(t,Or.get())}}function il(e){return{name:"transformOrigin",options:e,fn(t){var O,x,D;const{placement:n,rects:r,middlewareData:i}=t,a=((O=i.arrow)==null?void 0:O.centerOffset)!==0,l=a?0:e.arrowWidth,h=a?0:e.arrowHeight,[m,y]=Sr(n),v={start:"0%",center:"50%",end:"100%"}[y],g=(((x=i.arrow)==null?void 0:x.x)??0)+l/2,p=(((D=i.arrow)==null?void 0:D.y)??0)+h/2;let w="",P="";return m==="bottom"?(w=a?v:`${g}px`,P=`${-h}px`):m==="top"?(w=a?v:`${g}px`,P=`${r.floating.height+h}px`):m==="right"?(w=`${-h}px`,P=a?v:`${p}px`):m==="left"&&(w=`${r.floating.width+h}px`,P=a?v:`${p}px`),{data:{x:w,y:P}}}}}function Sr(e){const[t,n="center"]=e.split("-");return[t,n]}function sl(e){return Sr(e)[0]}function al(e){return Sr(e)[1]}function ll(e,t){ie(t,!0);let n=k(t,"tooltip",3,!1);Po.create(n());var r=dt(),i=X(r);Bt(i,()=>t.children??ne),z(e,r),se()}function cl(e,t){ie(t,!0);let n=k(t,"tooltip",3,!1);Oo.create({id:U(()=>t.id),virtualEl:U(()=>t.virtualEl),ref:t.ref},n());var r=dt(),i=X(r);Bt(i,()=>t.children??ne),z(e,r),se()}function ul(e,t){ie(t,!0);let n=k(t,"side",3,"bottom"),r=k(t,"sideOffset",3,0),i=k(t,"align",3,"center"),s=k(t,"alignOffset",3,0),a=k(t,"arrowPadding",3,0),l=k(t,"avoidCollisions",3,!0),h=k(t,"collisionBoundary",19,()=>[]),m=k(t,"collisionPadding",3,0),y=k(t,"hideWhenDetached",3,!1),v=k(t,"onPlaced",3,()=>{}),g=k(t,"sticky",3,"partial"),p=k(t,"updatePositionStrategy",3,"optimized"),w=k(t,"strategy",3,"fixed"),P=k(t,"dir",3,"ltr"),O=k(t,"style",19,()=>({})),x=k(t,"wrapperId",19,Si),D=k(t,"customAnchor",3,null),T=k(t,"tooltip",3,!1);const E=ar.create({side:U(()=>n()),sideOffset:U(()=>r()),align:U(()=>i()),alignOffset:U(()=>s()),id:U(()=>t.id),arrowPadding:U(()=>a()),avoidCollisions:U(()=>l()),collisionBoundary:U(()=>h()),collisionPadding:U(()=>m()),hideWhenDetached:U(()=>y()),onPlaced:U(()=>v()),sticky:U(()=>g()),updatePositionStrategy:U(()=>p()),strategy:U(()=>w()),dir:U(()=>P()),style:U(()=>O()),enabled:U(()=>t.enabled),wrapperId:U(()=>x()),customAnchor:U(()=>D())},T()),L=W(()=>Qe(E.wrapperProps,{style:{pointerEvents:"auto"}}));var F=dt(),Q=X(F);Bt(Q,()=>t.content??ne,()=>({props:E.props,wrapperProps:o(L)})),z(e,F),se()}function dl(e,t){ie(t,!0),Ci(()=>{var i;(i=t.onPlaced)==null||i.call(t)});var n=dt(),r=X(n);Bt(r,()=>t.content??ne,()=>({props:{},wrapperProps:{}})),z(e,n),se()}function fl(e,t){let n=k(t,"isStatic",3,!1),r=ln(t,["$$slots","$$events","$$legacy","content","isStatic","onPlaced"]);var i=dt(),s=X(i);{var a=h=>{dl(h,{get content(){return t.content},get onPlaced(){return t.onPlaced}})},l=h=>{ul(h,Nt({get content(){return t.content},get onPlaced(){return t.onPlaced}},()=>r))};xt(s,h=>{n()?h(a):h(l,-1)})}z(e,i)}var hl=at("<!> <!>",1);function Ri(e,t){ie(t,!0);let n=k(t,"interactOutsideBehavior",3,"close"),r=k(t,"trapFocus",3,!0),i=k(t,"isValidEvent",3,()=>!1),s=k(t,"customAnchor",3,null),a=k(t,"isStatic",3,!1),l=k(t,"tooltip",3,!1),h=k(t,"contentPointerEvents",3,"auto"),m=ln(t,["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled","ref","tooltip","contentPointerEvents"]);const y=W(()=>t.preventScroll??!0),v=W(()=>t.strategy??(o(y)?"fixed":"absolute"));fl(e,{get isStatic(){return a()},get id(){return t.id},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return o(v)},get dir(){return t.dir},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return s()},get enabled(){return t.enabled},get tooltip(){return l()},content:(p,w)=>{let P=()=>w==null?void 0:w().props,O=()=>w==null?void 0:w().wrapperProps;var x=hl(),D=X(x);{var T=F=>{Qr(F,{get preventScroll(){return o(y)}})},E=F=>{Qr(F,{get preventScroll(){return o(y)}})};xt(D,F=>{t.forceMount&&t.enabled?F(T):t.forceMount||F(E,1)})}var L=M(D,2);qs(L,{get onOpenAutoFocus(){return t.onOpenAutoFocus},get onCloseAutoFocus(){return t.onCloseAutoFocus},get loop(){return t.loop},get enabled(){return t.enabled},get trapFocus(){return r()},get forceMount(){return t.forceMount},get ref(){return t.ref},focusScope:(Q,ft)=>{let R=()=>ft==null?void 0:ft().props;Js(Q,{get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get enabled(){return t.enabled},get ref(){return t.ref},children:($,et)=>{Zs($,{get id(){return t.id},get onInteractOutside(){return t.onInteractOutside},get onFocusOutside(){return t.onFocusOutside},get interactOutsideBehavior(){return n()},get isValidEvent(){return i()},get enabled(){return t.enabled},get ref(){return t.ref},children:(nt,Y)=>{let ht=()=>Y==null?void 0:Y().props;Qs(nt,{get id(){return t.id},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get enabled(){return t.enabled},get ref(){return t.ref},children:(rt,J)=>{var V=dt(),Z=X(V);{let it=W(()=>({props:Qe(m,P(),ht(),R(),{style:{pointerEvents:h()}}),wrapperProps:O()}));Bt(Z,()=>t.popper??ne,()=>o(it))}z(rt,V)},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{focusScope:!0}}),z(p,x)},$$slots:{content:!0}}),se()}function pl(e,t){let n=k(t,"interactOutsideBehavior",3,"close"),r=k(t,"trapFocus",3,!0),i=k(t,"isValidEvent",3,()=>!1),s=k(t,"customAnchor",3,null),a=k(t,"isStatic",3,!1),l=ln(t,["$$slots","$$events","$$legacy","popper","open","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","ref","shouldRender"]);var h=dt(),m=X(h);{var y=v=>{Ri(v,Nt({get popper(){return t.popper},get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get id(){return t.id},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get preventScroll(){return t.preventScroll},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return s()},get isStatic(){return a()},get enabled(){return t.open},get onInteractOutside(){return t.onInteractOutside},get onCloseAutoFocus(){return t.onCloseAutoFocus},get onOpenAutoFocus(){return t.onOpenAutoFocus},get interactOutsideBehavior(){return n()},get loop(){return t.loop},get trapFocus(){return r()},get isValidEvent(){return i()},get onFocusOutside(){return t.onFocusOutside},forceMount:!1,get ref(){return t.ref}},()=>l))};xt(m,v=>{t.shouldRender&&v(y)})}z(e,h)}function vl(e,t){let n=k(t,"interactOutsideBehavior",3,"close"),r=k(t,"trapFocus",3,!0),i=k(t,"isValidEvent",3,()=>!1),s=k(t,"customAnchor",3,null),a=k(t,"isStatic",3,!1),l=ln(t,["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled"]);Ri(e,Nt({get popper(){return t.popper},get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get id(){return t.id},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get preventScroll(){return t.preventScroll},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return s()},get isStatic(){return a()},get enabled(){return t.enabled},get onInteractOutside(){return t.onInteractOutside},get onCloseAutoFocus(){return t.onCloseAutoFocus},get onOpenAutoFocus(){return t.onOpenAutoFocus},get interactOutsideBehavior(){return n()},get loop(){return t.loop},get trapFocus(){return r()},get isValidEvent(){return i()},get onFocusOutside(){return t.onFocusOutside}},()=>l,{forceMount:!0}))}function nr(e,t){const[n,r]=e;let i=!1;const s=t.length;for(let a=0,l=s-1;a<s;l=a++){const[h,m]=t[a]??[0,0],[y,v]=t[l]??[0,0];m>=r!=v>=r&&n<=(y-h)*(r-m)/(v-m)+h&&(i=!i)}return i}function or(e,t){return e[0]>=t.left&&e[0]<=t.right&&e[1]>=t.top&&e[1]<=t.bottom}function gi(e,t){const n=e.left+e.width/2,r=e.top+e.height/2,i=t.left+t.width/2,s=t.top+t.height/2,a=i-n,l=s-r;return Math.abs(a)>Math.abs(l)?a>0?"right":"left":l>0?"bottom":"top"}var ge,on,rn,Yt,Dt,De,Me,me,ye,q,yo,lr,cr,Bi,Vi,Xt,ur,Ki,Ui;class gl{constructor(t){A(this,q);A(this,ge);A(this,on);A(this,rn);A(this,Yt,null);A(this,Dt,null);A(this,De,[]);A(this,Me,null);A(this,me,null);A(this,ye,null);j(this,ge,t),j(this,on,t.buffer??1);const n=t.transitIntentTimeout;j(this,rn,typeof n=="number"&&n>0?n:null),Pn([t.triggerNode,t.contentNode,t.enabled],([r,i,s])=>{if(!r||!i||!s){j(this,Me,null),B(this,q,Xt).call(this);return}f(this,Me)&&f(this,Me)!==r&&B(this,q,Xt).call(this),j(this,Me,r);const a=Gs(r),l=g=>{B(this,q,Vi).call(this,[g.clientX,g.clientY],r,i)},h=g=>{var P,O;const p=g.relatedTarget;if(Te(p)&&i.contains(p))return;const w=((O=(P=f(this,ge)).ignoredTargets)==null?void 0:O.call(P))??[];Te(p)&&w.some(x=>x===p||x.contains(p))||(j(this,De,Te(p)&&w.length>0?w.filter(x=>p.contains(x)):[]),j(this,Yt,[g.clientX,g.clientY]),j(this,Dt,"content"),B(this,q,lr).call(this))},m=()=>{B(this,q,Xt).call(this)},y=()=>{B(this,q,Xt).call(this)},v=g=>{const p=g.relatedTarget;Te(p)&&r.contains(p)||(j(this,Yt,[g.clientX,g.clientY]),j(this,Dt,"trigger"),B(this,q,lr).call(this))};return[bn(a,"pointermove",l),bn(r,"pointerleave",h),bn(r,"pointerenter",m),bn(i,"pointerenter",y),bn(i,"pointerleave",v)].reduce((g,p)=>()=>{g(),p()},()=>{})})}}ge=new WeakMap,on=new WeakMap,rn=new WeakMap,Yt=new WeakMap,Dt=new WeakMap,De=new WeakMap,Me=new WeakMap,me=new WeakMap,ye=new WeakMap,q=new WeakSet,yo=function(){f(this,me)!==null&&(cancelAnimationFrame(f(this,me)),j(this,me,null))},lr=function(){B(this,q,yo).call(this),j(this,me,requestAnimationFrame(()=>{j(this,me,null),!(!f(this,Yt)||!f(this,Dt))&&(B(this,q,Xt).call(this),f(this,ge).onPointerExit())}))},cr=function(){f(this,ye)!==null&&(clearTimeout(f(this,ye)),j(this,ye,null))},Bi=function(){f(this,rn)!==null&&(B(this,q,cr).call(this),j(this,ye,window.setTimeout(()=>{j(this,ye,null),!(!f(this,Yt)||!f(this,Dt))&&(B(this,q,Xt).call(this),f(this,ge).onPointerExit())},f(this,rn))))},Vi=function(t,n,r){if(!f(this,Yt)||!f(this,Dt))return;B(this,q,yo).call(this),B(this,q,Bi).call(this);const i=n.getBoundingClientRect(),s=r.getBoundingClientRect();if(f(this,Dt)==="content"&&or(t,s)){B(this,q,Xt).call(this);return}if(f(this,Dt)==="trigger"&&or(t,i)){B(this,q,Xt).call(this);return}if(f(this,Dt)==="content"&&f(this,De).length>0)for(const y of f(this,De)){const v=y.getBoundingClientRect();if(or(t,v))return;const g=gi(i,v),p=B(this,q,ur).call(this,i,v,g);if(p&&nr(t,p))return}const a=gi(i,s),l=B(this,q,ur).call(this,i,s,a);if(l&&nr(t,l))return;const h=f(this,Dt)==="content"?s:i,m=B(this,q,Ki).call(this,f(this,Yt),h,a,f(this,Dt));nr(t,m)||(B(this,q,Xt).call(this),f(this,ge).onPointerExit())},Xt=function(){j(this,Yt,null),j(this,Dt,null),j(this,De,[]),B(this,q,yo).call(this),B(this,q,cr).call(this)},ur=function(t,n,r){const i=f(this,on);switch(r){case"top":return[[Math.min(t.left,n.left)-i,t.top],[Math.min(t.left,n.left)-i,n.bottom],[Math.max(t.right,n.right)+i,n.bottom],[Math.max(t.right,n.right)+i,t.top]];case"bottom":return[[Math.min(t.left,n.left)-i,t.bottom],[Math.min(t.left,n.left)-i,n.top],[Math.max(t.right,n.right)+i,n.top],[Math.max(t.right,n.right)+i,t.bottom]];case"left":return[[t.left,Math.min(t.top,n.top)-i],[n.right,Math.min(t.top,n.top)-i],[n.right,Math.max(t.bottom,n.bottom)+i],[t.left,Math.max(t.bottom,n.bottom)+i]];case"right":return[[t.right,Math.min(t.top,n.top)-i],[n.left,Math.min(t.top,n.top)-i],[n.left,Math.max(t.bottom,n.bottom)+i],[t.right,Math.max(t.bottom,n.bottom)+i]]}},Ki=function(t,n,r,i){const s=f(this,on)*4,[a,l]=t;switch(i==="trigger"?B(this,q,Ui).call(this,r):r){case"top":return[[a-s,l+s],[a+s,l+s],[n.right+s,n.bottom],[n.right+s,n.top],[n.left-s,n.top],[n.left-s,n.bottom]];case"bottom":return[[a-s,l-s],[a+s,l-s],[n.right+s,n.top],[n.right+s,n.bottom],[n.left-s,n.bottom],[n.left-s,n.top]];case"left":return[[a+s,l-s],[a+s,l+s],[n.right,n.bottom+s],[n.left,n.bottom+s],[n.left,n.top-s],[n.right,n.top-s]];case"right":return[[a-s,l-s],[a-s,l+s],[n.left,n.bottom+s],[n.right,n.bottom+s],[n.right,n.top-s],[n.left,n.top-s]]}},Ui=function(t){switch(t){case"top":return"bottom";case"bottom":return"top";case"left":return"right";case"right":return"left"}};const dr=ra({component:"popover",parts:["root","trigger","content","close","overlay"]}),Ar=new Eo("Popover.Root");var Yn,qn,Jn,Zn,Qn,Gn,$n,we,be,qt,fe;const zr=class zr{constructor(t){A(this,qt);ot(this,"opts");A(this,Yn,yt(null));ot(this,"contentPresence");A(this,qn,yt(null));A(this,Jn,yt(null));ot(this,"overlayPresence");A(this,Zn,yt(!1));A(this,Qn,yt(!1));A(this,Gn,yt(!1));A(this,$n,yt(0));A(this,we,null);A(this,be,null);this.opts=t,this.contentPresence=new Gr({ref:U(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new Gr({ref:U(()=>this.overlayNode),open:this.opts.open}),Pn(()=>this.opts.open.current,n=>{n||(this.openedViaHover=!1,this.hasInteractedWithContent=!1,B(this,qt,fe).call(this))})}static create(t){return Ar.set(new zr(t))}get contentNode(){return o(f(this,Yn))}set contentNode(t){d(f(this,Yn),t,!0)}get triggerNode(){return o(f(this,qn))}set triggerNode(t){d(f(this,qn),t,!0)}get overlayNode(){return o(f(this,Jn))}set overlayNode(t){d(f(this,Jn),t,!0)}get openedViaHover(){return o(f(this,Zn))}set openedViaHover(t){d(f(this,Zn),t,!0)}get hasInteractedWithContent(){return o(f(this,Qn))}set hasInteractedWithContent(t){d(f(this,Qn),t,!0)}get hoverCooldown(){return o(f(this,Gn))}set hoverCooldown(t){d(f(this,Gn),t,!0)}get closeDelay(){return o(f(this,$n))}set closeDelay(t){d(f(this,$n),t,!0)}setDomContext(t){j(this,be,t)}toggleOpen(){B(this,qt,fe).call(this),this.opts.open.current=!this.opts.open.current}handleClose(){B(this,qt,fe).call(this),this.opts.open.current&&(this.opts.open.current=!1)}handleHoverOpen(){B(this,qt,fe).call(this),!this.opts.open.current&&(this.openedViaHover=!0,this.opts.open.current=!0)}handleHoverClose(){this.opts.open.current&&this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1)}handleDelayedHoverClose(){this.opts.open.current&&(!this.openedViaHover||this.hasInteractedWithContent||(B(this,qt,fe).call(this),this.closeDelay<=0?this.opts.open.current=!1:f(this,be)&&j(this,we,f(this,be).setTimeout(()=>{this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1),j(this,we,null)},this.closeDelay))))}cancelDelayedClose(){B(this,qt,fe).call(this)}markInteraction(){this.hasInteractedWithContent=!0,B(this,qt,fe).call(this)}};Yn=new WeakMap,qn=new WeakMap,Jn=new WeakMap,Zn=new WeakMap,Qn=new WeakMap,Gn=new WeakMap,$n=new WeakMap,we=new WeakMap,be=new WeakMap,qt=new WeakSet,fe=function(){f(this,we)!==null&&f(this,be)&&(f(this,be).clearTimeout(f(this,we)),j(this,we,null))};let fr=zr;var xe,sn,Le,Ht,pr,vr,gr,ji,to;const kr=class kr{constructor(t,n){A(this,Ht);ot(this,"opts");ot(this,"root");ot(this,"attachment");ot(this,"domContext");A(this,xe,null);A(this,sn,null);A(this,Le,yt(!1));A(this,to,W(()=>({id:this.opts.id.current,"aria-haspopup":"dialog","aria-expanded":na(this.root.opts.open.current),"data-state":Ai(this.root.opts.open.current),"aria-controls":B(this,Ht,ji).call(this),[dr.trigger]:"",disabled:this.opts.disabled.current,onkeydown:this.onkeydown,onclick:this.onclick,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment})));this.opts=t,this.root=n,this.attachment=_n(this.opts.ref,r=>this.root.triggerNode=r),this.domContext=new $s(t.ref),this.root.setDomContext(this.domContext),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this),Pn(()=>this.opts.closeDelay.current,r=>{this.root.closeDelay=r})}static create(t){return new kr(t,Ar.get())}onpointerenter(t){if(this.opts.disabled.current||!this.opts.openOnHover.current||wo(t)||(d(f(this,Le),!0),B(this,Ht,vr).call(this),this.root.cancelDelayedClose(),this.root.opts.open.current||this.root.hoverCooldown))return;const n=this.opts.openDelay.current;n<=0?this.root.handleHoverOpen():j(this,xe,this.domContext.setTimeout(()=>{this.root.handleHoverOpen(),j(this,xe,null)},n))}onpointerleave(t){this.opts.disabled.current||this.opts.openOnHover.current&&(wo(t)||(d(f(this,Le),!1),B(this,Ht,pr).call(this),this.root.hoverCooldown=!1))}onclick(t){if(!this.opts.disabled.current&&t.button===0){if(B(this,Ht,gr).call(this),o(f(this,Le))&&this.root.opts.open.current&&this.root.openedViaHover){this.root.openedViaHover=!1,this.root.hasInteractedWithContent=!0;return}o(f(this,Le))&&this.opts.openOnHover.current&&this.root.opts.open.current&&(this.root.hoverCooldown=!0),this.root.hoverCooldown&&!this.root.opts.open.current&&(this.root.hoverCooldown=!1),this.root.toggleOpen()}}onkeydown(t){this.opts.disabled.current||(t.key===ta||t.key===ea)&&(t.preventDefault(),B(this,Ht,gr).call(this),this.root.toggleOpen())}get props(){return o(f(this,to))}set props(t){d(f(this,to),t)}};xe=new WeakMap,sn=new WeakMap,Le=new WeakMap,Ht=new WeakSet,pr=function(){f(this,xe)!==null&&(this.domContext.clearTimeout(f(this,xe)),j(this,xe,null))},vr=function(){f(this,sn)!==null&&(this.domContext.clearTimeout(f(this,sn)),j(this,sn,null))},gr=function(){B(this,Ht,pr).call(this),B(this,Ht,vr).call(this)},ji=function(){var t,n;if(this.root.opts.open.current&&((t=this.root.contentNode)!=null&&t.id))return(n=this.root.contentNode)==null?void 0:n.id},to=new WeakMap;let hr=kr;var eo,no;const Er=class Er{constructor(t,n){ot(this,"opts");ot(this,"root");ot(this,"attachment");ot(this,"onInteractOutside",t=>{if(this.opts.onInteractOutside.current(t),t.defaultPrevented||!Te(t.target))return;const n=t.target.closest(dr.selector("trigger"));if(!(n&&n===this.root.triggerNode)){if(this.opts.customAnchor.current){if(Te(this.opts.customAnchor.current)){if(this.opts.customAnchor.current.contains(t.target))return}else if(typeof this.opts.customAnchor.current=="string"){const r=document.querySelector(this.opts.customAnchor.current);if(r&&r.contains(t.target))return}}this.root.handleClose()}});ot(this,"onEscapeKeydown",t=>{this.opts.onEscapeKeydown.current(t),!t.defaultPrevented&&this.root.handleClose()});A(this,eo,W(()=>({open:this.root.opts.open.current})));A(this,no,W(()=>({id:this.opts.id.current,tabindex:-1,"data-state":Ai(this.root.opts.open.current),[dr.content]:"",style:{pointerEvents:"auto",contain:"layout style"},onpointerdown:this.onpointerdown,onfocusin:this.onfocusin,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment})));ot(this,"popperProps",{onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown});this.opts=t,this.root=n,this.attachment=_n(this.opts.ref,r=>this.root.contentNode=r),this.onpointerdown=this.onpointerdown.bind(this),this.onfocusin=this.onfocusin.bind(this),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this),new gl({triggerNode:()=>this.root.triggerNode,contentNode:()=>this.root.contentNode,enabled:()=>this.root.opts.open.current&&this.root.openedViaHover&&!this.root.hasInteractedWithContent,onPointerExit:()=>{this.root.handleDelayedHoverClose()}})}static create(t){return new Er(t,Ar.get())}onpointerdown(t){this.root.markInteraction()}onfocusin(t){const n=t.target;Te(n)&&oa(n)&&this.root.markInteraction()}onpointerenter(t){wo(t)||this.root.cancelDelayedClose()}onpointerleave(t){wo(t)}get shouldRender(){return this.root.contentPresence.shouldRender}get shouldTrapFocus(){return!(this.root.openedViaHover&&!this.root.hasInteractedWithContent)}get snippetProps(){return o(f(this,eo))}set snippetProps(t){d(f(this,eo),t)}get props(){return o(f(this,no))}set props(t){d(f(this,no),t)}};eo=new WeakMap,no=new WeakMap;let mr=Er;var ml=at("<div><div><!></div></div>"),yl=at("<div><div><!></div></div>");function mi(e,t){const n=Oi();ie(t,!0);let r=k(t,"ref",15,null),i=k(t,"id",19,()=>zi(n)),s=k(t,"forceMount",3,!1),a=k(t,"onOpenAutoFocus",3,Ze),l=k(t,"onCloseAutoFocus",3,Ze),h=k(t,"onEscapeKeydown",3,Ze),m=k(t,"onInteractOutside",3,Ze),y=k(t,"trapFocus",3,!0),v=k(t,"preventScroll",3,!1),g=k(t,"customAnchor",3,null),p=ln(t,["$$slots","$$events","$$legacy","child","children","ref","id","forceMount","onOpenAutoFocus","onCloseAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","customAnchor","style"]);const w=mr.create({id:U(()=>i()),ref:U(()=>r(),F=>r(F)),onInteractOutside:U(()=>m()),onEscapeKeydown:U(()=>h()),customAnchor:U(()=>g())}),P=W(()=>Qe(p,w.props)),O=W(()=>y()&&w.shouldTrapFocus);function x(F){w.shouldTrapFocus||F.preventDefault(),a()(F)}var D=dt(),T=X(D);{var E=F=>{vl(F,Nt(()=>o(P),()=>w.popperProps,{get ref(){return w.opts.ref},get enabled(){return w.root.opts.open.current},get id(){return i()},get trapFocus(){return o(O)},get preventScroll(){return v()},loop:!0,forceMount:!0,get customAnchor(){return g()},onOpenAutoFocus:x,get onCloseAutoFocus(){return l()},get shouldRender(){return w.shouldRender},popper:(ft,R)=>{let $=()=>R==null?void 0:R().props,et=()=>R==null?void 0:R().wrapperProps;const tt=W(()=>Qe($(),{style:pi("popover")},{style:t.style}));var nt=dt(),Y=X(nt);{var ht=J=>{var V=dt(),Z=X(V);{let it=W(()=>({props:o(tt),wrapperProps:et(),...w.snippetProps}));Bt(Z,()=>t.child,()=>o(it))}z(J,V)},rt=J=>{var V=ml();xn(V,()=>({...et()}));var Z=S(V);xn(Z,()=>({...o(tt)}));var it=S(Z);Bt(it,()=>t.children??ne),C(Z),C(V),z(J,V)};xt(Y,J=>{t.child?J(ht):J(rt,-1)})}z(ft,nt)},$$slots:{popper:!0}}))},L=F=>{pl(F,Nt(()=>o(P),()=>w.popperProps,{get ref(){return w.opts.ref},get open(){return w.root.opts.open.current},get id(){return i()},get trapFocus(){return o(O)},get preventScroll(){return v()},loop:!0,forceMount:!1,get customAnchor(){return g()},onOpenAutoFocus:x,get onCloseAutoFocus(){return l()},get shouldRender(){return w.shouldRender},popper:(ft,R)=>{let $=()=>R==null?void 0:R().props,et=()=>R==null?void 0:R().wrapperProps;const tt=W(()=>Qe($(),{style:pi("popover")},{style:t.style}));var nt=dt(),Y=X(nt);{var ht=J=>{var V=dt(),Z=X(V);{let it=W(()=>({props:o(tt),wrapperProps:et(),...w.snippetProps}));Bt(Z,()=>t.child,()=>o(it))}z(J,V)},rt=J=>{var V=yl();xn(V,()=>({...et()}));var Z=S(V);xn(Z,()=>({...o(tt)}));var it=S(Z);Bt(it,()=>t.children??ne),C(Z),C(V),z(J,V)};xt(Y,J=>{t.child?J(ht):J(rt,-1)})}z(ft,nt)},$$slots:{popper:!0}}))};xt(T,F=>{s()?F(E):s()||F(L,1)})}z(e,D),se()}var wl=at("<button><!></button>");function yi(e,t){const n=Oi();ie(t,!0);let r=k(t,"id",19,()=>zi(n)),i=k(t,"ref",15,null),s=k(t,"type",3,"button"),a=k(t,"disabled",3,!1),l=k(t,"openOnHover",3,!1),h=k(t,"openDelay",3,700),m=k(t,"closeDelay",3,300),y=ln(t,["$$slots","$$events","$$legacy","children","child","id","ref","type","disabled","openOnHover","openDelay","closeDelay"]);const v=hr.create({id:U(()=>r()),ref:U(()=>i(),p=>i(p)),disabled:U(()=>!!a()),openOnHover:U(()=>l()),openDelay:U(()=>h()),closeDelay:U(()=>m())}),g=W(()=>Qe(y,v.props,{type:s()}));cl(e,{get id(){return r()},get ref(){return v.opts.ref},children:(p,w)=>{var P=dt(),O=X(P);{var x=T=>{var E=dt(),L=X(E);Bt(L,()=>t.child,()=>({props:o(g)})),z(T,E)},D=T=>{var E=wl();xn(E,()=>({...o(g)}));var L=S(E);Bt(L,()=>t.children??ne),C(E),z(T,E)};xt(O,T=>{t.child?T(x):T(D,-1)})}z(p,P)},$$slots:{default:!0}}),se()}function wi(e,t){ie(t,!0);let n=k(t,"open",15,!1),r=k(t,"onOpenChange",3,Ze),i=k(t,"onOpenChangeComplete",3,Ze);fr.create({open:U(()=>n(),s=>{n(s),r()(s)}),onOpenChangeComplete:U(()=>i())}),ll(e,{children:(s,a)=>{var l=dt(),h=X(l);Bt(h,()=>t.children??ne),z(s,l)},$$slots:{default:!0}}),se()}function bl(e,t){const n=Ae(t,["children","$$slots","$$events","$$legacy"]);/**
|
|
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 r=[["path",{d:"m3 16 4 4 4-4"}],["path",{d:"M7 20V4"}],["path",{d:"m21 8-4-4-4 4"}],["path",{d:"M17 4v16"}]];Ce(e,Nt({name:"arrow-down-up"},()=>n,{get iconNode(){return r},children:(i,s)=>{var a=dt(),l=X(a);Se(l,t,"default",{}),z(i,a)},$$slots:{default:!0}}))}function xl(e,t){const n=Ae(t,["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 r=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"}]];Ce(e,Nt({name:"copy"},()=>n,{get iconNode(){return r},children:(i,s)=>{var a=dt(),l=X(a);Se(l,t,"default",{}),z(i,a)},$$slots:{default:!0}}))}function _l(e,t){const n=Ae(t,["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 r=[["circle",{cx:"12",cy:"12",r:"1"}],["circle",{cx:"19",cy:"12",r:"1"}],["circle",{cx:"5",cy:"12",r:"1"}]];Ce(e,Nt({name:"ellipsis"},()=>n,{get iconNode(){return r},children:(i,s)=>{var a=dt(),l=X(a);Se(l,t,"default",{}),z(i,a)},$$slots:{default:!0}}))}function Pl(e,t){const n=Ae(t,["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 r=[["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"}]];Ce(e,Nt({name:"mail"},()=>n,{get iconNode(){return r},children:(i,s)=>{var a=dt(),l=X(a);Se(l,t,"default",{}),z(i,a)},$$slots:{default:!0}}))}function Ol(e,t){const n=Ae(t,["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 r=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z"}],["path",{d:"m15 5 4 4"}]];Ce(e,Nt({name:"pencil"},()=>n,{get iconNode(){return r},children:(i,s)=>{var a=dt(),l=X(a);Se(l,t,"default",{}),z(i,a)},$$slots:{default:!0}}))}function Cl(e,t){const n=Ae(t,["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 r=[["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"}]];Ce(e,Nt({name:"sparkles"},()=>n,{get iconNode(){return r},children:(i,s)=>{var a=dt(),l=X(a);Se(l,t,"default",{}),z(i,a)},$$slots:{default:!0}}))}function bi(e,t){const n=Ae(t,["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 r=[["path",{d:"M3 6h18"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17"}]];Ce(e,Nt({name:"trash-2"},()=>n,{get iconNode(){return r},children:(i,s)=>{var a=dt(),l=X(a);Se(l,t,"default",{}),z(i,a)},$$slots:{default:!0}}))}function Sl(e,t){const n=Ae(t,["children","$$slots","$$events","$$legacy"]);/**
|
|
37
|
-
* @license lucide-svelte v0.460.1 - ISC
|
|
38
|
-
*
|
|
39
|
-
* This source code is licensed under the ISC license.
|
|
40
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/const r=[["path",{d:"M3 6h18"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"}]];Ce(e,Nt({name:"trash"},()=>n,{get iconNode(){return r},children:(i,s)=>{var a=dt(),l=X(a);Se(l,t,"default",{}),z(i,a)},$$slots:{default:!0}}))}function xi(e){const t=e.trim();if(!t)return t;if(!/^https?:\/\//i.test(t))return t.toLowerCase();try{const n=new URL(t),r=n.protocol.toLowerCase(),i=n.host.toLowerCase();let s=n.pathname;return s.length>1&&s.endsWith("/")&&(s=s.slice(0,-1)),s=s.toLowerCase(),`${r}//${i}${s}${n.search}${n.hash}`}catch{return t.toLowerCase()}}function _i(e){const t=e.trim();if(!/^https?:\/\//i.test(t))return null;try{return new URL(t).hostname.replace(/^www\./i,"")||null}catch{return null}}function Pi(e){return`/api/feed-favicon?domain=${encodeURIComponent(e)}`}var Al=at("<option> </option>"),zl=at('<p class="save-error svelte-1beoyzy"> </p>'),kl=at('<span class="confirm-delete-row svelte-1beoyzy"><span class="confirm-delete-text svelte-1beoyzy">确认删除?</span> <button type="button" class="btn-confirm-yes svelte-1beoyzy">删除</button> <button type="button" class="btn-confirm-no svelte-1beoyzy">取消</button></span>'),El=at('<button type="button" class="btn-delete svelte-1beoyzy"><!> 删除</button>'),Fl=at('<div class="modal-header svelte-1beoyzy"><!> <!></div> <div class="modal-body svelte-1beoyzy"><div class="field svelte-1beoyzy"><span class="field-label svelte-1beoyzy">Ref <span class="required svelte-1beoyzy">*</span></span> <div class="ref-input-wrap svelte-1beoyzy"><input class="field-input svelte-1beoyzy" type="text" placeholder="https://example.com/feed"/></div></div> <div class="field svelte-1beoyzy"><span class="field-label svelte-1beoyzy">来源</span> <div class="parse-hints svelte-1beoyzy" role="status" aria-live="polite"><span title="标准 RSS/Atom/JSON Feed(内置 __rss__,rss-parser)"><!> <span>RSS/Atom</span></span> <span title="内置 IMAP 邮件插件(__email__)"><!> <span>邮箱</span></span> <span title="Site 插件(listUrlPattern)或语鲸协议(lingowhale://)"><!> <span>插件</span></span> <span title="通用网页列表:无 Feed 特征且未命中插件时,走 LLM 解析(generic)"><!> <span>LLM</span></span></div></div> <div class="field svelte-1beoyzy"><span class="field-label svelte-1beoyzy">名称</span> <input class="field-input svelte-1beoyzy" type="text" placeholder="显示名称(留空则显示 ref)"/></div> <div class="field svelte-1beoyzy"><span class="field-label svelte-1beoyzy">描述</span> <input class="field-input svelte-1beoyzy" type="text" placeholder="简短说明"/></div> <div class="field-row svelte-1beoyzy"><div class="field svelte-1beoyzy"><span class="field-label svelte-1beoyzy">权重(0–1)</span> <input class="field-input field-input--weight svelte-1beoyzy" type="number" min="0" max="1" step="0.01" inputmode="decimal" placeholder="0–1"/></div> <div class="field svelte-1beoyzy"><span class="field-label svelte-1beoyzy">刷新间隔</span> <select class="field-input svelte-1beoyzy"></select></div></div> <div class="field svelte-1beoyzy"><span class="field-label svelte-1beoyzy">代理</span> <input class="field-input svelte-1beoyzy" type="text" placeholder="http://127.0.0.1:7890"/></div> <!></div> <div class="modal-footer svelte-1beoyzy"><div class="modal-footer-left svelte-1beoyzy"><!></div> <div class="modal-footer-right svelte-1beoyzy"><!> <button type="button" class="btn-save svelte-1beoyzy"> </button></div></div>',1),Tl=at("<!> <!>",1),Dl=at('<p class="remove-dialog-target svelte-1beoyzy"> </p>'),Ml=at('<div class="modal-header svelte-1beoyzy"><!> <!></div> <div class="modal-body svelte-1beoyzy"><p id="remove-source-desc" class="remove-dialog-text svelte-1beoyzy">确定删除该信源吗?操作会同时删除该信源下已入库的所有条目,且不可恢复。</p> <!></div> <div class="modal-footer remove-dialog-footer svelte-1beoyzy"><!> <button type="button" class="btn-confirm-yes svelte-1beoyzy">移除</button></div>',1),Ll=at("<!> <!>",1),Il=at('<span class="sort-menu-dir svelte-1beoyzy" aria-hidden="true"> </span>'),Wl=at('<button type="button"><span> </span> <!></button>'),Nl=at("<!> <!>",1),Hl=at('<div class="state svelte-1beoyzy">加载中…</div>'),Rl=at('<div class="state error svelte-1beoyzy"> </div>'),Bl=at('<div class="state svelte-1beoyzy">暂无信源。<button type="button" class="link-btn svelte-1beoyzy">点击添加</button>第一个信源。</div>'),Vl=at('<div class="state svelte-1beoyzy">无匹配结果</div>'),Kl=at('<img class="source-title-favicon svelte-1beoyzy" alt="" width="16" height="16" loading="lazy" decoding="async"/>'),Ul=at('<span class="source-title-favicon-slot svelte-1beoyzy" aria-hidden="true"><!></span>'),jl=at('<a class="more-menu-item svelte-1beoyzy" target="_blank" rel="noopener noreferrer"><!> <span>打开链接</span></a>'),Xl=at('<button type="button" title="强制拉取"><!> <span> </span></button> <button type="button" class="more-menu-item svelte-1beoyzy"><!> <span>编辑</span></button> <button type="button" class="more-menu-item svelte-1beoyzy" title="复制本服务的 RSS 订阅地址(/rss?ref=…)"><!> <span>复制 RSS 地址</span></button> <!> <button type="button" class="more-menu-item more-menu-item-danger svelte-1beoyzy" title="清空该信源下所有已入库条目"><!> <span> </span></button> <button type="button" class="more-menu-item more-menu-item-remove svelte-1beoyzy" title="从订阅列表中移除此信源"><!> <span> </span></button>',1),Yl=at("<!> <!>",1),ql=at('<div class="card row-grid svelte-1beoyzy" role="button" tabindex="0"><div class="cell-title svelte-1beoyzy"><div class="title-block svelte-1beoyzy"><!> <div class="title-line svelte-1beoyzy"><span class="title-text svelte-1beoyzy"> </span> <span class="title-item-count svelte-1beoyzy" title="已收录条目"> </span></div></div></div> <div class="cell-actions svelte-1beoyzy"><!></div></div>'),Jl=at('<div class="list svelte-1beoyzy"></div>'),Zl=at('<!> <!> <!> <div class="feed-wrap svelte-1beoyzy"><div class="feed-col svelte-1beoyzy"><div class="feed-toolbar-block svelte-1beoyzy"><div class="feed-header svelte-1beoyzy"><div class="header-left svelte-1beoyzy"><input class="filter-input svelte-1beoyzy" type="search" placeholder="过滤…"/> <!></div> <div class="header-right svelte-1beoyzy"><button type="button" class="btn-add svelte-1beoyzy" title="添加信源" aria-label="添加信源"><!></button></div></div></div> <div class="feed-body-scroll svelte-1beoyzy"><!></div></div></div>',1);function yc(e,t){ie(t,!1);const n=()=>Yr(Hs,"$refToTaskId",i),r=()=>Yr(Go,"$page",i),[i,s]=Fs(),a=G(),l=G(),h=G(),m=G();function y(c){return c==="alpha"||c==="parse"?"asc":"desc"}const v="1day",g=[{value:"10min",label:"10 分钟"},{value:"30min",label:"30 分钟"},{value:"1h",label:"1 小时"},{value:"6h",label:"6 小时"},{value:"12h",label:"12 小时"},{value:"1day",label:"1 天"},{value:"3day",label:"3 天"},{value:"7day",label:"7 天"}];function p(c){const u=(c==null?void 0:c.trim())??"";return g.some(b=>b.value===u)?u:v}function w(c){return Math.min(1,Math.max(0,c))}function P(c){const u=typeof c=="number"&&!Number.isNaN(c)?c:Number(String(c).trim());return Number.isFinite(u)?u<0||u>1?{ok:!1,message:"权重需在 0–1 之间"}:{ok:!0,value:u}:{ok:!1,message:"权重需为 0–1 之间的数字"}}let O=[],x=G([]),D=G(!0),T=G(""),E=G(""),L=G("weight"),F=G("desc"),Q=G(!1),ft="",R=G(null),$=G({}),et=G(null),tt=G(null),nt=G(!1),Y=G(null),ht=G(!1),rt=G(null),J=G(!1),V=G(!1),Z=G(!1),it=G(""),Rt=G(""),We=G(""),Ne=G(""),dn=G(0),fn=G(v),He=G(""),Re=G(null),ro=null;function io(c){const u=(c==null?void 0:c.trim())??"";if(!u)return u;const b=u.toLowerCase();return b.startsWith("http://")||b.startsWith("https://")||b.startsWith("imaps://")||b.startsWith("imap://")||b.startsWith("lingowhale://")?u:"https://"+u}function Xi(c){const u=c.toLowerCase();return u.includes("/feed")||u.includes("/rss")||u.includes("/atom")||u.endsWith(".xml")||u.endsWith(".rss")||u.endsWith(".atom")||u.includes("format=rss")||u.includes("format=atom")||u.includes("output=rss")}function Fr(c,u){const b=(c==null?void 0:c.trim())??"";if(!b)return null;const _=b.toLowerCase();if(_.startsWith("imaps://")||_.startsWith("imap://"))return"email";if(_.startsWith("lingowhale://"))return"plugin";const H=io(b);return!H.startsWith("http://")&&!H.startsWith("https://")?null:Xi(H)?"rss":u?"plugin":"llm"}function Lo(c){return c==="rss"?"RSS/Atom":c==="plugin"?"插件":c==="llm"?"LLM":c==="email"?"邮箱":"—"}function Yi(c){ro&&clearTimeout(ro);const u=c==null?void 0:c.trim();if(!u){d(Re,null);return}d(Re,null);const b=io(u);ro=setTimeout(async()=>{ro=null;try{const _=await ee("/api/sources/plugin-match",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({refs:[b]})});if(_.ok){const H=await _.json();io(o(Rt).trim())===b&&d(Re,H[b]??null)}}catch{io(o(Rt).trim())===b&&d(Re,null)}},400)}function qi(c,u,b){const _=b==="desc"?-1:1;return[...c].sort((H,I)=>{let K=0;switch(u){case"weight":K=H.weight-I.weight;break;case"alpha":K=H.displayLabel.localeCompare(I.displayLabel,"zh-CN");break;case"parse":K=Lo(H.parseHint).localeCompare(Lo(I.parseHint),"zh-CN");break;case"latest":{const wt=H.latestAt?new Date(H.latestAt).getTime():NaN,Ft=I.latestAt?new Date(I.latestAt).getTime():NaN,Ct=Number.isFinite(wt),N=Number.isFinite(Ft);if(!Ct&&!N)K=0;else if(Ct)if(N)K=wt-Ft;else return-1;else return 1;break}case"count":K=H.count-I.count;break}return K!==0?_*K:H.displayLabel.localeCompare(I.displayLabel,"zh-CN")})}function Ji(c){o(L)===c?d(F,o(F)==="asc"?"desc":"asc"):(d(L,c),d(F,y(c)))}let Io=G(!1);function Tr(c){return c==="alpha"?"标题":c==="weight"?"权重":c==="latest"?"最近拉取":c==="parse"?"解析":"数量"}function Zi(c){Ji(c),d(Io,!1)}const Qi=["alpha","weight","latest","parse","count"];async function Be(c){const u=(c==null?void 0:c.silent)===!0;u||d(D,!0),d(T,"");try{const[b,_]=await Promise.all([ee("/api/sources/raw"),ee("/api/sources/stats")]),H=await b.text(),I=JSON.parse(H||"{}");O=Array.isArray(I.sources)?I.sources:[];const K=_.ok?await _.json():[],wt=new Map;for(const N of K){const lt=xi(N.source_url),pt=wt.get(lt),ut=N.latest_at??null;pt?wt.set(lt,{count:pt.count+N.count,latestAt:pt.latestAt?ut?pt.latestAt>=ut?pt.latestAt:ut:pt.latestAt:ut}):wt.set(lt,{count:N.count,latestAt:ut})}const Ft=O.filter(N=>{var lt;return(lt=N==null?void 0:N.ref)==null?void 0:lt.trim()}).map(N=>N.ref.trim());let Ct={};if(Ft.length>0)try{const N=await ee("/api/sources/plugin-match",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({refs:Ft})});N.ok&&(Ct=await N.json())}catch{}d(x,O.filter(N=>{var lt;return(lt=N==null?void 0:N.ref)==null?void 0:lt.trim()}).map(N=>{var Mt,Tt;const lt=N.ref.trim(),pt=wt.get(xi(lt))??{count:0,latestAt:null},ut=Ct[lt]??null,_t=(Mt=N.proxy)==null?void 0:Mt.trim();return{ref:lt,displayLabel:N.label&&N.label.trim()||lt,description:(Tt=N.description)==null?void 0:Tt.trim(),count:(pt==null?void 0:pt.count)??0,latestAt:(pt==null?void 0:pt.latestAt)??null,pluginId:ut,weight:N.weight??0,..._t?{proxy:_t}:{},parseHint:Fr(lt,ut)}}))}catch(b){d(T,b instanceof Error?b.message:String(b)),u||d(x,[])}finally{u||d(D,!1)}}async function Wo(c){return(await ee("/api/sources/raw",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({sources:c})})).ok}function Dr(){d(V,!1),d(Rt,""),d(We,""),d(Ne,""),d(dn,0),d(fn,v),d(He,""),d(it,""),d(J,!0)}function Gi(c){const u=O.find(b=>b.ref===c.ref);d(V,!0),ft=c.ref,d(Rt,c.ref),d(We,(u==null?void 0:u.label)??""),d(Ne,(u==null?void 0:u.description)??""),d(dn,w((u==null?void 0:u.weight)??0)),d(fn,p(u==null?void 0:u.refresh)),d(He,(u==null?void 0:u.proxy)??""),d(it,""),d(Q,!1),d(J,!0)}function Mr(){d(J,!1),d(Q,!1)}async function $i(){const c=o(Rt).trim();if(!c){d(it,"ref 不能为空");return}const u=P(o(dn));if(!u.ok){d(it,u.message);return}d(Z,!0),d(it,"");try{const b=u.value,_={ref:c,...o(We).trim()?{label:o(We).trim()}:{},...o(Ne).trim()?{description:o(Ne).trim()}:{},refresh:o(fn),...o(He).trim()?{proxy:o(He).trim()}:{},...b!==0?{weight:b}:{}};let H;if(o(V)){if(c!==ft&&O.some(K=>K.ref===c)){d(it,"该 ref 已存在");return}H=O.map(K=>K.ref===ft?{...K,..._}:K)}else{if(O.some(K=>K.ref===c)){d(it,"该 ref 已存在");return}H=[...O,_]}if(!await Wo(H)){d(it,"保存失败,请重试");return}Mr(),await Be({silent:!0})}catch(b){d(it,b instanceof Error?b.message:String(b))}finally{d(Z,!1)}}async function Lr(c){try{const u=await ee("/api/items/by-source?source_url="+encodeURIComponent(c),{method:"DELETE"}),b=await u.json();return!u.ok||!b.ok?{ok:!1,message:b.message??"删除信源条目失败"}:{ok:!0,deleted:Number(b.deleted??0)}}catch(u){return{ok:!1,message:u instanceof Error?u.message:"删除信源条目失败"}}}async function ts(){const c=ft.trim();if(!c){d(it,"缺少信源 ref");return}d(Z,!0),d(it,"");try{const u=await Lr(c);if(!u.ok){d(it,u.message);return}const b=O.filter(H=>H.ref!==c);if(!await Wo(b)){d(it,"删除信源失败,请重试");return}Mr(),await Be({silent:!0})}catch(u){d(it,u instanceof Error?u.message:String(u))}finally{d(Z,!1)}}async function es(c){for(let u=0;u<120;u++){const b=await ee(`/api/tasks/${c}`);if(!b.ok)return{ok:!1,error:"轮询失败"};const _=await b.json();if(_.status==="done")return{ok:!0};if(_.status==="error")return{ok:!1,error:_.error??"拉取失败"};await new Promise(H=>setTimeout(H,800))}return{ok:!1,error:"超时"}}async function ns(c,u){if(u==null||u.preventDefault(),u==null||u.stopPropagation(),!(c in n()))try{const b=await ee("/api/tasks",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({type:"source-pull",ref:c})}),_=await b.json();if(!b.ok||!_.taskId)return;Rs(c,_.taskId),(await es(_.taskId)).ok&&await Be({silent:!0})}catch{}finally{Bs(c)}}function os(c){const u=c.trim().toLowerCase();return u.startsWith("http://")||u.startsWith("https://")}function rs(c){const u=new URL("/rss",typeof window<"u"?window.location.origin:"http://127.0.0.1");return u.searchParams.set("ref",c),u.href}async function is(c){const u=rs(c);try{await navigator.clipboard.writeText(u)}catch{try{const b=document.createElement("textarea");b.value=u,b.style.position="fixed",b.style.left="-9999px",document.body.appendChild(b),b.select(),document.execCommand("copy"),document.body.removeChild(b)}catch{}}d(R,null)}function ss(c){d(nt,c),c||d(Y,null)}function as(c){o(tt)||(d(Y,c),d(nt,!0),d(R,null))}async function ls(){var u;const c=o(Y);if(!(!c||o(tt))){d(nt,!1),d(Y,null),d(tt,c);try{const b=await Lr(c);if(!b.ok){$o(b.message,"error");return}const _=O.filter(I=>I.ref!==c);if(!await Wo(_)){$o("移除失败,请重试","error");return}Jr(Go).url.pathname==="/"?Zr.update(I=>(I==null?void 0:I.ref)===c?null:I):((u=o(rt))==null?void 0:u.ref)===c&&(d(ht,!1),d(rt,null)),await Be({silent:!0})}catch(b){$o(b instanceof Error?b.message:"移除失败","error")}finally{d(tt,null)}}}async function cs(c){if(!o(et)&&confirm("确定要清空该信源下的所有条目吗?此操作不可恢复。")){d(et,c),d(R,null);try{const u=await ee("/api/items/by-source?source_url="+encodeURIComponent(c),{method:"DELETE"}),b=await u.json();u.ok&&b.ok?await Be({silent:!0}):u.ok||alert(b.message??"清空失败")}catch(u){alert(u instanceof Error?u.message:"清空失败")}finally{d(et,null)}}}function Ir(c){var u,b;if(Jr(Go).url.pathname==="/"){Zr.set({ref:c.ref,displayLabel:c.displayLabel,...(u=c.description)!=null&&u.trim()?{description:c.description.trim()}:{},...(b=c.proxy)!=null&&b.trim()?{proxy:c.proxy.trim()}:{}});return}d(rt,c),d(ht,!0)}function us(c,u){const b=u.target;b&&(b.closest("a[href], button")||Ir(c))}function ds(c,u){u.key!=="Enter"&&u.key!==" "||(u.preventDefault(),Ir(c))}Ci(Be),wn(()=>(o(Y),o(x)),()=>{var c;d(a,o(Y)!=null?((c=o(x).find(u=>u.ref===o(Y)))==null?void 0:c.displayLabel)??o(Y):"")}),wn(()=>o(Rt),()=>{o(Rt),Yi(o(Rt))}),wn(()=>(o(Rt),o(Re)),()=>{d(l,Fr(o(Rt),o(Re)))}),wn(()=>o(l),()=>{d(h,o(l)??"llm")}),wn(()=>(o(E),o(x),o(L),o(F)),()=>{d(m,qi(o(E).trim()?o(x).filter(c=>{var b;const u=o(E).trim().toLowerCase();return c.displayLabel.toLowerCase().includes(u)||(((b=c.description)==null?void 0:b.toLowerCase().includes(u))??!1)||c.ref.toLowerCase().includes(u)||Lo(c.parseHint).toLowerCase().includes(u)}):o(x),o(L),o(F)))}),Ss(),Ds();var Wr=Zl(),Nr=X(Wr);$r(Nr,{get open(){return o(J)},onOpenChange:c=>{d(J,c),c||d(Q,!1)},children:(c,u)=>{vo(c,{children:(b,_)=>{var H=Tl(),I=X(H);ti(I,{class:"modal-overlay"});var K=M(I,2);ei(K,{class:"modal","aria-describedby":void 0,children:(wt,Ft)=>{var Ct=Fl(),N=X(Ct),lt=S(N);ni(lt,{class:"modal-title",children:(ct,Pt)=>{zt();var Ot=Xe();kt(()=>Lt(Ot,o(V)?"编辑信源":"添加信源")),z(ct,Ot)},$$slots:{default:!0}});var pt=M(lt,2);go(pt,{class:"modal-close","aria-label":"关闭",children:(ct,Pt)=>{zt();var Ot=Xe("✕");z(ct,Ot)},$$slots:{default:!0}}),C(N);var ut=M(N,2),_t=S(ut),Mt=M(S(_t),2),Tt=S(Mt);Ye(Tt),C(Mt),C(_t);var bt=M(_t,2),St=M(S(bt),2),gt=S(St);let vt;var mt=S(gt);Ms(mt,{size:14,class:"parse-hint-icon"}),zt(2),C(gt);var At=M(gt,2);let Ut;var Vo=S(At);Pl(Vo,{size:14,class:"parse-hint-icon"}),zt(2),C(At);var le=M(At,2);let Ko;var so=S(le);Ls(so,{size:14,class:"parse-hint-icon"}),zt(2),C(le);var jt=M(le,2);let hn;var ao=S(jt);Cl(ao,{size:14,class:"parse-hint-icon"}),zt(2),C(jt),C(St),C(bt);var Ve=M(bt,2),lo=M(S(Ve),2);Ye(lo),C(Ve);var ce=M(Ve,2),co=M(S(ce),2);Ye(co),C(ce);var ue=M(ce,2),pn=S(ue),vn=M(S(pn),2);Ye(vn),C(pn);var uo=M(pn,2),gn=M(S(uo),2);Zo(gn,5,()=>g,qr,(ct,Pt)=>{var Ot=Al(),Xo=S(Ot,!0);C(Ot);var po={};kt(()=>{Lt(Xo,(o(Pt),st(()=>o(Pt).label))),po!==(po=(o(Pt),st(()=>o(Pt).value)))&&(Ot.value=(Ot.__value=(o(Pt),st(()=>o(Pt).value)))??"")}),z(ct,Ot)}),C(gn),C(uo),C(ue);var Gt=M(ue,2),mn=M(S(Gt),2);Ye(mn),C(Gt);var fo=M(Gt,2);{var Uo=ct=>{var Pt=zl(),Ot=S(Pt,!0);C(Pt),kt(()=>Lt(Ot,o(it))),z(ct,Pt)};xt(fo,ct=>{o(it)&&ct(Uo)})}C(ut);var ze=M(ut,2),Ke=S(ze),ho=S(Ke);{var jo=ct=>{var Pt=dt(),Ot=X(Pt);{var Xo=je=>{var $t=kl(),yn=M(S($t),2),Ps=M(yn,2);C($t),kt(()=>yn.disabled=o(Z)),Et("click",yn,ts),Et("click",Ps,()=>d(Q,!1)),z(je,$t)},po=je=>{var $t=El(),yn=S($t);bi(yn,{size:13}),zt(),C($t),kt(()=>$t.disabled=o(Z)),Et("click",$t,()=>d(Q,!0)),z(je,$t)};xt(Ot,je=>{o(Q)?je(Xo):je(po,-1)})}z(ct,Pt)};xt(ho,ct=>{o(V)&&ct(jo)})}C(Ke);var de=M(Ke,2),ke=S(de);go(ke,{class:"btn-cancel",get disabled(){return o(Z)},children:(ct,Pt)=>{zt();var Ot=Xe("取消");z(ct,Ot)},$$slots:{default:!0}});var Ue=M(ke,2),_s=S(Ue,!0);C(Ue),C(de),C(ze),kt(()=>{vt=qe(gt,1,"parse-hint svelte-1beoyzy",null,vt,{active:o(h)==="rss"}),Ut=qe(At,1,"parse-hint svelte-1beoyzy",null,Ut,{active:o(h)==="email"}),Ko=qe(le,1,"parse-hint svelte-1beoyzy",null,Ko,{active:o(h)==="plugin"}),hn=qe(jt,1,"parse-hint svelte-1beoyzy",null,hn,{active:o(h)==="llm"}),Ue.disabled=o(Z),Lt(_s,o(Z)?"保存中…":"保存")}),Je(Tt,()=>o(Rt),ct=>d(Rt,ct)),Je(lo,()=>o(We),ct=>d(We,ct)),Je(co,()=>o(Ne),ct=>d(Ne,ct)),Je(vn,()=>o(dn),ct=>d(dn,ct)),Ts(gn,()=>o(fn),ct=>d(fn,ct)),Je(mn,()=>o(He),ct=>d(He,ct)),Et("click",Ue,$i),z(wt,Ct)},$$slots:{default:!0}}),z(b,H)},$$slots:{default:!0}})},$$slots:{default:!0}});var Hr=M(Nr,2);$r(Hr,{get open(){return o(nt)},onOpenChange:ss,children:(c,u)=>{vo(c,{children:(b,_)=>{var H=Ll(),I=X(H);ti(I,{class:"modal-overlay"});var K=M(I,2);ei(K,{class:"modal","aria-describedby":"remove-source-desc",children:(wt,Ft)=>{var Ct=Ml(),N=X(Ct),lt=S(N);ni(lt,{class:"modal-title",children:(gt,vt)=>{zt();var mt=Xe("移除信源");z(gt,mt)},$$slots:{default:!0}});var pt=M(lt,2);go(pt,{class:"modal-close","aria-label":"关闭",children:(gt,vt)=>{zt();var mt=Xe("✕");z(gt,mt)},$$slots:{default:!0}}),C(N);var ut=M(N,2),_t=M(S(ut),2);{var Mt=gt=>{var vt=Dl(),mt=S(vt,!0);C(vt),kt(()=>Lt(mt,o(a))),z(gt,vt)};xt(_t,gt=>{o(a)&>(Mt)})}C(ut);var Tt=M(ut,2),bt=S(Tt);{let gt=te(()=>!!o(tt));go(bt,{class:"btn-cancel",get disabled(){return o(gt)},children:(vt,mt)=>{zt();var At=Xe("取消");z(vt,At)},$$slots:{default:!0}})}var St=M(bt,2);C(Tt),kt(()=>St.disabled=!!o(tt)),Et("click",St,ls),z(wt,Ct)},$$slots:{default:!0}}),z(b,H)},$$slots:{default:!0}})},$$slots:{default:!0}});var Rr=M(Hr,2);{var fs=c=>{{let u=te(()=>(o(rt),st(()=>{var I;return((I=o(rt))==null?void 0:I.ref)??""}))),b=te(()=>(o(rt),st(()=>{var I;return((I=o(rt))==null?void 0:I.displayLabel)??""}))),_=te(()=>(o(rt),st(()=>{var I,K;return((K=(I=o(rt))==null?void 0:I.description)==null?void 0:K.trim())??""}))),H=te(()=>(o(rt),st(()=>{var I,K;return((K=(I=o(rt))==null?void 0:I.proxy)==null?void 0:K.trim())??""})));Is(c,{variant:"overlay",get open(){return o(ht)},get sourceRef(){return o(u)},get sourceLabel(){return o(b)},get sourceDescription(){return o(_)},get sourceProxy(){return o(H)},onOpenChange:I=>{d(ht,I),I||d(rt,null)}})}};xt(Rr,c=>{r(),st(()=>r().url.pathname!=="/")&&c(fs)})}var Br=M(Rr,2),Vr=S(Br),No=S(Vr),Kr=S(No),Ho=S(Kr),Ro=S(Ho);Ye(Ro);var hs=M(Ro,2);{var ps=c=>{wi(c,{get open(){return o(Io)},onOpenChange:u=>{d(Io,u)},children:(u,b)=>{var _=Nl(),H=X(_);{let K=te(()=>(o(L),st(()=>Tr(o(L))))),wt=te(()=>o(F)==="asc"?" 升序":" 降序");yi(H,{type:"button",class:"btn-sort",get title(){return`排序:${o(K)??""}${o(wt)??""},点此选择依据或同项切换方向`},"aria-label":"排序",children:(Ft,Ct)=>{bl(Ft,{size:16})},$$slots:{default:!0}})}var I=M(H,2);vo(I,{children:(K,wt)=>{mi(K,{class:"dropdown-panel sort-menu",sideOffset:6,align:"start",children:(Ft,Ct)=>{var N=dt(),lt=X(N);Zo(lt,1,()=>Qi,qr,(pt,ut)=>{var _t=Wl();let Mt;var Tt=S(_t),bt=S(Tt,!0);C(Tt);var St=M(Tt,2);{var gt=vt=>{var mt=Il(),At=S(mt,!0);C(mt),kt(()=>Lt(At,o(F)==="asc"?"↑":"↓")),z(vt,mt)};xt(St,vt=>{o(L)===o(ut)&&vt(gt)})}C(_t),kt(vt=>{Mt=qe(_t,1,"sort-menu-item svelte-1beoyzy",null,Mt,{active:o(L)===o(ut)}),Lt(bt,vt)},[()=>(o(ut),st(()=>Tr(o(ut))))]),Et("click",_t,()=>Zi(o(ut))),z(pt,_t)}),z(Ft,N)},$$slots:{default:!0}})},$$slots:{default:!0}}),z(u,_)},$$slots:{default:!0}})};xt(hs,c=>{r(),o(x),st(()=>r().url.pathname==="/"&&o(x).length>0)&&c(ps)})}C(Ho);var Ur=M(Ho,2),Bo=S(Ur),vs=S(Bo);ia(vs,{size:16,"aria-hidden":"true"}),C(Bo),C(Ur),C(Kr),C(No);var jr=M(No,2),gs=S(jr);{var ms=c=>{var u=Hl();z(c,u)},ys=c=>{var u=Rl(),b=S(u,!0);C(u),kt(()=>Lt(b,o(T))),z(c,u)},ws=c=>{var u=Bl(),b=M(S(u));zt(),C(u),Et("click",b,Dr),z(c,u)},bs=c=>{var u=Vl();z(c,u)},xs=c=>{var u=Jl();Zo(u,5,()=>o(m),b=>b.ref,(b,_)=>{const H=te(()=>(Jo(_i),o(_),st(()=>_i(o(_).ref))));var I=ql(),K=S(I),wt=S(K),Ft=S(wt);{var Ct=bt=>{var St=Ul(),gt=S(St);{var vt=mt=>{var At=Kl();kt(Ut=>Qo(At,"src",Ut),[()=>(Jo(Pi),Jo(o(H)),st(()=>Pi(o(H))))]),ks("error",At,()=>{d($,{...o($),[o(_).ref]:!0})}),Es(At),z(mt,At)};xt(gt,mt=>{o($),o(_),st(()=>!o($)[o(_).ref])&&mt(vt)})}C(St),z(bt,St)};xt(Ft,bt=>{o(H)&&bt(Ct)})}var N=M(Ft,2),lt=S(N),pt=S(lt,!0);C(lt);var ut=M(lt,2),_t=S(ut,!0);C(ut),C(N),C(wt),C(K);var Mt=M(K,2),Tt=S(Mt);{let bt=te(()=>(o(R),o(_),st(()=>o(R)===o(_).ref)));wi(Tt,{get open(){return o(bt)},onOpenChange:St=>{d(R,St?o(_).ref:null)},children:(St,gt)=>{var vt=Yl(),mt=X(vt);yi(mt,{class:"btn-icon",title:"更多",onclick:Ut=>Ut.stopPropagation(),children:(Ut,Vo)=>{_l(Ut,{size:13})},$$slots:{default:!0}});var At=M(mt,2);vo(At,{children:(Ut,Vo)=>{mi(Ut,{class:"dropdown-panel more-menu",sideOffset:6,align:"center",onclick:le=>le.stopPropagation(),children:(le,Ko)=>{var so=Xl(),jt=X(so);let hn;var ao=S(jt);Ws(ao,{size:14});var Ve=M(ao,2),lo=S(Ve,!0);C(Ve),C(jt);var ce=M(jt,2),co=S(ce);Ol(co,{size:14}),zt(2),C(ce);var ue=M(ce,2),pn=S(ue);xl(pn,{size:14}),zt(2),C(ue);var vn=M(ue,2);{var uo=de=>{var ke=jl(),Ue=S(ke);Ns(Ue,{size:14}),zt(2),C(ke),kt(()=>Qo(ke,"href",(o(_),st(()=>o(_).ref)))),z(de,ke)},gn=W(()=>(o(_),st(()=>os(o(_).ref))));xt(vn,de=>{o(gn)&&de(uo)})}var Gt=M(vn,2),mn=S(Gt);Sl(mn,{size:14});var fo=M(mn,2),Uo=S(fo,!0);C(fo),C(Gt);var ze=M(Gt,2),Ke=S(ze);bi(Ke,{size:14});var ho=M(Ke,2),jo=S(ho,!0);C(ho),C(ze),kt(()=>{hn=qe(jt,1,"more-menu-item svelte-1beoyzy",null,hn,{pulling:o(_).ref in n()}),jt.disabled=(o(_),n(),st(()=>o(_).ref in n())),Lt(lo,(o(_),n(),st(()=>o(_).ref in n()?"拉取中…":"拉取"))),Gt.disabled=(o(et),o(_),st(()=>o(et)===o(_).ref)),Lt(Uo,(o(et),o(_),st(()=>o(et)===o(_).ref?"清空中…":"清空该源条目"))),ze.disabled=(o(tt),o(_),st(()=>o(tt)===o(_).ref)),Lt(jo,(o(tt),o(_),st(()=>o(tt)===o(_).ref?"移除中…":"移除信源")))}),Et("click",jt,de=>{ns(o(_).ref,de),d(R,null)}),Et("click",ce,()=>{Gi(o(_)),d(R,null)}),Et("click",ue,()=>is(o(_).ref)),Et("click",Gt,()=>cs(o(_).ref)),Et("click",ze,()=>as(o(_).ref)),z(le,so)},$$slots:{default:!0}})},$$slots:{default:!0}}),z(St,vt)},$$slots:{default:!0}})}C(Mt),C(I),kt(()=>{Qo(wt,"title",(o(_),st(()=>o(_).ref))),Lt(pt,(o(_),st(()=>o(_).displayLabel))),Lt(_t,(o(_),st(()=>o(_).count)))}),Et("click",I,bt=>us(o(_),bt)),Et("keydown",I,bt=>ds(o(_),bt)),z(b,I)}),C(u),z(c,u)};xt(gs,c=>{o(D)?c(ms):o(T)?c(ys,1):(o(x),st(()=>o(x).length===0)?c(ws,2):(o(m),st(()=>o(m).length===0)?c(bs,3):c(xs,-1)))})}C(jr),C(Vr),C(Br),Je(Ro,()=>o(E),c=>d(E,c)),Et("click",Bo,Dr),z(e,Wr),se(),s()}zs(["click","keydown"]);export{yc as S};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import{c as S,a as r,t as et,f as p}from"./BK3WtZwv.js";import"./lk5LaiqA.js";import{f as N,at as tt,b4 as ve,a4 as Oe,an as Ne,a5 as x,U as Me,i as e,au as st,aA as W,aw as P,av as s,ay as at,az as L,ax as t}from"./BbWUOQ_m.js";import{s as J}from"./B-OsL1Ct.js";import{l as K,s as Q,p as q}from"./xtNWTdbD.js";import{I as Y,P as rt,a as lt,b as it,c as ot,d as nt,D as vt}from"./mW5RwvnK.js";import{s as D}from"./DMWEh-Ek.js";import{i as U}from"./Dt2CddFe.js";import{e as je}from"./BQqoDzLx.js";import{c as X}from"./DFuhmi31.js";import{s as M}from"./B2Q1a1-H.js";import{a as ct}from"./CBY2biv-.js";import{w as Be}from"./D5GvRCv7.js";function Gt(f,a){const l=K(a,["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 i=[["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"}]];Y(f,Q({name:"rss"},()=>l,{get iconNode(){return i},children:(m,T)=>{var n=S(),y=N(n);J(y,a,"default",{}),r(m,n)},$$slots:{default:!0}}))}function Vt(f,a){const l=K(a,["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 i=[["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"}]];Y(f,Q({name:"puzzle"},()=>l,{get iconNode(){return i},children:(m,T)=>{var n=S(),y=N(n);J(y,a,"default",{}),r(m,n)},$$slots:{default:!0}}))}function dt(f,a){const l=K(a,["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 i=[["path",{d:"M18 6 6 18"}],["path",{d:"m6 6 12 12"}]];Y(f,Q({name:"x"},()=>l,{get iconNode(){return i},children:(m,T)=>{var n=S(),y=N(n);J(y,a,"default",{}),r(m,n)},$$slots:{default:!0}}))}function qe(f,a){const l=K(a,["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 i=[["path",{d:"M15 3h6v6"}],["path",{d:"M10 14 21 3"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}]];Y(f,Q({name:"external-link"},()=>l,{get iconNode(){return i},children:(m,T)=>{var n=S(),y=N(n);J(y,a,"default",{}),r(m,n)},$$slots:{default:!0}}))}function ut(f,a){const l=K(a,["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 i=[["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"}]];Y(f,Q({name:"refresh-cw"},()=>l,{get iconNode(){return i},children:(m,T)=>{var n=S(),y=N(n);J(y,a,"default",{}),r(m,n)},$$slots:{default:!0}}))}function Ue(f,a){const l=K(a,["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 i=[["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"}]];Y(f,Q({name:"globe"},()=>l,{get iconNode(){return i},children:(m,T)=>{var n=S(),y=N(n);J(y,a,"default",{}),r(m,n)},$$slots:{default:!0}}))}const ke=Be({});function Wt(f,a){ke.update(l=>({...l,[f]:a}))}function Xt(f){ke.update(a=>{const l={...a};return delete l[f],l})}var ht=p('<span class="source-sheet-proxy svelte-ypseth" aria-label="已配置代理"><!></span>'),pt=p('<div class="source-sheet-state svelte-ypseth">加载中…</div>'),ft=p('<div class="source-sheet-state err svelte-ypseth"> </div>'),_t=p('<div class="source-sheet-state svelte-ypseth">暂无条目</div>'),mt=p('<li class="source-feed-row svelte-ypseth"><a class="source-feed-link svelte-ypseth" target="_blank" rel="noopener noreferrer"><span class="source-feed-title svelte-ypseth"> </span> <span class="source-feed-meta svelte-ypseth"><time> </time> <span class="source-feed-ext svelte-ypseth" aria-hidden="true"><!></span></span></a></li>'),yt=p('<ul class="source-feed-list svelte-ypseth"></ul>'),gt=p('<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></div> <p class="source-sheet-sub source-sheet-sub-desc svelte-ypseth"> </p></div> <!></header> <div class="source-sheet-body svelte-ypseth"><!></div>',1),$t=p("<!> <!>",1),bt=p('<span class="source-sheet-proxy svelte-ypseth" aria-label="已配置代理"><!></span>'),xt=p('<div class="source-sheet-pull-status svelte-ypseth" title="拉取中…" aria-live="polite"><!></div>'),Pt=p('<div class="source-sheet-state svelte-ypseth">加载中…</div>'),zt=p('<div class="source-sheet-state err svelte-ypseth"> </div>'),Nt=p('<div class="source-sheet-state svelte-ypseth">暂无条目</div>'),Mt=p('<li class="source-feed-row svelte-ypseth"><a class="source-feed-link svelte-ypseth" target="_blank" rel="noopener noreferrer"><span class="source-feed-title svelte-ypseth"> </span> <span class="source-feed-meta svelte-ypseth"><time> </time> <span class="source-feed-ext svelte-ypseth" aria-hidden="true"><!></span></span></a></li>'),kt=p('<ul class="source-feed-list svelte-ypseth"></ul>'),Dt=p('<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></div> <p class="source-sheet-sub source-sheet-sub-desc svelte-ypseth"> </p></div> <!></header> <div class="source-sheet-body svelte-ypseth"><!></div>',1),Lt=p('<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>'),St=p('<aside class="source-feed-panel-inline svelte-ypseth" aria-label="信源条目列表"><!></aside>');function Jt(f,a){tt(a,!0);let l=q(a,"open",3,!1),i=q(a,"sourceRef",3,""),m=q(a,"sourceLabel",3,""),T=q(a,"sourceDescription",3,""),n=q(a,"sourceProxy",3,""),y=q(a,"variant",3,"overlay"),Ge=q(a,"onOpenChange",3,()=>{}),k=ve(Oe([])),Z=ve(!1),A=ve(""),R=ve(0),De=ve(Oe({}));Ne(()=>{const u=ke.subscribe(g=>{x(De,g,!0)});return()=>u()});async function Le(){const u=i().trim();if(!u){x(k,[],!0);return}x(R,e(R)+1);const g=e(R);x(Z,!0),x(A,"");try{const z=new URLSearchParams;z.set("ref",u),z.set("limit","100"),z.set("offset","0");const E=await ct("/api/items?"+z.toString());if(g!==e(R))return;if(!E.ok)throw new Error(await E.text().catch(()=>`HTTP ${E.status}`));const B=await E.json();x(k,Array.isArray(B.items)?B.items:[],!0)}catch(z){if(g!==e(R))return;x(A,z instanceof Error?z.message:String(z),!0),x(k,[],!0)}finally{g===e(R)&&x(Z,!1)}}Ne(()=>{l()&&i().trim()?Me(()=>void Le()):l()||Me(()=>{x(R,e(R)+1),x(k,[],!0),x(A,""),x(Z,!1)})});function Ve(u){if(!u)return"—";try{const g=new Date(u);return Number.isNaN(g.getTime())?"—":g.toLocaleString("zh-CN",{month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"})}catch{return"—"}}function Se(u){return Ve(u.pub_date||u.fetched_at)}const Te=W(()=>T().trim()?T().trim():"—"),Re=W(()=>[m(),i()].filter(Boolean).join(" · ")||void 0),Ee=W(()=>y()==="inline"&&l()&&i().trim()!==""&&i()in e(De));let Ie=!1;Ne(()=>{const u=e(Ee);Ie&&!u&&l()&&y()==="inline"&&i().trim()&&Me(()=>void Le()),Ie=u});var Ae=S(),We=N(Ae);{var Xe=u=>{var g=S(),z=N(g);X(z,()=>vt,(E,B)=>{B(E,{get open(){return l()},onOpenChange:w=>Ge()(w),children:(w,C)=>{var F=S(),ee=N(F);X(ee,()=>rt,(te,se)=>{se(te,{children:(ce,ae)=>{var de=$t(),ue=N(de);X(ue,()=>lt,(re,H)=>{H(re,{class:"source-sheet-overlay"})});var ge=P(ue,2);X(ge,()=>it,(re,H)=>{H(re,{class:"source-sheet-panel","aria-describedby":void 0,children:($e,Ce)=>{var he=gt(),G=N(he),le=s(G),ie=s(le),pe=s(ie),fe=s(pe);X(fe,()=>ot,(o,d)=>{d(o,{class:"source-sheet-title",get title(){return e(Re)},children:(h,_)=>{at();var I=et();L(()=>D(I,m()||i()||"信源条目")),r(h,I)},$$slots:{default:!0}})});var be=P(fe,2);{var v=o=>{var d=ht(),h=s(d);Ue(h,{size:16,class:"source-sheet-proxy-globe","aria-hidden":"true"}),t(d),L(_=>M(d,"title",`代理:${_??""}`),[()=>n().trim()]),r(o,d)},c=W(()=>n().trim());U(be,o=>{e(c)&&o(v)})}t(pe),t(ie);var b=P(ie,2),$=s(b,!0);t(b),t(le);var oe=P(le,2);X(oe,()=>nt,(o,d)=>{d(o,{class:"source-sheet-close","aria-label":"关闭",children:(h,_)=>{dt(h,{size:18})},$$slots:{default:!0}})}),t(G);var O=P(G,2),ne=s(O);{var xe=o=>{var d=pt();r(o,d)},_e=o=>{var d=ft(),h=s(d,!0);t(d),L(()=>D(h,e(A))),r(o,d)},V=o=>{var d=_t();r(o,d)},Pe=o=>{var d=yt();je(d,21,()=>e(k),h=>h.id,(h,_)=>{var I=mt(),me=s(I),ze=s(me),Ke=s(ze,!0);t(ze);var Fe=P(ze,2),ye=s(Fe),Qe=s(ye,!0);t(ye);var He=P(ye,2),Ye=s(He);qe(Ye,{size:12}),t(He),t(Fe),t(me),t(I),L((j,Ze,we)=>{M(me,"href",e(_).url),M(me,"title",j),D(Ke,Ze),M(ye,"datetime",e(_).pub_date||e(_).fetched_at),D(Qe,we)},[()=>{var j;return((j=e(_).summary)==null?void 0:j.trim())||e(_).title||e(_).url},()=>{var j;return(j=e(_).title)!=null&&j.trim()?e(_).title:e(_).url},()=>Se(e(_))]),r(h,I)}),t(d),r(o,d)};U(ne,o=>{e(Z)&&e(k).length===0?o(xe):e(A)?o(_e,1):e(k).length===0?o(V,2):o(Pe,-1)})}t(O),L(()=>{M(b,"title",i()),D($,e(Te))}),r($e,he)},$$slots:{default:!0}})}),r(ce,de)},$$slots:{default:!0}})}),r(w,F)},$$slots:{default:!0}})}),r(u,g)},Je=u=>{var g=St(),z=s(g);{var E=C=>{var F=Dt(),ee=N(F),te=s(ee),se=s(te),ce=s(se),ae=s(ce),de=s(ae,!0);t(ae);var ue=P(ae,2);{var ge=v=>{var c=bt(),b=s(c);Ue(b,{size:16,class:"source-sheet-proxy-globe","aria-hidden":"true"}),t(c),L($=>M(c,"title",`代理:${$??""}`),[()=>n().trim()]),r(v,c)},re=W(()=>n().trim());U(ue,v=>{e(re)&&v(ge)})}t(ce),t(se);var H=P(se,2),$e=s(H,!0);t(H),t(te);var Ce=P(te,2);{var he=v=>{var c=xt(),b=s(c);ut(b,{size:18}),t(c),r(v,c)};U(Ce,v=>{e(Ee)&&v(he)})}t(ee);var G=P(ee,2),le=s(G);{var ie=v=>{var c=Pt();r(v,c)},pe=v=>{var c=zt(),b=s(c,!0);t(c),L(()=>D(b,e(A))),r(v,c)},fe=v=>{var c=Nt();r(v,c)},be=v=>{var c=kt();je(c,21,()=>e(k),b=>b.id,(b,$)=>{var oe=Mt(),O=s(oe),ne=s(O),xe=s(ne,!0);t(ne);var _e=P(ne,2),V=s(_e),Pe=s(V,!0);t(V);var o=P(V,2),d=s(o);qe(d,{size:12}),t(o),t(_e),t(O),t(oe),L((h,_,I)=>{M(O,"href",e($).url),M(O,"title",h),D(xe,_),M(V,"datetime",e($).pub_date||e($).fetched_at),D(Pe,I)},[()=>{var h;return((h=e($).summary)==null?void 0:h.trim())||e($).title||e($).url},()=>{var h;return(h=e($).title)!=null&&h.trim()?e($).title:e($).url},()=>Se(e($))]),r(b,oe)}),t(c),r(v,c)};U(le,v=>{e(Z)&&e(k).length===0?v(ie):e(A)?v(pe,1):e(k).length===0?v(fe,2):v(be,-1)})}t(G),L(()=>{M(ae,"title",e(Re)),D(de,m()||i()||"信源条目"),M(H,"title",i()),D($e,e(Te))}),r(C,F)},B=W(()=>l()&&i().trim()),w=C=>{var F=Lt();r(C,F)};U(z,C=>{e(B)?C(E):C(w,-1)})}t(g),r(u,g)};U(We,u=>{y()==="overlay"?u(Xe):u(Je,-1)})}r(f,Ae),st()}const Kt=Be(null);export{qe as E,Vt as P,Gt as R,Jt as S,ut as a,Xt as c,Kt as h,ke as r,Wt as s};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{l as o,a as r}from"../chunks/BXCWEhUd.js";export{o as load_css,r as start};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import{c as U,a as m,f as V}from"../chunks/BK3WtZwv.js";import"../chunks/lk5LaiqA.js";import{f as S,at as la,au as ra,av as t,ax as s,az as ia,aC as w,aD as Ha,a5 as O,i as a,aw as h,aq as Ga,U as _,z as W,u as $}from"../chunks/BbWUOQ_m.js";import{s as oa,a as T}from"../chunks/DjNLq3TF.js";import{s as na}from"../chunks/DMWEh-Ek.js";import{i as va}from"../chunks/Dt2CddFe.js";import{s as B}from"../chunks/B-OsL1Ct.js";import{a as p,s as I,G as Ra,P as ta}from"../chunks/B2Q1a1-H.js";import{i as ca}from"../chunks/CVzlFH44.js";import{p as Ca}from"../chunks/DcAshVxe.js";import{t as Fa}from"../chunks/tB7QMF3U.js";import{R as Na,P as Oa,h as P,S as Wa}from"../chunks/CtijX1u3.js";import{l as ua,s as da}from"../chunks/xtNWTdbD.js";import{I as ha}from"../chunks/mW5RwvnK.js";const Ia=!1,Ta=!1,ve=Object.freeze(Object.defineProperty({__proto__:null,prerender:Ta,ssr:Ia},Symbol.toStringTag,{value:"Module"})),Ua='<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>',Va='</title><path d="',Ba='"/></svg>',sa={title:"GitHub",slug:"github",get svg(){return Ua+"GitHub"+Va+this.path+Ba},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 Da(f,o){const n=ua(o,["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 l=[["path",{d:"M15 12h-5"}],["path",{d:"M15 8h-5"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3"}]];ha(f,da({name:"scroll-text"},()=>n,{get iconNode(){return l},children:(u,g)=>{var e=U(),d=S(e);B(d,o,"default",{}),m(u,e)},$$slots:{default:!0}}))}function La(f,o){const n=ua(o,["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 l=[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"}],["circle",{cx:"12",cy:"12",r:"3"}]];ha(f,da({name:"settings"},()=>n,{get iconNode(){return l},children:(u,g)=>{var e=U(),d=S(e);B(d,o,"default",{}),m(u,e)},$$slots:{default:!0}}))}var ja=V("<div> </div>");function Aa(f,o){la(o,!1);const n=()=>T(Fa,"$toast",l),[l,u]=oa();ca();var g=U(),e=S(g);{var d=v=>{var c=ja(),M=t(c,!0);s(c),ia(()=>{p(c,1,`toast ${n().type??""}`,"svelte-zemmny"),na(M,n().msg)}),m(v,c)};va(e,v=>{n().msg&&v(d)})}m(f,g),ra(),u()}var Ea=V('<div class="layout-feed-rail layout-feed-rail--home svelte-12qhfyh"><!></div>'),Ja=V('<div class="layout-outer svelte-12qhfyh"><div class="layout-app svelte-12qhfyh"><div id="layout-inner-scroll" class="layout-merged-cluster svelte-12qhfyh"><aside class="layout-nav-rail svelte-12qhfyh" aria-label="主导航"><nav class="nav-rail-links svelte-12qhfyh"><div class="nav-rail-cluster svelte-12qhfyh"><a href="/" title="信源" aria-label="信源"><!></a> <a href="/logs" title="日志" aria-label="日志"><!></a> <a href="/plugins" title="插件" aria-label="插件"><!></a> <a href="/admin" title="设置" aria-label="设置"><!></a></div></nav> <div class="nav-rail-footer svelte-12qhfyh"><a class="nav-rail-github svelte-12qhfyh" target="_blank" rel="noopener noreferrer" aria-label="在 GitHub 打开源码仓库" title="GitHub"><svg class="nav-rail-github-icon svelte-12qhfyh" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><path fill="currentColor"></path></svg></a> <span class="nav-rail-brand svelte-12qhfyh"> </span></div></aside> <div><main><!></main></div> <!></div></div></div> <!>',1);function ce(f,o){la(o,!1);const n=()=>T(Ca,"$page",u),l=()=>T(P,"$homeFeedPanelSource",u),[u,g]=oa(),e=W(),d=W(),v=W(),c=18;function M(i){return!!(i==="/"||i==="/admin"||i==="/admin/sources"||i==="/admin/tags"||i==="/plugins"||i==="/logs"||i.startsWith("/plugins/")||i.startsWith("/logs/"))}w(()=>n(),()=>{O(e,n().url.pathname)}),w(()=>a(e),()=>{O(d,M(a(e)))}),w(()=>(a(e),P),()=>{a(e)!=="/"&&P.set(null)}),w(()=>a(e),()=>{O(v,{sources:a(e)==="/"||a(e)==="/admin/sources",logs:a(e)==="/logs"||a(e).startsWith("/logs/"),plugins:a(e).startsWith("/plugins"),settings:a(e)==="/admin"||a(e).startsWith("/admin/")})}),Ha(),ca();var D=Ja(),k=S(D),L=t(k),j=t(L),H=t(j),G=t(H),A=t(G),y=t(A);let E;var fa=t(y);Na(fa,{size:c}),s(y);var b=h(y,2);let J;var pa=t(b);Da(pa,{size:c}),s(b);var q=h(b,2);let K;var ga=t(q);Oa(ga,{size:c}),s(q);var R=h(q,2);let Q;var ma=t(R);La(ma,{size:c}),s(R),s(A),s(G);var X=h(G,2),x=t(X),Y=t(x),_a=t(Y);s(Y),s(x);var C=h(x,2),$a=t(C,!0);s(C),s(X),s(H);var z=h(H,2);let Z;var F=t(z);let aa;var ya=t(F);B(ya,o,"default",{}),s(F),s(z);var ba=h(z,2);{var qa=i=>{var N=Ea(),za=t(N);{let wa=$(()=>l()!=null),Pa=$(()=>(l(),_(()=>{var r;return((r=l())==null?void 0:r.ref)??""}))),Sa=$(()=>(l(),_(()=>{var r;return((r=l())==null?void 0:r.displayLabel)??""}))),Ma=$(()=>(l(),_(()=>{var r;return((r=l())==null?void 0:r.description)??""}))),ka=$(()=>(l(),_(()=>{var r,ea;return((ea=(r=l())==null?void 0:r.proxy)==null?void 0:ea.trim())??""})));Wa(za,{variant:"inline",get open(){return a(wa)},get sourceRef(){return a(Pa)},get sourceLabel(){return a(Sa)},get sourceDescription(){return a(Ma)},get sourceProxy(){return a(ka)},onOpenChange:r=>{r||P.set(null)}})}s(N),m(i,N)};va(ba,i=>{a(e)==="/"&&i(qa)})}s(j),s(L),s(k);var xa=h(k,2);Aa(xa,{}),ia(()=>{E=p(y,1,"nav-rail-link svelte-12qhfyh",null,E,{active:a(v).sources}),J=p(b,1,"nav-rail-link svelte-12qhfyh",null,J,{active:a(v).logs}),K=p(q,1,"nav-rail-link svelte-12qhfyh",null,K,{active:a(v).plugins}),Q=p(R,1,"nav-rail-link svelte-12qhfyh",null,Q,{active:a(v).settings}),I(x,"href",Ra),I(_a,"d",(Ga(sa),_(()=>sa.path))),I(C,"title",ta),na($a,ta),Z=p(z,1,"shell-frame svelte-12qhfyh",null,Z,{"shell-frame--with-feed-rail":a(e)==="/"}),aa=p(F,1,"main shell svelte-12qhfyh",null,aa,{"main-fill":a(d)})}),m(f,D),ra(),g()}export{ce as component,ve as universal};
|