rssany 0.1.1 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (130) hide show
  1. package/.env.example +1 -1
  2. package/README.md +32 -50
  3. package/app/plugins/builtin/rss.rssany.js +107 -24
  4. package/app/plugins/site.rssany.js +1 -1
  5. package/dist/index.js +1003 -271
  6. package/dist/index.js.map +1 -1
  7. package/{config.examples.json → init/config.json} +7 -1
  8. package/init/sources.json +353 -0
  9. package/package.json +4 -6
  10. package/statics/401.html +1 -1
  11. package/statics/README.md +1 -1
  12. package/webui/build/200.html +16 -18
  13. package/webui/build/_app/immutable/assets/0.DjU2hdCQ.css +1 -0
  14. package/webui/build/_app/immutable/assets/10.Dj8_pmut.css +1 -0
  15. package/webui/build/_app/immutable/assets/11.qYZMiTb0.css +1 -0
  16. package/webui/build/_app/immutable/assets/12.Ct59LCqW.css +1 -0
  17. package/webui/build/_app/immutable/assets/13.BhO9zvFi.css +1 -0
  18. package/webui/build/_app/immutable/assets/14.CujIhjQK.css +1 -0
  19. package/webui/build/_app/immutable/assets/15.nNGjXhCQ.css +1 -0
  20. package/webui/build/_app/immutable/assets/16.PP9XLDf7.css +1 -0
  21. package/webui/build/_app/immutable/assets/4.9wPHhVwv.css +1 -0
  22. package/webui/build/_app/immutable/assets/6.DSJfjJwx.css +1 -0
  23. package/webui/build/_app/immutable/assets/7.CrNxmd8B.css +1 -0
  24. package/webui/build/_app/immutable/assets/8.Ba5_jYIY.css +1 -0
  25. package/webui/build/_app/immutable/assets/{9.BZheTlzZ.css → 9.m-LCx_kl.css} +1 -1
  26. package/webui/build/_app/immutable/assets/BackToParentRoute.DGk-X5ow.css +1 -0
  27. package/webui/build/_app/immutable/assets/SourcesList.yTBBi3_m.css +1 -0
  28. package/webui/build/_app/immutable/assets/homeFeedPanelStore.BopJZtHu.css +1 -0
  29. package/webui/build/_app/immutable/chunks/{V2-VOe88.js → B-OsL1Ct.js} +1 -1
  30. package/webui/build/_app/immutable/chunks/B2Q1a1-H.js +2 -0
  31. package/webui/build/_app/immutable/chunks/BK3WtZwv.js +1 -0
  32. package/webui/build/_app/immutable/chunks/BQqoDzLx.js +1 -0
  33. package/webui/build/_app/immutable/chunks/BbWUOQ_m.js +1 -0
  34. package/webui/build/_app/immutable/chunks/Bp63qm3L.js +1 -0
  35. package/webui/build/_app/immutable/chunks/{CZDFXKiF.js → C85CNwD2.js} +1 -1
  36. package/webui/build/_app/immutable/chunks/CVzlFH44.js +1 -0
  37. package/webui/build/_app/immutable/chunks/CWNeClHp.js +6 -0
  38. package/webui/build/_app/immutable/chunks/CdMsRjxJ.js +1 -0
  39. package/webui/build/_app/immutable/chunks/Cihqbfi5.js +1 -0
  40. package/webui/build/_app/immutable/chunks/CllQAdvt.js +1 -0
  41. package/webui/build/_app/immutable/chunks/CtijX1u3.js +31 -0
  42. package/webui/build/_app/immutable/chunks/D5GvRCv7.js +1 -0
  43. package/webui/build/_app/immutable/chunks/DEDI7Ecm.js +1 -0
  44. package/webui/build/_app/immutable/chunks/DFuhmi31.js +1 -0
  45. package/webui/build/_app/immutable/chunks/DMWEh-Ek.js +2 -0
  46. package/webui/build/_app/immutable/chunks/DjNLq3TF.js +1 -0
  47. package/webui/build/_app/immutable/chunks/Dt2CddFe.js +1 -0
  48. package/webui/build/_app/immutable/chunks/Dv1VCsiB.js +41 -0
  49. package/webui/build/_app/immutable/chunks/Dw782Tjs.js +1 -0
  50. package/webui/build/_app/immutable/chunks/Xy_fhzQq.js +1 -0
  51. package/webui/build/_app/immutable/chunks/lk5LaiqA.js +1 -0
  52. package/webui/build/_app/immutable/chunks/mW5RwvnK.js +13 -0
  53. package/webui/build/_app/immutable/chunks/{CtHRh_pJ.js → tB7QMF3U.js} +1 -1
  54. package/webui/build/_app/immutable/chunks/xtNWTdbD.js +1 -0
  55. package/webui/build/_app/immutable/entry/app.BcD2eSsQ.js +2 -0
  56. package/webui/build/_app/immutable/entry/start.CbkdJdz1.js +1 -0
  57. package/webui/build/_app/immutable/nodes/0.DSUDmOx2.js +11 -0
  58. package/webui/build/_app/immutable/nodes/1.DU9aYGAb.js +1 -0
  59. package/webui/build/_app/immutable/nodes/10.Db6vw7Ih.js +1 -0
  60. package/webui/build/_app/immutable/nodes/11.BaAcorz3.js +1 -0
  61. package/webui/build/_app/immutable/nodes/12.Cg8AeCSH.js +1 -0
  62. package/webui/build/_app/immutable/nodes/13.nT3SOzEB.js +1 -0
  63. package/webui/build/_app/immutable/nodes/14.DqT4pcrQ.js +1 -0
  64. package/webui/build/_app/immutable/nodes/15.CCLbjxnH.js +1 -0
  65. package/webui/build/_app/immutable/nodes/{12.CMcby_lY.js → 16.DiigpVdP.js} +15 -15
  66. package/webui/build/_app/immutable/nodes/2.BYWOpaxy.js +1 -0
  67. package/webui/build/_app/immutable/nodes/3.DEcYOQc-.js +1 -0
  68. package/webui/build/_app/immutable/nodes/4.DTSxpKm7.js +2 -0
  69. package/webui/build/_app/immutable/nodes/5.CvM1TkLG.js +1 -0
  70. package/webui/build/_app/immutable/nodes/6.Dscr6LkS.js +1 -0
  71. package/webui/build/_app/immutable/nodes/7.Bp60MobD.js +1 -0
  72. package/webui/build/_app/immutable/nodes/8.DwSg0MHh.js +1 -0
  73. package/webui/build/_app/immutable/nodes/9.BeYOUjxR.js +1 -0
  74. package/webui/build/_app/version.json +1 -1
  75. package/sources.example.json +0 -562
  76. package/webui/build/_app/immutable/assets/0.BUAXpTm6.css +0 -1
  77. package/webui/build/_app/immutable/assets/10.I1OuCLrU.css +0 -1
  78. package/webui/build/_app/immutable/assets/11.CrO9xaki.css +0 -1
  79. package/webui/build/_app/immutable/assets/12.BEi6fInA.css +0 -1
  80. package/webui/build/_app/immutable/assets/14.Ctlgn1LZ.css +0 -1
  81. package/webui/build/_app/immutable/assets/2.eJ80XOGm.css +0 -1
  82. package/webui/build/_app/immutable/assets/4.B8-jYAVj.css +0 -1
  83. package/webui/build/_app/immutable/assets/6.Drn-0DON.css +0 -1
  84. package/webui/build/_app/immutable/assets/7.ms2diq_q.css +0 -1
  85. package/webui/build/_app/immutable/assets/8.DKymkjjs.css +0 -1
  86. package/webui/build/_app/immutable/assets/SourcesList.BhtYlRsQ.css +0 -1
  87. package/webui/build/_app/immutable/chunks/BUngiKFg.js +0 -1
  88. package/webui/build/_app/immutable/chunks/Bt0fzibd.js +0 -1
  89. package/webui/build/_app/immutable/chunks/BxHqDcpw.js +0 -1
  90. package/webui/build/_app/immutable/chunks/ByQRbEUX.js +0 -1
  91. package/webui/build/_app/immutable/chunks/C12mHcUp.js +0 -6
  92. package/webui/build/_app/immutable/chunks/C1kQ4pHy.js +0 -1
  93. package/webui/build/_app/immutable/chunks/C74gbb4Q.js +0 -1
  94. package/webui/build/_app/immutable/chunks/CAtemnMo.js +0 -1
  95. package/webui/build/_app/immutable/chunks/CVjCNJia.js +0 -1
  96. package/webui/build/_app/immutable/chunks/CjQQ9_Q2.js +0 -2
  97. package/webui/build/_app/immutable/chunks/D-6mYMI1.js +0 -1
  98. package/webui/build/_app/immutable/chunks/D1Gs8-g3.js +0 -1
  99. package/webui/build/_app/immutable/chunks/D9dRVKgL.js +0 -1
  100. package/webui/build/_app/immutable/chunks/DCEY1XiC.js +0 -1
  101. package/webui/build/_app/immutable/chunks/DI-t-G_K.js +0 -2
  102. package/webui/build/_app/immutable/chunks/DTUxjyWL.js +0 -1
  103. package/webui/build/_app/immutable/chunks/DWJZOHke.js +0 -1
  104. package/webui/build/_app/immutable/chunks/Dgs6d7X5.js +0 -1
  105. package/webui/build/_app/immutable/chunks/DjpPK99f.js +0 -71
  106. package/webui/build/_app/immutable/chunks/DjzVVxpy.js +0 -1
  107. package/webui/build/_app/immutable/chunks/DvtNA-3X.js +0 -1
  108. package/webui/build/_app/immutable/chunks/LQVMBmDN.js +0 -1
  109. package/webui/build/_app/immutable/chunks/Qw0Qgx6J.js +0 -1
  110. package/webui/build/_app/immutable/chunks/bohabpgg.js +0 -1
  111. package/webui/build/_app/immutable/chunks/c-YfbAB_.js +0 -8
  112. package/webui/build/_app/immutable/chunks/tpTQfoNn.js +0 -1
  113. package/webui/build/_app/immutable/entry/app.Cra5Zsz4.js +0 -2
  114. package/webui/build/_app/immutable/entry/start.ToY0Qh0_.js +0 -1
  115. package/webui/build/_app/immutable/nodes/0.D2-xzG_8.js +0 -11
  116. package/webui/build/_app/immutable/nodes/1.CFixzRR6.js +0 -1
  117. package/webui/build/_app/immutable/nodes/10.ayxWydPr.js +0 -1
  118. package/webui/build/_app/immutable/nodes/11.B0JS3E2j.js +0 -1
  119. package/webui/build/_app/immutable/nodes/13.DRpZV72T.js +0 -1
  120. package/webui/build/_app/immutable/nodes/14.DVeJW6bd.js +0 -1
  121. package/webui/build/_app/immutable/nodes/2.DIZ4IPNm.js +0 -1
  122. package/webui/build/_app/immutable/nodes/3.BFSNf0FK.js +0 -1
  123. package/webui/build/_app/immutable/nodes/4.BSsIjejE.js +0 -2
  124. package/webui/build/_app/immutable/nodes/5.COxRT9Oe.js +0 -1
  125. package/webui/build/_app/immutable/nodes/6.CBgQ4YzB.js +0 -1
  126. package/webui/build/_app/immutable/nodes/7.BbzWOL0V.js +0 -6
  127. package/webui/build/_app/immutable/nodes/8.C8120200.js +0 -1
  128. package/webui/build/_app/immutable/nodes/9.BH_BGQQ4.js +0 -1
  129. /package/webui/build/_app/immutable/nodes/{15.BtYZF6FM.js → 17.BtYZF6FM.js} +0 -0
  130. /package/webui/build/_app/immutable/nodes/{16.Ba_qJjp6.js → 18.Ba_qJjp6.js} +0 -0
@@ -0,0 +1,41 @@
1
+ var Os=Object.defineProperty;var Xr=e=>{throw TypeError(e)};var Cs=(e,t,n)=>t in e?Os(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ot=(e,t,n)=>Cs(e,typeof t!="symbol"?t+"":t,n),Yo=(e,t,n)=>t.has(e)||Xr("Cannot "+n);var f=(e,t,n)=>(Yo(e,t,"read from private field"),n?n.call(e):t.get(e)),A=(e,t,n)=>t.has(e)?Xr("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),j=(e,t,n,r)=>(Yo(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),B=(e,t,n)=>(Yo(e,t,"access private method"),n);import{c as dt,a as z,f as at,p as Oi,t as Xe}from"./BK3WtZwv.js";import"./lk5LaiqA.js";import{o as Ci}from"./Bp63qm3L.js";import{aA as W,i as o,b4 as yt,a4 as qo,an as he,a5 as d,at as ie,f as X,aj as ne,au as se,aw as M,av as S,ax as C,aC as wn,aD as Ss,ay as zt,az as kt,U as st,u as te,z as G,aq as Jo}from"./BbWUOQ_m.js";import{f as As,o as bn,d as zs,a as Et,s as Lt,e as ks,r as Es}from"./DMWEh-Ek.js";import{s as Fs,a as Yr}from"./DjNLq3TF.js";import{i as xt}from"./Dt2CddFe.js";import{e as Zo,i as qr}from"./BQqoDzLx.js";import{e as xn,r as Ye,a as qe,c as Ts,s as Qo}from"./B2Q1a1-H.js";import{b as Je}from"./Dw782Tjs.js";import{i as Ds}from"./CVzlFH44.js";import{g as Jr}from"./D5GvRCv7.js";import{p as Go}from"./C85CNwD2.js";import{s as $o}from"./tB7QMF3U.js";import{R as Ms,P as Ls,h as Zr,S as Is,a as Ws,E as Ns,r as Hs,s as Rs,c as Bs}from"./CtijX1u3.js";import{a as ee}from"./CBY2biv-.js";import{e as Vs,s as _e,C as Eo,f as Ks,g as _n,u as Si,h as Us,i as js,j as Xs,w as Pn,k as Ys,l as Bt,m as U,n as Qe,F as qs,S as Qr,E as Js,o as Zs,T as Qs,p as Gs,q as Te,r as Gr,t as $s,v as wo,x as ta,y as ea,z as Ai,A as na,B as oa,G as ra,H as zi,J as Ze,I as Ce,D as $r,P as vo,a as ti,b as ei,c as ni,d as go}from"./mW5RwvnK.js";import{P as ia}from"./CWNeClHp.js";import{s as Se}from"./B-OsL1Ct.js";import{p as k,s as Nt,r as ln,l as Ae}from"./xtNWTdbD.js";function sa(e){return typeof e=="function"}function oi(e){return sa(e)?e():e}var pe,$e,tn,en,ve,Co,So,nn;class aa{constructor(t,n={box:"border-box"}){A(this,pe,{width:0,height:0});A(this,$e,!1);A(this,tn);A(this,en);A(this,ve);A(this,Co,W(()=>{var t;return(t=o(f(this,nn)))==null||t(),this.getSize().width}));A(this,So,W(()=>{var t;return(t=o(f(this,nn)))==null||t(),this.getSize().height}));A(this,nn,W(()=>{const t=oi(f(this,en));if(t)return As(n=>{if(!f(this,ve))return;const r=new(f(this,ve)).ResizeObserver(i=>{j(this,$e,!0);for(const s of i){const a=f(this,tn).box==="content-box"?s.contentBoxSize:s.borderBoxSize,l=Array.isArray(a)?a:[a];f(this,pe).width=l.reduce((h,m)=>Math.max(h,m.inlineSize),0),f(this,pe).height=l.reduce((h,m)=>Math.max(h,m.blockSize),0)}n()});return r.observe(t),()=>{j(this,$e,!1),r.disconnect()}})}));j(this,ve,n.window??Vs),j(this,tn,n),j(this,en,t),j(this,pe,{width:0,height:0})}calculateSize(){const t=oi(f(this,en));if(!t||!f(this,ve))return;const n=t.offsetWidth,r=t.offsetHeight;if(f(this,tn).box==="border-box")return{width:n,height:r};const i=f(this,ve).getComputedStyle(t),s=parseFloat(i.paddingLeft)+parseFloat(i.paddingRight),a=parseFloat(i.paddingTop)+parseFloat(i.paddingBottom),l=parseFloat(i.borderLeftWidth)+parseFloat(i.borderRightWidth),h=parseFloat(i.borderTopWidth)+parseFloat(i.borderBottomWidth),m=n-s-l,y=r-a-h;return{width:m,height:y}}getSize(){return f(this,$e)?f(this,pe):this.calculateSize()??f(this,pe)}get current(){var t;return(t=o(f(this,nn)))==null||t(),this.getSize()}get width(){return o(f(this,Co))}get height(){return o(f(this,So))}}pe=new WeakMap,$e=new WeakMap,tn=new WeakMap,en=new WeakMap,ve=new WeakMap,Co=new WeakMap,So=new WeakMap,nn=new WeakMap;const la=["top","right","bottom","left"],Pe=Math.min,It=Math.max,bo=Math.round,mo=Math.floor,Zt=e=>({x:e,y:e}),ca={left:"right",right:"left",bottom:"top",top:"bottom"};function rr(e,t,n){return It(e,Pe(t,n))}function oe(e,t){return typeof e=="function"?e(t):e}function re(e){return e.split("-")[0]}function cn(e){return e.split("-")[1]}function yr(e){return e==="x"?"y":"x"}function wr(e){return e==="y"?"height":"width"}function Jt(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function br(e){return yr(Jt(e))}function ua(e,t,n){n===void 0&&(n=!1);const r=cn(e),i=br(e),s=wr(i);let a=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=xo(a)),[a,xo(a)]}function da(e){const t=xo(e);return[ir(e),t,ir(t)]}function ir(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const ri=["left","right"],ii=["right","left"],fa=["top","bottom"],ha=["bottom","top"];function pa(e,t,n){switch(e){case"top":case"bottom":return n?t?ii:ri:t?ri:ii;case"left":case"right":return t?fa:ha;default:return[]}}function va(e,t,n,r){const i=cn(e);let s=pa(re(e),n==="start",r);return i&&(s=s.map(a=>a+"-"+i),t&&(s=s.concat(s.map(ir)))),s}function xo(e){const t=re(e);return ca[t]+e.slice(t.length)}function ga(e){return{top:0,right:0,bottom:0,left:0,...e}}function ki(e){return typeof e!="number"?ga(e):{top:e,right:e,bottom:e,left:e}}function _o(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function si(e,t,n){let{reference:r,floating:i}=e;const s=Jt(t),a=br(t),l=wr(a),h=re(t),m=s==="y",y=r.x+r.width/2-i.width/2,v=r.y+r.height/2-i.height/2,g=r[l]/2-i[l]/2;let p;switch(h){case"top":p={x:y,y:r.y-i.height};break;case"bottom":p={x:y,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:v};break;case"left":p={x:r.x-i.width,y:v};break;default:p={x:r.x,y:r.y}}switch(cn(t)){case"start":p[a]-=g*(n&&m?-1:1);break;case"end":p[a]+=g*(n&&m?-1:1);break}return p}async function ma(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:s,rects:a,elements:l,strategy:h}=e,{boundary:m="clippingAncestors",rootBoundary:y="viewport",elementContext:v="floating",altBoundary:g=!1,padding:p=0}=oe(t,e),w=ki(p),O=l[g?v==="floating"?"reference":"floating":v],x=_o(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(O)))==null||n?O:O.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:m,rootBoundary:y,strategy:h})),D=v==="floating"?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,T=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),E=await(s.isElement==null?void 0:s.isElement(T))?await(s.getScale==null?void 0:s.getScale(T))||{x:1,y:1}:{x:1,y:1},L=_o(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:D,offsetParent:T,strategy:h}):D);return{top:(x.top-L.top+w.top)/E.y,bottom:(L.bottom-x.bottom+w.bottom)/E.y,left:(x.left-L.left+w.left)/E.x,right:(L.right-x.right+w.right)/E.x}}const ya=50,wa=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:s=[],platform:a}=n,l=a.detectOverflow?a:{...a,detectOverflow:ma},h=await(a.isRTL==null?void 0:a.isRTL(t));let m=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:y,y:v}=si(m,r,h),g=r,p=0;const w={};for(let P=0;P<s.length;P++){const O=s[P];if(!O)continue;const{name:x,fn:D}=O,{x:T,y:E,data:L,reset:F}=await D({x:y,y:v,initialPlacement:r,placement:g,strategy:i,middlewareData:w,rects:m,platform:l,elements:{reference:e,floating:t}});y=T??y,v=E??v,w[x]={...w[x],...L},F&&p<ya&&(p++,typeof F=="object"&&(F.placement&&(g=F.placement),F.rects&&(m=F.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:i}):F.rects),{x:y,y:v}=si(m,g,h)),P=-1)}return{x:y,y:v,placement:g,strategy:i,middlewareData:w}},ba=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:s,platform:a,elements:l,middlewareData:h}=t,{element:m,padding:y=0}=oe(e,t)||{};if(m==null)return{};const v=ki(y),g={x:n,y:r},p=br(i),w=wr(p),P=await a.getDimensions(m),O=p==="y",x=O?"top":"left",D=O?"bottom":"right",T=O?"clientHeight":"clientWidth",E=s.reference[w]+s.reference[p]-g[p]-s.floating[w],L=g[p]-s.reference[p],F=await(a.getOffsetParent==null?void 0:a.getOffsetParent(m));let Q=F?F[T]:0;(!Q||!await(a.isElement==null?void 0:a.isElement(F)))&&(Q=l.floating[T]||s.floating[w]);const ft=E/2-L/2,R=Q/2-P[w]/2-1,$=Pe(v[x],R),et=Pe(v[D],R),tt=$,nt=Q-P[w]-et,Y=Q/2-P[w]/2+ft,ht=rr(tt,Y,nt),rt=!h.arrow&&cn(i)!=null&&Y!==ht&&s.reference[w]/2-(Y<tt?$:et)-P[w]/2<0,J=rt?Y<tt?Y-tt:Y-nt:0;return{[p]:g[p]+J,data:{[p]:ht,centerOffset:Y-ht-J,...rt&&{alignmentOffset:J}},reset:rt}}}),xa=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:s,rects:a,initialPlacement:l,platform:h,elements:m}=t,{mainAxis:y=!0,crossAxis:v=!0,fallbackPlacements:g,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:P=!0,...O}=oe(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const x=re(i),D=Jt(l),T=re(l)===l,E=await(h.isRTL==null?void 0:h.isRTL(m.floating)),L=g||(T||!P?[xo(l)]:da(l)),F=w!=="none";!g&&F&&L.push(...va(l,P,w,E));const Q=[l,...L],ft=await h.detectOverflow(t,O),R=[];let $=((r=s.flip)==null?void 0:r.overflows)||[];if(y&&R.push(ft[x]),v){const Y=ua(i,a,E);R.push(ft[Y[0]],ft[Y[1]])}if($=[...$,{placement:i,overflows:R}],!R.every(Y=>Y<=0)){var et,tt;const Y=(((et=s.flip)==null?void 0:et.index)||0)+1,ht=Q[Y];if(ht&&(!(v==="alignment"?D!==Jt(ht):!1)||$.every(V=>Jt(V.placement)===D?V.overflows[0]>0:!0)))return{data:{index:Y,overflows:$},reset:{placement:ht}};let rt=(tt=$.filter(J=>J.overflows[0]<=0).sort((J,V)=>J.overflows[1]-V.overflows[1])[0])==null?void 0:tt.placement;if(!rt)switch(p){case"bestFit":{var nt;const J=(nt=$.filter(V=>{if(F){const Z=Jt(V.placement);return Z===D||Z==="y"}return!0}).map(V=>[V.placement,V.overflows.filter(Z=>Z>0).reduce((Z,it)=>Z+it,0)]).sort((V,Z)=>V[1]-Z[1])[0])==null?void 0:nt[0];J&&(rt=J);break}case"initialPlacement":rt=l;break}if(i!==rt)return{reset:{placement:rt}}}return{}}}};function ai(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function li(e){return la.some(t=>e[t]>=0)}const _a=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:i="referenceHidden",...s}=oe(e,t);switch(i){case"referenceHidden":{const a=await r.detectOverflow(t,{...s,elementContext:"reference"}),l=ai(a,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:li(l)}}}case"escaped":{const a=await r.detectOverflow(t,{...s,altBoundary:!0}),l=ai(a,n.floating);return{data:{escapedOffsets:l,escaped:li(l)}}}default:return{}}}}},Ei=new Set(["left","top"]);async function Pa(e,t){const{placement:n,platform:r,elements:i}=e,s=await(r.isRTL==null?void 0:r.isRTL(i.floating)),a=re(n),l=cn(n),h=Jt(n)==="y",m=Ei.has(a)?-1:1,y=s&&h?-1:1,v=oe(t,e);let{mainAxis:g,crossAxis:p,alignmentAxis:w}=typeof v=="number"?{mainAxis:v,crossAxis:0,alignmentAxis:null}:{mainAxis:v.mainAxis||0,crossAxis:v.crossAxis||0,alignmentAxis:v.alignmentAxis};return l&&typeof w=="number"&&(p=l==="end"?w*-1:w),h?{x:p*y,y:g*m}:{x:g*m,y:p*y}}const Oa=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:s,placement:a,middlewareData:l}=t,h=await Pa(t,e);return a===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:i+h.x,y:s+h.y,data:{...h,placement:a}}}}},Ca=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i,platform:s}=t,{mainAxis:a=!0,crossAxis:l=!1,limiter:h={fn:x=>{let{x:D,y:T}=x;return{x:D,y:T}}},...m}=oe(e,t),y={x:n,y:r},v=await s.detectOverflow(t,m),g=Jt(re(i)),p=yr(g);let w=y[p],P=y[g];if(a){const x=p==="y"?"top":"left",D=p==="y"?"bottom":"right",T=w+v[x],E=w-v[D];w=rr(T,w,E)}if(l){const x=g==="y"?"top":"left",D=g==="y"?"bottom":"right",T=P+v[x],E=P-v[D];P=rr(T,P,E)}const O=h.fn({...t,[p]:w,[g]:P});return{...O,data:{x:O.x-n,y:O.y-r,enabled:{[p]:a,[g]:l}}}}}},Sa=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:s,middlewareData:a}=t,{offset:l=0,mainAxis:h=!0,crossAxis:m=!0}=oe(e,t),y={x:n,y:r},v=Jt(i),g=yr(v);let p=y[g],w=y[v];const P=oe(l,t),O=typeof P=="number"?{mainAxis:P,crossAxis:0}:{mainAxis:0,crossAxis:0,...P};if(h){const T=g==="y"?"height":"width",E=s.reference[g]-s.floating[T]+O.mainAxis,L=s.reference[g]+s.reference[T]-O.mainAxis;p<E?p=E:p>L&&(p=L)}if(m){var x,D;const T=g==="y"?"width":"height",E=Ei.has(re(i)),L=s.reference[v]-s.floating[T]+(E&&((x=a.offset)==null?void 0:x[v])||0)+(E?0:O.crossAxis),F=s.reference[v]+s.reference[T]+(E?0:((D=a.offset)==null?void 0:D[v])||0)-(E?O.crossAxis:0);w<L?w=L:w>F&&(w=F)}return{[g]:p,[v]:w}}}},Aa=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:s,platform:a,elements:l}=t,{apply:h=()=>{},...m}=oe(e,t),y=await a.detectOverflow(t,m),v=re(i),g=cn(i),p=Jt(i)==="y",{width:w,height:P}=s.floating;let O,x;v==="top"||v==="bottom"?(O=v,x=g===(await(a.isRTL==null?void 0:a.isRTL(l.floating))?"start":"end")?"left":"right"):(x=v,O=g==="end"?"top":"bottom");const D=P-y.top-y.bottom,T=w-y.left-y.right,E=Pe(P-y[O],D),L=Pe(w-y[x],T),F=!t.middlewareData.shift;let Q=E,ft=L;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(ft=T),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(Q=D),F&&!g){const $=It(y.left,0),et=It(y.right,0),tt=It(y.top,0),nt=It(y.bottom,0);p?ft=w-2*($!==0||et!==0?$+et:It(y.left,y.right)):Q=P-2*(tt!==0||nt!==0?tt+nt:It(y.top,y.bottom))}await h({...t,availableWidth:ft,availableHeight:Q});const R=await a.getDimensions(l.floating);return w!==R.width||P!==R.height?{reset:{rects:!0}}:{}}}};function Fo(){return typeof window<"u"}function un(e){return Fi(e)?(e.nodeName||"").toLowerCase():"#document"}function Wt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Qt(e){var t;return(t=(Fi(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Fi(e){return Fo()?e instanceof Node||e instanceof Wt(e).Node:!1}function Vt(e){return Fo()?e instanceof Element||e instanceof Wt(e).Element:!1}function ae(e){return Fo()?e instanceof HTMLElement||e instanceof Wt(e).HTMLElement:!1}function ci(e){return!Fo()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Wt(e).ShadowRoot}function oo(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Kt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!=="inline"&&i!=="contents"}function za(e){return/^(table|td|th)$/.test(un(e))}function To(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const ka=/transform|translate|scale|rotate|perspective|filter/,Ea=/paint|layout|strict|content/,Ee=e=>!!e&&e!=="none";let tr;function xr(e){const t=Vt(e)?Kt(e):e;return Ee(t.transform)||Ee(t.translate)||Ee(t.scale)||Ee(t.rotate)||Ee(t.perspective)||!_r()&&(Ee(t.backdropFilter)||Ee(t.filter))||ka.test(t.willChange||"")||Ea.test(t.contain||"")}function Fa(e){let t=Oe(e);for(;ae(t)&&!an(t);){if(xr(t))return t;if(To(t))return null;t=Oe(t)}return null}function _r(){return tr==null&&(tr=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),tr}function an(e){return/^(html|body|#document)$/.test(un(e))}function Kt(e){return Wt(e).getComputedStyle(e)}function Do(e){return Vt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Oe(e){if(un(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ci(e)&&e.host||Qt(e);return ci(t)?t.host:t}function Ti(e){const t=Oe(e);return an(t)?e.ownerDocument?e.ownerDocument.body:e.body:ae(t)&&oo(t)?t:Ti(t)}function On(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=Ti(e),s=i===((r=e.ownerDocument)==null?void 0:r.body),a=Wt(i);if(s){const l=sr(a);return t.concat(a,a.visualViewport||[],oo(i)?i:[],l&&n?On(l):[])}else return t.concat(i,On(i,[],n))}function sr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Di(e){const t=Kt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=ae(e),s=i?e.offsetWidth:n,a=i?e.offsetHeight:r,l=bo(n)!==s||bo(r)!==a;return l&&(n=s,r=a),{width:n,height:r,$:l}}function Pr(e){return Vt(e)?e:e.contextElement}function Ge(e){const t=Pr(e);if(!ae(t))return Zt(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:s}=Di(t);let a=(s?bo(n.width):n.width)/r,l=(s?bo(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const Ta=Zt(0);function Mi(e){const t=Wt(e);return!_r()||!t.visualViewport?Ta:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Da(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Wt(e)?!1:t}function Ie(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),s=Pr(e);let a=Zt(1);t&&(r?Vt(r)&&(a=Ge(r)):a=Ge(e));const l=Da(s,n,r)?Mi(s):Zt(0);let h=(i.left+l.x)/a.x,m=(i.top+l.y)/a.y,y=i.width/a.x,v=i.height/a.y;if(s){const g=Wt(s),p=r&&Vt(r)?Wt(r):r;let w=g,P=sr(w);for(;P&&r&&p!==w;){const O=Ge(P),x=P.getBoundingClientRect(),D=Kt(P),T=x.left+(P.clientLeft+parseFloat(D.paddingLeft))*O.x,E=x.top+(P.clientTop+parseFloat(D.paddingTop))*O.y;h*=O.x,m*=O.y,y*=O.x,v*=O.y,h+=T,m+=E,w=Wt(P),P=sr(w)}}return _o({width:y,height:v,x:h,y:m})}function Mo(e,t){const n=Do(e).scrollLeft;return t?t.left+n:Ie(Qt(e)).left+n}function Li(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Mo(e,n),i=n.top+t.scrollTop;return{x:r,y:i}}function Ma(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const s=i==="fixed",a=Qt(r),l=t?To(t.floating):!1;if(r===a||l&&s)return n;let h={scrollLeft:0,scrollTop:0},m=Zt(1);const y=Zt(0),v=ae(r);if((v||!v&&!s)&&((un(r)!=="body"||oo(a))&&(h=Do(r)),v)){const p=Ie(r);m=Ge(r),y.x=p.x+r.clientLeft,y.y=p.y+r.clientTop}const g=a&&!v&&!s?Li(a,h):Zt(0);return{width:n.width*m.x,height:n.height*m.y,x:n.x*m.x-h.scrollLeft*m.x+y.x+g.x,y:n.y*m.y-h.scrollTop*m.y+y.y+g.y}}function La(e){return Array.from(e.getClientRects())}function Ia(e){const t=Qt(e),n=Do(e),r=e.ownerDocument.body,i=It(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=It(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Mo(e);const l=-n.scrollTop;return Kt(r).direction==="rtl"&&(a+=It(t.clientWidth,r.clientWidth)-i),{width:i,height:s,x:a,y:l}}const ui=25;function Wa(e,t){const n=Wt(e),r=Qt(e),i=n.visualViewport;let s=r.clientWidth,a=r.clientHeight,l=0,h=0;if(i){s=i.width,a=i.height;const y=_r();(!y||y&&t==="fixed")&&(l=i.offsetLeft,h=i.offsetTop)}const m=Mo(r);if(m<=0){const y=r.ownerDocument,v=y.body,g=getComputedStyle(v),p=y.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,w=Math.abs(r.clientWidth-v.clientWidth-p);w<=ui&&(s-=w)}else m<=ui&&(s+=m);return{width:s,height:a,x:l,y:h}}function Na(e,t){const n=Ie(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,s=ae(e)?Ge(e):Zt(1),a=e.clientWidth*s.x,l=e.clientHeight*s.y,h=i*s.x,m=r*s.y;return{width:a,height:l,x:h,y:m}}function di(e,t,n){let r;if(t==="viewport")r=Wa(e,n);else if(t==="document")r=Ia(Qt(e));else if(Vt(t))r=Na(t,n);else{const i=Mi(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return _o(r)}function Ii(e,t){const n=Oe(e);return n===t||!Vt(n)||an(n)?!1:Kt(n).position==="fixed"||Ii(n,t)}function Ha(e,t){const n=t.get(e);if(n)return n;let r=On(e,[],!1).filter(l=>Vt(l)&&un(l)!=="body"),i=null;const s=Kt(e).position==="fixed";let a=s?Oe(e):e;for(;Vt(a)&&!an(a);){const l=Kt(a),h=xr(a);!h&&l.position==="fixed"&&(i=null),(s?!h&&!i:!h&&l.position==="static"&&!!i&&(i.position==="absolute"||i.position==="fixed")||oo(a)&&!h&&Ii(e,a))?r=r.filter(y=>y!==a):i=l,a=Oe(a)}return t.set(e,r),r}function Ra(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const a=[...n==="clippingAncestors"?To(t)?[]:Ha(t,this._c):[].concat(n),r],l=di(t,a[0],i);let h=l.top,m=l.right,y=l.bottom,v=l.left;for(let g=1;g<a.length;g++){const p=di(t,a[g],i);h=It(p.top,h),m=Pe(p.right,m),y=Pe(p.bottom,y),v=It(p.left,v)}return{width:m-v,height:y-h,x:v,y:h}}function Ba(e){const{width:t,height:n}=Di(e);return{width:t,height:n}}function Va(e,t,n){const r=ae(t),i=Qt(t),s=n==="fixed",a=Ie(e,!0,s,t);let l={scrollLeft:0,scrollTop:0};const h=Zt(0);function m(){h.x=Mo(i)}if(r||!r&&!s)if((un(t)!=="body"||oo(i))&&(l=Do(t)),r){const p=Ie(t,!0,s,t);h.x=p.x+t.clientLeft,h.y=p.y+t.clientTop}else i&&m();s&&!r&&i&&m();const y=i&&!r&&!s?Li(i,l):Zt(0),v=a.left+l.scrollLeft-h.x-y.x,g=a.top+l.scrollTop-h.y-y.y;return{x:v,y:g,width:a.width,height:a.height}}function er(e){return Kt(e).position==="static"}function fi(e,t){if(!ae(e)||Kt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Qt(e)===n&&(n=n.ownerDocument.body),n}function Wi(e,t){const n=Wt(e);if(To(e))return n;if(!ae(e)){let i=Oe(e);for(;i&&!an(i);){if(Vt(i)&&!er(i))return i;i=Oe(i)}return n}let r=fi(e,t);for(;r&&za(r)&&er(r);)r=fi(r,t);return r&&an(r)&&er(r)&&!xr(r)?n:r||Fa(e)||n}const Ka=async function(e){const t=this.getOffsetParent||Wi,n=this.getDimensions,r=await n(e.floating);return{reference:Va(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Ua(e){return Kt(e).direction==="rtl"}const ja={convertOffsetParentRelativeRectToViewportRelativeRect:Ma,getDocumentElement:Qt,getClippingRect:Ra,getOffsetParent:Wi,getElementRects:Ka,getClientRects:La,getDimensions:Ba,getScale:Ge,isElement:Vt,isRTL:Ua};function Ni(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Xa(e,t){let n=null,r;const i=Qt(e);function s(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function a(l,h){l===void 0&&(l=!1),h===void 0&&(h=1),s();const m=e.getBoundingClientRect(),{left:y,top:v,width:g,height:p}=m;if(l||t(),!g||!p)return;const w=mo(v),P=mo(i.clientWidth-(y+g)),O=mo(i.clientHeight-(v+p)),x=mo(y),T={rootMargin:-w+"px "+-P+"px "+-O+"px "+-x+"px",threshold:It(0,Pe(1,h))||1};let E=!0;function L(F){const Q=F[0].intersectionRatio;if(Q!==h){if(!E)return a();Q?a(!1,Q):r=setTimeout(()=>{a(!1,1e-7)},1e3)}Q===1&&!Ni(m,e.getBoundingClientRect())&&a(),E=!1}try{n=new IntersectionObserver(L,{...T,root:i.ownerDocument})}catch{n=new IntersectionObserver(L,T)}n.observe(e)}return a(!0),s}function Ya(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:h=!1}=r,m=Pr(e),y=i||s?[...m?On(m):[],...t?On(t):[]]:[];y.forEach(x=>{i&&x.addEventListener("scroll",n,{passive:!0}),s&&x.addEventListener("resize",n)});const v=m&&l?Xa(m,n):null;let g=-1,p=null;a&&(p=new ResizeObserver(x=>{let[D]=x;D&&D.target===m&&p&&t&&(p.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var T;(T=p)==null||T.observe(t)})),n()}),m&&!h&&p.observe(m),t&&p.observe(t));let w,P=h?Ie(e):null;h&&O();function O(){const x=Ie(e);P&&!Ni(P,x)&&n(),P=x,w=requestAnimationFrame(O)}return n(),()=>{var x;y.forEach(D=>{i&&D.removeEventListener("scroll",n),s&&D.removeEventListener("resize",n)}),v==null||v(),(x=p)==null||x.disconnect(),p=null,h&&cancelAnimationFrame(w)}}const qa=Oa,Ja=Ca,Za=xa,Qa=Aa,Ga=_a,$a=ba,tl=Sa,el=(e,t,n)=>{const r=new Map,i={platform:ja,...n},s={...i.platform,_c:r};return wa(e,t,{...i,platform:s})};function Fe(e){return typeof e=="function"?e():e}function Hi(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function hi(e,t){const n=Hi(e);return Math.round(t*n)/n}function pi(e){return{[`--bits-${e}-content-transform-origin`]:"var(--bits-floating-transform-origin)",[`--bits-${e}-content-available-width`]:"var(--bits-floating-available-width)",[`--bits-${e}-content-available-height`]:"var(--bits-floating-available-height)",[`--bits-${e}-anchor-width`]:"var(--bits-floating-anchor-width)",[`--bits-${e}-anchor-height`]:"var(--bits-floating-anchor-height)"}}function nl(e){const t=e.whileElementsMounted,n=W(()=>Fe(e.open)??!0),r=W(()=>Fe(e.middleware)),i=W(()=>Fe(e.transform)??!0),s=W(()=>Fe(e.placement)??"bottom"),a=W(()=>Fe(e.strategy)??"absolute"),l=W(()=>Fe(e.sideOffset)??0),h=W(()=>Fe(e.alignOffset)??0),m=e.reference;let y=yt(0),v=yt(0);const g=_e(null);let p=yt(qo(o(a))),w=yt(qo(o(s))),P=yt(qo({})),O=yt(!1),x=!1,D=0;const T=W(()=>{const $=g.current?hi(g.current,o(y)):o(y),et=g.current?hi(g.current,o(v)):o(v);return o(i)?{position:o(p),left:"0",top:"0",transform:`translate(${$}px, ${et}px)`,...g.current&&Hi(g.current)>=1.5&&{willChange:"transform"}}:{position:o(p),left:`${$}px`,top:`${et}px`}});let E;function L(){if(m.current===null||g.current===null)return;const $=m.current,et=g.current,tt=++D;el($,et,{middleware:o(r),placement:o(s),strategy:o(a)}).then(nt=>{if(tt!==D||m.current!==$||g.current!==et)return;if(ol($)){d(P,{...o(P),hide:{...o(P).hide,referenceHidden:!0}},!0);return}if(!o(n)&&o(y)!==0&&o(v)!==0){const ht=Math.max(Math.abs(o(l)),Math.abs(o(h)),15);if(nt.x<=ht&&nt.y<=ht)return}d(y,nt.x,!0),d(v,nt.y,!0),d(p,nt.strategy,!0),d(w,nt.placement,!0),d(P,nt.middlewareData,!0),d(O,!0)})}function F(){typeof E=="function"&&(E(),E=void 0),D++}function Q(){if(F(),t===void 0){L();return}o(n)&&(m.current===null||g.current===null||(E=t(m.current,g.current,L)))}function ft(){!o(n)&&g.current===null&&d(O,!1)}function R(){return[o(r),o(s),o(a),o(l),o(h),o(n)]}return he(()=>{t===void 0&&o(n)&&L()}),he(Q),he(()=>{if(t!==void 0){if(R(),!o(n)){x=!1;return}if(!o(O)){x=!1;return}if(!x){x=!0;return}L()}}),he(ft),he(()=>F),{floating:g,reference:m,get strategy(){return o(p)},get placement(){return o(w)},get middlewareData(){return o(P)},get isPositioned(){return o(O)},get floatingStyles(){return o(T)},get update(){return L}}}function ol(e){return e instanceof Element?!e.isConnected||e instanceof HTMLElement&&e.hidden?!0:e.getClientRects().length===0:!1}const rl={top:"bottom",right:"left",bottom:"top",left:"right"},Or=new Eo("Floating.Root"),vi=new Eo("Floating.Content"),Cr=new Eo("Floating.Root");class Po{constructor(){ot(this,"anchorNode",_e(null));ot(this,"customAnchorNode",_e(null));ot(this,"triggerNode",_e(null));he(()=>{this.customAnchorNode.current?typeof this.customAnchorNode.current=="string"?this.anchorNode.current=document.querySelector(this.customAnchorNode.current):this.anchorNode.current=this.customAnchorNode.current:this.anchorNode.current=this.triggerNode.current})}static create(t=!1){return t?Cr.set(new Po):Or.set(new Po)}}var Cn,Sn,An,Ao,zn,zo,kn,En,Fn,Tn,Dn,Mn,Ln,In,Wn,Nn,Hn,Rn,Bn,Vn,Kn,Un,jn,Xn;const ko=class ko{constructor(t,n){ot(this,"opts");ot(this,"root");ot(this,"contentRef",_e(null));ot(this,"wrapperRef",_e(null));ot(this,"arrowRef",_e(null));ot(this,"contentAttachment",_n(this.contentRef));ot(this,"wrapperAttachment",_n(this.wrapperRef));ot(this,"arrowAttachment",_n(this.arrowRef));ot(this,"arrowId",_e(Si()));A(this,Cn,W(()=>{if(typeof this.opts.style=="string")return Us(this.opts.style);if(!this.opts.style)return{}}));A(this,Sn);A(this,An,new aa(()=>this.arrowRef.current??void 0));A(this,Ao,W(()=>{var t;return((t=f(this,An))==null?void 0:t.width)??0}));A(this,zn,W(()=>{var t;return((t=f(this,An))==null?void 0:t.height)??0}));A(this,zo,W(()=>{var t;return((t=this.opts.side)==null?void 0:t.current)+(this.opts.align.current!=="center"?`-${this.opts.align.current}`:"")}));A(this,kn,W(()=>Array.isArray(this.opts.collisionBoundary.current)?this.opts.collisionBoundary.current:[this.opts.collisionBoundary.current]));A(this,En,W(()=>o(f(this,kn)).length>0));A(this,Fn,W(()=>({padding:this.opts.collisionPadding.current,boundary:o(f(this,kn)).filter(js),altBoundary:this.hasExplicitBoundaries})));A(this,Tn,yt(void 0));A(this,Dn,yt(void 0));A(this,Mn,yt(void 0));A(this,Ln,yt(void 0));A(this,In,W(()=>[qa({mainAxis:this.opts.sideOffset.current+o(f(this,zn)),alignmentAxis:this.opts.alignOffset.current}),this.opts.avoidCollisions.current&&Ja({mainAxis:!0,crossAxis:!1,limiter:this.opts.sticky.current==="partial"?tl():void 0,...this.detectOverflowOptions}),this.opts.avoidCollisions.current&&Za({...this.detectOverflowOptions}),Qa({...this.detectOverflowOptions,apply:({rects:t,availableWidth:n,availableHeight:r})=>{const{width:i,height:s}=t.reference;d(f(this,Tn),n,!0),d(f(this,Dn),r,!0),d(f(this,Mn),i,!0),d(f(this,Ln),s,!0)}}),this.arrowRef.current&&$a({element:this.arrowRef.current,padding:this.opts.arrowPadding.current}),il({arrowWidth:o(f(this,Ao)),arrowHeight:o(f(this,zn))}),this.opts.hideWhenDetached.current&&Ga({strategy:"referenceHidden",...this.detectOverflowOptions})].filter(Boolean)));ot(this,"floating");A(this,Wn,W(()=>sl(this.floating.placement)));A(this,Nn,W(()=>al(this.floating.placement)));A(this,Hn,W(()=>{var t;return((t=this.floating.middlewareData.arrow)==null?void 0:t.x)??0}));A(this,Rn,W(()=>{var t;return((t=this.floating.middlewareData.arrow)==null?void 0:t.y)??0}));A(this,Bn,W(()=>{var t;return((t=this.floating.middlewareData.arrow)==null?void 0:t.centerOffset)!==0}));A(this,Vn,yt());A(this,Kn,W(()=>rl[this.placedSide]));A(this,Un,W(()=>{var t,n,r;return{id:this.opts.wrapperId.current,"data-bits-floating-content-wrapper":"",style:{...this.floating.floatingStyles,transform:this.floating.isPositioned?this.floating.floatingStyles.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:this.contentZIndex,"--bits-floating-transform-origin":`${(t=this.floating.middlewareData.transformOrigin)==null?void 0:t.x} ${(n=this.floating.middlewareData.transformOrigin)==null?void 0:n.y}`,"--bits-floating-available-width":`${o(f(this,Tn))}px`,"--bits-floating-available-height":`${o(f(this,Dn))}px`,"--bits-floating-anchor-width":`${o(f(this,Mn))}px`,"--bits-floating-anchor-height":`${o(f(this,Ln))}px`,...((r=this.floating.middlewareData.hide)==null?void 0:r.referenceHidden)&&{visibility:"hidden","pointer-events":"none"},...o(f(this,Cn))},dir:this.opts.dir.current,...this.wrapperAttachment}}));A(this,jn,W(()=>({"data-side":this.placedSide,"data-align":this.placedAlign,style:Xs({...o(f(this,Cn))}),...this.contentAttachment})));A(this,Xn,W(()=>({position:"absolute",left:this.arrowX?`${this.arrowX}px`:void 0,top:this.arrowY?`${this.arrowY}px`:void 0,[this.arrowBaseSide]:0,"transform-origin":{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[this.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[this.placedSide],visibility:this.cannotCenterArrow?"hidden":void 0})));this.opts=t,this.root=n,j(this,Sn,t.updatePositionStrategy),t.customAnchor&&(this.root.customAnchorNode.current=t.customAnchor.current),Pn(()=>t.customAnchor.current,r=>{this.root.customAnchorNode.current=r}),this.floating=nl({strategy:()=>this.opts.strategy.current,placement:()=>o(f(this,zo)),middleware:()=>this.middleware,reference:this.root.anchorNode,whileElementsMounted:(...r)=>{var s;return Ya(...r,{animationFrame:((s=f(this,Sn))==null?void 0:s.current)==="always"})},open:()=>this.opts.enabled.current,sideOffset:()=>this.opts.sideOffset.current,alignOffset:()=>this.opts.alignOffset.current}),he(()=>{var r;this.floating.isPositioned&&((r=this.opts.onPlaced)==null||r.current())}),Pn(()=>this.contentRef.current,r=>{if(!r||!this.opts.enabled.current)return;const i=Ys(r),s=i.requestAnimationFrame(()=>{if(this.contentRef.current!==r||!this.opts.enabled.current)return;const a=i.getComputedStyle(r).zIndex;a!==this.contentZIndex&&(this.contentZIndex=a)});return()=>{i.cancelAnimationFrame(s)}}),he(()=>{this.floating.floating.current=this.wrapperRef.current})}static create(t,n=!1){return n?vi.set(new ko(t,Cr.get())):vi.set(new ko(t,Or.get()))}get hasExplicitBoundaries(){return o(f(this,En))}set hasExplicitBoundaries(t){d(f(this,En),t)}get detectOverflowOptions(){return o(f(this,Fn))}set detectOverflowOptions(t){d(f(this,Fn),t)}get middleware(){return o(f(this,In))}set middleware(t){d(f(this,In),t)}get placedSide(){return o(f(this,Wn))}set placedSide(t){d(f(this,Wn),t)}get placedAlign(){return o(f(this,Nn))}set placedAlign(t){d(f(this,Nn),t)}get arrowX(){return o(f(this,Hn))}set arrowX(t){d(f(this,Hn),t)}get arrowY(){return o(f(this,Rn))}set arrowY(t){d(f(this,Rn),t)}get cannotCenterArrow(){return o(f(this,Bn))}set cannotCenterArrow(t){d(f(this,Bn),t)}get contentZIndex(){return o(f(this,Vn))}set contentZIndex(t){d(f(this,Vn),t,!0)}get arrowBaseSide(){return o(f(this,Kn))}set arrowBaseSide(t){d(f(this,Kn),t)}get wrapperProps(){return o(f(this,Un))}set wrapperProps(t){d(f(this,Un),t)}get props(){return o(f(this,jn))}set props(t){d(f(this,jn),t)}get arrowStyle(){return o(f(this,Xn))}set arrowStyle(t){d(f(this,Xn),t)}};Cn=new WeakMap,Sn=new WeakMap,An=new WeakMap,Ao=new WeakMap,zn=new WeakMap,zo=new WeakMap,kn=new WeakMap,En=new WeakMap,Fn=new WeakMap,Tn=new WeakMap,Dn=new WeakMap,Mn=new WeakMap,Ln=new WeakMap,In=new WeakMap,Wn=new WeakMap,Nn=new WeakMap,Hn=new WeakMap,Rn=new WeakMap,Bn=new WeakMap,Vn=new WeakMap,Kn=new WeakMap,Un=new WeakMap,jn=new WeakMap,Xn=new WeakMap;let ar=ko;class Oo{constructor(t,n){ot(this,"opts");ot(this,"root");this.opts=t,this.root=n,t.virtualEl&&t.virtualEl.current?n.triggerNode=Ks(t.virtualEl.current):n.triggerNode=t.ref}static create(t,n=!1){return n?new Oo(t,Cr.get()):new Oo(t,Or.get())}}function il(e){return{name:"transformOrigin",options:e,fn(t){var O,x,D;const{placement:n,rects:r,middlewareData:i}=t,a=((O=i.arrow)==null?void 0:O.centerOffset)!==0,l=a?0:e.arrowWidth,h=a?0:e.arrowHeight,[m,y]=Sr(n),v={start:"0%",center:"50%",end:"100%"}[y],g=(((x=i.arrow)==null?void 0:x.x)??0)+l/2,p=(((D=i.arrow)==null?void 0:D.y)??0)+h/2;let w="",P="";return m==="bottom"?(w=a?v:`${g}px`,P=`${-h}px`):m==="top"?(w=a?v:`${g}px`,P=`${r.floating.height+h}px`):m==="right"?(w=`${-h}px`,P=a?v:`${p}px`):m==="left"&&(w=`${r.floating.width+h}px`,P=a?v:`${p}px`),{data:{x:w,y:P}}}}}function Sr(e){const[t,n="center"]=e.split("-");return[t,n]}function sl(e){return Sr(e)[0]}function al(e){return Sr(e)[1]}function ll(e,t){ie(t,!0);let n=k(t,"tooltip",3,!1);Po.create(n());var r=dt(),i=X(r);Bt(i,()=>t.children??ne),z(e,r),se()}function cl(e,t){ie(t,!0);let n=k(t,"tooltip",3,!1);Oo.create({id:U(()=>t.id),virtualEl:U(()=>t.virtualEl),ref:t.ref},n());var r=dt(),i=X(r);Bt(i,()=>t.children??ne),z(e,r),se()}function ul(e,t){ie(t,!0);let n=k(t,"side",3,"bottom"),r=k(t,"sideOffset",3,0),i=k(t,"align",3,"center"),s=k(t,"alignOffset",3,0),a=k(t,"arrowPadding",3,0),l=k(t,"avoidCollisions",3,!0),h=k(t,"collisionBoundary",19,()=>[]),m=k(t,"collisionPadding",3,0),y=k(t,"hideWhenDetached",3,!1),v=k(t,"onPlaced",3,()=>{}),g=k(t,"sticky",3,"partial"),p=k(t,"updatePositionStrategy",3,"optimized"),w=k(t,"strategy",3,"fixed"),P=k(t,"dir",3,"ltr"),O=k(t,"style",19,()=>({})),x=k(t,"wrapperId",19,Si),D=k(t,"customAnchor",3,null),T=k(t,"tooltip",3,!1);const E=ar.create({side:U(()=>n()),sideOffset:U(()=>r()),align:U(()=>i()),alignOffset:U(()=>s()),id:U(()=>t.id),arrowPadding:U(()=>a()),avoidCollisions:U(()=>l()),collisionBoundary:U(()=>h()),collisionPadding:U(()=>m()),hideWhenDetached:U(()=>y()),onPlaced:U(()=>v()),sticky:U(()=>g()),updatePositionStrategy:U(()=>p()),strategy:U(()=>w()),dir:U(()=>P()),style:U(()=>O()),enabled:U(()=>t.enabled),wrapperId:U(()=>x()),customAnchor:U(()=>D())},T()),L=W(()=>Qe(E.wrapperProps,{style:{pointerEvents:"auto"}}));var F=dt(),Q=X(F);Bt(Q,()=>t.content??ne,()=>({props:E.props,wrapperProps:o(L)})),z(e,F),se()}function dl(e,t){ie(t,!0),Ci(()=>{var i;(i=t.onPlaced)==null||i.call(t)});var n=dt(),r=X(n);Bt(r,()=>t.content??ne,()=>({props:{},wrapperProps:{}})),z(e,n),se()}function fl(e,t){let n=k(t,"isStatic",3,!1),r=ln(t,["$$slots","$$events","$$legacy","content","isStatic","onPlaced"]);var i=dt(),s=X(i);{var a=h=>{dl(h,{get content(){return t.content},get onPlaced(){return t.onPlaced}})},l=h=>{ul(h,Nt({get content(){return t.content},get onPlaced(){return t.onPlaced}},()=>r))};xt(s,h=>{n()?h(a):h(l,-1)})}z(e,i)}var hl=at("<!> <!>",1);function Ri(e,t){ie(t,!0);let n=k(t,"interactOutsideBehavior",3,"close"),r=k(t,"trapFocus",3,!0),i=k(t,"isValidEvent",3,()=>!1),s=k(t,"customAnchor",3,null),a=k(t,"isStatic",3,!1),l=k(t,"tooltip",3,!1),h=k(t,"contentPointerEvents",3,"auto"),m=ln(t,["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled","ref","tooltip","contentPointerEvents"]);const y=W(()=>t.preventScroll??!0),v=W(()=>t.strategy??(o(y)?"fixed":"absolute"));fl(e,{get isStatic(){return a()},get id(){return t.id},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return o(v)},get dir(){return t.dir},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return s()},get enabled(){return t.enabled},get tooltip(){return l()},content:(p,w)=>{let P=()=>w==null?void 0:w().props,O=()=>w==null?void 0:w().wrapperProps;var x=hl(),D=X(x);{var T=F=>{Qr(F,{get preventScroll(){return o(y)}})},E=F=>{Qr(F,{get preventScroll(){return o(y)}})};xt(D,F=>{t.forceMount&&t.enabled?F(T):t.forceMount||F(E,1)})}var L=M(D,2);qs(L,{get onOpenAutoFocus(){return t.onOpenAutoFocus},get onCloseAutoFocus(){return t.onCloseAutoFocus},get loop(){return t.loop},get enabled(){return t.enabled},get trapFocus(){return r()},get forceMount(){return t.forceMount},get ref(){return t.ref},focusScope:(Q,ft)=>{let R=()=>ft==null?void 0:ft().props;Js(Q,{get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get enabled(){return t.enabled},get ref(){return t.ref},children:($,et)=>{Zs($,{get id(){return t.id},get onInteractOutside(){return t.onInteractOutside},get onFocusOutside(){return t.onFocusOutside},get interactOutsideBehavior(){return n()},get isValidEvent(){return i()},get enabled(){return t.enabled},get ref(){return t.ref},children:(nt,Y)=>{let ht=()=>Y==null?void 0:Y().props;Qs(nt,{get id(){return t.id},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get enabled(){return t.enabled},get ref(){return t.ref},children:(rt,J)=>{var V=dt(),Z=X(V);{let it=W(()=>({props:Qe(m,P(),ht(),R(),{style:{pointerEvents:h()}}),wrapperProps:O()}));Bt(Z,()=>t.popper??ne,()=>o(it))}z(rt,V)},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{focusScope:!0}}),z(p,x)},$$slots:{content:!0}}),se()}function pl(e,t){let n=k(t,"interactOutsideBehavior",3,"close"),r=k(t,"trapFocus",3,!0),i=k(t,"isValidEvent",3,()=>!1),s=k(t,"customAnchor",3,null),a=k(t,"isStatic",3,!1),l=ln(t,["$$slots","$$events","$$legacy","popper","open","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","ref","shouldRender"]);var h=dt(),m=X(h);{var y=v=>{Ri(v,Nt({get popper(){return t.popper},get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get id(){return t.id},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get preventScroll(){return t.preventScroll},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return s()},get isStatic(){return a()},get enabled(){return t.open},get onInteractOutside(){return t.onInteractOutside},get onCloseAutoFocus(){return t.onCloseAutoFocus},get onOpenAutoFocus(){return t.onOpenAutoFocus},get interactOutsideBehavior(){return n()},get loop(){return t.loop},get trapFocus(){return r()},get isValidEvent(){return i()},get onFocusOutside(){return t.onFocusOutside},forceMount:!1,get ref(){return t.ref}},()=>l))};xt(m,v=>{t.shouldRender&&v(y)})}z(e,h)}function vl(e,t){let n=k(t,"interactOutsideBehavior",3,"close"),r=k(t,"trapFocus",3,!0),i=k(t,"isValidEvent",3,()=>!1),s=k(t,"customAnchor",3,null),a=k(t,"isStatic",3,!1),l=ln(t,["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled"]);Ri(e,Nt({get popper(){return t.popper},get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get id(){return t.id},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get preventScroll(){return t.preventScroll},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return s()},get isStatic(){return a()},get enabled(){return t.enabled},get onInteractOutside(){return t.onInteractOutside},get onCloseAutoFocus(){return t.onCloseAutoFocus},get onOpenAutoFocus(){return t.onOpenAutoFocus},get interactOutsideBehavior(){return n()},get loop(){return t.loop},get trapFocus(){return r()},get isValidEvent(){return i()},get onFocusOutside(){return t.onFocusOutside}},()=>l,{forceMount:!0}))}function nr(e,t){const[n,r]=e;let i=!1;const s=t.length;for(let a=0,l=s-1;a<s;l=a++){const[h,m]=t[a]??[0,0],[y,v]=t[l]??[0,0];m>=r!=v>=r&&n<=(y-h)*(r-m)/(v-m)+h&&(i=!i)}return i}function or(e,t){return e[0]>=t.left&&e[0]<=t.right&&e[1]>=t.top&&e[1]<=t.bottom}function gi(e,t){const n=e.left+e.width/2,r=e.top+e.height/2,i=t.left+t.width/2,s=t.top+t.height/2,a=i-n,l=s-r;return Math.abs(a)>Math.abs(l)?a>0?"right":"left":l>0?"bottom":"top"}var ge,on,rn,Yt,Dt,De,Me,me,ye,q,yo,lr,cr,Bi,Vi,Xt,ur,Ki,Ui;class gl{constructor(t){A(this,q);A(this,ge);A(this,on);A(this,rn);A(this,Yt,null);A(this,Dt,null);A(this,De,[]);A(this,Me,null);A(this,me,null);A(this,ye,null);j(this,ge,t),j(this,on,t.buffer??1);const n=t.transitIntentTimeout;j(this,rn,typeof n=="number"&&n>0?n:null),Pn([t.triggerNode,t.contentNode,t.enabled],([r,i,s])=>{if(!r||!i||!s){j(this,Me,null),B(this,q,Xt).call(this);return}f(this,Me)&&f(this,Me)!==r&&B(this,q,Xt).call(this),j(this,Me,r);const a=Gs(r),l=g=>{B(this,q,Vi).call(this,[g.clientX,g.clientY],r,i)},h=g=>{var P,O;const p=g.relatedTarget;if(Te(p)&&i.contains(p))return;const w=((O=(P=f(this,ge)).ignoredTargets)==null?void 0:O.call(P))??[];Te(p)&&w.some(x=>x===p||x.contains(p))||(j(this,De,Te(p)&&w.length>0?w.filter(x=>p.contains(x)):[]),j(this,Yt,[g.clientX,g.clientY]),j(this,Dt,"content"),B(this,q,lr).call(this))},m=()=>{B(this,q,Xt).call(this)},y=()=>{B(this,q,Xt).call(this)},v=g=>{const p=g.relatedTarget;Te(p)&&r.contains(p)||(j(this,Yt,[g.clientX,g.clientY]),j(this,Dt,"trigger"),B(this,q,lr).call(this))};return[bn(a,"pointermove",l),bn(r,"pointerleave",h),bn(r,"pointerenter",m),bn(i,"pointerenter",y),bn(i,"pointerleave",v)].reduce((g,p)=>()=>{g(),p()},()=>{})})}}ge=new WeakMap,on=new WeakMap,rn=new WeakMap,Yt=new WeakMap,Dt=new WeakMap,De=new WeakMap,Me=new WeakMap,me=new WeakMap,ye=new WeakMap,q=new WeakSet,yo=function(){f(this,me)!==null&&(cancelAnimationFrame(f(this,me)),j(this,me,null))},lr=function(){B(this,q,yo).call(this),j(this,me,requestAnimationFrame(()=>{j(this,me,null),!(!f(this,Yt)||!f(this,Dt))&&(B(this,q,Xt).call(this),f(this,ge).onPointerExit())}))},cr=function(){f(this,ye)!==null&&(clearTimeout(f(this,ye)),j(this,ye,null))},Bi=function(){f(this,rn)!==null&&(B(this,q,cr).call(this),j(this,ye,window.setTimeout(()=>{j(this,ye,null),!(!f(this,Yt)||!f(this,Dt))&&(B(this,q,Xt).call(this),f(this,ge).onPointerExit())},f(this,rn))))},Vi=function(t,n,r){if(!f(this,Yt)||!f(this,Dt))return;B(this,q,yo).call(this),B(this,q,Bi).call(this);const i=n.getBoundingClientRect(),s=r.getBoundingClientRect();if(f(this,Dt)==="content"&&or(t,s)){B(this,q,Xt).call(this);return}if(f(this,Dt)==="trigger"&&or(t,i)){B(this,q,Xt).call(this);return}if(f(this,Dt)==="content"&&f(this,De).length>0)for(const y of f(this,De)){const v=y.getBoundingClientRect();if(or(t,v))return;const g=gi(i,v),p=B(this,q,ur).call(this,i,v,g);if(p&&nr(t,p))return}const a=gi(i,s),l=B(this,q,ur).call(this,i,s,a);if(l&&nr(t,l))return;const h=f(this,Dt)==="content"?s:i,m=B(this,q,Ki).call(this,f(this,Yt),h,a,f(this,Dt));nr(t,m)||(B(this,q,Xt).call(this),f(this,ge).onPointerExit())},Xt=function(){j(this,Yt,null),j(this,Dt,null),j(this,De,[]),B(this,q,yo).call(this),B(this,q,cr).call(this)},ur=function(t,n,r){const i=f(this,on);switch(r){case"top":return[[Math.min(t.left,n.left)-i,t.top],[Math.min(t.left,n.left)-i,n.bottom],[Math.max(t.right,n.right)+i,n.bottom],[Math.max(t.right,n.right)+i,t.top]];case"bottom":return[[Math.min(t.left,n.left)-i,t.bottom],[Math.min(t.left,n.left)-i,n.top],[Math.max(t.right,n.right)+i,n.top],[Math.max(t.right,n.right)+i,t.bottom]];case"left":return[[t.left,Math.min(t.top,n.top)-i],[n.right,Math.min(t.top,n.top)-i],[n.right,Math.max(t.bottom,n.bottom)+i],[t.left,Math.max(t.bottom,n.bottom)+i]];case"right":return[[t.right,Math.min(t.top,n.top)-i],[n.left,Math.min(t.top,n.top)-i],[n.left,Math.max(t.bottom,n.bottom)+i],[t.right,Math.max(t.bottom,n.bottom)+i]]}},Ki=function(t,n,r,i){const s=f(this,on)*4,[a,l]=t;switch(i==="trigger"?B(this,q,Ui).call(this,r):r){case"top":return[[a-s,l+s],[a+s,l+s],[n.right+s,n.bottom],[n.right+s,n.top],[n.left-s,n.top],[n.left-s,n.bottom]];case"bottom":return[[a-s,l-s],[a+s,l-s],[n.right+s,n.top],[n.right+s,n.bottom],[n.left-s,n.bottom],[n.left-s,n.top]];case"left":return[[a+s,l-s],[a+s,l+s],[n.right,n.bottom+s],[n.left,n.bottom+s],[n.left,n.top-s],[n.right,n.top-s]];case"right":return[[a-s,l-s],[a-s,l+s],[n.left,n.bottom+s],[n.right,n.bottom+s],[n.right,n.top-s],[n.left,n.top-s]]}},Ui=function(t){switch(t){case"top":return"bottom";case"bottom":return"top";case"left":return"right";case"right":return"left"}};const dr=ra({component:"popover",parts:["root","trigger","content","close","overlay"]}),Ar=new Eo("Popover.Root");var Yn,qn,Jn,Zn,Qn,Gn,$n,we,be,qt,fe;const zr=class zr{constructor(t){A(this,qt);ot(this,"opts");A(this,Yn,yt(null));ot(this,"contentPresence");A(this,qn,yt(null));A(this,Jn,yt(null));ot(this,"overlayPresence");A(this,Zn,yt(!1));A(this,Qn,yt(!1));A(this,Gn,yt(!1));A(this,$n,yt(0));A(this,we,null);A(this,be,null);this.opts=t,this.contentPresence=new Gr({ref:U(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new Gr({ref:U(()=>this.overlayNode),open:this.opts.open}),Pn(()=>this.opts.open.current,n=>{n||(this.openedViaHover=!1,this.hasInteractedWithContent=!1,B(this,qt,fe).call(this))})}static create(t){return Ar.set(new zr(t))}get contentNode(){return o(f(this,Yn))}set contentNode(t){d(f(this,Yn),t,!0)}get triggerNode(){return o(f(this,qn))}set triggerNode(t){d(f(this,qn),t,!0)}get overlayNode(){return o(f(this,Jn))}set overlayNode(t){d(f(this,Jn),t,!0)}get openedViaHover(){return o(f(this,Zn))}set openedViaHover(t){d(f(this,Zn),t,!0)}get hasInteractedWithContent(){return o(f(this,Qn))}set hasInteractedWithContent(t){d(f(this,Qn),t,!0)}get hoverCooldown(){return o(f(this,Gn))}set hoverCooldown(t){d(f(this,Gn),t,!0)}get closeDelay(){return o(f(this,$n))}set closeDelay(t){d(f(this,$n),t,!0)}setDomContext(t){j(this,be,t)}toggleOpen(){B(this,qt,fe).call(this),this.opts.open.current=!this.opts.open.current}handleClose(){B(this,qt,fe).call(this),this.opts.open.current&&(this.opts.open.current=!1)}handleHoverOpen(){B(this,qt,fe).call(this),!this.opts.open.current&&(this.openedViaHover=!0,this.opts.open.current=!0)}handleHoverClose(){this.opts.open.current&&this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1)}handleDelayedHoverClose(){this.opts.open.current&&(!this.openedViaHover||this.hasInteractedWithContent||(B(this,qt,fe).call(this),this.closeDelay<=0?this.opts.open.current=!1:f(this,be)&&j(this,we,f(this,be).setTimeout(()=>{this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1),j(this,we,null)},this.closeDelay))))}cancelDelayedClose(){B(this,qt,fe).call(this)}markInteraction(){this.hasInteractedWithContent=!0,B(this,qt,fe).call(this)}};Yn=new WeakMap,qn=new WeakMap,Jn=new WeakMap,Zn=new WeakMap,Qn=new WeakMap,Gn=new WeakMap,$n=new WeakMap,we=new WeakMap,be=new WeakMap,qt=new WeakSet,fe=function(){f(this,we)!==null&&f(this,be)&&(f(this,be).clearTimeout(f(this,we)),j(this,we,null))};let fr=zr;var xe,sn,Le,Ht,pr,vr,gr,ji,to;const kr=class kr{constructor(t,n){A(this,Ht);ot(this,"opts");ot(this,"root");ot(this,"attachment");ot(this,"domContext");A(this,xe,null);A(this,sn,null);A(this,Le,yt(!1));A(this,to,W(()=>({id:this.opts.id.current,"aria-haspopup":"dialog","aria-expanded":na(this.root.opts.open.current),"data-state":Ai(this.root.opts.open.current),"aria-controls":B(this,Ht,ji).call(this),[dr.trigger]:"",disabled:this.opts.disabled.current,onkeydown:this.onkeydown,onclick:this.onclick,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment})));this.opts=t,this.root=n,this.attachment=_n(this.opts.ref,r=>this.root.triggerNode=r),this.domContext=new $s(t.ref),this.root.setDomContext(this.domContext),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this),Pn(()=>this.opts.closeDelay.current,r=>{this.root.closeDelay=r})}static create(t){return new kr(t,Ar.get())}onpointerenter(t){if(this.opts.disabled.current||!this.opts.openOnHover.current||wo(t)||(d(f(this,Le),!0),B(this,Ht,vr).call(this),this.root.cancelDelayedClose(),this.root.opts.open.current||this.root.hoverCooldown))return;const n=this.opts.openDelay.current;n<=0?this.root.handleHoverOpen():j(this,xe,this.domContext.setTimeout(()=>{this.root.handleHoverOpen(),j(this,xe,null)},n))}onpointerleave(t){this.opts.disabled.current||this.opts.openOnHover.current&&(wo(t)||(d(f(this,Le),!1),B(this,Ht,pr).call(this),this.root.hoverCooldown=!1))}onclick(t){if(!this.opts.disabled.current&&t.button===0){if(B(this,Ht,gr).call(this),o(f(this,Le))&&this.root.opts.open.current&&this.root.openedViaHover){this.root.openedViaHover=!1,this.root.hasInteractedWithContent=!0;return}o(f(this,Le))&&this.opts.openOnHover.current&&this.root.opts.open.current&&(this.root.hoverCooldown=!0),this.root.hoverCooldown&&!this.root.opts.open.current&&(this.root.hoverCooldown=!1),this.root.toggleOpen()}}onkeydown(t){this.opts.disabled.current||(t.key===ta||t.key===ea)&&(t.preventDefault(),B(this,Ht,gr).call(this),this.root.toggleOpen())}get props(){return o(f(this,to))}set props(t){d(f(this,to),t)}};xe=new WeakMap,sn=new WeakMap,Le=new WeakMap,Ht=new WeakSet,pr=function(){f(this,xe)!==null&&(this.domContext.clearTimeout(f(this,xe)),j(this,xe,null))},vr=function(){f(this,sn)!==null&&(this.domContext.clearTimeout(f(this,sn)),j(this,sn,null))},gr=function(){B(this,Ht,pr).call(this),B(this,Ht,vr).call(this)},ji=function(){var t,n;if(this.root.opts.open.current&&((t=this.root.contentNode)!=null&&t.id))return(n=this.root.contentNode)==null?void 0:n.id},to=new WeakMap;let hr=kr;var eo,no;const Er=class Er{constructor(t,n){ot(this,"opts");ot(this,"root");ot(this,"attachment");ot(this,"onInteractOutside",t=>{if(this.opts.onInteractOutside.current(t),t.defaultPrevented||!Te(t.target))return;const n=t.target.closest(dr.selector("trigger"));if(!(n&&n===this.root.triggerNode)){if(this.opts.customAnchor.current){if(Te(this.opts.customAnchor.current)){if(this.opts.customAnchor.current.contains(t.target))return}else if(typeof this.opts.customAnchor.current=="string"){const r=document.querySelector(this.opts.customAnchor.current);if(r&&r.contains(t.target))return}}this.root.handleClose()}});ot(this,"onEscapeKeydown",t=>{this.opts.onEscapeKeydown.current(t),!t.defaultPrevented&&this.root.handleClose()});A(this,eo,W(()=>({open:this.root.opts.open.current})));A(this,no,W(()=>({id:this.opts.id.current,tabindex:-1,"data-state":Ai(this.root.opts.open.current),[dr.content]:"",style:{pointerEvents:"auto",contain:"layout style"},onpointerdown:this.onpointerdown,onfocusin:this.onfocusin,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment})));ot(this,"popperProps",{onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown});this.opts=t,this.root=n,this.attachment=_n(this.opts.ref,r=>this.root.contentNode=r),this.onpointerdown=this.onpointerdown.bind(this),this.onfocusin=this.onfocusin.bind(this),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this),new gl({triggerNode:()=>this.root.triggerNode,contentNode:()=>this.root.contentNode,enabled:()=>this.root.opts.open.current&&this.root.openedViaHover&&!this.root.hasInteractedWithContent,onPointerExit:()=>{this.root.handleDelayedHoverClose()}})}static create(t){return new Er(t,Ar.get())}onpointerdown(t){this.root.markInteraction()}onfocusin(t){const n=t.target;Te(n)&&oa(n)&&this.root.markInteraction()}onpointerenter(t){wo(t)||this.root.cancelDelayedClose()}onpointerleave(t){wo(t)}get shouldRender(){return this.root.contentPresence.shouldRender}get shouldTrapFocus(){return!(this.root.openedViaHover&&!this.root.hasInteractedWithContent)}get snippetProps(){return o(f(this,eo))}set snippetProps(t){d(f(this,eo),t)}get props(){return o(f(this,no))}set props(t){d(f(this,no),t)}};eo=new WeakMap,no=new WeakMap;let mr=Er;var ml=at("<div><div><!></div></div>"),yl=at("<div><div><!></div></div>");function mi(e,t){const n=Oi();ie(t,!0);let r=k(t,"ref",15,null),i=k(t,"id",19,()=>zi(n)),s=k(t,"forceMount",3,!1),a=k(t,"onOpenAutoFocus",3,Ze),l=k(t,"onCloseAutoFocus",3,Ze),h=k(t,"onEscapeKeydown",3,Ze),m=k(t,"onInteractOutside",3,Ze),y=k(t,"trapFocus",3,!0),v=k(t,"preventScroll",3,!1),g=k(t,"customAnchor",3,null),p=ln(t,["$$slots","$$events","$$legacy","child","children","ref","id","forceMount","onOpenAutoFocus","onCloseAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","customAnchor","style"]);const w=mr.create({id:U(()=>i()),ref:U(()=>r(),F=>r(F)),onInteractOutside:U(()=>m()),onEscapeKeydown:U(()=>h()),customAnchor:U(()=>g())}),P=W(()=>Qe(p,w.props)),O=W(()=>y()&&w.shouldTrapFocus);function x(F){w.shouldTrapFocus||F.preventDefault(),a()(F)}var D=dt(),T=X(D);{var E=F=>{vl(F,Nt(()=>o(P),()=>w.popperProps,{get ref(){return w.opts.ref},get enabled(){return w.root.opts.open.current},get id(){return i()},get trapFocus(){return o(O)},get preventScroll(){return v()},loop:!0,forceMount:!0,get customAnchor(){return g()},onOpenAutoFocus:x,get onCloseAutoFocus(){return l()},get shouldRender(){return w.shouldRender},popper:(ft,R)=>{let $=()=>R==null?void 0:R().props,et=()=>R==null?void 0:R().wrapperProps;const tt=W(()=>Qe($(),{style:pi("popover")},{style:t.style}));var nt=dt(),Y=X(nt);{var ht=J=>{var V=dt(),Z=X(V);{let it=W(()=>({props:o(tt),wrapperProps:et(),...w.snippetProps}));Bt(Z,()=>t.child,()=>o(it))}z(J,V)},rt=J=>{var V=ml();xn(V,()=>({...et()}));var Z=S(V);xn(Z,()=>({...o(tt)}));var it=S(Z);Bt(it,()=>t.children??ne),C(Z),C(V),z(J,V)};xt(Y,J=>{t.child?J(ht):J(rt,-1)})}z(ft,nt)},$$slots:{popper:!0}}))},L=F=>{pl(F,Nt(()=>o(P),()=>w.popperProps,{get ref(){return w.opts.ref},get open(){return w.root.opts.open.current},get id(){return i()},get trapFocus(){return o(O)},get preventScroll(){return v()},loop:!0,forceMount:!1,get customAnchor(){return g()},onOpenAutoFocus:x,get onCloseAutoFocus(){return l()},get shouldRender(){return w.shouldRender},popper:(ft,R)=>{let $=()=>R==null?void 0:R().props,et=()=>R==null?void 0:R().wrapperProps;const tt=W(()=>Qe($(),{style:pi("popover")},{style:t.style}));var nt=dt(),Y=X(nt);{var ht=J=>{var V=dt(),Z=X(V);{let it=W(()=>({props:o(tt),wrapperProps:et(),...w.snippetProps}));Bt(Z,()=>t.child,()=>o(it))}z(J,V)},rt=J=>{var V=yl();xn(V,()=>({...et()}));var Z=S(V);xn(Z,()=>({...o(tt)}));var it=S(Z);Bt(it,()=>t.children??ne),C(Z),C(V),z(J,V)};xt(Y,J=>{t.child?J(ht):J(rt,-1)})}z(ft,nt)},$$slots:{popper:!0}}))};xt(T,F=>{s()?F(E):s()||F(L,1)})}z(e,D),se()}var wl=at("<button><!></button>");function yi(e,t){const n=Oi();ie(t,!0);let r=k(t,"id",19,()=>zi(n)),i=k(t,"ref",15,null),s=k(t,"type",3,"button"),a=k(t,"disabled",3,!1),l=k(t,"openOnHover",3,!1),h=k(t,"openDelay",3,700),m=k(t,"closeDelay",3,300),y=ln(t,["$$slots","$$events","$$legacy","children","child","id","ref","type","disabled","openOnHover","openDelay","closeDelay"]);const v=hr.create({id:U(()=>r()),ref:U(()=>i(),p=>i(p)),disabled:U(()=>!!a()),openOnHover:U(()=>l()),openDelay:U(()=>h()),closeDelay:U(()=>m())}),g=W(()=>Qe(y,v.props,{type:s()}));cl(e,{get id(){return r()},get ref(){return v.opts.ref},children:(p,w)=>{var P=dt(),O=X(P);{var x=T=>{var E=dt(),L=X(E);Bt(L,()=>t.child,()=>({props:o(g)})),z(T,E)},D=T=>{var E=wl();xn(E,()=>({...o(g)}));var L=S(E);Bt(L,()=>t.children??ne),C(E),z(T,E)};xt(O,T=>{t.child?T(x):T(D,-1)})}z(p,P)},$$slots:{default:!0}}),se()}function wi(e,t){ie(t,!0);let n=k(t,"open",15,!1),r=k(t,"onOpenChange",3,Ze),i=k(t,"onOpenChangeComplete",3,Ze);fr.create({open:U(()=>n(),s=>{n(s),r()(s)}),onOpenChangeComplete:U(()=>i())}),ll(e,{children:(s,a)=>{var l=dt(),h=X(l);Bt(h,()=>t.children??ne),z(s,l)},$$slots:{default:!0}}),se()}function bl(e,t){const n=Ae(t,["children","$$slots","$$events","$$legacy"]);/**
2
+ * @license lucide-svelte v0.460.1 - ISC
3
+ *
4
+ * This source code is licensed under the ISC license.
5
+ * See the LICENSE file in the root directory of this source tree.
6
+ */const r=[["path",{d:"m3 16 4 4 4-4"}],["path",{d:"M7 20V4"}],["path",{d:"m21 8-4-4-4 4"}],["path",{d:"M17 4v16"}]];Ce(e,Nt({name:"arrow-down-up"},()=>n,{get iconNode(){return r},children:(i,s)=>{var a=dt(),l=X(a);Se(l,t,"default",{}),z(i,a)},$$slots:{default:!0}}))}function xl(e,t){const n=Ae(t,["children","$$slots","$$events","$$legacy"]);/**
7
+ * @license lucide-svelte v0.460.1 - ISC
8
+ *
9
+ * This source code is licensed under the ISC license.
10
+ * See the LICENSE file in the root directory of this source tree.
11
+ */const r=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"}]];Ce(e,Nt({name:"copy"},()=>n,{get iconNode(){return r},children:(i,s)=>{var a=dt(),l=X(a);Se(l,t,"default",{}),z(i,a)},$$slots:{default:!0}}))}function _l(e,t){const n=Ae(t,["children","$$slots","$$events","$$legacy"]);/**
12
+ * @license lucide-svelte v0.460.1 - ISC
13
+ *
14
+ * This source code is licensed under the ISC license.
15
+ * See the LICENSE file in the root directory of this source tree.
16
+ */const r=[["circle",{cx:"12",cy:"12",r:"1"}],["circle",{cx:"19",cy:"12",r:"1"}],["circle",{cx:"5",cy:"12",r:"1"}]];Ce(e,Nt({name:"ellipsis"},()=>n,{get iconNode(){return r},children:(i,s)=>{var a=dt(),l=X(a);Se(l,t,"default",{}),z(i,a)},$$slots:{default:!0}}))}function Pl(e,t){const n=Ae(t,["children","$$slots","$$events","$$legacy"]);/**
17
+ * @license lucide-svelte v0.460.1 - ISC
18
+ *
19
+ * This source code is licensed under the ISC license.
20
+ * See the LICENSE file in the root directory of this source tree.
21
+ */const r=[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7"}]];Ce(e,Nt({name:"mail"},()=>n,{get iconNode(){return r},children:(i,s)=>{var a=dt(),l=X(a);Se(l,t,"default",{}),z(i,a)},$$slots:{default:!0}}))}function Ol(e,t){const n=Ae(t,["children","$$slots","$$events","$$legacy"]);/**
22
+ * @license lucide-svelte v0.460.1 - ISC
23
+ *
24
+ * This source code is licensed under the ISC license.
25
+ * See the LICENSE file in the root directory of this source tree.
26
+ */const r=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z"}],["path",{d:"m15 5 4 4"}]];Ce(e,Nt({name:"pencil"},()=>n,{get iconNode(){return r},children:(i,s)=>{var a=dt(),l=X(a);Se(l,t,"default",{}),z(i,a)},$$slots:{default:!0}}))}function Cl(e,t){const n=Ae(t,["children","$$slots","$$events","$$legacy"]);/**
27
+ * @license lucide-svelte v0.460.1 - ISC
28
+ *
29
+ * This source code is licensed under the ISC license.
30
+ * See the LICENSE file in the root directory of this source tree.
31
+ */const r=[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z"}],["path",{d:"M20 3v4"}],["path",{d:"M22 5h-4"}],["path",{d:"M4 17v2"}],["path",{d:"M5 18H3"}]];Ce(e,Nt({name:"sparkles"},()=>n,{get iconNode(){return r},children:(i,s)=>{var a=dt(),l=X(a);Se(l,t,"default",{}),z(i,a)},$$slots:{default:!0}}))}function bi(e,t){const n=Ae(t,["children","$$slots","$$events","$$legacy"]);/**
32
+ * @license lucide-svelte v0.460.1 - ISC
33
+ *
34
+ * This source code is licensed under the ISC license.
35
+ * See the LICENSE file in the root directory of this source tree.
36
+ */const r=[["path",{d:"M3 6h18"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17"}]];Ce(e,Nt({name:"trash-2"},()=>n,{get iconNode(){return r},children:(i,s)=>{var a=dt(),l=X(a);Se(l,t,"default",{}),z(i,a)},$$slots:{default:!0}}))}function Sl(e,t){const n=Ae(t,["children","$$slots","$$events","$$legacy"]);/**
37
+ * @license lucide-svelte v0.460.1 - ISC
38
+ *
39
+ * This source code is licensed under the ISC license.
40
+ * See the LICENSE file in the root directory of this source tree.
41
+ */const r=[["path",{d:"M3 6h18"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"}]];Ce(e,Nt({name:"trash"},()=>n,{get iconNode(){return r},children:(i,s)=>{var a=dt(),l=X(a);Se(l,t,"default",{}),z(i,a)},$$slots:{default:!0}}))}function xi(e){const t=e.trim();if(!t)return t;if(!/^https?:\/\//i.test(t))return t.toLowerCase();try{const n=new URL(t),r=n.protocol.toLowerCase(),i=n.host.toLowerCase();let s=n.pathname;return s.length>1&&s.endsWith("/")&&(s=s.slice(0,-1)),s=s.toLowerCase(),`${r}//${i}${s}${n.search}${n.hash}`}catch{return t.toLowerCase()}}function _i(e){const t=e.trim();if(!/^https?:\/\//i.test(t))return null;try{return new URL(t).hostname.replace(/^www\./i,"")||null}catch{return null}}function Pi(e){return`/api/feed-favicon?domain=${encodeURIComponent(e)}`}var Al=at("<option> </option>"),zl=at('<p class="save-error svelte-1beoyzy"> </p>'),kl=at('<span class="confirm-delete-row svelte-1beoyzy"><span class="confirm-delete-text svelte-1beoyzy">确认删除?</span> <button type="button" class="btn-confirm-yes svelte-1beoyzy">删除</button> <button type="button" class="btn-confirm-no svelte-1beoyzy">取消</button></span>'),El=at('<button type="button" class="btn-delete svelte-1beoyzy"><!> 删除</button>'),Fl=at('<div class="modal-header svelte-1beoyzy"><!> <!></div> <div class="modal-body svelte-1beoyzy"><div class="field svelte-1beoyzy"><span class="field-label svelte-1beoyzy">Ref <span class="required svelte-1beoyzy">*</span></span> <div class="ref-input-wrap svelte-1beoyzy"><input class="field-input svelte-1beoyzy" type="text" placeholder="https://example.com/feed"/></div></div> <div class="field svelte-1beoyzy"><span class="field-label svelte-1beoyzy">来源</span> <div class="parse-hints svelte-1beoyzy" role="status" aria-live="polite"><span title="标准 RSS/Atom/JSON Feed(内置 __rss__,rss-parser)"><!> <span>RSS/Atom</span></span> <span title="内置 IMAP 邮件插件(__email__)"><!> <span>邮箱</span></span> <span title="Site 插件(listUrlPattern)或语鲸协议(lingowhale://)"><!> <span>插件</span></span> <span title="通用网页列表:无 Feed 特征且未命中插件时,走 LLM 解析(generic)"><!> <span>LLM</span></span></div></div> <div class="field svelte-1beoyzy"><span class="field-label svelte-1beoyzy">名称</span> <input class="field-input svelte-1beoyzy" type="text" placeholder="显示名称(留空则显示 ref)"/></div> <div class="field svelte-1beoyzy"><span class="field-label svelte-1beoyzy">描述</span> <input class="field-input svelte-1beoyzy" type="text" placeholder="简短说明"/></div> <div class="field-row svelte-1beoyzy"><div class="field svelte-1beoyzy"><span class="field-label svelte-1beoyzy">权重(0–1)</span> <input class="field-input field-input--weight svelte-1beoyzy" type="number" min="0" max="1" step="0.01" inputmode="decimal" placeholder="0–1"/></div> <div class="field svelte-1beoyzy"><span class="field-label svelte-1beoyzy">刷新间隔</span> <select class="field-input svelte-1beoyzy"></select></div></div> <div class="field svelte-1beoyzy"><span class="field-label svelte-1beoyzy">代理</span> <input class="field-input svelte-1beoyzy" type="text" placeholder="http://127.0.0.1:7890"/></div> <!></div> <div class="modal-footer svelte-1beoyzy"><div class="modal-footer-left svelte-1beoyzy"><!></div> <div class="modal-footer-right svelte-1beoyzy"><!> <button type="button" class="btn-save svelte-1beoyzy"> </button></div></div>',1),Tl=at("<!> <!>",1),Dl=at('<p class="remove-dialog-target svelte-1beoyzy"> </p>'),Ml=at('<div class="modal-header svelte-1beoyzy"><!> <!></div> <div class="modal-body svelte-1beoyzy"><p id="remove-source-desc" class="remove-dialog-text svelte-1beoyzy">确定删除该信源吗?操作会同时删除该信源下已入库的所有条目,且不可恢复。</p> <!></div> <div class="modal-footer remove-dialog-footer svelte-1beoyzy"><!> <button type="button" class="btn-confirm-yes svelte-1beoyzy">移除</button></div>',1),Ll=at("<!> <!>",1),Il=at('<span class="sort-menu-dir svelte-1beoyzy" aria-hidden="true"> </span>'),Wl=at('<button type="button"><span> </span> <!></button>'),Nl=at("<!> <!>",1),Hl=at('<div class="state svelte-1beoyzy">加载中…</div>'),Rl=at('<div class="state error svelte-1beoyzy"> </div>'),Bl=at('<div class="state svelte-1beoyzy">暂无信源。<button type="button" class="link-btn svelte-1beoyzy">点击添加</button>第一个信源。</div>'),Vl=at('<div class="state svelte-1beoyzy">无匹配结果</div>'),Kl=at('<img class="source-title-favicon svelte-1beoyzy" alt="" width="16" height="16" loading="lazy" decoding="async"/>'),Ul=at('<span class="source-title-favicon-slot svelte-1beoyzy" aria-hidden="true"><!></span>'),jl=at('<a class="more-menu-item svelte-1beoyzy" target="_blank" rel="noopener noreferrer"><!> <span>打开链接</span></a>'),Xl=at('<button type="button" title="强制拉取"><!> <span> </span></button> <button type="button" class="more-menu-item svelte-1beoyzy"><!> <span>编辑</span></button> <button type="button" class="more-menu-item svelte-1beoyzy" title="复制本服务的 RSS 订阅地址(/rss?ref=…)"><!> <span>复制 RSS 地址</span></button> <!> <button type="button" class="more-menu-item more-menu-item-danger svelte-1beoyzy" title="清空该信源下所有已入库条目"><!> <span> </span></button> <button type="button" class="more-menu-item more-menu-item-remove svelte-1beoyzy" title="从订阅列表中移除此信源"><!> <span> </span></button>',1),Yl=at("<!> <!>",1),ql=at('<div class="card row-grid svelte-1beoyzy" role="button" tabindex="0"><div class="cell-title svelte-1beoyzy"><div class="title-block svelte-1beoyzy"><!> <div class="title-line svelte-1beoyzy"><span class="title-text svelte-1beoyzy"> </span> <span class="title-item-count svelte-1beoyzy" title="已收录条目"> </span></div></div></div> <div class="cell-actions svelte-1beoyzy"><!></div></div>'),Jl=at('<div class="list svelte-1beoyzy"></div>'),Zl=at('<!> <!> <!> <div class="feed-wrap svelte-1beoyzy"><div class="feed-col svelte-1beoyzy"><div class="feed-toolbar-block svelte-1beoyzy"><div class="feed-header svelte-1beoyzy"><div class="header-left svelte-1beoyzy"><input class="filter-input svelte-1beoyzy" type="search" placeholder="过滤…"/> <!></div> <div class="header-right svelte-1beoyzy"><button type="button" class="btn-add svelte-1beoyzy" title="添加信源" aria-label="添加信源"><!></button></div></div></div> <div class="feed-body-scroll svelte-1beoyzy"><!></div></div></div>',1);function yc(e,t){ie(t,!1);const n=()=>Yr(Hs,"$refToTaskId",i),r=()=>Yr(Go,"$page",i),[i,s]=Fs(),a=G(),l=G(),h=G(),m=G();function y(c){return c==="alpha"||c==="parse"?"asc":"desc"}const v="1day",g=[{value:"10min",label:"10 分钟"},{value:"30min",label:"30 分钟"},{value:"1h",label:"1 小时"},{value:"6h",label:"6 小时"},{value:"12h",label:"12 小时"},{value:"1day",label:"1 天"},{value:"3day",label:"3 天"},{value:"7day",label:"7 天"}];function p(c){const u=(c==null?void 0:c.trim())??"";return g.some(b=>b.value===u)?u:v}function w(c){return Math.min(1,Math.max(0,c))}function P(c){const u=typeof c=="number"&&!Number.isNaN(c)?c:Number(String(c).trim());return Number.isFinite(u)?u<0||u>1?{ok:!1,message:"权重需在 0–1 之间"}:{ok:!0,value:u}:{ok:!1,message:"权重需为 0–1 之间的数字"}}let O=[],x=G([]),D=G(!0),T=G(""),E=G(""),L=G("weight"),F=G("desc"),Q=G(!1),ft="",R=G(null),$=G({}),et=G(null),tt=G(null),nt=G(!1),Y=G(null),ht=G(!1),rt=G(null),J=G(!1),V=G(!1),Z=G(!1),it=G(""),Rt=G(""),We=G(""),Ne=G(""),dn=G(0),fn=G(v),He=G(""),Re=G(null),ro=null;function io(c){const u=(c==null?void 0:c.trim())??"";if(!u)return u;const b=u.toLowerCase();return b.startsWith("http://")||b.startsWith("https://")||b.startsWith("imaps://")||b.startsWith("imap://")||b.startsWith("lingowhale://")?u:"https://"+u}function Xi(c){const u=c.toLowerCase();return u.includes("/feed")||u.includes("/rss")||u.includes("/atom")||u.endsWith(".xml")||u.endsWith(".rss")||u.endsWith(".atom")||u.includes("format=rss")||u.includes("format=atom")||u.includes("output=rss")}function Fr(c,u){const b=(c==null?void 0:c.trim())??"";if(!b)return null;const _=b.toLowerCase();if(_.startsWith("imaps://")||_.startsWith("imap://"))return"email";if(_.startsWith("lingowhale://"))return"plugin";const H=io(b);return!H.startsWith("http://")&&!H.startsWith("https://")?null:Xi(H)?"rss":u?"plugin":"llm"}function Lo(c){return c==="rss"?"RSS/Atom":c==="plugin"?"插件":c==="llm"?"LLM":c==="email"?"邮箱":"—"}function Yi(c){ro&&clearTimeout(ro);const u=c==null?void 0:c.trim();if(!u){d(Re,null);return}d(Re,null);const b=io(u);ro=setTimeout(async()=>{ro=null;try{const _=await ee("/api/sources/plugin-match",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({refs:[b]})});if(_.ok){const H=await _.json();io(o(Rt).trim())===b&&d(Re,H[b]??null)}}catch{io(o(Rt).trim())===b&&d(Re,null)}},400)}function qi(c,u,b){const _=b==="desc"?-1:1;return[...c].sort((H,I)=>{let K=0;switch(u){case"weight":K=H.weight-I.weight;break;case"alpha":K=H.displayLabel.localeCompare(I.displayLabel,"zh-CN");break;case"parse":K=Lo(H.parseHint).localeCompare(Lo(I.parseHint),"zh-CN");break;case"latest":{const wt=H.latestAt?new Date(H.latestAt).getTime():NaN,Ft=I.latestAt?new Date(I.latestAt).getTime():NaN,Ct=Number.isFinite(wt),N=Number.isFinite(Ft);if(!Ct&&!N)K=0;else if(Ct)if(N)K=wt-Ft;else return-1;else return 1;break}case"count":K=H.count-I.count;break}return K!==0?_*K:H.displayLabel.localeCompare(I.displayLabel,"zh-CN")})}function Ji(c){o(L)===c?d(F,o(F)==="asc"?"desc":"asc"):(d(L,c),d(F,y(c)))}let Io=G(!1);function Tr(c){return c==="alpha"?"标题":c==="weight"?"权重":c==="latest"?"最近拉取":c==="parse"?"解析":"数量"}function Zi(c){Ji(c),d(Io,!1)}const Qi=["alpha","weight","latest","parse","count"];async function Be(c){const u=(c==null?void 0:c.silent)===!0;u||d(D,!0),d(T,"");try{const[b,_]=await Promise.all([ee("/api/sources/raw"),ee("/api/sources/stats")]),H=await b.text(),I=JSON.parse(H||"{}");O=Array.isArray(I.sources)?I.sources:[];const K=_.ok?await _.json():[],wt=new Map;for(const N of K){const lt=xi(N.source_url),pt=wt.get(lt),ut=N.latest_at??null;pt?wt.set(lt,{count:pt.count+N.count,latestAt:pt.latestAt?ut?pt.latestAt>=ut?pt.latestAt:ut:pt.latestAt:ut}):wt.set(lt,{count:N.count,latestAt:ut})}const Ft=O.filter(N=>{var lt;return(lt=N==null?void 0:N.ref)==null?void 0:lt.trim()}).map(N=>N.ref.trim());let Ct={};if(Ft.length>0)try{const N=await ee("/api/sources/plugin-match",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({refs:Ft})});N.ok&&(Ct=await N.json())}catch{}d(x,O.filter(N=>{var lt;return(lt=N==null?void 0:N.ref)==null?void 0:lt.trim()}).map(N=>{var Mt,Tt;const lt=N.ref.trim(),pt=wt.get(xi(lt))??{count:0,latestAt:null},ut=Ct[lt]??null,_t=(Mt=N.proxy)==null?void 0:Mt.trim();return{ref:lt,displayLabel:N.label&&N.label.trim()||lt,description:(Tt=N.description)==null?void 0:Tt.trim(),count:(pt==null?void 0:pt.count)??0,latestAt:(pt==null?void 0:pt.latestAt)??null,pluginId:ut,weight:N.weight??0,..._t?{proxy:_t}:{},parseHint:Fr(lt,ut)}}))}catch(b){d(T,b instanceof Error?b.message:String(b)),u||d(x,[])}finally{u||d(D,!1)}}async function Wo(c){return(await ee("/api/sources/raw",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({sources:c})})).ok}function Dr(){d(V,!1),d(Rt,""),d(We,""),d(Ne,""),d(dn,0),d(fn,v),d(He,""),d(it,""),d(J,!0)}function Gi(c){const u=O.find(b=>b.ref===c.ref);d(V,!0),ft=c.ref,d(Rt,c.ref),d(We,(u==null?void 0:u.label)??""),d(Ne,(u==null?void 0:u.description)??""),d(dn,w((u==null?void 0:u.weight)??0)),d(fn,p(u==null?void 0:u.refresh)),d(He,(u==null?void 0:u.proxy)??""),d(it,""),d(Q,!1),d(J,!0)}function Mr(){d(J,!1),d(Q,!1)}async function $i(){const c=o(Rt).trim();if(!c){d(it,"ref 不能为空");return}const u=P(o(dn));if(!u.ok){d(it,u.message);return}d(Z,!0),d(it,"");try{const b=u.value,_={ref:c,...o(We).trim()?{label:o(We).trim()}:{},...o(Ne).trim()?{description:o(Ne).trim()}:{},refresh:o(fn),...o(He).trim()?{proxy:o(He).trim()}:{},...b!==0?{weight:b}:{}};let H;if(o(V)){if(c!==ft&&O.some(K=>K.ref===c)){d(it,"该 ref 已存在");return}H=O.map(K=>K.ref===ft?{...K,..._}:K)}else{if(O.some(K=>K.ref===c)){d(it,"该 ref 已存在");return}H=[...O,_]}if(!await Wo(H)){d(it,"保存失败,请重试");return}Mr(),await Be({silent:!0})}catch(b){d(it,b instanceof Error?b.message:String(b))}finally{d(Z,!1)}}async function Lr(c){try{const u=await ee("/api/items/by-source?source_url="+encodeURIComponent(c),{method:"DELETE"}),b=await u.json();return!u.ok||!b.ok?{ok:!1,message:b.message??"删除信源条目失败"}:{ok:!0,deleted:Number(b.deleted??0)}}catch(u){return{ok:!1,message:u instanceof Error?u.message:"删除信源条目失败"}}}async function ts(){const c=ft.trim();if(!c){d(it,"缺少信源 ref");return}d(Z,!0),d(it,"");try{const u=await Lr(c);if(!u.ok){d(it,u.message);return}const b=O.filter(H=>H.ref!==c);if(!await Wo(b)){d(it,"删除信源失败,请重试");return}Mr(),await Be({silent:!0})}catch(u){d(it,u instanceof Error?u.message:String(u))}finally{d(Z,!1)}}async function es(c){for(let u=0;u<120;u++){const b=await ee(`/api/tasks/${c}`);if(!b.ok)return{ok:!1,error:"轮询失败"};const _=await b.json();if(_.status==="done")return{ok:!0};if(_.status==="error")return{ok:!1,error:_.error??"拉取失败"};await new Promise(H=>setTimeout(H,800))}return{ok:!1,error:"超时"}}async function ns(c,u){if(u==null||u.preventDefault(),u==null||u.stopPropagation(),!(c in n()))try{const b=await ee("/api/tasks",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({type:"source-pull",ref:c})}),_=await b.json();if(!b.ok||!_.taskId)return;Rs(c,_.taskId),(await es(_.taskId)).ok&&await Be({silent:!0})}catch{}finally{Bs(c)}}function os(c){const u=c.trim().toLowerCase();return u.startsWith("http://")||u.startsWith("https://")}function rs(c){const u=new URL("/rss",typeof window<"u"?window.location.origin:"http://127.0.0.1");return u.searchParams.set("ref",c),u.href}async function is(c){const u=rs(c);try{await navigator.clipboard.writeText(u)}catch{try{const b=document.createElement("textarea");b.value=u,b.style.position="fixed",b.style.left="-9999px",document.body.appendChild(b),b.select(),document.execCommand("copy"),document.body.removeChild(b)}catch{}}d(R,null)}function ss(c){d(nt,c),c||d(Y,null)}function as(c){o(tt)||(d(Y,c),d(nt,!0),d(R,null))}async function ls(){var u;const c=o(Y);if(!(!c||o(tt))){d(nt,!1),d(Y,null),d(tt,c);try{const b=await Lr(c);if(!b.ok){$o(b.message,"error");return}const _=O.filter(I=>I.ref!==c);if(!await Wo(_)){$o("移除失败,请重试","error");return}Jr(Go).url.pathname==="/"?Zr.update(I=>(I==null?void 0:I.ref)===c?null:I):((u=o(rt))==null?void 0:u.ref)===c&&(d(ht,!1),d(rt,null)),await Be({silent:!0})}catch(b){$o(b instanceof Error?b.message:"移除失败","error")}finally{d(tt,null)}}}async function cs(c){if(!o(et)&&confirm("确定要清空该信源下的所有条目吗?此操作不可恢复。")){d(et,c),d(R,null);try{const u=await ee("/api/items/by-source?source_url="+encodeURIComponent(c),{method:"DELETE"}),b=await u.json();u.ok&&b.ok?await Be({silent:!0}):u.ok||alert(b.message??"清空失败")}catch(u){alert(u instanceof Error?u.message:"清空失败")}finally{d(et,null)}}}function Ir(c){var u,b;if(Jr(Go).url.pathname==="/"){Zr.set({ref:c.ref,displayLabel:c.displayLabel,...(u=c.description)!=null&&u.trim()?{description:c.description.trim()}:{},...(b=c.proxy)!=null&&b.trim()?{proxy:c.proxy.trim()}:{}});return}d(rt,c),d(ht,!0)}function us(c,u){const b=u.target;b&&(b.closest("a[href], button")||Ir(c))}function ds(c,u){u.key!=="Enter"&&u.key!==" "||(u.preventDefault(),Ir(c))}Ci(Be),wn(()=>(o(Y),o(x)),()=>{var c;d(a,o(Y)!=null?((c=o(x).find(u=>u.ref===o(Y)))==null?void 0:c.displayLabel)??o(Y):"")}),wn(()=>o(Rt),()=>{o(Rt),Yi(o(Rt))}),wn(()=>(o(Rt),o(Re)),()=>{d(l,Fr(o(Rt),o(Re)))}),wn(()=>o(l),()=>{d(h,o(l)??"llm")}),wn(()=>(o(E),o(x),o(L),o(F)),()=>{d(m,qi(o(E).trim()?o(x).filter(c=>{var b;const u=o(E).trim().toLowerCase();return c.displayLabel.toLowerCase().includes(u)||(((b=c.description)==null?void 0:b.toLowerCase().includes(u))??!1)||c.ref.toLowerCase().includes(u)||Lo(c.parseHint).toLowerCase().includes(u)}):o(x),o(L),o(F)))}),Ss(),Ds();var Wr=Zl(),Nr=X(Wr);$r(Nr,{get open(){return o(J)},onOpenChange:c=>{d(J,c),c||d(Q,!1)},children:(c,u)=>{vo(c,{children:(b,_)=>{var H=Tl(),I=X(H);ti(I,{class:"modal-overlay"});var K=M(I,2);ei(K,{class:"modal","aria-describedby":void 0,children:(wt,Ft)=>{var Ct=Fl(),N=X(Ct),lt=S(N);ni(lt,{class:"modal-title",children:(ct,Pt)=>{zt();var Ot=Xe();kt(()=>Lt(Ot,o(V)?"编辑信源":"添加信源")),z(ct,Ot)},$$slots:{default:!0}});var pt=M(lt,2);go(pt,{class:"modal-close","aria-label":"关闭",children:(ct,Pt)=>{zt();var Ot=Xe("✕");z(ct,Ot)},$$slots:{default:!0}}),C(N);var ut=M(N,2),_t=S(ut),Mt=M(S(_t),2),Tt=S(Mt);Ye(Tt),C(Mt),C(_t);var bt=M(_t,2),St=M(S(bt),2),gt=S(St);let vt;var mt=S(gt);Ms(mt,{size:14,class:"parse-hint-icon"}),zt(2),C(gt);var At=M(gt,2);let Ut;var Vo=S(At);Pl(Vo,{size:14,class:"parse-hint-icon"}),zt(2),C(At);var le=M(At,2);let Ko;var so=S(le);Ls(so,{size:14,class:"parse-hint-icon"}),zt(2),C(le);var jt=M(le,2);let hn;var ao=S(jt);Cl(ao,{size:14,class:"parse-hint-icon"}),zt(2),C(jt),C(St),C(bt);var Ve=M(bt,2),lo=M(S(Ve),2);Ye(lo),C(Ve);var ce=M(Ve,2),co=M(S(ce),2);Ye(co),C(ce);var ue=M(ce,2),pn=S(ue),vn=M(S(pn),2);Ye(vn),C(pn);var uo=M(pn,2),gn=M(S(uo),2);Zo(gn,5,()=>g,qr,(ct,Pt)=>{var Ot=Al(),Xo=S(Ot,!0);C(Ot);var po={};kt(()=>{Lt(Xo,(o(Pt),st(()=>o(Pt).label))),po!==(po=(o(Pt),st(()=>o(Pt).value)))&&(Ot.value=(Ot.__value=(o(Pt),st(()=>o(Pt).value)))??"")}),z(ct,Ot)}),C(gn),C(uo),C(ue);var Gt=M(ue,2),mn=M(S(Gt),2);Ye(mn),C(Gt);var fo=M(Gt,2);{var Uo=ct=>{var Pt=zl(),Ot=S(Pt,!0);C(Pt),kt(()=>Lt(Ot,o(it))),z(ct,Pt)};xt(fo,ct=>{o(it)&&ct(Uo)})}C(ut);var ze=M(ut,2),Ke=S(ze),ho=S(Ke);{var jo=ct=>{var Pt=dt(),Ot=X(Pt);{var Xo=je=>{var $t=kl(),yn=M(S($t),2),Ps=M(yn,2);C($t),kt(()=>yn.disabled=o(Z)),Et("click",yn,ts),Et("click",Ps,()=>d(Q,!1)),z(je,$t)},po=je=>{var $t=El(),yn=S($t);bi(yn,{size:13}),zt(),C($t),kt(()=>$t.disabled=o(Z)),Et("click",$t,()=>d(Q,!0)),z(je,$t)};xt(Ot,je=>{o(Q)?je(Xo):je(po,-1)})}z(ct,Pt)};xt(ho,ct=>{o(V)&&ct(jo)})}C(Ke);var de=M(Ke,2),ke=S(de);go(ke,{class:"btn-cancel",get disabled(){return o(Z)},children:(ct,Pt)=>{zt();var Ot=Xe("取消");z(ct,Ot)},$$slots:{default:!0}});var Ue=M(ke,2),_s=S(Ue,!0);C(Ue),C(de),C(ze),kt(()=>{vt=qe(gt,1,"parse-hint svelte-1beoyzy",null,vt,{active:o(h)==="rss"}),Ut=qe(At,1,"parse-hint svelte-1beoyzy",null,Ut,{active:o(h)==="email"}),Ko=qe(le,1,"parse-hint svelte-1beoyzy",null,Ko,{active:o(h)==="plugin"}),hn=qe(jt,1,"parse-hint svelte-1beoyzy",null,hn,{active:o(h)==="llm"}),Ue.disabled=o(Z),Lt(_s,o(Z)?"保存中…":"保存")}),Je(Tt,()=>o(Rt),ct=>d(Rt,ct)),Je(lo,()=>o(We),ct=>d(We,ct)),Je(co,()=>o(Ne),ct=>d(Ne,ct)),Je(vn,()=>o(dn),ct=>d(dn,ct)),Ts(gn,()=>o(fn),ct=>d(fn,ct)),Je(mn,()=>o(He),ct=>d(He,ct)),Et("click",Ue,$i),z(wt,Ct)},$$slots:{default:!0}}),z(b,H)},$$slots:{default:!0}})},$$slots:{default:!0}});var Hr=M(Nr,2);$r(Hr,{get open(){return o(nt)},onOpenChange:ss,children:(c,u)=>{vo(c,{children:(b,_)=>{var H=Ll(),I=X(H);ti(I,{class:"modal-overlay"});var K=M(I,2);ei(K,{class:"modal","aria-describedby":"remove-source-desc",children:(wt,Ft)=>{var Ct=Ml(),N=X(Ct),lt=S(N);ni(lt,{class:"modal-title",children:(gt,vt)=>{zt();var mt=Xe("移除信源");z(gt,mt)},$$slots:{default:!0}});var pt=M(lt,2);go(pt,{class:"modal-close","aria-label":"关闭",children:(gt,vt)=>{zt();var mt=Xe("✕");z(gt,mt)},$$slots:{default:!0}}),C(N);var ut=M(N,2),_t=M(S(ut),2);{var Mt=gt=>{var vt=Dl(),mt=S(vt,!0);C(vt),kt(()=>Lt(mt,o(a))),z(gt,vt)};xt(_t,gt=>{o(a)&&gt(Mt)})}C(ut);var Tt=M(ut,2),bt=S(Tt);{let gt=te(()=>!!o(tt));go(bt,{class:"btn-cancel",get disabled(){return o(gt)},children:(vt,mt)=>{zt();var At=Xe("取消");z(vt,At)},$$slots:{default:!0}})}var St=M(bt,2);C(Tt),kt(()=>St.disabled=!!o(tt)),Et("click",St,ls),z(wt,Ct)},$$slots:{default:!0}}),z(b,H)},$$slots:{default:!0}})},$$slots:{default:!0}});var Rr=M(Hr,2);{var fs=c=>{{let u=te(()=>(o(rt),st(()=>{var I;return((I=o(rt))==null?void 0:I.ref)??""}))),b=te(()=>(o(rt),st(()=>{var I;return((I=o(rt))==null?void 0:I.displayLabel)??""}))),_=te(()=>(o(rt),st(()=>{var I,K;return((K=(I=o(rt))==null?void 0:I.description)==null?void 0:K.trim())??""}))),H=te(()=>(o(rt),st(()=>{var I,K;return((K=(I=o(rt))==null?void 0:I.proxy)==null?void 0:K.trim())??""})));Is(c,{variant:"overlay",get open(){return o(ht)},get sourceRef(){return o(u)},get sourceLabel(){return o(b)},get sourceDescription(){return o(_)},get sourceProxy(){return o(H)},onOpenChange:I=>{d(ht,I),I||d(rt,null)}})}};xt(Rr,c=>{r(),st(()=>r().url.pathname!=="/")&&c(fs)})}var Br=M(Rr,2),Vr=S(Br),No=S(Vr),Kr=S(No),Ho=S(Kr),Ro=S(Ho);Ye(Ro);var hs=M(Ro,2);{var ps=c=>{wi(c,{get open(){return o(Io)},onOpenChange:u=>{d(Io,u)},children:(u,b)=>{var _=Nl(),H=X(_);{let K=te(()=>(o(L),st(()=>Tr(o(L))))),wt=te(()=>o(F)==="asc"?" 升序":" 降序");yi(H,{type:"button",class:"btn-sort",get title(){return`排序:${o(K)??""}${o(wt)??""},点此选择依据或同项切换方向`},"aria-label":"排序",children:(Ft,Ct)=>{bl(Ft,{size:16})},$$slots:{default:!0}})}var I=M(H,2);vo(I,{children:(K,wt)=>{mi(K,{class:"dropdown-panel sort-menu",sideOffset:6,align:"start",children:(Ft,Ct)=>{var N=dt(),lt=X(N);Zo(lt,1,()=>Qi,qr,(pt,ut)=>{var _t=Wl();let Mt;var Tt=S(_t),bt=S(Tt,!0);C(Tt);var St=M(Tt,2);{var gt=vt=>{var mt=Il(),At=S(mt,!0);C(mt),kt(()=>Lt(At,o(F)==="asc"?"↑":"↓")),z(vt,mt)};xt(St,vt=>{o(L)===o(ut)&&vt(gt)})}C(_t),kt(vt=>{Mt=qe(_t,1,"sort-menu-item svelte-1beoyzy",null,Mt,{active:o(L)===o(ut)}),Lt(bt,vt)},[()=>(o(ut),st(()=>Tr(o(ut))))]),Et("click",_t,()=>Zi(o(ut))),z(pt,_t)}),z(Ft,N)},$$slots:{default:!0}})},$$slots:{default:!0}}),z(u,_)},$$slots:{default:!0}})};xt(hs,c=>{r(),o(x),st(()=>r().url.pathname==="/"&&o(x).length>0)&&c(ps)})}C(Ho);var Ur=M(Ho,2),Bo=S(Ur),vs=S(Bo);ia(vs,{size:16,"aria-hidden":"true"}),C(Bo),C(Ur),C(Kr),C(No);var jr=M(No,2),gs=S(jr);{var ms=c=>{var u=Hl();z(c,u)},ys=c=>{var u=Rl(),b=S(u,!0);C(u),kt(()=>Lt(b,o(T))),z(c,u)},ws=c=>{var u=Bl(),b=M(S(u));zt(),C(u),Et("click",b,Dr),z(c,u)},bs=c=>{var u=Vl();z(c,u)},xs=c=>{var u=Jl();Zo(u,5,()=>o(m),b=>b.ref,(b,_)=>{const H=te(()=>(Jo(_i),o(_),st(()=>_i(o(_).ref))));var I=ql(),K=S(I),wt=S(K),Ft=S(wt);{var Ct=bt=>{var St=Ul(),gt=S(St);{var vt=mt=>{var At=Kl();kt(Ut=>Qo(At,"src",Ut),[()=>(Jo(Pi),Jo(o(H)),st(()=>Pi(o(H))))]),ks("error",At,()=>{d($,{...o($),[o(_).ref]:!0})}),Es(At),z(mt,At)};xt(gt,mt=>{o($),o(_),st(()=>!o($)[o(_).ref])&&mt(vt)})}C(St),z(bt,St)};xt(Ft,bt=>{o(H)&&bt(Ct)})}var N=M(Ft,2),lt=S(N),pt=S(lt,!0);C(lt);var ut=M(lt,2),_t=S(ut,!0);C(ut),C(N),C(wt),C(K);var Mt=M(K,2),Tt=S(Mt);{let bt=te(()=>(o(R),o(_),st(()=>o(R)===o(_).ref)));wi(Tt,{get open(){return o(bt)},onOpenChange:St=>{d(R,St?o(_).ref:null)},children:(St,gt)=>{var vt=Yl(),mt=X(vt);yi(mt,{class:"btn-icon",title:"更多",onclick:Ut=>Ut.stopPropagation(),children:(Ut,Vo)=>{_l(Ut,{size:13})},$$slots:{default:!0}});var At=M(mt,2);vo(At,{children:(Ut,Vo)=>{mi(Ut,{class:"dropdown-panel more-menu",sideOffset:6,align:"center",onclick:le=>le.stopPropagation(),children:(le,Ko)=>{var so=Xl(),jt=X(so);let hn;var ao=S(jt);Ws(ao,{size:14});var Ve=M(ao,2),lo=S(Ve,!0);C(Ve),C(jt);var ce=M(jt,2),co=S(ce);Ol(co,{size:14}),zt(2),C(ce);var ue=M(ce,2),pn=S(ue);xl(pn,{size:14}),zt(2),C(ue);var vn=M(ue,2);{var uo=de=>{var ke=jl(),Ue=S(ke);Ns(Ue,{size:14}),zt(2),C(ke),kt(()=>Qo(ke,"href",(o(_),st(()=>o(_).ref)))),z(de,ke)},gn=W(()=>(o(_),st(()=>os(o(_).ref))));xt(vn,de=>{o(gn)&&de(uo)})}var Gt=M(vn,2),mn=S(Gt);Sl(mn,{size:14});var fo=M(mn,2),Uo=S(fo,!0);C(fo),C(Gt);var ze=M(Gt,2),Ke=S(ze);bi(Ke,{size:14});var ho=M(Ke,2),jo=S(ho,!0);C(ho),C(ze),kt(()=>{hn=qe(jt,1,"more-menu-item svelte-1beoyzy",null,hn,{pulling:o(_).ref in n()}),jt.disabled=(o(_),n(),st(()=>o(_).ref in n())),Lt(lo,(o(_),n(),st(()=>o(_).ref in n()?"拉取中…":"拉取"))),Gt.disabled=(o(et),o(_),st(()=>o(et)===o(_).ref)),Lt(Uo,(o(et),o(_),st(()=>o(et)===o(_).ref?"清空中…":"清空该源条目"))),ze.disabled=(o(tt),o(_),st(()=>o(tt)===o(_).ref)),Lt(jo,(o(tt),o(_),st(()=>o(tt)===o(_).ref?"移除中…":"移除信源")))}),Et("click",jt,de=>{ns(o(_).ref,de),d(R,null)}),Et("click",ce,()=>{Gi(o(_)),d(R,null)}),Et("click",ue,()=>is(o(_).ref)),Et("click",Gt,()=>cs(o(_).ref)),Et("click",ze,()=>as(o(_).ref)),z(le,so)},$$slots:{default:!0}})},$$slots:{default:!0}}),z(St,vt)},$$slots:{default:!0}})}C(Mt),C(I),kt(()=>{Qo(wt,"title",(o(_),st(()=>o(_).ref))),Lt(pt,(o(_),st(()=>o(_).displayLabel))),Lt(_t,(o(_),st(()=>o(_).count)))}),Et("click",I,bt=>us(o(_),bt)),Et("keydown",I,bt=>ds(o(_),bt)),z(b,I)}),C(u),z(c,u)};xt(gs,c=>{o(D)?c(ms):o(T)?c(ys,1):(o(x),st(()=>o(x).length===0)?c(ws,2):(o(m),st(()=>o(m).length===0)?c(bs,3):c(xs,-1)))})}C(jr),C(Vr),C(Br),Je(Ro,()=>o(E),c=>d(E,c)),Et("click",Bo,Dr),z(e,Wr),se(),s()}zs(["click","keydown"]);export{yc as S};
@@ -0,0 +1 @@
1
+ import{S as m,m as v,T as _,U as b,V as i,h as y}from"./BbWUOQ_m.js";function h(e,l,u=l){var s=new WeakSet;m(e,"input",async r=>{var a=r?e.defaultValue:e.value;if(a=t(e)?o(a):a,u(a),v!==null&&s.add(v),await _(),a!==(a=l())){var d=e.selectionStart,f=e.selectionEnd,n=e.value.length;if(e.value=a??"",f!==null){var c=e.value.length;d===f&&f===n&&c>n?(e.selectionStart=c,e.selectionEnd=c):(e.selectionStart=d,e.selectionEnd=Math.min(f,c))}}}),(y&&e.defaultValue!==e.value||b(l)==null&&e.value)&&(u(t(e)?o(e.value):e.value),v!==null&&s.add(v)),i(()=>{var r=l();if(e===document.activeElement){var a=v;if(s.has(a))return}t(e)&&r===o(e.value)||e.type==="date"&&!r&&!e.value||r!==e.value&&(e.value=r??"")})}function t(e){var l=e.type;return l==="number"||l==="range"}function o(e){return e===""?null:+e}export{h as b};
@@ -0,0 +1 @@
1
+ import{W as S,X as T,V as Y,U as x,Y as E,Z as O,_ as k}from"./BbWUOQ_m.js";function n(r,f){return r===f||(r==null?void 0:r[k])===f}function D(r={},f,i,A){var p=S.r,h=E;return T(()=>{var a,t;return Y(()=>{a=t,t=[],x(()=>{r!==i(...t)&&(f(r,...t),a&&n(i(...a),r)&&f(null,...a))})}),()=>{let s=h;for(;s!==p&&s.parent!==null&&s.parent.f&O;)s=s.parent;const w=()=>{t&&n(i(...t),r)&&f(null,...t)},c=s.teardown;s.teardown=()=>{w(),c==null||c()}}}),r}export{D as b};
@@ -0,0 +1 @@
1
+ import{as as a}from"./BbWUOQ_m.js";a();
@@ -0,0 +1,13 @@
1
+ var Zr=Object.defineProperty;var Jr=Object.getPrototypeOf;var Qr=Reflect.get;var Hn=n=>{throw TypeError(n)};var $r=(n,t,e)=>t in n?Zr(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e;var w=(n,t,e)=>$r(n,typeof t!="symbol"?t+"":t,e),ln=(n,t,e)=>t.has(n)||Hn("Cannot "+e);var s=(n,t,e)=>(ln(n,t,"read from private field"),e?e.call(n):t.get(n)),c=(n,t,e)=>t.has(n)?Hn("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(n):t.set(n,e),E=(n,t,e,r)=>(ln(n,t,"write to private field"),r?r.call(n,e):t.set(n,e),e),A=(n,t,e)=>(ln(n,t,"access private method"),e);var Xn=(n,t,e)=>Qr(Jr(n),e,t);import{b as ts,a as C,d as es,c as k,p as nn,f as we}from"./BK3WtZwv.js";import"./lk5LaiqA.js";import{bb as ns,b as hr,E as pr,h as Y,a as Yn,g as dn,bi as rs,aF as ss,bj as is,N as os,n as as,e as Zn,c as fn,Y as us,ah as cs,at as W,au as U,aq as Mt,U as Kt,av as Ee,f as O,aw as gn,ax as Se,i as v,aA as _,aB as ls,b4 as x,a4 as ds,a5 as T,bk as Jn,A as fs,aN as Bt,bl as hs,bm as Qn,bn as ps,am as vs,an as rn,T as gs,aj as z,bo as bs,bp as ms}from"./BbWUOQ_m.js";import{e as ys,i as ws}from"./BQqoDzLx.js";import{s as Es}from"./B-OsL1Ct.js";import{g as Ss,f as Ts,o as V,m as As,u as Cs}from"./DMWEh-Ek.js";import{B as vr,i as it}from"./Dt2CddFe.js";import{e as kt,f as hn}from"./B2Q1a1-H.js";import{i as Is}from"./CVzlFH44.js";import{l as $n,p as b,r as sn,s as pn}from"./xtNWTdbD.js";import{k as Os}from"./Cihqbfi5.js";function Ns(){return Symbol(ns)}function F(n,t,...e){var r=new vr(n);hr(()=>{const i=t()??null;r.ensure(i,i&&(a=>i(a,...e)))},pr)}function Ps(n,t,e,r,i,a){let o=Y;Y&&Yn();var u=null;Y&&dn.nodeType===rs&&(u=dn,Yn());var f=Y?dn:n,d=new vr(f,!1);hr(()=>{const g=t()||null;var p=is;if(g===null){d.ensure(null,null);return}return d.ensure(g,S=>{if(g){if(u=Y?u:ss(g,p),ts(u,u),r){Y&&Ss(g)&&u.append(document.createComment(""));var m=Y?os(u):u.appendChild(as());Y&&(m===null?Zn(!1):fn(m)),r(u,m)}us.nodes.end=u,S.before(u)}Y&&fn(S)}),()=>{}},pr),cs(()=>{}),o&&(Zn(!0),fn(f))}/**
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 ks={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};var xs=es("<svg><!><!></svg>");function Bo(n,t){const e=$n(t,["children","$$slots","$$events","$$legacy"]),r=$n(e,["name","color","size","strokeWidth","absoluteStrokeWidth","iconNode"]);W(t,!1);let i=b(t,"name",8,void 0),a=b(t,"color",8,"currentColor"),o=b(t,"size",8,24),u=b(t,"strokeWidth",8,2),f=b(t,"absoluteStrokeWidth",8,!1),d=b(t,"iconNode",24,()=>[]);const g=(...l)=>l.filter((h,I,D)=>!!h&&D.indexOf(h)===I).join(" ");Is();var p=xs();kt(p,(l,h)=>({...ks,...r,width:o(),height:o(),stroke:a(),"stroke-width":l,class:h}),[()=>(Mt(f()),Mt(u()),Mt(o()),Kt(()=>f()?Number(u())*24/Number(o()):u())),()=>(Mt(i()),Mt(e),Kt(()=>g("lucide-icon","lucide",i()?`lucide-${i()}`:"",e.class)))]);var S=Ee(p);ys(S,1,d,ws,(l,h)=>{var I=_(()=>ls(v(h),2));let D=()=>v(I)[0],j=()=>v(I)[1];var B=k(),yt=O(B);Ps(yt,D,!0,(un,Ae)=>{kt(un,()=>({...j()}))}),C(l,B)});var m=gn(S);Es(m,t,"default",{}),Se(p),C(n,p),U()}function _s(n){return typeof n=="function"}function Te(n){return n!==null&&typeof n=="object"}const Rs=["string","number","bigint","boolean"];function bn(n){return n==null||Rs.includes(typeof n)?!0:Array.isArray(n)?n.every(t=>bn(t)):typeof n=="object"?Object.getPrototypeOf(n)===Object.prototype:!1}const Fe=Symbol("box"),gr=Symbol("is-writable");function y(n,t){const e=_(n);return t?{[Fe]:!0,[gr]:!0,get current(){return v(e)},set current(r){t(r)}}:{[Fe]:!0,get current(){return n()}}}function br(n){return Te(n)&&Fe in n}function Vo(n){return br(n)?n:_s(n)?y(n):mr(n)}function mr(n){let t=x(ds(n));return{[Fe]:!0,[gr]:!0,get current(){return v(t)},set current(e){T(t,e,!0)}}}function yr(...n){return function(t){var e;for(const r of n)if(r){if(t.defaultPrevented)return;typeof r=="function"?r.call(this,t):(e=r.current)==null||e.call(this,t)}}}var tr=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Fs=/\n/g,Ds=/^\s*/,Ls=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Ms=/^:\s*/,Bs=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Vs=/^[;\s]*/,Ws=/^\s+|\s+$/g,Us=`
7
+ `,er="/",nr="*",ct="",js="comment",Ks="declaration";function zs(n,t){if(typeof n!="string")throw new TypeError("First argument must be a string");if(!n)return[];t=t||{};var e=1,r=1;function i(l){var h=l.match(Fs);h&&(e+=h.length);var I=l.lastIndexOf(Us);r=~I?l.length-I:r+l.length}function a(){var l={line:e,column:r};return function(h){return h.position=new o(l),d(),h}}function o(l){this.start=l,this.end={line:e,column:r},this.source=t.source}o.prototype.content=n;function u(l){var h=new Error(t.source+":"+e+":"+r+": "+l);if(h.reason=l,h.filename=t.source,h.line=e,h.column=r,h.source=n,!t.silent)throw h}function f(l){var h=l.exec(n);if(h){var I=h[0];return i(I),n=n.slice(I.length),h}}function d(){f(Ds)}function g(l){var h;for(l=l||[];h=p();)h!==!1&&l.push(h);return l}function p(){var l=a();if(!(er!=n.charAt(0)||nr!=n.charAt(1))){for(var h=2;ct!=n.charAt(h)&&(nr!=n.charAt(h)||er!=n.charAt(h+1));)++h;if(h+=2,ct===n.charAt(h-1))return u("End of comment missing");var I=n.slice(2,h-2);return r+=2,i(I),n=n.slice(h),r+=2,l({type:js,comment:I})}}function S(){var l=a(),h=f(Ls);if(h){if(p(),!f(Ms))return u("property missing ':'");var I=f(Bs),D=l({type:Ks,property:rr(h[0].replace(tr,ct)),value:I?rr(I[0].replace(tr,ct)):ct});return f(Vs),D}}function m(){var l=[];g(l);for(var h;h=S();)h!==!1&&(l.push(h),g(l));return l}return d(),m()}function rr(n){return n?n.replace(Ws,ct):ct}function Gs(n,t){let e=null;if(!n||typeof n!="string")return e;const r=zs(n),i=typeof t=="function";return r.forEach(a=>{if(a.type!=="declaration")return;const{property:o,value:u}=a;i?t(o,u,a):u&&(e=e||{},e[o]=u)}),e}const qs=/\d/,Hs=["-","_","/","."];function Xs(n=""){if(!qs.test(n))return n!==n.toLowerCase()}function Ys(n){const t=[];let e="",r,i;for(const a of n){const o=Hs.includes(a);if(o===!0){t.push(e),e="",r=void 0;continue}const u=Xs(a);if(i===!1){if(r===!1&&u===!0){t.push(e),e=a,r=u;continue}if(r===!0&&u===!1&&e.length>1){const f=e.at(-1);t.push(e.slice(0,Math.max(0,e.length-1))),e=f+a,r=u;continue}}e+=a,r=u,i=o}return t.push(e),t}function wr(n){return n?Ys(n).map(t=>Js(t)).join(""):""}function Zs(n){return Qs(wr(n||""))}function Js(n){return n?n[0].toUpperCase()+n.slice(1):""}function Qs(n){return n?n[0].toLowerCase()+n.slice(1):""}function Oe(n){if(!n)return{};const t={};function e(r,i){if(r.startsWith("-moz-")||r.startsWith("-webkit-")||r.startsWith("-ms-")||r.startsWith("-o-")){t[wr(r)]=i;return}if(r.startsWith("--")){t[r]=i;return}t[Zs(r)]=i}return Gs(n,e),t}function jt(...n){return(...t)=>{for(const e of n)typeof e=="function"&&e(...t)}}function $s(n,t){const e=RegExp(n,"g");return r=>{if(typeof r!="string")throw new TypeError(`expected an argument of type string, but got ${typeof r}`);return r.match(e)?r.replace(e,t):r}}const ti=$s(/[A-Z]/,n=>`-${n.toLowerCase()}`);function ei(n){if(!n||typeof n!="object"||Array.isArray(n))throw new TypeError(`expected an argument of type object, but got ${typeof n}`);return Object.keys(n).map(t=>`${ti(t)}: ${n[t]};`).join(`
8
+ `)}function ni(n={}){return ei(n).replace(`
9
+ `," ")}const ri=["onabort","onanimationcancel","onanimationend","onanimationiteration","onanimationstart","onauxclick","onbeforeinput","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncompositionend","oncompositionstart","oncompositionupdate","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onfocusin","onfocusout","onformdata","ongotpointercapture","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onlostpointercapture","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onpaste","onpause","onplay","onplaying","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onprogress","onratechange","onreset","onresize","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onselectionchange","onselectstart","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitioncancel","ontransitionend","ontransitionrun","ontransitionstart","onvolumechange","onwaiting","onwebkitanimationend","onwebkitanimationiteration","onwebkitanimationstart","onwebkittransitionend","onwheel"],si=new Set(ri);function ii(n){return si.has(n)}function ot(...n){const t={...n[0]};for(let e=1;e<n.length;e++){const r=n[e];if(r){for(const i of Object.keys(r)){const a=t[i],o=r[i],u=typeof a=="function",f=typeof o=="function";if(u&&ii(i)){const d=a,g=o;t[i]=yr(d,g)}else if(u&&f)t[i]=jt(a,o);else if(i==="class"){const d=bn(a),g=bn(o);d&&g?t[i]=hn(a,o):d?t[i]=hn(a):g&&(t[i]=hn(o))}else if(i==="style"){const d=typeof a=="object",g=typeof o=="object",p=typeof a=="string",S=typeof o=="string";if(d&&g)t[i]={...a,...o};else if(d&&S){const m=Oe(o);t[i]={...a,...m}}else if(p&&g){const m=Oe(a);t[i]={...m,...o}}else if(p&&S){const m=Oe(a),l=Oe(o);t[i]={...m,...l}}else d?t[i]=a:g?t[i]=o:p?t[i]=a:S&&(t[i]=o)}else t[i]=o!==void 0?o:a}for(const i of Object.getOwnPropertySymbols(r)){const a=t[i],o=r[i];t[i]=o!==void 0?o:a}}}return typeof t.style=="object"&&(t.style=ni(t.style).replaceAll(`
10
+ `," ")),t.hidden===!1&&(t.hidden=void 0,delete t.hidden),t.disabled===!1&&(t.disabled=void 0,delete t.disabled),t}const oi=typeof window<"u"?window:void 0;function ai(n){let t=n.activeElement;for(;t!=null&&t.shadowRoot;){const e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}var G,q,Z,Ue,K,Ut,ke;const Dn=class Dn extends Map{constructor(e){super();c(this,K);c(this,G,new Map);c(this,q,x(0));c(this,Z,x(0));c(this,Ue,Jn||-1);if(e){for(var[r,i]of e)super.set(r,i);s(this,Z).v=super.size}}has(e){var r=s(this,G),i=r.get(e);if(i===void 0)if(super.has(e))i=A(this,K,Ut).call(this,0),r.set(e,i);else return v(s(this,q)),!1;return v(i),!0}forEach(e,r){A(this,K,ke).call(this),super.forEach(e,r)}get(e){var r=s(this,G),i=r.get(e);if(i===void 0)if(super.has(e))i=A(this,K,Ut).call(this,0),r.set(e,i);else{v(s(this,q));return}return v(i),super.get(e)}set(e,r){var p;var i=s(this,G),a=i.get(e),o=super.get(e),u=super.set(e,r),f=s(this,q);if(a===void 0)a=A(this,K,Ut).call(this,0),i.set(e,a),T(s(this,Z),super.size),Bt(f);else if(o!==r){Bt(a);var d=f.reactions===null?null:new Set(f.reactions),g=d===null||!((p=a.reactions)!=null&&p.every(S=>d.has(S)));g&&Bt(f)}return u}delete(e){var r=s(this,G),i=r.get(e),a=super.delete(e);return i!==void 0&&(r.delete(e),T(i,-1)),a&&(T(s(this,Z),super.size),Bt(s(this,q))),a}clear(){if(super.size!==0){super.clear();var e=s(this,G);T(s(this,Z),0);for(var r of e.values())T(r,-1);Bt(s(this,q)),e.clear()}}keys(){return v(s(this,q)),super.keys()}values(){return A(this,K,ke).call(this),super.values()}entries(){return A(this,K,ke).call(this),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return v(s(this,Z)),super.size}};G=new WeakMap,q=new WeakMap,Z=new WeakMap,Ue=new WeakMap,K=new WeakSet,Ut=function(e){return Jn===s(this,Ue)?x(e):fs(e)},ke=function(){v(s(this,q));var e=s(this,G);if(s(this,Z).v!==e.size){for(var r of Xn(Dn.prototype,this,"keys").call(this))if(!e.has(r)){var i=A(this,K,Ut).call(this,0);e.set(r,i)}}for([,i]of s(this,G))v(i)};let mn=Dn;var Et,zt;class ui{constructor(t={}){c(this,Et);c(this,zt);const{window:e=oi,document:r=e==null?void 0:e.document}=t;e!==void 0&&(E(this,Et,r),E(this,zt,Ts(i=>{const a=V(e,"focusin",i),o=V(e,"focusout",i);return()=>{a(),o()}})))}get current(){var t;return(t=s(this,zt))==null||t.call(this),s(this,Et)?ai(s(this,Et)):null}}Et=new WeakMap,zt=new WeakMap;new ui;var Gt,J;class Er{constructor(t){c(this,Gt);c(this,J);E(this,Gt,t),E(this,J,Symbol(t))}get key(){return s(this,J)}exists(){return hs(s(this,J))}get(){const t=Qn(s(this,J));if(t===void 0)throw new Error(`Context "${s(this,Gt)}" not found`);return t}getOr(t){const e=Qn(s(this,J));return e===void 0?t:e}set(t){return ps(s(this,J),t)}}Gt=new WeakMap,J=new WeakMap;function ci(n,t){switch(n){case"post":rn(t);break;case"pre":vs(t);break}}function Sr(n,t,e,r={}){const{lazy:i=!1}=r;let a=!i,o=Array.isArray(n)?[]:void 0;ci(t,()=>{const u=Array.isArray(n)?n.map(d=>d()):n();if(!a){a=!0,o=u;return}const f=Kt(()=>e(u,o));return o=u,f})}function X(n,t,e){Sr(n,"post",t,e)}function li(n,t,e){Sr(n,"pre",t,e)}X.pre=li;function Rt(n){rn(()=>()=>{n()})}function di(n,t){return setTimeout(t,n)}function Fn(n){gs().then(n)}const fi=1,hi=9,pi=11;function yn(n){return Te(n)&&n.nodeType===fi&&typeof n.nodeName=="string"}function Tr(n){return Te(n)&&n.nodeType===hi}function vi(n){var t;return Te(n)&&((t=n.constructor)==null?void 0:t.name)==="VisualViewport"}function gi(n){return Te(n)&&n.nodeType!==void 0}function Ar(n){return gi(n)&&n.nodeType===pi&&"host"in n}function bi(n,t){var r;if(!n||!t||!yn(n)||!yn(t))return!1;const e=(r=t.getRootNode)==null?void 0:r.call(t);if(n===t||n.contains(t))return!0;if(e&&Ar(e)){let i=t;for(;i;){if(n===i)return!0;i=i.parentNode||i.host}}return!1}function mi(n){return Tr(n)?n:vi(n)?n.document:(n==null?void 0:n.ownerDocument)??document}function yi(n){var t;return Ar(n)?yi(n.host):Tr(n)?n.defaultView??window:yn(n)?((t=n.ownerDocument)==null?void 0:t.defaultView)??window:window}function wi(n){let t=n.activeElement;for(;t!=null&&t.shadowRoot;){const e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}var qt;class Cr{constructor(t){w(this,"element");c(this,qt,_(()=>this.element.current?this.element.current.getRootNode()??document:document));w(this,"getDocument",()=>mi(this.root));w(this,"getWindow",()=>this.getDocument().defaultView??window);w(this,"getActiveElement",()=>wi(this.root));w(this,"isActiveElement",t=>t===this.getActiveElement());w(this,"querySelector",t=>this.root?this.root.querySelector(t):null);w(this,"querySelectorAll",t=>this.root?this.root.querySelectorAll(t):[]);w(this,"setTimeout",(t,e)=>this.getWindow().setTimeout(t,e));w(this,"clearTimeout",t=>this.getWindow().clearTimeout(t));typeof t=="function"?this.element=y(t):this.element=t}get root(){return v(s(this,qt))}set root(t){T(s(this,qt),t)}getElementById(t){return this.root.getElementById(t)}}qt=new WeakMap;function on(n,t){return{[Ns()]:e=>br(n)?(n.current=e,Kt(()=>t==null?void 0:t(e)),()=>{"isConnected"in e&&e.isConnected||(n.current=null,t==null||t(null))}):(n(e),Kt(()=>t==null?void 0:t(e)),()=>{"isConnected"in e&&e.isConnected||(n(null),t==null||t(null))})}}function Wo(n){return n?"true":"false"}function De(n){return n?"":void 0}function Ei(n){return n?"open":"closed"}var St,Ht;class Si{constructor(t){c(this,St);c(this,Ht);w(this,"attrs");E(this,St,t.getVariant?t.getVariant():null),E(this,Ht,s(this,St)?`data-${s(this,St)}-`:`data-${t.component}-`),this.getAttr=this.getAttr.bind(this),this.selector=this.selector.bind(this),this.attrs=Object.fromEntries(t.parts.map(e=>[e,this.getAttr(e)]))}getAttr(t,e){return e?`data-${e}-${t}`:`${s(this,Ht)}${t}`}selector(t,e){return`[${this.getAttr(t,e)}]`}}St=new WeakMap,Ht=new WeakMap;function Ir(n){const t=new Si(n);return{...t.attrs,selector:t.selector,getAttr:t.getAttr}}const Ti="Enter",Ai="Escape",Ci=" ",Or=typeof document<"u",sr=Ii();function Ii(){var n,t;return Or&&((n=window==null?void 0:window.navigator)==null?void 0:n.userAgent)&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function ir(n){return n instanceof HTMLElement}function Uo(n){return n instanceof Element}function Oi(n){return n instanceof Element||n instanceof SVGElement}function jo(n){return n.pointerType==="touch"}function Ko(n){return n!==null}var Tt,lt,tt,wn,xe;class Ni{constructor(t){c(this,tt);c(this,Tt);c(this,lt,null);E(this,Tt,t),Rt(()=>A(this,tt,wn).call(this))}run(t){A(this,tt,wn).call(this);const e=s(this,Tt).ref.current;if(e){if(typeof e.getAnimations!="function"){A(this,tt,xe).call(this,t);return}E(this,lt,window.requestAnimationFrame(()=>{const r=e.getAnimations();if(r.length===0){A(this,tt,xe).call(this,t);return}Promise.allSettled(r.map(i=>i.finished)).then(()=>{A(this,tt,xe).call(this,t)})}))}}}Tt=new WeakMap,lt=new WeakMap,tt=new WeakSet,wn=function(){s(this,lt)&&(window.cancelAnimationFrame(s(this,lt)),E(this,lt,null))},xe=function(t){const e=()=>{t()};s(this,Tt).afterTick?Fn(e):e()};var H,Xt,Yt,dt;class or{constructor(t){c(this,H);c(this,Xt);c(this,Yt);c(this,dt,x(!1));E(this,H,t),T(s(this,dt),t.open.current,!0),E(this,Xt,t.enabled??!0),E(this,Yt,new Ni({ref:s(this,H).ref,afterTick:s(this,H).open})),X(()=>s(this,H).open.current,e=>{e&&T(s(this,dt),!0),s(this,Xt)&&s(this,Yt).run(()=>{var r,i;e===s(this,H).open.current&&(s(this,H).open.current||T(s(this,dt),!1),(i=(r=s(this,H)).onComplete)==null||i.call(r))})})}get shouldRender(){return v(s(this,dt))}}H=new WeakMap,Xt=new WeakMap,Yt=new WeakMap,dt=new WeakMap;function P(){}function an(n,t){return`bits-${n}`}const Pi=Ir({component:"dialog",parts:["content","trigger","overlay","title","description","close","cancel","action"]}),xt=new Er("Dialog.Root | AlertDialog.Root");var Zt,Jt,Qt,$t,te,ee,ne,re,se,ie,oe;const Ln=class Ln{constructor(t,e){w(this,"opts");c(this,Zt,x(null));c(this,Jt,x(null));c(this,Qt,x(null));c(this,$t,x(null));c(this,te,x(void 0));c(this,ee,x(void 0));c(this,ne,x(void 0));c(this,re,x(void 0));c(this,se,x(null));c(this,ie,x(0));w(this,"depth");w(this,"parent");w(this,"contentPresence");w(this,"overlayPresence");w(this,"getBitsAttr",t=>Pi.getAttr(t,this.opts.variant.current));c(this,oe,_(()=>({"data-state":Ei(this.opts.open.current)})));this.opts=t,this.parent=e,this.depth=e?e.depth+1:0,this.handleOpen=this.handleOpen.bind(this),this.handleClose=this.handleClose.bind(this),this.contentPresence=new or({ref:y(()=>this.contentNode),open:this.opts.open,enabled:!0,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new or({ref:y(()=>this.overlayNode),open:this.opts.open,enabled:!0}),X(()=>this.opts.open.current,r=>{this.parent&&(r?this.parent.incrementNested():this.parent.decrementNested())},{lazy:!0}),Rt(()=>{var r;this.opts.open.current&&((r=this.parent)==null||r.decrementNested())})}static create(t){const e=xt.getOr(null);return xt.set(new Ln(t,e))}get triggerNode(){return v(s(this,Zt))}set triggerNode(t){T(s(this,Zt),t,!0)}get contentNode(){return v(s(this,Jt))}set contentNode(t){T(s(this,Jt),t,!0)}get overlayNode(){return v(s(this,Qt))}set overlayNode(t){T(s(this,Qt),t,!0)}get descriptionNode(){return v(s(this,$t))}set descriptionNode(t){T(s(this,$t),t,!0)}get contentId(){return v(s(this,te))}set contentId(t){T(s(this,te),t,!0)}get titleId(){return v(s(this,ee))}set titleId(t){T(s(this,ee),t,!0)}get triggerId(){return v(s(this,ne))}set triggerId(t){T(s(this,ne),t,!0)}get descriptionId(){return v(s(this,re))}set descriptionId(t){T(s(this,re),t,!0)}get cancelNode(){return v(s(this,se))}set cancelNode(t){T(s(this,se),t,!0)}get nestedOpenCount(){return v(s(this,ie))}set nestedOpenCount(t){T(s(this,ie),t,!0)}handleOpen(){this.opts.open.current||(this.opts.open.current=!0)}handleClose(){this.opts.open.current&&(this.opts.open.current=!1)}incrementNested(){var t;this.nestedOpenCount++,(t=this.parent)==null||t.incrementNested()}decrementNested(){var t;this.nestedOpenCount!==0&&(this.nestedOpenCount--,(t=this.parent)==null||t.decrementNested())}get sharedProps(){return v(s(this,oe))}set sharedProps(t){T(s(this,oe),t)}};Zt=new WeakMap,Jt=new WeakMap,Qt=new WeakMap,$t=new WeakMap,te=new WeakMap,ee=new WeakMap,ne=new WeakMap,re=new WeakMap,se=new WeakMap,ie=new WeakMap,oe=new WeakMap;let En=Ln;var ae;const Mn=class Mn{constructor(t,e){w(this,"opts");w(this,"root");w(this,"attachment");c(this,ae,_(()=>({id:this.opts.id.current,[this.root.getBitsAttr(this.opts.variant.current)]:"",onclick:this.onclick,onkeydown:this.onkeydown,disabled:this.opts.disabled.current?!0:void 0,tabindex:0,...this.root.sharedProps,...this.attachment})));this.opts=t,this.root=e,this.attachment=on(this.opts.ref),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}static create(t){return new Mn(t,xt.get())}onclick(t){this.opts.disabled.current||t.button>0||this.root.handleClose()}onkeydown(t){this.opts.disabled.current||(t.key===Ci||t.key===Ti)&&(t.preventDefault(),this.root.handleClose())}get props(){return v(s(this,ae))}set props(t){T(s(this,ae),t)}};ae=new WeakMap;let Sn=Mn;var ue;const Bn=class Bn{constructor(t,e){w(this,"opts");w(this,"root");w(this,"attachment");c(this,ue,_(()=>({id:this.opts.id.current,role:"heading","aria-level":this.opts.level.current,[this.root.getBitsAttr("title")]:"",...this.root.sharedProps,...this.attachment})));this.opts=t,this.root=e,this.root.titleId=this.opts.id.current,this.attachment=on(this.opts.ref),X.pre(()=>this.opts.id.current,r=>{this.root.titleId=r})}static create(t){return new Bn(t,xt.get())}get props(){return v(s(this,ue))}set props(t){T(s(this,ue),t)}};ue=new WeakMap;let Tn=Bn;var ce,le;const Vn=class Vn{constructor(t,e){w(this,"opts");w(this,"root");w(this,"attachment");c(this,ce,_(()=>({open:this.root.opts.open.current})));c(this,le,_(()=>({id:this.opts.id.current,role:this.root.opts.variant.current==="alert-dialog"?"alertdialog":"dialog","aria-modal":"true","aria-describedby":this.root.descriptionId,"aria-labelledby":this.root.titleId,[this.root.getBitsAttr("content")]:"",style:{pointerEvents:"auto",outline:this.root.opts.variant.current==="alert-dialog"?"none":void 0,"--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount,contain:"layout style"},tabindex:this.root.opts.variant.current==="alert-dialog"?-1:void 0,"data-nested-open":De(this.root.nestedOpenCount>0),"data-nested":De(this.root.parent!==null),...this.root.sharedProps,...this.attachment})));this.opts=t,this.root=e,this.attachment=on(this.opts.ref,r=>{this.root.contentNode=r,this.root.contentId=r==null?void 0:r.id})}static create(t){return new Vn(t,xt.get())}get snippetProps(){return v(s(this,ce))}set snippetProps(t){T(s(this,ce),t)}get props(){return v(s(this,le))}set props(t){T(s(this,le),t)}get shouldRender(){return this.root.contentPresence.shouldRender}};ce=new WeakMap,le=new WeakMap;let An=Vn;var de,fe;const Wn=class Wn{constructor(t,e){w(this,"opts");w(this,"root");w(this,"attachment");c(this,de,_(()=>({open:this.root.opts.open.current})));c(this,fe,_(()=>({id:this.opts.id.current,[this.root.getBitsAttr("overlay")]:"",style:{pointerEvents:"auto","--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount},"data-nested-open":De(this.root.nestedOpenCount>0),"data-nested":De(this.root.parent!==null),...this.root.sharedProps,...this.attachment})));this.opts=t,this.root=e,this.attachment=on(this.opts.ref,r=>this.root.overlayNode=r)}static create(t){return new Wn(t,xt.get())}get snippetProps(){return v(s(this,de))}set snippetProps(t){T(s(this,de),t)}get props(){return v(s(this,fe))}set props(t){T(s(this,fe),t)}get shouldRender(){return this.root.overlayPresence.shouldRender}};de=new WeakMap,fe=new WeakMap;let Cn=Wn;var ki=we("<div><!></div>");function zo(n,t){const e=nn();W(t,!0);let r=b(t,"id",19,()=>an(e)),i=b(t,"ref",15,null),a=b(t,"level",3,2),o=sn(t,["$$slots","$$events","$$legacy","id","ref","child","children","level"]);const u=Tn.create({id:y(()=>r()),level:y(()=>a()),ref:y(()=>i(),m=>i(m))}),f=_(()=>ot(o,u.props));var d=k(),g=O(d);{var p=m=>{var l=k(),h=O(l);F(h,()=>t.child,()=>({props:v(f)})),C(m,l)},S=m=>{var l=ki();kt(l,()=>({...v(f)}));var h=Ee(l);F(h,()=>t.children??z),Se(l),C(m,l)};it(g,m=>{t.child?m(p):m(S,-1)})}C(n,d),U()}function xi(n,t){var e=k(),r=O(e);Os(r,()=>t.children,i=>{var a=k(),o=O(a);F(o,()=>t.children??z),C(i,a)}),C(n,e)}const _i=new Er("BitsConfig");function Ri(){const n=new Fi(null,{});return _i.getOr(n).opts}class Fi{constructor(t,e){w(this,"opts");const r=Di(t,e);this.opts={defaultPortalTo:r(i=>i.defaultPortalTo),defaultLocale:r(i=>i.defaultLocale)}}}function Di(n,t){return e=>y(()=>{var a,o;const i=(a=e(t))==null?void 0:a.current;if(i!==void 0)return i;if(n!==null)return(o=e(n.opts))==null?void 0:o.current})}function Li(n,t){return e=>{const r=Ri();return y(()=>{const i=e();if(i!==void 0)return i;const a=n(r).current;return a!==void 0?a:t})}}const Mi=Li(n=>n.defaultPortalTo,"body");function Go(n,t){W(t,!0);const e=Mi(()=>t.to),r=bs();let i=_(a);function a(){if(!Or||t.disabled)return null;let p=null;return typeof e.current=="string"?p=document.querySelector(e.current):p=e.current,p}let o;function u(){o&&(Cs(o),o=null)}X([()=>v(i),()=>t.disabled],([p,S])=>{if(!p||S){u();return}return o=As(xi,{target:p,props:{children:t.children},context:r}),()=>{u()}});var f=k(),d=O(f);{var g=p=>{var S=k(),m=O(S);F(m,()=>t.children??z),C(p,S)};it(d,p=>{t.disabled&&p(g)})}C(n,f),U()}function ar(n,t=500){let e=null;const r=(...i)=>{e!==null&&clearTimeout(e),e=setTimeout(()=>{n(...i)},t)};return r.destroy=()=>{e!==null&&(clearTimeout(e),e=null)},r}function Nr(n,t){return n===t||n.contains(t)}function Pr(n){return(n==null?void 0:n.ownerDocument)??document}function Bi(n,t){const{clientX:e,clientY:r}=n,i=t.getBoundingClientRect();return e<i.left||e>i.right||r<i.top||r>i.bottom}/*!
11
+ * tabbable 6.4.0
12
+ * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
13
+ */var kr=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],Le=kr.join(","),xr=typeof Element>"u",mt=xr?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Me=!xr&&Element.prototype.getRootNode?function(n){var t;return n==null||(t=n.getRootNode)===null||t===void 0?void 0:t.call(n)}:function(n){return n==null?void 0:n.ownerDocument},Be=function(t,e){var r;e===void 0&&(e=!0);var i=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"inert"),a=i===""||i==="true",o=a||e&&t&&(typeof t.closest=="function"?t.closest("[inert]"):Be(t.parentNode));return o},Vi=function(t){var e,r=t==null||(e=t.getAttribute)===null||e===void 0?void 0:e.call(t,"contenteditable");return r===""||r==="true"},_r=function(t,e,r){if(Be(t))return[];var i=Array.prototype.slice.apply(t.querySelectorAll(Le));return e&&mt.call(t,Le)&&i.unshift(t),i=i.filter(r),i},Ve=function(t,e,r){for(var i=[],a=Array.from(t);a.length;){var o=a.shift();if(!Be(o,!1))if(o.tagName==="SLOT"){var u=o.assignedElements(),f=u.length?u:o.children,d=Ve(f,!0,r);r.flatten?i.push.apply(i,d):i.push({scopeParent:o,candidates:d})}else{var g=mt.call(o,Le);g&&r.filter(o)&&(e||!t.includes(o))&&i.push(o);var p=o.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(o),S=!Be(p,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(o));if(p&&S){var m=Ve(p===!0?o.children:p.children,!0,r);r.flatten?i.push.apply(i,m):i.push({scopeParent:o,candidates:m})}else a.unshift.apply(a,o.children)}}return i},Rr=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},Fr=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||Vi(t))&&!Rr(t)?0:t.tabIndex},Wi=function(t,e){var r=Fr(t);return r<0&&e&&!Rr(t)?0:r},Ui=function(t,e){return t.tabIndex===e.tabIndex?t.documentOrder-e.documentOrder:t.tabIndex-e.tabIndex},Dr=function(t){return t.tagName==="INPUT"},ji=function(t){return Dr(t)&&t.type==="hidden"},Ki=function(t){var e=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return e},zi=function(t,e){for(var r=0;r<t.length;r++)if(t[r].checked&&t[r].form===e)return t[r]},Gi=function(t){if(!t.name)return!0;var e=t.form||Me(t),r=function(u){return e.querySelectorAll('input[type="radio"][name="'+u+'"]')},i;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")i=r(window.CSS.escape(t.name));else try{i=r(t.name)}catch(o){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",o.message),!1}var a=zi(i,t.form);return!a||a===t},qi=function(t){return Dr(t)&&t.type==="radio"},Hi=function(t){return qi(t)&&!Gi(t)},Xi=function(t){var e,r=t&&Me(t),i=(e=r)===null||e===void 0?void 0:e.host,a=!1;if(r&&r!==t){var o,u,f;for(a=!!((o=i)!==null&&o!==void 0&&(u=o.ownerDocument)!==null&&u!==void 0&&u.contains(i)||t!=null&&(f=t.ownerDocument)!==null&&f!==void 0&&f.contains(t));!a&&i;){var d,g,p;r=Me(i),i=(d=r)===null||d===void 0?void 0:d.host,a=!!((g=i)!==null&&g!==void 0&&(p=g.ownerDocument)!==null&&p!==void 0&&p.contains(i))}}return a},ur=function(t){var e=t.getBoundingClientRect(),r=e.width,i=e.height;return r===0&&i===0},Yi=function(t,e){var r=e.displayCheck,i=e.getShadowRoot;if(r==="full-native"&&"checkVisibility"in t){var a=t.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!a}if(getComputedStyle(t).visibility==="hidden")return!0;var o=mt.call(t,"details>summary:first-of-type"),u=o?t.parentElement:t;if(mt.call(u,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="full-native"||r==="legacy-full"){if(typeof i=="function"){for(var f=t;t;){var d=t.parentElement,g=Me(t);if(d&&!d.shadowRoot&&i(d)===!0)return ur(t);t.assignedSlot?t=t.assignedSlot:!d&&g!==t.ownerDocument?t=g.host:t=d}t=f}if(Xi(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return ur(t);return!1},Zi=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var e=t.parentElement;e;){if(e.tagName==="FIELDSET"&&e.disabled){for(var r=0;r<e.children.length;r++){var i=e.children.item(r);if(i.tagName==="LEGEND")return mt.call(e,"fieldset[disabled] *")?!0:!i.contains(t)}return!0}e=e.parentElement}return!1},We=function(t,e){return!(e.disabled||ji(e)||Yi(e,t)||Ki(e)||Zi(e))},In=function(t,e){return!(Hi(e)||Fr(e)<0||!We(t,e))},Ji=function(t){var e=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(e)||e>=0)},Lr=function(t){var e=[],r=[];return t.forEach(function(i,a){var o=!!i.scopeParent,u=o?i.scopeParent:i,f=Wi(u,o),d=o?Lr(i.candidates):u;f===0?o?e.push.apply(e,d):e.push(u):r.push({documentOrder:a,tabIndex:f,item:i,isScope:o,content:d})}),r.sort(Ui).reduce(function(i,a){return a.isScope?i.push.apply(i,a.content):i.push(a.content),i},[]).concat(e)},Qi=function(t,e){e=e||{};var r;return e.getShadowRoot?r=Ve([t],e.includeContainer,{filter:In.bind(null,e),flatten:!1,getShadowRoot:e.getShadowRoot,shadowRootFilter:Ji}):r=_r(t,e.includeContainer,In.bind(null,e)),Lr(r)},$i=function(t,e){e=e||{};var r;return e.getShadowRoot?r=Ve([t],e.includeContainer,{filter:We.bind(null,e),flatten:!0,getShadowRoot:e.getShadowRoot}):r=_r(t,e.includeContainer,We.bind(null,e)),r},qo=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return mt.call(t,Le)===!1?!1:In(e,t)},to=kr.concat("iframe:not([inert]):not([inert] *)").join(","),eo=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return mt.call(t,to)===!1?!1:We(e,t)};const no="data-context-menu-trigger",ro="data-context-menu-content";Ir({component:"menu",parts:["trigger","content","sub-trigger","item","group","group-heading","checkbox-group","checkbox-item","radio-group","radio-item","separator","sub-content","arrow"]});globalThis.bitsDismissableLayers??(globalThis.bitsDismissableLayers=new Map);var At,ft,et,Ct,It,nt,he,Q,je,_t,Mr,Ke,Ot,ze,Ge,qe,He,pe,Br,Xe,Ye;const Un=class Un{constructor(t){c(this,_t);w(this,"opts");c(this,At);c(this,ft);c(this,et,{pointerdown:!1});c(this,Ct,!1);c(this,It,!1);c(this,nt);c(this,he);c(this,Q,P);c(this,je,t=>{t.defaultPrevented||this.opts.ref.current&&Fn(()=>{var e,r;!this.opts.ref.current||s(this,He).call(this,t.target)||t.target&&!s(this,It)&&((r=(e=s(this,he)).current)==null||r.call(e,t))})});c(this,Ke,t=>{let e=t;e.defaultPrevented&&(e=cr(t)),s(this,At).current(t)});c(this,Ot,ar(t=>{if(!this.opts.ref.current){s(this,Q).call(this);return}const e=this.opts.isValidEvent.current(t,this.opts.ref.current)||oo(t,this.opts.ref.current);if(!s(this,Ct)||A(this,_t,Br).call(this)||!e){s(this,Q).call(this);return}let r=t;if(r.defaultPrevented&&(r=cr(r)),s(this,ft).current!=="close"&&s(this,ft).current!=="defer-otherwise-close"){s(this,Q).call(this);return}t.pointerType==="touch"?(s(this,Q).call(this),E(this,Q,V(s(this,nt),"click",s(this,Ke),{once:!0}))):s(this,At).current(r)},10));c(this,ze,t=>{s(this,et)[t.type]=!0});c(this,Ge,t=>{s(this,et)[t.type]=!1});c(this,qe,()=>{this.opts.ref.current&&E(this,Ct,io(this.opts.ref.current))});c(this,He,t=>this.opts.ref.current?Nr(this.opts.ref.current,t):!1);c(this,pe,ar(()=>{for(const t in s(this,et))s(this,et)[t]=!1;E(this,Ct,!1)},20));c(this,Xe,()=>{E(this,It,!0)});c(this,Ye,()=>{E(this,It,!1)});w(this,"props",{onfocuscapture:s(this,Xe),onblurcapture:s(this,Ye)});this.opts=t,E(this,ft,t.interactOutsideBehavior),E(this,At,t.onInteractOutside),E(this,he,t.onFocusOutside),rn(()=>{E(this,nt,Pr(this.opts.ref.current))});let e=P;const r=()=>{s(this,pe).call(this),globalThis.bitsDismissableLayers.delete(this),s(this,Ot).destroy(),e()};X([()=>this.opts.enabled.current,()=>this.opts.ref.current],()=>{if(!(!this.opts.enabled.current||!this.opts.ref.current))return di(1,()=>{this.opts.ref.current&&(globalThis.bitsDismissableLayers.set(this,s(this,ft)),e(),e=A(this,_t,Mr).call(this))}),r}),Rt(()=>{s(this,pe).destroy(),globalThis.bitsDismissableLayers.delete(this),s(this,Ot).destroy(),s(this,Q).call(this),e()})}static create(t){return new Un(t)}};At=new WeakMap,ft=new WeakMap,et=new WeakMap,Ct=new WeakMap,It=new WeakMap,nt=new WeakMap,he=new WeakMap,Q=new WeakMap,je=new WeakMap,_t=new WeakSet,Mr=function(){return jt(V(s(this,nt),"pointerdown",jt(s(this,ze),s(this,qe)),{capture:!0}),V(s(this,nt),"pointerdown",jt(s(this,Ge),s(this,Ot))),V(s(this,nt),"focusin",s(this,je)))},Ke=new WeakMap,Ot=new WeakMap,ze=new WeakMap,Ge=new WeakMap,qe=new WeakMap,He=new WeakMap,pe=new WeakMap,Br=function(){return Object.values(s(this,et)).some(Boolean)},Xe=new WeakMap,Ye=new WeakMap;let On=Un;function so(n=[...globalThis.bitsDismissableLayers]){return n.findLast(([t,{current:e}])=>e==="close"||e==="ignore")}function io(n){const t=[...globalThis.bitsDismissableLayers],e=so(t);if(e)return e[0].opts.ref.current===n;const[r]=t[0];return r.opts.ref.current===n}function oo(n,t){const e=n.target;if(!Oi(e))return!1;const r=!!e.closest(`[${no}]`);if("button"in n&&n.button>0&&!r)return!1;if("button"in n&&n.button===0&&r)return!0;const i=!!t.closest(`[${ro}]`);return r&&i?!1:Pr(e).documentElement.contains(e)&&!Nr(t,e)&&Bi(n,t)}function cr(n){const t=n.currentTarget,e=n.target;let r;n instanceof PointerEvent?r=new PointerEvent(n.type,n):r=new PointerEvent("pointerdown",n);let i=!1;return new Proxy(r,{get:(o,u)=>u==="currentTarget"?t:u==="target"?e:u==="preventDefault"?()=>{i=!0,typeof o.preventDefault=="function"&&o.preventDefault()}:u==="defaultPrevented"?i:u in o?o[u]:n[u]})}function ao(n,t){W(t,!0);let e=b(t,"interactOutsideBehavior",3,"close"),r=b(t,"onInteractOutside",3,P),i=b(t,"onFocusOutside",3,P),a=b(t,"isValidEvent",3,()=>!1);const o=On.create({id:y(()=>t.id),interactOutsideBehavior:y(()=>e()),onInteractOutside:y(()=>r()),enabled:y(()=>t.enabled),onFocusOutside:y(()=>i()),isValidEvent:y(()=>a()),ref:t.ref});var u=k(),f=O(u);F(f,()=>t.children??z,()=>({props:o.props})),C(n,u),U()}globalThis.bitsEscapeLayers??(globalThis.bitsEscapeLayers=new Map);var Ze,Je;const jn=class jn{constructor(t){w(this,"opts");w(this,"domContext");c(this,Ze,()=>V(this.domContext.getDocument(),"keydown",s(this,Je),{passive:!1}));c(this,Je,t=>{if(t.key!==Ai||!uo(this))return;const e=new KeyboardEvent(t.type,t);t.preventDefault();const r=this.opts.escapeKeydownBehavior.current;r!=="close"&&r!=="defer-otherwise-close"||this.opts.onEscapeKeydown.current(e)});this.opts=t,this.domContext=new Cr(this.opts.ref);let e=P;X(()=>t.enabled.current,r=>(r&&(globalThis.bitsEscapeLayers.set(this,t.escapeKeydownBehavior),e=s(this,Ze).call(this)),()=>{e(),globalThis.bitsEscapeLayers.delete(this)}))}static create(t){return new jn(t)}};Ze=new WeakMap,Je=new WeakMap;let Nn=jn;function uo(n){const t=[...globalThis.bitsEscapeLayers],e=t.findLast(([i,{current:a}])=>a==="close"||a==="ignore");if(e)return e[0]===n;const[r]=t[0];return r===n}function co(n,t){W(t,!0);let e=b(t,"escapeKeydownBehavior",3,"close"),r=b(t,"onEscapeKeydown",3,P);Nn.create({escapeKeydownBehavior:y(()=>e()),onEscapeKeydown:y(()=>r()),enabled:y(()=>t.enabled),ref:t.ref});var i=k(),a=O(i);F(a,()=>t.children??z),C(n,i),U()}var $,ve,ht;const Qe=class Qe{constructor(){c(this,$,mr([]));c(this,ve,new WeakMap);c(this,ht,new WeakMap)}static getInstance(){return this.instance||(this.instance=new Qe),this.instance}register(t){const e=this.getActive();e&&e!==t&&e.pause();const r=document.activeElement;r&&r!==document.body&&s(this,ht).set(t,r),s(this,$).current=s(this,$).current.filter(i=>i!==t),s(this,$).current.unshift(t)}unregister(t){s(this,$).current=s(this,$).current.filter(r=>r!==t);const e=this.getActive();e&&e.resume()}getActive(){return s(this,$).current[0]}setFocusMemory(t,e){s(this,ve).set(t,e)}getFocusMemory(t){return s(this,ve).get(t)}isActiveScope(t){return this.getActive()===t}setPreFocusMemory(t,e){s(this,ht).set(t,e)}getPreFocusMemory(t){return s(this,ht).get(t)}clearPreFocusMemory(t){s(this,ht).delete(t)}};$=new WeakMap,ve=new WeakMap,ht=new WeakMap,w(Qe,"instance");let Pn=Qe;var rt,R,L,pt,st,N,Vr,Wr,Ur,jr,xn,_e,_n;const Kn=class Kn{constructor(t){c(this,N);c(this,rt,!1);c(this,R,null);c(this,L,Pn.getInstance());c(this,pt,[]);c(this,st);E(this,st,t)}get paused(){return s(this,rt)}pause(){E(this,rt,!0)}resume(){E(this,rt,!1)}mount(t){s(this,R)&&this.unmount(),E(this,R,t),s(this,L).register(this),A(this,N,jr).call(this),A(this,N,Wr).call(this)}unmount(){s(this,R)&&(A(this,N,Vr).call(this),A(this,N,Ur).call(this),s(this,L).unregister(this),s(this,L).clearPreFocusMemory(this),E(this,R,null))}static use(t){let e=null;return X([()=>t.ref.current,()=>t.enabled.current],([r,i])=>{r&&i?(e||(e=new Kn(t)),e.mount(r)):e&&(e.unmount(),e=null)}),Rt(()=>{e==null||e.unmount()}),{get props(){return{tabindex:-1}}}}};rt=new WeakMap,R=new WeakMap,L=new WeakMap,pt=new WeakMap,st=new WeakMap,N=new WeakSet,Vr=function(){for(const t of s(this,pt))t();E(this,pt,[])},Wr=function(){if(!s(this,R))return;const t=new CustomEvent("focusScope.onOpenAutoFocus",{bubbles:!1,cancelable:!0});s(this,st).onOpenAutoFocus.current(t),t.defaultPrevented||requestAnimationFrame(()=>{if(!s(this,R))return;const e=A(this,N,_e).call(this);e?(e.focus(),s(this,L).setFocusMemory(this,e)):s(this,R).focus()})},Ur=function(){var e,r;const t=new CustomEvent("focusScope.onCloseAutoFocus",{bubbles:!1,cancelable:!0});if((r=(e=s(this,st).onCloseAutoFocus).current)==null||r.call(e,t),!t.defaultPrevented){const i=s(this,L).getPreFocusMemory(this);if(i&&document.contains(i))try{i.focus()}catch{document.body.focus()}}},jr=function(){if(!s(this,R)||!s(this,st).trap.current)return;const t=s(this,R),e=t.ownerDocument,r=o=>{if(s(this,rt)||!s(this,L).isActiveScope(this))return;const u=o.target;if(!u)return;if(t.contains(u))s(this,L).setFocusMemory(this,u);else{const d=s(this,L).getFocusMemory(this);if(d&&t.contains(d)&&eo(d))o.preventDefault(),d.focus();else{const g=A(this,N,_e).call(this),p=A(this,N,_n).call(this)[0];(g||p||t).focus()}}},i=o=>{if(!s(this,st).loop||s(this,rt)||o.key!=="Tab"||!s(this,L).isActiveScope(this))return;const u=A(this,N,xn).call(this);if(u.length===0)return;const f=u[0],d=u[u.length-1];!o.shiftKey&&e.activeElement===d?(o.preventDefault(),f.focus()):o.shiftKey&&e.activeElement===f&&(o.preventDefault(),d.focus())};s(this,pt).push(V(e,"focusin",r,{capture:!0}),V(t,"keydown",i));const a=new MutationObserver(()=>{const o=s(this,L).getFocusMemory(this);if(o&&!t.contains(o)){const u=A(this,N,_e).call(this),f=A(this,N,_n).call(this)[0],d=u||f;d?(d.focus(),s(this,L).setFocusMemory(this,d)):t.focus()}});a.observe(t,{childList:!0,subtree:!0}),s(this,pt).push(()=>a.disconnect())},xn=function(){return s(this,R)?Qi(s(this,R),{includeContainer:!1,getShadowRoot:!0}):[]},_e=function(){return A(this,N,xn).call(this)[0]||null},_n=function(){return s(this,R)?$i(s(this,R),{includeContainer:!1,getShadowRoot:!0}):[]};let kn=Kn;function lo(n,t){W(t,!0);let e=b(t,"enabled",3,!1),r=b(t,"trapFocus",3,!1),i=b(t,"loop",3,!1),a=b(t,"onCloseAutoFocus",3,P),o=b(t,"onOpenAutoFocus",3,P);const u=kn.use({enabled:y(()=>e()),trap:y(()=>r()),loop:i(),onCloseAutoFocus:y(()=>a()),onOpenAutoFocus:y(()=>o()),ref:t.ref});var f=k(),d=O(f);F(d,()=>t.focusScope??z,()=>({props:u.props})),C(n,f),U()}globalThis.bitsTextSelectionLayers??(globalThis.bitsTextSelectionLayers=new Map);var Nt,$e,Kr,tn,ge;const zn=class zn{constructor(t){c(this,$e);w(this,"opts");w(this,"domContext");c(this,Nt,P);c(this,tn,t=>{const e=this.opts.ref.current,r=t.target;!ir(e)||!ir(r)||!this.opts.enabled.current||!ho(this)||!bi(e,r)||(this.opts.onPointerDown.current(t),!t.defaultPrevented&&E(this,Nt,fo(e,this.domContext.getDocument().body)))});c(this,ge,()=>{s(this,Nt).call(this),E(this,Nt,P)});this.opts=t,this.domContext=new Cr(t.ref);let e=P;X(()=>this.opts.enabled.current,r=>(r&&(globalThis.bitsTextSelectionLayers.set(this,this.opts.enabled),e(),e=A(this,$e,Kr).call(this)),()=>{e(),s(this,ge).call(this),globalThis.bitsTextSelectionLayers.delete(this)}))}static create(t){return new zn(t)}};Nt=new WeakMap,$e=new WeakSet,Kr=function(){return jt(V(this.domContext.getDocument(),"pointerdown",s(this,tn)),V(this.domContext.getDocument(),"pointerup",yr(s(this,ge),this.opts.onPointerUp.current)))},tn=new WeakMap,ge=new WeakMap;let Rn=zn;const lr=n=>n.style.userSelect||n.style.webkitUserSelect;function fo(n,t){const e=lr(t),r=lr(n);return Ne(t,"none"),Ne(n,"text"),()=>{Ne(t,e),Ne(n,r)}}function Ne(n,t){n.style.userSelect=t,n.style.webkitUserSelect=t}function ho(n){const t=[...globalThis.bitsTextSelectionLayers];if(!t.length)return!1;const e=t.at(-1);return e?e[0]===n:!1}function po(n,t){W(t,!0);let e=b(t,"preventOverflowTextSelection",3,!0),r=b(t,"onPointerDown",3,P),i=b(t,"onPointerUp",3,P);Rn.create({id:y(()=>t.id),onPointerDown:y(()=>r()),onPointerUp:y(()=>i()),enabled:y(()=>t.enabled&&e()),ref:t.ref});var a=k(),o=O(a);F(o,()=>t.children??z),C(n,a),U()}globalThis.bitsIdCounter??(globalThis.bitsIdCounter={current:0});function vo(n="bits"){return globalThis.bitsIdCounter.current++,`${n}-${globalThis.bitsIdCounter.current}`}var be,Pt,vt,gt,en,zr;class go{constructor(t){c(this,en);c(this,be);c(this,Pt,0);c(this,vt,x());c(this,gt);E(this,be,t)}get(...t){return E(this,Pt,s(this,Pt)+1),v(s(this,vt))===void 0&&E(this,gt,ms(()=>{T(s(this,vt),s(this,be).call(this,...t),!0)})),rn(()=>()=>{A(this,en,zr).call(this)}),v(s(this,vt))}}be=new WeakMap,Pt=new WeakMap,vt=new WeakMap,gt=new WeakMap,en=new WeakSet,zr=function(){E(this,Pt,s(this,Pt)-1),s(this,gt)&&s(this,Pt)<=0&&(s(this,gt).call(this),T(s(this,vt),void 0),E(this,gt,void 0))};const Re=new mn;let Pe=x(null),ut=null,Vt=null,Wt=!1;const dr=y(()=>{for(const n of Re.values())if(n)return!0;return!1});let vn=null;const bo=new go(()=>{function n(){document.body.setAttribute("style",v(Pe)??""),document.body.style.removeProperty("--scrollbar-width"),sr&&(ut==null||ut()),T(Pe,null)}function t(){Vt!==null&&(window.clearTimeout(Vt),Vt=null)}function e(i,a){t(),Wt=!0,vn=Date.now();const o=vn,u=()=>{Vt=null,vn===o&&(Gr(Re)?Wt=!1:(Wt=!1,a()))},f=i===null?24:i;Vt=window.setTimeout(u,f)}function r(){v(Pe)===null&&Re.size===0&&!Wt&&T(Pe,document.body.getAttribute("style"),!0)}return X(()=>dr.current,()=>{var g,p;if(!dr.current)return;r(),Wt=!1;const i=getComputedStyle(document.documentElement),a=getComputedStyle(document.body),o=((g=i.scrollbarGutter)==null?void 0:g.includes("stable"))||((p=a.scrollbarGutter)==null?void 0:p.includes("stable")),u=window.innerWidth-document.documentElement.clientWidth,d={padding:Number.parseInt(a.paddingRight??"0",10)+u,margin:Number.parseInt(a.marginRight??"0",10)};u>0&&!o&&(document.body.style.paddingRight=`${d.padding}px`,document.body.style.marginRight=`${d.margin}px`,document.body.style.setProperty("--scrollbar-width",`${u}px`)),document.body.style.overflow="hidden",sr&&(ut=V(document,"touchmove",S=>{S.target===document.documentElement&&(S.touches.length>1||S.preventDefault())},{passive:!1})),Fn(()=>{document.body.style.pointerEvents="none",document.body.style.overflow="hidden"})}),Rt(()=>()=>{ut==null||ut()}),{get lockMap(){return Re},resetBodyStyle:n,scheduleCleanupIfNoNewLocks:e,cancelPendingCleanup:t,ensureInitialStyleCaptured:r}});var bt,me,ye,M;class mo{constructor(t,e=()=>null){c(this,bt,vo());c(this,me);c(this,ye,()=>null);c(this,M);w(this,"locked");E(this,me,t),E(this,ye,e),E(this,M,bo.get()),s(this,M)&&(s(this,M).cancelPendingCleanup(),s(this,M).ensureInitialStyleCaptured(),s(this,M).lockMap.set(s(this,bt),s(this,me)??!1),this.locked=y(()=>s(this,M).lockMap.get(s(this,bt))??!1,r=>s(this,M).lockMap.set(s(this,bt),r)),Rt(()=>{if(s(this,M).lockMap.delete(s(this,bt)),Gr(s(this,M).lockMap))return;const r=s(this,ye).call(this);s(this,M).scheduleCleanupIfNoNewLocks(r,()=>{s(this,M).resetBodyStyle()})}))}}bt=new WeakMap,me=new WeakMap,ye=new WeakMap,M=new WeakMap;function Gr(n){for(const[t,e]of n)if(e)return!0;return!1}function fr(n,t){W(t,!0);let e=b(t,"preventScroll",3,!0),r=b(t,"restoreScrollDelay",3,null);e()&&new mo(e(),()=>r()),U()}var yo=we("<div><!></div>");function Ho(n,t){const e=nn();W(t,!0);let r=b(t,"id",19,()=>an(e)),i=b(t,"forceMount",3,!1),a=b(t,"ref",15,null),o=sn(t,["$$slots","$$events","$$legacy","id","forceMount","child","children","ref"]);const u=Cn.create({id:y(()=>r()),ref:y(()=>a(),S=>a(S))}),f=_(()=>ot(o,u.props));var d=k(),g=O(d);{var p=S=>{var m=k(),l=O(m);{var h=D=>{var j=k(),B=O(j);{let yt=_(()=>({props:ot(v(f)),...u.snippetProps}));F(B,()=>t.child,()=>v(yt))}C(D,j)},I=D=>{var j=yo();kt(j,yt=>({...yt}),[()=>ot(v(f))]);var B=Ee(j);F(B,()=>t.children??z,()=>u.snippetProps),Se(j),C(D,j)};it(l,D=>{t.child?D(h):D(I,-1)})}C(S,m)};it(g,S=>{(u.shouldRender||i())&&S(p)})}C(n,d),U()}function Xo(n,t){W(t,!0);let e=b(t,"open",15,!1),r=b(t,"onOpenChange",3,P),i=b(t,"onOpenChangeComplete",3,P);En.create({variant:y(()=>"dialog"),open:y(()=>e(),u=>{e(u),r()(u)}),onOpenChangeComplete:y(()=>i())});var a=k(),o=O(a);F(o,()=>t.children??z),C(n,a),U()}var wo=we("<button><!></button>");function Yo(n,t){const e=nn();W(t,!0);let r=b(t,"id",19,()=>an(e)),i=b(t,"ref",15,null),a=b(t,"disabled",3,!1),o=sn(t,["$$slots","$$events","$$legacy","children","child","id","ref","disabled"]);const u=Sn.create({variant:y(()=>"close"),id:y(()=>r()),ref:y(()=>i(),m=>i(m)),disabled:y(()=>!!a())}),f=_(()=>ot(o,u.props));var d=k(),g=O(d);{var p=m=>{var l=k(),h=O(l);F(h,()=>t.child,()=>({props:v(f)})),C(m,l)},S=m=>{var l=wo();kt(l,()=>({...v(f)}));var h=Ee(l);F(h,()=>t.children??z),Se(l),C(m,l)};it(g,m=>{t.child?m(p):m(S,-1)})}C(n,d),U()}var Eo=we("<!> <!>",1),So=we("<!> <div><!></div>",1);function Zo(n,t){const e=nn();W(t,!0);let r=b(t,"id",19,()=>an(e)),i=b(t,"ref",15,null),a=b(t,"forceMount",3,!1),o=b(t,"onCloseAutoFocus",3,P),u=b(t,"onOpenAutoFocus",3,P),f=b(t,"onEscapeKeydown",3,P),d=b(t,"onInteractOutside",3,P),g=b(t,"trapFocus",3,!0),p=b(t,"preventScroll",3,!0),S=b(t,"restoreScrollDelay",3,null),m=sn(t,["$$slots","$$events","$$legacy","id","children","child","ref","forceMount","onCloseAutoFocus","onOpenAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","restoreScrollDelay"]);const l=An.create({id:y(()=>r()),ref:y(()=>i(),B=>i(B))}),h=_(()=>ot(m,l.props));var I=k(),D=O(I);{var j=B=>{lo(B,{get ref(){return l.opts.ref},loop:!0,get trapFocus(){return g()},get enabled(){return l.root.opts.open.current},get onOpenAutoFocus(){return u()},get onCloseAutoFocus(){return o()},focusScope:(un,Ae)=>{let Gn=()=>Ae==null?void 0:Ae().props;co(un,pn(()=>v(h),{get enabled(){return l.root.opts.open.current},get ref(){return l.opts.ref},onEscapeKeydown:Ce=>{f()(Ce),!Ce.defaultPrevented&&l.root.handleClose()},children:(Ce,To)=>{ao(Ce,pn(()=>v(h),{get ref(){return l.opts.ref},get enabled(){return l.root.opts.open.current},onInteractOutside:Ie=>{d()(Ie),!Ie.defaultPrevented&&l.root.handleClose()},children:(Ie,Ao)=>{po(Ie,pn(()=>v(h),{get ref(){return l.opts.ref},get enabled(){return l.root.opts.open.current},children:(qr,Co)=>{var qn=k(),Hr=O(qn);{var Xr=wt=>{var Ft=Eo(),Dt=O(Ft);{var Lt=at=>{fr(at,{get preventScroll(){return p()},get restoreScrollDelay(){return S()}})};it(Dt,at=>{l.root.opts.open.current&&at(Lt)})}var cn=gn(Dt,2);{let at=_(()=>({props:ot(v(h),Gn()),...l.snippetProps}));F(cn,()=>t.child,()=>v(at))}C(wt,Ft)},Yr=wt=>{var Ft=So(),Dt=O(Ft);fr(Dt,{get preventScroll(){return p()}});var Lt=gn(Dt,2);kt(Lt,at=>({...at}),[()=>ot(v(h),Gn())]);var cn=Ee(Lt);F(cn,()=>t.children??z),Se(Lt),C(wt,Ft)};it(Hr,wt=>{t.child?wt(Xr):wt(Yr,-1)})}C(qr,qn)},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{focusScope:!0}})};it(D,B=>{(l.shouldRender||a())&&B(j)})}C(n,I),U()}export{Wo as A,qo as B,Er as C,Xo as D,co as E,lo as F,Ir as G,an as H,Bo as I,P as J,Go as P,fr as S,po as T,Ho as a,Zo as b,zo as c,Yo as d,oi as e,Vo as f,on as g,Oe as h,Ko as i,ni as j,yi as k,F as l,y as m,ot as n,ao as o,mi as p,Uo as q,or as r,mr as s,Cr as t,vo as u,jo as v,X as w,Ti as x,Ci as y,Ei as z};
@@ -1 +1 @@
1
- import{w as a}from"./LQVMBmDN.js";let t=null;const s=a({msg:"",type:""});function m(e,o=""){s.set({msg:e,type:o}),t&&clearTimeout(t),t=setTimeout(()=>s.set({msg:"",type:""}),3500)}export{m as s,s as t};
1
+ import{w as a}from"./D5GvRCv7.js";let t=null;const s=a({msg:"",type:""});function m(e,o=""){s.set({msg:e,type:o}),t&&clearTimeout(t),t=setTimeout(()=>s.set({msg:"",type:""}),3500)}export{m as s,s as t};
@@ -0,0 +1 @@
1
+ import{Y as w,A as K,a1 as h,a2 as Y,a3 as R,i as _,a4 as y,a5 as B,a6 as U,D as j,a7 as m,a8 as I,a9 as M,U as N,aa as $,ab as q,ac as z,ad as C,u as G,ae as p,_ as D,af as A,ag as Z}from"./BbWUOQ_m.js";import{c as F}from"./DjNLq3TF.js";const H={get(e,r){if(!e.exclude.includes(r))return e.props[r]},set(e,r){return!1},getOwnPropertyDescriptor(e,r){if(!e.exclude.includes(r)&&r in e.props)return{enumerable:!0,configurable:!0,value:e.props[r]}},has(e,r){return e.exclude.includes(r)?!1:r in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(r=>!e.exclude.includes(r))}};function k(e,r,s){return new Proxy({props:e,exclude:r},H)}const J={get(e,r){if(!e.exclude.includes(r))return _(e.version),r in e.special?e.special[r]():e.props[r]},set(e,r,s){if(!(r in e.special)){var n=w;try{I(e.parent_effect),e.special[r]=V({get[r](){return e.props[r]}},r,R)}finally{I(n)}}return e.special[r](s),m(e.version),!0},getOwnPropertyDescriptor(e,r){if(!e.exclude.includes(r)&&r in e.props)return{enumerable:!0,configurable:!0,value:e.props[r]}},deleteProperty(e,r){return e.exclude.includes(r)||(e.exclude.push(r),m(e.version)),!0},has(e,r){return e.exclude.includes(r)?!1:r in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(r=>!e.exclude.includes(r))}};function ee(e,r){return new Proxy({props:e,exclude:r,special:{},version:K(0),parent_effect:w},J)}const Q={get(e,r){let s=e.props.length;for(;s--;){let n=e.props[s];if(p(n)&&(n=n()),typeof n=="object"&&n!==null&&r in n)return n[r]}},set(e,r,s){let n=e.props.length;for(;n--;){let i=e.props[n];p(i)&&(i=i());const t=h(i,r);if(t&&t.set)return t.set(s),!0}return!1},getOwnPropertyDescriptor(e,r){let s=e.props.length;for(;s--;){let n=e.props[s];if(p(n)&&(n=n()),typeof n=="object"&&n!==null&&r in n){const i=h(n,r);return i&&!i.configurable&&(i.configurable=!0),i}}},has(e,r){if(r===D||r===A)return!1;for(let s of e.props)if(p(s)&&(s=s()),s!=null&&r in s)return!0;return!1},ownKeys(e){const r=[];for(let s of e.props)if(p(s)&&(s=s()),!!s){for(const n in s)r.includes(n)||r.push(n);for(const n of Object.getOwnPropertySymbols(s))r.includes(n)||r.push(n)}return r}};function re(...e){return new Proxy({props:e},Q)}function V(e,r,s,n){var x;var i=!$||(s&q)!==0,t=(s&M)!==0,E=(s&Z)!==0,f=n,v=!0,S=()=>(v&&(v=!1,f=E?N(n):n),f);let l;if(t){var L=D in e||A in e;l=((x=h(e,r))==null?void 0:x.set)??(L&&r in e?u=>e[r]=u:void 0)}var o,b=!1;t?[o,b]=F(()=>e[r]):o=e[r],o===void 0&&n!==void 0&&(o=S(),l&&(i&&Y(),l(o)));var a;if(i?a=()=>{var u=e[r];return u===void 0?S():(v=!0,u)}:a=()=>{var u=e[r];return u!==void 0&&(f=void 0),u===void 0?f:u},i&&(s&R)===0)return a;if(l){var T=e.$$legacy;return(function(u,d){return arguments.length>0?((!i||!d||T||b)&&l(d?a():u),u):a()})}var P=!1,c=((s&z)!==0?C:G)(()=>(P=!1,a()));t&&_(c);var g=w;return(function(u,d){if(arguments.length>0){const O=d?_(c):i&&t?y(u):u;return B(c,O),P=!0,f!==void 0&&(f=O),u}return U&&P||(g.f&j)!==0?c.v:_(c)})}export{ee as l,V as p,k as r,re as s};
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.DSUDmOx2.js","../chunks/BK3WtZwv.js","../chunks/BbWUOQ_m.js","../chunks/lk5LaiqA.js","../chunks/DjNLq3TF.js","../chunks/D5GvRCv7.js","../chunks/DMWEh-Ek.js","../chunks/Dt2CddFe.js","../chunks/B-OsL1Ct.js","../chunks/B2Q1a1-H.js","../chunks/CVzlFH44.js","../chunks/C85CNwD2.js","../chunks/CdMsRjxJ.js","../chunks/BUApaBEI.js","../chunks/Bp63qm3L.js","../chunks/tB7QMF3U.js","../chunks/CtijX1u3.js","../chunks/xtNWTdbD.js","../chunks/mW5RwvnK.js","../chunks/BQqoDzLx.js","../chunks/Cihqbfi5.js","../chunks/DFuhmi31.js","../chunks/CBY2biv-.js","../assets/homeFeedPanelStore.BopJZtHu.css","../assets/0.DjU2hdCQ.css","../nodes/1.DU9aYGAb.js","../nodes/2.BYWOpaxy.js","../nodes/3.DEcYOQc-.js","../chunks/DEDI7Ecm.js","../chunks/Dv1VCsiB.js","../chunks/Dw782Tjs.js","../chunks/CWNeClHp.js","../assets/SourcesList.yTBBi3_m.css","../nodes/4.DTSxpKm7.js","../assets/4.9wPHhVwv.css","../nodes/5.CvM1TkLG.js","../chunks/CllQAdvt.js","../assets/BackToParentRoute.DGk-X5ow.css","../assets/5.ClehBQ0g.css","../nodes/6.Dscr6LkS.js","../assets/6.DSJfjJwx.css","../nodes/7.Bp60MobD.js","../assets/7.CrNxmd8B.css","../nodes/8.DwSg0MHh.js","../chunks/Bfc47y5P.js","../assets/8.Ba5_jYIY.css","../nodes/9.BeYOUjxR.js","../assets/9.m-LCx_kl.css","../nodes/10.Db6vw7Ih.js","../assets/10.Dj8_pmut.css","../nodes/11.BaAcorz3.js","../assets/11.qYZMiTb0.css","../nodes/12.Cg8AeCSH.js","../assets/12.Ct59LCqW.css","../nodes/13.nT3SOzEB.js","../assets/13.BhO9zvFi.css","../nodes/14.DqT4pcrQ.js","../assets/14.CujIhjQK.css","../nodes/15.CCLbjxnH.js","../assets/15.nNGjXhCQ.css","../nodes/16.DiigpVdP.js","../chunks/Xy_fhzQq.js","../assets/16.PP9XLDf7.css","../nodes/17.BtYZF6FM.js","../chunks/hp4PFHFv.js","../nodes/18.Ba_qJjp6.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,b3 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,b4 as J,av as gt,ax as Et,az as Pt,aA as x}from"../chunks/BbWUOQ_m.js";import{h as pt,m as Rt,u as yt,s as Ot}from"../chunks/DMWEh-Ek.js";import{a as E,c as I,f as $,t as bt}from"../chunks/BK3WtZwv.js";import{o as Lt}from"../chunks/Bp63qm3L.js";import{i as B}from"../chunks/Dt2CddFe.js";import{c as k}from"../chunks/DFuhmi31.js";import{b as S}from"../chunks/Xy_fhzQq.js";import{p as q}from"../chunks/xtNWTdbD.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.DSUDmOx2.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]),import.meta.url),()=>s(()=>import("../nodes/1.DU9aYGAb.js"),__vite__mapDeps([25,1,2,3,6,10,12,5,13,14]),import.meta.url),()=>s(()=>import("../nodes/2.BYWOpaxy.js"),__vite__mapDeps([26,1,2,3,8]),import.meta.url),()=>s(()=>import("../nodes/3.DEcYOQc-.js"),__vite__mapDeps([27,1,2,3,28,29,14,6,4,5,7,19,9,30,10,11,12,13,15,16,8,17,18,20,21,22,23,31,32]),import.meta.url),()=>s(()=>import("../nodes/4.DTSxpKm7.js"),__vite__mapDeps([33,1,2,3,14,6,7,19,28,9,10,22,34]),import.meta.url),()=>s(()=>import("../nodes/5.CvM1TkLG.js"),__vite__mapDeps([35,1,2,3,14,6,7,28,9,30,10,36,4,5,11,12,13,37,22,15,38]),import.meta.url),()=>s(()=>import("../nodes/6.Dscr6LkS.js"),__vite__mapDeps([39,1,2,3,14,6,7,28,9,30,10,36,4,5,11,12,13,37,22,15,40]),import.meta.url),()=>s(()=>import("../nodes/7.Bp60MobD.js"),__vite__mapDeps([41,1,2,3,14,4,5,10,12,13,11,42]),import.meta.url),()=>s(()=>import("../nodes/8.DwSg0MHh.js"),__vite__mapDeps([43,1,2,3,6,7,28,9,30,44,10,36,4,5,11,12,13,14,37,45]),import.meta.url),()=>s(()=>import("../nodes/9.BeYOUjxR.js"),__vite__mapDeps([46,1,2,3,14,6,7,19,28,9,10,36,4,5,11,12,13,37,22,15,47]),import.meta.url),()=>s(()=>import("../nodes/10.Db6vw7Ih.js"),__vite__mapDeps([48,1,2,3,14,6,7,28,9,30,10,36,4,5,11,12,13,37,22,15,49]),import.meta.url),()=>s(()=>import("../nodes/11.BaAcorz3.js"),__vite__mapDeps([50,1,2,3,28,29,14,6,4,5,7,19,9,30,10,11,12,13,15,16,8,17,18,20,21,22,23,31,32,36,37,51]),import.meta.url),()=>s(()=>import("../nodes/12.Cg8AeCSH.js"),__vite__mapDeps([52,1,2,3,14,6,7,19,28,9,30,44,10,22,15,5,53]),import.meta.url),()=>s(()=>import("../nodes/13.nT3SOzEB.js"),__vite__mapDeps([54,1,2,3,14,6,7,19,28,9,30,10,22,15,5,55]),import.meta.url),()=>s(()=>import("../nodes/14.DqT4pcrQ.js"),__vite__mapDeps([56,1,2,3,14,6,5,7,19,28,9,30,10,22,11,12,13,15,31,8,17,4,18,20,57]),import.meta.url),()=>s(()=>import("../nodes/15.CCLbjxnH.js"),__vite__mapDeps([58,1,2,3,14,28,10,12,5,13,59]),import.meta.url),()=>s(()=>import("../nodes/16.DiigpVdP.js"),__vite__mapDeps([60,1,2,3,4,5,6,7,20,28,10,9,22,11,12,13,14,15,61,17,36,37,62]),import.meta.url),()=>s(()=>import("../nodes/17.BtYZF6FM.js"),__vite__mapDeps([63,64,13]),import.meta.url),()=>s(()=>import("../nodes/18.Ba_qJjp6.js"),__vite__mapDeps([65,64,13]),import.meta.url)],Qt=[],Xt={"/":[3],"/admin":[4,[2]],"/admin/deliver":[5,[2]],"/admin/llm":[6,[2]],"/admin/logs":[7,[2]],"/admin/parse":[8,[2]],"/admin/pipeline":[9,[2]],"/admin/proxy":[10,[2]],"/admin/sources":[11,[2]],"/admin/tags":[12,[2]],"/logs":[13],"/plugins":[14],"/plugins/new":[15],"/plugins/[id]":[16],"/tags":[17],"/[sub]":[18]},tt={handleError:(({error:r})=>{console.error(r)}),reroute:(()=>{}),transport:{}},kt=Object.fromEntries(Object.entries(tt.transport).map(([r,t])=>[r,t.decode])),Zt=Object.fromEntries(Object.entries(tt.transport).map(([r,t])=>[r,t.encode])),Mt=!1,Nt=(r,t)=>kt[r](t);export{Nt as decode,kt as decoders,Xt as dictionary,Zt as encoders,Mt as hash,tt as hooks,Ht as matchers,Kt as nodes,Jt as root,Qt as server_loads};
@@ -0,0 +1 @@
1
+ import{l as o,a as r}from"../chunks/CdMsRjxJ.js";export{o as load_css,r as start};
@@ -0,0 +1,11 @@
1
+ import{c as U,a as m,f as V}from"../chunks/BK3WtZwv.js";import"../chunks/lk5LaiqA.js";import{f as S,at as la,au as ra,av as t,ax as s,az as ia,aC as w,aD as Ha,a5 as O,i as a,aw as h,aq as Ga,U as _,z as W,u as $}from"../chunks/BbWUOQ_m.js";import{s as oa,a as T}from"../chunks/DjNLq3TF.js";import{s as na}from"../chunks/DMWEh-Ek.js";import{i as va}from"../chunks/Dt2CddFe.js";import{s as B}from"../chunks/B-OsL1Ct.js";import{a as p,s as I,G as Ra,P as ta}from"../chunks/B2Q1a1-H.js";import{i as ca}from"../chunks/CVzlFH44.js";import{p as Ca}from"../chunks/C85CNwD2.js";import{t as Fa}from"../chunks/tB7QMF3U.js";import{R as Na,P as Oa,h as P,S as Wa}from"../chunks/CtijX1u3.js";import{l as ua,s as da}from"../chunks/xtNWTdbD.js";import{I as ha}from"../chunks/mW5RwvnK.js";const Ia=!1,Ta=!1,ve=Object.freeze(Object.defineProperty({__proto__:null,prerender:Ta,ssr:Ia},Symbol.toStringTag,{value:"Module"})),Ua='<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>',Va='</title><path d="',Ba='"/></svg>',sa={title:"GitHub",slug:"github",get svg(){return Ua+"GitHub"+Va+this.path+Ba},path:"M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12",source:"https://github.com/logos",hex:"181717",guidelines:"https://github.com/logos"};function Da(f,o){const n=ua(o,["children","$$slots","$$events","$$legacy"]);/**
2
+ * @license lucide-svelte v0.460.1 - ISC
3
+ *
4
+ * This source code is licensed under the ISC license.
5
+ * See the LICENSE file in the root directory of this source tree.
6
+ */const l=[["path",{d:"M15 12h-5"}],["path",{d:"M15 8h-5"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3"}]];ha(f,da({name:"scroll-text"},()=>n,{get iconNode(){return l},children:(u,g)=>{var e=U(),d=S(e);B(d,o,"default",{}),m(u,e)},$$slots:{default:!0}}))}function La(f,o){const n=ua(o,["children","$$slots","$$events","$$legacy"]);/**
7
+ * @license lucide-svelte v0.460.1 - ISC
8
+ *
9
+ * This source code is licensed under the ISC license.
10
+ * See the LICENSE file in the root directory of this source tree.
11
+ */const l=[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"}],["circle",{cx:"12",cy:"12",r:"3"}]];ha(f,da({name:"settings"},()=>n,{get iconNode(){return l},children:(u,g)=>{var e=U(),d=S(e);B(d,o,"default",{}),m(u,e)},$$slots:{default:!0}}))}var ja=V("<div> </div>");function Aa(f,o){la(o,!1);const n=()=>T(Fa,"$toast",l),[l,u]=oa();ca();var g=U(),e=S(g);{var d=v=>{var c=ja(),M=t(c,!0);s(c),ia(()=>{p(c,1,`toast ${n().type??""}`,"svelte-zemmny"),na(M,n().msg)}),m(v,c)};va(e,v=>{n().msg&&v(d)})}m(f,g),ra(),u()}var Ea=V('<div class="layout-feed-rail layout-feed-rail--home svelte-12qhfyh"><!></div>'),Ja=V('<div class="layout-outer svelte-12qhfyh"><div class="layout-app svelte-12qhfyh"><div id="layout-inner-scroll" class="layout-merged-cluster svelte-12qhfyh"><aside class="layout-nav-rail svelte-12qhfyh" aria-label="主导航"><nav class="nav-rail-links svelte-12qhfyh"><div class="nav-rail-cluster svelte-12qhfyh"><a href="/" title="信源" aria-label="信源"><!></a> <a href="/logs" title="日志" aria-label="日志"><!></a> <a href="/plugins" title="插件" aria-label="插件"><!></a> <a href="/admin" title="设置" aria-label="设置"><!></a></div></nav> <div class="nav-rail-footer svelte-12qhfyh"><a class="nav-rail-github svelte-12qhfyh" target="_blank" rel="noopener noreferrer" aria-label="在 GitHub 打开源码仓库" title="GitHub"><svg class="nav-rail-github-icon svelte-12qhfyh" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><path fill="currentColor"></path></svg></a> <span class="nav-rail-brand svelte-12qhfyh"> </span></div></aside> <div><main><!></main></div> <!></div></div></div> <!>',1);function ce(f,o){la(o,!1);const n=()=>T(Ca,"$page",u),l=()=>T(P,"$homeFeedPanelSource",u),[u,g]=oa(),e=W(),d=W(),v=W(),c=18;function M(i){return!!(i==="/"||i==="/admin"||i==="/admin/sources"||i==="/admin/tags"||i==="/plugins"||i==="/logs"||i.startsWith("/plugins/")||i.startsWith("/logs/"))}w(()=>n(),()=>{O(e,n().url.pathname)}),w(()=>a(e),()=>{O(d,M(a(e)))}),w(()=>(a(e),P),()=>{a(e)!=="/"&&P.set(null)}),w(()=>a(e),()=>{O(v,{sources:a(e)==="/"||a(e)==="/admin/sources",logs:a(e)==="/logs"||a(e).startsWith("/logs/"),plugins:a(e).startsWith("/plugins"),settings:a(e)==="/admin"||a(e).startsWith("/admin/")})}),Ha(),ca();var D=Ja(),k=S(D),L=t(k),j=t(L),H=t(j),G=t(H),A=t(G),y=t(A);let E;var fa=t(y);Na(fa,{size:c}),s(y);var b=h(y,2);let J;var pa=t(b);Da(pa,{size:c}),s(b);var q=h(b,2);let K;var ga=t(q);Oa(ga,{size:c}),s(q);var R=h(q,2);let Q;var ma=t(R);La(ma,{size:c}),s(R),s(A),s(G);var X=h(G,2),x=t(X),Y=t(x),_a=t(Y);s(Y),s(x);var C=h(x,2),$a=t(C,!0);s(C),s(X),s(H);var z=h(H,2);let Z;var F=t(z);let aa;var ya=t(F);B(ya,o,"default",{}),s(F),s(z);var ba=h(z,2);{var qa=i=>{var N=Ea(),za=t(N);{let wa=$(()=>l()!=null),Pa=$(()=>(l(),_(()=>{var r;return((r=l())==null?void 0:r.ref)??""}))),Sa=$(()=>(l(),_(()=>{var r;return((r=l())==null?void 0:r.displayLabel)??""}))),Ma=$(()=>(l(),_(()=>{var r;return((r=l())==null?void 0:r.description)??""}))),ka=$(()=>(l(),_(()=>{var r,ea;return((ea=(r=l())==null?void 0:r.proxy)==null?void 0:ea.trim())??""})));Wa(za,{variant:"inline",get open(){return a(wa)},get sourceRef(){return a(Pa)},get sourceLabel(){return a(Sa)},get sourceDescription(){return a(Ma)},get sourceProxy(){return a(ka)},onOpenChange:r=>{r||P.set(null)}})}s(N),m(i,N)};va(ba,i=>{a(e)==="/"&&i(qa)})}s(j),s(L),s(k);var xa=h(k,2);Aa(xa,{}),ia(()=>{E=p(y,1,"nav-rail-link svelte-12qhfyh",null,E,{active:a(v).sources}),J=p(b,1,"nav-rail-link svelte-12qhfyh",null,J,{active:a(v).logs}),K=p(q,1,"nav-rail-link svelte-12qhfyh",null,K,{active:a(v).plugins}),Q=p(R,1,"nav-rail-link svelte-12qhfyh",null,Q,{active:a(v).settings}),I(x,"href",Ra),I(_a,"d",(Ga(sa),_(()=>sa.path))),I(C,"title",ta),na($a,ta),Z=p(z,1,"shell-frame svelte-12qhfyh",null,Z,{"shell-frame--with-feed-rail":a(e)==="/"}),aa=p(F,1,"main shell svelte-12qhfyh",null,aa,{"main-fill":a(d)})}),m(f,D),ra(),g()}export{ce as component,ve as universal};
@@ -0,0 +1 @@
1
+ import{a as h,f as g}from"../chunks/BK3WtZwv.js";import"../chunks/lk5LaiqA.js";import{at as v,f as l,az as d,au as x,av as e,ax as o,aw as _}from"../chunks/BbWUOQ_m.js";import{s as p}from"../chunks/DMWEh-Ek.js";import{i as $}from"../chunks/CVzlFH44.js";import{s as k,p as m}from"../chunks/CdMsRjxJ.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};
@@ -0,0 +1 @@
1
+ import{a as v,f as u}from"../chunks/BK3WtZwv.js";import"../chunks/lk5LaiqA.js";import{o as H}from"../chunks/Bp63qm3L.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/BbWUOQ_m.js";import{d as X,a as Y,s as A}from"../chunks/DMWEh-Ek.js";import{i as D}from"../chunks/Dt2CddFe.js";import{h as F}from"../chunks/DEDI7Ecm.js";import{P as q,r as G}from"../chunks/B2Q1a1-H.js";import{b as I}from"../chunks/Dw782Tjs.js";import{i as K}from"../chunks/CVzlFH44.js";import{B as L}from"../chunks/CllQAdvt.js";import{b as j}from"../chunks/CBY2biv-.js";import{s as z}from"../chunks/tB7QMF3U.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};
@@ -0,0 +1 @@
1
+ import{a as s,f as m}from"../chunks/BK3WtZwv.js";import"../chunks/lk5LaiqA.js";import{f as i,d as c,av as f,aw as d,$ as n,ax as p}from"../chunks/BbWUOQ_m.js";import{h as v}from"../chunks/DEDI7Ecm.js";import{S as l}from"../chunks/Dv1VCsiB.js";import{B as _}from"../chunks/CllQAdvt.js";import{P as h}from"../chunks/B2Q1a1-H.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};
@@ -0,0 +1 @@
1
+ import{a as v,f as c}from"../chunks/BK3WtZwv.js";import"../chunks/lk5LaiqA.js";import{o as ye}from"../chunks/Bp63qm3L.js";import{v as xe,at as we,f as ke,az as E,i as s,au as Ce,d as Te,av as n,a5 as a,z as w,aw as i,$ as Le,ax as r,u as Ee}from"../chunks/BbWUOQ_m.js";import{e as f,s as P}from"../chunks/DMWEh-Ek.js";import{i as O}from"../chunks/Dt2CddFe.js";import{e as te,i as se}from"../chunks/BQqoDzLx.js";import{h as $e}from"../chunks/DEDI7Ecm.js";import{P as Me,r as Se,d as Pe}from"../chunks/B2Q1a1-H.js";import{b as Oe}from"../chunks/Dw782Tjs.js";import{s as Y}from"../chunks/Bfc47y5P.js";import{i as Fe}from"../chunks/CVzlFH44.js";import{b as B}from"../chunks/CBY2biv-.js";import{s as F}from"../chunks/tB7QMF3U.js";function Je(z,$){var k;var o=(k=z.$$events)==null?void 0:k[$.type],p=xe(o)?o.slice():o==null?[]:[o];for(var u of p)u.call(this,$)}var Ne=c('<div class="state svelte-1s5glru">加载中…</div>'),je=c('<p class="empty-hint svelte-1s5glru">暂无标签。添加后,pipeline 会对新入库条目自动打标签。</p>'),ze=c('<span class="tag-meta svelte-1s5glru"> </span>'),De=c('<div class="tag-badge svelte-1s5glru"><span class="tag-name svelte-1s5glru"> </span> <!> <button type="button" class="tag-remove svelte-1s5glru" title="从系统标签中删除">×</button></div>'),Ie=c('<div class="tag-list svelte-1s5glru"></div>'),Ue=c('<div class="tag-badge suggested svelte-1s5glru"><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>'),qe=c('<div class="suggested-section svelte-1s5glru"><h3 class="section-title svelte-1s5glru">建议添加(文章中出现但未在系统标签库中)</h3> <div class="tag-list svelte-1s5glru"></div></div>'),Ae=c('<div class="body svelte-1s5glru"><div class="tags-section svelte-1s5glru"><h3 class="section-title svelte-1s5glru"> </h3> <!></div> <!></div>'),Re=c('<div class="context-menu svelte-1s5glru" role="menu" tabindex="-1"><button type="button" class="context-menu-item svelte-1s5glru">从所有文章中移除该标签</button></div>'),Xe=c('<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 svelte-1s5glru"><!></div></div></div> <!>',1);function ot(z,$){we($,!1);let o=w([]),p=[],u=w([]),k=w(!0),_=w(!1),M=w(""),b=w(null),J=w(!1);async function ae(){a(k,!0);try{const t=await B("/api/tags");a(o,(t==null?void 0:t.tags)??[]),p=(t==null?void 0:t.stats)??[],a(u,(t==null?void 0:t.suggestedTags)??[])}catch{a(o,[]),p=[],a(u,[])}finally{a(k,!1)}}function re(t){return p.find(e=>e.name.toLowerCase()===t.toLowerCase())}async function D(t){a(_,!0);try{const e=await B("/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(u,(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,""),D([...s(o),t])}}function oe(t){s(_)||D(s(o).filter(e=>e!==t))}function ne(t){s(_)||s(o).some(e=>e.toLowerCase()===t.toLowerCase())||D([...s(o),t])}function H(t,e){t.preventDefault(),t.stopPropagation(),a(b,{x:t.clientX,y:t.clientY,tag:e})}function I(){a(b,null)}async function ie(t){if(!s(J)){a(J,!0),a(b,null);try{const e=await B("/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(u,(e==null?void 0:e.suggestedTags)??s(u)),F(`已从 ${(e==null?void 0:e.removedCount)??0} 篇文章中移除该标签`,"success")}catch(e){F("操作失败: "+(e instanceof Error?e.message:String(e)),"error")}finally{a(J,!1)}}}ye(()=>{ae();const t=()=>I(),e=()=>I();return document.addEventListener("click",t),document.addEventListener("contextmenu",e),()=>{document.removeEventListener("click",t),document.removeEventListener("contextmenu",e)}}),Fe();var K=Xe();$e("1s5glru",t=>{Te(()=>{Le.title=`标签 - ${Me}`})});var U=ke(K),Q=n(U),q=n(Q),V=n(q),W=i(n(V),2),N=n(W);Se(N);var Z=i(N,2);r(W),r(V),r(q);var ee=i(q,2),le=n(ee);{var ve=t=>{var e=Ne();v(t,e)},ce=t=>{var e=Ae(),C=n(e),h=n(C),me=n(h);r(h);var ge=i(h,2);{var fe=l=>{var d=je();v(l,d)},pe=l=>{var d=Ie();te(d,5,()=>s(o),se,(j,T)=>{const m=Ee(()=>re(s(T)));var g=De(),y=n(g),A=n(y,!0);r(y);var L=i(y,2);{var R=x=>{var X=ze(),he=n(X);r(X),E(()=>P(he,`${s(m).count??""} 篇 · 热度 ${s(m).hotness??""}`)),v(x,X)};O(L,x=>{s(m)&&x(R)})}var S=i(L,2);r(g),E(()=>{P(A,s(T)),S.disabled=s(_)}),f("click",S,Y(()=>oe(s(T)))),f("contextmenu",g,x=>H(x,s(T))),v(j,g)}),r(d),v(l,d)};O(ge,l=>{s(o).length===0?l(fe):l(pe,-1)})}r(C);var _e=i(C,2);{var be=l=>{var d=qe(),j=i(n(d),2);te(j,5,()=>s(u),se,(T,m)=>{var g=Ue(),y=n(g),A=n(y,!0);r(y);var L=i(y,2),R=n(L);r(L);var S=i(L,2);r(g),E(()=>{P(A,s(m).name),P(R,`${s(m).count??""} 篇 · 热度 ${s(m).hotness??""}`),S.disabled=s(_)}),f("click",S,Y(()=>ne(s(m).name))),f("contextmenu",g,x=>H(x,s(m).name)),v(T,g)}),r(j),r(d),v(l,d)};O(_e,l=>{s(u).length>0&&l(be)})}r(e),E(()=>P(me,`当前标签 (${s(o).length??""})`)),v(t,e)};O(le,t=>{s(k)?t(ve):t(ce,-1)})}r(ee),r(Q),r(U);var ue=i(U,2);{var de=t=>{var e=Re(),C=n(e);r(e),E(()=>{Pe(e,`left: ${s(b).x??""}px; top: ${s(b).y??""}px`),C.disabled=s(J)}),f("click",C,()=>ie(s(b).tag)),f("click",e,Y(function(h){Je.call(this,$,h)})),f("keydown",e,h=>h.key==="Escape"&&I()),v(t,e)};O(ue,t=>{s(b)&&t(de)})}E(t=>Z.disabled=t,[()=>!s(M).trim()||s(_)]),Oe(N,()=>s(M),t=>a(M,t)),f("keydown",N,t=>t.key==="Enter"&&G()),f("click",Z,G),v(z,K),Ce()}export{ot as component};
@@ -0,0 +1 @@
1
+ import{a as p,f as u}from"../chunks/BK3WtZwv.js";import"../chunks/lk5LaiqA.js";import{o as Rt,a as jt}from"../chunks/Bp63qm3L.js";import{at as At,az as g,i as e,au as Ht,d as Bt,av as a,a5 as r,z as c,aw as n,$ as Gt,ax as s,f as Vt}from"../chunks/BbWUOQ_m.js";import{e as m,s as f}from"../chunks/DMWEh-Ek.js";import{i as nt}from"../chunks/Dt2CddFe.js";import{e as vt}from"../chunks/BQqoDzLx.js";import{h as Zt}from"../chunks/DEDI7Ecm.js";import{c as qt,P as Kt,r as Qt,a as Wt,s as Xt}from"../chunks/B2Q1a1-H.js";import{b as Yt}from"../chunks/Dw782Tjs.js";import{i as te}from"../chunks/CVzlFH44.js";import{a as dt}from"../chunks/CBY2biv-.js";import{s as q}from"../chunks/tB7QMF3U.js";var ee=u("<option> </option>"),se=u('<div class="state err svelte-1lsf4ps"> </div>'),ae=u('<div class="state svelte-1lsf4ps">加载中…</div>'),le=u('<div class="state svelte-1lsf4ps">暂无日志</div>'),re=u('<tr class="payload-row svelte-1lsf4ps"><td colspan="5" class="svelte-1lsf4ps"><pre class="payload-content svelte-1lsf4ps"> </pre></td></tr>'),ie=u('<tr class="log-row svelte-1lsf4ps" role="button" tabindex="0"><td class="td-time svelte-1lsf4ps"> </td><td class="td-level svelte-1lsf4ps"><span> </span></td><td class="td-cat svelte-1lsf4ps"> </td><td class="td-msg svelte-1lsf4ps"> </td><td class="td-detail svelte-1lsf4ps"> </td></tr> <!>',1),oe=u('<div class="log-has-data svelte-1lsf4ps"><div class="log-table-scroll svelte-1lsf4ps"><div class="table-wrap svelte-1lsf4ps"><table class="svelte-1lsf4ps"><thead class="svelte-1lsf4ps"><tr><th class="th-time svelte-1lsf4ps">时间</th><th class="th-level svelte-1lsf4ps">级别</th><th class="th-cat svelte-1lsf4ps">分类</th><th class="th-msg svelte-1lsf4ps">消息</th><th class="th-detail svelte-1lsf4ps">详情</th></tr></thead><tbody class="svelte-1lsf4ps"></tbody></table></div></div> <div class="log-toolbar svelte-1lsf4ps"><span class="pagination-info svelte-1lsf4ps"> </span> <div class="pagination-btns svelte-1lsf4ps"><button class="btn btn-secondary btn-sm svelte-1lsf4ps">上一页</button> <button class="btn btn-secondary btn-sm svelte-1lsf4ps">下一页</button></div></div></div>'),ne=u('<div class="feed-wrap svelte-1lsf4ps"><div class="feed-col svelte-1lsf4ps"><div class="feed-toolbar-block svelte-1lsf4ps"><div class="feed-header svelte-1lsf4ps"><div class="header-left svelte-1lsf4ps"><input type="search" class="filter-input svelte-1lsf4ps" placeholder="过滤…" autocomplete="off" spellcheck="false" aria-label="分类"/></div> <div class="header-right svelte-1lsf4ps"><select class="filter-input filter-input--level svelte-1lsf4ps" aria-label="级别"><option>全部</option><!></select> <button class="admin-toolbar-btn admin-toolbar-btn--danger" type="button" title="清空全部日志">清空</button></div></div></div> <div class="log-body-scroll svelte-1lsf4ps"><!></div></div></div>');function we(ct,ft){At(ft,!1);const pt=["error","warn","info","debug"],ut=350;let d=c([]),y=c(0),h=c(!1),T=c(""),L=c(""),O=c(""),x=null,o=c(0),P=c(null),D=c(!1);const $=100;function I(){x&&(clearTimeout(x),x=null)}function _t(){I(),x=setTimeout(()=>{x=null,r(o,0),b()},ut)}function mt(){r(o,0),b()}Rt(()=>{b()}),jt(()=>{I()});function ht(){const t=new URLSearchParams;t.set("limit",String($)),t.set("offset",String(e(o))),e(L)&&t.set("level",e(L));const l=e(O).trim();return l&&t.set("category",l),"/api/logs?"+t.toString()}async function b(){r(h,!0),r(T,"");try{const t=await dt(ht());if(!t.ok)throw new Error(await t.text().catch(()=>`HTTP ${t.status}`));const l=await t.json();r(d,l.items??[]),r(y,l.total??0)}catch(t){r(T,t instanceof Error?t.message:String(t)),r(d,[]),r(y,0)}finally{r(h,!1)}}async function bt(){if(confirm("确定清空全部日志?此操作不可恢复。")){r(D,!0),I();try{const t=await dt("/api/logs",{method:"DELETE"}),l=await t.text();let i={};try{i=l?JSON.parse(l):{}}catch{i={}}if(!t.ok){q(i.error||l||`HTTP ${t.status}`,"error");return}i.ok&&(q(i.deleted!=null?`已清空 ${i.deleted} 条`:"已清空日志","success"),r(o,0),r(P,null),await b())}catch(t){q(t instanceof Error?t.message:String(t),"error")}finally{r(D,!1)}}}function gt(){e(o)<=0||(r(o,Math.max(0,e(o)-$)),b())}function yt(){e(o)+e(d).length>=e(y)||(r(o,e(o)+$),b())}function K(t){r(P,e(P)===t?null:t)}function xt(t){try{return new Date(t).toLocaleString("zh-CN",{month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}catch{return t}}function wt(t){if(!t)return"";try{return JSON.stringify(JSON.parse(t),null,2)}catch{return t}}function Et(t){if(t==null||t.trim()==="")return"—";try{return JSON.stringify(JSON.parse(t))}catch{return t.replace(/\s+/g," ").trim()}}te();var C=ne();Zt("1lsf4ps",t=>{Bt(()=>{Gt.title=`日志 - ${Kt}`})});var Q=a(C),F=a(Q),W=a(F),J=a(W),M=a(J);Qt(M),s(J);var X=n(J,2),w=a(X),U=a(w);U.value=U.__value="";var St=n(U);vt(St,1,()=>pt,t=>t,(t,l)=>{var i=ee(),N=a(i,!0);s(i);var E={};g(()=>{f(N,e(l)),E!==(E=e(l))&&(i.value=(i.__value=e(l))??"")}),p(t,i)}),s(w);var Y=n(w,2);s(X),s(W),s(F);var tt=n(F,2),kt=a(tt);{var Tt=t=>{var l=se(),i=a(l,!0);s(l),g(()=>f(i,e(T))),p(t,l)},Lt=t=>{var l=ae();p(t,l)},Pt=t=>{var l=le();p(t,l)},Nt=t=>{var l=oe(),i=a(l),N=a(i),E=a(N),et=n(a(E));vt(et,5,()=>e(d),j=>j.id,(j,v)=>{var rt=ie(),S=Vt(rt),A=a(S),Dt=a(A,!0);s(A);var H=n(A),B=a(H),$t=a(B,!0);s(B),s(H);var G=n(H),It=a(G,!0);s(G);var V=n(G),Ct=a(V,!0);s(V);var Z=n(V),Ft=a(Z,!0);s(Z),s(S);var Jt=n(S,2);{var Mt=_=>{var k=re(),it=a(k),ot=a(it),Ut=a(ot,!0);s(ot),s(it),s(k),g(zt=>f(Ut,zt),[()=>wt(e(v).payload)]),p(_,k)};nt(Jt,_=>{e(P)===e(v).id&&e(v).payload&&_(Mt)})}g((_,k)=>{f(Dt,_),Wt(B,1,`badge level-${e(v).level??""}`,"svelte-1lsf4ps"),f($t,e(v).level),f(It,e(v).category),f(Ct,e(v).message),Xt(Z,"title",e(v).payload??void 0),f(Ft,k)},[()=>xt(e(v).created_at),()=>Et(e(v).payload)]),m("click",S,()=>K(e(v).id)),m("keydown",S,_=>_.key==="Enter"&&K(e(v).id)),p(j,rt)}),s(et),s(E),s(N),s(i);var st=n(i,2),z=a(st),Ot=a(z);s(z);var at=n(z,2),R=a(at),lt=n(R,2);s(at),s(st),s(l),g(()=>{f(Ot,`共 ${e(y)??""} 条,当前 ${e(d).length?`${e(o)+1}–${e(o)+e(d).length}`:"—"}`),R.disabled=e(o)<=0||e(h),lt.disabled=e(o)+e(d).length>=e(y)||e(h)}),m("click",R,gt),m("click",lt,yt),p(t,l)};nt(kt,t=>{e(T)?t(Tt):e(h)&&e(d).length===0?t(Lt,1):e(d).length===0?t(Pt,2):t(Nt,-1)})}s(tt),s(Q),s(C),g(()=>Y.disabled=e(h)||e(D)),Yt(M,()=>e(O),t=>r(O,t)),m("input",M,_t),qt(w,()=>e(L),t=>r(L,t)),m("change",w,mt),m("click",Y,bt),p(ct,C),Ht()}export{we as component};