rssany 0.3.2 → 0.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (113) hide show
  1. package/.env.example +52 -52
  2. package/README.md +156 -147
  3. package/app/plugins/builtin/email.rssany.js +84 -84
  4. package/app/plugins/builtin/rss.rssany.js +164 -164
  5. package/app/statics/README.md +7 -7
  6. package/app/webui/build/200.html +36 -36
  7. package/app/webui/build/_app/immutable/assets/10.CmGYYZFR.css +1 -0
  8. package/app/webui/build/_app/immutable/assets/11.Dkz3VS_N.css +1 -0
  9. package/app/webui/build/_app/immutable/assets/14.BCCBoMGj.css +1 -0
  10. package/app/webui/build/_app/immutable/assets/6.Cm_jpHOq.css +1 -0
  11. package/app/webui/build/_app/immutable/assets/7.CJ3BjogD.css +1 -0
  12. package/app/webui/build/_app/immutable/assets/9.CATKVZ-n.css +1 -0
  13. package/app/webui/build/_app/immutable/assets/{SourcesList.D5Lso0bo.css → SourcesList.ke66uOSi.css} +1 -1
  14. package/app/webui/build/_app/immutable/assets/chevron-down.CV-KWLNP.css +1 -0
  15. package/app/webui/build/_app/immutable/chunks/{CGCMIfh3.js → 4TuV_psf.js} +1 -1
  16. package/app/webui/build/_app/immutable/chunks/{DAdOEnFb.js → B0czyjwj.js} +1 -1
  17. package/app/webui/build/_app/immutable/chunks/{CFwxUBGi.js → B553hBXT.js} +1 -1
  18. package/app/webui/build/_app/immutable/chunks/B8StT3Do.js +6 -0
  19. package/app/webui/build/_app/immutable/chunks/BI_ale1m.js +1 -0
  20. package/app/webui/build/_app/immutable/chunks/BK0ygNWX.js +2 -0
  21. package/app/webui/build/_app/immutable/chunks/{Brun6sCr.js → BZY5aksi.js} +2 -2
  22. package/app/webui/build/_app/immutable/chunks/{C8umpVpB.js → BnqaikL8.js} +1 -1
  23. package/app/webui/build/_app/immutable/chunks/BsQ08Wq_.js +1 -0
  24. package/app/webui/build/_app/immutable/chunks/C9wTDiHH.js +1 -0
  25. package/app/webui/build/_app/immutable/chunks/{B-CeeY89.js → CAKuIoAf.js} +1 -1
  26. package/app/webui/build/_app/immutable/chunks/CEWi_rGa.js +1 -0
  27. package/app/webui/build/_app/immutable/chunks/CIsxbQ9B.js +1 -0
  28. package/app/webui/build/_app/immutable/chunks/{ChUctqXA.js → Cc7aBSsN.js} +1 -1
  29. package/app/webui/build/_app/immutable/chunks/{DXDBlEGf.js → Czo-EcYU.js} +1 -1
  30. package/app/webui/build/_app/immutable/chunks/{BAJAS8BI.js → D8G961Hm.js} +1 -1
  31. package/app/webui/build/_app/immutable/chunks/{CS53ooo0.js → DIeahUKq.js} +1 -1
  32. package/app/webui/build/_app/immutable/chunks/DO5OXNYS.js +1 -0
  33. package/app/webui/build/_app/immutable/chunks/{Dr67pd7v.js → DhZZHWov.js} +1 -1
  34. package/app/webui/build/_app/immutable/chunks/{Dyvi1wBH.js → DptdhtA1.js} +1 -1
  35. package/app/webui/build/_app/immutable/chunks/{ClknbeNl.js → FDS7fbwH.js} +1 -1
  36. package/app/webui/build/_app/immutable/chunks/{DCEayuDt.js → IhDlsCxD.js} +1 -1
  37. package/app/webui/build/_app/immutable/chunks/Nd0ktDhd.js +1 -0
  38. package/app/webui/build/_app/immutable/chunks/{D6kzEN_P.js → SvdgnirT.js} +1 -1
  39. package/app/webui/build/_app/immutable/chunks/WW6La7Nt.js +2 -0
  40. package/app/webui/build/_app/immutable/chunks/{DsxvjlCC.js → pd_p3yYy.js} +5 -5
  41. package/app/webui/build/_app/immutable/chunks/qwlQuQWi.js +36 -0
  42. package/app/webui/build/_app/immutable/chunks/rNwPv4DZ.js +1 -0
  43. package/app/webui/build/_app/immutable/entry/app.CsaNbZ85.js +2 -0
  44. package/app/webui/build/_app/immutable/entry/start.BZt_oICN.js +1 -0
  45. package/app/webui/build/_app/immutable/nodes/{0.CQDkqUeN.js → 0.zuqEMBQT.js} +3 -3
  46. package/app/webui/build/_app/immutable/nodes/1.DzLFxso0.js +1 -0
  47. package/app/webui/build/_app/immutable/nodes/10.BC-1FXeC.js +1 -0
  48. package/app/webui/build/_app/immutable/nodes/11.CePwEHqu.js +3 -0
  49. package/app/webui/build/_app/immutable/nodes/12.eeQ9B6bg.js +1 -0
  50. package/app/webui/build/_app/immutable/nodes/13.BLKI9iZo.js +1 -0
  51. package/app/webui/build/_app/immutable/nodes/14.T9l5Rh19.js +1 -0
  52. package/app/webui/build/_app/immutable/nodes/15.39GHtAg1.js +1 -0
  53. package/app/webui/build/_app/immutable/nodes/{16.p6WfP435.js → 16.BO-9BBQ5.js} +2 -2
  54. package/app/webui/build/_app/immutable/nodes/17.BWRgFCUw.js +1 -0
  55. package/app/webui/build/_app/immutable/nodes/2.BOYqXdCa.js +1 -0
  56. package/app/webui/build/_app/immutable/nodes/3.CJw5Nx2o.js +1 -0
  57. package/app/webui/build/_app/immutable/nodes/5.9zgwFV6I.js +2 -0
  58. package/app/webui/build/_app/immutable/nodes/6.trFT-trT.js +2 -0
  59. package/app/webui/build/_app/immutable/nodes/7.DCqiDq6O.js +1 -0
  60. package/app/webui/build/_app/immutable/nodes/8.DG_T-wWN.js +1 -0
  61. package/app/webui/build/_app/immutable/nodes/9.FiPTezQy.js +1 -0
  62. package/app/webui/build/_app/version.json +1 -1
  63. package/bin/rssany.js +55 -3
  64. package/dist/index.js +314 -96
  65. package/dist/index.js.map +1 -1
  66. package/package.json +107 -103
  67. package/scripts/postinstall.mjs +44 -0
  68. package/scripts/reset.mjs +137 -135
  69. package/scripts/user-dir.mjs +52 -0
  70. package/app/webui/build/_app/immutable/assets/10.Dj8_pmut.css +0 -1
  71. package/app/webui/build/_app/immutable/assets/13.Qu_tY6H9.css +0 -1
  72. package/app/webui/build/_app/immutable/assets/5.B-dPiwB7.css +0 -1
  73. package/app/webui/build/_app/immutable/assets/6.B27N7pdA.css +0 -1
  74. package/app/webui/build/_app/immutable/assets/8.Cgji2b15.css +0 -1
  75. package/app/webui/build/_app/immutable/assets/9.BsCIAvn3.css +0 -1
  76. package/app/webui/build/_app/immutable/chunks/6prdYIKP.js +0 -1
  77. package/app/webui/build/_app/immutable/chunks/B2cyTHdf.js +0 -2
  78. package/app/webui/build/_app/immutable/chunks/B6WG2Sd3.js +0 -1
  79. package/app/webui/build/_app/immutable/chunks/BA4Gucnq.js +0 -1
  80. package/app/webui/build/_app/immutable/chunks/BXTsojX2.js +0 -36
  81. package/app/webui/build/_app/immutable/chunks/BkD3yAYe.js +0 -1
  82. package/app/webui/build/_app/immutable/chunks/C4uF_YIK.js +0 -1
  83. package/app/webui/build/_app/immutable/chunks/CBY2biv-.js +0 -1
  84. package/app/webui/build/_app/immutable/chunks/DAV9bzjw.js +0 -1
  85. package/app/webui/build/_app/immutable/chunks/DL3Q5sfb.js +0 -1
  86. package/app/webui/build/_app/immutable/chunks/DVa8Y-mQ.js +0 -1
  87. package/app/webui/build/_app/immutable/chunks/DoRPmqLn.js +0 -2
  88. package/app/webui/build/_app/immutable/chunks/vtBo8kBV.js +0 -1
  89. package/app/webui/build/_app/immutable/entry/app.dq7-6soi.js +0 -2
  90. package/app/webui/build/_app/immutable/entry/start.BnoTfBrB.js +0 -1
  91. package/app/webui/build/_app/immutable/nodes/1.BUa24rXB.js +0 -1
  92. package/app/webui/build/_app/immutable/nodes/10.MZgVhpGF.js +0 -1
  93. package/app/webui/build/_app/immutable/nodes/11.B39IbrZ0.js +0 -1
  94. package/app/webui/build/_app/immutable/nodes/12.B5B81dLQ.js +0 -1
  95. package/app/webui/build/_app/immutable/nodes/13.DWWcH27k.js +0 -6
  96. package/app/webui/build/_app/immutable/nodes/14.Db6eOPqq.js +0 -1
  97. package/app/webui/build/_app/immutable/nodes/15.B2jiP2VJ.js +0 -1
  98. package/app/webui/build/_app/immutable/nodes/2.AJd2163d.js +0 -1
  99. package/app/webui/build/_app/immutable/nodes/3.BZQeL-vz.js +0 -1
  100. package/app/webui/build/_app/immutable/nodes/4.BT_N8pCh.js +0 -2
  101. package/app/webui/build/_app/immutable/nodes/5.Bo_ftyqW.js +0 -2
  102. package/app/webui/build/_app/immutable/nodes/6.vOowdQUr.js +0 -1
  103. package/app/webui/build/_app/immutable/nodes/7.BfVbBKZu.js +0 -1
  104. package/app/webui/build/_app/immutable/nodes/8.BslYG5f2.js +0 -1
  105. package/app/webui/build/_app/immutable/nodes/9.DAgT-df2.js +0 -1
  106. /package/app/webui/build/_app/immutable/assets/{11.qYZMiTb0.css → 12.qYZMiTb0.css} +0 -0
  107. /package/app/webui/build/_app/immutable/assets/{12.DfJcfUWl.css → 13.DfJcfUWl.css} +0 -0
  108. /package/app/webui/build/_app/immutable/assets/{14.DfMfOrS3.css → 15.DfMfOrS3.css} +0 -0
  109. /package/app/webui/build/_app/immutable/assets/{15.nNGjXhCQ.css → 17.nNGjXhCQ.css} +0 -0
  110. /package/app/webui/build/_app/immutable/assets/{4.Di6rvlY-.css → 5.Di6rvlY-.css} +0 -0
  111. /package/app/webui/build/_app/immutable/assets/{7.CrNxmd8B.css → 8.CrNxmd8B.css} +0 -0
  112. /package/app/webui/build/_app/immutable/nodes/{17.BtYZF6FM.js → 18.BtYZF6FM.js} +0 -0
  113. /package/app/webui/build/_app/immutable/nodes/{18.BIzqhTqv.js → 4.BIzqhTqv.js} +0 -0
@@ -1 +0,0 @@
1
- .feed-wrap.svelte-jqd85f{margin-top:calc(-1 * var(--main-padding-top));width:100%;max-width:42rem}.feed-col.svelte-jqd85f{padding:0}.feed-header.svelte-jqd85f{padding:.875rem 0;flex-shrink:0;border-bottom:1px solid var(--color-border-muted)}.feed-header.svelte-jqd85f h2:where(.svelte-jqd85f){font-size:.9375rem;font-weight:600;margin:0 0 .25rem;color:var(--color-foreground)}.page-desc.svelte-jqd85f{font-size:.75rem;color:var(--color-muted-foreground-soft);margin:0}.state.svelte-jqd85f{padding:2rem;text-align:center;color:var(--color-muted-foreground);font-size:.875rem}.body.svelte-jqd85f{flex:1;overflow:visible;padding:1rem 0}.section-title.svelte-jqd85f{font-size:.8125rem;font-weight:600;color:var(--color-muted-foreground);margin:0 0 .25rem}.hint.svelte-jqd85f{font-size:.75rem;color:var(--color-muted-foreground-soft);margin:0 0 .5rem}.pipeline-section.svelte-jqd85f{margin-bottom:1.5rem}.step-list.svelte-jqd85f{display:flex;flex-direction:column;gap:0;border:1px solid var(--color-border);border-radius:var(--radius-sm);overflow:hidden}.step-row.svelte-jqd85f{display:flex;align-items:center;gap:.5rem;padding:.5rem .75rem;background:var(--color-card);border-bottom:1px solid var(--color-border);cursor:grab}.step-row.svelte-jqd85f:last-child{border-bottom:none}.step-row.dragging.svelte-jqd85f{opacity:.5;cursor:grabbing}.drag-handle.svelte-jqd85f{color:var(--color-muted-foreground-soft);font-size:.875rem;cursor:grab;-webkit-user-select:none;user-select:none}.toggle-wrap.svelte-jqd85f{display:flex;align-items:center;cursor:pointer}.toggle-wrap.svelte-jqd85f input:where(.svelte-jqd85f){position:absolute;opacity:0;width:0;height:0}.toggle-slider.svelte-jqd85f{width:36px;height:20px;background:var(--color-input);border-radius:10px;transition:background .2s}.toggle-slider.svelte-jqd85f:after{content:"";display:block;width:16px;height:16px;background:var(--color-card-elevated);border-radius:50%;margin:2px 0 0 2px;transition:transform .2s;box-shadow:0 1px 2px #00000059}.toggle-wrap.svelte-jqd85f input:where(.svelte-jqd85f):checked+.toggle-slider:where(.svelte-jqd85f){background:var(--color-success)}.toggle-wrap.svelte-jqd85f input:where(.svelte-jqd85f):checked+.toggle-slider:where(.svelte-jqd85f):after{transform:translate(16px)}.step-label.svelte-jqd85f{flex:1;font-size:.875rem;min-width:0;color:var(--color-foreground)}.btn-add.svelte-jqd85f{margin-top:.5rem;padding:.35rem .75rem;font-size:.8125rem;color:var(--color-muted-foreground);background:var(--color-muted);border:1px solid var(--color-border);border-radius:4px;cursor:pointer}.btn-add.svelte-jqd85f:hover:not(:disabled){background:var(--color-accent)}.save-row.svelte-jqd85f{margin-top:1rem}.btn.svelte-jqd85f{padding:.5rem 1rem;font-size:.875rem;border-radius:var(--radius-sm);cursor:pointer;border:none}.btn-primary.svelte-jqd85f{background:var(--color-primary);color:var(--color-primary-foreground)}.btn-primary.svelte-jqd85f:hover:not(:disabled){background:var(--color-primary-hover)}.btn.svelte-jqd85f:disabled{opacity:.6;cursor:not-allowed}@media(max-width:600px){.feed-wrap.svelte-jqd85f{max-width:100%}}
@@ -1 +0,0 @@
1
- var un=Object.defineProperty;var Te=e=>{throw TypeError(e)};var fn=(e,t,n)=>t in e?un(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var L=(e,t,n)=>fn(e,typeof t!="symbol"?t+"":t,n),We=(e,t,n)=>t.has(e)||Te("Cannot "+n);var w=(e,t,n)=>(We(e,t,"read from private field"),n?n.call(e):t.get(e)),P=(e,t,n)=>t.has(e)?Te("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),et=(e,t,n,i)=>(We(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n);import{c as ht,a as st,f as dn}from"./CS53ooo0.js";import{aA as C,i as m,b7 as K,a4 as de,an as nt,a5 as F,at as Yt,f as ct,au as Ut,aj as jt,aw as hn}from"./vtBo8kBV.js";import{t as gn,u as ot,C as pe,v as mn,d as he,x as Ze,y as wn,z as yn,A as vn,w as Me,B as xn,s as Zt,b as B,m as qe,F as pn,i as Le,h as bn,D as On,T as An}from"./DsxvjlCC.js";import{p as A,s as be,r as ce}from"./BAJAS8BI.js";import{i as Oe}from"./BkD3yAYe.js";import{o as Pn}from"./Dyvi1wBH.js";import{f as Sn}from"./B2cyTHdf.js";function Cn(e){return typeof e=="function"}function Ie(e){return Cn(e)?e():e}var it,mt,wt,yt,rt,ne,ie,vt;class Rn{constructor(t,n={box:"border-box"}){P(this,it,{width:0,height:0});P(this,mt,!1);P(this,wt);P(this,yt);P(this,rt);P(this,ne,C(()=>{var t;return(t=m(w(this,vt)))==null||t(),this.getSize().width}));P(this,ie,C(()=>{var t;return(t=m(w(this,vt)))==null||t(),this.getSize().height}));P(this,vt,C(()=>{const t=Ie(w(this,yt));if(t)return Sn(n=>{if(!w(this,rt))return;const i=new(w(this,rt)).ResizeObserver(r=>{et(this,mt,!0);for(const s of r){const o=w(this,wt).box==="content-box"?s.contentBoxSize:s.borderBoxSize,c=Array.isArray(o)?o:[o];w(this,it).width=c.reduce((a,l)=>Math.max(a,l.inlineSize),0),w(this,it).height=c.reduce((a,l)=>Math.max(a,l.blockSize),0)}n()});return i.observe(t),()=>{et(this,mt,!1),i.disconnect()}})}));et(this,rt,n.window??gn),et(this,wt,n),et(this,yt,t),et(this,it,{width:0,height:0})}calculateSize(){const t=Ie(w(this,yt));if(!t||!w(this,rt))return;const n=t.offsetWidth,i=t.offsetHeight;if(w(this,wt).box==="border-box")return{width:n,height:i};const r=w(this,rt).getComputedStyle(t),s=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight),o=parseFloat(r.paddingTop)+parseFloat(r.paddingBottom),c=parseFloat(r.borderLeftWidth)+parseFloat(r.borderRightWidth),a=parseFloat(r.borderTopWidth)+parseFloat(r.borderBottomWidth),l=n-s-c,h=i-o-a;return{width:l,height:h}}getSize(){return w(this,mt)?w(this,it):this.calculateSize()??w(this,it)}get current(){var t;return(t=m(w(this,vt)))==null||t(),this.getSize()}get width(){return m(w(this,ne))}get height(){return m(w(this,ie))}}it=new WeakMap,mt=new WeakMap,wt=new WeakMap,yt=new WeakMap,rt=new WeakMap,ne=new WeakMap,ie=new WeakMap,vt=new WeakMap;const Fn=["top","right","bottom","left"],at=Math.min,H=Math.max,Qt=Math.round,Jt=Math.floor,Z=e=>({x:e,y:e}),En={left:"right",right:"left",bottom:"top",top:"bottom"};function we(e,t,n){return H(e,at(t,n))}function J(e,t){return typeof e=="function"?e(t):e}function Q(e){return e.split("-")[0]}function pt(e){return e.split("-")[1]}function Ae(e){return e==="x"?"y":"x"}function Pe(e){return e==="y"?"height":"width"}function j(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Se(e){return Ae(j(e))}function Dn(e,t,n){n===void 0&&(n=!1);const i=pt(e),r=Se(e),s=Pe(r);let o=r==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(o=Gt(o)),[o,Gt(o)]}function Bn(e){const t=Gt(e);return[ye(e),t,ye(t)]}function ye(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const _e=["left","right"],ke=["right","left"],Tn=["top","bottom"],Wn=["bottom","top"];function Mn(e,t,n){switch(e){case"top":case"bottom":return n?t?ke:_e:t?_e:ke;case"left":case"right":return t?Tn:Wn;default:return[]}}function Ln(e,t,n,i){const r=pt(e);let s=Mn(Q(e),n==="start",i);return r&&(s=s.map(o=>o+"-"+r),t&&(s=s.concat(s.map(ye)))),s}function Gt(e){const t=Q(e);return En[t]+e.slice(t.length)}function In(e){return{top:0,right:0,bottom:0,left:0,...e}}function Je(e){return typeof e!="number"?In(e):{top:e,right:e,bottom:e,left:e}}function $t(e){const{x:t,y:n,width:i,height:r}=e;return{width:i,height:r,top:n,left:t,right:t+i,bottom:n+r,x:t,y:n}}function He(e,t,n){let{reference:i,floating:r}=e;const s=j(t),o=Se(t),c=Pe(o),a=Q(t),l=s==="y",h=i.x+i.width/2-r.width/2,u=i.y+i.height/2-r.height/2,f=i[c]/2-r[c]/2;let d;switch(a){case"top":d={x:h,y:i.y-r.height};break;case"bottom":d={x:h,y:i.y+i.height};break;case"right":d={x:i.x+i.width,y:u};break;case"left":d={x:i.x-r.width,y:u};break;default:d={x:i.x,y:i.y}}switch(pt(t)){case"start":d[o]-=f*(n&&l?-1:1);break;case"end":d[o]+=f*(n&&l?-1:1);break}return d}async function _n(e,t){var n;t===void 0&&(t={});const{x:i,y:r,platform:s,rects:o,elements:c,strategy:a}=e,{boundary:l="clippingAncestors",rootBoundary:h="viewport",elementContext:u="floating",altBoundary:f=!1,padding:d=0}=J(t,e),g=Je(d),x=c[f?u==="floating"?"reference":"floating":u],v=$t(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(x)))==null||n?x:x.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(c.floating)),boundary:l,rootBoundary:h,strategy:a})),O=u==="floating"?{x:i,y:r,width:o.floating.width,height:o.floating.height}:o.reference,b=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c.floating)),p=await(s.isElement==null?void 0:s.isElement(b))?await(s.getScale==null?void 0:s.getScale(b))||{x:1,y:1}:{x:1,y:1},R=$t(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:O,offsetParent:b,strategy:a}):O);return{top:(v.top-R.top+g.top)/p.y,bottom:(R.bottom-v.bottom+g.bottom)/p.y,left:(v.left-R.left+g.left)/p.x,right:(R.right-v.right+g.right)/p.x}}const kn=50,Hn=async(e,t,n)=>{const{placement:i="bottom",strategy:r="absolute",middleware:s=[],platform:o}=n,c=o.detectOverflow?o:{...o,detectOverflow:_n},a=await(o.isRTL==null?void 0:o.isRTL(t));let l=await o.getElementRects({reference:e,floating:t,strategy:r}),{x:h,y:u}=He(l,i,a),f=i,d=0;const g={};for(let y=0;y<s.length;y++){const x=s[y];if(!x)continue;const{name:v,fn:O}=x,{x:b,y:p,data:R,reset:S}=await O({x:h,y:u,initialPlacement:i,placement:f,strategy:r,middlewareData:g,rects:l,platform:c,elements:{reference:e,floating:t}});h=b??h,u=p??u,g[v]={...g[v],...R},S&&d<kn&&(d++,typeof S=="object"&&(S.placement&&(f=S.placement),S.rects&&(l=S.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:r}):S.rects),{x:h,y:u}=He(l,f,a)),y=-1)}return{x:h,y:u,placement:f,strategy:r,middlewareData:g}},Nn=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:i,placement:r,rects:s,platform:o,elements:c,middlewareData:a}=t,{element:l,padding:h=0}=J(e,t)||{};if(l==null)return{};const u=Je(h),f={x:n,y:i},d=Se(r),g=Pe(d),y=await o.getDimensions(l),x=d==="y",v=x?"top":"left",O=x?"bottom":"right",b=x?"clientHeight":"clientWidth",p=s.reference[g]+s.reference[d]-f[d]-s.floating[g],R=f[d]-s.reference[d],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l));let E=S?S[b]:0;(!E||!await(o.isElement==null?void 0:o.isElement(S)))&&(E=c.floating[b]||s.floating[g]);const I=p/2-R/2,D=E/2-y[g]/2-1,T=at(u[v],D),V=at(u[O],D),W=T,U=E-y[g]-V,M=E/2-y[g]/2+I,$=we(W,M,U),z=!a.arrow&&pt(r)!=null&&M!==$&&s.reference[g]/2-(M<W?T:V)-y[g]/2<0,_=z?M<W?M-W:M-U:0;return{[d]:f[d]+_,data:{[d]:$,centerOffset:M-$-_,...z&&{alignmentOffset:_}},reset:z}}}),zn=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,i;const{placement:r,middlewareData:s,rects:o,initialPlacement:c,platform:a,elements:l}=t,{mainAxis:h=!0,crossAxis:u=!0,fallbackPlacements:f,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:y=!0,...x}=J(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const v=Q(r),O=j(c),b=Q(c)===c,p=await(a.isRTL==null?void 0:a.isRTL(l.floating)),R=f||(b||!y?[Gt(c)]:Bn(c)),S=g!=="none";!f&&S&&R.push(...Ln(c,y,g,p));const E=[c,...R],I=await a.detectOverflow(t,x),D=[];let T=((i=s.flip)==null?void 0:i.overflows)||[];if(h&&D.push(I[v]),u){const M=Dn(r,o,p);D.push(I[M[0]],I[M[1]])}if(T=[...T,{placement:r,overflows:D}],!D.every(M=>M<=0)){var V,W;const M=(((V=s.flip)==null?void 0:V.index)||0)+1,$=E[M];if($&&(!(u==="alignment"?O!==j($):!1)||T.every(k=>j(k.placement)===O?k.overflows[0]>0:!0)))return{data:{index:M,overflows:T},reset:{placement:$}};let z=(W=T.filter(_=>_.overflows[0]<=0).sort((_,k)=>_.overflows[1]-k.overflows[1])[0])==null?void 0:W.placement;if(!z)switch(d){case"bestFit":{var U;const _=(U=T.filter(k=>{if(S){const tt=j(k.placement);return tt===O||tt==="y"}return!0}).map(k=>[k.placement,k.overflows.filter(tt=>tt>0).reduce((tt,ln)=>tt+ln,0)]).sort((k,tt)=>k[1]-tt[1])[0])==null?void 0:U[0];_&&(z=_);break}case"initialPlacement":z=c;break}if(r!==z)return{reset:{placement:z}}}return{}}}};function Ne(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ze(e){return Fn.some(t=>e[t]>=0)}const Vn=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:i}=t,{strategy:r="referenceHidden",...s}=J(e,t);switch(r){case"referenceHidden":{const o=await i.detectOverflow(t,{...s,elementContext:"reference"}),c=Ne(o,n.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:ze(c)}}}case"escaped":{const o=await i.detectOverflow(t,{...s,altBoundary:!0}),c=Ne(o,n.floating);return{data:{escapedOffsets:c,escaped:ze(c)}}}default:return{}}}}},Qe=new Set(["left","top"]);async function Kn(e,t){const{placement:n,platform:i,elements:r}=e,s=await(i.isRTL==null?void 0:i.isRTL(r.floating)),o=Q(n),c=pt(n),a=j(n)==="y",l=Qe.has(o)?-1:1,h=s&&a?-1:1,u=J(t,e);let{mainAxis:f,crossAxis:d,alignmentAxis:g}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return c&&typeof g=="number"&&(d=c==="end"?g*-1:g),a?{x:d*h,y:f*l}:{x:f*l,y:d*h}}const Xn=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,i;const{x:r,y:s,placement:o,middlewareData:c}=t,a=await Kn(t,e);return o===((n=c.offset)==null?void 0:n.placement)&&(i=c.arrow)!=null&&i.alignmentOffset?{}:{x:r+a.x,y:s+a.y,data:{...a,placement:o}}}}},Yn=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:i,placement:r,platform:s}=t,{mainAxis:o=!0,crossAxis:c=!1,limiter:a={fn:v=>{let{x:O,y:b}=v;return{x:O,y:b}}},...l}=J(e,t),h={x:n,y:i},u=await s.detectOverflow(t,l),f=j(Q(r)),d=Ae(f);let g=h[d],y=h[f];if(o){const v=d==="y"?"top":"left",O=d==="y"?"bottom":"right",b=g+u[v],p=g-u[O];g=we(b,g,p)}if(c){const v=f==="y"?"top":"left",O=f==="y"?"bottom":"right",b=y+u[v],p=y-u[O];y=we(b,y,p)}const x=a.fn({...t,[d]:g,[f]:y});return{...x,data:{x:x.x-n,y:x.y-i,enabled:{[d]:o,[f]:c}}}}}},Un=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:i,placement:r,rects:s,middlewareData:o}=t,{offset:c=0,mainAxis:a=!0,crossAxis:l=!0}=J(e,t),h={x:n,y:i},u=j(r),f=Ae(u);let d=h[f],g=h[u];const y=J(c,t),x=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(a){const b=f==="y"?"height":"width",p=s.reference[f]-s.floating[b]+x.mainAxis,R=s.reference[f]+s.reference[b]-x.mainAxis;d<p?d=p:d>R&&(d=R)}if(l){var v,O;const b=f==="y"?"width":"height",p=Qe.has(Q(r)),R=s.reference[u]-s.floating[b]+(p&&((v=o.offset)==null?void 0:v[u])||0)+(p?0:x.crossAxis),S=s.reference[u]+s.reference[b]+(p?0:((O=o.offset)==null?void 0:O[u])||0)-(p?x.crossAxis:0);g<R?g=R:g>S&&(g=S)}return{[f]:d,[u]:g}}}},jn=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,i;const{placement:r,rects:s,platform:o,elements:c}=t,{apply:a=()=>{},...l}=J(e,t),h=await o.detectOverflow(t,l),u=Q(r),f=pt(r),d=j(r)==="y",{width:g,height:y}=s.floating;let x,v;u==="top"||u==="bottom"?(x=u,v=f===(await(o.isRTL==null?void 0:o.isRTL(c.floating))?"start":"end")?"left":"right"):(v=u,x=f==="end"?"top":"bottom");const O=y-h.top-h.bottom,b=g-h.left-h.right,p=at(y-h[x],O),R=at(g-h[v],b),S=!t.middlewareData.shift;let E=p,I=R;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(I=b),(i=t.middlewareData.shift)!=null&&i.enabled.y&&(E=O),S&&!f){const T=H(h.left,0),V=H(h.right,0),W=H(h.top,0),U=H(h.bottom,0);d?I=g-2*(T!==0||V!==0?T+V:H(h.left,h.right)):E=y-2*(W!==0||U!==0?W+U:H(h.top,h.bottom))}await a({...t,availableWidth:I,availableHeight:E});const D=await o.getDimensions(c.floating);return g!==D.width||y!==D.height?{reset:{rects:!0}}:{}}}};function ae(){return typeof window<"u"}function bt(e){return Ge(e)?(e.nodeName||"").toLowerCase():"#document"}function N(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function q(e){var t;return(t=(Ge(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ge(e){return ae()?e instanceof Node||e instanceof N(e).Node:!1}function X(e){return ae()?e instanceof Element||e instanceof N(e).Element:!1}function G(e){return ae()?e instanceof HTMLElement||e instanceof N(e).HTMLElement:!1}function Ve(e){return!ae()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof N(e).ShadowRoot}function qt(e){const{overflow:t,overflowX:n,overflowY:i,display:r}=Y(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&r!=="inline"&&r!=="contents"}function Zn(e){return/^(table|td|th)$/.test(bt(e))}function le(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const qn=/transform|translate|scale|rotate|perspective|filter/,Jn=/paint|layout|strict|content/,ut=e=>!!e&&e!=="none";let ge;function Ce(e){const t=X(e)?Y(e):e;return ut(t.transform)||ut(t.translate)||ut(t.scale)||ut(t.rotate)||ut(t.perspective)||!Re()&&(ut(t.backdropFilter)||ut(t.filter))||qn.test(t.willChange||"")||Jn.test(t.contain||"")}function Qn(e){let t=lt(e);for(;G(t)&&!xt(t);){if(Ce(t))return t;if(le(t))return null;t=lt(t)}return null}function Re(){return ge==null&&(ge=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),ge}function xt(e){return/^(html|body|#document)$/.test(bt(e))}function Y(e){return N(e).getComputedStyle(e)}function ue(e){return X(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function lt(e){if(bt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ve(e)&&e.host||q(e);return Ve(t)?t.host:t}function $e(e){const t=lt(e);return xt(t)?e.ownerDocument?e.ownerDocument.body:e.body:G(t)&&qt(t)?t:$e(t)}function Ot(e,t,n){var i;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=$e(e),s=r===((i=e.ownerDocument)==null?void 0:i.body),o=N(r);if(s){const c=ve(o);return t.concat(o,o.visualViewport||[],qt(r)?r:[],c&&n?Ot(c):[])}else return t.concat(r,Ot(r,[],n))}function ve(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function tn(e){const t=Y(e);let n=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const r=G(e),s=r?e.offsetWidth:n,o=r?e.offsetHeight:i,c=Qt(n)!==s||Qt(i)!==o;return c&&(n=s,i=o),{width:n,height:i,$:c}}function Fe(e){return X(e)?e:e.contextElement}function gt(e){const t=Fe(e);if(!G(t))return Z(1);const n=t.getBoundingClientRect(),{width:i,height:r,$:s}=tn(t);let o=(s?Qt(n.width):n.width)/i,c=(s?Qt(n.height):n.height)/r;return(!o||!Number.isFinite(o))&&(o=1),(!c||!Number.isFinite(c))&&(c=1),{x:o,y:c}}const Gn=Z(0);function en(e){const t=N(e);return!Re()||!t.visualViewport?Gn:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function $n(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==N(e)?!1:t}function dt(e,t,n,i){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),s=Fe(e);let o=Z(1);t&&(i?X(i)&&(o=gt(i)):o=gt(e));const c=$n(s,n,i)?en(s):Z(0);let a=(r.left+c.x)/o.x,l=(r.top+c.y)/o.y,h=r.width/o.x,u=r.height/o.y;if(s){const f=N(s),d=i&&X(i)?N(i):i;let g=f,y=ve(g);for(;y&&i&&d!==g;){const x=gt(y),v=y.getBoundingClientRect(),O=Y(y),b=v.left+(y.clientLeft+parseFloat(O.paddingLeft))*x.x,p=v.top+(y.clientTop+parseFloat(O.paddingTop))*x.y;a*=x.x,l*=x.y,h*=x.x,u*=x.y,a+=b,l+=p,g=N(y),y=ve(g)}}return $t({width:h,height:u,x:a,y:l})}function fe(e,t){const n=ue(e).scrollLeft;return t?t.left+n:dt(q(e)).left+n}function nn(e,t){const n=e.getBoundingClientRect(),i=n.left+t.scrollLeft-fe(e,n),r=n.top+t.scrollTop;return{x:i,y:r}}function ti(e){let{elements:t,rect:n,offsetParent:i,strategy:r}=e;const s=r==="fixed",o=q(i),c=t?le(t.floating):!1;if(i===o||c&&s)return n;let a={scrollLeft:0,scrollTop:0},l=Z(1);const h=Z(0),u=G(i);if((u||!u&&!s)&&((bt(i)!=="body"||qt(o))&&(a=ue(i)),u)){const d=dt(i);l=gt(i),h.x=d.x+i.clientLeft,h.y=d.y+i.clientTop}const f=o&&!u&&!s?nn(o,a):Z(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-a.scrollLeft*l.x+h.x+f.x,y:n.y*l.y-a.scrollTop*l.y+h.y+f.y}}function ei(e){return Array.from(e.getClientRects())}function ni(e){const t=q(e),n=ue(e),i=e.ownerDocument.body,r=H(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),s=H(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let o=-n.scrollLeft+fe(e);const c=-n.scrollTop;return Y(i).direction==="rtl"&&(o+=H(t.clientWidth,i.clientWidth)-r),{width:r,height:s,x:o,y:c}}const Ke=25;function ii(e,t){const n=N(e),i=q(e),r=n.visualViewport;let s=i.clientWidth,o=i.clientHeight,c=0,a=0;if(r){s=r.width,o=r.height;const h=Re();(!h||h&&t==="fixed")&&(c=r.offsetLeft,a=r.offsetTop)}const l=fe(i);if(l<=0){const h=i.ownerDocument,u=h.body,f=getComputedStyle(u),d=h.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,g=Math.abs(i.clientWidth-u.clientWidth-d);g<=Ke&&(s-=g)}else l<=Ke&&(s+=l);return{width:s,height:o,x:c,y:a}}function ri(e,t){const n=dt(e,!0,t==="fixed"),i=n.top+e.clientTop,r=n.left+e.clientLeft,s=G(e)?gt(e):Z(1),o=e.clientWidth*s.x,c=e.clientHeight*s.y,a=r*s.x,l=i*s.y;return{width:o,height:c,x:a,y:l}}function Xe(e,t,n){let i;if(t==="viewport")i=ii(e,n);else if(t==="document")i=ni(q(e));else if(X(t))i=ri(t,n);else{const r=en(e);i={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return $t(i)}function rn(e,t){const n=lt(e);return n===t||!X(n)||xt(n)?!1:Y(n).position==="fixed"||rn(n,t)}function oi(e,t){const n=t.get(e);if(n)return n;let i=Ot(e,[],!1).filter(c=>X(c)&&bt(c)!=="body"),r=null;const s=Y(e).position==="fixed";let o=s?lt(e):e;for(;X(o)&&!xt(o);){const c=Y(o),a=Ce(o);!a&&c.position==="fixed"&&(r=null),(s?!a&&!r:!a&&c.position==="static"&&!!r&&(r.position==="absolute"||r.position==="fixed")||qt(o)&&!a&&rn(e,o))?i=i.filter(h=>h!==o):r=c,o=lt(o)}return t.set(e,i),i}function si(e){let{element:t,boundary:n,rootBoundary:i,strategy:r}=e;const o=[...n==="clippingAncestors"?le(t)?[]:oi(t,this._c):[].concat(n),i],c=Xe(t,o[0],r);let a=c.top,l=c.right,h=c.bottom,u=c.left;for(let f=1;f<o.length;f++){const d=Xe(t,o[f],r);a=H(d.top,a),l=at(d.right,l),h=at(d.bottom,h),u=H(d.left,u)}return{width:l-u,height:h-a,x:u,y:a}}function ci(e){const{width:t,height:n}=tn(e);return{width:t,height:n}}function ai(e,t,n){const i=G(t),r=q(t),s=n==="fixed",o=dt(e,!0,s,t);let c={scrollLeft:0,scrollTop:0};const a=Z(0);function l(){a.x=fe(r)}if(i||!i&&!s)if((bt(t)!=="body"||qt(r))&&(c=ue(t)),i){const d=dt(t,!0,s,t);a.x=d.x+t.clientLeft,a.y=d.y+t.clientTop}else r&&l();s&&!i&&r&&l();const h=r&&!i&&!s?nn(r,c):Z(0),u=o.left+c.scrollLeft-a.x-h.x,f=o.top+c.scrollTop-a.y-h.y;return{x:u,y:f,width:o.width,height:o.height}}function me(e){return Y(e).position==="static"}function Ye(e,t){if(!G(e)||Y(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return q(e)===n&&(n=n.ownerDocument.body),n}function on(e,t){const n=N(e);if(le(e))return n;if(!G(e)){let r=lt(e);for(;r&&!xt(r);){if(X(r)&&!me(r))return r;r=lt(r)}return n}let i=Ye(e,t);for(;i&&Zn(i)&&me(i);)i=Ye(i,t);return i&&xt(i)&&me(i)&&!Ce(i)?n:i||Qn(e)||n}const li=async function(e){const t=this.getOffsetParent||on,n=this.getDimensions,i=await n(e.floating);return{reference:ai(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function ui(e){return Y(e).direction==="rtl"}const fi={convertOffsetParentRelativeRectToViewportRelativeRect:ti,getDocumentElement:q,getClippingRect:si,getOffsetParent:on,getElementRects:li,getClientRects:ei,getDimensions:ci,getScale:gt,isElement:X,isRTL:ui};function sn(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function di(e,t){let n=null,i;const r=q(e);function s(){var c;clearTimeout(i),(c=n)==null||c.disconnect(),n=null}function o(c,a){c===void 0&&(c=!1),a===void 0&&(a=1),s();const l=e.getBoundingClientRect(),{left:h,top:u,width:f,height:d}=l;if(c||t(),!f||!d)return;const g=Jt(u),y=Jt(r.clientWidth-(h+f)),x=Jt(r.clientHeight-(u+d)),v=Jt(h),b={rootMargin:-g+"px "+-y+"px "+-x+"px "+-v+"px",threshold:H(0,at(1,a))||1};let p=!0;function R(S){const E=S[0].intersectionRatio;if(E!==a){if(!p)return o();E?o(!1,E):i=setTimeout(()=>{o(!1,1e-7)},1e3)}E===1&&!sn(l,e.getBoundingClientRect())&&o(),p=!1}try{n=new IntersectionObserver(R,{...b,root:r.ownerDocument})}catch{n=new IntersectionObserver(R,b)}n.observe(e)}return o(!0),s}function hi(e,t,n,i){i===void 0&&(i={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:a=!1}=i,l=Fe(e),h=r||s?[...l?Ot(l):[],...t?Ot(t):[]]:[];h.forEach(v=>{r&&v.addEventListener("scroll",n,{passive:!0}),s&&v.addEventListener("resize",n)});const u=l&&c?di(l,n):null;let f=-1,d=null;o&&(d=new ResizeObserver(v=>{let[O]=v;O&&O.target===l&&d&&t&&(d.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var b;(b=d)==null||b.observe(t)})),n()}),l&&!a&&d.observe(l),t&&d.observe(t));let g,y=a?dt(e):null;a&&x();function x(){const v=dt(e);y&&!sn(y,v)&&n(),y=v,g=requestAnimationFrame(x)}return n(),()=>{var v;h.forEach(O=>{r&&O.removeEventListener("scroll",n),s&&O.removeEventListener("resize",n)}),u==null||u(),(v=d)==null||v.disconnect(),d=null,a&&cancelAnimationFrame(g)}}const gi=Xn,mi=Yn,wi=zn,yi=jn,vi=Vn,xi=Nn,pi=Un,bi=(e,t,n)=>{const i=new Map,r={platform:fi,...n},s={...r.platform,_c:i};return Hn(e,t,{...r,platform:s})};function ft(e){return typeof e=="function"?e():e}function cn(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ue(e,t){const n=cn(e);return Math.round(t*n)/n}function Ni(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 Oi(e){const t=e.whileElementsMounted,n=C(()=>ft(e.open)??!0),i=C(()=>ft(e.middleware)),r=C(()=>ft(e.transform)??!0),s=C(()=>ft(e.placement)??"bottom"),o=C(()=>ft(e.strategy)??"absolute"),c=C(()=>ft(e.sideOffset)??0),a=C(()=>ft(e.alignOffset)??0),l=e.reference;let h=K(0),u=K(0);const f=ot(null);let d=K(de(m(o))),g=K(de(m(s))),y=K(de({})),x=K(!1),v=!1;const O=C(()=>{const D=f.current?Ue(f.current,m(h)):m(h),T=f.current?Ue(f.current,m(u)):m(u);return m(r)?{position:m(d),left:"0",top:"0",transform:`translate(${D}px, ${T}px)`,...f.current&&cn(f.current)>=1.5&&{willChange:"transform"}}:{position:m(d),left:`${D}px`,top:`${T}px`}});let b;function p(){l.current===null||f.current===null||bi(l.current,f.current,{middleware:m(i),placement:m(s),strategy:m(o)}).then(D=>{const T=l.current;if(Ai(T)){F(y,{...m(y),hide:{...m(y).hide,referenceHidden:!0}},!0);return}if(!m(n)&&m(h)!==0&&m(u)!==0){const W=Math.max(Math.abs(m(c)),Math.abs(m(a)),15);if(D.x<=W&&D.y<=W)return}F(h,D.x,!0),F(u,D.y,!0),F(d,D.strategy,!0),F(g,D.placement,!0),F(y,D.middlewareData,!0),F(x,!0)})}function R(){typeof b=="function"&&(b(),b=void 0)}function S(){if(R(),t===void 0){p();return}m(n)&&(l.current===null||f.current===null||(b=t(l.current,f.current,p)))}function E(){!m(n)&&f.current===null&&F(x,!1)}function I(){return[m(i),m(s),m(o),m(c),m(a),m(n)]}return nt(()=>{t===void 0&&m(n)&&p()}),nt(S),nt(()=>{if(t!==void 0){if(I(),!m(n)){v=!1;return}if(!m(x)){v=!1;return}if(!v){v=!0;return}p()}}),nt(E),nt(()=>R),{floating:f,reference:l,get strategy(){return m(d)},get placement(){return m(g)},get middlewareData(){return m(y)},get isPositioned(){return m(x)},get floatingStyles(){return m(O)},get update(){return p}}}function Ai(e){return e instanceof Element?!e.isConnected||e instanceof HTMLElement&&e.hidden?!0:e.getClientRects().length===0:!1}const Pi={top:"bottom",right:"left",bottom:"top",left:"right"},Ee=new pe("Floating.Root"),je=new pe("Floating.Content"),De=new pe("Floating.Root");class te{constructor(){L(this,"anchorNode",ot(null));L(this,"customAnchorNode",ot(null));L(this,"triggerNode",ot(null));nt(()=>{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?De.set(new te):Ee.set(new te)}}var At,Pt,St,re,Ct,oe,Rt,Ft,Et,Dt,Bt,Tt,Wt,Mt,Lt,It,_t,kt,Ht,Nt,zt,Vt,Kt,Xt;const se=class se{constructor(t,n){L(this,"opts");L(this,"root");L(this,"contentRef",ot(null));L(this,"wrapperRef",ot(null));L(this,"arrowRef",ot(null));L(this,"contentAttachment",he(this.contentRef));L(this,"wrapperAttachment",he(this.wrapperRef));L(this,"arrowAttachment",he(this.arrowRef));L(this,"arrowId",ot(Ze()));P(this,At,C(()=>{if(typeof this.opts.style=="string")return wn(this.opts.style);if(!this.opts.style)return{}}));P(this,Pt);P(this,St,new Rn(()=>this.arrowRef.current??void 0));P(this,re,C(()=>{var t;return((t=w(this,St))==null?void 0:t.width)??0}));P(this,Ct,C(()=>{var t;return((t=w(this,St))==null?void 0:t.height)??0}));P(this,oe,C(()=>{var t;return((t=this.opts.side)==null?void 0:t.current)+(this.opts.align.current!=="center"?`-${this.opts.align.current}`:"")}));P(this,Rt,C(()=>Array.isArray(this.opts.collisionBoundary.current)?this.opts.collisionBoundary.current:[this.opts.collisionBoundary.current]));P(this,Ft,C(()=>m(w(this,Rt)).length>0));P(this,Et,C(()=>({padding:this.opts.collisionPadding.current,boundary:m(w(this,Rt)).filter(yn),altBoundary:this.hasExplicitBoundaries})));P(this,Dt,K(void 0));P(this,Bt,K(void 0));P(this,Tt,K(void 0));P(this,Wt,K(void 0));P(this,Mt,C(()=>[gi({mainAxis:this.opts.sideOffset.current+m(w(this,Ct)),alignmentAxis:this.opts.alignOffset.current}),this.opts.avoidCollisions.current&&mi({mainAxis:!0,crossAxis:!1,limiter:this.opts.sticky.current==="partial"?pi():void 0,...this.detectOverflowOptions}),this.opts.avoidCollisions.current&&wi({...this.detectOverflowOptions}),yi({...this.detectOverflowOptions,apply:({rects:t,availableWidth:n,availableHeight:i})=>{const{width:r,height:s}=t.reference;F(w(this,Dt),n,!0),F(w(this,Bt),i,!0),F(w(this,Tt),r,!0),F(w(this,Wt),s,!0)}}),this.arrowRef.current&&xi({element:this.arrowRef.current,padding:this.opts.arrowPadding.current}),Si({arrowWidth:m(w(this,re)),arrowHeight:m(w(this,Ct))}),this.opts.hideWhenDetached.current&&vi({strategy:"referenceHidden",...this.detectOverflowOptions})].filter(Boolean)));L(this,"floating");P(this,Lt,C(()=>Ci(this.floating.placement)));P(this,It,C(()=>Ri(this.floating.placement)));P(this,_t,C(()=>{var t;return((t=this.floating.middlewareData.arrow)==null?void 0:t.x)??0}));P(this,kt,C(()=>{var t;return((t=this.floating.middlewareData.arrow)==null?void 0:t.y)??0}));P(this,Ht,C(()=>{var t;return((t=this.floating.middlewareData.arrow)==null?void 0:t.centerOffset)!==0}));P(this,Nt,K());P(this,zt,C(()=>Pi[this.placedSide]));P(this,Vt,C(()=>{var t,n,i;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":`${m(w(this,Dt))}px`,"--bits-floating-available-height":`${m(w(this,Bt))}px`,"--bits-floating-anchor-width":`${m(w(this,Tt))}px`,"--bits-floating-anchor-height":`${m(w(this,Wt))}px`,...((i=this.floating.middlewareData.hide)==null?void 0:i.referenceHidden)&&{visibility:"hidden","pointer-events":"none"},...m(w(this,At))},dir:this.opts.dir.current,...this.wrapperAttachment}}));P(this,Kt,C(()=>({"data-side":this.placedSide,"data-align":this.placedAlign,style:vn({...m(w(this,At))}),...this.contentAttachment})));P(this,Xt,C(()=>({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,et(this,Pt,t.updatePositionStrategy),t.customAnchor&&(this.root.customAnchorNode.current=t.customAnchor.current),Me(()=>t.customAnchor.current,i=>{this.root.customAnchorNode.current=i}),this.floating=Oi({strategy:()=>this.opts.strategy.current,placement:()=>m(w(this,oe)),middleware:()=>this.middleware,reference:this.root.anchorNode,whileElementsMounted:(...i)=>{var s;return hi(...i,{animationFrame:((s=w(this,Pt))==null?void 0:s.current)==="always"})},open:()=>this.opts.enabled.current,sideOffset:()=>this.opts.sideOffset.current,alignOffset:()=>this.opts.alignOffset.current}),nt(()=>{var i;this.floating.isPositioned&&((i=this.opts.onPlaced)==null||i.current())}),Me(()=>this.contentRef.current,i=>{if(!i||!this.opts.enabled.current)return;const r=xn(i),s=r.requestAnimationFrame(()=>{if(this.contentRef.current!==i||!this.opts.enabled.current)return;const o=r.getComputedStyle(i).zIndex;o!==this.contentZIndex&&(this.contentZIndex=o)});return()=>{r.cancelAnimationFrame(s)}}),nt(()=>{this.floating.floating.current=this.wrapperRef.current})}static create(t,n=!1){return n?je.set(new se(t,De.get())):je.set(new se(t,Ee.get()))}get hasExplicitBoundaries(){return m(w(this,Ft))}set hasExplicitBoundaries(t){F(w(this,Ft),t)}get detectOverflowOptions(){return m(w(this,Et))}set detectOverflowOptions(t){F(w(this,Et),t)}get middleware(){return m(w(this,Mt))}set middleware(t){F(w(this,Mt),t)}get placedSide(){return m(w(this,Lt))}set placedSide(t){F(w(this,Lt),t)}get placedAlign(){return m(w(this,It))}set placedAlign(t){F(w(this,It),t)}get arrowX(){return m(w(this,_t))}set arrowX(t){F(w(this,_t),t)}get arrowY(){return m(w(this,kt))}set arrowY(t){F(w(this,kt),t)}get cannotCenterArrow(){return m(w(this,Ht))}set cannotCenterArrow(t){F(w(this,Ht),t)}get contentZIndex(){return m(w(this,Nt))}set contentZIndex(t){F(w(this,Nt),t,!0)}get arrowBaseSide(){return m(w(this,zt))}set arrowBaseSide(t){F(w(this,zt),t)}get wrapperProps(){return m(w(this,Vt))}set wrapperProps(t){F(w(this,Vt),t)}get props(){return m(w(this,Kt))}set props(t){F(w(this,Kt),t)}get arrowStyle(){return m(w(this,Xt))}set arrowStyle(t){F(w(this,Xt),t)}};At=new WeakMap,Pt=new WeakMap,St=new WeakMap,re=new WeakMap,Ct=new WeakMap,oe=new WeakMap,Rt=new WeakMap,Ft=new WeakMap,Et=new WeakMap,Dt=new WeakMap,Bt=new WeakMap,Tt=new WeakMap,Wt=new WeakMap,Mt=new WeakMap,Lt=new WeakMap,It=new WeakMap,_t=new WeakMap,kt=new WeakMap,Ht=new WeakMap,Nt=new WeakMap,zt=new WeakMap,Vt=new WeakMap,Kt=new WeakMap,Xt=new WeakMap;let xe=se;class ee{constructor(t,n){L(this,"opts");L(this,"root");this.opts=t,this.root=n,t.virtualEl&&t.virtualEl.current?n.triggerNode=mn(t.virtualEl.current):n.triggerNode=t.ref}static create(t,n=!1){return n?new ee(t,De.get()):new ee(t,Ee.get())}}function Si(e){return{name:"transformOrigin",options:e,fn(t){var x,v,O;const{placement:n,rects:i,middlewareData:r}=t,o=((x=r.arrow)==null?void 0:x.centerOffset)!==0,c=o?0:e.arrowWidth,a=o?0:e.arrowHeight,[l,h]=Be(n),u={start:"0%",center:"50%",end:"100%"}[h],f=(((v=r.arrow)==null?void 0:v.x)??0)+c/2,d=(((O=r.arrow)==null?void 0:O.y)??0)+a/2;let g="",y="";return l==="bottom"?(g=o?u:`${f}px`,y=`${-a}px`):l==="top"?(g=o?u:`${f}px`,y=`${i.floating.height+a}px`):l==="right"?(g=`${-a}px`,y=o?u:`${d}px`):l==="left"&&(g=`${i.floating.width+a}px`,y=o?u:`${d}px`),{data:{x:g,y}}}}}function Be(e){const[t,n="center"]=e.split("-");return[t,n]}function Ci(e){return Be(e)[0]}function Ri(e){return Be(e)[1]}function zi(e,t){Yt(t,!0);let n=A(t,"tooltip",3,!1);te.create(n());var i=ht(),r=ct(i);Zt(r,()=>t.children??jt),st(e,i),Ut()}function Vi(e,t){Yt(t,!0);let n=A(t,"tooltip",3,!1);ee.create({id:B(()=>t.id),virtualEl:B(()=>t.virtualEl),ref:t.ref},n());var i=ht(),r=ct(i);Zt(r,()=>t.children??jt),st(e,i),Ut()}function Fi(e,t){Yt(t,!0);let n=A(t,"side",3,"bottom"),i=A(t,"sideOffset",3,0),r=A(t,"align",3,"center"),s=A(t,"alignOffset",3,0),o=A(t,"arrowPadding",3,0),c=A(t,"avoidCollisions",3,!0),a=A(t,"collisionBoundary",19,()=>[]),l=A(t,"collisionPadding",3,0),h=A(t,"hideWhenDetached",3,!1),u=A(t,"onPlaced",3,()=>{}),f=A(t,"sticky",3,"partial"),d=A(t,"updatePositionStrategy",3,"optimized"),g=A(t,"strategy",3,"fixed"),y=A(t,"dir",3,"ltr"),x=A(t,"style",19,()=>({})),v=A(t,"wrapperId",19,Ze),O=A(t,"customAnchor",3,null),b=A(t,"tooltip",3,!1);const p=xe.create({side:B(()=>n()),sideOffset:B(()=>i()),align:B(()=>r()),alignOffset:B(()=>s()),id:B(()=>t.id),arrowPadding:B(()=>o()),avoidCollisions:B(()=>c()),collisionBoundary:B(()=>a()),collisionPadding:B(()=>l()),hideWhenDetached:B(()=>h()),onPlaced:B(()=>u()),sticky:B(()=>f()),updatePositionStrategy:B(()=>d()),strategy:B(()=>g()),dir:B(()=>y()),style:B(()=>x()),enabled:B(()=>t.enabled),wrapperId:B(()=>v()),customAnchor:B(()=>O())},b()),R=C(()=>qe(p.wrapperProps,{style:{pointerEvents:"auto"}}));var S=ht(),E=ct(S);Zt(E,()=>t.content??jt,()=>({props:p.props,wrapperProps:m(R)})),st(e,S),Ut()}function Ei(e,t){Yt(t,!0),Pn(()=>{var r;(r=t.onPlaced)==null||r.call(t)});var n=ht(),i=ct(n);Zt(i,()=>t.content??jt,()=>({props:{},wrapperProps:{}})),st(e,n),Ut()}function Di(e,t){let n=A(t,"isStatic",3,!1),i=ce(t,["$$slots","$$events","$$legacy","content","isStatic","onPlaced"]);var r=ht(),s=ct(r);{var o=a=>{Ei(a,{get content(){return t.content},get onPlaced(){return t.onPlaced}})},c=a=>{Fi(a,be({get content(){return t.content},get onPlaced(){return t.onPlaced}},()=>i))};Oe(s,a=>{n()?a(o):a(c,-1)})}st(e,r)}var Bi=dn("<!> <!>",1);function an(e,t){Yt(t,!0);let n=A(t,"interactOutsideBehavior",3,"close"),i=A(t,"trapFocus",3,!0),r=A(t,"isValidEvent",3,()=>!1),s=A(t,"customAnchor",3,null),o=A(t,"isStatic",3,!1),c=A(t,"tooltip",3,!1),a=A(t,"contentPointerEvents",3,"auto"),l=ce(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"]);Di(e,{get isStatic(){return o()},get id(){return t.id},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return s()},get enabled(){return t.enabled},get tooltip(){return c()},content:(u,f)=>{let d=()=>f==null?void 0:f().props,g=()=>f==null?void 0:f().wrapperProps;var y=Bi(),x=ct(y);{var v=p=>{Le(p,{get preventScroll(){return t.preventScroll}})},O=p=>{Le(p,{get preventScroll(){return t.preventScroll}})};Oe(x,p=>{t.forceMount&&t.enabled?p(v):t.forceMount||p(O,1)})}var b=hn(x,2);pn(b,{get onOpenAutoFocus(){return t.onOpenAutoFocus},get onCloseAutoFocus(){return t.onCloseAutoFocus},get loop(){return t.loop},get enabled(){return t.enabled},get trapFocus(){return i()},get forceMount(){return t.forceMount},get ref(){return t.ref},focusScope:(R,S)=>{let E=()=>S==null?void 0:S().props;bn(R,{get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get enabled(){return t.enabled},get ref(){return t.ref},children:(I,D)=>{On(I,{get id(){return t.id},get onInteractOutside(){return t.onInteractOutside},get onFocusOutside(){return t.onFocusOutside},get interactOutsideBehavior(){return n()},get isValidEvent(){return r()},get enabled(){return t.enabled},get ref(){return t.ref},children:(V,W)=>{let U=()=>W==null?void 0:W().props;An(V,{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:(M,$)=>{var z=ht(),_=ct(z);{let k=C(()=>({props:qe(l,d(),U(),E(),{style:{pointerEvents:a()}}),wrapperProps:g()}));Zt(_,()=>t.popper??jt,()=>m(k))}st(M,z)},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{focusScope:!0}}),st(u,y)},$$slots:{content:!0}}),Ut()}function Ki(e,t){let n=A(t,"interactOutsideBehavior",3,"close"),i=A(t,"trapFocus",3,!0),r=A(t,"isValidEvent",3,()=>!1),s=A(t,"customAnchor",3,null),o=A(t,"isStatic",3,!1),c=ce(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 a=ht(),l=ct(a);{var h=u=>{an(u,be({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 o()},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 i()},get isValidEvent(){return r()},get onFocusOutside(){return t.onFocusOutside},forceMount:!1,get ref(){return t.ref}},()=>c))};Oe(l,u=>{t.shouldRender&&u(h)})}st(e,a)}function Xi(e,t){let n=A(t,"interactOutsideBehavior",3,"close"),i=A(t,"trapFocus",3,!0),r=A(t,"isValidEvent",3,()=>!1),s=A(t,"customAnchor",3,null),o=A(t,"isStatic",3,!1),c=ce(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"]);an(e,be({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 o()},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 i()},get isValidEvent(){return r()},get onFocusOutside(){return t.onFocusOutside}},()=>c,{forceMount:!0}))}export{Vi as F,Xi as P,Ki as a,zi as b,Ni as g};
@@ -1,2 +0,0 @@
1
- var Le=Object.defineProperty;var he=t=>{throw TypeError(t)};var Ie=(t,e,r)=>e in t?Le(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var q=(t,e,r)=>Ie(t,typeof e!="symbol"?e+"":e,r),re=(t,e,r)=>e.has(t)||he("Cannot "+r);var s=(t,e,r)=>(re(t,e,"read from private field"),r?r.call(t):e.get(t)),c=(t,e,r)=>e.has(t)?he("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),a=(t,e,r,i)=>(re(t,e,"write to private field"),i?i.call(t,r):e.set(t,r),r),p=(t,e,r)=>(re(t,e,"access private method"),r);import{aM as Fe,i as Ee,V as Ve,U as Ye,aN as de,O as j,A as me,g as I,h as D,Y as P,aO as _e,b as Ce,a as Pe,j as We,aP as pe,p as L,n as Te,G as se,m as ve,L as xe,aQ as ge,aR as Be,aS as He,aT as je,a8 as K,aU as Q,aV as ye,aW as $e,aX as qe,aY as we,W as Se,l as Ue,M as ie,c as Z,ay as ze,s as Ge,aZ as U,E as Xe,al as Je,a_ as Ke,a$ as Qe,ah as Ze,b0 as et,ai as tt,b1 as ne,N as rt,C as Ae,H as st,P as it,b2 as ae,e as z,b3 as nt,K as at,b4 as ot,w as ft,at as ut,k as lt,b5 as ct,au as ht}from"./vtBo8kBV.js";import{b as dt}from"./CS53ooo0.js";function _t(t){let e=0,r=me(0),i;return()=>{Fe()&&(Ee(r),Ve(()=>(e===0&&(i=Ye(()=>t(()=>de(r)))),e+=1,()=>{j(()=>{e-=1,e===0&&(i==null||i(),i=void 0,de(r))})})))}}var pt=Xe|Je;function vt(t,e,r,i){new gt(t,e,r,i)}var E,$,w,V,v,S,m,T,A,Y,k,W,x,B,R,ee,u,Re,Ne,ke,oe,X,J,fe;class gt{constructor(e,r,i,o){c(this,u);q(this,"parent");q(this,"is_pending",!1);q(this,"transform_error");c(this,E);c(this,$,D?I:null);c(this,w);c(this,V);c(this,v);c(this,S,null);c(this,m,null);c(this,T,null);c(this,A,null);c(this,Y,0);c(this,k,0);c(this,W,!1);c(this,x,new Set);c(this,B,new Set);c(this,R,null);c(this,ee,_t(()=>(a(this,R,me(s(this,Y))),()=>{a(this,R,null)})));var n;a(this,E,e),a(this,w,r),a(this,V,f=>{var d=P;d.b=this,d.f|=_e,i(f)}),this.parent=P.b,this.transform_error=o??((n=this.parent)==null?void 0:n.transform_error)??(f=>f),a(this,v,Ce(()=>{if(D){const f=s(this,$);Pe();const d=f.data===We;if(f.data.startsWith(pe)){const h=JSON.parse(f.data.slice(pe.length));p(this,u,Ne).call(this,h)}else d?p(this,u,ke).call(this):p(this,u,Re).call(this)}else p(this,u,oe).call(this)},pt)),D&&a(this,E,I)}defer_effect(e){je(e,s(this,x),s(this,B))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!s(this,w).pending}update_pending_count(e,r){p(this,u,fe).call(this,e,r),a(this,Y,s(this,Y)+e),!(!s(this,R)||s(this,W))&&(a(this,W,!0),j(()=>{a(this,W,!1),s(this,R)&&Ue(s(this,R),s(this,Y))}))}get_effect_pending(){return s(this,ee).call(this),Ee(s(this,R))}error(e){var r=s(this,w).onerror;let i=s(this,w).failed;if(!r&&!i)throw e;s(this,S)&&(ie(s(this,S)),a(this,S,null)),s(this,m)&&(ie(s(this,m)),a(this,m,null)),s(this,T)&&(ie(s(this,T)),a(this,T,null)),D&&(Z(s(this,$)),ze(),Z(Ge()));var o=!1,n=!1;const f=()=>{if(o){Qe();return}o=!0,n&&Ke(),s(this,T)!==null&&se(s(this,T),()=>{a(this,T,null)}),p(this,u,J).call(this,()=>{p(this,u,oe).call(this)})},d=l=>{try{n=!0,r==null||r(l,f),n=!1}catch(h){U(h,s(this,v)&&s(this,v).parent)}i&&a(this,T,p(this,u,J).call(this,()=>{try{return L(()=>{var h=P;h.b=this,h.f|=_e,i(s(this,E),()=>l,()=>f)})}catch(h){return U(h,s(this,v).parent),null}}))};j(()=>{var l;try{l=this.transform_error(e)}catch(h){U(h,s(this,v)&&s(this,v).parent);return}l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(d,h=>U(h,s(this,v)&&s(this,v).parent)):d(l)})}}E=new WeakMap,$=new WeakMap,w=new WeakMap,V=new WeakMap,v=new WeakMap,S=new WeakMap,m=new WeakMap,T=new WeakMap,A=new WeakMap,Y=new WeakMap,k=new WeakMap,W=new WeakMap,x=new WeakMap,B=new WeakMap,R=new WeakMap,ee=new WeakMap,u=new WeakSet,Re=function(){try{a(this,S,L(()=>s(this,V).call(this,s(this,E))))}catch(e){this.error(e)}},Ne=function(e){const r=s(this,w).failed;r&&a(this,T,L(()=>{r(s(this,E),()=>e,()=>()=>{})}))},ke=function(){const e=s(this,w).pending;if(e){this.is_pending=!0,a(this,m,L(()=>e(s(this,E))));var r=ve;j(()=>{var i=a(this,A,document.createDocumentFragment()),o=Te();i.append(o),a(this,S,p(this,u,J).call(this,()=>L(()=>s(this,V).call(this,o)))),s(this,k)===0&&(s(this,E).before(i),a(this,A,null),se(s(this,m),()=>{a(this,m,null)}),p(this,u,X).call(this,r))})}},oe=function(){var e=ve;try{if(this.is_pending=this.has_pending_snippet(),a(this,k,0),a(this,Y,0),a(this,S,L(()=>{s(this,V).call(this,s(this,E))})),s(this,k)>0){var r=a(this,A,document.createDocumentFragment());xe(s(this,S),r);const i=s(this,w).pending;a(this,m,L(()=>i(s(this,E))))}else p(this,u,X).call(this,e)}catch(i){this.error(i)}},X=function(e){this.is_pending=!1;for(const r of s(this,x))ge(r,Be),e.schedule(r);for(const r of s(this,B))ge(r,He),e.schedule(r);s(this,x).clear(),s(this,B).clear()},J=function(e){var r=P,i=we,o=Se;K(s(this,v)),Q(s(this,v)),ye(s(this,v).ctx);try{return $e.ensure(),e()}catch(n){return qe(n),null}finally{K(r),Q(i),ye(o)}},fe=function(e,r){var i;if(!this.has_pending_snippet()){this.parent&&p(i=this.parent,u,fe).call(i,e,r);return}a(this,k,s(this,k)+e),s(this,k)===0&&(p(this,u,X).call(this,r),s(this,m)&&se(s(this,m),()=>{a(this,m,null)}),s(this,A)&&(s(this,E).before(s(this,A)),a(this,A,null)))};function Nt(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}const yt=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function kt(t){return yt.includes(t)}const bt={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function Dt(t){return t=t.toLowerCase(),bt[t]??t}const Et=["touchstart","touchmove"];function mt(t){return Et.includes(t)}const Tt=["textarea","script","style","title"];function Ot(t){return Tt.includes(t)}const F=Symbol("events"),De=new Set,ue=new Set;function Mt(t){if(!D)return;t.removeAttribute("onload"),t.removeAttribute("onerror");const e=t.__e;e!==void 0&&(t.__e=void 0,queueMicrotask(()=>{t.isConnected&&t.dispatchEvent(e)}))}function Oe(t,e,r,i={}){function o(n){if(i.capture||le.call(e,n),!n.cancelBubble)return et(()=>r==null?void 0:r.call(this,n))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?j(()=>{e.addEventListener(t,o,i)}):e.addEventListener(t,o,i),o}function Lt(t,e,r,i={}){var o=Oe(e,t,r,i);return()=>{t.removeEventListener(e,o,i)}}function It(t,e,r,i,o){var n={capture:i,passive:o},f=Oe(t,e,r,n);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&Ze(()=>{e.removeEventListener(t,f,n)})}function Ft(t,e,r){(e[F]??(e[F]={}))[t]=r}function Vt(t){for(var e=0;e<t.length;e++)De.add(t[e]);for(var r of ue)r(t)}let be=null;function le(t){var O,b;var e=this,r=e.ownerDocument,i=t.type,o=((O=t.composedPath)==null?void 0:O.call(t))||[],n=o[0]||t.target;be=t;var f=0,d=be===t&&t[F];if(d){var l=o.indexOf(d);if(l!==-1&&(e===document||e===window)){t[F]=e;return}var h=o.indexOf(e);if(h===-1)return;l<=h&&(f=l)}if(n=o[f]||t.target,n!==e){tt(t,"currentTarget",{configurable:!0,get(){return n||r}});var C=we,H=P;Q(null),K(null);try{for(var N,g=[];n!==null;){var _=n.assignedSlot||n.parentNode||n.host||null;try{var y=(b=n[F])==null?void 0:b[i];y!=null&&(!n.disabled||t.target===n)&&y.call(n,t)}catch(M){N?g.push(M):N=M}if(t.cancelBubble||_===e||_===null)break;n=_}if(N){for(let M of g)queueMicrotask(()=>{throw M});throw N}}finally{t[F]=e,delete t.currentTarget,Q(C),K(H)}}}function Yt(t,e){var r=e==null?"":typeof e=="object"?`${e}`:e;r!==(t.__t??(t.__t=t.nodeValue))&&(t.__t=r,t.nodeValue=`${r}`)}function wt(t,e){return Me(t,e)}function Ct(t,e){ne(),e.intro=e.intro??!1;const r=e.target,i=D,o=I;try{for(var n=rt(r);n&&(n.nodeType!==Ae||n.data!==st);)n=it(n);if(!n)throw ae;z(!0),Z(n);const f=Me(t,{...e,anchor:n});return z(!1),f}catch(f){if(f instanceof Error&&f.message.split(`
2
- `).some(d=>d.startsWith("https://svelte.dev/e/")))throw f;return f!==ae&&console.warn("Failed to hydrate: ",f),e.recover===!1&&nt(),ne(),at(r),z(!1),wt(t,e)}finally{z(i),Z(o)}}const G=new Map;function Me(t,{target:e,anchor:r,props:i={},events:o,context:n,intro:f=!0,transformError:d}){ne();var l=void 0,h=ot(()=>{var C=r??e.appendChild(Te());vt(C,{pending:()=>{}},g=>{ut({});var _=Se;if(n&&(_.c=n),o&&(i.$$events=o),D&&dt(g,null),l=t(g,i)||{},D&&(P.nodes.end=I,I===null||I.nodeType!==Ae||I.data!==lt))throw ct(),ae;ht()},d);var H=new Set,N=g=>{for(var _=0;_<g.length;_++){var y=g[_];if(!H.has(y)){H.add(y);var O=mt(y);for(const te of[e,document]){var b=G.get(te);b===void 0&&(b=new Map,G.set(te,b));var M=b.get(y);M===void 0?(te.addEventListener(y,le,{passive:O}),b.set(y,1)):b.set(y,M+1)}}}};return N(ft(De)),ue.add(N),()=>{var O;for(var g of H)for(const b of[e,document]){var _=G.get(b),y=_.get(g);--y==0?(b.removeEventListener(g,le),_.delete(g),_.size===0&&G.delete(b)):_.set(g,y)}ue.delete(N),C!==r&&((O=C.parentNode)==null||O.removeChild(C))}});return ce.set(l,h),l}let ce=new WeakMap;function Pt(t,e){const r=ce.get(t);return r?(ce.delete(t),r(e)):Promise.resolve()}export{Ft as a,kt as b,Oe as c,Vt as d,It as e,_t as f,Ot as g,Ct as h,Nt as i,wt as m,Dt as n,Lt as o,Mt as r,Yt as s,Pt as u};
@@ -1 +0,0 @@
1
- import{s as c,g as l}from"./ClknbeNl.js";import{ah as o,ai as b,aj as f,z as p,i as d,a5 as _}from"./vtBo8kBV.js";let i=!1,s=Symbol();function y(e,n,r){const u=r[n]??(r[n]={store:null,source:p(void 0),unsubscribe:f});if(u.store!==e&&!(s in r))if(u.unsubscribe(),u.store=e??null,e==null)u.source.v=void 0,u.unsubscribe=f;else{var t=!0;u.unsubscribe=c(e,a=>{t?u.source.v=a:_(u.source,a)}),t=!1}return e&&s in r?l(e):d(u.source)}function m(){const e={};function n(){o(()=>{for(var r in e)e[r].unsubscribe();b(e,s,{enumerable:!1,value:!0})})}return[e,n]}function N(e){var n=i;try{return i=!1,[e(),i]}finally{i=n}}export{y as a,N as c,m as s};
@@ -1 +0,0 @@
1
- import{as as a}from"./vtBo8kBV.js";a();
@@ -1,36 +0,0 @@
1
- var Cr=Object.defineProperty;var vs=d=>{throw TypeError(d)};var kr=(d,e,r)=>e in d?Cr(d,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):d[e]=r;var be=(d,e,r)=>kr(d,typeof e!="symbol"?e+"":e,r),Do=(d,e,r)=>e.has(d)||vs("Cannot "+r);var h=(d,e,r)=>(Do(d,e,"read from private field"),r?r.call(d):e.get(d)),$=(d,e,r)=>e.has(d)?vs("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(d):e.set(d,r),T=(d,e,r,p)=>(Do(d,e,"write to private field"),p?p.call(d,r):e.set(d,r),r),C=(d,e,r)=>(Do(d,e,"access private method"),r);import{p as Fs,c as oe,a as y,f as M,t as zt}from"./CS53ooo0.js";import"./BA4Gucnq.js";import{o as zr}from"./Dyvi1wBH.js";import{b7 as Ge,i as t,a5 as n,aA as Se,at as yo,f as N,au as bo,av as f,aj as vo,ax as c,aC as Vt,aD as Pr,aw as v,ay as pe,az as _e,U as x,u as Fe,z as P,aq as Ao}from"./vtBo8kBV.js";import{o as jt,d as xr,a as ie,s as ze,e as $r,r as Tr}from"./B2cyTHdf.js";import{s as Sr,a as ms}from"./B6WG2Sd3.js";import{i as he}from"./BkD3yAYe.js";import{e as Fo,i as ys}from"./CFwxUBGi.js";import{d as Ut,r as Pt,a as xt,e as Or,s as No}from"./DoRPmqLn.js";import{b as $t}from"./C8umpVpB.js";import{i as Mr}from"./DVa8Y-mQ.js";import{g as bs}from"./ClknbeNl.js";import{p as Io}from"./DXDBlEGf.js";import{s as Tt}from"./CGCMIfh3.js";import{R as Dr,M as Ar,P as Fr,a as Nr,h as _s,S as Ir,b as Hr,r as Lr,s as Er,c as Wr}from"./Brun6sCr.js";import{a as Ne}from"./CBY2biv-.js";import{D as gs,a as ws,b as Cs,c as ks,d as co}from"./DAdOEnFb.js";import{P as Vr}from"./D6kzEN_P.js";import{w as Yo,j as jr,k as it,C as Ur,a as zs,b as fe,d as Ns,l as Kr,p as mo,E as Br,S as qr,g as Is,q as Jr,r as Xr,c as Yr,f as Hs,n as St,m as ho,s as lt,I as pt,P as po}from"./DsxvjlCC.js";import{s as ht}from"./ChUctqXA.js";import{p as B,s as Ve,r as Ls,l as ft}from"./BAJAS8BI.js";import{P as Qr,a as Gr,g as Ps,F as Zr,b as Rr}from"./6prdYIKP.js";function Ho(d,e){const[r,p]=d;let u=!1;const l=e.length;for(let m=0,_=l-1;m<l;_=m++){const[q,se]=e[m]??[0,0],[Te,Z]=e[_]??[0,0];se>=p!=Z>=p&&r<=(Te-q)*(p-se)/(Z-se)+q&&(u=!u)}return u}function Lo(d,e){return d[0]>=e.left&&d[0]<=e.right&&d[1]>=e.top&&d[1]<=e.bottom}function xs(d,e){const r=d.left+d.width/2,p=d.top+d.height/2,u=e.left+e.width/2,l=e.top+e.height/2,m=u-r,_=l-p;return Math.abs(m)>Math.abs(_)?m>0?"right":"left":_>0?"bottom":"top"}var Re,Ot,Mt,He,ge,ut,ct,et,tt,z,fo,Eo,Wo,Es,Ws,Ie,Vo,Vs,js;class en{constructor(e){$(this,z);$(this,Re);$(this,Ot);$(this,Mt);$(this,He,null);$(this,ge,null);$(this,ut,[]);$(this,ct,null);$(this,et,null);$(this,tt,null);T(this,Re,e),T(this,Ot,e.buffer??1);const r=e.transitIntentTimeout;T(this,Mt,typeof r=="number"&&r>0?r:null),Yo([e.triggerNode,e.contentNode,e.enabled],([p,u,l])=>{if(!p||!u||!l){T(this,ct,null),C(this,z,Ie).call(this);return}h(this,ct)&&h(this,ct)!==p&&C(this,z,Ie).call(this),T(this,ct,p);const m=jr(p),_=A=>{C(this,z,Ws).call(this,[A.clientX,A.clientY],p,u)},q=A=>{var Oe,R;const L=A.relatedTarget;if(it(L)&&u.contains(L))return;const K=((R=(Oe=h(this,Re)).ignoredTargets)==null?void 0:R.call(Oe))??[];it(L)&&K.some(W=>W===L||W.contains(L))||(T(this,ut,it(L)&&K.length>0?K.filter(W=>L.contains(W)):[]),T(this,He,[A.clientX,A.clientY]),T(this,ge,"content"),C(this,z,Eo).call(this))},se=()=>{C(this,z,Ie).call(this)},Te=()=>{C(this,z,Ie).call(this)},Z=A=>{const L=A.relatedTarget;it(L)&&p.contains(L)||(T(this,He,[A.clientX,A.clientY]),T(this,ge,"trigger"),C(this,z,Eo).call(this))};return[jt(m,"pointermove",_),jt(p,"pointerleave",q),jt(p,"pointerenter",se),jt(u,"pointerenter",Te),jt(u,"pointerleave",Z)].reduce((A,L)=>()=>{A(),L()},()=>{})})}}Re=new WeakMap,Ot=new WeakMap,Mt=new WeakMap,He=new WeakMap,ge=new WeakMap,ut=new WeakMap,ct=new WeakMap,et=new WeakMap,tt=new WeakMap,z=new WeakSet,fo=function(){h(this,et)!==null&&(cancelAnimationFrame(h(this,et)),T(this,et,null))},Eo=function(){C(this,z,fo).call(this),T(this,et,requestAnimationFrame(()=>{T(this,et,null),!(!h(this,He)||!h(this,ge))&&(C(this,z,Ie).call(this),h(this,Re).onPointerExit())}))},Wo=function(){h(this,tt)!==null&&(clearTimeout(h(this,tt)),T(this,tt,null))},Es=function(){h(this,Mt)!==null&&(C(this,z,Wo).call(this),T(this,tt,window.setTimeout(()=>{T(this,tt,null),!(!h(this,He)||!h(this,ge))&&(C(this,z,Ie).call(this),h(this,Re).onPointerExit())},h(this,Mt))))},Ws=function(e,r,p){if(!h(this,He)||!h(this,ge))return;C(this,z,fo).call(this),C(this,z,Es).call(this);const u=r.getBoundingClientRect(),l=p.getBoundingClientRect();if(h(this,ge)==="content"&&Lo(e,l)){C(this,z,Ie).call(this);return}if(h(this,ge)==="trigger"&&Lo(e,u)){C(this,z,Ie).call(this);return}if(h(this,ge)==="content"&&h(this,ut).length>0)for(const Te of h(this,ut)){const Z=Te.getBoundingClientRect();if(Lo(e,Z))return;const A=xs(u,Z),L=C(this,z,Vo).call(this,u,Z,A);if(L&&Ho(e,L))return}const m=xs(u,l),_=C(this,z,Vo).call(this,u,l,m);if(_&&Ho(e,_))return;const q=h(this,ge)==="content"?l:u,se=C(this,z,Vs).call(this,h(this,He),q,m,h(this,ge));Ho(e,se)||(C(this,z,Ie).call(this),h(this,Re).onPointerExit())},Ie=function(){T(this,He,null),T(this,ge,null),T(this,ut,[]),C(this,z,fo).call(this),C(this,z,Wo).call(this)},Vo=function(e,r,p){const u=h(this,Ot);switch(p){case"top":return[[Math.min(e.left,r.left)-u,e.top],[Math.min(e.left,r.left)-u,r.bottom],[Math.max(e.right,r.right)+u,r.bottom],[Math.max(e.right,r.right)+u,e.top]];case"bottom":return[[Math.min(e.left,r.left)-u,e.bottom],[Math.min(e.left,r.left)-u,r.top],[Math.max(e.right,r.right)+u,r.top],[Math.max(e.right,r.right)+u,e.bottom]];case"left":return[[e.left,Math.min(e.top,r.top)-u],[r.right,Math.min(e.top,r.top)-u],[r.right,Math.max(e.bottom,r.bottom)+u],[e.left,Math.max(e.bottom,r.bottom)+u]];case"right":return[[e.right,Math.min(e.top,r.top)-u],[r.left,Math.min(e.top,r.top)-u],[r.left,Math.max(e.bottom,r.bottom)+u],[e.right,Math.max(e.bottom,r.bottom)+u]]}},Vs=function(e,r,p,u){const l=h(this,Ot)*4,[m,_]=e;switch(u==="trigger"?C(this,z,js).call(this,p):p){case"top":return[[m-l,_+l],[m+l,_+l],[r.right+l,r.bottom],[r.right+l,r.top],[r.left-l,r.top],[r.left-l,r.bottom]];case"bottom":return[[m-l,_-l],[m+l,_-l],[r.right+l,r.top],[r.right+l,r.bottom],[r.left-l,r.bottom],[r.left-l,r.top]];case"left":return[[m+l,_-l],[m+l,_+l],[r.right,r.bottom+l],[r.left,r.bottom+l],[r.left,r.top-l],[r.right,r.top-l]];case"right":return[[m-l,_-l],[m-l,_+l],[r.left,r.bottom+l],[r.right,r.bottom+l],[r.right,r.top-l],[r.left,r.top-l]]}},js=function(e){switch(e){case"top":return"bottom";case"bottom":return"top";case"left":return"right";case"right":return"left"}};const jo=Yr({component:"popover",parts:["root","trigger","content","close","overlay"]}),Qo=new Ur("Popover.Root");var Kt,Bt,qt,Jt,Xt,Yt,Qt,ot,st,Le,Ze;const Go=class Go{constructor(e){$(this,Le);be(this,"opts");$(this,Kt,Ge(null));be(this,"contentPresence");$(this,Bt,Ge(null));$(this,qt,Ge(null));be(this,"overlayPresence");$(this,Jt,Ge(!1));$(this,Xt,Ge(!1));$(this,Yt,Ge(!1));$(this,Qt,Ge(0));$(this,ot,null);$(this,st,null);this.opts=e,this.contentPresence=new zs({ref:fe(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new zs({ref:fe(()=>this.overlayNode),open:this.opts.open}),Yo(()=>this.opts.open.current,r=>{r||(this.openedViaHover=!1,this.hasInteractedWithContent=!1,C(this,Le,Ze).call(this))})}static create(e){return Qo.set(new Go(e))}get contentNode(){return t(h(this,Kt))}set contentNode(e){n(h(this,Kt),e,!0)}get triggerNode(){return t(h(this,Bt))}set triggerNode(e){n(h(this,Bt),e,!0)}get overlayNode(){return t(h(this,qt))}set overlayNode(e){n(h(this,qt),e,!0)}get openedViaHover(){return t(h(this,Jt))}set openedViaHover(e){n(h(this,Jt),e,!0)}get hasInteractedWithContent(){return t(h(this,Xt))}set hasInteractedWithContent(e){n(h(this,Xt),e,!0)}get hoverCooldown(){return t(h(this,Yt))}set hoverCooldown(e){n(h(this,Yt),e,!0)}get closeDelay(){return t(h(this,Qt))}set closeDelay(e){n(h(this,Qt),e,!0)}setDomContext(e){T(this,st,e)}toggleOpen(){C(this,Le,Ze).call(this),this.opts.open.current=!this.opts.open.current}handleClose(){C(this,Le,Ze).call(this),this.opts.open.current&&(this.opts.open.current=!1)}handleHoverOpen(){C(this,Le,Ze).call(this),!this.opts.open.current&&(this.openedViaHover=!0,this.opts.open.current=!0)}handleHoverClose(){this.opts.open.current&&this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1)}handleDelayedHoverClose(){this.opts.open.current&&(!this.openedViaHover||this.hasInteractedWithContent||(C(this,Le,Ze).call(this),this.closeDelay<=0?this.opts.open.current=!1:h(this,st)&&T(this,ot,h(this,st).setTimeout(()=>{this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1),T(this,ot,null)},this.closeDelay))))}cancelDelayedClose(){C(this,Le,Ze).call(this)}markInteraction(){this.hasInteractedWithContent=!0,C(this,Le,Ze).call(this)}};Kt=new WeakMap,Bt=new WeakMap,qt=new WeakMap,Jt=new WeakMap,Xt=new WeakMap,Yt=new WeakMap,Qt=new WeakMap,ot=new WeakMap,st=new WeakMap,Le=new WeakSet,Ze=function(){h(this,ot)!==null&&h(this,st)&&(h(this,st).clearTimeout(h(this,ot)),T(this,ot,null))};let Uo=Go;var rt,Dt,dt,Pe,Bo,qo,Jo,Us,Gt;const Zo=class Zo{constructor(e,r){$(this,Pe);be(this,"opts");be(this,"root");be(this,"attachment");be(this,"domContext");$(this,rt,null);$(this,Dt,null);$(this,dt,Ge(!1));$(this,Gt,Se(()=>({id:this.opts.id.current,"aria-haspopup":"dialog","aria-expanded":Jr(this.root.opts.open.current),"data-state":Is(this.root.opts.open.current),"aria-controls":C(this,Pe,Us).call(this),[jo.trigger]:"",disabled:this.opts.disabled.current,onkeydown:this.onkeydown,onclick:this.onclick,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment})));this.opts=e,this.root=r,this.attachment=Ns(this.opts.ref,p=>this.root.triggerNode=p),this.domContext=new Kr(e.ref),this.root.setDomContext(this.domContext),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this),Yo(()=>this.opts.closeDelay.current,p=>{this.root.closeDelay=p})}static create(e){return new Zo(e,Qo.get())}onpointerenter(e){if(this.opts.disabled.current||!this.opts.openOnHover.current||mo(e)||(n(h(this,dt),!0),C(this,Pe,qo).call(this),this.root.cancelDelayedClose(),this.root.opts.open.current||this.root.hoverCooldown))return;const r=this.opts.openDelay.current;r<=0?this.root.handleHoverOpen():T(this,rt,this.domContext.setTimeout(()=>{this.root.handleHoverOpen(),T(this,rt,null)},r))}onpointerleave(e){this.opts.disabled.current||this.opts.openOnHover.current&&(mo(e)||(n(h(this,dt),!1),C(this,Pe,Bo).call(this),this.root.hoverCooldown=!1))}onclick(e){if(!this.opts.disabled.current&&e.button===0){if(C(this,Pe,Jo).call(this),t(h(this,dt))&&this.root.opts.open.current&&this.root.openedViaHover){this.root.openedViaHover=!1,this.root.hasInteractedWithContent=!0;return}t(h(this,dt))&&this.opts.openOnHover.current&&this.root.opts.open.current&&(this.root.hoverCooldown=!0),this.root.hoverCooldown&&!this.root.opts.open.current&&(this.root.hoverCooldown=!1),this.root.toggleOpen()}}onkeydown(e){this.opts.disabled.current||(e.key===Br||e.key===qr)&&(e.preventDefault(),C(this,Pe,Jo).call(this),this.root.toggleOpen())}get props(){return t(h(this,Gt))}set props(e){n(h(this,Gt),e)}};rt=new WeakMap,Dt=new WeakMap,dt=new WeakMap,Pe=new WeakSet,Bo=function(){h(this,rt)!==null&&(this.domContext.clearTimeout(h(this,rt)),T(this,rt,null))},qo=function(){h(this,Dt)!==null&&(this.domContext.clearTimeout(h(this,Dt)),T(this,Dt,null))},Jo=function(){C(this,Pe,Bo).call(this),C(this,Pe,qo).call(this)},Us=function(){var e,r;if(this.root.opts.open.current&&((e=this.root.contentNode)!=null&&e.id))return(r=this.root.contentNode)==null?void 0:r.id},Gt=new WeakMap;let Ko=Zo;var Zt,Rt;const Ro=class Ro{constructor(e,r){be(this,"opts");be(this,"root");be(this,"attachment");be(this,"onInteractOutside",e=>{if(this.opts.onInteractOutside.current(e),e.defaultPrevented||!it(e.target))return;const r=e.target.closest(jo.selector("trigger"));if(!(r&&r===this.root.triggerNode)){if(this.opts.customAnchor.current){if(it(this.opts.customAnchor.current)){if(this.opts.customAnchor.current.contains(e.target))return}else if(typeof this.opts.customAnchor.current=="string"){const p=document.querySelector(this.opts.customAnchor.current);if(p&&p.contains(e.target))return}}this.root.handleClose()}});be(this,"onEscapeKeydown",e=>{this.opts.onEscapeKeydown.current(e),!e.defaultPrevented&&this.root.handleClose()});$(this,Zt,Se(()=>({open:this.root.opts.open.current})));$(this,Rt,Se(()=>({id:this.opts.id.current,tabindex:-1,"data-state":Is(this.root.opts.open.current),[jo.content]:"",style:{pointerEvents:"auto",contain:"layout style"},onpointerdown:this.onpointerdown,onfocusin:this.onfocusin,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment})));be(this,"popperProps",{onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown});this.opts=e,this.root=r,this.attachment=Ns(this.opts.ref,p=>this.root.contentNode=p),this.onpointerdown=this.onpointerdown.bind(this),this.onfocusin=this.onfocusin.bind(this),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this),new en({triggerNode:()=>this.root.triggerNode,contentNode:()=>this.root.contentNode,enabled:()=>this.root.opts.open.current&&this.root.openedViaHover&&!this.root.hasInteractedWithContent,onPointerExit:()=>{this.root.handleDelayedHoverClose()}})}static create(e){return new Ro(e,Qo.get())}onpointerdown(e){this.root.markInteraction()}onfocusin(e){const r=e.target;it(r)&&Xr(r)&&this.root.markInteraction()}onpointerenter(e){mo(e)||this.root.cancelDelayedClose()}onpointerleave(e){mo(e)}get shouldRender(){return this.root.contentPresence.shouldRender}get shouldTrapFocus(){return!(this.root.openedViaHover&&!this.root.hasInteractedWithContent)}get snippetProps(){return t(h(this,Zt))}set snippetProps(e){n(h(this,Zt),e)}get props(){return t(h(this,Rt))}set props(e){n(h(this,Rt),e)}};Zt=new WeakMap,Rt=new WeakMap;let Xo=Ro;var tn=M("<div><div><!></div></div>"),on=M("<div><div><!></div></div>");function $s(d,e){const r=Fs();yo(e,!0);let p=B(e,"ref",15,null),u=B(e,"id",19,()=>Hs(r)),l=B(e,"forceMount",3,!1),m=B(e,"onOpenAutoFocus",3,St),_=B(e,"onCloseAutoFocus",3,St),q=B(e,"onEscapeKeydown",3,St),se=B(e,"onInteractOutside",3,St),Te=B(e,"trapFocus",3,!0),Z=B(e,"preventScroll",3,!1),A=B(e,"customAnchor",3,null),L=Ls(e,["$$slots","$$events","$$legacy","child","children","ref","id","forceMount","onOpenAutoFocus","onCloseAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","customAnchor","style"]);const K=Xo.create({id:fe(()=>u()),ref:fe(()=>p(),J=>p(J)),onInteractOutside:fe(()=>se()),onEscapeKeydown:fe(()=>q()),customAnchor:fe(()=>A())}),Oe=Se(()=>ho(L,K.props)),R=Se(()=>Te()&&K.shouldTrapFocus);function W(J){K.shouldTrapFocus||J.preventDefault(),m()(J)}var je=oe(),we=N(je);{var le=J=>{Qr(J,Ve(()=>t(Oe),()=>K.popperProps,{get ref(){return K.opts.ref},get enabled(){return K.root.opts.open.current},get id(){return u()},get trapFocus(){return t(R)},get preventScroll(){return Z()},loop:!0,forceMount:!0,get customAnchor(){return A()},onOpenAutoFocus:W,get onCloseAutoFocus(){return _()},get shouldRender(){return K.shouldRender},popper:(Ke,E)=>{let Be=()=>E==null?void 0:E().props,Ce=()=>E==null?void 0:E().wrapperProps;const re=Se(()=>ho(Be(),{style:Ps("popover")},{style:e.style}));var Me=oe(),xe=N(Me);{var qe=X=>{var V=oe(),j=N(V);{let I=Se(()=>({props:t(re),wrapperProps:Ce(),...K.snippetProps}));lt(j,()=>e.child,()=>t(I))}y(X,V)},ee=X=>{var V=tn();Ut(V,()=>({...Ce()}));var j=f(V);Ut(j,()=>({...t(re)}));var I=f(j);lt(I,()=>e.children??vo),c(j),c(V),y(X,V)};he(xe,X=>{e.child?X(qe):X(ee,-1)})}y(Ke,Me)},$$slots:{popper:!0}}))},ve=J=>{Gr(J,Ve(()=>t(Oe),()=>K.popperProps,{get ref(){return K.opts.ref},get open(){return K.root.opts.open.current},get id(){return u()},get trapFocus(){return t(R)},get preventScroll(){return Z()},loop:!0,forceMount:!1,get customAnchor(){return A()},onOpenAutoFocus:W,get onCloseAutoFocus(){return _()},get shouldRender(){return K.shouldRender},popper:(Ke,E)=>{let Be=()=>E==null?void 0:E().props,Ce=()=>E==null?void 0:E().wrapperProps;const re=Se(()=>ho(Be(),{style:Ps("popover")},{style:e.style}));var Me=oe(),xe=N(Me);{var qe=X=>{var V=oe(),j=N(V);{let I=Se(()=>({props:t(re),wrapperProps:Ce(),...K.snippetProps}));lt(j,()=>e.child,()=>t(I))}y(X,V)},ee=X=>{var V=on();Ut(V,()=>({...Ce()}));var j=f(V);Ut(j,()=>({...t(re)}));var I=f(j);lt(I,()=>e.children??vo),c(j),c(V),y(X,V)};he(xe,X=>{e.child?X(qe):X(ee,-1)})}y(Ke,Me)},$$slots:{popper:!0}}))};he(we,J=>{l()?J(le):l()||J(ve,1)})}y(d,je),bo()}var sn=M("<button><!></button>");function Ts(d,e){const r=Fs();yo(e,!0);let p=B(e,"id",19,()=>Hs(r)),u=B(e,"ref",15,null),l=B(e,"type",3,"button"),m=B(e,"disabled",3,!1),_=B(e,"openOnHover",3,!1),q=B(e,"openDelay",3,700),se=B(e,"closeDelay",3,300),Te=Ls(e,["$$slots","$$events","$$legacy","children","child","id","ref","type","disabled","openOnHover","openDelay","closeDelay"]);const Z=Ko.create({id:fe(()=>p()),ref:fe(()=>u(),L=>u(L)),disabled:fe(()=>!!m()),openOnHover:fe(()=>_()),openDelay:fe(()=>q()),closeDelay:fe(()=>se())}),A=Se(()=>ho(Te,Z.props,{type:l()}));Zr(d,{get id(){return p()},get ref(){return Z.opts.ref},children:(L,K)=>{var Oe=oe(),R=N(Oe);{var W=we=>{var le=oe(),ve=N(le);lt(ve,()=>e.child,()=>({props:t(A)})),y(we,le)},je=we=>{var le=sn();Ut(le,()=>({...t(A)}));var ve=f(le);lt(ve,()=>e.children??vo),c(le),y(we,le)};he(R,we=>{e.child?we(W):we(je,-1)})}y(L,Oe)},$$slots:{default:!0}}),bo()}function Ss(d,e){yo(e,!0);let r=B(e,"open",15,!1),p=B(e,"onOpenChange",3,St),u=B(e,"onOpenChangeComplete",3,St);Uo.create({open:fe(()=>r(),l=>{r(l),p()(l)}),onOpenChangeComplete:fe(()=>u())}),Rr(d,{children:(l,m)=>{var _=oe(),q=N(_);lt(q,()=>e.children??vo),y(l,_)},$$slots:{default:!0}}),bo()}function rn(d,e){const r=ft(e,["children","$$slots","$$events","$$legacy"]);/**
2
- * @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 p=[["path",{d:"m3 16 4 4 4-4"}],["path",{d:"M7 20V4"}],["path",{d:"m21 8-4-4-4 4"}],["path",{d:"M17 4v16"}]];pt(d,Ve({name:"arrow-down-up"},()=>r,{get iconNode(){return p},children:(u,l)=>{var m=oe(),_=N(m);ht(_,e,"default",{}),y(u,m)},$$slots:{default:!0}}))}function nn(d,e){const r=ft(e,["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 p=[["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"}]];pt(d,Ve({name:"copy"},()=>r,{get iconNode(){return p},children:(u,l)=>{var m=oe(),_=N(m);ht(_,e,"default",{}),y(u,m)},$$slots:{default:!0}}))}function an(d,e){const r=ft(e,["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 p=[["circle",{cx:"12",cy:"12",r:"1"}],["circle",{cx:"19",cy:"12",r:"1"}],["circle",{cx:"5",cy:"12",r:"1"}]];pt(d,Ve({name:"ellipsis"},()=>r,{get iconNode(){return p},children:(u,l)=>{var m=oe(),_=N(m);ht(_,e,"default",{}),y(u,m)},$$slots:{default:!0}}))}function ln(d,e){const r=ft(e,["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 p=[["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"}]];pt(d,Ve({name:"external-link"},()=>r,{get iconNode(){return p},children:(u,l)=>{var m=oe(),_=N(m);ht(_,e,"default",{}),y(u,m)},$$slots:{default:!0}}))}function un(d,e){const r=ft(e,["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 p=[["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"}]];pt(d,Ve({name:"pencil"},()=>r,{get iconNode(){return p},children:(u,l)=>{var m=oe(),_=N(m);ht(_,e,"default",{}),y(u,m)},$$slots:{default:!0}}))}function Os(d,e){const r=ft(e,["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 p=[["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"}]];pt(d,Ve({name:"trash-2"},()=>r,{get iconNode(){return p},children:(u,l)=>{var m=oe(),_=N(m);ht(_,e,"default",{}),y(u,m)},$$slots:{default:!0}}))}function cn(d,e){const r=ft(e,["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 p=[["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"}]];pt(d,Ve({name:"trash"},()=>r,{get iconNode(){return p},children:(u,l)=>{var m=oe(),_=N(m);ht(_,e,"default",{}),y(u,m)},$$slots:{default:!0}}))}function Ms(d){const e=d.trim();if(!e)return e;if(!/^https?:\/\//i.test(e))return e.toLowerCase();try{const r=new URL(e),p=r.protocol.toLowerCase(),u=r.host.toLowerCase();let l=r.pathname;return l.length>1&&l.endsWith("/")&&(l=l.slice(0,-1)),l=l.toLowerCase(),`${p}//${u}${l}${r.search}${r.hash}`}catch{return e.toLowerCase()}}function Ds(d){const e=d.trim();if(!/^https?:\/\//i.test(e))return null;try{return new URL(e).hostname.replace(/^www\./i,"")||null}catch{return null}}function As(d){return`/api/feed-favicon?domain=${encodeURIComponent(d)}`}var dn=M("<option> </option>"),pn=M('<p class="save-error svelte-1beoyzy"> </p>'),hn=M('<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>'),fn=M('<button type="button" class="btn-delete svelte-1beoyzy"><!> 删除</button>'),vn=M('<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),mn=M("<!> <!>",1),yn=M('<p class="remove-dialog-target svelte-1beoyzy"> </p>'),bn=M('<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),_n=M("<!> <!>",1),gn=M('<span class="sort-menu-dir svelte-1beoyzy" aria-hidden="true"> </span>'),wn=M('<button type="button"><span> </span> <!></button>'),Cn=M("<!> <!>",1),kn=M('<div class="state svelte-1beoyzy">加载中…</div>'),zn=M('<div class="state error svelte-1beoyzy"> </div>'),Pn=M('<div class="state svelte-1beoyzy">暂无信源。<button type="button" class="link-btn svelte-1beoyzy">点击添加</button>第一个信源。</div>'),xn=M('<div class="state svelte-1beoyzy">无匹配结果</div>'),$n=M('<img class="source-title-favicon svelte-1beoyzy" alt="" width="16" height="16" loading="lazy" decoding="async"/>'),Tn=M('<span class="source-title-favicon-slot svelte-1beoyzy" aria-hidden="true"><!></span>'),Sn=M('<button type="button" class="more-menu-item svelte-1beoyzy" title="在本机服务端启动与抓取相同的有头 Chrome(共用浏览器数据目录与代理)"><!> <span>打开链接</span></button>'),On=M('<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),Mn=M("<!> <!>",1),Dn=M('<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"> </span></div></div></div> <div class="cell-actions svelte-1beoyzy"><!></div></div>'),An=M('<div class="list svelte-1beoyzy"></div>'),Fn=M('<!> <!> <!> <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 ra(d,e){yo(e,!1);const r=()=>ms(Lr,"$refToTaskId",u),p=()=>ms(Io,"$page",u),[u,l]=Sr(),m=P(),_=P(),q=P(),se=P();function Te(o){return o==="alpha"||o==="parse"?"asc":"desc"}const Z="1day",A=[{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 L(o){const s=(o==null?void 0:o.trim())??"";return A.some(a=>a.value===s)?s:Z}function K(o){return Math.min(1,Math.max(0,o))}function Oe(o){const s=typeof o=="number"&&!Number.isNaN(o)?o:Number(String(o).trim());return Number.isFinite(s)?s<0||s>1?{ok:!1,message:"权重需在 0–1 之间"}:{ok:!0,value:s}:{ok:!1,message:"权重需为 0–1 之间的数字"}}let R=[],W=P([]),je=P(!0),we=P(""),le=P(""),ve=P("weight"),J=P("desc"),Ue=P(!1),Ke="",E=P(null),Be=P({}),Ce=P(null),re=P(null),Me=P(!1),xe=P(null),qe=P(!1),ee=P(null),X=P(!1),V=P(!1),j=P(!1),I=P(""),$e=P(""),vt=P(""),mt=P(""),At=P(0),Ft=P(Z),yt=P(""),bt=P(null),eo=null;function to(o){const s=(o==null?void 0:o.trim())??"";if(!s)return s;const a=s.toLowerCase();return a.startsWith("http://")||a.startsWith("https://")||a.startsWith("imaps://")||a.startsWith("imap://")||a.startsWith("lingowhale://")?s:"https://"+s}function Ks(o){const s=o.toLowerCase();return s.includes("/feed")||s.includes("/rss")||s.includes("/atom")||s.endsWith(".xml")||s.endsWith(".rss")||s.endsWith(".atom")||s.includes("format=rss")||s.includes("format=atom")||s.includes("output=rss")}function es(o,s){const a=(o==null?void 0:o.trim())??"";if(!a)return null;const i=a.toLowerCase();if(i.startsWith("imaps://")||i.startsWith("imap://"))return"email";if(i.startsWith("lingowhale://"))return"plugin";const w=to(a);return!w.startsWith("http://")&&!w.startsWith("https://")?null:Ks(w)?"rss":s?"plugin":"llm"}function _o(o){return o==="rss"?"RSS/Atom":o==="plugin"?"插件":o==="llm"?"LLM":o==="email"?"邮箱":"—"}function Bs(o){eo&&clearTimeout(eo);const s=o==null?void 0:o.trim();if(!s){n(bt,null);return}n(bt,null);const a=to(s);eo=setTimeout(async()=>{eo=null;try{const i=await Ne("/api/sources/plugin-match",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({refs:[a]})});if(i.ok){const w=await i.json();to(t($e).trim())===a&&n(bt,w[a]??null)}}catch{to(t($e).trim())===a&&n(bt,null)}},400)}function qs(o,s,a){const i=a==="desc"?-1:1;return[...o].sort((w,k)=>{let b=0;switch(s){case"weight":b=w.weight-k.weight;break;case"alpha":b=w.displayLabel.localeCompare(k.displayLabel,"zh-CN");break;case"parse":b=_o(w.parseHint).localeCompare(_o(k.parseHint),"zh-CN");break;case"latest":{const H=w.latestAt?new Date(w.latestAt).getTime():NaN,me=k.latestAt?new Date(k.latestAt).getTime():NaN,ue=Number.isFinite(H),g=Number.isFinite(me);if(!ue&&!g)b=0;else if(ue)if(g)b=H-me;else return-1;else return 1;break}case"count":b=w.count-k.count;break;case"week":b=w.weekCount-k.weekCount;break}return b!==0?i*b:w.displayLabel.localeCompare(k.displayLabel,"zh-CN")})}function Js(o){t(ve)===o?n(J,t(J)==="asc"?"desc":"asc"):(n(ve,o),n(J,Te(o)))}let go=P(!1);function ts(o){return o==="alpha"?"标题":o==="weight"?"权重":o==="latest"?"最近拉取":o==="parse"?"解析":o==="week"?"近7天":"数量"}function Xs(o){Js(o),n(go,!1)}const Ys=["alpha","weight","latest","parse","count","week"];async function _t(o){const s=(o==null?void 0:o.silent)===!0;s||n(je,!0),n(we,"");try{const[a,i]=await Promise.all([Ne("/api/sources/raw"),Ne("/api/sources/stats")]),w=await a.text(),k=JSON.parse(w||"{}");R=Array.isArray(k.sources)?k.sources:[];const b=i.ok?await i.json():[],H=new Map;for(const g of b){const S=Ms(g.source_url),F=H.get(S),D=g.latest_at??null,Y=typeof g.count_7d=="number"&&Number.isFinite(g.count_7d)?g.count_7d:0;F?H.set(S,{count:F.count+g.count,weekCount:F.weekCount+Y,latestAt:F.latestAt?D?F.latestAt>=D?F.latestAt:D:F.latestAt:D}):H.set(S,{count:g.count,weekCount:Y,latestAt:D})}const me=R.filter(g=>{var S;return(S=g==null?void 0:g.ref)==null?void 0:S.trim()}).map(g=>g.ref.trim());let ue={};if(me.length>0)try{const g=await Ne("/api/sources/plugin-match",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({refs:me})});g.ok&&(ue=await g.json())}catch{}n(W,R.filter(g=>{var S;return(S=g==null?void 0:g.ref)==null?void 0:S.trim()}).map(g=>{var ke,ye;const S=g.ref.trim(),F=H.get(Ms(S))??{count:0,weekCount:0,latestAt:null},D=ue[S]??null,Y=(ke=g.proxy)==null?void 0:ke.trim();return{ref:S,displayLabel:g.label&&g.label.trim()||S,description:(ye=g.description)==null?void 0:ye.trim(),count:(F==null?void 0:F.count)??0,weekCount:(F==null?void 0:F.weekCount)??0,latestAt:(F==null?void 0:F.latestAt)??null,pluginId:D,weight:g.weight??0,...Y?{proxy:Y}:{},parseHint:es(S,D)}}))}catch(a){n(we,a instanceof Error?a.message:String(a)),s||n(W,[])}finally{s||n(je,!1)}}async function wo(o){return(await Ne("/api/sources/raw",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({sources:o})})).ok}function os(){n(V,!1),n($e,""),n(vt,""),n(mt,""),n(At,0),n(Ft,Z),n(yt,""),n(I,""),n(X,!0)}function Qs(o){const s=R.find(a=>a.ref===o.ref);n(V,!0),Ke=o.ref,n($e,o.ref),n(vt,(s==null?void 0:s.label)??""),n(mt,(s==null?void 0:s.description)??""),n(At,K((s==null?void 0:s.weight)??0)),n(Ft,L(s==null?void 0:s.refresh)),n(yt,(s==null?void 0:s.proxy)??""),n(I,""),n(Ue,!1),n(X,!0)}function ss(){n(X,!1),n(Ue,!1)}async function Gs(){const o=t($e).trim();if(!o){n(I,"ref 不能为空");return}const s=Oe(t(At));if(!s.ok){n(I,s.message);return}n(j,!0),n(I,"");try{const a=s.value,i={ref:o,...t(vt).trim()?{label:t(vt).trim()}:{},...t(mt).trim()?{description:t(mt).trim()}:{},refresh:t(Ft),...t(yt).trim()?{proxy:t(yt).trim()}:{},...a!==0?{weight:a}:{}};let w;if(t(V)){if(o!==Ke&&R.some(b=>b.ref===o)){n(I,"该 ref 已存在");return}w=R.map(b=>b.ref===Ke?{...b,...i}:b)}else{if(R.some(b=>b.ref===o)){n(I,"该 ref 已存在");return}w=[...R,i]}if(!await wo(w)){n(I,"保存失败,请重试");return}ss(),await _t({silent:!0})}catch(a){n(I,a instanceof Error?a.message:String(a))}finally{n(j,!1)}}async function rs(o){try{const s=await Ne("/api/items/by-source?source_url="+encodeURIComponent(o),{method:"DELETE"}),a=await s.json();return!s.ok||!a.ok?{ok:!1,message:a.message??"删除信源条目失败"}:{ok:!0,deleted:Number(a.deleted??0)}}catch(s){return{ok:!1,message:s instanceof Error?s.message:"删除信源条目失败"}}}async function Zs(){const o=Ke.trim();if(!o){n(I,"缺少信源 ref");return}n(j,!0),n(I,"");try{const s=await rs(o);if(!s.ok){n(I,s.message);return}const a=R.filter(w=>w.ref!==o);if(!await wo(a)){n(I,"删除信源失败,请重试");return}ss(),await _t({silent:!0})}catch(s){n(I,s instanceof Error?s.message:String(s))}finally{n(j,!1)}}async function Rs(o){for(let s=0;s<120;s++){const a=await Ne(`/api/tasks/${o}`);if(!a.ok)return{ok:!1,error:"轮询失败"};const i=await a.json();if(i.status==="done")return{ok:!0};if(i.status==="error")return{ok:!1,error:i.error??"拉取失败"};await new Promise(w=>setTimeout(w,800))}return{ok:!1,error:"超时"}}async function er(o,s){if(s==null||s.preventDefault(),s==null||s.stopPropagation(),!(o in r()))try{const a=await Ne("/api/tasks",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({type:"source-pull",ref:o})}),i=await a.json();if(!a.ok||!i.taskId)return;Er(o,i.taskId),(await Rs(i.taskId)).ok&&await _t({silent:!0})}catch{}finally{Wr(o)}}function tr(o){const s=o.trim().toLowerCase();return s.startsWith("http://")||s.startsWith("https://")}function or(o){const s=new URL("/rss",typeof window<"u"?window.location.origin:"http://127.0.0.1");return s.searchParams.set("ref",o),s.href}async function sr(o,s){s==null||s.preventDefault(),s==null||s.stopPropagation();try{const a=await Ne("/api/sources/open-browser",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({url:o})}),i=await a.json();a.ok&&i.ok?Tt(i.message??"已在爬虫浏览器中打开","success"):Tt(i.message??"打开失败","error")}catch{Tt("打开失败","error")}finally{n(E,null)}}async function rr(o){const s=or(o);try{await navigator.clipboard.writeText(s)}catch{try{const a=document.createElement("textarea");a.value=s,a.style.position="fixed",a.style.left="-9999px",document.body.appendChild(a),a.select(),document.execCommand("copy"),document.body.removeChild(a)}catch{}}n(E,null)}function nr(o){n(Me,o),o||n(xe,null)}function ar(o){t(re)||(n(xe,o),n(Me,!0),n(E,null))}async function ir(){var s;const o=t(xe);if(!(!o||t(re))){n(Me,!1),n(xe,null),n(re,o);try{const a=await rs(o);if(!a.ok){Tt(a.message,"error");return}const i=R.filter(k=>k.ref!==o);if(!await wo(i)){Tt("移除失败,请重试","error");return}bs(Io).url.pathname==="/"?_s.update(k=>(k==null?void 0:k.ref)===o?null:k):((s=t(ee))==null?void 0:s.ref)===o&&(n(qe,!1),n(ee,null)),await _t({silent:!0})}catch(a){Tt(a instanceof Error?a.message:"移除失败","error")}finally{n(re,null)}}}async function lr(o){if(!t(Ce)&&confirm("确定要清空该信源下的所有条目吗?此操作不可恢复。")){n(Ce,o),n(E,null);try{const s=await Ne("/api/items/by-source?source_url="+encodeURIComponent(o),{method:"DELETE"}),a=await s.json();s.ok&&a.ok?await _t({silent:!0}):s.ok||alert(a.message??"清空失败")}catch(s){alert(s instanceof Error?s.message:"清空失败")}finally{n(Ce,null)}}}function ns(o){var s,a;if(bs(Io).url.pathname==="/"){_s.set({ref:o.ref,displayLabel:o.displayLabel,...(s=o.description)!=null&&s.trim()?{description:o.description.trim()}:{},...(a=o.proxy)!=null&&a.trim()?{proxy:o.proxy.trim()}:{},...o.parseHint!=null?{parseHint:o.parseHint}:{}});return}n(ee,o),n(qe,!0)}function ur(o,s){const a=s.target;a&&(a.closest("a[href], button")||ns(o))}function cr(o,s){s.key!=="Enter"&&s.key!==" "||(s.preventDefault(),ns(o))}zr(_t),Vt(()=>(t(xe),t(W)),()=>{var o;n(m,t(xe)!=null?((o=t(W).find(s=>s.ref===t(xe)))==null?void 0:o.displayLabel)??t(xe):"")}),Vt(()=>t($e),()=>{t($e),Bs(t($e))}),Vt(()=>(t($e),t(bt)),()=>{n(_,es(t($e),t(bt)))}),Vt(()=>t(_),()=>{n(q,t(_)??"llm")}),Vt(()=>(t(le),t(W),t(ve),t(J)),()=>{n(se,qs(t(le).trim()?t(W).filter(o=>{var a;const s=t(le).trim().toLowerCase();return o.displayLabel.toLowerCase().includes(s)||(((a=o.description)==null?void 0:a.toLowerCase().includes(s))??!1)||o.ref.toLowerCase().includes(s)||_o(o.parseHint).toLowerCase().includes(s)}):t(W),t(ve),t(J)))}),Pr(),Mr();var as=Fn(),is=N(as);gs(is,{get open(){return t(X)},onOpenChange:o=>{n(X,o),o||n(Ue,!1)},children:(o,s)=>{po(o,{children:(a,i)=>{var w=mn(),k=N(w);ws(k,{class:"modal-overlay"});var b=v(k,2);Cs(b,{class:"modal","aria-describedby":void 0,children:(H,me)=>{var ue=vn(),g=N(ue),S=f(g);ks(S,{class:"modal-title",children:(O,ne)=>{pe();var ae=zt();_e(()=>ze(ae,t(V)?"编辑信源":"添加信源")),y(O,ae)},$$slots:{default:!0}});var F=v(S,2);co(F,{class:"modal-close","aria-label":"关闭",children:(O,ne)=>{pe();var ae=zt("✕");y(O,ae)},$$slots:{default:!0}}),c(g);var D=v(g,2),Y=f(D),ke=v(f(Y),2),ye=f(ke);Pt(ye),c(ke),c(Y);var te=v(Y,2),ce=v(f(te),2),Q=f(ce);let U;var G=f(Q);Dr(G,{size:14,class:"parse-hint-icon"}),pe(2),c(Q);var de=v(Q,2);let De;var xo=f(de);Ar(xo,{size:14,class:"parse-hint-icon"}),pe(2),c(de);var Je=v(de,2);let $o;var oo=f(Je);Fr(oo,{size:14,class:"parse-hint-icon"}),pe(2),c(Je);var Ae=v(Je,2);let Nt;var so=f(Ae);Nr(so,{size:14,class:"parse-hint-icon"}),pe(2),c(Ae),c(ce),c(te);var gt=v(te,2),ro=v(f(gt),2);Pt(ro),c(gt);var Xe=v(gt,2),no=v(f(Xe),2);Pt(no),c(Xe);var Ye=v(Xe,2),It=f(Ye),Ht=v(f(It),2);Pt(Ht),c(It);var ao=v(It,2),Lt=v(f(ao),2);Fo(Lt,5,()=>A,ys,(O,ne)=>{var ae=dn(),Mo=f(ae,!0);c(ae);var uo={};_e(()=>{ze(Mo,(t(ne),x(()=>t(ne).label))),uo!==(uo=(t(ne),x(()=>t(ne).value)))&&(ae.value=(ae.__value=(t(ne),x(()=>t(ne).value)))??"")}),y(O,ae)}),c(Lt),c(ao),c(Ye);var Ee=v(Ye,2),Et=v(f(Ee),2);Pt(Et),c(Ee);var io=v(Ee,2);{var To=O=>{var ne=pn(),ae=f(ne,!0);c(ne),_e(()=>ze(ae,t(I))),y(O,ne)};he(io,O=>{t(I)&&O(To)})}c(D);var nt=v(D,2),wt=f(nt),lo=f(wt);{var So=O=>{var ne=oe(),ae=N(ne);{var Mo=kt=>{var We=hn(),Wt=v(f(We),2),wr=v(Wt,2);c(We),_e(()=>Wt.disabled=t(j)),ie("click",Wt,Zs),ie("click",wr,()=>n(Ue,!1)),y(kt,We)},uo=kt=>{var We=fn(),Wt=f(We);Os(Wt,{size:13}),pe(),c(We),_e(()=>We.disabled=t(j)),ie("click",We,()=>n(Ue,!0)),y(kt,We)};he(ae,kt=>{t(Ue)?kt(Mo):kt(uo,-1)})}y(O,ne)};he(lo,O=>{t(V)&&O(So)})}c(wt);var Qe=v(wt,2),at=f(Qe);co(at,{class:"btn-cancel",get disabled(){return t(j)},children:(O,ne)=>{pe();var ae=zt("取消");y(O,ae)},$$slots:{default:!0}});var Ct=v(at,2),Oo=f(Ct,!0);c(Ct),c(Qe),c(nt),_e(()=>{U=xt(Q,1,"parse-hint svelte-1beoyzy",null,U,{active:t(q)==="rss"}),De=xt(de,1,"parse-hint svelte-1beoyzy",null,De,{active:t(q)==="email"}),$o=xt(Je,1,"parse-hint svelte-1beoyzy",null,$o,{active:t(q)==="plugin"}),Nt=xt(Ae,1,"parse-hint svelte-1beoyzy",null,Nt,{active:t(q)==="llm"}),Ct.disabled=t(j),ze(Oo,t(j)?"保存中…":"保存")}),$t(ye,()=>t($e),O=>n($e,O)),$t(ro,()=>t(vt),O=>n(vt,O)),$t(no,()=>t(mt),O=>n(mt,O)),$t(Ht,()=>t(At),O=>n(At,O)),Or(Lt,()=>t(Ft),O=>n(Ft,O)),$t(Et,()=>t(yt),O=>n(yt,O)),ie("click",Ct,Gs),y(H,ue)},$$slots:{default:!0}}),y(a,w)},$$slots:{default:!0}})},$$slots:{default:!0}});var ls=v(is,2);gs(ls,{get open(){return t(Me)},onOpenChange:nr,children:(o,s)=>{po(o,{children:(a,i)=>{var w=_n(),k=N(w);ws(k,{class:"modal-overlay"});var b=v(k,2);Cs(b,{class:"modal","aria-describedby":"remove-source-desc",children:(H,me)=>{var ue=bn(),g=N(ue),S=f(g);ks(S,{class:"modal-title",children:(Q,U)=>{pe();var G=zt("移除信源");y(Q,G)},$$slots:{default:!0}});var F=v(S,2);co(F,{class:"modal-close","aria-label":"关闭",children:(Q,U)=>{pe();var G=zt("✕");y(Q,G)},$$slots:{default:!0}}),c(g);var D=v(g,2),Y=v(f(D),2);{var ke=Q=>{var U=yn(),G=f(U,!0);c(U),_e(()=>ze(G,t(m))),y(Q,U)};he(Y,Q=>{t(m)&&Q(ke)})}c(D);var ye=v(D,2),te=f(ye);{let Q=Fe(()=>!!t(re));co(te,{class:"btn-cancel",get disabled(){return t(Q)},children:(U,G)=>{pe();var de=zt("取消");y(U,de)},$$slots:{default:!0}})}var ce=v(te,2);c(ye),_e(()=>ce.disabled=!!t(re)),ie("click",ce,ir),y(H,ue)},$$slots:{default:!0}}),y(a,w)},$$slots:{default:!0}})},$$slots:{default:!0}});var us=v(ls,2);{var dr=o=>{{let s=Fe(()=>(t(ee),x(()=>{var b;return((b=t(ee))==null?void 0:b.ref)??""}))),a=Fe(()=>(t(ee),x(()=>{var b;return((b=t(ee))==null?void 0:b.displayLabel)??""}))),i=Fe(()=>(t(ee),x(()=>{var b,H;return((H=(b=t(ee))==null?void 0:b.description)==null?void 0:H.trim())??""}))),w=Fe(()=>(t(ee),x(()=>{var b,H;return((H=(b=t(ee))==null?void 0:b.proxy)==null?void 0:H.trim())??""}))),k=Fe(()=>(t(ee),x(()=>{var b;return((b=t(ee))==null?void 0:b.parseHint)??null})));Ir(o,{variant:"overlay",get open(){return t(qe)},get sourceRef(){return t(s)},get sourceLabel(){return t(a)},get sourceDescription(){return t(i)},get sourceProxy(){return t(w)},get sourceParseHint(){return t(k)},onOpenChange:b=>{n(qe,b),b||n(ee,null)}})}};he(us,o=>{p(),x(()=>p().url.pathname!=="/")&&o(dr)})}var cs=v(us,2),ds=f(cs),Co=f(ds),ps=f(Co),ko=f(ps),zo=f(ko);Pt(zo);var pr=v(zo,2);{var hr=o=>{Ss(o,{get open(){return t(go)},onOpenChange:s=>{n(go,s)},children:(s,a)=>{var i=Cn(),w=N(i);{let b=Fe(()=>(t(ve),x(()=>ts(t(ve))))),H=Fe(()=>t(J)==="asc"?" 升序":" 降序");Ts(w,{type:"button",class:"btn-sort",get title(){return`排序:${t(b)??""}${t(H)??""},点此选择依据或同项切换方向`},"aria-label":"排序",children:(me,ue)=>{rn(me,{size:16})},$$slots:{default:!0}})}var k=v(w,2);po(k,{children:(b,H)=>{$s(b,{class:"dropdown-panel sort-menu",sideOffset:6,align:"start",children:(me,ue)=>{var g=oe(),S=N(g);Fo(S,1,()=>Ys,ys,(F,D)=>{var Y=wn();let ke;var ye=f(Y),te=f(ye,!0);c(ye);var ce=v(ye,2);{var Q=U=>{var G=gn(),de=f(G,!0);c(G),_e(()=>ze(de,t(J)==="asc"?"↑":"↓")),y(U,G)};he(ce,U=>{t(ve)===t(D)&&U(Q)})}c(Y),_e(U=>{ke=xt(Y,1,"sort-menu-item svelte-1beoyzy",null,ke,{active:t(ve)===t(D)}),ze(te,U)},[()=>(t(D),x(()=>ts(t(D))))]),ie("click",Y,()=>Xs(t(D))),y(F,Y)}),y(me,g)},$$slots:{default:!0}})},$$slots:{default:!0}}),y(s,i)},$$slots:{default:!0}})};he(pr,o=>{p(),t(W),x(()=>p().url.pathname==="/"&&t(W).length>0)&&o(hr)})}c(ko);var hs=v(ko,2),Po=f(hs),fr=f(Po);Vr(fr,{size:16,"aria-hidden":"true"}),c(Po),c(hs),c(ps),c(Co);var fs=v(Co,2),vr=f(fs);{var mr=o=>{var s=kn();y(o,s)},yr=o=>{var s=zn(),a=f(s,!0);c(s),_e(()=>ze(a,t(we))),y(o,s)},br=o=>{var s=Pn(),a=v(f(s));pe(),c(s),ie("click",a,os),y(o,s)},_r=o=>{var s=xn();y(o,s)},gr=o=>{var s=An();Fo(s,5,()=>t(se),a=>a.ref,(a,i)=>{const w=Fe(()=>(Ao(Ds),t(i),x(()=>Ds(t(i).ref))));var k=Dn(),b=f(k),H=f(b),me=f(H);{var ue=te=>{var ce=Tn(),Q=f(ce);{var U=G=>{var de=$n();_e(De=>No(de,"src",De),[()=>(Ao(As),Ao(t(w)),x(()=>As(t(w))))]),$r("error",de,()=>{n(Be,{...t(Be),[t(i).ref]:!0})}),Tr(de),y(G,de)};he(Q,G=>{t(Be),t(i),x(()=>!t(Be)[t(i).ref])&&G(U)})}c(ce),y(te,ce)};he(me,te=>{t(w)&&te(ue)})}var g=v(me,2),S=f(g),F=f(S,!0);c(S);var D=v(S,2),Y=f(D,!0);c(D),c(g),c(H),c(b);var ke=v(b,2),ye=f(ke);{let te=Fe(()=>(t(E),t(i),x(()=>t(E)===t(i).ref)));Ss(ye,{get open(){return t(te)},onOpenChange:ce=>{n(E,ce?t(i).ref:null)},children:(ce,Q)=>{var U=Mn(),G=N(U);Ts(G,{class:"btn-icon",title:"更多",onclick:De=>De.stopPropagation(),children:(De,xo)=>{an(De,{size:13})},$$slots:{default:!0}});var de=v(G,2);po(de,{children:(De,xo)=>{$s(De,{class:"dropdown-panel more-menu",sideOffset:6,align:"center",onclick:Je=>Je.stopPropagation(),children:(Je,$o)=>{var oo=On(),Ae=N(oo);let Nt;var so=f(Ae);Hr(so,{size:14});var gt=v(so,2),ro=f(gt,!0);c(gt),c(Ae);var Xe=v(Ae,2),no=f(Xe);un(no,{size:14}),pe(2),c(Xe);var Ye=v(Xe,2),It=f(Ye);nn(It,{size:14}),pe(2),c(Ye);var Ht=v(Ye,2);{var ao=Qe=>{var at=Sn(),Ct=f(at);ln(Ct,{size:14}),pe(2),c(at),ie("click",at,Oo=>sr(t(i).ref,Oo)),y(Qe,at)},Lt=Se(()=>(t(i),x(()=>tr(t(i).ref))));he(Ht,Qe=>{t(Lt)&&Qe(ao)})}var Ee=v(Ht,2),Et=f(Ee);cn(Et,{size:14});var io=v(Et,2),To=f(io,!0);c(io),c(Ee);var nt=v(Ee,2),wt=f(nt);Os(wt,{size:14});var lo=v(wt,2),So=f(lo,!0);c(lo),c(nt),_e(()=>{Nt=xt(Ae,1,"more-menu-item svelte-1beoyzy",null,Nt,{pulling:t(i).ref in r()}),Ae.disabled=(t(i),r(),x(()=>t(i).ref in r())),ze(ro,(t(i),r(),x(()=>t(i).ref in r()?"拉取中…":"拉取"))),Ee.disabled=(t(Ce),t(i),x(()=>t(Ce)===t(i).ref)),ze(To,(t(Ce),t(i),x(()=>t(Ce)===t(i).ref?"清空中…":"清空该源条目"))),nt.disabled=(t(re),t(i),x(()=>t(re)===t(i).ref)),ze(So,(t(re),t(i),x(()=>t(re)===t(i).ref?"移除中…":"移除信源")))}),ie("click",Ae,Qe=>{er(t(i).ref,Qe),n(E,null)}),ie("click",Xe,()=>{Qs(t(i)),n(E,null)}),ie("click",Ye,()=>rr(t(i).ref)),ie("click",Ee,()=>lr(t(i).ref)),ie("click",nt,()=>ar(t(i).ref)),y(Je,oo)},$$slots:{default:!0}})},$$slots:{default:!0}}),y(ce,U)},$$slots:{default:!0}})}c(ke),c(k),_e(()=>{No(H,"title",(t(i),x(()=>t(i).ref))),ze(F,(t(i),x(()=>t(i).displayLabel))),No(D,"title",`已收录 ${t(i),x(()=>t(i).count)??""} 条 · 近 7 天内有拉取记录的条目 ${t(i),x(()=>t(i).weekCount)??""} 条`),ze(Y,(t(i),x(()=>t(i).count)))}),ie("click",k,te=>ur(t(i),te)),ie("keydown",k,te=>cr(t(i),te)),y(a,k)}),c(s),y(o,s)};he(vr,o=>{t(je)?o(mr):t(we)?o(yr,1):(t(W),x(()=>t(W).length===0)?o(br,2):(t(se),x(()=>t(se).length===0)?o(_r,3):o(gr,-1)))})}c(fs),c(ds),c(cs),$t(zo,()=>t(le),o=>n(le,o)),ie("click",Po,os),y(d,as),bo(),l()}xr(["click","keydown"]);export{ra as S};
@@ -1 +0,0 @@
1
- var C=Object.defineProperty;var w=a=>{throw TypeError(a)};var D=(a,e,s)=>e in a?C(a,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):a[e]=s;var F=(a,e,s)=>D(a,typeof e!="symbol"?e+"":e,s),M=(a,e,s)=>e.has(a)||w("Cannot "+s);var t=(a,e,s)=>(M(a,e,"read from private field"),s?s.call(a):e.get(a)),u=(a,e,s)=>e.has(a)?w("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(a):e.set(a,s),A=(a,e,s,i)=>(M(a,e,"write to private field"),i?i.call(a,s):e.set(a,s),s);import{F as N,M as g,G as R,n as E,p as x,m as S,h as k,g as B,L as G,t as I,b as L,a as P,E as j,r as q,s as z,c as H,e as T}from"./vtBo8kBV.js";var d,l,c,p,m,v,b;class J{constructor(e,s=!0){F(this,"anchor");u(this,d,new Map);u(this,l,new Map);u(this,c,new Map);u(this,p,new Set);u(this,m,!0);u(this,v,e=>{if(t(this,d).has(e)){var s=t(this,d).get(e),i=t(this,l).get(s);if(i)N(i),t(this,p).delete(s);else{var f=t(this,c).get(s);f&&(t(this,l).set(s,f.effect),t(this,c).delete(s),f.fragment.lastChild.remove(),this.anchor.before(f.fragment),i=f.effect)}for(const[n,h]of t(this,d)){if(t(this,d).delete(n),n===e)break;const r=t(this,c).get(h);r&&(g(r.effect),t(this,c).delete(h))}for(const[n,h]of t(this,l)){if(n===s||t(this,p).has(n))continue;const r=()=>{if(Array.from(t(this,d).values()).includes(n)){var _=document.createDocumentFragment();G(h,_),_.append(E()),t(this,c).set(n,{effect:h,fragment:_})}else g(h);t(this,p).delete(n),t(this,l).delete(n)};t(this,m)||!i?(t(this,p).add(n),R(h,r,!1)):r()}}});u(this,b,e=>{t(this,d).delete(e);const s=Array.from(t(this,d).values());for(const[i,f]of t(this,c))s.includes(i)||(g(f.effect),t(this,c).delete(i))});this.anchor=e,A(this,m,s)}ensure(e,s){var i=S,f=I();if(s&&!t(this,l).has(e)&&!t(this,c).has(e))if(f){var n=document.createDocumentFragment(),h=E();n.append(h),t(this,c).set(e,{effect:x(()=>s(h)),fragment:n})}else t(this,l).set(e,x(()=>s(this.anchor)));if(t(this,d).set(i,e),f){for(const[r,o]of t(this,l))r===e?i.unskip_effect(o):i.skip_effect(o);for(const[r,o]of t(this,c))r===e?i.unskip_effect(o.effect):i.skip_effect(o.effect);i.oncommit(t(this,v)),i.ondiscard(t(this,b))}else k&&(this.anchor=B),t(this,v).call(this,i)}}d=new WeakMap,l=new WeakMap,c=new WeakMap,p=new WeakMap,m=new WeakMap,v=new WeakMap,b=new WeakMap;function Q(a,e,s=!1){var i;k&&(i=B,P());var f=new J(a),n=s?j:0;function h(r,o){if(k){var _=q(i);if(r!==parseInt(_.substring(1))){var y=z();H(y),f.anchor=y,T(!1),f.ensure(r,o),T(!0);return}}f.ensure(r,o)}L(()=>{var r=!1;e((o,_=0)=>{r=!0,h(_,o)}),r||h(-1,null)},n)}export{J as B,Q as i};
@@ -1 +0,0 @@
1
- import{h as o,a as v,b as y,E as f,r as l,s as m,c as p,e as i,H as T,g}from"./vtBo8kBV.js";import{B as A}from"./BkD3yAYe.js";function b(d,_,e){var s;o&&(s=g,v());var r=new A(d);y(()=>{var a=_()??null;if(o){var h=l(s),c=h===T,u=a!==null;if(c!==u){var t=m();p(t),r.anchor=t,i(!1),r.ensure(a,a&&(n=>e(n,a))),i(!0);return}}r.ensure(a,a&&(n=>e(n,a)))},f)}export{b as c};
@@ -1 +0,0 @@
1
- function i(n,s){return fetch(n,s)}async function w(n,s){const e=await fetch(n,s),r=(await e.text()).trim();if(!e.ok){const t=r.length>100?r.slice(0,100)+"…":r;throw new Error(`请求失败 ${e.status} ${e.statusText}${t?`:${t}`:""}`)}if(!r)throw new Error("API 返回空内容");try{const t=JSON.parse(r);if(t===null&&r==="null")throw new Error("API 返回 null");return t}catch(t){if(t instanceof Error&&t.message==="API 返回 null")throw t;const o=t instanceof SyntaxError?t.message:String(t),a=r.length>80?r.slice(0,80)+"…":r;throw new Error(`API 返回格式异常: ${o}。响应预览: ${a}`)}}export{i as a,w as b};
@@ -1 +0,0 @@
1
- import{c as _,a as s,f as g}from"./CS53ooo0.js";import"./BA4Gucnq.js";import{at as d,aC as b,aD as h,f as v,au as $,a5 as k,i as n,z as y,az as B}from"./vtBo8kBV.js";import{s as z,a as j}from"./B6WG2Sd3.js";import{i as x}from"./BkD3yAYe.js";import{s as C}from"./DoRPmqLn.js";import{i as D}from"./DVa8Y-mQ.js";import{p as H}from"./DXDBlEGf.js";var P=g('<a class="back-to-parent admin-toolbar-btn admin-toolbar-btn--secondary svelte-1md38m6" data-sveltekit-preload-data="hover" aria-label="返回上一层">返回</a>');function I(i,p){d(p,!1);const r=()=>j(H,"$page",f),[f,l]=z(),e=y();function m(t){const a=t.split("/").filter(Boolean);return a.length===0?null:a.length===1?a[0]==="admin"?null:a[0]==="plugins"||a[0]==="logs"?"/":null:(a.pop(),"/"+a.join("/"))}b(()=>r(),()=>{k(e,m(r().url.pathname))}),h(),D();var o=_(),c=v(o);{var u=t=>{var a=P();B(()=>C(a,"href",n(e))),s(t,a)};x(c,t=>{n(e)&&t(u)})}s(i,o),$(),l()}export{I as B};
@@ -1 +0,0 @@
1
- import{n as y,b as u,ak as _,al as g,h as t,C as o,P as l,e as i,c as n,g as p,N as m}from"./vtBo8kBV.js";function C(d,r){let a=null,E=t;var s;if(t){a=p;for(var e=m(document.head);e!==null&&(e.nodeType!==o||e.data!==d);)e=l(e);if(e===null)i(!1);else{var f=l(e);e.remove(),n(f)}}t||(s=document.head.appendChild(y()));try{u(()=>r(s),_|g)}finally{E&&(i(!0),n(a))}}export{C as h};
@@ -1 +0,0 @@
1
- import{W as d,am as m,an as c,U as g,ao as l,ap as b,i as u,aq as v,ad as h}from"./vtBo8kBV.js";function x(n=!1){const s=d,e=s.l.u;if(!e)return;let f=()=>v(s.s);if(n){let a=0,t={};const _=h(()=>{let i=!1;const r=s.s;for(const o in r)r[o]!==t[o]&&(t[o]=r[o],i=!0);return i&&a++,a});f=()=>u(_)}e.b.length&&m(()=>{p(s,f),l(e.b)}),c(()=>{const a=g(()=>e.m.map(b));return()=>{for(const t of a)typeof t=="function"&&t()}}),e.a.length&&c(()=>{p(s,f),l(e.a)})}function p(n,s){if(n.l.s)for(const e of n.l.s)u(e);s()}export{x as i};
@@ -1,2 +0,0 @@
1
- import{b8 as Y,M as U,p as X,X as G,h as T,v as x,b9 as rr,ba as ir,ah as fr,S as ar,m as P,bb as tr,bc as er,bd as ur,i as sr,be as or,bf as cr,bg as M,e as V,bh as lr,bi as nr,O as vr,bj as dr,bk as br}from"./vtBo8kBV.js";import{i as hr,a as gr,d as _r,c as Ar,n as Sr,b as Tr}from"./B2cyTHdf.js";function Nr(r,f){var i=void 0,a;Y(()=>{i!==(i=f())&&(a&&(U(a),a=null),i&&(a=X(()=>{G(()=>i(r))})))})}function z(r){var f,i,a="";if(typeof r=="string"||typeof r=="number")a+=r;else if(typeof r=="object")if(Array.isArray(r)){var t=r.length;for(f=0;f<t;f++)r[f]&&(i=z(r[f]))&&(a&&(a+=" "),a+=i)}else for(i in r)r[i]&&(a&&(a+=" "),a+=i);return a}function Or(){for(var r,f,i=0,a="",t=arguments.length;i<t;i++)(r=arguments[i])&&(f=z(r))&&(a&&(a+=" "),a+=f);return a}function pr(r){return typeof r=="object"?Or(r):r??""}const B=[...`
2
- \r\f \v\uFEFF`];function Er(r,f,i){var a=r==null?"":""+r;if(f&&(a=a?a+" "+f:f),i){for(var t of Object.keys(i))if(i[t])a=a?a+" "+t:t;else if(a.length)for(var e=t.length,u=0;(u=a.indexOf(t,u))>=0;){var o=u+e;(u===0||B.includes(a[u-1]))&&(o===a.length||B.includes(a[o]))?a=(u===0?"":a.substring(0,u))+a.substring(o+1):u=o}}return a===""?null:a}function D(r,f=!1){var i=f?" !important;":";",a="";for(var t of Object.keys(r)){var e=r[t];e!=null&&e!==""&&(a+=" "+t+": "+e+i)}return a}function w(r){return r[0]!=="-"||r[1]!=="-"?r.toLowerCase():r}function Ir(r,f){if(f){var i="",a,t;if(Array.isArray(f)?(a=f[0],t=f[1]):a=f,r){r=String(r).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var e=!1,u=0,o=!1,n=[];a&&n.push(...Object.keys(a).map(w)),t&&n.push(...Object.keys(t).map(w));var v=0,g=-1;const O=r.length;for(var d=0;d<O;d++){var s=r[d];if(o?s==="/"&&r[d-1]==="*"&&(o=!1):e?e===s&&(e=!1):s==="/"&&r[d+1]==="*"?o=!0:s==='"'||s==="'"?e=s:s==="("?u++:s===")"&&u--,!o&&e===!1&&u===0){if(s===":"&&g===-1)g=d;else if(s===";"||d===O-1){if(g!==-1){var N=w(r.substring(v,g).trim());if(!n.includes(N)){s!==";"&&d++;var S=r.substring(v,d).trim();i+=" "+S+";"}}v=d+1,g=-1}}}}return a&&(i+=D(a)),t&&(i+=D(t,!0)),i=i.trim(),i===""?null:i}return r==null?null:String(r)}function Lr(r,f,i,a,t,e){var u=r.__className;if(T||u!==i||u===void 0){var o=Er(i,a,e);(!T||o!==r.getAttribute("class"))&&(o==null?r.removeAttribute("class"):f?r.className=o:r.setAttribute("class",o)),r.__className=i}else if(e&&t!==e)for(var n in e){var v=!!e[n];(t==null||v!==!!t[n])&&r.classList.toggle(n,v)}return e}function j(r,f={},i,a){for(var t in i){var e=i[t];f[t]!==e&&(i[t]==null?r.style.removeProperty(t):r.style.setProperty(t,e,a))}}function kr(r,f,i,a){var t=r.__style;if(T||t!==f){var e=Ir(f,a);(!T||e!==r.getAttribute("style"))&&(e==null?r.removeAttribute("style"):r.style.cssText=e),r.__style=f}else a&&(Array.isArray(a)?(j(r,i==null?void 0:i[0],a[0]),j(r,i==null?void 0:i[1],a[1],"important")):j(r,i,a));return a}function y(r,f,i=!1){if(r.multiple){if(f==null)return;if(!x(f))return rr();for(var a of r.options)a.selected=f.includes(k(a));return}for(a of r.options){var t=k(a);if(ir(t,f)){a.selected=!0;return}}(!i||f!==void 0)&&(r.selectedIndex=-1)}function F(r){var f=new MutationObserver(()=>{y(r,r.__value)});f.observe(r,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),fr(()=>{f.disconnect()})}function Rr(r,f,i=f){var a=new WeakSet,t=!0;ar(r,"change",e=>{var u=e?"[selected]":":checked",o;if(r.multiple)o=[].map.call(r.querySelectorAll(u),k);else{var n=r.querySelector(u)??r.querySelector("option:not([disabled])");o=n&&k(n)}i(o),P!==null&&a.add(P)}),G(()=>{var e=f();if(r===document.activeElement){var u=P;if(a.has(u))return}if(y(r,e,t),t&&e===void 0){var o=r.querySelector(":checked");o!==null&&(e=k(o),i(e))}r.__value=e,t=!1}),F(r)}function k(r){return"__value"in r?r.__value:r.value}const I=Symbol("class"),L=Symbol("style"),W=Symbol("is custom element"),Z=Symbol("is html"),yr=M?"link":"LINK",Cr=M?"input":"INPUT",Mr=M?"option":"OPTION",Pr=M?"select":"SELECT";function wr(r){if(T){var f=!1,i=()=>{if(!f){if(f=!0,r.hasAttribute("value")){var a=r.value;C(r,"value",null),r.value=a}if(r.hasAttribute("checked")){var t=r.checked;C(r,"checked",null),r.checked=t}}};r.__on_r=i,vr(i),dr()}}function Hr(r,f){var i=q(r);i.checked!==(i.checked=f??void 0)&&(r.checked=f)}function jr(r,f){f?r.hasAttribute("selected")||r.setAttribute("selected",""):r.removeAttribute("selected")}function C(r,f,i,a){var t=q(r);T&&(t[f]=r.getAttribute(f),f==="src"||f==="srcset"||f==="href"&&r.nodeName===yr)||t[f]!==(t[f]=i)&&(f==="loading"&&(r[br]=i),i==null?r.removeAttribute(f):typeof i!="string"&&J(r).includes(f)?r[f]=i:r.setAttribute(f,i))}function Ur(r,f,i,a,t=!1,e=!1){if(T&&t&&r.nodeName===Cr){var u=r,o=u.type==="checkbox"?"defaultChecked":"defaultValue";o in i||wr(u)}var n=q(r),v=n[W],g=!n[Z];let d=T&&v;d&&V(!1);var s=f||{},N=r.nodeName===Mr;for(var S in f)S in i||(i[S]=null);i.class?i.class=pr(i.class):i[I]&&(i.class=null),i[L]&&(i.style??(i.style=null));var O=J(r);for(const c in i){let l=i[c];if(N&&c==="value"&&l==null){r.value=r.__value="",s[c]=l;continue}if(c==="class"){var E=r.namespaceURI==="http://www.w3.org/1999/xhtml";Lr(r,E,l,a,f==null?void 0:f[I],i[I]),s[c]=l,s[I]=i[I];continue}if(c==="style"){kr(r,l,f==null?void 0:f[L],i[L]),s[c]=l,s[L]=i[L];continue}var _=s[c];if(!(l===_&&!(l===void 0&&r.hasAttribute(c)))){s[c]=l;var R=c[0]+c[1];if(R!=="$$")if(R==="on"){const A={},p="$$"+c;let h=c.slice(2);var H=Tr(h);if(hr(h)&&(h=h.slice(0,-7),A.capture=!0),!H&&_){if(l!=null)continue;r.removeEventListener(h,s[p],A),s[p]=null}if(H)gr(h,r,l),_r([h]);else if(l!=null){let Q=function(m){s[c].call(this,m)};s[p]=Ar(h,r,Q,A)}}else if(c==="style")C(r,c,l);else if(c==="autofocus")lr(r,!!l);else if(!v&&(c==="__value"||c==="value"&&l!=null))r.value=r.__value=l;else if(c==="selected"&&N)jr(r,l);else{var b=c;g||(b=Sr(b));var $=b==="defaultValue"||b==="defaultChecked";if(l==null&&!v&&!$)if(n[c]=null,b==="value"||b==="checked"){let A=r;const p=f===void 0;if(b==="value"){let h=A.defaultValue;A.removeAttribute(b),A.defaultValue=h,A.value=A.__value=p?h:null}else{let h=A.defaultChecked;A.removeAttribute(b),A.defaultChecked=h,A.checked=p?h:!1}}else r.removeAttribute(c);else $||O.includes(b)&&(v||typeof l!="string")?(r[b]=l,b in n&&(n[b]=nr)):typeof l!="function"&&C(r,b,l)}}}return d&&V(!0),s}function $r(r,f,i=[],a=[],t=[],e,u=!1,o=!1){tr(t,i,a,n=>{var v=void 0,g={},d=r.nodeName===Pr,s=!1;if(Y(()=>{var S=f(...n.map(sr)),O=Ur(r,v,S,e,u,o);s&&d&&"value"in S&&y(r,S.value);for(let _ of Object.getOwnPropertySymbols(g))S[_]||U(g[_]);for(let _ of Object.getOwnPropertySymbols(S)){var E=S[_];_.description===or&&(!v||E!==v[_])&&(g[_]&&U(g[_]),g[_]=X(()=>Nr(r,()=>E))),O[_]=E}v=O}),d){var N=r;G(()=>{y(N,v.value,!0),F(N)})}s=!0})}function q(r){return r.__attributes??(r.__attributes={[W]:r.nodeName.includes("-"),[Z]:r.namespaceURI===er})}var K=new Map;function J(r){var f=r.getAttribute("is")||r.nodeName,i=K.get(f);if(i)return i;K.set(f,i=[]);for(var a,t=r,e=Element.prototype;e!==t;){a=cr(t);for(var u in a)a[u].set&&i.push(u);t=ur(t)}return i}const Vr="rssany",Br="https://github.com/joohw/rssany";export{Br as G,Vr as P,Lr as a,Hr as b,kr as c,$r as d,Rr as e,Or as f,wr as r,C as s};
@@ -1 +0,0 @@
1
- var wt=Object.defineProperty;var Sn=e=>{throw TypeError(e)};var yt=(e,n,t)=>n in e?wt(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t;var ae=(e,n,t)=>yt(e,typeof n!="symbol"?n+"":n,t),Ze=(e,n,t)=>n.has(e)||Sn("Cannot "+t);var _=(e,n,t)=>(Ze(e,n,"read from private field"),t?t.call(e):n.get(e)),D=(e,n,t)=>n.has(e)?Sn("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(e):n.set(e,t),K=(e,n,t,r)=>(Ze(e,n,"write to private field"),r?r.call(e,t):n.set(e,t),t),q=(e,n,t)=>(Ze(e,n,"access private method"),t);var Et=Array.isArray,mt=Array.prototype.indexOf,Se=Array.prototype.includes,hr=Array.from,wr=Object.defineProperty,Ie=Object.getOwnPropertyDescriptor,gt=Object.getOwnPropertyDescriptors,bt=Object.prototype,Tt=Array.prototype,Ln=Object.getPrototypeOf,xn=Object.isExtensible;function yr(e){return typeof e=="function"}const At=()=>{};function Er(e){return e()}function St(e){for(var n=0;n<e.length;n++)e[n]()}function jn(){var e,n,t=new Promise((r,s)=>{e=r,n=s});return{promise:t,resolve:e,reject:n}}function mr(e,n){if(Array.isArray(e))return e;if(!(Symbol.iterator in e))return Array.from(e);const t=[];for(const r of e)if(t.push(r),t.length===n)break;return t}const T=2,_e=4,Le=8,cn=1<<24,se=16,G=32,Q=64,xt=128,M=512,m=1024,R=2048,H=4096,V=8192,B=16384,we=32768,Rn=1<<25,qe=65536,Nn=1<<17,Rt=1<<18,Re=1<<19,Yn=1<<20,gr=1<<25,ve=65536,Qe=1<<21,_n=1<<22,W=1<<23,ue=Symbol("$state"),br=Symbol("legacy props"),Tr=Symbol(""),$=new class extends Error{constructor(){super(...arguments);ae(this,"name","StaleReactionError");ae(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}};var Fn;const Sr=!!((Fn=globalThis.document)!=null&&Fn.contentType)&&globalThis.document.contentType.includes("xml"),xr=1,$e=3,Hn=8;function Nt(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Ot(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Rr(e,n,t){throw new Error("https://svelte.dev/e/each_key_duplicate")}function kt(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Ct(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Dt(e){throw new Error("https://svelte.dev/e/effect_orphan")}function It(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Nr(){throw new Error("https://svelte.dev/e/hydration_failed")}function Or(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Pt(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Mt(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Ft(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function kr(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const Cr=1,Dr=2,Ir=4,Pr=8,Mr=16,Fr=1,Lr=2,jr=4,Yr=8,Hr=16,qr=1,Ur=2,Lt="[",jt="[!",Vr="[?",Yt="]",vn={},A=Symbol(),Ht="http://www.w3.org/1999/xhtml",Br="http://www.w3.org/2000/svg",Gr="@attach";function dn(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Kr(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function $r(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let de=!1;function zr(e){de=e}let b;function xe(e){if(e===null)throw dn(),vn;return b=e}function Xr(){return xe(fe(b))}function Zr(e){if(de){if(fe(b)!==null)throw dn(),vn;b=e}}function Wr(e=1){if(de){for(var n=e,t=b;n--;)t=fe(t);b=t}}function Jr(e=!0){for(var n=0,t=b;;){if(t.nodeType===Hn){var r=t.data;if(r===Yt){if(n===0)return t;n-=1}else(r===Lt||r===jt||r[0]==="["&&!isNaN(Number(r.slice(1))))&&(n+=1)}var s=fe(t);e&&t.remove(),t=s}}function Qr(e){if(!e||e.nodeType!==Hn)throw dn(),vn;return e.data}function qn(e){return e===this.v}function qt(e,n){return e!=e?n==n:e!==n||e!==null&&typeof e=="object"||typeof e=="function"}function Un(e){return!qt(e,this.v)}let ze=!1;function es(){ze=!0}let y=null;function Ue(e){y=e}function ns(e){return Xe().get(e)}function ts(e,n){return Xe().set(e,n),n}function rs(e){return Xe().has(e)}function ss(){return Xe()}function fs(e,n=!1,t){y={p:y,i:!1,c:null,e:null,s:e,x:null,r:w,l:ze&&!n?{s:null,u:null,$:[]}:null}}function as(e){var n=y,t=n.e;if(t!==null){n.e=null;for(var r of t)st(r)}return n.i=!0,y=n.p,{}}function je(){return!ze||y!==null&&y.l===null}function Xe(e){return y===null&&Nt(),y.c??(y.c=new Map(Ut(y)||void 0))}function Ut(e){let n=e.p;for(;n!==null;){const t=n.c;if(t!==null)return t;n=n.p}return null}let ie=[];function Vn(){var e=ie;ie=[],St(e)}function en(e){if(ie.length===0&&!Pe){var n=ie;queueMicrotask(()=>{n===ie&&Vn()})}ie.push(e)}function Vt(){for(;ie.length>0;)Vn()}function Bt(e){var n=w;if(n===null)return d.f|=W,e;if((n.f&we)===0&&(n.f&_e)===0)throw e;Ve(e,n)}function Ve(e,n){for(;n!==null;){if((n.f&xt)!==0){if((n.f&we)===0)throw e;try{n.b.error(e);return}catch(t){e=t}}n=n.parent}throw e}const Gt=-7169;function E(e,n){e.f=e.f&Gt|n}function pn(e){(e.f&M)!==0||e.deps===null?E(e,m):E(e,H)}function Bn(e){if(e!==null)for(const n of e)(n.f&T)===0||(n.f&ve)===0||(n.f^=ve,Bn(n.deps))}function Kt(e,n,t){(e.f&R)!==0?n.add(e):(e.f&H)!==0&&t.add(e),Bn(e.deps),E(e,m)}const Ce=new Set;let p=null,S=null,nn=null,Pe=!1,We=!1,ye=null,Ye=null;var On=0;let $t=1;var Ee,me,ge,be,Fe,P,Te,Z,U,Ae,x,tn,rn,sn,fn,Gn;const Ke=class Ke{constructor(){D(this,x);ae(this,"id",$t++);ae(this,"current",new Map);ae(this,"previous",new Map);D(this,Ee,new Set);D(this,me,new Set);D(this,ge,0);D(this,be,0);D(this,Fe,null);D(this,P,[]);D(this,Te,new Set);D(this,Z,new Set);D(this,U,new Map);ae(this,"is_fork",!1);D(this,Ae,!1)}skip_effect(n){_(this,U).has(n)||_(this,U).set(n,{d:[],m:[]})}unskip_effect(n){var t=_(this,U).get(n);if(t){_(this,U).delete(n);for(var r of t.d)E(r,R),this.schedule(r);for(r of t.m)E(r,H),this.schedule(r)}}capture(n,t){t!==A&&!this.previous.has(n)&&this.previous.set(n,t),(n.f&W)===0&&(this.current.set(n,n.v),S==null||S.set(n,n.v))}activate(){p=this}deactivate(){p=null,S=null}flush(){try{if(We=!0,p=this,!q(this,x,tn).call(this)){for(const n of _(this,Te))_(this,Z).delete(n),E(n,R),this.schedule(n);for(const n of _(this,Z))E(n,H),this.schedule(n)}q(this,x,rn).call(this)}finally{On=0,nn=null,ye=null,Ye=null,We=!1,p=null,S=null,J.clear()}}discard(){for(const n of _(this,me))n(this);_(this,me).clear()}increment(n){K(this,ge,_(this,ge)+1),n&&K(this,be,_(this,be)+1)}decrement(n,t){K(this,ge,_(this,ge)-1),n&&K(this,be,_(this,be)-1),!(_(this,Ae)||t)&&(K(this,Ae,!0),en(()=>{K(this,Ae,!1),this.flush()}))}oncommit(n){_(this,Ee).add(n)}ondiscard(n){_(this,me).add(n)}settled(){return(_(this,Fe)??K(this,Fe,jn())).promise}static ensure(){if(p===null){const n=p=new Ke;We||(Ce.add(p),Pe||en(()=>{p===n&&n.flush()}))}return p}apply(){}schedule(n){var s;if(nn=n,(s=n.b)!=null&&s.is_pending&&(n.f&(_e|Le|cn))!==0&&(n.f&we)===0){n.b.defer_effect(n);return}for(var t=n;t.parent!==null;){t=t.parent;var r=t.f;if(ye!==null&&t===w&&(d===null||(d.f&T)===0))return;if((r&(Q|G))!==0){if((r&m)===0)return;t.f^=m}}_(this,P).push(t)}};Ee=new WeakMap,me=new WeakMap,ge=new WeakMap,be=new WeakMap,Fe=new WeakMap,P=new WeakMap,Te=new WeakMap,Z=new WeakMap,U=new WeakMap,Ae=new WeakMap,x=new WeakSet,tn=function(){return this.is_fork||_(this,be)>0},rn=function(){var l,a;On++>1e3&&Xt();const n=_(this,P);K(this,P,[]),this.apply();var t=ye=[],r=[],s=Ye=[];for(const i of n)q(this,x,sn).call(this,i,t,r);if(p=null,s.length>0){var f=Ke.ensure();for(const i of s)f.schedule(i)}if(ye=null,Ye=null,q(this,x,tn).call(this)){q(this,x,fn).call(this,r),q(this,x,fn).call(this,t);for(const[i,u]of _(this,U))zn(i,u)}else{_(this,Te).clear(),_(this,Z).clear();for(const i of _(this,Ee))i(this);_(this,Ee).clear(),kn(r),kn(t),_(this,ge)===0&&q(this,x,Gn).call(this),(l=_(this,Fe))==null||l.resolve()}var o=p;if(_(this,P).length>0){const i=o??(o=this);_(i,P).push(..._(this,P).filter(u=>!_(i,P).includes(u)))}o!==null&&(Ce.add(o),q(a=o,x,rn).call(a))},sn=function(n,t,r){n.f^=m;for(var s=n.first;s!==null;){var f=s.f,o=(f&(G|Q))!==0,l=o&&(f&m)!==0,a=l||(f&V)!==0||_(this,U).has(s);if(!a&&s.fn!==null){o?s.f^=m:(f&_e)!==0?t.push(s):Ne(s)&&((f&se)!==0&&_(this,Z).add(s),he(s));var i=s.first;if(i!==null){s=i;continue}}for(;s!==null;){var u=s.next;if(u!==null){s=u;break}s=s.parent}}},fn=function(n){for(var t=0;t<n.length;t+=1)Kt(n[t],_(this,Te),_(this,Z))},Gn=function(){var s;if(Ce.size>1){this.previous.clear();var n=p,t=S,r=!0;for(const f of Ce){if(f===this){r=!1;continue}const o=[];for(const[a,i]of this.current){if(f.current.has(a))if(r&&i!==f.current.get(a))f.current.set(a,i);else continue;o.push(a)}if(o.length===0)continue;const l=[...f.current.keys()].filter(a=>!this.current.has(a));if(l.length>0){f.activate();const a=new Set,i=new Map;for(const u of o)Kn(u,l,a,i);if(_(f,P).length>0){f.apply();for(const u of _(f,P))q(s=f,x,sn).call(s,u,[],[])}f.deactivate()}}p=n,S=t}_(this,U).clear(),Ce.delete(this)};let ee=Ke;function zt(e){var n=Pe;Pe=!0;try{for(var t;;){if(Vt(),p===null)return t;p.flush()}}finally{Pe=n}}function Xt(){try{It()}catch(e){Ve(e,nn)}}let j=null;function kn(e){var n=e.length;if(n!==0){for(var t=0;t<n;){var r=e[t++];if((r.f&(B|V))===0&&Ne(r)&&(j=new Set,he(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&it(r),(j==null?void 0:j.size)>0)){J.clear();for(const s of j){if((s.f&(B|V))!==0)continue;const f=[s];let o=s.parent;for(;o!==null;)j.has(o)&&(j.delete(o),f.push(o)),o=o.parent;for(let l=f.length-1;l>=0;l--){const a=f[l];(a.f&(B|V))===0&&he(a)}}j.clear()}}j=null}}function Kn(e,n,t,r){if(!t.has(e)&&(t.add(e),e.reactions!==null))for(const s of e.reactions){const f=s.f;(f&T)!==0?Kn(s,n,t,r):(f&(_n|se))!==0&&(f&R)===0&&$n(s,n,r)&&(E(s,R),hn(s))}}function $n(e,n,t){const r=t.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const s of e.deps){if(Se.call(n,s))return!0;if((s.f&T)!==0&&$n(s,n,t))return t.set(s,!0),!0}return t.set(e,!1),!1}function hn(e){p.schedule(e)}function zn(e,n){if(!((e.f&G)!==0&&(e.f&m)!==0)){(e.f&R)!==0?n.d.push(e):(e.f&H)!==0&&n.m.push(e),E(e,m);for(var t=e.first;t!==null;)zn(t,n),t=t.next}}function Xn(e,n,t,r){const s=je()?yn:Jt;var f=e.filter(c=>!c.settled);if(t.length===0&&f.length===0){r(n.map(s));return}var o=w,l=Zt(),a=f.length===1?f[0].promise:f.length>1?Promise.all(f.map(c=>c.promise)):null;function i(c){l();try{r(c)}catch(g){(o.f&B)===0&&Ve(g,o)}Be()}if(t.length===0){a.then(()=>i(n.map(s)));return}var u=wn();function v(){Promise.all(t.map(c=>Wt(c))).then(c=>i([...n.map(s),...c])).catch(c=>Ve(c,o)).finally(()=>u())}a?a.then(()=>{l(),v(),Be()}):v()}function Zt(){var e=w,n=d,t=y,r=p;return function(f=!0){re(e),te(n),Ue(t),f&&(e.f&B)===0&&(r==null||r.activate(),r==null||r.apply())}}function Be(e=!0){re(null),te(null),Ue(null),e&&(p==null||p.deactivate())}function wn(){var e=w.b,n=p,t=e.is_rendered();return e.update_pending_count(1,n),n.increment(t),(r=!1)=>{e.update_pending_count(-1,n),n.decrement(t,r)}}function yn(e){var n=T|R,t=d!==null&&(d.f&T)!==0?d:null;return w!==null&&(w.f|=Re),{ctx:y,deps:null,effects:null,equals:qn,f:n,fn:e,reactions:null,rv:0,v:A,wv:0,parent:t??w,ac:null}}function Wt(e,n,t){let r=w;r===null&&Ot();var s=void 0,f=mn(A),o=!d,l=new Map;return lr(()=>{var g;var a=w,i=jn();s=i.promise;try{Promise.resolve(e()).then(i.resolve,i.reject).finally(Be)}catch(h){i.reject(h),Be()}var u=p;if(o){if((a.f&we)!==0)var v=wn();if(r.b.is_rendered())(g=l.get(u))==null||g.reject($),l.delete(u);else{for(const h of l.values())h.reject($);l.clear()}l.set(u,i)}const c=(h,L=void 0)=>{if(v){var N=L===$;v(N)}if(!(L===$||(a.f&B)!==0)){if(u.activate(),L)f.f|=W,ln(f,L);else{(f.f&W)!==0&&(f.f^=W),ln(f,h);for(const[Oe,ke]of l){if(l.delete(Oe),Oe===u)break;ke.reject($)}}u.deactivate()}};i.promise.then(c,h=>c(null,h||"unknown"))}),ir(()=>{for(const a of l.values())a.reject($)}),new Promise(a=>{function i(u){function v(){u===s?a(f):i(s)}u.then(v,v)}i(s)})}function is(e){const n=yn(e);return ut(n),n}function Jt(e){const n=yn(e);return n.equals=Un,n}function Qt(e){var n=e.effects;if(n!==null){e.effects=null;for(var t=0;t<n.length;t+=1)ne(n[t])}}function er(e){for(var n=e.parent;n!==null;){if((n.f&T)===0)return(n.f&B)===0?n:null;n=n.parent}return null}function En(e){var n,t=w;re(er(e));try{e.f&=~ve,Qt(e),n=dt(e)}finally{re(t)}return n}function Zn(e){var n=En(e);if(!e.equals(n)&&(e.wv=_t(),(!(p!=null&&p.is_fork)||e.deps===null)&&(e.v=n,e.deps===null))){E(e,m);return}pe||(S!==null?(rt()||p!=null&&p.is_fork)&&S.set(e,n):pn(e))}function nr(e){var n,t;if(e.effects!==null)for(const r of e.effects)(r.teardown||r.ac)&&((n=r.teardown)==null||n.call(r),(t=r.ac)==null||t.abort($),r.teardown=At,r.ac=null,Me(r,0),Tn(r))}function Wn(e){if(e.effects!==null)for(const n of e.effects)n.teardown&&he(n)}let an=new Set;const J=new Map;let Jn=!1;function mn(e,n){var t={f:0,v:e,reactions:null,equals:qn,rv:0,wv:0};return t}function z(e,n){const t=mn(e);return ut(t),t}function ls(e,n=!1,t=!0){var s;const r=mn(e);return n||(r.equals=Un),ze&&t&&y!==null&&y.l!==null&&((s=y.l).s??(s.s=[])).push(r),r}function X(e,n,t=!1){d!==null&&(!Y||(d.f&Nn)!==0)&&je()&&(d.f&(T|se|_n|Nn))!==0&&(F===null||!Se.call(F,e))&&Ft();let r=t?De(n):n;return ln(e,r,Ye)}function ln(e,n,t=null){if(!e.equals(n)){var r=e.v;pe?J.set(e,n):J.set(e,r),e.v=n;var s=ee.ensure();if(s.capture(e,r),(e.f&T)!==0){const f=e;(e.f&R)!==0&&En(f),pn(f)}e.wv=_t(),Qn(e,R,t),je()&&w!==null&&(w.f&m)!==0&&(w.f&(G|Q))===0&&(I===null?_r([e]):I.push(e)),!s.is_fork&&an.size>0&&!Jn&&tr()}return n}function tr(){Jn=!1;for(const e of an)(e.f&m)!==0&&E(e,H),Ne(e)&&he(e);an.clear()}function os(e,n=1){var t=oe(e),r=n===1?t++:t--;return X(e,t),r}function Je(e){X(e,e.v+1)}function Qn(e,n,t){var r=e.reactions;if(r!==null)for(var s=je(),f=r.length,o=0;o<f;o++){var l=r[o],a=l.f;if(!(!s&&l===w)){var i=(a&R)===0;if(i&&E(l,n),(a&T)!==0){var u=l;S==null||S.delete(u),(a&ve)===0&&(a&M&&(l.f|=ve),Qn(u,H,t))}else if(i){var v=l;(a&se)!==0&&j!==null&&j.add(v),t!==null?t.push(v):hn(v)}}}}function De(e){if(typeof e!="object"||e===null||ue in e)return e;const n=Ln(e);if(n!==bt&&n!==Tt)return e;var t=new Map,r=Et(e),s=z(0),f=ce,o=l=>{if(ce===f)return l();var a=d,i=ce;te(null),Mn(f);var u=l();return te(a),Mn(i),u};return r&&t.set("length",z(e.length)),new Proxy(e,{defineProperty(l,a,i){(!("value"in i)||i.configurable===!1||i.enumerable===!1||i.writable===!1)&&Pt();var u=t.get(a);return u===void 0?o(()=>{var v=z(i.value);return t.set(a,v),v}):X(u,i.value,!0),!0},deleteProperty(l,a){var i=t.get(a);if(i===void 0){if(a in l){const u=o(()=>z(A));t.set(a,u),Je(s)}}else X(i,A),Je(s);return!0},get(l,a,i){var g;if(a===ue)return e;var u=t.get(a),v=a in l;if(u===void 0&&(!v||(g=Ie(l,a))!=null&&g.writable)&&(u=o(()=>{var h=De(v?l[a]:A),L=z(h);return L}),t.set(a,u)),u!==void 0){var c=oe(u);return c===A?void 0:c}return Reflect.get(l,a,i)},getOwnPropertyDescriptor(l,a){var i=Reflect.getOwnPropertyDescriptor(l,a);if(i&&"value"in i){var u=t.get(a);u&&(i.value=oe(u))}else if(i===void 0){var v=t.get(a),c=v==null?void 0:v.v;if(v!==void 0&&c!==A)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return i},has(l,a){var c;if(a===ue)return!0;var i=t.get(a),u=i!==void 0&&i.v!==A||Reflect.has(l,a);if(i!==void 0||w!==null&&(!u||(c=Ie(l,a))!=null&&c.writable)){i===void 0&&(i=o(()=>{var g=u?De(l[a]):A,h=z(g);return h}),t.set(a,i));var v=oe(i);if(v===A)return!1}return u},set(l,a,i,u){var An;var v=t.get(a),c=a in l;if(r&&a==="length")for(var g=i;g<v.v;g+=1){var h=t.get(g+"");h!==void 0?X(h,A):g in l&&(h=o(()=>z(A)),t.set(g+"",h))}if(v===void 0)(!c||(An=Ie(l,a))!=null&&An.writable)&&(v=o(()=>z(void 0)),X(v,De(i)),t.set(a,v));else{c=v.v!==A;var L=o(()=>De(i));X(v,L)}var N=Reflect.getOwnPropertyDescriptor(l,a);if(N!=null&&N.set&&N.set.call(u,i),!c){if(r&&typeof a=="string"){var Oe=t.get("length"),ke=Number(a);Number.isInteger(ke)&&ke>=Oe.v&&X(Oe,ke+1)}Je(s)}return!0},ownKeys(l){oe(s);var a=Reflect.ownKeys(l).filter(v=>{var c=t.get(v);return c===void 0||c.v!==A});for(var[i,u]of t)u.v!==A&&!(i in l)&&a.push(i);return a},setPrototypeOf(){Mt()}})}function Cn(e){try{if(e!==null&&typeof e=="object"&&ue in e)return e[ue]}catch{}return e}function us(e,n){return Object.is(Cn(e),Cn(n))}var Dn,rr,sr,et,nt;function cs(){if(Dn===void 0){Dn=window,rr=document,sr=/Firefox/.test(navigator.userAgent);var e=Element.prototype,n=Node.prototype,t=Text.prototype;et=Ie(n,"firstChild").get,nt=Ie(n,"nextSibling").get,xn(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),xn(t)&&(t.__t=void 0)}}function Ge(e=""){return document.createTextNode(e)}function on(e){return et.call(e)}function fe(e){return nt.call(e)}function _s(e,n){if(!de)return on(e);var t=on(b);if(t===null)t=b.appendChild(Ge());else if(n&&t.nodeType!==$e){var r=Ge();return t==null||t.before(r),xe(r),r}return n&&gn(t),xe(t),t}function vs(e,n=!1){if(!de){var t=on(e);return t instanceof Comment&&t.data===""?fe(t):t}if(n){if((b==null?void 0:b.nodeType)!==$e){var r=Ge();return b==null||b.before(r),xe(r),r}gn(b)}return b}function ds(e,n=1,t=!1){let r=de?b:e;for(var s;n--;)s=r,r=fe(r);if(!de)return r;if(t){if((r==null?void 0:r.nodeType)!==$e){var f=Ge();return r===null?s==null||s.after(f):r.before(f),xe(f),f}gn(r)}return xe(r),r}function ps(e){e.textContent=""}function hs(){return!1}function ws(e,n,t){return document.createElementNS(n??Ht,e,void 0)}function gn(e){if(e.nodeValue.length<65536)return;let n=e.nextSibling;for(;n!==null&&n.nodeType===$e;)n.remove(),e.nodeValue+=n.nodeValue,n=e.nextSibling}function ys(e,n){if(n){const t=document.body;e.autofocus=!0,en(()=>{document.activeElement===t&&e.focus()})}}let In=!1;function fr(){In||(In=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{var n;if(!e.defaultPrevented)for(const t of e.target.elements)(n=t.__on_r)==null||n.call(t)})},{capture:!0}))}function bn(e){var n=d,t=w;te(null),re(null);try{return e()}finally{te(n),re(t)}}function Es(e,n,t,r=t){e.addEventListener(n,()=>bn(t));const s=e.__on_r;s?e.__on_r=()=>{s(),r(!0)}:e.__on_r=()=>r(!0),fr()}function tt(e){w===null&&(d===null&&Dt(),Ct()),pe&&kt()}function ar(e,n){var t=n.last;t===null?n.last=n.first=e:(t.next=e,e.prev=t,n.last=e)}function C(e,n){var t=w;t!==null&&(t.f&V)!==0&&(e|=V);var r={ctx:y,deps:null,nodes:null,f:e|R|M,first:null,fn:n,last:null,next:null,parent:t,b:t&&t.b,prev:null,teardown:null,wv:0,ac:null},s=r;if((e&_e)!==0)ye!==null?ye.push(r):ee.ensure().schedule(r);else if(n!==null){try{he(r)}catch(o){throw ne(r),o}s.deps===null&&s.teardown===null&&s.nodes===null&&s.first===s.last&&(s.f&Re)===0&&(s=s.first,(e&se)!==0&&(e&qe)!==0&&s!==null&&(s.f|=qe))}if(s!==null&&(s.parent=t,t!==null&&ar(s,t),d!==null&&(d.f&T)!==0&&(e&Q)===0)){var f=d;(f.effects??(f.effects=[])).push(s)}return r}function rt(){return d!==null&&!Y}function ir(e){const n=C(Le,null);return E(n,m),n.teardown=e,n}function ms(e){tt();var n=w.f,t=!d&&(n&G)!==0&&(n&we)===0;if(t){var r=y;(r.e??(r.e=[])).push(e)}else return st(e)}function st(e){return C(_e|Yn,e)}function gs(e){return tt(),C(Le|Yn,e)}function bs(e){ee.ensure();const n=C(Q|Re,e);return()=>{ne(n)}}function Ts(e){ee.ensure();const n=C(Q|Re,e);return(t={})=>new Promise(r=>{t.outro?cr(n,()=>{ne(n),r(void 0)}):(ne(n),r(void 0))})}function As(e){return C(_e,e)}function Ss(e,n){var t=y,r={effect:null,ran:!1,deps:e};t.l.$.push(r),r.effect=ft(()=>{if(e(),!r.ran){r.ran=!0;var s=w;try{re(s.parent),dr(n)}finally{re(s)}}})}function xs(){var e=y;ft(()=>{for(var n of e.l.$){n.deps();var t=n.effect;(t.f&m)!==0&&t.deps!==null&&E(t,H),Ne(t)&&he(t),n.ran=!1}})}function lr(e){return C(_n|Re,e)}function ft(e,n=0){return C(Le|n,e)}function Rs(e,n=[],t=[],r=[]){Xn(r,n,t,s=>{C(Le,()=>e(...s.map(oe)))})}function Ns(e,n=[],t=[],r=[]){if(t.length>0||r.length>0)var s=wn();Xn(r,n,t,f=>{C(_e,()=>e(...f.map(oe))),s&&s()})}function Os(e,n=0){var t=C(se|n,e);return t}function ks(e,n=0){var t=C(cn|n,e);return t}function Cs(e){return C(G|Re,e)}function at(e){var n=e.teardown;if(n!==null){const t=pe,r=d;Pn(!0),te(null);try{n.call(null)}finally{Pn(t),te(r)}}}function Tn(e,n=!1){var t=e.first;for(e.first=e.last=null;t!==null;){const s=t.ac;s!==null&&bn(()=>{s.abort($)});var r=t.next;(t.f&Q)!==0?t.parent=null:ne(t,n),t=r}}function or(e){for(var n=e.first;n!==null;){var t=n.next;(n.f&G)===0&&ne(n),n=t}}function ne(e,n=!0){var t=!1;(n||(e.f&Rt)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(ur(e.nodes.start,e.nodes.end),t=!0),E(e,Rn),Tn(e,n&&!t),Me(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(const f of r)f.stop();at(e),e.f^=Rn,e.f|=B;var s=e.parent;s!==null&&s.first!==null&&it(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function ur(e,n){for(;e!==null;){var t=e===n?null:fe(e);e.remove(),e=t}}function it(e){var n=e.parent,t=e.prev,r=e.next;t!==null&&(t.next=r),r!==null&&(r.prev=t),n!==null&&(n.first===e&&(n.first=r),n.last===e&&(n.last=t))}function cr(e,n,t=!0){var r=[];lt(e,r,!0);var s=()=>{t&&ne(e),n&&n()},f=r.length;if(f>0){var o=()=>--f||s();for(var l of r)l.out(o)}else s()}function lt(e,n,t){if((e.f&V)===0){e.f^=V;var r=e.nodes&&e.nodes.t;if(r!==null)for(const l of r)(l.is_global||t)&&n.push(l);for(var s=e.first;s!==null;){var f=s.next,o=(s.f&qe)!==0||(s.f&G)!==0&&(e.f&se)!==0;lt(s,n,o?t:!1),s=f}}}function Ds(e){ot(e,!0)}function ot(e,n){if((e.f&V)!==0){e.f^=V,(e.f&m)===0&&(E(e,R),ee.ensure().schedule(e));for(var t=e.first;t!==null;){var r=t.next,s=(t.f&qe)!==0||(t.f&G)!==0;ot(t,s?n:!1),t=r}var f=e.nodes&&e.nodes.t;if(f!==null)for(const o of f)(o.is_global||n)&&o.in()}}function Is(e,n){if(e.nodes)for(var t=e.nodes.start,r=e.nodes.end;t!==null;){var s=t===r?null:fe(t);n.append(t),t=s}}let He=!1,pe=!1;function Pn(e){pe=e}let d=null,Y=!1;function te(e){d=e}let w=null;function re(e){w=e}let F=null;function ut(e){d!==null&&(F===null?F=[e]:F.push(e))}let O=null,k=0,I=null;function _r(e){I=e}let ct=1,le=0,ce=le;function Mn(e){ce=e}function _t(){return++ct}function Ne(e){var n=e.f;if((n&R)!==0)return!0;if(n&T&&(e.f&=~ve),(n&H)!==0){for(var t=e.deps,r=t.length,s=0;s<r;s++){var f=t[s];if(Ne(f)&&Zn(f),f.wv>e.wv)return!0}(n&M)!==0&&S===null&&E(e,m)}return!1}function vt(e,n,t=!0){var r=e.reactions;if(r!==null&&!(F!==null&&Se.call(F,e)))for(var s=0;s<r.length;s++){var f=r[s];(f.f&T)!==0?vt(f,n,!1):n===f&&(t?E(f,R):(f.f&m)!==0&&E(f,H),hn(f))}}function dt(e){var L;var n=O,t=k,r=I,s=d,f=F,o=y,l=Y,a=ce,i=e.f;O=null,k=0,I=null,d=(i&(G|Q))===0?e:null,F=null,Ue(e.ctx),Y=!1,ce=++le,e.ac!==null&&(bn(()=>{e.ac.abort($)}),e.ac=null);try{e.f|=Qe;var u=e.fn,v=u();e.f|=we;var c=e.deps,g=p==null?void 0:p.is_fork;if(O!==null){var h;if(g||Me(e,k),c!==null&&k>0)for(c.length=k+O.length,h=0;h<O.length;h++)c[k+h]=O[h];else e.deps=c=O;if(rt()&&(e.f&M)!==0)for(h=k;h<c.length;h++)((L=c[h]).reactions??(L.reactions=[])).push(e)}else!g&&c!==null&&k<c.length&&(Me(e,k),c.length=k);if(je()&&I!==null&&!Y&&c!==null&&(e.f&(T|H|R))===0)for(h=0;h<I.length;h++)vt(I[h],e);if(s!==null&&s!==e){if(le++,s.deps!==null)for(let N=0;N<t;N+=1)s.deps[N].rv=le;if(n!==null)for(const N of n)N.rv=le;I!==null&&(r===null?r=I:r.push(...I))}return(e.f&W)!==0&&(e.f^=W),v}catch(N){return Bt(N)}finally{e.f^=Qe,O=n,k=t,I=r,d=s,F=f,Ue(o),Y=l,ce=a}}function vr(e,n){let t=n.reactions;if(t!==null){var r=mt.call(t,e);if(r!==-1){var s=t.length-1;s===0?t=n.reactions=null:(t[r]=t[s],t.pop())}}if(t===null&&(n.f&T)!==0&&(O===null||!Se.call(O,n))){var f=n;(f.f&M)!==0&&(f.f^=M,f.f&=~ve),pn(f),nr(f),Me(f,0)}}function Me(e,n){var t=e.deps;if(t!==null)for(var r=n;r<t.length;r++)vr(e,t[r])}function he(e){var n=e.f;if((n&B)===0){E(e,m);var t=w,r=He;w=e,He=!0;try{(n&(se|cn))!==0?or(e):Tn(e),at(e);var s=dt(e);e.teardown=typeof s=="function"?s:null,e.wv=ct;var f}finally{He=r,w=t}}}async function Ps(){await Promise.resolve(),zt()}function Ms(){return ee.ensure().settled()}function oe(e){var n=e.f,t=(n&T)!==0;if(d!==null&&!Y){var r=w!==null&&(w.f&B)!==0;if(!r&&(F===null||!Se.call(F,e))){var s=d.deps;if((d.f&Qe)!==0)e.rv<le&&(e.rv=le,O===null&&s!==null&&s[k]===e?k++:O===null?O=[e]:O.push(e));else{(d.deps??(d.deps=[])).push(e);var f=e.reactions;f===null?e.reactions=[d]:Se.call(f,d)||f.push(d)}}}if(pe&&J.has(e))return J.get(e);if(t){var o=e;if(pe){var l=o.v;return((o.f&m)===0&&o.reactions!==null||ht(o))&&(l=En(o)),J.set(o,l),l}var a=(o.f&M)===0&&!Y&&d!==null&&(He||(d.f&M)!==0),i=(o.f&we)===0;Ne(o)&&(a&&(o.f|=M),Zn(o)),a&&!i&&(Wn(o),pt(o))}if(S!=null&&S.has(e))return S.get(e);if((e.f&W)!==0)throw e.v;return e.v}function pt(e){if(e.f|=M,e.deps!==null)for(const n of e.deps)(n.reactions??(n.reactions=[])).push(e),(n.f&T)!==0&&(n.f&M)===0&&(Wn(n),pt(n))}function ht(e){if(e.v===A)return!0;if(e.deps===null)return!1;for(const n of e.deps)if(J.has(n)||(n.f&T)!==0&&ht(n))return!0;return!1}function dr(e){var n=Y;try{return Y=!0,e()}finally{Y=n}}function Fs(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(ue in e)un(e);else if(!Array.isArray(e))for(let n in e){const t=e[n];typeof t=="object"&&t&&ue in t&&un(t)}}}function un(e,n=new Set){if(typeof e=="object"&&e!==null&&!(e instanceof EventTarget)&&!n.has(e)){n.add(e),e instanceof Date&&e.getTime();for(let r in e)try{un(e[r],n)}catch{}const t=Ln(e);if(t!==Object.prototype&&t!==Array.prototype&&t!==Map.prototype&&t!==Set.prototype&&t!==Date.prototype){const r=gt(t);for(let s in r){const f=r[s].get;if(f)try{f.call(e)}catch{}}}}}export{rr as $,mn as A,Dr as B,Hn as C,B as D,qe as E,Ds as F,cr as G,Lt as H,V as I,G as J,ps as K,Is as L,ne as M,on as N,en as O,fe as P,Ir as Q,Pr as R,Es as S,Ps as T,dr as U,ft as V,y as W,As as X,w as Y,Rn as Z,ue as _,Xr as a,$r as a$,je as a0,Ie as a1,Or as a2,jr as a3,De as a4,X as a5,pe as a6,os as a7,re as a8,Yr as a9,is as aA,mr as aB,Ss as aC,xs as aD,qt as aE,ws as aF,sr as aG,qr as aH,Ur as aI,$e as aJ,gn as aK,we as aL,rt as aM,Je as aN,xt as aO,Vr as aP,E as aQ,R as aR,H as aS,Kt as aT,te as aU,Ue as aV,ee as aW,Bt as aX,d as aY,Ve as aZ,kr as a_,ze as aa,Lr as ab,Fr as ac,yn as ad,yr as ae,br as af,Hr as ag,ir as ah,wr as ai,At as aj,Rt as ak,Re as al,gs as am,ms as an,St as ao,Er as ap,Fs as aq,Nt as ar,es as as,fs as at,as as au,_s as av,ds as aw,Zr as ax,Wr as ay,Rs as az,Os as b,bn as b0,cs as b1,vn as b2,Nr as b3,Ts as b4,dn as b5,zt as b6,z as b7,ks as b8,Kr as b9,us as ba,Xn as bb,Ht as bc,Ln as bd,Gr as be,gt as bf,Sr as bg,ys as bh,A as bi,fr as bj,Tr as bk,xr as bl,Br as bm,ce as bn,rs as bo,ns as bp,ts as bq,ss as br,bs,Ms as bt,xe as c,Ns as d,zr as e,vs as f,b as g,de as h,oe as i,jt as j,Yt as k,ln as l,p as m,Ge as n,gr as o,Cs as p,Rr as q,Qr as r,Jr as s,hs as t,Jt as u,Et as v,hr as w,Cr as x,Mr as y,ls as z};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.CQDkqUeN.js","../chunks/CS53ooo0.js","../chunks/vtBo8kBV.js","../chunks/BA4Gucnq.js","../chunks/B6WG2Sd3.js","../chunks/ClknbeNl.js","../chunks/B2cyTHdf.js","../chunks/BkD3yAYe.js","../chunks/ChUctqXA.js","../chunks/DoRPmqLn.js","../chunks/DVa8Y-mQ.js","../chunks/DXDBlEGf.js","../chunks/Dr67pd7v.js","../chunks/BUApaBEI.js","../chunks/Dyvi1wBH.js","../chunks/CGCMIfh3.js","../chunks/Brun6sCr.js","../chunks/CFwxUBGi.js","../chunks/C4uF_YIK.js","../chunks/BAJAS8BI.js","../chunks/CBY2biv-.js","../chunks/DsxvjlCC.js","../chunks/DCEayuDt.js","../chunks/DAdOEnFb.js","../assets/homeFeedPanelStore.CE6xTfsa.css","../assets/0.BLOTwIuF.css","../nodes/1.BUa24rXB.js","../nodes/2.AJd2163d.js","../nodes/3.BZQeL-vz.js","../chunks/DL3Q5sfb.js","../chunks/BXTsojX2.js","../chunks/C8umpVpB.js","../chunks/D6kzEN_P.js","../chunks/6prdYIKP.js","../assets/SourcesList.D5Lso0bo.css","../nodes/4.BT_N8pCh.js","../assets/4.Di6rvlY-.css","../nodes/5.Bo_ftyqW.js","../chunks/DAV9bzjw.js","../assets/BackToParentRoute.DGk-X5ow.css","../assets/5.B-dPiwB7.css","../nodes/6.vOowdQUr.js","../assets/6.B27N7pdA.css","../nodes/7.BfVbBKZu.js","../assets/7.CrNxmd8B.css","../nodes/8.BslYG5f2.js","../chunks/Bfc47y5P.js","../assets/8.Cgji2b15.css","../nodes/9.DAgT-df2.js","../assets/9.BsCIAvn3.css","../nodes/10.MZgVhpGF.js","../assets/10.Dj8_pmut.css","../nodes/11.B39IbrZ0.js","../assets/11.qYZMiTb0.css","../nodes/12.B5B81dLQ.js","../assets/12.DfJcfUWl.css","../nodes/13.DWWcH27k.js","../assets/13.Qu_tY6H9.css","../nodes/14.Db6eOPqq.js","../assets/14.DfMfOrS3.css","../nodes/15.B2jiP2VJ.js","../assets/15.nNGjXhCQ.css","../nodes/16.p6WfP435.js","../chunks/B-CeeY89.js","../assets/16.Cw9oSkcO.css","../nodes/17.BtYZF6FM.js","../chunks/hp4PFHFv.js","../nodes/18.BIzqhTqv.js"])))=>i.map(i=>d[i]);
2
- var Z=r=>{throw TypeError(r)};var M=(r,t,e)=>t.has(r)||Z("Cannot "+e);var l=(r,t,e)=>(M(r,t,"read from private field"),e?e.call(r):t.get(r)),F=(r,t,e)=>t.has(r)?Z("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(r):t.set(r,e),H=(r,t,e,i)=>(M(r,t,"write to private field"),i?i.call(r,e):t.set(r,e),e);import{a5 as z,af as it,i as v,b6 as mt,ai as ut,z as ct,at as lt,am as _t,an as dt,T as ft,f as A,aw as vt,au as ht,b7 as J,av as gt,ax as Et,az as Pt,aA as x}from"../chunks/vtBo8kBV.js";import{h as pt,m as Rt,u as yt,s as Ot}from"../chunks/B2cyTHdf.js";import{a as E,c as I,f as $,t as bt}from"../chunks/CS53ooo0.js";import{o as Lt}from"../chunks/Dyvi1wBH.js";import{i as B}from"../chunks/BkD3yAYe.js";import{c as k}from"../chunks/C4uF_YIK.js";import{b as S}from"../chunks/B-CeeY89.js";import{p as q}from"../chunks/BAJAS8BI.js";function At(r){return class extends Tt{constructor(t){super({component:r,...t})}}}var P,_;class Tt{constructor(t){F(this,P);F(this,_);var p;var e=new Map,i=(o,a)=>{var m=ct(a,!1,!1);return e.set(o,m),m};const u=new Proxy({...t.props||{},$$events:{}},{get(o,a){return v(e.get(a)??i(a,Reflect.get(o,a)))},has(o,a){return a===it?!0:(v(e.get(a)??i(a,Reflect.get(o,a))),Reflect.has(o,a))},set(o,a,m){return z(e.get(a)??i(a,m),m),Reflect.set(o,a,m)}});H(this,_,(t.hydrate?pt:Rt)(t.component,{target:t.target,anchor:t.anchor,props:u,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError})),(!((p=t==null?void 0:t.props)!=null&&p.$$host)||t.sync===!1)&&mt(),H(this,P,u.$$events);for(const o of Object.keys(l(this,_)))o==="$set"||o==="$destroy"||o==="$on"||ut(this,o,{get(){return l(this,_)[o]},set(a){l(this,_)[o]=a},enumerable:!0});l(this,_).$set=o=>{Object.assign(u,o)},l(this,_).$destroy=()=>{yt(l(this,_))}}$set(t){l(this,_).$set(t)}$on(t,e){l(this,P)[t]=l(this,P)[t]||[];const i=(...u)=>e.call(this,...u);return l(this,P)[t].push(i),()=>{l(this,P)[t]=l(this,P)[t].filter(u=>u!==i)}}$destroy(){l(this,_).$destroy()}}P=new WeakMap,_=new WeakMap;const Dt="modulepreload",It=function(r,t){return new URL(r,t).href},N={},s=function(t,e,i){let u=Promise.resolve();if(e&&e.length>0){let o=function(c){return Promise.all(c.map(h=>Promise.resolve(h).then(R=>({status:"fulfilled",value:R}),R=>({status:"rejected",reason:R}))))};const a=document.getElementsByTagName("link"),m=document.querySelector("meta[property=csp-nonce]"),j=(m==null?void 0:m.nonce)||(m==null?void 0:m.getAttribute("nonce"));u=o(e.map(c=>{if(c=It(c,i),c in N)return;N[c]=!0;const h=c.endsWith(".css"),R=h?'[rel="stylesheet"]':"";if(!!i)for(let y=a.length-1;y>=0;y--){const n=a[y];if(n.href===c&&(!h||n.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${R}`))return;const g=document.createElement("link");if(g.rel=h?"stylesheet":Dt,h||(g.as="script"),g.crossOrigin="",g.href=c,j&&g.setAttribute("nonce",j),document.head.appendChild(g),h)return new Promise((y,n)=>{g.addEventListener("load",y),g.addEventListener("error",()=>n(new Error(`Unable to preload CSS for ${c}`)))})}))}function p(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return u.then(o=>{for(const a of o||[])a.status==="rejected"&&p(a.reason);return t().catch(p)})},Ht={};var Vt=$('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),wt=$("<!> <!>",1);function xt(r,t){lt(t,!0);let e=q(t,"components",23,()=>[]),i=q(t,"data_0",3,null),u=q(t,"data_1",3,null),p=q(t,"data_2",3,null);_t(()=>t.stores.page.set(t.page)),dt(()=>{t.stores,t.page,t.constructors,e(),t.form,i(),u(),p(),t.stores.page.notify()});let o=J(!1),a=J(!1),m=J(null);Lt(()=>{const n=t.stores.page.subscribe(()=>{v(o)&&(z(a,!0),ft().then(()=>{z(m,document.title||"untitled page",!0)}))});return z(o,!0),n});const j=x(()=>t.constructors[2]);var c=wt(),h=A(c);{var R=n=>{const O=x(()=>t.constructors[0]);var b=I(),V=A(b);k(V,()=>v(O),(L,T)=>{S(T(L,{get data(){return i()},get form(){return t.form},get params(){return t.page.params},children:(d,St)=>{var Q=I(),et=A(Q);{var rt=D=>{const U=x(()=>t.constructors[1]);var w=I(),G=A(w);k(G,()=>v(U),(W,Y)=>{S(Y(W,{get data(){return u()},get form(){return t.form},get params(){return t.page.params},children:(f,jt)=>{var X=I(),ot=A(X);k(ot,()=>v(j),(st,nt)=>{S(nt(st,{get data(){return p()},get form(){return t.form},get params(){return t.page.params}}),C=>e()[2]=C,()=>{var C;return(C=e())==null?void 0:C[2]})}),E(f,X)},$$slots:{default:!0}}),f=>e()[1]=f,()=>{var f;return(f=e())==null?void 0:f[1]})}),E(D,w)},at=D=>{const U=x(()=>t.constructors[1]);var w=I(),G=A(w);k(G,()=>v(U),(W,Y)=>{S(Y(W,{get data(){return u()},get form(){return t.form},get params(){return t.page.params}}),f=>e()[1]=f,()=>{var f;return(f=e())==null?void 0:f[1]})}),E(D,w)};B(et,D=>{t.constructors[2]?D(rt):D(at,-1)})}E(d,Q)},$$slots:{default:!0}}),d=>e()[0]=d,()=>{var d;return(d=e())==null?void 0:d[0]})}),E(n,b)},K=n=>{const O=x(()=>t.constructors[0]);var b=I(),V=A(b);k(V,()=>v(O),(L,T)=>{S(T(L,{get data(){return i()},get form(){return t.form},get params(){return t.page.params}}),d=>e()[0]=d,()=>{var d;return(d=e())==null?void 0:d[0]})}),E(n,b)};B(h,n=>{t.constructors[1]?n(R):n(K,-1)})}var g=vt(h,2);{var y=n=>{var O=Vt(),b=gt(O);{var V=L=>{var T=bt();Pt(()=>Ot(T,v(m))),E(L,T)};B(b,L=>{v(a)&&L(V)})}Et(O),E(n,O)};B(g,n=>{v(o)&&n(y)})}E(r,c),ht()}const Jt=At(xt),Kt=[()=>s(()=>import("../nodes/0.CQDkqUeN.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25]),import.meta.url),()=>s(()=>import("../nodes/1.BUa24rXB.js"),__vite__mapDeps([26,1,2,3,6,10,12,5,13,14]),import.meta.url),()=>s(()=>import("../nodes/2.AJd2163d.js"),__vite__mapDeps([27,1,2,3,8]),import.meta.url),()=>s(()=>import("../nodes/3.BZQeL-vz.js"),__vite__mapDeps([28,1,2,3,29,30,14,6,4,5,7,17,9,31,10,11,12,13,15,16,18,19,20,21,8,22,23,24,32,33,34]),import.meta.url),()=>s(()=>import("../nodes/4.BT_N8pCh.js"),__vite__mapDeps([35,1,2,3,14,6,7,17,29,9,10,20,36]),import.meta.url),()=>s(()=>import("../nodes/5.Bo_ftyqW.js"),__vite__mapDeps([37,1,2,3,14,6,7,29,9,31,10,38,4,5,11,12,13,39,20,15,40]),import.meta.url),()=>s(()=>import("../nodes/6.vOowdQUr.js"),__vite__mapDeps([41,1,2,3,14,6,7,29,9,31,10,38,4,5,11,12,13,39,20,15,42]),import.meta.url),()=>s(()=>import("../nodes/7.BfVbBKZu.js"),__vite__mapDeps([43,1,2,3,14,4,5,10,12,13,11,44]),import.meta.url),()=>s(()=>import("../nodes/8.BslYG5f2.js"),__vite__mapDeps([45,1,2,3,6,7,29,9,31,46,10,38,4,5,11,12,13,14,39,47]),import.meta.url),()=>s(()=>import("../nodes/9.DAgT-df2.js"),__vite__mapDeps([48,1,2,3,14,6,7,17,29,9,10,38,4,5,11,12,13,39,20,15,49]),import.meta.url),()=>s(()=>import("../nodes/10.MZgVhpGF.js"),__vite__mapDeps([50,1,2,3,14,6,7,29,9,31,10,38,4,5,11,12,13,39,20,15,51]),import.meta.url),()=>s(()=>import("../nodes/11.B39IbrZ0.js"),__vite__mapDeps([52,1,2,3,29,30,14,6,4,5,7,17,9,31,10,11,12,13,15,16,18,19,20,21,8,22,23,24,32,33,34,38,39,53]),import.meta.url),()=>s(()=>import("../nodes/12.B5B81dLQ.js"),__vite__mapDeps([54,1,2,3,14,6,7,17,29,9,31,46,10,38,4,5,11,12,13,39,20,15,55]),import.meta.url),()=>s(()=>import("../nodes/13.DWWcH27k.js"),__vite__mapDeps([56,1,2,3,14,6,7,17,29,9,31,10,20,15,5,21,8,19,4,22,33,18,57]),import.meta.url),()=>s(()=>import("../nodes/14.Db6eOPqq.js"),__vite__mapDeps([58,1,2,3,14,6,5,7,17,29,9,31,10,20,11,12,13,15,32,8,19,4,21,22,23,59]),import.meta.url),()=>s(()=>import("../nodes/15.B2jiP2VJ.js"),__vite__mapDeps([60,1,2,3,14,29,10,12,5,13,61]),import.meta.url),()=>s(()=>import("../nodes/16.p6WfP435.js"),__vite__mapDeps([62,1,2,3,4,5,6,7,22,29,10,9,20,11,12,13,14,15,63,19,38,39,64]),import.meta.url),()=>s(()=>import("../nodes/17.BtYZF6FM.js"),__vite__mapDeps([65,66,13]),import.meta.url),()=>s(()=>import("../nodes/18.BIzqhTqv.js"),__vite__mapDeps([67,66,13]),import.meta.url)],Qt=[],Xt={"/":[3],"/admin":[4,[2]],"/admin/deliver":[5,[2]],"/admin/llm":[6,[2]],"/admin/logs":[7,[2]],"/admin/parse":[8,[2]],"/admin/pipeline":[9,[2]],"/admin/proxy":[10,[2]],"/admin/sources":[11,[2]],"/admin/tags":[12,[2]],"/logs":[13],"/plugins":[14],"/plugins/new":[15],"/plugins/[id]":[16],"/tags":[17],"/[sub]":[18]},tt={handleError:(({error:r})=>{console.error(r)}),reroute:(()=>{}),transport:{}},kt=Object.fromEntries(Object.entries(tt.transport).map(([r,t])=>[r,t.decode])),Zt=Object.fromEntries(Object.entries(tt.transport).map(([r,t])=>[r,t.encode])),Mt=!1,Nt=(r,t)=>kt[r](t);export{Nt as decode,kt as decoders,Xt as dictionary,Zt as encoders,Mt as hash,tt as hooks,Ht as matchers,Kt as nodes,Jt as root,Qt as server_loads};
@@ -1 +0,0 @@
1
- import{l as o,a as r}from"../chunks/Dr67pd7v.js";export{o as load_css,r as start};
@@ -1 +0,0 @@
1
- import{a as h,f as g}from"../chunks/CS53ooo0.js";import"../chunks/BA4Gucnq.js";import{at as v,f as l,az as d,au as x,av as e,ax as o,aw as _}from"../chunks/vtBo8kBV.js";import{s as p}from"../chunks/B2cyTHdf.js";import{i as $}from"../chunks/DVa8Y-mQ.js";import{s as k,p as m}from"../chunks/Dr67pd7v.js";const b={get error(){return m.error},get status(){return m.status}};k.updated.check;const i=b;var w=g("<h1> </h1> <p> </p>",1);function B(f,n){v(n,!1),$();var t=w(),r=l(t),c=e(r,!0);o(r);var a=_(r,2),u=e(a,!0);o(a),d(()=>{var s;p(c,i.status),p(u,(s=i.error)==null?void 0:s.message)}),h(f,t),x()}export{B as component};
@@ -1 +0,0 @@
1
- import{a as v,f as u}from"../chunks/CS53ooo0.js";import"../chunks/BA4Gucnq.js";import{o as H}from"../chunks/Dyvi1wBH.js";import{at as $,az as B,au as C,d as J,av as a,a5 as t,i as o,z as d,$ as M,aw as m,ax as r,f as N,ay as U}from"../chunks/vtBo8kBV.js";import{d as X,a as Y,s as A}from"../chunks/B2cyTHdf.js";import{i as D}from"../chunks/BkD3yAYe.js";import{h as F}from"../chunks/DL3Q5sfb.js";import{P as q,r as G}from"../chunks/DoRPmqLn.js";import{b as I}from"../chunks/C8umpVpB.js";import{i as K}from"../chunks/DVa8Y-mQ.js";import{B as L}from"../chunks/DAV9bzjw.js";import{b as j}from"../chunks/CBY2biv-.js";import{s as z}from"../chunks/CGCMIfh3.js";var Q=u('<p class="hint svelte-1f24zj">加载中…</p>'),V=u('<input type="text" class="text-input svelte-1f24zj" placeholder="http://127.0.0.1:7890" autocomplete="off"/> <p class="hint svelte-1f24zj">留空表示不在配置中设置全局代理(可继续用环境变量)。支持带账号:<code>http://user:pass@host:port</code></p>',1),W=u('<div class="feed-wrap svelte-1f24zj"><div class="feed-col svelte-1f24zj"><div class="body svelte-1f24zj"><!> <p class="intro svelte-1f24zj">写入 <code class="svelte-1f24zj">.rssany/config.json</code> 的 <code class="svelte-1f24zj">globalProxy</code>。抓取与站点登录时,若未在 <code class="svelte-1f24zj">sources.json</code> 或插件中指定单源代理,则使用此处;未填写时仍可使用环境变量 <code class="svelte-1f24zj">HTTP_PROXY</code> / <code class="svelte-1f24zj">HTTPS_PROXY</code>。</p> <section class="form-section svelte-1f24zj"><h3 class="section-title svelte-1f24zj">全局 HTTP(S) 代理</h3> <!></section> <div class="btn-row svelte-1f24zj"><button type="button" class="btn btn-primary svelte-1f24zj"> </button></div></div></div></div>');function ve(x,P){$(P,!1);let s=d(""),l=d(!0),i=d(!1);async function T(){t(l,!0);try{const e=await j("/api/proxy");t(s,typeof(e==null?void 0:e.globalProxy)=="string"?e.globalProxy:"")}catch{t(s,"")}finally{t(l,!1)}}async function w(){t(i,!0);try{const e=await j("/api/proxy",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({globalProxy:o(s).trim()})});if(!(e!=null&&e.ok))throw new Error("保存失败");t(s,typeof e.globalProxy=="string"?e.globalProxy:""),z("已保存","success")}catch(e){z("保存失败: "+(e instanceof Error?e.message:String(e)),"error")}finally{t(i,!1)}}H(T),K();var f=W();F("1f24zj",e=>{J(()=>{M.title=`代理 - ${q}`})});var y=a(f),b=a(y),h=a(b);L(h,{});var p=m(h,4),k=m(a(p),2);{var O=e=>{var n=Q();v(e,n)},R=e=>{var n=V(),_=N(n);G(_),U(2),I(_,()=>o(s),E=>t(s,E)),v(e,n)};D(k,e=>{o(l)?e(O):e(R,-1)})}r(p);var g=m(p,2),c=a(g),S=a(c,!0);r(c),r(g),r(b),r(y),r(f),B(()=>{c.disabled=o(l)||o(i),A(S,o(i)?"保存中…":"保存")}),Y("click",c,w),v(x,f),C()}X(["click"]);export{ve as component};
@@ -1 +0,0 @@
1
- import{a as s,f as m}from"../chunks/CS53ooo0.js";import"../chunks/BA4Gucnq.js";import{f as i,d as c,av as f,aw as d,$ as n,ax as p}from"../chunks/vtBo8kBV.js";import{h as v}from"../chunks/DL3Q5sfb.js";import{S as l}from"../chunks/BXTsojX2.js";import{B as _}from"../chunks/DAV9bzjw.js";import{P as h}from"../chunks/DoRPmqLn.js";var u=m('<div class="admin-sources-back svelte-8cr5m9"><!></div> <!>',1);function R(o){var r=u();v("8cr5m9",$=>{c(()=>{n.title=`Sources — ${h}`})});var a=i(r),e=f(a);_(e,{}),p(a);var t=d(a,2);l(t,{}),s(o,r)}export{R as component};
@@ -1 +0,0 @@
1
- import{a as u,f as d}from"../chunks/CS53ooo0.js";import"../chunks/BA4Gucnq.js";import{o as we}from"../chunks/Dyvi1wBH.js";import{v as ke,at as Ce,f as Te,az as E,i as s,au as Le,d as Ee,av as n,a5 as a,z as k,aw as i,$ as $e,ax as r,u as Me}from"../chunks/vtBo8kBV.js";import{e as f,s as S}from"../chunks/B2cyTHdf.js";import{i as O}from"../chunks/BkD3yAYe.js";import{e as se,i as ae}from"../chunks/CFwxUBGi.js";import{h as Pe}from"../chunks/DL3Q5sfb.js";import{P as Se,r as Oe,c as Fe,s as re}from"../chunks/DoRPmqLn.js";import{b as Je}from"../chunks/C8umpVpB.js";import{s as X}from"../chunks/Bfc47y5P.js";import{i as Ne}from"../chunks/DVa8Y-mQ.js";import{B as je}from"../chunks/DAV9bzjw.js";import{b as Y}from"../chunks/CBY2biv-.js";import{s as F}from"../chunks/CGCMIfh3.js";function ze(z,$){var C;var o=(C=z.$$events)==null?void 0:C[$.type],p=ke(o)?o.slice():o==null?[]:[o];for(var m of p)m.call(this,$)}var Be=d('<div class="state svelte-1s5glru">加载中…</div>'),De=d('<p class="empty-hint svelte-1s5glru">暂无标签。添加后,pipeline 会对新入库条目自动打标签。</p>'),Ie=d('<span class="tag-meta svelte-1s5glru"> </span>'),Re=d('<div class="tag-badge svelte-1s5glru" role="button" tabindex="0"><span class="tag-name svelte-1s5glru"> </span> <!> <button type="button" class="tag-remove svelte-1s5glru" title="从系统标签中删除">×</button></div>'),Ue=d('<div class="tag-list svelte-1s5glru"></div>'),qe=d('<div class="tag-badge suggested svelte-1s5glru" role="button" tabindex="0"><span class="tag-name svelte-1s5glru"> </span> <span class="tag-meta svelte-1s5glru"> </span> <button type="button" class="tag-add svelte-1s5glru" title="添加到系统标签">+</button></div>'),Ae=d('<div class="suggested-section svelte-1s5glru"><h3 class="section-title svelte-1s5glru">建议添加(文章中出现但未在系统标签库中)</h3> <div class="tag-list svelte-1s5glru"></div></div>'),Xe=d('<div class="body svelte-1s5glru"><div class="tags-section svelte-1s5glru"><h3 class="section-title svelte-1s5glru"> </h3> <!></div> <!></div>'),Ye=d('<div class="context-menu svelte-1s5glru" role="menu" tabindex="-1"><button type="button" class="context-menu-item svelte-1s5glru">从所有文章中移除该标签</button></div>'),Ge=d('<div class="feed-wrap svelte-1s5glru"><div class="feed-col svelte-1s5glru"><div class="feed-toolbar-block svelte-1s5glru"><!> <div class="admin-feed-header"><div class="admin-feed-header__left"><h2>系统标签</h2> <p class="admin-feed-header__desc">系统标签库,新入库条目会由 LLM 自动匹配打标签。</p></div> <div class="admin-feed-header__actions"><input type="text" class="admin-toolbar-input" placeholder="输入新标签,回车添加"/> <button type="button" class="admin-toolbar-btn admin-toolbar-btn--primary">添加</button></div></div></div> <div class="feed-body-scroll"><!></div></div></div> <!>',1);function vt(z,$){Ce($,!1);let o=k([]),p=[],m=k([]),C=k(!0),_=k(!1),M=k(""),b=k(null),J=k(!1);async function oe(){a(C,!0);try{const t=await Y("/api/tags");a(o,(t==null?void 0:t.tags)??[]),p=(t==null?void 0:t.stats)??[],a(m,(t==null?void 0:t.suggestedTags)??[])}catch{a(o,[]),p=[],a(m,[])}finally{a(C,!1)}}function ne(t){return p.find(e=>e.name.toLowerCase()===t.toLowerCase())}async function B(t){a(_,!0);try{const e=await Y("/api/tags",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({tags:t})});if(!(e!=null&&e.ok))throw new Error((e==null?void 0:e.message)??"保存失败");a(o,(e==null?void 0:e.tags)??t),p=(e==null?void 0:e.stats)??[],a(m,(e==null?void 0:e.suggestedTags)??[]),F("已保存","success")}catch(e){F("保存失败: "+(e instanceof Error?e.message:String(e)),"error")}finally{a(_,!1)}}function G(){const t=s(M).trim();if(!(!t||s(_))){if(s(o).some(e=>e.toLowerCase()===t.toLowerCase())){F("标签已存在","error");return}a(M,""),B([...s(o),t])}}function ie(t){s(_)||B(s(o).filter(e=>e!==t))}function le(t){s(_)||s(o).some(e=>e.toLowerCase()===t.toLowerCase())||B([...s(o),t])}function H(t,e){t.preventDefault(),t.stopPropagation(),a(b,{x:t.clientX,y:t.clientY,tag:e})}function D(){a(b,null)}async function ve(t){if(!s(J)){a(J,!0),a(b,null);try{const e=await Y("/api/tags/remove-from-items",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({tag:t})});if(!(e!=null&&e.ok))throw new Error((e==null?void 0:e.message)??"操作失败");a(o,(e==null?void 0:e.tags)??s(o)),p=(e==null?void 0:e.stats)??p,a(m,(e==null?void 0:e.suggestedTags)??s(m)),F(`已从 ${(e==null?void 0:e.removedCount)??0} 篇文章中移除该标签`,"success")}catch(e){F("操作失败: "+(e instanceof Error?e.message:String(e)),"error")}finally{a(J,!1)}}}we(()=>{oe();const t=()=>D(),e=()=>D();return document.addEventListener("click",t),document.addEventListener("contextmenu",e),()=>{document.removeEventListener("click",t),document.removeEventListener("contextmenu",e)}}),Ne();var K=Ge();Pe("1s5glru",t=>{Ee(()=>{$e.title=`标签 - ${Se}`})});var I=Te(K),Q=n(I),R=n(Q),V=n(R);je(V,{});var W=i(V,2),Z=i(n(W),2),N=n(Z);Oe(N);var ee=i(N,2);r(Z),r(W),r(R);var te=i(R,2),ce=n(te);{var ue=t=>{var e=Be();u(t,e)},de=t=>{var e=Xe(),T=n(e),h=n(T),fe=n(h);r(h);var pe=i(h,2);{var _e=v=>{var g=De();u(v,g)},be=v=>{var g=Ue();se(g,5,()=>s(o),ae,(j,y)=>{const c=Me(()=>ne(s(y)));var l=Re(),x=n(l),U=n(x,!0);r(x);var L=i(x,2);{var q=w=>{var A=Ie(),xe=n(A);r(A),E(()=>S(xe,`${s(c).count??""} 篇 · 热度 ${s(c).hotness??""}`)),u(w,A)};O(L,w=>{s(c)&&w(q)})}var P=i(L,2);r(l),E(()=>{re(l,"aria-label",`标签 ${s(y)},右键打开菜单`),S(U,s(y)),P.disabled=s(_)}),f("click",P,X(()=>ie(s(y)))),f("contextmenu",l,w=>H(w,s(y))),u(j,l)}),r(g),u(v,g)};O(pe,v=>{s(o).length===0?v(_e):v(be,-1)})}r(T);var he=i(T,2);{var ye=v=>{var g=Ae(),j=i(n(g),2);se(j,5,()=>s(m),ae,(y,c)=>{var l=qe(),x=n(l),U=n(x,!0);r(x);var L=i(x,2),q=n(L);r(L);var P=i(L,2);r(l),E(()=>{re(l,"aria-label",`建议标签 ${s(c).name},右键打开菜单`),S(U,s(c).name),S(q,`${s(c).count??""} 篇 · 热度 ${s(c).hotness??""}`),P.disabled=s(_)}),f("click",P,X(()=>le(s(c).name))),f("contextmenu",l,w=>H(w,s(c).name)),u(y,l)}),r(j),r(g),u(v,g)};O(he,v=>{s(m).length>0&&v(ye)})}r(e),E(()=>S(fe,`当前标签 (${s(o).length??""})`)),u(t,e)};O(ce,t=>{s(C)?t(ue):t(de,-1)})}r(te),r(Q),r(I);var me=i(I,2);{var ge=t=>{var e=Ye(),T=n(e);r(e),E(()=>{Fe(e,`left: ${s(b).x??""}px; top: ${s(b).y??""}px`),T.disabled=s(J)}),f("click",T,()=>ve(s(b).tag)),f("click",e,X(function(h){ze.call(this,$,h)})),f("keydown",e,h=>h.key==="Escape"&&D()),u(t,e)};O(me,t=>{s(b)&&t(ge)})}E(t=>ee.disabled=t,[()=>!s(M).trim()||s(_)]),Je(N,()=>s(M),t=>a(M,t)),f("keydown",N,t=>t.key==="Enter"&&G()),f("click",ee,G),u(z,K),Le()}export{vt as component};