rssany 0.2.0 → 0.3.1

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 (159) hide show
  1. package/README.md +22 -22
  2. package/app/plugins/builtin/agi-eval-evaluation.rssany.js +6 -7
  3. package/app/plugins/builtin/amii-research-talent.rssany.js +6 -7
  4. package/app/plugins/builtin/anthropic-research.rssany.js +6 -8
  5. package/app/plugins/builtin/appen-resources.rssany.js +6 -7
  6. package/app/plugins/builtin/baai-wudao-paper-article.rssany.js +9 -10
  7. package/app/plugins/builtin/baaidata-csdn.rssany.js +6 -7
  8. package/app/plugins/builtin/baidu-research.rssany.js +5 -8
  9. package/app/plugins/builtin/brightdata-blog.rssany.js +6 -11
  10. package/app/plugins/builtin/bytedance-seed-research.rssany.js +5 -7
  11. package/app/plugins/builtin/email.rssany.js +9 -9
  12. package/app/plugins/builtin/five-radar.rssany.js +9 -11
  13. package/app/plugins/builtin/flageval-news.rssany.js +5 -7
  14. package/app/plugins/builtin/google-deepmind-research.rssany.js +6 -8
  15. package/app/plugins/builtin/google-research-datasets.rssany.js +6 -8
  16. package/app/plugins/builtin/google-research.rssany.js +6 -8
  17. package/app/plugins/builtin/hacker-news-newest.rssany.js +7 -9
  18. package/app/plugins/builtin/harvard-dataverse.rssany.js +6 -8
  19. package/app/plugins/builtin/huaweicloud-bbs-blogs.rssany.js +7 -9
  20. package/app/plugins/builtin/lingowhale.rssany.js +7 -9
  21. package/app/plugins/builtin/meituan-tech.rssany.js +7 -10
  22. package/app/plugins/builtin/meta-ai-publications.rssany.js +6 -11
  23. package/app/plugins/builtin/mila-quebec.rssany.js +6 -8
  24. package/app/plugins/builtin/mit-csail-research.rssany.js +7 -9
  25. package/app/plugins/builtin/moonshot.rssany.js +6 -8
  26. package/app/plugins/builtin/opendatalab-news.rssany.js +6 -7
  27. package/app/plugins/builtin/opendatalab.rssany.js +5 -6
  28. package/app/plugins/builtin/opendrivelab-autonomous-driving.rssany.js +6 -7
  29. package/app/plugins/builtin/opendrivelab-embodiedai.rssany.js +7 -8
  30. package/app/plugins/builtin/opendrivelab-publications.rssany.js +6 -8
  31. package/app/plugins/builtin/opendrivelab.rssany.js +7 -8
  32. package/app/plugins/builtin/paperswithcode.rssany.js +6 -8
  33. package/app/plugins/builtin/pjlab-adg-publications.rssany.js +7 -9
  34. package/app/plugins/builtin/rss.rssany.js +11 -12
  35. package/app/plugins/builtin/selectdataset.rssany.js +6 -8
  36. package/app/plugins/builtin/sensetime-tech-achievements.rssany.js +7 -8
  37. package/app/plugins/builtin/supervisely-blog.rssany.js +6 -8
  38. package/app/plugins/builtin/theinformation-briefings.rssany.js +7 -13
  39. package/app/plugins/builtin/uci-ml-repository.rssany.js +6 -7
  40. package/app/plugins/builtin/venturebeat.rssany.js +7 -9
  41. package/app/plugins/builtin/worldlabs.rssany.js +6 -8
  42. package/app/plugins/builtin/x.rssany.js +7 -9
  43. package/app/plugins/builtin/xiaohongshu.rssany.js +119 -56
  44. package/app/plugins/builtin/zhipu-research.rssany.js +5 -8
  45. package/app/plugins/site.rssany.js +25 -26
  46. package/{statics → app/statics}/README.md +7 -7
  47. package/app/webui/build/200.html +51 -0
  48. package/{webui/build/_app/immutable/assets/0.BB88QFoe.css → app/webui/build/_app/immutable/assets/0.DsKls1SN.css} +1 -1
  49. package/app/webui/build/_app/immutable/assets/13.Qu_tY6H9.css +1 -0
  50. package/app/webui/build/_app/immutable/assets/14.DfMfOrS3.css +1 -0
  51. package/app/webui/build/_app/immutable/assets/16.Cw9oSkcO.css +1 -0
  52. package/app/webui/build/_app/immutable/assets/4.Di6rvlY-.css +1 -0
  53. package/{webui/build/_app/immutable/assets/SourcesList.yTBBi3_m.css → app/webui/build/_app/immutable/assets/SourcesList.D5Lso0bo.css} +1 -1
  54. package/{webui/build/_app/immutable/assets/homeFeedPanelStore.CSvlNcpm.css → app/webui/build/_app/immutable/assets/homeFeedPanelStore.CE6xTfsa.css} +1 -1
  55. package/app/webui/build/_app/immutable/chunks/6prdYIKP.js +1 -0
  56. package/{webui/build/_app/immutable/chunks/Xy_fhzQq.js → app/webui/build/_app/immutable/chunks/B-CeeY89.js} +1 -1
  57. package/app/webui/build/_app/immutable/chunks/B2cyTHdf.js +2 -0
  58. package/{webui/build/_app/immutable/chunks/DjNLq3TF.js → app/webui/build/_app/immutable/chunks/B6WG2Sd3.js} +1 -1
  59. package/app/webui/build/_app/immutable/chunks/BA4Gucnq.js +1 -0
  60. package/{webui/build/_app/immutable/chunks/xtNWTdbD.js → app/webui/build/_app/immutable/chunks/BAJAS8BI.js} +1 -1
  61. package/{webui/build/_app/immutable/chunks/Dt2CddFe.js → app/webui/build/_app/immutable/chunks/BkD3yAYe.js} +1 -1
  62. package/{webui/build/_app/immutable/chunks/DFuhmi31.js → app/webui/build/_app/immutable/chunks/C4uF_YIK.js} +1 -1
  63. package/{webui/build/_app/immutable/chunks/Dw782Tjs.js → app/webui/build/_app/immutable/chunks/C8umpVpB.js} +1 -1
  64. package/{webui/build/_app/immutable/chunks/BQqoDzLx.js → app/webui/build/_app/immutable/chunks/CFwxUBGi.js} +1 -1
  65. package/{webui/build/_app/immutable/chunks/tB7QMF3U.js → app/webui/build/_app/immutable/chunks/CGCMIfh3.js} +1 -1
  66. package/{webui/build/_app/immutable/chunks/BK3WtZwv.js → app/webui/build/_app/immutable/chunks/CS53ooo0.js} +1 -1
  67. package/app/webui/build/_app/immutable/chunks/CVW0ymE1.js +1 -0
  68. package/{webui/build/_app/immutable/chunks/B-OsL1Ct.js → app/webui/build/_app/immutable/chunks/ChUctqXA.js} +1 -1
  69. package/{webui/build/_app/immutable/chunks/D5GvRCv7.js → app/webui/build/_app/immutable/chunks/ClknbeNl.js} +1 -1
  70. package/{webui/build/_app/immutable/chunks/Bu9HsS-V.js → app/webui/build/_app/immutable/chunks/CqYSO3Dx.js} +1 -1
  71. package/{webui/build/_app/immutable/chunks/CWNeClHp.js → app/webui/build/_app/immutable/chunks/D6kzEN_P.js} +1 -1
  72. package/app/webui/build/_app/immutable/chunks/DAdOEnFb.js +1 -0
  73. package/{webui/build/_app/immutable/chunks/Cihqbfi5.js → app/webui/build/_app/immutable/chunks/DCEayuDt.js} +1 -1
  74. package/app/webui/build/_app/immutable/chunks/DJ2e04vK.js +36 -0
  75. package/{webui/build/_app/immutable/chunks/DEDI7Ecm.js → app/webui/build/_app/immutable/chunks/DL3Q5sfb.js} +1 -1
  76. package/{webui/build/_app/immutable/chunks/CVzlFH44.js → app/webui/build/_app/immutable/chunks/DVa8Y-mQ.js} +1 -1
  77. package/app/webui/build/_app/immutable/chunks/DkamXS6W.js +36 -0
  78. package/app/webui/build/_app/immutable/chunks/DoRPmqLn.js +2 -0
  79. package/app/webui/build/_app/immutable/chunks/DsxvjlCC.js +13 -0
  80. package/{webui/build/_app/immutable/chunks/Bp63qm3L.js → app/webui/build/_app/immutable/chunks/Dyvi1wBH.js} +1 -1
  81. package/{webui/build/_app/immutable/chunks/CmjOpds-.js → app/webui/build/_app/immutable/chunks/_qj9U-za.js} +1 -1
  82. package/app/webui/build/_app/immutable/chunks/vtBo8kBV.js +1 -0
  83. package/app/webui/build/_app/immutable/entry/app.RFfWi3_i.js +2 -0
  84. package/app/webui/build/_app/immutable/entry/start.DU_kyeGS.js +1 -0
  85. package/{webui/build/_app/immutable/nodes/0.I1lQdWMl.js → app/webui/build/_app/immutable/nodes/0.DK_mcVDm.js} +1 -1
  86. package/app/webui/build/_app/immutable/nodes/1.0PRrU2uQ.js +1 -0
  87. package/{webui/build/_app/immutable/nodes/10.CvfUsqsw.js → app/webui/build/_app/immutable/nodes/10.CsxzlUER.js} +1 -1
  88. package/app/webui/build/_app/immutable/nodes/11.D-PkhIRW.js +1 -0
  89. package/{webui/build/_app/immutable/nodes/12.DVFJuIWI.js → app/webui/build/_app/immutable/nodes/12.GGf-JLUY.js} +1 -1
  90. package/app/webui/build/_app/immutable/nodes/13.DWWcH27k.js +6 -0
  91. package/app/webui/build/_app/immutable/nodes/14.COwSLwDN.js +1 -0
  92. package/app/webui/build/_app/immutable/nodes/15.nDN_AHrs.js +1 -0
  93. package/app/webui/build/_app/immutable/nodes/16.zfSe93Ab.js +24 -0
  94. package/app/webui/build/_app/immutable/nodes/2.AJd2163d.js +1 -0
  95. package/app/webui/build/_app/immutable/nodes/3.CEVEHuaH.js +1 -0
  96. package/app/webui/build/_app/immutable/nodes/4.BT_N8pCh.js +2 -0
  97. package/{webui/build/_app/immutable/nodes/5.B6fR3n6J.js → app/webui/build/_app/immutable/nodes/5.BZScQ2CH.js} +1 -1
  98. package/{webui/build/_app/immutable/nodes/6.j2O5Mwjv.js → app/webui/build/_app/immutable/nodes/6.CkFk8X--.js} +1 -1
  99. package/app/webui/build/_app/immutable/nodes/7.CuQJk7te.js +1 -0
  100. package/{webui/build/_app/immutable/nodes/8.Bw_d63B_.js → app/webui/build/_app/immutable/nodes/8.DIavWJnU.js} +1 -1
  101. package/{webui/build/_app/immutable/nodes/9.pMMi5PP6.js → app/webui/build/_app/immutable/nodes/9.Db30M8x0.js} +1 -1
  102. package/app/webui/build/_app/version.json +1 -0
  103. package/app/webui/build/apple-touch-icon.png +0 -0
  104. package/app/webui/build/favicon.ico +0 -0
  105. package/app/webui/build/favicon.png +0 -0
  106. package/bin/rssany.js +226 -6
  107. package/dist/index.js +209 -152
  108. package/dist/index.js.map +1 -1
  109. package/package.json +22 -16
  110. package/scripts/dev.mjs +114 -0
  111. package/scripts/reset.mjs +1 -1
  112. package/init/config.json +0 -17
  113. package/init/sources.json +0 -353
  114. package/statics/401.html +0 -56
  115. package/statics/404.html +0 -12
  116. package/statics/image.png +0 -0
  117. package/webui/build/200.html +0 -49
  118. package/webui/build/_app/immutable/assets/13.BhO9zvFi.css +0 -1
  119. package/webui/build/_app/immutable/assets/14.CujIhjQK.css +0 -1
  120. package/webui/build/_app/immutable/assets/16.PP9XLDf7.css +0 -1
  121. package/webui/build/_app/immutable/assets/4.9wPHhVwv.css +0 -1
  122. package/webui/build/_app/immutable/chunks/5LVkDJzw.js +0 -1
  123. package/webui/build/_app/immutable/chunks/B2Q1a1-H.js +0 -2
  124. package/webui/build/_app/immutable/chunks/BbWUOQ_m.js +0 -1
  125. package/webui/build/_app/immutable/chunks/Bns1MuyM.js +0 -36
  126. package/webui/build/_app/immutable/chunks/DMWEh-Ek.js +0 -2
  127. package/webui/build/_app/immutable/chunks/bvuf_jZd.js +0 -36
  128. package/webui/build/_app/immutable/chunks/lk5LaiqA.js +0 -1
  129. package/webui/build/_app/immutable/chunks/mW5RwvnK.js +0 -13
  130. package/webui/build/_app/immutable/entry/app.BVkrDt5l.js +0 -2
  131. package/webui/build/_app/immutable/entry/start.D3Q-BMMd.js +0 -1
  132. package/webui/build/_app/immutable/nodes/1.BiQQfx2j.js +0 -1
  133. package/webui/build/_app/immutable/nodes/11.B4LHPNL6.js +0 -1
  134. package/webui/build/_app/immutable/nodes/13.nT3SOzEB.js +0 -1
  135. package/webui/build/_app/immutable/nodes/14.DfaAf0f8.js +0 -1
  136. package/webui/build/_app/immutable/nodes/15.CMzkX9OK.js +0 -1
  137. package/webui/build/_app/immutable/nodes/16.zPgTQNze.js +0 -24
  138. package/webui/build/_app/immutable/nodes/2.BYWOpaxy.js +0 -1
  139. package/webui/build/_app/immutable/nodes/3.B8Viux9S.js +0 -1
  140. package/webui/build/_app/immutable/nodes/4.DTSxpKm7.js +0 -2
  141. package/webui/build/_app/immutable/nodes/7.Bd2USIrl.js +0 -1
  142. package/webui/build/_app/version.json +0 -1
  143. /package/{webui → app/webui}/build/_app/env.js +0 -0
  144. /package/{webui → app/webui}/build/_app/immutable/assets/10.Dj8_pmut.css +0 -0
  145. /package/{webui → app/webui}/build/_app/immutable/assets/11.qYZMiTb0.css +0 -0
  146. /package/{webui → app/webui}/build/_app/immutable/assets/12.DfJcfUWl.css +0 -0
  147. /package/{webui → app/webui}/build/_app/immutable/assets/15.nNGjXhCQ.css +0 -0
  148. /package/{webui → app/webui}/build/_app/immutable/assets/5.B-dPiwB7.css +0 -0
  149. /package/{webui → app/webui}/build/_app/immutable/assets/6.B27N7pdA.css +0 -0
  150. /package/{webui → app/webui}/build/_app/immutable/assets/7.CrNxmd8B.css +0 -0
  151. /package/{webui → app/webui}/build/_app/immutable/assets/8.Cgji2b15.css +0 -0
  152. /package/{webui → app/webui}/build/_app/immutable/assets/9.BsCIAvn3.css +0 -0
  153. /package/{webui → app/webui}/build/_app/immutable/assets/BackToParentRoute.DGk-X5ow.css +0 -0
  154. /package/{webui → app/webui}/build/_app/immutable/chunks/BUApaBEI.js +0 -0
  155. /package/{webui → app/webui}/build/_app/immutable/chunks/Bfc47y5P.js +0 -0
  156. /package/{webui → app/webui}/build/_app/immutable/chunks/CBY2biv-.js +0 -0
  157. /package/{webui → app/webui}/build/_app/immutable/chunks/hp4PFHFv.js +0 -0
  158. /package/{webui → app/webui}/build/_app/immutable/nodes/17.BtYZF6FM.js +0 -0
  159. /package/{webui → app/webui}/build/_app/immutable/nodes/18.BIzqhTqv.js +0 -0
@@ -1 +1 @@
1
- import{h as s,a as l}from"./BbWUOQ_m.js";function h(n,a,r,t,d){var i;s&&l();var e=(i=a.$$slots)==null?void 0:i[r],f=!1;e===!0&&(e=a.children,f=!0),e===void 0||e(n,f?()=>t:t)}export{h as s};
1
+ import{h as s,a as l}from"./vtBo8kBV.js";function h(n,a,r,t,d){var i;s&&l();var e=(i=a.$$slots)==null?void 0:i[r],f=!1;e===!0&&(e=a.children,f=!0),e===void 0||e(n,f?()=>t:t)}export{h as s};
@@ -1 +1 @@
1
- import{aj as o,U as a,aE as d}from"./BbWUOQ_m.js";function p(s,u,e){if(s==null)return u(void 0),o;const t=a(()=>s.subscribe(u,e));return t.unsubscribe?()=>t.unsubscribe():t}const i=[];function _(s,u=o){let e=null;const t=new Set;function c(r){if(d(s,r)&&(s=r,e)){const b=!i.length;for(const n of t)n[1](),i.push(n,s);if(b){for(let n=0;n<i.length;n+=2)i[n][0](i[n+1]);i.length=0}}}function f(r){c(r(s))}function l(r,b=o){const n=[r,b];return t.add(n),t.size===1&&(e=u(c,f)||o),r(s),()=>{t.delete(n),t.size===0&&e&&(e(),e=null)}}return{set:c,update:f,subscribe:l}}function h(s){let u;return p(s,e=>u=e)(),u}export{h as g,p as s,_ as w};
1
+ import{aj as o,U as a,aE as d}from"./vtBo8kBV.js";function p(s,u,e){if(s==null)return u(void 0),o;const t=a(()=>s.subscribe(u,e));return t.unsubscribe?()=>t.unsubscribe():t}const i=[];function _(s,u=o){let e=null;const t=new Set;function c(r){if(d(s,r)&&(s=r,e)){const b=!i.length;for(const n of t)n[1](),i.push(n,s);if(b){for(let n=0;n<i.length;n+=2)i[n][0](i[n+1]);i.length=0}}}function f(r){c(r(s))}function l(r,b=o){const n=[r,b];return t.add(n),t.size===1&&(e=u(c,f)||o),r(s),()=>{t.delete(n),t.size===0&&e&&(e(),e=null)}}return{set:c,update:f,subscribe:l}}function h(s){let u;return p(s,e=>u=e)(),u}export{h as g,p as s,_ as w};
@@ -1 +1 @@
1
- import{s as e}from"./5LVkDJzw.js";const r=()=>{const s=e;return{page:{subscribe:s.page.subscribe},navigating:{subscribe:s.navigating.subscribe},updated:s.updated}},b={subscribe(s){return r().page.subscribe(s)}};export{b as p};
1
+ import{s as e}from"./CVW0ymE1.js";const r=()=>{const s=e;return{page:{subscribe:s.page.subscribe},navigating:{subscribe:s.navigating.subscribe},updated:s.updated}},b={subscribe(s){return r().page.subscribe(s)}};export{b as p};
@@ -1,4 +1,4 @@
1
- import{c as n,a as i}from"./BK3WtZwv.js";import"./lk5LaiqA.js";import{f as m}from"./BbWUOQ_m.js";import{s as l}from"./B-OsL1Ct.js";import{l as c,s as d}from"./xtNWTdbD.js";import{I as f}from"./mW5RwvnK.js";function y(t,o){const r=c(o,["children","$$slots","$$events","$$legacy"]);/**
1
+ import{c as n,a as i}from"./CS53ooo0.js";import"./BA4Gucnq.js";import{f as m}from"./vtBo8kBV.js";import{s as l}from"./ChUctqXA.js";import{l as c,s as d}from"./BAJAS8BI.js";import{I as f}from"./DsxvjlCC.js";function y(t,o){const r=c(o,["children","$$slots","$$events","$$legacy"]);/**
2
2
  * @license lucide-svelte v0.460.1 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -0,0 +1 @@
1
+ var Ht=Object.defineProperty;var Bt=n=>{throw TypeError(n)};var Jt=(n,t,e)=>t in n?Ht(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e;var l=(n,t,e)=>Jt(n,typeof t!="symbol"?t+"":t,e),Lt=(n,t,e)=>t.has(n)||Bt("Cannot "+e);var r=(n,t,e)=>(Lt(n,t,"read from private field"),e?e.call(n):t.get(n)),c=(n,t,e)=>t.has(n)?Bt("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(n):t.set(n,e);import{p as pt,c as N,a as f,f as st}from"./CS53ooo0.js";import{b7 as O,i as s,a5 as h,aA as v,at as nt,f as y,au as it,av as ft,aj as at,ax as gt,aw as Mt}from"./vtBo8kBV.js";import{C as Qt,a as Kt,b as u,w as jt,o as Vt,c as Xt,d as vt,S as Yt,E as Zt,e as ut,g as $t,f as mt,s as S,m as D,n as M,F as te,h as ee,D as re,T as oe,i as Tt}from"./DsxvjlCC.js";import{i as x}from"./BkD3yAYe.js";import{d as yt}from"./DoRPmqLn.js";import{p as d,r as bt,s as Ct}from"./BAJAS8BI.js";const se=Xt({component:"dialog",parts:["content","trigger","overlay","title","description","close","cancel","action"]}),K=new Qt("Dialog.Root | AlertDialog.Root");var U,W,q,G,H,J,L,Q,V,X,Y;const St=class St{constructor(t,e){l(this,"opts");c(this,U,O(null));c(this,W,O(null));c(this,q,O(null));c(this,G,O(null));c(this,H,O(void 0));c(this,J,O(void 0));c(this,L,O(void 0));c(this,Q,O(void 0));c(this,V,O(null));c(this,X,O(0));l(this,"depth");l(this,"parent");l(this,"contentPresence");l(this,"overlayPresence");l(this,"getBitsAttr",t=>se.getAttr(t,this.opts.variant.current));c(this,Y,v(()=>({"data-state":$t(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 Kt({ref:u(()=>this.contentNode),open:this.opts.open,enabled:!0,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new Kt({ref:u(()=>this.overlayNode),open:this.opts.open,enabled:!0}),jt(()=>this.opts.open.current,i=>{this.parent&&(i?this.parent.incrementNested():this.parent.decrementNested())},{lazy:!0}),Vt(()=>{var i;this.opts.open.current&&((i=this.parent)==null||i.decrementNested())})}static create(t){const e=K.getOr(null);return K.set(new St(t,e))}get triggerNode(){return s(r(this,U))}set triggerNode(t){h(r(this,U),t,!0)}get contentNode(){return s(r(this,W))}set contentNode(t){h(r(this,W),t,!0)}get overlayNode(){return s(r(this,q))}set overlayNode(t){h(r(this,q),t,!0)}get descriptionNode(){return s(r(this,G))}set descriptionNode(t){h(r(this,G),t,!0)}get contentId(){return s(r(this,H))}set contentId(t){h(r(this,H),t,!0)}get titleId(){return s(r(this,J))}set titleId(t){h(r(this,J),t,!0)}get triggerId(){return s(r(this,L))}set triggerId(t){h(r(this,L),t,!0)}get descriptionId(){return s(r(this,Q))}set descriptionId(t){h(r(this,Q),t,!0)}get cancelNode(){return s(r(this,V))}set cancelNode(t){h(r(this,V),t,!0)}get nestedOpenCount(){return s(r(this,X))}set nestedOpenCount(t){h(r(this,X),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 s(r(this,Y))}set sharedProps(t){h(r(this,Y),t)}};U=new WeakMap,W=new WeakMap,q=new WeakMap,G=new WeakMap,H=new WeakMap,J=new WeakMap,L=new WeakMap,Q=new WeakMap,V=new WeakMap,X=new WeakMap,Y=new WeakMap;let Ot=St;var Z;const kt=class kt{constructor(t,e){l(this,"opts");l(this,"root");l(this,"attachment");c(this,Z,v(()=>({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=vt(this.opts.ref),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}static create(t){return new kt(t,K.get())}onclick(t){this.opts.disabled.current||t.button>0||this.root.handleClose()}onkeydown(t){this.opts.disabled.current||(t.key===Yt||t.key===Zt)&&(t.preventDefault(),this.root.handleClose())}get props(){return s(r(this,Z))}set props(t){h(r(this,Z),t)}};Z=new WeakMap;let Nt=kt;var $;const Ft=class Ft{constructor(t,e){l(this,"opts");l(this,"root");l(this,"attachment");c(this,$,v(()=>({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=vt(this.opts.ref),jt.pre(()=>this.opts.id.current,i=>{this.root.titleId=i})}static create(t){return new Ft(t,K.get())}get props(){return s(r(this,$))}set props(t){h(r(this,$),t)}};$=new WeakMap;let It=Ft;var tt,et;const Dt=class Dt{constructor(t,e){l(this,"opts");l(this,"root");l(this,"attachment");c(this,tt,v(()=>({open:this.root.opts.open.current})));c(this,et,v(()=>({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":ut(this.root.nestedOpenCount>0),"data-nested":ut(this.root.parent!==null),...this.root.sharedProps,...this.attachment})));this.opts=t,this.root=e,this.attachment=vt(this.opts.ref,i=>{this.root.contentNode=i,this.root.contentId=i==null?void 0:i.id})}static create(t){return new Dt(t,K.get())}get snippetProps(){return s(r(this,tt))}set snippetProps(t){h(r(this,tt),t)}get props(){return s(r(this,et))}set props(t){h(r(this,et),t)}get shouldRender(){return this.root.contentPresence.shouldRender}};tt=new WeakMap,et=new WeakMap;let wt=Dt;var rt,ot;const Et=class Et{constructor(t,e){l(this,"opts");l(this,"root");l(this,"attachment");c(this,rt,v(()=>({open:this.root.opts.open.current})));c(this,ot,v(()=>({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":ut(this.root.nestedOpenCount>0),"data-nested":ut(this.root.parent!==null),...this.root.sharedProps,...this.attachment})));this.opts=t,this.root=e,this.attachment=vt(this.opts.ref,i=>this.root.overlayNode=i)}static create(t){return new Et(t,K.get())}get snippetProps(){return s(r(this,rt))}set snippetProps(t){h(r(this,rt),t)}get props(){return s(r(this,ot))}set props(t){h(r(this,ot),t)}get shouldRender(){return this.root.overlayPresence.shouldRender}};rt=new WeakMap,ot=new WeakMap;let At=Et;var ne=st("<div><!></div>");function Pe(n,t){const e=pt();nt(t,!0);let i=d(t,"id",19,()=>mt(e)),m=d(t,"ref",15,null),b=d(t,"level",3,2),I=bt(t,["$$slots","$$events","$$legacy","id","ref","child","children","level"]);const g=It.create({id:u(()=>i()),level:u(()=>b()),ref:u(()=>m(),a=>m(a))}),_=v(()=>D(I,g.props));var C=N(),E=y(C);{var k=a=>{var o=N(),p=y(o);S(p,()=>t.child,()=>({props:s(_)})),f(a,o)},P=a=>{var o=ne();yt(o,()=>({...s(_)}));var p=ft(o);S(p,()=>t.children??at),gt(o),f(a,o)};x(E,a=>{t.child?a(k):a(P,-1)})}f(n,C),it()}var ie=st("<div><!></div>");function _e(n,t){const e=pt();nt(t,!0);let i=d(t,"id",19,()=>mt(e)),m=d(t,"forceMount",3,!1),b=d(t,"ref",15,null),I=bt(t,["$$slots","$$events","$$legacy","id","forceMount","child","children","ref"]);const g=At.create({id:u(()=>i()),ref:u(()=>b(),P=>b(P))}),_=v(()=>D(I,g.props));var C=N(),E=y(C);{var k=P=>{var a=N(),o=y(a);{var p=F=>{var w=N(),A=y(w);{let lt=v(()=>({props:D(s(_)),...g.snippetProps}));S(A,()=>t.child,()=>s(lt))}f(F,w)},dt=F=>{var w=ie();yt(w,lt=>({...lt}),[()=>D(s(_))]);var A=ft(w);S(A,()=>t.children??at,()=>g.snippetProps),gt(w),f(F,w)};x(o,F=>{t.child?F(p):F(dt,-1)})}f(P,a)};x(E,P=>{(g.shouldRender||m())&&P(k)})}f(n,C),it()}function Ce(n,t){nt(t,!0);let e=d(t,"open",15,!1),i=d(t,"onOpenChange",3,M),m=d(t,"onOpenChangeComplete",3,M);Ot.create({variant:u(()=>"dialog"),open:u(()=>e(),g=>{e(g),i()(g)}),onOpenChangeComplete:u(()=>m())});var b=N(),I=y(b);S(I,()=>t.children??at),f(n,b),it()}var ae=st("<button><!></button>");function Oe(n,t){const e=pt();nt(t,!0);let i=d(t,"id",19,()=>mt(e)),m=d(t,"ref",15,null),b=d(t,"disabled",3,!1),I=bt(t,["$$slots","$$events","$$legacy","children","child","id","ref","disabled"]);const g=Nt.create({variant:u(()=>"close"),id:u(()=>i()),ref:u(()=>m(),a=>m(a)),disabled:u(()=>!!b())}),_=v(()=>D(I,g.props));var C=N(),E=y(C);{var k=a=>{var o=N(),p=y(o);S(p,()=>t.child,()=>({props:s(_)})),f(a,o)},P=a=>{var o=ae();yt(o,()=>({...s(_)}));var p=ft(o);S(p,()=>t.children??at),gt(o),f(a,o)};x(E,a=>{t.child?a(k):a(P,-1)})}f(n,C),it()}var de=st("<!> <!>",1),le=st("<!> <div><!></div>",1);function Ne(n,t){const e=pt();nt(t,!0);let i=d(t,"id",19,()=>mt(e)),m=d(t,"ref",15,null),b=d(t,"forceMount",3,!1),I=d(t,"onCloseAutoFocus",3,M),g=d(t,"onOpenAutoFocus",3,M),_=d(t,"onEscapeKeydown",3,M),C=d(t,"onInteractOutside",3,M),E=d(t,"trapFocus",3,!0),k=d(t,"preventScroll",3,!0),P=d(t,"restoreScrollDelay",3,null),a=bt(t,["$$slots","$$events","$$legacy","id","children","child","ref","forceMount","onCloseAutoFocus","onOpenAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","restoreScrollDelay"]);const o=wt.create({id:u(()=>i()),ref:u(()=>m(),A=>m(A))}),p=v(()=>D(a,o.props));var dt=N(),F=y(dt);{var w=A=>{te(A,{get ref(){return o.opts.ref},loop:!0,get trapFocus(){return E()},get enabled(){return o.root.opts.open.current},get onOpenAutoFocus(){return g()},get onCloseAutoFocus(){return I()},focusScope:(zt,Pt)=>{let Rt=()=>Pt==null?void 0:Pt().props;ee(zt,Ct(()=>s(p),{get enabled(){return o.root.opts.open.current},get ref(){return o.opts.ref},onEscapeKeydown:ct=>{_()(ct),!ct.defaultPrevented&&o.root.handleClose()},children:(ct,ce)=>{re(ct,Ct(()=>s(p),{get ref(){return o.opts.ref},get enabled(){return o.root.opts.open.current},onInteractOutside:ht=>{C()(ht),!ht.defaultPrevented&&o.root.handleClose()},children:(ht,he)=>{oe(ht,Ct(()=>s(p),{get ref(){return o.opts.ref},get enabled(){return o.root.opts.open.current},children:(Ut,ue)=>{var xt=N(),Wt=y(xt);{var qt=B=>{var T=de(),j=y(T);{var z=R=>{Tt(R,{get preventScroll(){return k()},get restoreScrollDelay(){return P()}})};x(j,R=>{o.root.opts.open.current&&R(z)})}var _t=Mt(j,2);{let R=v(()=>({props:D(s(p),Rt()),...o.snippetProps}));S(_t,()=>t.child,()=>s(R))}f(B,T)},Gt=B=>{var T=le(),j=y(T);Tt(j,{get preventScroll(){return k()}});var z=Mt(j,2);yt(z,R=>({...R}),[()=>D(s(p),Rt())]);var _t=ft(z);S(_t,()=>t.children??at),gt(z),f(B,T)};x(Wt,B=>{t.child?B(qt):B(Gt,-1)})}f(Ut,xt)},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{focusScope:!0}})};x(F,A=>{(o.shouldRender||b())&&A(w)})}f(n,dt),it()}export{Ce as D,_e as a,Ne as b,Pe as c,Oe as d};
@@ -1 +1 @@
1
- import{h as t,a as i,a0 as c,b as f}from"./BbWUOQ_m.js";import{B as y}from"./Dt2CddFe.js";const b=Symbol("NaN");function m(r,e,n){t&&i();var o=new y(r),s=!c();f(()=>{var a=e();a!==a&&(a=b),s&&a!==null&&typeof a=="object"&&(a={}),o.ensure(a,n)})}export{m as k};
1
+ import{h as t,a as i,a0 as c,b as f}from"./vtBo8kBV.js";import{B as y}from"./BkD3yAYe.js";const b=Symbol("NaN");function m(r,e,n){t&&i();var o=new y(r),s=!c();f(()=>{var a=e();a!==a&&(a=b),s&&a!==null&&typeof a=="object"&&(a={}),o.ensure(a,n)})}export{m as k};
@@ -0,0 +1,36 @@
1
+ import{c as X,a as s,f as h,t as xt}from"./CS53ooo0.js";import{f as H,at as mt,b7 as ne,a4 as at,an as We,a5 as L,av as c,ax as l,aw as R,i as e,az as w,au as _t,aA as $,U as tt,ay as kt}from"./vtBo8kBV.js";import{d as gt,a as ze,s as j,e as ot,r as it}from"./B2cyTHdf.js";import{i as D}from"./BkD3yAYe.js";import{e as st,i as $t}from"./CFwxUBGi.js";import{c as Te}from"./C4uF_YIK.js";import{a as Ye,s as S,c as rt}from"./DoRPmqLn.js";import{l as xe,s as ke,p as N}from"./BAJAS8BI.js";import{a as Ge}from"./CBY2biv-.js";import{s as Be}from"./CGCMIfh3.js";import{w as pt}from"./ClknbeNl.js";import{I as $e,P as Pt}from"./DsxvjlCC.js";import{a as wt,b as St,c as It,d as Mt,D as Dt}from"./DAdOEnFb.js";import"./BA4Gucnq.js";import{s as Pe}from"./ChUctqXA.js";function lt(_,a){const d=xe(a,["children","$$slots","$$events","$$legacy"]);/**
2
+ * @license lucide-svelte v0.460.1 - ISC
3
+ *
4
+ * This source code is licensed under the ISC license.
5
+ * See the LICENSE file in the root directory of this source tree.
6
+ */const i=[["path",{d:"M4 11a9 9 0 0 1 9 9"}],["path",{d:"M4 4a16 16 0 0 1 16 16"}],["circle",{cx:"5",cy:"19",r:"1"}]];$e(_,ke({name:"rss"},()=>d,{get iconNode(){return i},children:(b,A)=>{var p=X(),v=H(p);Pe(v,a,"default",{}),s(b,p)},$$slots:{default:!0}}))}function ct(_,a){const d=xe(a,["children","$$slots","$$events","$$legacy"]);/**
7
+ * @license lucide-svelte v0.460.1 - ISC
8
+ *
9
+ * This source code is licensed under the ISC license.
10
+ * See the LICENSE file in the root directory of this source tree.
11
+ */const i=[["path",{d:"M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z"}]];$e(_,ke({name:"puzzle"},()=>d,{get iconNode(){return i},children:(b,A)=>{var p=X(),v=H(p);Pe(v,a,"default",{}),s(b,p)},$$slots:{default:!0}}))}function Lt(_,a){const d=xe(a,["children","$$slots","$$events","$$legacy"]);/**
12
+ * @license lucide-svelte v0.460.1 - ISC
13
+ *
14
+ * This source code is licensed under the ISC license.
15
+ * See the LICENSE file in the root directory of this source tree.
16
+ */const i=[["path",{d:"M18 6 6 18"}],["path",{d:"m6 6 12 12"}]];$e(_,ke({name:"x"},()=>d,{get iconNode(){return i},children:(b,A)=>{var p=X(),v=H(p);Pe(v,a,"default",{}),s(b,p)},$$slots:{default:!0}}))}function dt(_){const a=_.trim();if(!a)return"";const d=a.charAt(0);return/[a-z0-9\u4e00-\u9fff]/i.test(d)?d.toUpperCase():""}function yt(_,a){const d=i=>{const b=i==null?void 0:i.trim();if(!b)return"";try{return new URL(b.startsWith("http")?b:`https://${b}`).hostname.replace(/^www\./i,"")||""}catch{return""}};return d(_)||d(a||"")}function Nt(_){if(!_)return"";const a=_.charAt(0);return/[a-z0-9\u4e00-\u9fff]/i.test(a)?a.toUpperCase():""}function Tt(_,a,d,i){const b=yt(_,a),A=Nt(b);if(A)return A;if(d&&d.length>0){const v=dt(d[0].name);if(v)return v}if(i){const v=dt(i);if(v)return v}const p=(a||"").trim();if(p){const v=p.charAt(0);return/[a-z0-9\u4e00-\u9fff]/i.test(v)?v.toUpperCase():"?"}return"?"}function Rt(_){return _?`/api/feed-favicon?domain=${encodeURIComponent(_)}`:""}function Ht(_){let a=2166136261;for(let b=0;b<_.length;b++)a^=_.charCodeAt(b),a=Math.imul(a,16777619);return`hsl(${(a>>>0)%360} 46% 46%)`}function At(_){const a=_.link||"",d=_.sourceRef,{author:i,authors:b,guid:A,title:p}=_,v=yt(a,d),W=Rt(v),fe=Tt(a,d,b,i),T=(A||[a,d,p,i,b==null?void 0:b.map(C=>C.name).join("|")].filter(Boolean).join("|")||fe).trim(),J=Ht(T||"feed");return{siteHost:v,faviconSrc:W,letter:fe,avatarSeed:T,avatarBg:J}}var Ct=h('<img alt="" class="feed-card-favicon svelte-1dgd2z5" width="26" height="26" loading="lazy" decoding="async"/>'),Ft=h('<span class="feed-card-icon-letter svelte-1dgd2z5" aria-hidden="true"> </span>'),Ut=h('<a data-sveltekit-preload-data="hover"><!></a>'),jt=h('<img alt="" class="feed-card-favicon svelte-1dgd2z5" width="26" height="26" loading="lazy" decoding="async"/>'),Et=h('<span class="feed-card-icon-letter svelte-1dgd2z5" aria-hidden="true"> </span>'),Ot=h('<div role="img"><!></div>'),Bt=h('<span class="feed-card-author-sep svelte-1dgd2z5">、</span>'),Jt=h('<a class="feed-card-author-link svelte-1dgd2z5"> </a><!>',1),qt=h('<a class="feed-card-author-link svelte-1dgd2z5"> </a>'),Xt=h('<span class="feed-card-author-plain svelte-1dgd2z5"> </span>'),Gt=h('<span class="feed-card-author-empty svelte-1dgd2z5">未署名</span>'),Wt=h('<time class="feed-card-time svelte-1dgd2z5"> </time>'),Yt=h('<a class="feed-card-title svelte-1dgd2z5" target="_blank" rel="noopener noreferrer"> </a>'),Kt=h('<span class="feed-card-title feed-card-title-text svelte-1dgd2z5"> </span>'),Qt=h('<div class="feed-card-title-row svelte-1dgd2z5"><!></div>'),Vt=h('<a class="feed-card-summary-link svelte-1dgd2z5" target="_blank" rel="noopener noreferrer" title="打开原文"><p class="feed-card-summary svelte-1dgd2z5"> </p></a>'),Zt=h('<p class="feed-card-summary svelte-1dgd2z5"> </p>'),er=h('<a class="feed-card-open-original svelte-1dgd2z5" target="_blank" rel="noopener noreferrer">查看原文</a>'),tr=h('<a class="feed-card-media-anchor svelte-1dgd2z5" target="_blank" rel="noopener noreferrer" title="打开原文"><img alt="" class="feed-card-media-img svelte-1dgd2z5" loading="lazy" decoding="async"/></a>'),rr=h('<img alt="" class="feed-card-media-img svelte-1dgd2z5" loading="lazy" decoding="async"/>'),ar=h('<div class="feed-card-media svelte-1dgd2z5"><!></div>'),sr=h('<button class="ctx-menu-item svelte-1dgd2z5" type="button"> </button>'),nr=h('<button class="ctx-menu-item ctx-delete svelte-1dgd2z5" type="button">删除</button>'),or=h('<div class="ctx-menu-backdrop svelte-1dgd2z5" role="presentation"><div class="ctx-menu svelte-1dgd2z5" role="menu" tabindex="-1"><!> <!></div></div>'),ir=h('<div role="article"><div class="feed-card-aside svelte-1dgd2z5"><!></div> <div class="feed-card-main svelte-1dgd2z5"><div class="feed-card-author-line svelte-1dgd2z5"><span class="feed-card-author svelte-1dgd2z5"><!></span> <!></div> <!> <!> <!></div></div> <!>',1);function vt(_,a){mt(a,!0);let d=N(a,"title",3,""),i=N(a,"link",3,""),b=N(a,"summary",3,void 0),A=N(a,"content",3,void 0),p=N(a,"author",3,void 0),v=N(a,"pubDate",3,void 0),W=N(a,"sourceRef",3,void 0),fe=N(a,"sourceHref",3,void 0),T=N(a,"authorHref",3,void 0),J=N(a,"authors",3,void 0),C=N(a,"guid",3,void 0),Y=N(a,"coverImg",3,void 0),ee=N(a,"rawItem",3,void 0),K=N(a,"onDelete",3,void 0),Q=ne(at({show:!1,x:0,y:0})),oe=ne("idle"),he=ne(!1);function Ke(t){return t.replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,"").replace(/<style\b[^<]*(?:(?!<\/style>)<[^<]*)*<\/style>/gi,"").replace(/<[^>]+>/g," ").replace(/\s+/g," ").trim()}function Je(t){const r=t.match(/!\[[^\]]*\]\(([^)\s]+)(?:\s+['"][^'"]*['"])?\)/);if(r!=null&&r[1])return r[1].trim();const m=t.match(/<img\b[^>]*\bsrc=["']([^"']+)["'][^>]*>/i);if(m!=null&&m[1])return m[1].trim()}function qe(t){return t.replace(/!\[[^\]]*\]\(([^)\s]+)(?:\s+['"][^'"]*['"])?\)/g," ").replace(/<img\b[^>]*>/gi," ")}function Qe(t){if(!t)return"";const r=new Date(t);if(Number.isNaN(r.getTime()))return"";const f=Date.now()-r.getTime(),I=r.toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"});if(f<0)return I;const u=Math.floor(f/36e5),n=Math.floor(f/864e5);return n>=7?I:n>=1?`${n} day${n===1?"":"s"} ago`:u>=1?`${u} hour${u===1?"":"s"} ago`:"just now"}We(()=>{i(),W(),L(he,!1)});const we=$(()=>At({link:i()||"",sourceRef:W(),author:p(),authors:J(),guid:C(),title:d()})),te=$(()=>e(we).siteHost),Se=$(()=>e(we).faviconSrc),re=$(()=>!!(e(Se)&&!e(he))),Re=$(()=>e(we).letter),He=$(()=>e(we).avatarBg),Ae=$(()=>{var t,r;return(((t=A())==null?void 0:t.trim())||((r=b())==null?void 0:r.trim())||"").trim()}),Ce=$(()=>{var t;return((t=Y())==null?void 0:t.trim())||Je(e(Ae))}),Ie=$(()=>e(Ae)?Ke(qe(e(Ae))):""),x=$(()=>{var t;return!!((t=d())!=null&&t.trim())}),z=$(()=>!!(i()&&!e(x)&&e(Ie)));function k(t){!ee()&&!(C()&&K())||(t.preventDefault(),L(oe,"idle"),L(Q,{show:!0,x:t.clientX,y:t.clientY},!0))}function M(){L(Q,{...e(Q),show:!1},!0)}async function O(){if(!ee())return;const t=JSON.stringify(ee(),null,2);try{await navigator.clipboard.writeText(t),L(oe,"copied"),window.setTimeout(M,350)}catch{L(oe,"error")}}function V(){C()&&K()&&(K()(C()),M())}var Z=ir(),q=H(Z);let ie;var le=c(q),me=c(le);{var Me=t=>{var r=Ut();let m,f;var I=c(r);{var u=o=>{var g=Ct();w(()=>S(g,"src",e(Se))),ot("error",g,()=>L(he,!0)),it(g),s(o,g)},n=o=>{var g=Ft(),F=c(g,!0);l(g),w(()=>j(F,e(Re))),s(o,g)};D(I,o=>{e(re)?o(u):o(n,-1)})}l(r),w(()=>{m=Ye(r,1,"feed-card-icon svelte-1dgd2z5",null,m,{"feed-card-icon--favicon":e(re)}),S(r,"href",fe()),S(r,"title",W()||e(te)||"筛选该来源"),f=rt(r,"",f,{"background-color":e(re)?"transparent":e(He),color:"#fff"})}),s(t,r)},_e=t=>{var r=Ot();let m,f;var I=c(r);{var u=o=>{var g=jt();w(()=>S(g,"src",e(Se))),ot("error",g,()=>L(he,!0)),it(g),s(o,g)},n=o=>{var g=Et(),F=c(g,!0);l(g),w(()=>j(F,e(Re))),s(o,g)};D(I,o=>{e(re)?o(u):o(n,-1)})}l(r),w(()=>{m=Ye(r,1,"feed-card-icon svelte-1dgd2z5",null,m,{"feed-card-icon--favicon":e(re)}),S(r,"title",W()||e(te)||"来源"),S(r,"aria-label",W()||e(te)||"来源"),f=rt(r,"",f,{"background-color":e(re)?"transparent":e(He),color:"#fff"})}),s(t,r)};D(me,t=>{fe()?t(Me):t(_e,-1)})}l(le);var ge=R(le,2),ae=c(ge),ce=c(ae),pe=c(ce);{var de=t=>{var r=X(),m=H(r);st(m,17,J,$t,(f,I,u)=>{var n=Jt(),o=H(n),g=c(o,!0);l(o);var F=R(o);{var P=y=>{var B=Bt();s(y,B)};D(F,y=>{u<J().length-1&&y(P)})}w(()=>{S(o,"href",e(I).href),j(g,e(I).name)}),s(f,n)}),s(t,r)},Fe=t=>{var r=X(),m=H(r);{var f=u=>{var n=qt(),o=c(n,!0);l(n),w(()=>{S(n,"href",T()),j(o,p())}),s(u,n)},I=u=>{var n=Xt(),o=c(n,!0);l(n),w(()=>j(o,p())),s(u,n)};D(m,u=>{T()?u(f):u(I,-1)})}s(t,r)},Xe=t=>{var r=Gt();s(t,r)};D(pe,t=>{J()&&J().length>0?t(de):p()?t(Fe,1):t(Xe,-1)})}l(ce);var G=R(ce,2);{var ve=t=>{var r=Wt(),m=c(r,!0);l(r),w(f=>{S(r,"datetime",v()),S(r,"title",v()),j(m,f)},[()=>Qe(v())]),s(t,r)};D(G,t=>{v()&&t(ve)})}l(ae);var ue=R(ae,2);{var se=t=>{var r=Qt(),m=c(r);{var f=u=>{var n=Yt(),o=c(n,!0);l(n),w(()=>{S(n,"href",i()),j(o,d())}),s(u,n)},I=u=>{var n=Kt(),o=c(n,!0);l(n),w(()=>j(o,d())),s(u,n)};D(m,u=>{i()?u(f):u(I,-1)})}l(r),s(t,r)};D(ue,t=>{e(x)&&t(se)})}var ye=R(ue,2);{var be=t=>{var r=X(),m=H(r);{var f=u=>{var n=Vt(),o=c(n),g=c(o,!0);l(o),l(n),w(()=>{S(n,"href",i()),j(g,e(Ie))}),s(u,n)},I=u=>{var n=Zt(),o=c(n,!0);l(n),w(()=>j(o,e(Ie))),s(u,n)};D(m,u=>{e(z)?u(f):u(I,-1)})}s(t,r)},De=t=>{var r=er();w(()=>S(r,"href",i())),s(t,r)};D(ye,t=>{e(Ie)?t(be):i()&&!e(x)&&t(De,1)})}var Le=R(ye,2);{var Ue=t=>{var r=ar(),m=c(r);{var f=u=>{var n=tr(),o=c(n);l(n),w(()=>{S(n,"href",i()),S(o,"src",e(Ce))}),s(u,n)},I=u=>{var n=rr();w(()=>S(n,"src",e(Ce))),s(u,n)};D(m,u=>{i()?u(f):u(I,-1)})}l(r),s(t,r)};D(Le,t=>{e(Ce)&&t(Ue)})}l(ge),l(q);var je=R(q,2);{var Ee=t=>{var r=or(),m=c(r);let f;var I=c(m);{var u=g=>{var F=sr(),P=c(F,!0);l(F),w(()=>j(P,e(oe)==="copied"?"已复制":e(oe)==="error"?"复制失败":"复制 JSON")),ze("click",F,O),s(g,F)};D(I,g=>{ee()&&g(u)})}var n=R(I,2);{var o=g=>{var F=nr();ze("click",F,V),s(g,F)};D(n,g=>{C()&&K()&&g(o)})}l(m),l(r),w(()=>f=rt(m,"",f,{left:`${e(Q).x}px`,top:`${e(Q).y}px`})),ze("click",r,M),ze("click",m,g=>g.stopPropagation()),ze("keydown",m,g=>g.stopPropagation()),s(t,r)};D(je,t=>{e(Q).show&&(ee()||C()&&K())&&t(Ee)})}w(()=>ie=Ye(q,1,"feed-card svelte-1dgd2z5",null,ie,{"ctx-deletable":!!C()&&!!K()})),ze("contextmenu",q,k),s(_,Z),_t()}gt(["contextmenu","click","keydown"]);function lr(_,a){const d=xe(a,["children","$$slots","$$events","$$legacy"]);/**
17
+ * @license lucide-svelte v0.460.1 - ISC
18
+ *
19
+ * This source code is licensed under the ISC license.
20
+ * See the LICENSE file in the root directory of this source tree.
21
+ */const i=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8"}],["path",{d:"M21 3v5h-5"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16"}],["path",{d:"M8 16H3v5"}]];$e(_,ke({name:"refresh-cw"},()=>d,{get iconNode(){return i},children:(b,A)=>{var p=X(),v=H(p);Pe(v,a,"default",{}),s(b,p)},$$slots:{default:!0}}))}function ut(_,a){const d=xe(a,["children","$$slots","$$events","$$legacy"]);/**
22
+ * @license lucide-svelte v0.460.1 - ISC
23
+ *
24
+ * This source code is licensed under the ISC license.
25
+ * See the LICENSE file in the root directory of this source tree.
26
+ */const i=[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20"}],["path",{d:"M2 12h20"}]];$e(_,ke({name:"globe"},()=>d,{get iconNode(){return i},children:(b,A)=>{var p=X(),v=H(p);Pe(v,a,"default",{}),s(b,p)},$$slots:{default:!0}}))}function ft(_,a){const d=xe(a,["children","$$slots","$$events","$$legacy"]);/**
27
+ * @license lucide-svelte v0.460.1 - ISC
28
+ *
29
+ * This source code is licensed under the ISC license.
30
+ * See the LICENSE file in the root directory of this source tree.
31
+ */const i=[["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"}]];$e(_,ke({name:"mail"},()=>d,{get iconNode(){return i},children:(b,A)=>{var p=X(),v=H(p);Pe(v,a,"default",{}),s(b,p)},$$slots:{default:!0}}))}function ht(_,a){const d=xe(a,["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 i=[["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"}]];$e(_,ke({name:"sparkles"},()=>d,{get iconNode(){return i},children:(b,A)=>{var p=X(),v=H(p);Pe(v,a,"default",{}),s(b,p)},$$slots:{default:!0}}))}const nt=pt({});function cr(_,a){nt.update(d=>({...d,[_]:a}))}function dr(_){nt.update(a=>{const d={...a};return delete d[_],d})}var vr=h('<span class="source-sheet-meta-icon svelte-ypseth"><!></span>'),ur=h('<span class="source-sheet-proxy svelte-ypseth" aria-label="已配置代理"><!></span>'),fr=h('<div class="source-sheet-state svelte-ypseth">加载中…</div>'),hr=h('<div class="source-sheet-state err svelte-ypseth"> </div>'),mr=h('<div class="source-sheet-state svelte-ypseth">暂无条目</div>'),_r=h('<div class="source-feed-cards svelte-ypseth"></div>'),gr=h('<header class="source-sheet-header svelte-ypseth"><div class="source-sheet-title-wrap svelte-ypseth"><div class="source-sheet-title-row svelte-ypseth"><div class="source-sheet-title-cluster svelte-ypseth"><!> <div class="source-sheet-header-icons svelte-ypseth"><!> <!></div></div></div> <p class="source-sheet-sub source-sheet-sub-desc svelte-ypseth"> </p></div> <!></header> <div class="source-sheet-body svelte-ypseth"><!></div>',1),pr=h("<!> <!>",1),yr=h('<span class="source-sheet-meta-icon svelte-ypseth"><!></span>'),br=h('<span class="source-sheet-proxy svelte-ypseth" aria-label="已配置代理"><!></span>'),zr=h('<div class="source-sheet-state svelte-ypseth">加载中…</div>'),xr=h('<div class="source-sheet-state err svelte-ypseth"> </div>'),kr=h('<div class="source-sheet-state svelte-ypseth">暂无条目</div>'),$r=h('<div class="source-feed-cards svelte-ypseth"></div>'),Pr=h('<header class="source-sheet-header source-sheet-header-inline svelte-ypseth"><div class="source-sheet-title-wrap svelte-ypseth"><div class="source-sheet-title-row svelte-ypseth"><div class="source-sheet-title-cluster svelte-ypseth"><h2 class="source-sheet-title svelte-ypseth"> </h2> <div class="source-sheet-header-icons svelte-ypseth"><!> <!> <button type="button"><!></button></div></div></div> <p class="source-sheet-sub source-sheet-sub-desc svelte-ypseth"> </p></div></header> <div class="source-sheet-body svelte-ypseth"><!></div>',1),wr=h('<div class="source-sheet-inline-empty svelte-ypseth"><p class="source-sheet-inline-empty-title svelte-ypseth">信源条目</p> <p class="source-sheet-inline-empty-hint svelte-ypseth">在左侧列表中点击某一信源,在此查看已拉取的条目。</p></div>'),Sr=h('<aside class="source-feed-panel-inline svelte-ypseth" aria-label="信源条目列表"><!></aside>');function Br(_,a){mt(a,!0);let d=N(a,"open",3,!1),i=N(a,"sourceRef",3,""),b=N(a,"sourceLabel",3,""),A=N(a,"sourceDescription",3,""),p=N(a,"sourceProxy",3,""),v=N(a,"sourceParseHint",3,null),W=N(a,"variant",3,"overlay"),fe=N(a,"onOpenChange",3,()=>{}),T=ne(at([])),J=ne(!1),C=ne(""),Y=ne(0),ee=ne(null),K=ne(at({}));We(()=>{const x=nt.subscribe(z=>{L(K,z,!0)});return()=>x()});async function Q(){const x=i().trim();if(!x){L(T,[],!0);return}L(Y,e(Y)+1);const z=e(Y);L(J,!0),L(C,"");try{const k=new URLSearchParams;k.set("ref",x),k.set("limit","100"),k.set("offset","0");const M=await Ge("/api/items?"+k.toString());if(z!==e(Y))return;if(!M.ok)throw new Error(await M.text().catch(()=>`HTTP ${M.status}`));const O=await M.json();L(T,Array.isArray(O.items)?O.items:[],!0)}catch(k){if(z!==e(Y))return;L(C,k instanceof Error?k.message:String(k),!0),L(T,[],!0)}finally{z===e(Y)&&L(J,!1)}}We(()=>{if(d()&&i()){if(!i().trim()){L(T,[],!0);return}tt(()=>void Q())}else d()||tt(()=>{L(Y,e(Y)+1),L(T,[],!0),L(C,""),L(J,!1)})});function oe(x){const z=x.author;if(z!=null&&z.length)return z.join(", ")}function he(x){Ke(x)}async function Ke(x){const z=x.trim();if(!(!z||e(ee))){L(ee,z,!0);try{const k=await Ge("/api/items/"+encodeURIComponent(z),{method:"DELETE"});if(!k.ok){const M=await k.text().catch(()=>"");throw new Error(M.trim()||`HTTP ${k.status}`)}L(T,e(T).filter(M=>M.id!==z),!0),Be("已删除该条目","success")}catch(k){Be(k instanceof Error?k.message:String(k),"error")}finally{L(ee,null)}}}const Je=$(()=>A().trim()?A().trim():"—"),qe=$(()=>[b(),i()].filter(Boolean).join(" · ")||void 0);async function Qe(x){for(let z=0;z<120;z++){const k=await Ge(`/api/tasks/${x}`);if(!k.ok)return{ok:!1,error:"轮询失败"};const M=await k.json();if(M.status==="done")return{ok:!0};if(M.status==="error")return{ok:!1,error:M.error??"拉取失败"};await new Promise(O=>setTimeout(O,800))}return{ok:!1,error:"拉取超时"}}async function we(x,z){z==null||z.preventDefault(),z==null||z.stopPropagation();const k=x.trim();if(!(!k||k in e(K)))try{const M=await Ge("/api/tasks",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({type:"source-pull",ref:k})}),O=await M.json();if(!M.ok||!O.taskId){Be(O.error??"拉取失败","error");return}cr(k,O.taskId);const V=await Qe(O.taskId);V.ok?await Q():Be(V.error??"拉取失败","error")}catch(M){Be(M instanceof Error?M.message:"拉取失败","error")}finally{dr(k)}}const te=$(()=>W()==="inline"&&d()&&i().trim()!==""&&i()in e(K));let Se=!1;We(()=>{const x=e(te);Se&&!x&&d()&&W()==="inline"&&i().trim()&&tt(()=>void Q()),Se=x});function re(x){switch(x){case"rss":return"标准 RSS/Atom/JSON Feed(内置 __rss__)";case"plugin":return"Site 插件(listUrlPattern)或语鲸协议(lingowhale://)";case"llm":return"通用网页列表:LLM 解析(generic)";case"email":return"内置 IMAP 邮件插件(__email__)";default:return""}}function Re(x){switch(x){case"rss":return"解析方式:RSS/Atom";case"plugin":return"解析方式:插件";case"llm":return"解析方式:LLM";case"email":return"解析方式:邮箱";default:return"解析方式"}}var He=X(),Ae=H(He);{var Ce=x=>{var z=X(),k=H(z);Te(k,()=>Dt,(M,O)=>{O(M,{get open(){return d()},onOpenChange:V=>fe()(V),children:(V,Z)=>{var q=X(),ie=H(q);Te(ie,()=>Pt,(le,me)=>{me(le,{children:(Me,_e)=>{var ge=pr(),ae=H(ge);Te(ae,()=>wt,(pe,de)=>{de(pe,{class:"source-sheet-overlay"})});var ce=R(ae,2);Te(ce,()=>St,(pe,de)=>{de(pe,{class:"source-sheet-panel","aria-describedby":void 0,children:(Fe,Xe)=>{var G=gr(),ve=H(G),ue=c(ve),se=c(ue),ye=c(se),be=c(ye);Te(be,()=>It,(P,y)=>{y(P,{class:"source-sheet-title",get title(){return e(qe)},children:(B,U)=>{kt();var Ne=xt();w(()=>j(Ne,b()||i()||"信源条目")),s(B,Ne)},$$slots:{default:!0}})});var De=R(be,2),Le=c(De);{var Ue=P=>{var y=vr(),B=c(y);{var U=E=>{lt(E,{size:16,class:"source-sheet-meta-icon-svg"})},Ne=E=>{ct(E,{size:16,class:"source-sheet-meta-icon-svg"})},Ve=E=>{ht(E,{size:16,class:"source-sheet-meta-icon-svg"})},Ze=E=>{ft(E,{size:16,class:"source-sheet-meta-icon-svg"})};D(B,E=>{v()==="rss"?E(U):v()==="plugin"?E(Ne,1):v()==="llm"?E(Ve,2):v()==="email"&&E(Ze,3)})}l(y),w((E,et)=>{S(y,"title",`解析方式:${E??""}`),S(y,"aria-label",et)},[()=>re(v()),()=>Re(v())]),s(P,y)};D(Le,P=>{v()&&P(Ue)})}var je=R(Le,2);{var Ee=P=>{var y=ur(),B=c(y);ut(B,{size:16,class:"source-sheet-proxy-globe","aria-hidden":"true"}),l(y),w(U=>S(y,"title",`代理:${U??""}`),[()=>p().trim()]),s(P,y)},t=$(()=>p().trim());D(je,P=>{e(t)&&P(Ee)})}l(De),l(ye),l(se);var r=R(se,2),m=c(r,!0);l(r),l(ue);var f=R(ue,2);Te(f,()=>Mt,(P,y)=>{y(P,{class:"source-sheet-close","aria-label":"关闭",children:(B,U)=>{Lt(B,{size:18})},$$slots:{default:!0}})}),l(ve);var I=R(ve,2),u=c(I);{var n=P=>{var y=fr();s(P,y)},o=P=>{var y=hr(),B=c(y,!0);l(y),w(()=>j(B,e(C))),s(P,y)},g=P=>{var y=mr();s(P,y)},F=P=>{var y=_r();st(y,21,()=>e(T),B=>B.id,(B,U)=>{{let Ne=$(()=>{var Oe;return((Oe=e(U).title)==null?void 0:Oe.trim())||""}),Ve=$(()=>e(U).summary??void 0),Ze=$(()=>e(U).content??void 0),E=$(()=>oe(e(U))),et=$(()=>e(U).pub_date||e(U).fetched_at),bt=$(()=>i().trim()),zt=$(()=>{var Oe;return(Oe=e(U).image_url)!=null&&Oe.trim()?e(U).image_url:void 0});vt(B,{get title(){return e(Ne)},get link(){return e(U).url},get summary(){return e(Ve)},get content(){return e(Ze)},get author(){return e(E)},get pubDate(){return e(et)},get sourceRef(){return e(bt)},get coverImg(){return e(zt)},get guid(){return e(U).id},get rawItem(){return e(U)},onDelete:he})}}),l(y),s(P,y)};D(u,P=>{e(J)&&e(T).length===0?P(n):e(C)?P(o,1):e(T).length===0?P(g,2):P(F,-1)})}l(I),w(()=>{S(r,"title",i()),j(m,e(Je))}),s(Fe,G)},$$slots:{default:!0}})}),s(Me,ge)},$$slots:{default:!0}})}),s(V,q)},$$slots:{default:!0}})}),s(x,z)},Ie=x=>{var z=Sr(),k=c(z);{var M=Z=>{var q=Pr(),ie=H(q),le=c(ie),me=c(le),Me=c(me),_e=c(Me),ge=c(_e,!0);l(_e);var ae=R(_e,2),ce=c(ae);{var pe=t=>{var r=yr(),m=c(r);{var f=o=>{lt(o,{size:16,class:"source-sheet-meta-icon-svg"})},I=o=>{ct(o,{size:16,class:"source-sheet-meta-icon-svg"})},u=o=>{ht(o,{size:16,class:"source-sheet-meta-icon-svg"})},n=o=>{ft(o,{size:16,class:"source-sheet-meta-icon-svg"})};D(m,o=>{v()==="rss"?o(f):v()==="plugin"?o(I,1):v()==="llm"?o(u,2):v()==="email"&&o(n,3)})}l(r),w((o,g)=>{S(r,"title",`解析方式:${o??""}`),S(r,"aria-label",g)},[()=>re(v()),()=>Re(v())]),s(t,r)};D(ce,t=>{v()&&t(pe)})}var de=R(ce,2);{var Fe=t=>{var r=br(),m=c(r);ut(m,{size:16,class:"source-sheet-proxy-globe","aria-hidden":"true"}),l(r),w(f=>S(r,"title",`代理:${f??""}`),[()=>p().trim()]),s(t,r)},Xe=$(()=>p().trim());D(de,t=>{e(Xe)&&t(Fe)})}var G=R(de,2);let ve;var ue=c(G);lr(ue,{size:16}),l(G),l(ae),l(Me),l(me);var se=R(me,2),ye=c(se,!0);l(se),l(le),l(ie);var be=R(ie,2),De=c(be);{var Le=t=>{var r=zr();s(t,r)},Ue=t=>{var r=xr(),m=c(r,!0);l(r),w(()=>j(m,e(C))),s(t,r)},je=t=>{var r=kr();s(t,r)},Ee=t=>{var r=$r();st(r,21,()=>e(T),m=>m.id,(m,f)=>{{let I=$(()=>{var y;return((y=e(f).title)==null?void 0:y.trim())||""}),u=$(()=>e(f).summary??void 0),n=$(()=>e(f).content??void 0),o=$(()=>oe(e(f))),g=$(()=>e(f).pub_date||e(f).fetched_at),F=$(()=>i().trim()),P=$(()=>{var y;return(y=e(f).image_url)!=null&&y.trim()?e(f).image_url:void 0});vt(m,{get title(){return e(I)},get link(){return e(f).url},get summary(){return e(u)},get content(){return e(n)},get author(){return e(o)},get pubDate(){return e(g)},get sourceRef(){return e(F)},get coverImg(){return e(P)},get guid(){return e(f).id},get rawItem(){return e(f)},onDelete:he})}}),l(r),s(t,r)};D(De,t=>{e(J)&&e(T).length===0?t(Le):e(C)?t(Ue,1):e(T).length===0?t(je,2):t(Ee,-1)})}l(be),w(()=>{S(_e,"title",e(qe)),j(ge,b()||i()||"信源条目"),ve=Ye(G,1,"source-sheet-pull-status svelte-ypseth",null,ve,{pulling:e(te)}),S(G,"title",e(te)?"拉取中…":"立即拉取"),S(G,"aria-label",e(te)?"拉取中":"立即拉取"),S(G,"aria-busy",e(te)),S(se,"title",i()),j(ye,e(Je))}),ze("click",G,t=>we(i(),t)),s(Z,q)},O=$(()=>d()&&i().trim()),V=Z=>{var q=wr();s(Z,q)};D(k,Z=>{e(O)?Z(M):Z(V,-1)})}l(z),s(x,z)};D(Ae,x=>{W()==="overlay"?x(Ce):x(Ie,-1)})}s(_,He),_t()}gt(["click"]);const Jr=pt(null);export{ft as M,ct as P,lt as R,Br as S,ht as a,lr as b,dr as c,Jr as h,nt as r,cr as s};
@@ -1 +1 @@
1
- import{n as y,b as u,ak as _,al as g,h as t,C as o,P as l,e as i,c as n,g as p,N as m}from"./BbWUOQ_m.js";function C(d,r){let a=null,E=t;var s;if(t){a=p;for(var e=m(document.head);e!==null&&(e.nodeType!==o||e.data!==d);)e=l(e);if(e===null)i(!1);else{var f=l(e);e.remove(),n(f)}}t||(s=document.head.appendChild(y()));try{u(()=>r(s),_|g)}finally{E&&(i(!0),n(a))}}export{C as h};
1
+ import{n as y,b as u,ak as _,al as g,h as t,C as o,P as l,e as i,c as n,g as p,N as m}from"./vtBo8kBV.js";function C(d,r){let a=null,E=t;var s;if(t){a=p;for(var e=m(document.head);e!==null&&(e.nodeType!==o||e.data!==d);)e=l(e);if(e===null)i(!1);else{var f=l(e);e.remove(),n(f)}}t||(s=document.head.appendChild(y()));try{u(()=>r(s),_|g)}finally{E&&(i(!0),n(a))}}export{C as h};
@@ -1 +1 @@
1
- import{W as d,am as m,an as c,U as g,ao as l,ap as b,i as u,aq as v,ad as h}from"./BbWUOQ_m.js";function x(n=!1){const s=d,e=s.l.u;if(!e)return;let f=()=>v(s.s);if(n){let a=0,t={};const _=h(()=>{let i=!1;const r=s.s;for(const o in r)r[o]!==t[o]&&(t[o]=r[o],i=!0);return i&&a++,a});f=()=>u(_)}e.b.length&&m(()=>{p(s,f),l(e.b)}),c(()=>{const a=g(()=>e.m.map(b));return()=>{for(const t of a)typeof t=="function"&&t()}}),e.a.length&&c(()=>{p(s,f),l(e.a)})}function p(n,s){if(n.l.s)for(const e of n.l.s)u(e);s()}export{x as i};
1
+ import{W as d,am as m,an as c,U as g,ao as l,ap as b,i as u,aq as v,ad as h}from"./vtBo8kBV.js";function x(n=!1){const s=d,e=s.l.u;if(!e)return;let f=()=>v(s.s);if(n){let a=0,t={};const _=h(()=>{let i=!1;const r=s.s;for(const o in r)r[o]!==t[o]&&(t[o]=r[o],i=!0);return i&&a++,a});f=()=>u(_)}e.b.length&&m(()=>{p(s,f),l(e.b)}),c(()=>{const a=g(()=>e.m.map(b));return()=>{for(const t of a)typeof t=="function"&&t()}}),e.a.length&&c(()=>{p(s,f),l(e.a)})}function p(n,s){if(n.l.s)for(const e of n.l.s)u(e);s()}export{x as i};
@@ -0,0 +1,36 @@
1
+ var Cr=Object.defineProperty;var vs=d=>{throw TypeError(d)};var kr=(d,e,r)=>e in d?Cr(d,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):d[e]=r;var be=(d,e,r)=>kr(d,typeof e!="symbol"?e+"":e,r),Do=(d,e,r)=>e.has(d)||vs("Cannot "+r);var h=(d,e,r)=>(Do(d,e,"read from private field"),r?r.call(d):e.get(d)),$=(d,e,r)=>e.has(d)?vs("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(d):e.set(d,r),T=(d,e,r,p)=>(Do(d,e,"write to private field"),p?p.call(d,r):e.set(d,r),r),C=(d,e,r)=>(Do(d,e,"access private method"),r);import{p as Fs,c as oe,a as y,f as M,t as zt}from"./CS53ooo0.js";import"./BA4Gucnq.js";import{o as zr}from"./Dyvi1wBH.js";import{b7 as Ge,i as t,a5 as n,aA as Se,at as yo,f as N,au as bo,av as f,aj as vo,ax as c,aC as Vt,aD as Pr,aw as v,ay as pe,az as _e,U as x,u as Fe,z as P,aq as Ao}from"./vtBo8kBV.js";import{o as jt,d as xr,a as ie,s as ze,e as $r,r as Tr}from"./B2cyTHdf.js";import{s as Sr,a as ms}from"./B6WG2Sd3.js";import{i as he}from"./BkD3yAYe.js";import{e as Fo,i as ys}from"./CFwxUBGi.js";import{d as Ut,r as Pt,a as xt,e as Or,s as No}from"./DoRPmqLn.js";import{b as $t}from"./C8umpVpB.js";import{i as Mr}from"./DVa8Y-mQ.js";import{g as bs}from"./ClknbeNl.js";import{p as Io}from"./CqYSO3Dx.js";import{s as Tt}from"./CGCMIfh3.js";import{R as Dr,M as Ar,P as Fr,a as Nr,h as _s,S as Ir,b as Hr,r as Lr,s as Er,c as Wr}from"./DJ2e04vK.js";import{a as Ne}from"./CBY2biv-.js";import{D as gs,a as ws,b as Cs,c as ks,d as co}from"./DAdOEnFb.js";import{P as Vr}from"./D6kzEN_P.js";import{w as Yo,j as jr,k as it,C as Ur,a as zs,b as fe,d as Ns,l as Kr,p as mo,E as Br,S as qr,g as Is,q as Jr,r as Xr,c as Yr,f as Hs,n as St,m as ho,s as lt,I as pt,P as po}from"./DsxvjlCC.js";import{s as ht}from"./ChUctqXA.js";import{p as B,s as Ve,r as Ls,l as ft}from"./BAJAS8BI.js";import{P as Qr,a as Gr,g as Ps,F as Zr,b as Rr}from"./6prdYIKP.js";function Ho(d,e){const[r,p]=d;let u=!1;const l=e.length;for(let m=0,_=l-1;m<l;_=m++){const[q,se]=e[m]??[0,0],[Te,Z]=e[_]??[0,0];se>=p!=Z>=p&&r<=(Te-q)*(p-se)/(Z-se)+q&&(u=!u)}return u}function Lo(d,e){return d[0]>=e.left&&d[0]<=e.right&&d[1]>=e.top&&d[1]<=e.bottom}function xs(d,e){const r=d.left+d.width/2,p=d.top+d.height/2,u=e.left+e.width/2,l=e.top+e.height/2,m=u-r,_=l-p;return Math.abs(m)>Math.abs(_)?m>0?"right":"left":_>0?"bottom":"top"}var Re,Ot,Mt,He,ge,ut,ct,et,tt,z,fo,Eo,Wo,Es,Ws,Ie,Vo,Vs,js;class en{constructor(e){$(this,z);$(this,Re);$(this,Ot);$(this,Mt);$(this,He,null);$(this,ge,null);$(this,ut,[]);$(this,ct,null);$(this,et,null);$(this,tt,null);T(this,Re,e),T(this,Ot,e.buffer??1);const r=e.transitIntentTimeout;T(this,Mt,typeof r=="number"&&r>0?r:null),Yo([e.triggerNode,e.contentNode,e.enabled],([p,u,l])=>{if(!p||!u||!l){T(this,ct,null),C(this,z,Ie).call(this);return}h(this,ct)&&h(this,ct)!==p&&C(this,z,Ie).call(this),T(this,ct,p);const m=jr(p),_=A=>{C(this,z,Ws).call(this,[A.clientX,A.clientY],p,u)},q=A=>{var Oe,R;const L=A.relatedTarget;if(it(L)&&u.contains(L))return;const K=((R=(Oe=h(this,Re)).ignoredTargets)==null?void 0:R.call(Oe))??[];it(L)&&K.some(W=>W===L||W.contains(L))||(T(this,ut,it(L)&&K.length>0?K.filter(W=>L.contains(W)):[]),T(this,He,[A.clientX,A.clientY]),T(this,ge,"content"),C(this,z,Eo).call(this))},se=()=>{C(this,z,Ie).call(this)},Te=()=>{C(this,z,Ie).call(this)},Z=A=>{const L=A.relatedTarget;it(L)&&p.contains(L)||(T(this,He,[A.clientX,A.clientY]),T(this,ge,"trigger"),C(this,z,Eo).call(this))};return[jt(m,"pointermove",_),jt(p,"pointerleave",q),jt(p,"pointerenter",se),jt(u,"pointerenter",Te),jt(u,"pointerleave",Z)].reduce((A,L)=>()=>{A(),L()},()=>{})})}}Re=new WeakMap,Ot=new WeakMap,Mt=new WeakMap,He=new WeakMap,ge=new WeakMap,ut=new WeakMap,ct=new WeakMap,et=new WeakMap,tt=new WeakMap,z=new WeakSet,fo=function(){h(this,et)!==null&&(cancelAnimationFrame(h(this,et)),T(this,et,null))},Eo=function(){C(this,z,fo).call(this),T(this,et,requestAnimationFrame(()=>{T(this,et,null),!(!h(this,He)||!h(this,ge))&&(C(this,z,Ie).call(this),h(this,Re).onPointerExit())}))},Wo=function(){h(this,tt)!==null&&(clearTimeout(h(this,tt)),T(this,tt,null))},Es=function(){h(this,Mt)!==null&&(C(this,z,Wo).call(this),T(this,tt,window.setTimeout(()=>{T(this,tt,null),!(!h(this,He)||!h(this,ge))&&(C(this,z,Ie).call(this),h(this,Re).onPointerExit())},h(this,Mt))))},Ws=function(e,r,p){if(!h(this,He)||!h(this,ge))return;C(this,z,fo).call(this),C(this,z,Es).call(this);const u=r.getBoundingClientRect(),l=p.getBoundingClientRect();if(h(this,ge)==="content"&&Lo(e,l)){C(this,z,Ie).call(this);return}if(h(this,ge)==="trigger"&&Lo(e,u)){C(this,z,Ie).call(this);return}if(h(this,ge)==="content"&&h(this,ut).length>0)for(const Te of h(this,ut)){const Z=Te.getBoundingClientRect();if(Lo(e,Z))return;const A=xs(u,Z),L=C(this,z,Vo).call(this,u,Z,A);if(L&&Ho(e,L))return}const m=xs(u,l),_=C(this,z,Vo).call(this,u,l,m);if(_&&Ho(e,_))return;const q=h(this,ge)==="content"?l:u,se=C(this,z,Vs).call(this,h(this,He),q,m,h(this,ge));Ho(e,se)||(C(this,z,Ie).call(this),h(this,Re).onPointerExit())},Ie=function(){T(this,He,null),T(this,ge,null),T(this,ut,[]),C(this,z,fo).call(this),C(this,z,Wo).call(this)},Vo=function(e,r,p){const u=h(this,Ot);switch(p){case"top":return[[Math.min(e.left,r.left)-u,e.top],[Math.min(e.left,r.left)-u,r.bottom],[Math.max(e.right,r.right)+u,r.bottom],[Math.max(e.right,r.right)+u,e.top]];case"bottom":return[[Math.min(e.left,r.left)-u,e.bottom],[Math.min(e.left,r.left)-u,r.top],[Math.max(e.right,r.right)+u,r.top],[Math.max(e.right,r.right)+u,e.bottom]];case"left":return[[e.left,Math.min(e.top,r.top)-u],[r.right,Math.min(e.top,r.top)-u],[r.right,Math.max(e.bottom,r.bottom)+u],[e.left,Math.max(e.bottom,r.bottom)+u]];case"right":return[[e.right,Math.min(e.top,r.top)-u],[r.left,Math.min(e.top,r.top)-u],[r.left,Math.max(e.bottom,r.bottom)+u],[e.right,Math.max(e.bottom,r.bottom)+u]]}},Vs=function(e,r,p,u){const l=h(this,Ot)*4,[m,_]=e;switch(u==="trigger"?C(this,z,js).call(this,p):p){case"top":return[[m-l,_+l],[m+l,_+l],[r.right+l,r.bottom],[r.right+l,r.top],[r.left-l,r.top],[r.left-l,r.bottom]];case"bottom":return[[m-l,_-l],[m+l,_-l],[r.right+l,r.top],[r.right+l,r.bottom],[r.left-l,r.bottom],[r.left-l,r.top]];case"left":return[[m+l,_-l],[m+l,_+l],[r.right,r.bottom+l],[r.left,r.bottom+l],[r.left,r.top-l],[r.right,r.top-l]];case"right":return[[m-l,_-l],[m-l,_+l],[r.left,r.bottom+l],[r.right,r.bottom+l],[r.right,r.top-l],[r.left,r.top-l]]}},js=function(e){switch(e){case"top":return"bottom";case"bottom":return"top";case"left":return"right";case"right":return"left"}};const jo=Yr({component:"popover",parts:["root","trigger","content","close","overlay"]}),Qo=new Ur("Popover.Root");var Kt,Bt,qt,Jt,Xt,Yt,Qt,ot,st,Le,Ze;const Go=class Go{constructor(e){$(this,Le);be(this,"opts");$(this,Kt,Ge(null));be(this,"contentPresence");$(this,Bt,Ge(null));$(this,qt,Ge(null));be(this,"overlayPresence");$(this,Jt,Ge(!1));$(this,Xt,Ge(!1));$(this,Yt,Ge(!1));$(this,Qt,Ge(0));$(this,ot,null);$(this,st,null);this.opts=e,this.contentPresence=new zs({ref:fe(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new zs({ref:fe(()=>this.overlayNode),open:this.opts.open}),Yo(()=>this.opts.open.current,r=>{r||(this.openedViaHover=!1,this.hasInteractedWithContent=!1,C(this,Le,Ze).call(this))})}static create(e){return Qo.set(new Go(e))}get contentNode(){return t(h(this,Kt))}set contentNode(e){n(h(this,Kt),e,!0)}get triggerNode(){return t(h(this,Bt))}set triggerNode(e){n(h(this,Bt),e,!0)}get overlayNode(){return t(h(this,qt))}set overlayNode(e){n(h(this,qt),e,!0)}get openedViaHover(){return t(h(this,Jt))}set openedViaHover(e){n(h(this,Jt),e,!0)}get hasInteractedWithContent(){return t(h(this,Xt))}set hasInteractedWithContent(e){n(h(this,Xt),e,!0)}get hoverCooldown(){return t(h(this,Yt))}set hoverCooldown(e){n(h(this,Yt),e,!0)}get closeDelay(){return t(h(this,Qt))}set closeDelay(e){n(h(this,Qt),e,!0)}setDomContext(e){T(this,st,e)}toggleOpen(){C(this,Le,Ze).call(this),this.opts.open.current=!this.opts.open.current}handleClose(){C(this,Le,Ze).call(this),this.opts.open.current&&(this.opts.open.current=!1)}handleHoverOpen(){C(this,Le,Ze).call(this),!this.opts.open.current&&(this.openedViaHover=!0,this.opts.open.current=!0)}handleHoverClose(){this.opts.open.current&&this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1)}handleDelayedHoverClose(){this.opts.open.current&&(!this.openedViaHover||this.hasInteractedWithContent||(C(this,Le,Ze).call(this),this.closeDelay<=0?this.opts.open.current=!1:h(this,st)&&T(this,ot,h(this,st).setTimeout(()=>{this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1),T(this,ot,null)},this.closeDelay))))}cancelDelayedClose(){C(this,Le,Ze).call(this)}markInteraction(){this.hasInteractedWithContent=!0,C(this,Le,Ze).call(this)}};Kt=new WeakMap,Bt=new WeakMap,qt=new WeakMap,Jt=new WeakMap,Xt=new WeakMap,Yt=new WeakMap,Qt=new WeakMap,ot=new WeakMap,st=new WeakMap,Le=new WeakSet,Ze=function(){h(this,ot)!==null&&h(this,st)&&(h(this,st).clearTimeout(h(this,ot)),T(this,ot,null))};let Uo=Go;var rt,Dt,dt,Pe,Bo,qo,Jo,Us,Gt;const Zo=class Zo{constructor(e,r){$(this,Pe);be(this,"opts");be(this,"root");be(this,"attachment");be(this,"domContext");$(this,rt,null);$(this,Dt,null);$(this,dt,Ge(!1));$(this,Gt,Se(()=>({id:this.opts.id.current,"aria-haspopup":"dialog","aria-expanded":Jr(this.root.opts.open.current),"data-state":Is(this.root.opts.open.current),"aria-controls":C(this,Pe,Us).call(this),[jo.trigger]:"",disabled:this.opts.disabled.current,onkeydown:this.onkeydown,onclick:this.onclick,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment})));this.opts=e,this.root=r,this.attachment=Ns(this.opts.ref,p=>this.root.triggerNode=p),this.domContext=new Kr(e.ref),this.root.setDomContext(this.domContext),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this),Yo(()=>this.opts.closeDelay.current,p=>{this.root.closeDelay=p})}static create(e){return new Zo(e,Qo.get())}onpointerenter(e){if(this.opts.disabled.current||!this.opts.openOnHover.current||mo(e)||(n(h(this,dt),!0),C(this,Pe,qo).call(this),this.root.cancelDelayedClose(),this.root.opts.open.current||this.root.hoverCooldown))return;const r=this.opts.openDelay.current;r<=0?this.root.handleHoverOpen():T(this,rt,this.domContext.setTimeout(()=>{this.root.handleHoverOpen(),T(this,rt,null)},r))}onpointerleave(e){this.opts.disabled.current||this.opts.openOnHover.current&&(mo(e)||(n(h(this,dt),!1),C(this,Pe,Bo).call(this),this.root.hoverCooldown=!1))}onclick(e){if(!this.opts.disabled.current&&e.button===0){if(C(this,Pe,Jo).call(this),t(h(this,dt))&&this.root.opts.open.current&&this.root.openedViaHover){this.root.openedViaHover=!1,this.root.hasInteractedWithContent=!0;return}t(h(this,dt))&&this.opts.openOnHover.current&&this.root.opts.open.current&&(this.root.hoverCooldown=!0),this.root.hoverCooldown&&!this.root.opts.open.current&&(this.root.hoverCooldown=!1),this.root.toggleOpen()}}onkeydown(e){this.opts.disabled.current||(e.key===Br||e.key===qr)&&(e.preventDefault(),C(this,Pe,Jo).call(this),this.root.toggleOpen())}get props(){return t(h(this,Gt))}set props(e){n(h(this,Gt),e)}};rt=new WeakMap,Dt=new WeakMap,dt=new WeakMap,Pe=new WeakSet,Bo=function(){h(this,rt)!==null&&(this.domContext.clearTimeout(h(this,rt)),T(this,rt,null))},qo=function(){h(this,Dt)!==null&&(this.domContext.clearTimeout(h(this,Dt)),T(this,Dt,null))},Jo=function(){C(this,Pe,Bo).call(this),C(this,Pe,qo).call(this)},Us=function(){var e,r;if(this.root.opts.open.current&&((e=this.root.contentNode)!=null&&e.id))return(r=this.root.contentNode)==null?void 0:r.id},Gt=new WeakMap;let Ko=Zo;var Zt,Rt;const Ro=class Ro{constructor(e,r){be(this,"opts");be(this,"root");be(this,"attachment");be(this,"onInteractOutside",e=>{if(this.opts.onInteractOutside.current(e),e.defaultPrevented||!it(e.target))return;const r=e.target.closest(jo.selector("trigger"));if(!(r&&r===this.root.triggerNode)){if(this.opts.customAnchor.current){if(it(this.opts.customAnchor.current)){if(this.opts.customAnchor.current.contains(e.target))return}else if(typeof this.opts.customAnchor.current=="string"){const p=document.querySelector(this.opts.customAnchor.current);if(p&&p.contains(e.target))return}}this.root.handleClose()}});be(this,"onEscapeKeydown",e=>{this.opts.onEscapeKeydown.current(e),!e.defaultPrevented&&this.root.handleClose()});$(this,Zt,Se(()=>({open:this.root.opts.open.current})));$(this,Rt,Se(()=>({id:this.opts.id.current,tabindex:-1,"data-state":Is(this.root.opts.open.current),[jo.content]:"",style:{pointerEvents:"auto",contain:"layout style"},onpointerdown:this.onpointerdown,onfocusin:this.onfocusin,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment})));be(this,"popperProps",{onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown});this.opts=e,this.root=r,this.attachment=Ns(this.opts.ref,p=>this.root.contentNode=p),this.onpointerdown=this.onpointerdown.bind(this),this.onfocusin=this.onfocusin.bind(this),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this),new en({triggerNode:()=>this.root.triggerNode,contentNode:()=>this.root.contentNode,enabled:()=>this.root.opts.open.current&&this.root.openedViaHover&&!this.root.hasInteractedWithContent,onPointerExit:()=>{this.root.handleDelayedHoverClose()}})}static create(e){return new Ro(e,Qo.get())}onpointerdown(e){this.root.markInteraction()}onfocusin(e){const r=e.target;it(r)&&Xr(r)&&this.root.markInteraction()}onpointerenter(e){mo(e)||this.root.cancelDelayedClose()}onpointerleave(e){mo(e)}get shouldRender(){return this.root.contentPresence.shouldRender}get shouldTrapFocus(){return!(this.root.openedViaHover&&!this.root.hasInteractedWithContent)}get snippetProps(){return t(h(this,Zt))}set snippetProps(e){n(h(this,Zt),e)}get props(){return t(h(this,Rt))}set props(e){n(h(this,Rt),e)}};Zt=new WeakMap,Rt=new WeakMap;let Xo=Ro;var tn=M("<div><div><!></div></div>"),on=M("<div><div><!></div></div>");function $s(d,e){const r=Fs();yo(e,!0);let p=B(e,"ref",15,null),u=B(e,"id",19,()=>Hs(r)),l=B(e,"forceMount",3,!1),m=B(e,"onOpenAutoFocus",3,St),_=B(e,"onCloseAutoFocus",3,St),q=B(e,"onEscapeKeydown",3,St),se=B(e,"onInteractOutside",3,St),Te=B(e,"trapFocus",3,!0),Z=B(e,"preventScroll",3,!1),A=B(e,"customAnchor",3,null),L=Ls(e,["$$slots","$$events","$$legacy","child","children","ref","id","forceMount","onOpenAutoFocus","onCloseAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","customAnchor","style"]);const K=Xo.create({id:fe(()=>u()),ref:fe(()=>p(),J=>p(J)),onInteractOutside:fe(()=>se()),onEscapeKeydown:fe(()=>q()),customAnchor:fe(()=>A())}),Oe=Se(()=>ho(L,K.props)),R=Se(()=>Te()&&K.shouldTrapFocus);function W(J){K.shouldTrapFocus||J.preventDefault(),m()(J)}var je=oe(),we=N(je);{var le=J=>{Qr(J,Ve(()=>t(Oe),()=>K.popperProps,{get ref(){return K.opts.ref},get enabled(){return K.root.opts.open.current},get id(){return u()},get trapFocus(){return t(R)},get preventScroll(){return Z()},loop:!0,forceMount:!0,get customAnchor(){return A()},onOpenAutoFocus:W,get onCloseAutoFocus(){return _()},get shouldRender(){return K.shouldRender},popper:(Ke,E)=>{let Be=()=>E==null?void 0:E().props,Ce=()=>E==null?void 0:E().wrapperProps;const re=Se(()=>ho(Be(),{style:Ps("popover")},{style:e.style}));var Me=oe(),xe=N(Me);{var qe=X=>{var V=oe(),j=N(V);{let I=Se(()=>({props:t(re),wrapperProps:Ce(),...K.snippetProps}));lt(j,()=>e.child,()=>t(I))}y(X,V)},ee=X=>{var V=tn();Ut(V,()=>({...Ce()}));var j=f(V);Ut(j,()=>({...t(re)}));var I=f(j);lt(I,()=>e.children??vo),c(j),c(V),y(X,V)};he(xe,X=>{e.child?X(qe):X(ee,-1)})}y(Ke,Me)},$$slots:{popper:!0}}))},ve=J=>{Gr(J,Ve(()=>t(Oe),()=>K.popperProps,{get ref(){return K.opts.ref},get open(){return K.root.opts.open.current},get id(){return u()},get trapFocus(){return t(R)},get preventScroll(){return Z()},loop:!0,forceMount:!1,get customAnchor(){return A()},onOpenAutoFocus:W,get onCloseAutoFocus(){return _()},get shouldRender(){return K.shouldRender},popper:(Ke,E)=>{let Be=()=>E==null?void 0:E().props,Ce=()=>E==null?void 0:E().wrapperProps;const re=Se(()=>ho(Be(),{style:Ps("popover")},{style:e.style}));var Me=oe(),xe=N(Me);{var qe=X=>{var V=oe(),j=N(V);{let I=Se(()=>({props:t(re),wrapperProps:Ce(),...K.snippetProps}));lt(j,()=>e.child,()=>t(I))}y(X,V)},ee=X=>{var V=on();Ut(V,()=>({...Ce()}));var j=f(V);Ut(j,()=>({...t(re)}));var I=f(j);lt(I,()=>e.children??vo),c(j),c(V),y(X,V)};he(xe,X=>{e.child?X(qe):X(ee,-1)})}y(Ke,Me)},$$slots:{popper:!0}}))};he(we,J=>{l()?J(le):l()||J(ve,1)})}y(d,je),bo()}var sn=M("<button><!></button>");function Ts(d,e){const r=Fs();yo(e,!0);let p=B(e,"id",19,()=>Hs(r)),u=B(e,"ref",15,null),l=B(e,"type",3,"button"),m=B(e,"disabled",3,!1),_=B(e,"openOnHover",3,!1),q=B(e,"openDelay",3,700),se=B(e,"closeDelay",3,300),Te=Ls(e,["$$slots","$$events","$$legacy","children","child","id","ref","type","disabled","openOnHover","openDelay","closeDelay"]);const Z=Ko.create({id:fe(()=>p()),ref:fe(()=>u(),L=>u(L)),disabled:fe(()=>!!m()),openOnHover:fe(()=>_()),openDelay:fe(()=>q()),closeDelay:fe(()=>se())}),A=Se(()=>ho(Te,Z.props,{type:l()}));Zr(d,{get id(){return p()},get ref(){return Z.opts.ref},children:(L,K)=>{var Oe=oe(),R=N(Oe);{var W=we=>{var le=oe(),ve=N(le);lt(ve,()=>e.child,()=>({props:t(A)})),y(we,le)},je=we=>{var le=sn();Ut(le,()=>({...t(A)}));var ve=f(le);lt(ve,()=>e.children??vo),c(le),y(we,le)};he(R,we=>{e.child?we(W):we(je,-1)})}y(L,Oe)},$$slots:{default:!0}}),bo()}function Ss(d,e){yo(e,!0);let r=B(e,"open",15,!1),p=B(e,"onOpenChange",3,St),u=B(e,"onOpenChangeComplete",3,St);Uo.create({open:fe(()=>r(),l=>{r(l),p()(l)}),onOpenChangeComplete:fe(()=>u())}),Rr(d,{children:(l,m)=>{var _=oe(),q=N(_);lt(q,()=>e.children??vo),y(l,_)},$$slots:{default:!0}}),bo()}function rn(d,e){const r=ft(e,["children","$$slots","$$events","$$legacy"]);/**
2
+ * @license lucide-svelte v0.460.1 - ISC
3
+ *
4
+ * This source code is licensed under the ISC license.
5
+ * See the LICENSE file in the root directory of this source tree.
6
+ */const p=[["path",{d:"m3 16 4 4 4-4"}],["path",{d:"M7 20V4"}],["path",{d:"m21 8-4-4-4 4"}],["path",{d:"M17 4v16"}]];pt(d,Ve({name:"arrow-down-up"},()=>r,{get iconNode(){return p},children:(u,l)=>{var m=oe(),_=N(m);ht(_,e,"default",{}),y(u,m)},$$slots:{default:!0}}))}function nn(d,e){const r=ft(e,["children","$$slots","$$events","$$legacy"]);/**
7
+ * @license lucide-svelte v0.460.1 - ISC
8
+ *
9
+ * This source code is licensed under the ISC license.
10
+ * See the LICENSE file in the root directory of this source tree.
11
+ */const p=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"}]];pt(d,Ve({name:"copy"},()=>r,{get iconNode(){return p},children:(u,l)=>{var m=oe(),_=N(m);ht(_,e,"default",{}),y(u,m)},$$slots:{default:!0}}))}function an(d,e){const r=ft(e,["children","$$slots","$$events","$$legacy"]);/**
12
+ * @license lucide-svelte v0.460.1 - ISC
13
+ *
14
+ * This source code is licensed under the ISC license.
15
+ * See the LICENSE file in the root directory of this source tree.
16
+ */const p=[["circle",{cx:"12",cy:"12",r:"1"}],["circle",{cx:"19",cy:"12",r:"1"}],["circle",{cx:"5",cy:"12",r:"1"}]];pt(d,Ve({name:"ellipsis"},()=>r,{get iconNode(){return p},children:(u,l)=>{var m=oe(),_=N(m);ht(_,e,"default",{}),y(u,m)},$$slots:{default:!0}}))}function ln(d,e){const r=ft(e,["children","$$slots","$$events","$$legacy"]);/**
17
+ * @license lucide-svelte v0.460.1 - ISC
18
+ *
19
+ * This source code is licensed under the ISC license.
20
+ * See the LICENSE file in the root directory of this source tree.
21
+ */const p=[["path",{d:"M15 3h6v6"}],["path",{d:"M10 14 21 3"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}]];pt(d,Ve({name:"external-link"},()=>r,{get iconNode(){return p},children:(u,l)=>{var m=oe(),_=N(m);ht(_,e,"default",{}),y(u,m)},$$slots:{default:!0}}))}function un(d,e){const r=ft(e,["children","$$slots","$$events","$$legacy"]);/**
22
+ * @license lucide-svelte v0.460.1 - ISC
23
+ *
24
+ * This source code is licensed under the ISC license.
25
+ * See the LICENSE file in the root directory of this source tree.
26
+ */const p=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z"}],["path",{d:"m15 5 4 4"}]];pt(d,Ve({name:"pencil"},()=>r,{get iconNode(){return p},children:(u,l)=>{var m=oe(),_=N(m);ht(_,e,"default",{}),y(u,m)},$$slots:{default:!0}}))}function Os(d,e){const r=ft(e,["children","$$slots","$$events","$$legacy"]);/**
27
+ * @license lucide-svelte v0.460.1 - ISC
28
+ *
29
+ * This source code is licensed under the ISC license.
30
+ * See the LICENSE file in the root directory of this source tree.
31
+ */const p=[["path",{d:"M3 6h18"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17"}]];pt(d,Ve({name:"trash-2"},()=>r,{get iconNode(){return p},children:(u,l)=>{var m=oe(),_=N(m);ht(_,e,"default",{}),y(u,m)},$$slots:{default:!0}}))}function cn(d,e){const r=ft(e,["children","$$slots","$$events","$$legacy"]);/**
32
+ * @license lucide-svelte v0.460.1 - ISC
33
+ *
34
+ * This source code is licensed under the ISC license.
35
+ * See the LICENSE file in the root directory of this source tree.
36
+ */const p=[["path",{d:"M3 6h18"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"}]];pt(d,Ve({name:"trash"},()=>r,{get iconNode(){return p},children:(u,l)=>{var m=oe(),_=N(m);ht(_,e,"default",{}),y(u,m)},$$slots:{default:!0}}))}function Ms(d){const e=d.trim();if(!e)return e;if(!/^https?:\/\//i.test(e))return e.toLowerCase();try{const r=new URL(e),p=r.protocol.toLowerCase(),u=r.host.toLowerCase();let l=r.pathname;return l.length>1&&l.endsWith("/")&&(l=l.slice(0,-1)),l=l.toLowerCase(),`${p}//${u}${l}${r.search}${r.hash}`}catch{return e.toLowerCase()}}function Ds(d){const e=d.trim();if(!/^https?:\/\//i.test(e))return null;try{return new URL(e).hostname.replace(/^www\./i,"")||null}catch{return null}}function As(d){return`/api/feed-favicon?domain=${encodeURIComponent(d)}`}var dn=M("<option> </option>"),pn=M('<p class="save-error svelte-1beoyzy"> </p>'),hn=M('<span class="confirm-delete-row svelte-1beoyzy"><span class="confirm-delete-text svelte-1beoyzy">确认删除?</span> <button type="button" class="btn-confirm-yes svelte-1beoyzy">删除</button> <button type="button" class="btn-confirm-no svelte-1beoyzy">取消</button></span>'),fn=M('<button type="button" class="btn-delete svelte-1beoyzy"><!> 删除</button>'),vn=M('<div class="modal-header svelte-1beoyzy"><!> <!></div> <div class="modal-body svelte-1beoyzy"><div class="field svelte-1beoyzy"><span class="field-label svelte-1beoyzy">Ref <span class="required svelte-1beoyzy">*</span></span> <div class="ref-input-wrap svelte-1beoyzy"><input class="field-input svelte-1beoyzy" type="text" placeholder="https://example.com/feed"/></div></div> <div class="field svelte-1beoyzy"><span class="field-label svelte-1beoyzy">来源</span> <div class="parse-hints svelte-1beoyzy" role="status" aria-live="polite"><span title="标准 RSS/Atom/JSON Feed(内置 __rss__,rss-parser)"><!> <span>RSS/Atom</span></span> <span title="内置 IMAP 邮件插件(__email__)"><!> <span>邮箱</span></span> <span title="Site 插件(listUrlPattern)或语鲸协议(lingowhale://)"><!> <span>插件</span></span> <span title="通用网页列表:无 Feed 特征且未命中插件时,走 LLM 解析(generic)"><!> <span>LLM</span></span></div></div> <div class="field svelte-1beoyzy"><span class="field-label svelte-1beoyzy">名称</span> <input class="field-input svelte-1beoyzy" type="text" placeholder="显示名称(留空则显示 ref)"/></div> <div class="field svelte-1beoyzy"><span class="field-label svelte-1beoyzy">描述</span> <input class="field-input svelte-1beoyzy" type="text" placeholder="简短说明"/></div> <div class="field-row svelte-1beoyzy"><div class="field svelte-1beoyzy"><span class="field-label svelte-1beoyzy">权重(0–1)</span> <input class="field-input field-input--weight svelte-1beoyzy" type="number" min="0" max="1" step="0.01" inputmode="decimal" placeholder="0–1"/></div> <div class="field svelte-1beoyzy"><span class="field-label svelte-1beoyzy">刷新间隔</span> <select class="field-input svelte-1beoyzy"></select></div></div> <div class="field svelte-1beoyzy"><span class="field-label svelte-1beoyzy">代理</span> <input class="field-input svelte-1beoyzy" type="text" placeholder="http://127.0.0.1:7890"/></div> <!></div> <div class="modal-footer svelte-1beoyzy"><div class="modal-footer-left svelte-1beoyzy"><!></div> <div class="modal-footer-right svelte-1beoyzy"><!> <button type="button" class="btn-save svelte-1beoyzy"> </button></div></div>',1),mn=M("<!> <!>",1),yn=M('<p class="remove-dialog-target svelte-1beoyzy"> </p>'),bn=M('<div class="modal-header svelte-1beoyzy"><!> <!></div> <div class="modal-body svelte-1beoyzy"><p id="remove-source-desc" class="remove-dialog-text svelte-1beoyzy">确定删除该信源吗?操作会同时删除该信源下已入库的所有条目,且不可恢复。</p> <!></div> <div class="modal-footer remove-dialog-footer svelte-1beoyzy"><!> <button type="button" class="btn-confirm-yes svelte-1beoyzy">移除</button></div>',1),_n=M("<!> <!>",1),gn=M('<span class="sort-menu-dir svelte-1beoyzy" aria-hidden="true"> </span>'),wn=M('<button type="button"><span> </span> <!></button>'),Cn=M("<!> <!>",1),kn=M('<div class="state svelte-1beoyzy">加载中…</div>'),zn=M('<div class="state error svelte-1beoyzy"> </div>'),Pn=M('<div class="state svelte-1beoyzy">暂无信源。<button type="button" class="link-btn svelte-1beoyzy">点击添加</button>第一个信源。</div>'),xn=M('<div class="state svelte-1beoyzy">无匹配结果</div>'),$n=M('<img class="source-title-favicon svelte-1beoyzy" alt="" width="16" height="16" loading="lazy" decoding="async"/>'),Tn=M('<span class="source-title-favicon-slot svelte-1beoyzy" aria-hidden="true"><!></span>'),Sn=M('<button type="button" class="more-menu-item svelte-1beoyzy" title="在本机服务端启动与抓取相同的有头 Chrome(共用浏览器数据目录与代理)"><!> <span>打开链接</span></button>'),On=M('<button type="button" title="强制拉取"><!> <span> </span></button> <button type="button" class="more-menu-item svelte-1beoyzy"><!> <span>编辑</span></button> <button type="button" class="more-menu-item svelte-1beoyzy" title="复制本服务的 RSS 订阅地址(/rss?ref=…)"><!> <span>复制 RSS 地址</span></button> <!> <button type="button" class="more-menu-item more-menu-item-danger svelte-1beoyzy" title="清空该信源下所有已入库条目"><!> <span> </span></button> <button type="button" class="more-menu-item more-menu-item-remove svelte-1beoyzy" title="从订阅列表中移除此信源"><!> <span> </span></button>',1),Mn=M("<!> <!>",1),Dn=M('<div class="card row-grid svelte-1beoyzy" role="button" tabindex="0"><div class="cell-title svelte-1beoyzy"><div class="title-block svelte-1beoyzy"><!> <div class="title-line svelte-1beoyzy"><span class="title-text svelte-1beoyzy"> </span> <span class="title-item-count svelte-1beoyzy"> </span></div></div></div> <div class="cell-actions svelte-1beoyzy"><!></div></div>'),An=M('<div class="list svelte-1beoyzy"></div>'),Fn=M('<!> <!> <!> <div class="feed-wrap svelte-1beoyzy"><div class="feed-col svelte-1beoyzy"><div class="feed-toolbar-block svelte-1beoyzy"><div class="feed-header svelte-1beoyzy"><div class="header-left svelte-1beoyzy"><input class="filter-input svelte-1beoyzy" type="search" placeholder="过滤…"/> <!></div> <div class="header-right svelte-1beoyzy"><button type="button" class="btn-add svelte-1beoyzy" title="添加信源" aria-label="添加信源"><!></button></div></div></div> <div class="feed-body-scroll svelte-1beoyzy"><!></div></div></div>',1);function ra(d,e){yo(e,!1);const r=()=>ms(Lr,"$refToTaskId",u),p=()=>ms(Io,"$page",u),[u,l]=Sr(),m=P(),_=P(),q=P(),se=P();function Te(o){return o==="alpha"||o==="parse"?"asc":"desc"}const Z="1day",A=[{value:"10min",label:"10 分钟"},{value:"30min",label:"30 分钟"},{value:"1h",label:"1 小时"},{value:"6h",label:"6 小时"},{value:"12h",label:"12 小时"},{value:"1day",label:"1 天"},{value:"3day",label:"3 天"},{value:"7day",label:"7 天"}];function L(o){const s=(o==null?void 0:o.trim())??"";return A.some(a=>a.value===s)?s:Z}function K(o){return Math.min(1,Math.max(0,o))}function Oe(o){const s=typeof o=="number"&&!Number.isNaN(o)?o:Number(String(o).trim());return Number.isFinite(s)?s<0||s>1?{ok:!1,message:"权重需在 0–1 之间"}:{ok:!0,value:s}:{ok:!1,message:"权重需为 0–1 之间的数字"}}let R=[],W=P([]),je=P(!0),we=P(""),le=P(""),ve=P("weight"),J=P("desc"),Ue=P(!1),Ke="",E=P(null),Be=P({}),Ce=P(null),re=P(null),Me=P(!1),xe=P(null),qe=P(!1),ee=P(null),X=P(!1),V=P(!1),j=P(!1),I=P(""),$e=P(""),vt=P(""),mt=P(""),At=P(0),Ft=P(Z),yt=P(""),bt=P(null),eo=null;function to(o){const s=(o==null?void 0:o.trim())??"";if(!s)return s;const a=s.toLowerCase();return a.startsWith("http://")||a.startsWith("https://")||a.startsWith("imaps://")||a.startsWith("imap://")||a.startsWith("lingowhale://")?s:"https://"+s}function Ks(o){const s=o.toLowerCase();return s.includes("/feed")||s.includes("/rss")||s.includes("/atom")||s.endsWith(".xml")||s.endsWith(".rss")||s.endsWith(".atom")||s.includes("format=rss")||s.includes("format=atom")||s.includes("output=rss")}function es(o,s){const a=(o==null?void 0:o.trim())??"";if(!a)return null;const i=a.toLowerCase();if(i.startsWith("imaps://")||i.startsWith("imap://"))return"email";if(i.startsWith("lingowhale://"))return"plugin";const w=to(a);return!w.startsWith("http://")&&!w.startsWith("https://")?null:Ks(w)?"rss":s?"plugin":"llm"}function _o(o){return o==="rss"?"RSS/Atom":o==="plugin"?"插件":o==="llm"?"LLM":o==="email"?"邮箱":"—"}function Bs(o){eo&&clearTimeout(eo);const s=o==null?void 0:o.trim();if(!s){n(bt,null);return}n(bt,null);const a=to(s);eo=setTimeout(async()=>{eo=null;try{const i=await Ne("/api/sources/plugin-match",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({refs:[a]})});if(i.ok){const w=await i.json();to(t($e).trim())===a&&n(bt,w[a]??null)}}catch{to(t($e).trim())===a&&n(bt,null)}},400)}function qs(o,s,a){const i=a==="desc"?-1:1;return[...o].sort((w,k)=>{let b=0;switch(s){case"weight":b=w.weight-k.weight;break;case"alpha":b=w.displayLabel.localeCompare(k.displayLabel,"zh-CN");break;case"parse":b=_o(w.parseHint).localeCompare(_o(k.parseHint),"zh-CN");break;case"latest":{const H=w.latestAt?new Date(w.latestAt).getTime():NaN,me=k.latestAt?new Date(k.latestAt).getTime():NaN,ue=Number.isFinite(H),g=Number.isFinite(me);if(!ue&&!g)b=0;else if(ue)if(g)b=H-me;else return-1;else return 1;break}case"count":b=w.count-k.count;break;case"week":b=w.weekCount-k.weekCount;break}return b!==0?i*b:w.displayLabel.localeCompare(k.displayLabel,"zh-CN")})}function Js(o){t(ve)===o?n(J,t(J)==="asc"?"desc":"asc"):(n(ve,o),n(J,Te(o)))}let go=P(!1);function ts(o){return o==="alpha"?"标题":o==="weight"?"权重":o==="latest"?"最近拉取":o==="parse"?"解析":o==="week"?"近7天":"数量"}function Xs(o){Js(o),n(go,!1)}const Ys=["alpha","weight","latest","parse","count","week"];async function _t(o){const s=(o==null?void 0:o.silent)===!0;s||n(je,!0),n(we,"");try{const[a,i]=await Promise.all([Ne("/api/sources/raw"),Ne("/api/sources/stats")]),w=await a.text(),k=JSON.parse(w||"{}");R=Array.isArray(k.sources)?k.sources:[];const b=i.ok?await i.json():[],H=new Map;for(const g of b){const S=Ms(g.source_url),F=H.get(S),D=g.latest_at??null,Y=typeof g.count_7d=="number"&&Number.isFinite(g.count_7d)?g.count_7d:0;F?H.set(S,{count:F.count+g.count,weekCount:F.weekCount+Y,latestAt:F.latestAt?D?F.latestAt>=D?F.latestAt:D:F.latestAt:D}):H.set(S,{count:g.count,weekCount:Y,latestAt:D})}const me=R.filter(g=>{var S;return(S=g==null?void 0:g.ref)==null?void 0:S.trim()}).map(g=>g.ref.trim());let ue={};if(me.length>0)try{const g=await Ne("/api/sources/plugin-match",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({refs:me})});g.ok&&(ue=await g.json())}catch{}n(W,R.filter(g=>{var S;return(S=g==null?void 0:g.ref)==null?void 0:S.trim()}).map(g=>{var ke,ye;const S=g.ref.trim(),F=H.get(Ms(S))??{count:0,weekCount:0,latestAt:null},D=ue[S]??null,Y=(ke=g.proxy)==null?void 0:ke.trim();return{ref:S,displayLabel:g.label&&g.label.trim()||S,description:(ye=g.description)==null?void 0:ye.trim(),count:(F==null?void 0:F.count)??0,weekCount:(F==null?void 0:F.weekCount)??0,latestAt:(F==null?void 0:F.latestAt)??null,pluginId:D,weight:g.weight??0,...Y?{proxy:Y}:{},parseHint:es(S,D)}}))}catch(a){n(we,a instanceof Error?a.message:String(a)),s||n(W,[])}finally{s||n(je,!1)}}async function wo(o){return(await Ne("/api/sources/raw",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({sources:o})})).ok}function os(){n(V,!1),n($e,""),n(vt,""),n(mt,""),n(At,0),n(Ft,Z),n(yt,""),n(I,""),n(X,!0)}function Qs(o){const s=R.find(a=>a.ref===o.ref);n(V,!0),Ke=o.ref,n($e,o.ref),n(vt,(s==null?void 0:s.label)??""),n(mt,(s==null?void 0:s.description)??""),n(At,K((s==null?void 0:s.weight)??0)),n(Ft,L(s==null?void 0:s.refresh)),n(yt,(s==null?void 0:s.proxy)??""),n(I,""),n(Ue,!1),n(X,!0)}function ss(){n(X,!1),n(Ue,!1)}async function Gs(){const o=t($e).trim();if(!o){n(I,"ref 不能为空");return}const s=Oe(t(At));if(!s.ok){n(I,s.message);return}n(j,!0),n(I,"");try{const a=s.value,i={ref:o,...t(vt).trim()?{label:t(vt).trim()}:{},...t(mt).trim()?{description:t(mt).trim()}:{},refresh:t(Ft),...t(yt).trim()?{proxy:t(yt).trim()}:{},...a!==0?{weight:a}:{}};let w;if(t(V)){if(o!==Ke&&R.some(b=>b.ref===o)){n(I,"该 ref 已存在");return}w=R.map(b=>b.ref===Ke?{...b,...i}:b)}else{if(R.some(b=>b.ref===o)){n(I,"该 ref 已存在");return}w=[...R,i]}if(!await wo(w)){n(I,"保存失败,请重试");return}ss(),await _t({silent:!0})}catch(a){n(I,a instanceof Error?a.message:String(a))}finally{n(j,!1)}}async function rs(o){try{const s=await Ne("/api/items/by-source?source_url="+encodeURIComponent(o),{method:"DELETE"}),a=await s.json();return!s.ok||!a.ok?{ok:!1,message:a.message??"删除信源条目失败"}:{ok:!0,deleted:Number(a.deleted??0)}}catch(s){return{ok:!1,message:s instanceof Error?s.message:"删除信源条目失败"}}}async function Zs(){const o=Ke.trim();if(!o){n(I,"缺少信源 ref");return}n(j,!0),n(I,"");try{const s=await rs(o);if(!s.ok){n(I,s.message);return}const a=R.filter(w=>w.ref!==o);if(!await wo(a)){n(I,"删除信源失败,请重试");return}ss(),await _t({silent:!0})}catch(s){n(I,s instanceof Error?s.message:String(s))}finally{n(j,!1)}}async function Rs(o){for(let s=0;s<120;s++){const a=await Ne(`/api/tasks/${o}`);if(!a.ok)return{ok:!1,error:"轮询失败"};const i=await a.json();if(i.status==="done")return{ok:!0};if(i.status==="error")return{ok:!1,error:i.error??"拉取失败"};await new Promise(w=>setTimeout(w,800))}return{ok:!1,error:"超时"}}async function er(o,s){if(s==null||s.preventDefault(),s==null||s.stopPropagation(),!(o in r()))try{const a=await Ne("/api/tasks",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({type:"source-pull",ref:o})}),i=await a.json();if(!a.ok||!i.taskId)return;Er(o,i.taskId),(await Rs(i.taskId)).ok&&await _t({silent:!0})}catch{}finally{Wr(o)}}function tr(o){const s=o.trim().toLowerCase();return s.startsWith("http://")||s.startsWith("https://")}function or(o){const s=new URL("/rss",typeof window<"u"?window.location.origin:"http://127.0.0.1");return s.searchParams.set("ref",o),s.href}async function sr(o,s){s==null||s.preventDefault(),s==null||s.stopPropagation();try{const a=await Ne("/api/sources/open-browser",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({url:o})}),i=await a.json();a.ok&&i.ok?Tt(i.message??"已在爬虫浏览器中打开","success"):Tt(i.message??"打开失败","error")}catch{Tt("打开失败","error")}finally{n(E,null)}}async function rr(o){const s=or(o);try{await navigator.clipboard.writeText(s)}catch{try{const a=document.createElement("textarea");a.value=s,a.style.position="fixed",a.style.left="-9999px",document.body.appendChild(a),a.select(),document.execCommand("copy"),document.body.removeChild(a)}catch{}}n(E,null)}function nr(o){n(Me,o),o||n(xe,null)}function ar(o){t(re)||(n(xe,o),n(Me,!0),n(E,null))}async function ir(){var s;const o=t(xe);if(!(!o||t(re))){n(Me,!1),n(xe,null),n(re,o);try{const a=await rs(o);if(!a.ok){Tt(a.message,"error");return}const i=R.filter(k=>k.ref!==o);if(!await wo(i)){Tt("移除失败,请重试","error");return}bs(Io).url.pathname==="/"?_s.update(k=>(k==null?void 0:k.ref)===o?null:k):((s=t(ee))==null?void 0:s.ref)===o&&(n(qe,!1),n(ee,null)),await _t({silent:!0})}catch(a){Tt(a instanceof Error?a.message:"移除失败","error")}finally{n(re,null)}}}async function lr(o){if(!t(Ce)&&confirm("确定要清空该信源下的所有条目吗?此操作不可恢复。")){n(Ce,o),n(E,null);try{const s=await Ne("/api/items/by-source?source_url="+encodeURIComponent(o),{method:"DELETE"}),a=await s.json();s.ok&&a.ok?await _t({silent:!0}):s.ok||alert(a.message??"清空失败")}catch(s){alert(s instanceof Error?s.message:"清空失败")}finally{n(Ce,null)}}}function ns(o){var s,a;if(bs(Io).url.pathname==="/"){_s.set({ref:o.ref,displayLabel:o.displayLabel,...(s=o.description)!=null&&s.trim()?{description:o.description.trim()}:{},...(a=o.proxy)!=null&&a.trim()?{proxy:o.proxy.trim()}:{},...o.parseHint!=null?{parseHint:o.parseHint}:{}});return}n(ee,o),n(qe,!0)}function ur(o,s){const a=s.target;a&&(a.closest("a[href], button")||ns(o))}function cr(o,s){s.key!=="Enter"&&s.key!==" "||(s.preventDefault(),ns(o))}zr(_t),Vt(()=>(t(xe),t(W)),()=>{var o;n(m,t(xe)!=null?((o=t(W).find(s=>s.ref===t(xe)))==null?void 0:o.displayLabel)??t(xe):"")}),Vt(()=>t($e),()=>{t($e),Bs(t($e))}),Vt(()=>(t($e),t(bt)),()=>{n(_,es(t($e),t(bt)))}),Vt(()=>t(_),()=>{n(q,t(_)??"llm")}),Vt(()=>(t(le),t(W),t(ve),t(J)),()=>{n(se,qs(t(le).trim()?t(W).filter(o=>{var a;const s=t(le).trim().toLowerCase();return o.displayLabel.toLowerCase().includes(s)||(((a=o.description)==null?void 0:a.toLowerCase().includes(s))??!1)||o.ref.toLowerCase().includes(s)||_o(o.parseHint).toLowerCase().includes(s)}):t(W),t(ve),t(J)))}),Pr(),Mr();var as=Fn(),is=N(as);gs(is,{get open(){return t(X)},onOpenChange:o=>{n(X,o),o||n(Ue,!1)},children:(o,s)=>{po(o,{children:(a,i)=>{var w=mn(),k=N(w);ws(k,{class:"modal-overlay"});var b=v(k,2);Cs(b,{class:"modal","aria-describedby":void 0,children:(H,me)=>{var ue=vn(),g=N(ue),S=f(g);ks(S,{class:"modal-title",children:(O,ne)=>{pe();var ae=zt();_e(()=>ze(ae,t(V)?"编辑信源":"添加信源")),y(O,ae)},$$slots:{default:!0}});var F=v(S,2);co(F,{class:"modal-close","aria-label":"关闭",children:(O,ne)=>{pe();var ae=zt("✕");y(O,ae)},$$slots:{default:!0}}),c(g);var D=v(g,2),Y=f(D),ke=v(f(Y),2),ye=f(ke);Pt(ye),c(ke),c(Y);var te=v(Y,2),ce=v(f(te),2),Q=f(ce);let U;var G=f(Q);Dr(G,{size:14,class:"parse-hint-icon"}),pe(2),c(Q);var de=v(Q,2);let De;var xo=f(de);Ar(xo,{size:14,class:"parse-hint-icon"}),pe(2),c(de);var Je=v(de,2);let $o;var oo=f(Je);Fr(oo,{size:14,class:"parse-hint-icon"}),pe(2),c(Je);var Ae=v(Je,2);let Nt;var so=f(Ae);Nr(so,{size:14,class:"parse-hint-icon"}),pe(2),c(Ae),c(ce),c(te);var gt=v(te,2),ro=v(f(gt),2);Pt(ro),c(gt);var Xe=v(gt,2),no=v(f(Xe),2);Pt(no),c(Xe);var Ye=v(Xe,2),It=f(Ye),Ht=v(f(It),2);Pt(Ht),c(It);var ao=v(It,2),Lt=v(f(ao),2);Fo(Lt,5,()=>A,ys,(O,ne)=>{var ae=dn(),Mo=f(ae,!0);c(ae);var uo={};_e(()=>{ze(Mo,(t(ne),x(()=>t(ne).label))),uo!==(uo=(t(ne),x(()=>t(ne).value)))&&(ae.value=(ae.__value=(t(ne),x(()=>t(ne).value)))??"")}),y(O,ae)}),c(Lt),c(ao),c(Ye);var Ee=v(Ye,2),Et=v(f(Ee),2);Pt(Et),c(Ee);var io=v(Ee,2);{var To=O=>{var ne=pn(),ae=f(ne,!0);c(ne),_e(()=>ze(ae,t(I))),y(O,ne)};he(io,O=>{t(I)&&O(To)})}c(D);var nt=v(D,2),wt=f(nt),lo=f(wt);{var So=O=>{var ne=oe(),ae=N(ne);{var Mo=kt=>{var We=hn(),Wt=v(f(We),2),wr=v(Wt,2);c(We),_e(()=>Wt.disabled=t(j)),ie("click",Wt,Zs),ie("click",wr,()=>n(Ue,!1)),y(kt,We)},uo=kt=>{var We=fn(),Wt=f(We);Os(Wt,{size:13}),pe(),c(We),_e(()=>We.disabled=t(j)),ie("click",We,()=>n(Ue,!0)),y(kt,We)};he(ae,kt=>{t(Ue)?kt(Mo):kt(uo,-1)})}y(O,ne)};he(lo,O=>{t(V)&&O(So)})}c(wt);var Qe=v(wt,2),at=f(Qe);co(at,{class:"btn-cancel",get disabled(){return t(j)},children:(O,ne)=>{pe();var ae=zt("取消");y(O,ae)},$$slots:{default:!0}});var Ct=v(at,2),Oo=f(Ct,!0);c(Ct),c(Qe),c(nt),_e(()=>{U=xt(Q,1,"parse-hint svelte-1beoyzy",null,U,{active:t(q)==="rss"}),De=xt(de,1,"parse-hint svelte-1beoyzy",null,De,{active:t(q)==="email"}),$o=xt(Je,1,"parse-hint svelte-1beoyzy",null,$o,{active:t(q)==="plugin"}),Nt=xt(Ae,1,"parse-hint svelte-1beoyzy",null,Nt,{active:t(q)==="llm"}),Ct.disabled=t(j),ze(Oo,t(j)?"保存中…":"保存")}),$t(ye,()=>t($e),O=>n($e,O)),$t(ro,()=>t(vt),O=>n(vt,O)),$t(no,()=>t(mt),O=>n(mt,O)),$t(Ht,()=>t(At),O=>n(At,O)),Or(Lt,()=>t(Ft),O=>n(Ft,O)),$t(Et,()=>t(yt),O=>n(yt,O)),ie("click",Ct,Gs),y(H,ue)},$$slots:{default:!0}}),y(a,w)},$$slots:{default:!0}})},$$slots:{default:!0}});var ls=v(is,2);gs(ls,{get open(){return t(Me)},onOpenChange:nr,children:(o,s)=>{po(o,{children:(a,i)=>{var w=_n(),k=N(w);ws(k,{class:"modal-overlay"});var b=v(k,2);Cs(b,{class:"modal","aria-describedby":"remove-source-desc",children:(H,me)=>{var ue=bn(),g=N(ue),S=f(g);ks(S,{class:"modal-title",children:(Q,U)=>{pe();var G=zt("移除信源");y(Q,G)},$$slots:{default:!0}});var F=v(S,2);co(F,{class:"modal-close","aria-label":"关闭",children:(Q,U)=>{pe();var G=zt("✕");y(Q,G)},$$slots:{default:!0}}),c(g);var D=v(g,2),Y=v(f(D),2);{var ke=Q=>{var U=yn(),G=f(U,!0);c(U),_e(()=>ze(G,t(m))),y(Q,U)};he(Y,Q=>{t(m)&&Q(ke)})}c(D);var ye=v(D,2),te=f(ye);{let Q=Fe(()=>!!t(re));co(te,{class:"btn-cancel",get disabled(){return t(Q)},children:(U,G)=>{pe();var de=zt("取消");y(U,de)},$$slots:{default:!0}})}var ce=v(te,2);c(ye),_e(()=>ce.disabled=!!t(re)),ie("click",ce,ir),y(H,ue)},$$slots:{default:!0}}),y(a,w)},$$slots:{default:!0}})},$$slots:{default:!0}});var us=v(ls,2);{var dr=o=>{{let s=Fe(()=>(t(ee),x(()=>{var b;return((b=t(ee))==null?void 0:b.ref)??""}))),a=Fe(()=>(t(ee),x(()=>{var b;return((b=t(ee))==null?void 0:b.displayLabel)??""}))),i=Fe(()=>(t(ee),x(()=>{var b,H;return((H=(b=t(ee))==null?void 0:b.description)==null?void 0:H.trim())??""}))),w=Fe(()=>(t(ee),x(()=>{var b,H;return((H=(b=t(ee))==null?void 0:b.proxy)==null?void 0:H.trim())??""}))),k=Fe(()=>(t(ee),x(()=>{var b;return((b=t(ee))==null?void 0:b.parseHint)??null})));Ir(o,{variant:"overlay",get open(){return t(qe)},get sourceRef(){return t(s)},get sourceLabel(){return t(a)},get sourceDescription(){return t(i)},get sourceProxy(){return t(w)},get sourceParseHint(){return t(k)},onOpenChange:b=>{n(qe,b),b||n(ee,null)}})}};he(us,o=>{p(),x(()=>p().url.pathname!=="/")&&o(dr)})}var cs=v(us,2),ds=f(cs),Co=f(ds),ps=f(Co),ko=f(ps),zo=f(ko);Pt(zo);var pr=v(zo,2);{var hr=o=>{Ss(o,{get open(){return t(go)},onOpenChange:s=>{n(go,s)},children:(s,a)=>{var i=Cn(),w=N(i);{let b=Fe(()=>(t(ve),x(()=>ts(t(ve))))),H=Fe(()=>t(J)==="asc"?" 升序":" 降序");Ts(w,{type:"button",class:"btn-sort",get title(){return`排序:${t(b)??""}${t(H)??""},点此选择依据或同项切换方向`},"aria-label":"排序",children:(me,ue)=>{rn(me,{size:16})},$$slots:{default:!0}})}var k=v(w,2);po(k,{children:(b,H)=>{$s(b,{class:"dropdown-panel sort-menu",sideOffset:6,align:"start",children:(me,ue)=>{var g=oe(),S=N(g);Fo(S,1,()=>Ys,ys,(F,D)=>{var Y=wn();let ke;var ye=f(Y),te=f(ye,!0);c(ye);var ce=v(ye,2);{var Q=U=>{var G=gn(),de=f(G,!0);c(G),_e(()=>ze(de,t(J)==="asc"?"↑":"↓")),y(U,G)};he(ce,U=>{t(ve)===t(D)&&U(Q)})}c(Y),_e(U=>{ke=xt(Y,1,"sort-menu-item svelte-1beoyzy",null,ke,{active:t(ve)===t(D)}),ze(te,U)},[()=>(t(D),x(()=>ts(t(D))))]),ie("click",Y,()=>Xs(t(D))),y(F,Y)}),y(me,g)},$$slots:{default:!0}})},$$slots:{default:!0}}),y(s,i)},$$slots:{default:!0}})};he(pr,o=>{p(),t(W),x(()=>p().url.pathname==="/"&&t(W).length>0)&&o(hr)})}c(ko);var hs=v(ko,2),Po=f(hs),fr=f(Po);Vr(fr,{size:16,"aria-hidden":"true"}),c(Po),c(hs),c(ps),c(Co);var fs=v(Co,2),vr=f(fs);{var mr=o=>{var s=kn();y(o,s)},yr=o=>{var s=zn(),a=f(s,!0);c(s),_e(()=>ze(a,t(we))),y(o,s)},br=o=>{var s=Pn(),a=v(f(s));pe(),c(s),ie("click",a,os),y(o,s)},_r=o=>{var s=xn();y(o,s)},gr=o=>{var s=An();Fo(s,5,()=>t(se),a=>a.ref,(a,i)=>{const w=Fe(()=>(Ao(Ds),t(i),x(()=>Ds(t(i).ref))));var k=Dn(),b=f(k),H=f(b),me=f(H);{var ue=te=>{var ce=Tn(),Q=f(ce);{var U=G=>{var de=$n();_e(De=>No(de,"src",De),[()=>(Ao(As),Ao(t(w)),x(()=>As(t(w))))]),$r("error",de,()=>{n(Be,{...t(Be),[t(i).ref]:!0})}),Tr(de),y(G,de)};he(Q,G=>{t(Be),t(i),x(()=>!t(Be)[t(i).ref])&&G(U)})}c(ce),y(te,ce)};he(me,te=>{t(w)&&te(ue)})}var g=v(me,2),S=f(g),F=f(S,!0);c(S);var D=v(S,2),Y=f(D,!0);c(D),c(g),c(H),c(b);var ke=v(b,2),ye=f(ke);{let te=Fe(()=>(t(E),t(i),x(()=>t(E)===t(i).ref)));Ss(ye,{get open(){return t(te)},onOpenChange:ce=>{n(E,ce?t(i).ref:null)},children:(ce,Q)=>{var U=Mn(),G=N(U);Ts(G,{class:"btn-icon",title:"更多",onclick:De=>De.stopPropagation(),children:(De,xo)=>{an(De,{size:13})},$$slots:{default:!0}});var de=v(G,2);po(de,{children:(De,xo)=>{$s(De,{class:"dropdown-panel more-menu",sideOffset:6,align:"center",onclick:Je=>Je.stopPropagation(),children:(Je,$o)=>{var oo=On(),Ae=N(oo);let Nt;var so=f(Ae);Hr(so,{size:14});var gt=v(so,2),ro=f(gt,!0);c(gt),c(Ae);var Xe=v(Ae,2),no=f(Xe);un(no,{size:14}),pe(2),c(Xe);var Ye=v(Xe,2),It=f(Ye);nn(It,{size:14}),pe(2),c(Ye);var Ht=v(Ye,2);{var ao=Qe=>{var at=Sn(),Ct=f(at);ln(Ct,{size:14}),pe(2),c(at),ie("click",at,Oo=>sr(t(i).ref,Oo)),y(Qe,at)},Lt=Se(()=>(t(i),x(()=>tr(t(i).ref))));he(Ht,Qe=>{t(Lt)&&Qe(ao)})}var Ee=v(Ht,2),Et=f(Ee);cn(Et,{size:14});var io=v(Et,2),To=f(io,!0);c(io),c(Ee);var nt=v(Ee,2),wt=f(nt);Os(wt,{size:14});var lo=v(wt,2),So=f(lo,!0);c(lo),c(nt),_e(()=>{Nt=xt(Ae,1,"more-menu-item svelte-1beoyzy",null,Nt,{pulling:t(i).ref in r()}),Ae.disabled=(t(i),r(),x(()=>t(i).ref in r())),ze(ro,(t(i),r(),x(()=>t(i).ref in r()?"拉取中…":"拉取"))),Ee.disabled=(t(Ce),t(i),x(()=>t(Ce)===t(i).ref)),ze(To,(t(Ce),t(i),x(()=>t(Ce)===t(i).ref?"清空中…":"清空该源条目"))),nt.disabled=(t(re),t(i),x(()=>t(re)===t(i).ref)),ze(So,(t(re),t(i),x(()=>t(re)===t(i).ref?"移除中…":"移除信源")))}),ie("click",Ae,Qe=>{er(t(i).ref,Qe),n(E,null)}),ie("click",Xe,()=>{Qs(t(i)),n(E,null)}),ie("click",Ye,()=>rr(t(i).ref)),ie("click",Ee,()=>lr(t(i).ref)),ie("click",nt,()=>ar(t(i).ref)),y(Je,oo)},$$slots:{default:!0}})},$$slots:{default:!0}}),y(ce,U)},$$slots:{default:!0}})}c(ke),c(k),_e(()=>{No(H,"title",(t(i),x(()=>t(i).ref))),ze(F,(t(i),x(()=>t(i).displayLabel))),No(D,"title",`已收录 ${t(i),x(()=>t(i).count)??""} 条 · 近 7 天内有拉取记录的条目 ${t(i),x(()=>t(i).weekCount)??""} 条`),ze(Y,(t(i),x(()=>t(i).count)))}),ie("click",k,te=>ur(t(i),te)),ie("keydown",k,te=>cr(t(i),te)),y(a,k)}),c(s),y(o,s)};he(vr,o=>{t(je)?o(mr):t(we)?o(yr,1):(t(W),x(()=>t(W).length===0)?o(br,2):(t(se),x(()=>t(se).length===0)?o(_r,3):o(gr,-1)))})}c(fs),c(ds),c(cs),$t(zo,()=>t(le),o=>n(le,o)),ie("click",Po,os),y(d,as),bo(),l()}xr(["click","keydown"]);export{ra as S};
@@ -0,0 +1,2 @@
1
+ import{b8 as Y,M as U,p as X,X as G,h as T,v as x,b9 as rr,ba as ir,ah as fr,S as ar,m as P,bb as tr,bc as er,bd as ur,i as sr,be as or,bf as cr,bg as M,e as V,bh as lr,bi as nr,O as vr,bj as dr,bk as br}from"./vtBo8kBV.js";import{i as hr,a as gr,d as _r,c as Ar,n as Sr,b as Tr}from"./B2cyTHdf.js";function Nr(r,f){var i=void 0,a;Y(()=>{i!==(i=f())&&(a&&(U(a),a=null),i&&(a=X(()=>{G(()=>i(r))})))})}function z(r){var f,i,a="";if(typeof r=="string"||typeof r=="number")a+=r;else if(typeof r=="object")if(Array.isArray(r)){var t=r.length;for(f=0;f<t;f++)r[f]&&(i=z(r[f]))&&(a&&(a+=" "),a+=i)}else for(i in r)r[i]&&(a&&(a+=" "),a+=i);return a}function Or(){for(var r,f,i=0,a="",t=arguments.length;i<t;i++)(r=arguments[i])&&(f=z(r))&&(a&&(a+=" "),a+=f);return a}function pr(r){return typeof r=="object"?Or(r):r??""}const B=[...`
2
+ \r\f \v\uFEFF`];function Er(r,f,i){var a=r==null?"":""+r;if(f&&(a=a?a+" "+f:f),i){for(var t of Object.keys(i))if(i[t])a=a?a+" "+t:t;else if(a.length)for(var e=t.length,u=0;(u=a.indexOf(t,u))>=0;){var o=u+e;(u===0||B.includes(a[u-1]))&&(o===a.length||B.includes(a[o]))?a=(u===0?"":a.substring(0,u))+a.substring(o+1):u=o}}return a===""?null:a}function D(r,f=!1){var i=f?" !important;":";",a="";for(var t of Object.keys(r)){var e=r[t];e!=null&&e!==""&&(a+=" "+t+": "+e+i)}return a}function w(r){return r[0]!=="-"||r[1]!=="-"?r.toLowerCase():r}function Ir(r,f){if(f){var i="",a,t;if(Array.isArray(f)?(a=f[0],t=f[1]):a=f,r){r=String(r).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var e=!1,u=0,o=!1,n=[];a&&n.push(...Object.keys(a).map(w)),t&&n.push(...Object.keys(t).map(w));var v=0,g=-1;const O=r.length;for(var d=0;d<O;d++){var s=r[d];if(o?s==="/"&&r[d-1]==="*"&&(o=!1):e?e===s&&(e=!1):s==="/"&&r[d+1]==="*"?o=!0:s==='"'||s==="'"?e=s:s==="("?u++:s===")"&&u--,!o&&e===!1&&u===0){if(s===":"&&g===-1)g=d;else if(s===";"||d===O-1){if(g!==-1){var N=w(r.substring(v,g).trim());if(!n.includes(N)){s!==";"&&d++;var S=r.substring(v,d).trim();i+=" "+S+";"}}v=d+1,g=-1}}}}return a&&(i+=D(a)),t&&(i+=D(t,!0)),i=i.trim(),i===""?null:i}return r==null?null:String(r)}function Lr(r,f,i,a,t,e){var u=r.__className;if(T||u!==i||u===void 0){var o=Er(i,a,e);(!T||o!==r.getAttribute("class"))&&(o==null?r.removeAttribute("class"):f?r.className=o:r.setAttribute("class",o)),r.__className=i}else if(e&&t!==e)for(var n in e){var v=!!e[n];(t==null||v!==!!t[n])&&r.classList.toggle(n,v)}return e}function j(r,f={},i,a){for(var t in i){var e=i[t];f[t]!==e&&(i[t]==null?r.style.removeProperty(t):r.style.setProperty(t,e,a))}}function kr(r,f,i,a){var t=r.__style;if(T||t!==f){var e=Ir(f,a);(!T||e!==r.getAttribute("style"))&&(e==null?r.removeAttribute("style"):r.style.cssText=e),r.__style=f}else a&&(Array.isArray(a)?(j(r,i==null?void 0:i[0],a[0]),j(r,i==null?void 0:i[1],a[1],"important")):j(r,i,a));return a}function y(r,f,i=!1){if(r.multiple){if(f==null)return;if(!x(f))return rr();for(var a of r.options)a.selected=f.includes(k(a));return}for(a of r.options){var t=k(a);if(ir(t,f)){a.selected=!0;return}}(!i||f!==void 0)&&(r.selectedIndex=-1)}function F(r){var f=new MutationObserver(()=>{y(r,r.__value)});f.observe(r,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),fr(()=>{f.disconnect()})}function Rr(r,f,i=f){var a=new WeakSet,t=!0;ar(r,"change",e=>{var u=e?"[selected]":":checked",o;if(r.multiple)o=[].map.call(r.querySelectorAll(u),k);else{var n=r.querySelector(u)??r.querySelector("option:not([disabled])");o=n&&k(n)}i(o),P!==null&&a.add(P)}),G(()=>{var e=f();if(r===document.activeElement){var u=P;if(a.has(u))return}if(y(r,e,t),t&&e===void 0){var o=r.querySelector(":checked");o!==null&&(e=k(o),i(e))}r.__value=e,t=!1}),F(r)}function k(r){return"__value"in r?r.__value:r.value}const I=Symbol("class"),L=Symbol("style"),W=Symbol("is custom element"),Z=Symbol("is html"),yr=M?"link":"LINK",Cr=M?"input":"INPUT",Mr=M?"option":"OPTION",Pr=M?"select":"SELECT";function wr(r){if(T){var f=!1,i=()=>{if(!f){if(f=!0,r.hasAttribute("value")){var a=r.value;C(r,"value",null),r.value=a}if(r.hasAttribute("checked")){var t=r.checked;C(r,"checked",null),r.checked=t}}};r.__on_r=i,vr(i),dr()}}function Hr(r,f){var i=q(r);i.checked!==(i.checked=f??void 0)&&(r.checked=f)}function jr(r,f){f?r.hasAttribute("selected")||r.setAttribute("selected",""):r.removeAttribute("selected")}function C(r,f,i,a){var t=q(r);T&&(t[f]=r.getAttribute(f),f==="src"||f==="srcset"||f==="href"&&r.nodeName===yr)||t[f]!==(t[f]=i)&&(f==="loading"&&(r[br]=i),i==null?r.removeAttribute(f):typeof i!="string"&&J(r).includes(f)?r[f]=i:r.setAttribute(f,i))}function Ur(r,f,i,a,t=!1,e=!1){if(T&&t&&r.nodeName===Cr){var u=r,o=u.type==="checkbox"?"defaultChecked":"defaultValue";o in i||wr(u)}var n=q(r),v=n[W],g=!n[Z];let d=T&&v;d&&V(!1);var s=f||{},N=r.nodeName===Mr;for(var S in f)S in i||(i[S]=null);i.class?i.class=pr(i.class):i[I]&&(i.class=null),i[L]&&(i.style??(i.style=null));var O=J(r);for(const c in i){let l=i[c];if(N&&c==="value"&&l==null){r.value=r.__value="",s[c]=l;continue}if(c==="class"){var E=r.namespaceURI==="http://www.w3.org/1999/xhtml";Lr(r,E,l,a,f==null?void 0:f[I],i[I]),s[c]=l,s[I]=i[I];continue}if(c==="style"){kr(r,l,f==null?void 0:f[L],i[L]),s[c]=l,s[L]=i[L];continue}var _=s[c];if(!(l===_&&!(l===void 0&&r.hasAttribute(c)))){s[c]=l;var R=c[0]+c[1];if(R!=="$$")if(R==="on"){const A={},p="$$"+c;let h=c.slice(2);var H=Tr(h);if(hr(h)&&(h=h.slice(0,-7),A.capture=!0),!H&&_){if(l!=null)continue;r.removeEventListener(h,s[p],A),s[p]=null}if(H)gr(h,r,l),_r([h]);else if(l!=null){let Q=function(m){s[c].call(this,m)};s[p]=Ar(h,r,Q,A)}}else if(c==="style")C(r,c,l);else if(c==="autofocus")lr(r,!!l);else if(!v&&(c==="__value"||c==="value"&&l!=null))r.value=r.__value=l;else if(c==="selected"&&N)jr(r,l);else{var b=c;g||(b=Sr(b));var $=b==="defaultValue"||b==="defaultChecked";if(l==null&&!v&&!$)if(n[c]=null,b==="value"||b==="checked"){let A=r;const p=f===void 0;if(b==="value"){let h=A.defaultValue;A.removeAttribute(b),A.defaultValue=h,A.value=A.__value=p?h:null}else{let h=A.defaultChecked;A.removeAttribute(b),A.defaultChecked=h,A.checked=p?h:!1}}else r.removeAttribute(c);else $||O.includes(b)&&(v||typeof l!="string")?(r[b]=l,b in n&&(n[b]=nr)):typeof l!="function"&&C(r,b,l)}}}return d&&V(!0),s}function $r(r,f,i=[],a=[],t=[],e,u=!1,o=!1){tr(t,i,a,n=>{var v=void 0,g={},d=r.nodeName===Pr,s=!1;if(Y(()=>{var S=f(...n.map(sr)),O=Ur(r,v,S,e,u,o);s&&d&&"value"in S&&y(r,S.value);for(let _ of Object.getOwnPropertySymbols(g))S[_]||U(g[_]);for(let _ of Object.getOwnPropertySymbols(S)){var E=S[_];_.description===or&&(!v||E!==v[_])&&(g[_]&&U(g[_]),g[_]=X(()=>Nr(r,()=>E))),O[_]=E}v=O}),d){var N=r;G(()=>{y(N,v.value,!0),F(N)})}s=!0})}function q(r){return r.__attributes??(r.__attributes={[W]:r.nodeName.includes("-"),[Z]:r.namespaceURI===er})}var K=new Map;function J(r){var f=r.getAttribute("is")||r.nodeName,i=K.get(f);if(i)return i;K.set(f,i=[]);for(var a,t=r,e=Element.prototype;e!==t;){a=cr(t);for(var u in a)a[u].set&&i.push(u);t=ur(t)}return i}const Vr="rssany",Br="https://github.com/joohw/rssany";export{Br as G,Vr as P,Lr as a,Hr as b,kr as c,$r as d,Rr as e,Or as f,wr as r,C as s};
@@ -0,0 +1,13 @@
1
+ var Kn=Object.defineProperty;var qn=Object.getPrototypeOf;var Hn=Reflect.get;var Ke=n=>{throw TypeError(n)};var Xn=(n,t,e)=>t in n?Kn(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e;var E=(n,t,e)=>Xn(n,typeof t!="symbol"?t+"":t,e),Ee=(n,t,e)=>t.has(n)||Ke("Cannot "+e);var s=(n,t,e)=>(Ee(n,t,"read from private field"),e?e.call(n):t.get(n)),c=(n,t,e)=>t.has(n)?Ke("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(n):t.set(n,e),p=(n,t,e,r)=>(Ee(n,t,"write to private field"),r?r.call(n,e):t.set(n,e),e),v=(n,t,e)=>(Ee(n,t,"access private method"),e);var qe=(n,t,e)=>Hn(qn(n),e,t);import{b as Yn,a as L,d as Zn,c as G}from"./CS53ooo0.js";import"./BA4Gucnq.js";import{be as Jn,b as fn,E as dn,h as M,a as He,g as Te,bl as Qn,aF as $n,bm as tr,N as er,n as nr,e as Xe,c as Se,Y as rr,ah as ir,at as ut,au as ct,aq as St,U as kt,av as sr,f as z,aw as or,ax as ar,i as T,aA as ye,aB as ur,b7 as ot,a4 as cr,a5 as k,bn as Ye,A as lr,aN as At,bo as fr,bp as Ze,bq as dr,am as hr,an as we,T as pr,aj as wt,br,bs as mr}from"./vtBo8kBV.js";import{e as vr,i as gr}from"./CFwxUBGi.js";import{s as yr}from"./ChUctqXA.js";import{g as wr,f as Er,o as R,m as Tr,u as Sr}from"./B2cyTHdf.js";import{B as hn,i as Ar}from"./BkD3yAYe.js";import{d as Je,f as Ae}from"./DoRPmqLn.js";import{i as Cr}from"./DVa8Y-mQ.js";import{l as Qe,p as w}from"./BAJAS8BI.js";import{k as xr}from"./DCEayuDt.js";function Ir(){return Symbol(Jn)}function Et(n,t,...e){var r=new hn(n);fn(()=>{const i=t()??null;r.ensure(i,i&&(a=>i(a,...e)))},dn)}function Or(n,t,e,r,i,a){let o=M;M&&He();var u=null;M&&Te.nodeType===Qn&&(u=Te,He());var f=M?Te:n,l=new hn(f,!1);fn(()=>{const b=t()||null;var h=tr;if(b===null){l.ensure(null,null);return}return l.ensure(b,g=>{if(b){if(u=M?u:$n(b,h),Yn(u,u),r){M&&wr(b)&&u.append(document.createComment(""));var A=M?er(u):u.appendChild(nr());M&&(A===null?Xe(!1):Se(A)),r(u,A)}rr.nodes.end=u,g.before(u)}M&&Se(g)}),()=>{}},dn),ir(()=>{}),o&&(Xe(!0),Se(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 kr={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 Nr=Zn("<svg><!><!></svg>");function Ss(n,t){const e=Qe(t,["children","$$slots","$$events","$$legacy"]),r=Qe(e,["name","color","size","strokeWidth","absoluteStrokeWidth","iconNode"]);ut(t,!1);let i=w(t,"name",8,void 0),a=w(t,"color",8,"currentColor"),o=w(t,"size",8,24),u=w(t,"strokeWidth",8,2),f=w(t,"absoluteStrokeWidth",8,!1),l=w(t,"iconNode",24,()=>[]);const b=(...m)=>m.filter((d,C,Tt)=>!!d&&Tt.indexOf(d)===C).join(" ");Cr();var h=Nr();Je(h,(m,d)=>({...kr,...r,width:o(),height:o(),stroke:a(),"stroke-width":m,class:d}),[()=>(St(f()),St(u()),St(o()),kt(()=>f()?Number(u())*24/Number(o()):u())),()=>(St(i()),St(e),kt(()=>b("lucide-icon","lucide",i()?`lucide-${i()}`:"",e.class)))]);var g=sr(h);vr(g,1,l,gr,(m,d)=>{var C=ye(()=>ur(T(d),2));let Tt=()=>T(C)[0],jn=()=>T(C)[1];var ze=G(),Gn=z(ze);Or(Gn,Tt,!0,(zn,ls)=>{Je(zn,()=>({...jn()}))}),L(m,ze)});var A=or(g);yr(A,t,"default",{}),ar(h),L(n,h),ct()}function Rr(n){return typeof n=="function"}function Gt(n){return n!==null&&typeof n=="object"}const Pr=["string","number","bigint","boolean"];function xe(n){return n==null||Pr.includes(typeof n)?!0:Array.isArray(n)?n.every(t=>xe(t)):typeof n=="object"?Object.getPrototypeOf(n)===Object.prototype:!1}const Qt=Symbol("box"),pn=Symbol("is-writable");function y(n,t){const e=ye(n);return t?{[Qt]:!0,[pn]:!0,get current(){return T(e)},set current(r){t(r)}}:{[Qt]:!0,get current(){return n()}}}function bn(n){return Gt(n)&&Qt in n}function As(n){return bn(n)?n:Rr(n)?y(n):mn(n)}function mn(n){let t=ot(cr(n));return{[Qt]:!0,[pn]:!0,get current(){return T(t)},set current(e){k(t,e,!0)}}}function vn(...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 $e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,_r=/\n/g,Fr=/^\s*/,Dr=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Lr=/^:\s*/,Mr=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Br=/^[;\s]*/,Wr=/^\s+|\s+$/g,Vr=`
7
+ `,tn="/",en="*",J="",Ur="comment",jr="declaration";function Gr(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(m){var d=m.match(_r);d&&(e+=d.length);var C=m.lastIndexOf(Vr);r=~C?m.length-C:r+m.length}function a(){var m={line:e,column:r};return function(d){return d.position=new o(m),l(),d}}function o(m){this.start=m,this.end={line:e,column:r},this.source=t.source}o.prototype.content=n;function u(m){var d=new Error(t.source+":"+e+":"+r+": "+m);if(d.reason=m,d.filename=t.source,d.line=e,d.column=r,d.source=n,!t.silent)throw d}function f(m){var d=m.exec(n);if(d){var C=d[0];return i(C),n=n.slice(C.length),d}}function l(){f(Fr)}function b(m){var d;for(m=m||[];d=h();)d!==!1&&m.push(d);return m}function h(){var m=a();if(!(tn!=n.charAt(0)||en!=n.charAt(1))){for(var d=2;J!=n.charAt(d)&&(en!=n.charAt(d)||tn!=n.charAt(d+1));)++d;if(d+=2,J===n.charAt(d-1))return u("End of comment missing");var C=n.slice(2,d-2);return r+=2,i(C),n=n.slice(d),r+=2,m({type:Ur,comment:C})}}function g(){var m=a(),d=f(Dr);if(d){if(h(),!f(Lr))return u("property missing ':'");var C=f(Mr),Tt=m({type:jr,property:nn(d[0].replace($e,J)),value:C?nn(C[0].replace($e,J)):J});return f(Br),Tt}}function A(){var m=[];b(m);for(var d;d=g();)d!==!1&&(m.push(d),b(m));return m}return l(),A()}function nn(n){return n?n.replace(Wr,J):J}function zr(n,t){let e=null;if(!n||typeof n!="string")return e;const r=Gr(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 Kr=/\d/,qr=["-","_","/","."];function Hr(n=""){if(!Kr.test(n))return n!==n.toLowerCase()}function Xr(n){const t=[];let e="",r,i;for(const a of n){const o=qr.includes(a);if(o===!0){t.push(e),e="",r=void 0;continue}const u=Hr(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 gn(n){return n?Xr(n).map(t=>Zr(t)).join(""):""}function Yr(n){return Jr(gn(n||""))}function Zr(n){return n?n[0].toUpperCase()+n.slice(1):""}function Jr(n){return n?n[0].toLowerCase()+n.slice(1):""}function Kt(n){if(!n)return{};const t={};function e(r,i){if(r.startsWith("-moz-")||r.startsWith("-webkit-")||r.startsWith("-ms-")||r.startsWith("-o-")){t[gn(r)]=i;return}if(r.startsWith("--")){t[r]=i;return}t[Yr(r)]=i}return zr(n,e),t}function Ot(...n){return(...t)=>{for(const e of n)typeof e=="function"&&e(...t)}}function Qr(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 $r=Qr(/[A-Z]/,n=>`-${n.toLowerCase()}`);function ti(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=>`${$r(t)}: ${n[t]};`).join(`
8
+ `)}function ei(n={}){return ti(n).replace(`
9
+ `," ")}const ni=["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"],ri=new Set(ni);function ii(n){return ri.has(n)}function Cs(...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 l=a,b=o;t[i]=vn(l,b)}else if(u&&f)t[i]=Ot(a,o);else if(i==="class"){const l=xe(a),b=xe(o);l&&b?t[i]=Ae(a,o):l?t[i]=Ae(a):b&&(t[i]=Ae(o))}else if(i==="style"){const l=typeof a=="object",b=typeof o=="object",h=typeof a=="string",g=typeof o=="string";if(l&&b)t[i]={...a,...o};else if(l&&g){const A=Kt(o);t[i]={...a,...A}}else if(h&&b){const A=Kt(a);t[i]={...A,...o}}else if(h&&g){const A=Kt(a),m=Kt(o);t[i]={...A,...m}}else l?t[i]=a:b?t[i]=o:h?t[i]=a:g&&(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=ei(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 si=typeof window<"u"?window:void 0;function oi(n){let t=n.activeElement;for(;t!=null&&t.shadowRoot;){const e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}var _,F,B,ie,P,It,Xt;const We=class We extends Map{constructor(e){super();c(this,P);c(this,_,new Map);c(this,F,ot(0));c(this,B,ot(0));c(this,ie,Ye||-1);if(e){for(var[r,i]of e)super.set(r,i);s(this,B).v=super.size}}has(e){var r=s(this,_),i=r.get(e);if(i===void 0)if(super.has(e))i=v(this,P,It).call(this,0),r.set(e,i);else return T(s(this,F)),!1;return T(i),!0}forEach(e,r){v(this,P,Xt).call(this),super.forEach(e,r)}get(e){var r=s(this,_),i=r.get(e);if(i===void 0)if(super.has(e))i=v(this,P,It).call(this,0),r.set(e,i);else{T(s(this,F));return}return T(i),super.get(e)}set(e,r){var h;var i=s(this,_),a=i.get(e),o=super.get(e),u=super.set(e,r),f=s(this,F);if(a===void 0)a=v(this,P,It).call(this,0),i.set(e,a),k(s(this,B),super.size),At(f);else if(o!==r){At(a);var l=f.reactions===null?null:new Set(f.reactions),b=l===null||!((h=a.reactions)!=null&&h.every(g=>l.has(g)));b&&At(f)}return u}delete(e){var r=s(this,_),i=r.get(e),a=super.delete(e);return i!==void 0&&(r.delete(e),k(i,-1)),a&&(k(s(this,B),super.size),At(s(this,F))),a}clear(){if(super.size!==0){super.clear();var e=s(this,_);k(s(this,B),0);for(var r of e.values())k(r,-1);At(s(this,F)),e.clear()}}keys(){return T(s(this,F)),super.keys()}values(){return v(this,P,Xt).call(this),super.values()}entries(){return v(this,P,Xt).call(this),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return T(s(this,B)),super.size}};_=new WeakMap,F=new WeakMap,B=new WeakMap,ie=new WeakMap,P=new WeakSet,It=function(e){return Ye===s(this,ie)?ot(e):lr(e)},Xt=function(){T(s(this,F));var e=s(this,_);if(s(this,B).v!==e.size){for(var r of qe(We.prototype,this,"keys").call(this))if(!e.has(r)){var i=v(this,P,It).call(this,0);e.set(r,i)}}for([,i]of s(this,_))T(i)};let Ie=We;var lt,Nt;class ai{constructor(t={}){c(this,lt);c(this,Nt);const{window:e=si,document:r=e==null?void 0:e.document}=t;e!==void 0&&(p(this,lt,r),p(this,Nt,Er(i=>{const a=R(e,"focusin",i),o=R(e,"focusout",i);return()=>{a(),o()}})))}get current(){var t;return(t=s(this,Nt))==null||t.call(this),s(this,lt)?oi(s(this,lt)):null}}lt=new WeakMap,Nt=new WeakMap;new ai;var Rt,W;class ui{constructor(t){c(this,Rt);c(this,W);p(this,Rt,t),p(this,W,Symbol(t))}get key(){return s(this,W)}exists(){return fr(s(this,W))}get(){const t=Ze(s(this,W));if(t===void 0)throw new Error(`Context "${s(this,Rt)}" not found`);return t}getOr(t){const e=Ze(s(this,W));return e===void 0?t:e}set(t){return dr(s(this,W),t)}}Rt=new WeakMap,W=new WeakMap;function ci(n,t){switch(n){case"post":we(t);break;case"pre":hr(t);break}}function yn(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(l=>l()):n();if(!a){a=!0,o=u;return}const f=kt(()=>e(u,o));return o=u,f})}function Y(n,t,e){yn(n,"post",t,e)}function li(n,t,e){yn(n,"pre",t,e)}Y.pre=li;function zt(n){we(()=>()=>{n()})}function fi(n,t){return setTimeout(t,n)}function Be(n){pr().then(n)}const di=1,hi=9,pi=11;function Oe(n){return Gt(n)&&n.nodeType===di&&typeof n.nodeName=="string"}function wn(n){return Gt(n)&&n.nodeType===hi}function bi(n){var t;return Gt(n)&&((t=n.constructor)==null?void 0:t.name)==="VisualViewport"}function mi(n){return Gt(n)&&n.nodeType!==void 0}function En(n){return mi(n)&&n.nodeType===pi&&"host"in n}function vi(n,t){var r;if(!n||!t||!Oe(n)||!Oe(t))return!1;const e=(r=t.getRootNode)==null?void 0:r.call(t);if(n===t||n.contains(t))return!0;if(e&&En(e)){let i=t;for(;i;){if(n===i)return!0;i=i.parentNode||i.host}}return!1}function gi(n){return wn(n)?n:bi(n)?n.document:(n==null?void 0:n.ownerDocument)??document}function yi(n){var t;return En(n)?yi(n.host):wn(n)?n.defaultView??window:Oe(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 Pt;class Tn{constructor(t){E(this,"element");c(this,Pt,ye(()=>this.element.current?this.element.current.getRootNode()??document:document));E(this,"getDocument",()=>gi(this.root));E(this,"getWindow",()=>this.getDocument().defaultView??window);E(this,"getActiveElement",()=>wi(this.root));E(this,"isActiveElement",t=>t===this.getActiveElement());E(this,"querySelector",t=>this.root?this.root.querySelector(t):null);E(this,"querySelectorAll",t=>this.root?this.root.querySelectorAll(t):[]);E(this,"setTimeout",(t,e)=>this.getWindow().setTimeout(t,e));E(this,"clearTimeout",t=>this.getWindow().clearTimeout(t));typeof t=="function"?this.element=y(t):this.element=t}get root(){return T(s(this,Pt))}set root(t){k(s(this,Pt),t)}getElementById(t){return this.root.getElementById(t)}}Pt=new WeakMap;function xs(n,t){return{[Ir()]:e=>bn(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 Is(n){return n?"true":"false"}function Os(n){return n?"":void 0}function ks(n){return n?!0:void 0}function Ns(n){return n?"open":"closed"}var ft,_t;class Ei{constructor(t){c(this,ft);c(this,_t);E(this,"attrs");p(this,ft,t.getVariant?t.getVariant():null),p(this,_t,s(this,ft)?`data-${s(this,ft)}-`:`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,_t)}${t}`}selector(t,e){return`[${this.getAttr(t,e)}]`}}ft=new WeakMap,_t=new WeakMap;function Ti(n){const t=new Ei(n);return{...t.attrs,selector:t.selector,getAttr:t.getAttr}}const Rs="ArrowDown",Ps="ArrowUp",_s="End",Fs="Enter",Si="Escape",Ds="Home",Ls="PageDown",Ms="PageUp",Bs=" ",Ws="Tab",Sn=typeof document<"u",rn=Ai();function Ai(){var n,t;return Sn&&((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 sn(n){return n instanceof HTMLElement}function Vs(n){return n instanceof Element}function Ci(n){return n instanceof Element||n instanceof SVGElement}function Us(n){return n.pointerType==="touch"}function js(n){return n!==null}var dt,Q,j,ke,Yt;class xi{constructor(t){c(this,j);c(this,dt);c(this,Q,null);p(this,dt,t),zt(()=>v(this,j,ke).call(this))}run(t){v(this,j,ke).call(this);const e=s(this,dt).ref.current;if(e){if(typeof e.getAnimations!="function"){v(this,j,Yt).call(this,t);return}p(this,Q,window.requestAnimationFrame(()=>{const r=e.getAnimations();if(r.length===0){v(this,j,Yt).call(this,t);return}Promise.allSettled(r.map(i=>i.finished)).then(()=>{v(this,j,Yt).call(this,t)})}))}}}dt=new WeakMap,Q=new WeakMap,j=new WeakSet,ke=function(){s(this,Q)&&(window.cancelAnimationFrame(s(this,Q)),p(this,Q,null))},Yt=function(t){const e=()=>{t()};s(this,dt).afterTick?Be(e):e()};var D,Ft,Dt,$;class Gs{constructor(t){c(this,D);c(this,Ft);c(this,Dt);c(this,$,ot(!1));p(this,D,t),k(s(this,$),t.open.current,!0),p(this,Ft,t.enabled??!0),p(this,Dt,new xi({ref:s(this,D).ref,afterTick:s(this,D).open})),Y(()=>s(this,D).open.current,e=>{e&&k(s(this,$),!0),s(this,Ft)&&s(this,Dt).run(()=>{var r,i;e===s(this,D).open.current&&(s(this,D).open.current||k(s(this,$),!1),(i=(r=s(this,D)).onComplete)==null||i.call(r))})})}get shouldRender(){return T(s(this,$))}}D=new WeakMap,Ft=new WeakMap,Dt=new WeakMap,$=new WeakMap;function N(){}function zs(n,t){return`bits-${n}`}function Ii(n,t){var e=G(),r=z(e);xr(r,()=>t.children,i=>{var a=G(),o=z(a);Et(o,()=>t.children??wt),L(i,a)}),L(n,e)}const Oi=new ui("BitsConfig");function ki(){const n=new Ni(null,{});return Oi.getOr(n).opts}class Ni{constructor(t,e){E(this,"opts");const r=Ri(t,e);this.opts={defaultPortalTo:r(i=>i.defaultPortalTo),defaultLocale:r(i=>i.defaultLocale)}}}function Ri(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 Pi(n,t){return e=>{const r=ki();return y(()=>{const i=e();if(i!==void 0)return i;const a=n(r).current;return a!==void 0?a:t})}}const _i=Pi(n=>n.defaultPortalTo,"body");function Ks(n,t){ut(t,!0);const e=_i(()=>t.to),r=br();let i=ye(a);function a(){if(!Sn||t.disabled)return null;let h=null;return typeof e.current=="string"?h=document.querySelector(e.current):h=e.current,h}let o;function u(){o&&(Sr(o),o=null)}Y([()=>T(i),()=>t.disabled],([h,g])=>{if(!h||g){u();return}return o=Tr(Ii,{target:h,props:{children:t.children},context:r}),()=>{u()}});var f=G(),l=z(f);{var b=h=>{var g=G(),A=z(g);Et(A,()=>t.children??wt),L(h,g)};Ar(l,h=>{t.disabled&&h(b)})}L(n,f),ct()}function on(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 An(n,t){return n===t||n.contains(t)}function Cn(n){return(n==null?void 0:n.ownerDocument)??document}function Fi(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 xn=["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] *)"],$t=xn.join(","),In=typeof Element>"u",at=In?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,te=!In&&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},ee=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]"):ee(t.parentNode));return o},Di=function(t){var e,r=t==null||(e=t.getAttribute)===null||e===void 0?void 0:e.call(t,"contenteditable");return r===""||r==="true"},On=function(t,e,r){if(ee(t))return[];var i=Array.prototype.slice.apply(t.querySelectorAll($t));return e&&at.call(t,$t)&&i.unshift(t),i=i.filter(r),i},ne=function(t,e,r){for(var i=[],a=Array.from(t);a.length;){var o=a.shift();if(!ee(o,!1))if(o.tagName==="SLOT"){var u=o.assignedElements(),f=u.length?u:o.children,l=ne(f,!0,r);r.flatten?i.push.apply(i,l):i.push({scopeParent:o,candidates:l})}else{var b=at.call(o,$t);b&&r.filter(o)&&(e||!t.includes(o))&&i.push(o);var h=o.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(o),g=!ee(h,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(o));if(h&&g){var A=ne(h===!0?o.children:h.children,!0,r);r.flatten?i.push.apply(i,A):i.push({scopeParent:o,candidates:A})}else a.unshift.apply(a,o.children)}}return i},kn=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},Nn=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||Di(t))&&!kn(t)?0:t.tabIndex},Li=function(t,e){var r=Nn(t);return r<0&&e&&!kn(t)?0:r},Mi=function(t,e){return t.tabIndex===e.tabIndex?t.documentOrder-e.documentOrder:t.tabIndex-e.tabIndex},Rn=function(t){return t.tagName==="INPUT"},Bi=function(t){return Rn(t)&&t.type==="hidden"},Wi=function(t){var e=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return e},Vi=function(t,e){for(var r=0;r<t.length;r++)if(t[r].checked&&t[r].form===e)return t[r]},Ui=function(t){if(!t.name)return!0;var e=t.form||te(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=Vi(i,t.form);return!a||a===t},ji=function(t){return Rn(t)&&t.type==="radio"},Gi=function(t){return ji(t)&&!Ui(t)},zi=function(t){var e,r=t&&te(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 l,b,h;r=te(i),i=(l=r)===null||l===void 0?void 0:l.host,a=!!((b=i)!==null&&b!==void 0&&(h=b.ownerDocument)!==null&&h!==void 0&&h.contains(i))}}return a},an=function(t){var e=t.getBoundingClientRect(),r=e.width,i=e.height;return r===0&&i===0},Ki=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=at.call(t,"details>summary:first-of-type"),u=o?t.parentElement:t;if(at.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 l=t.parentElement,b=te(t);if(l&&!l.shadowRoot&&i(l)===!0)return an(t);t.assignedSlot?t=t.assignedSlot:!l&&b!==t.ownerDocument?t=b.host:t=l}t=f}if(zi(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return an(t);return!1},qi=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 at.call(e,"fieldset[disabled] *")?!0:!i.contains(t)}return!0}e=e.parentElement}return!1},re=function(t,e){return!(e.disabled||Bi(e)||Ki(e,t)||Wi(e)||qi(e))},Ne=function(t,e){return!(Gi(e)||Nn(e)<0||!re(t,e))},Hi=function(t){var e=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(e)||e>=0)},Pn=function(t){var e=[],r=[];return t.forEach(function(i,a){var o=!!i.scopeParent,u=o?i.scopeParent:i,f=Li(u,o),l=o?Pn(i.candidates):u;f===0?o?e.push.apply(e,l):e.push(u):r.push({documentOrder:a,tabIndex:f,item:i,isScope:o,content:l})}),r.sort(Mi).reduce(function(i,a){return a.isScope?i.push.apply(i,a.content):i.push(a.content),i},[]).concat(e)},Xi=function(t,e){e=e||{};var r;return e.getShadowRoot?r=ne([t],e.includeContainer,{filter:Ne.bind(null,e),flatten:!1,getShadowRoot:e.getShadowRoot,shadowRootFilter:Hi}):r=On(t,e.includeContainer,Ne.bind(null,e)),Pn(r)},Yi=function(t,e){e=e||{};var r;return e.getShadowRoot?r=ne([t],e.includeContainer,{filter:re.bind(null,e),flatten:!0,getShadowRoot:e.getShadowRoot}):r=On(t,e.includeContainer,re.bind(null,e)),r},qs=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return at.call(t,$t)===!1?!1:Ne(e,t)},Zi=xn.concat("iframe:not([inert]):not([inert] *)").join(","),Ji=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return at.call(t,Zi)===!1?!1:re(e,t)};const Qi="data-context-menu-trigger",$i="data-context-menu-content";Ti({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 ht,tt,K,pt,bt,q,Lt,V,se,yt,_n,oe,mt,ae,ue,ce,le,Mt,Fn,fe,de;const Ve=class Ve{constructor(t){c(this,yt);E(this,"opts");c(this,ht);c(this,tt);c(this,K,{pointerdown:!1});c(this,pt,!1);c(this,bt,!1);c(this,q);c(this,Lt);c(this,V,N);c(this,se,t=>{t.defaultPrevented||this.opts.ref.current&&Be(()=>{var e,r;!this.opts.ref.current||s(this,le).call(this,t.target)||t.target&&!s(this,bt)&&((r=(e=s(this,Lt)).current)==null||r.call(e,t))})});c(this,oe,t=>{let e=t;e.defaultPrevented&&(e=un(t)),s(this,ht).current(t)});c(this,mt,on(t=>{if(!this.opts.ref.current){s(this,V).call(this);return}const e=this.opts.isValidEvent.current(t,this.opts.ref.current)||ns(t,this.opts.ref.current);if(!s(this,pt)||v(this,yt,Fn).call(this)||!e){s(this,V).call(this);return}let r=t;if(r.defaultPrevented&&(r=un(r)),s(this,tt).current!=="close"&&s(this,tt).current!=="defer-otherwise-close"){s(this,V).call(this);return}t.pointerType==="touch"?(s(this,V).call(this),p(this,V,R(s(this,q),"click",s(this,oe),{once:!0}))):s(this,ht).current(r)},10));c(this,ae,t=>{s(this,K)[t.type]=!0});c(this,ue,t=>{s(this,K)[t.type]=!1});c(this,ce,()=>{this.opts.ref.current&&p(this,pt,es(this.opts.ref.current))});c(this,le,t=>this.opts.ref.current?An(this.opts.ref.current,t):!1);c(this,Mt,on(()=>{for(const t in s(this,K))s(this,K)[t]=!1;p(this,pt,!1)},20));c(this,fe,()=>{p(this,bt,!0)});c(this,de,()=>{p(this,bt,!1)});E(this,"props",{onfocuscapture:s(this,fe),onblurcapture:s(this,de)});this.opts=t,p(this,tt,t.interactOutsideBehavior),p(this,ht,t.onInteractOutside),p(this,Lt,t.onFocusOutside),we(()=>{p(this,q,Cn(this.opts.ref.current))});let e=N;const r=()=>{s(this,Mt).call(this),globalThis.bitsDismissableLayers.delete(this),s(this,mt).destroy(),e()};Y([()=>this.opts.enabled.current,()=>this.opts.ref.current],()=>{if(!(!this.opts.enabled.current||!this.opts.ref.current))return fi(1,()=>{this.opts.ref.current&&(globalThis.bitsDismissableLayers.set(this,s(this,tt)),e(),e=v(this,yt,_n).call(this))}),r}),zt(()=>{s(this,Mt).destroy(),globalThis.bitsDismissableLayers.delete(this),s(this,mt).destroy(),s(this,V).call(this),e()})}static create(t){return new Ve(t)}};ht=new WeakMap,tt=new WeakMap,K=new WeakMap,pt=new WeakMap,bt=new WeakMap,q=new WeakMap,Lt=new WeakMap,V=new WeakMap,se=new WeakMap,yt=new WeakSet,_n=function(){return Ot(R(s(this,q),"pointerdown",Ot(s(this,ae),s(this,ce)),{capture:!0}),R(s(this,q),"pointerdown",Ot(s(this,ue),s(this,mt))),R(s(this,q),"focusin",s(this,se)))},oe=new WeakMap,mt=new WeakMap,ae=new WeakMap,ue=new WeakMap,ce=new WeakMap,le=new WeakMap,Mt=new WeakMap,Fn=function(){return Object.values(s(this,K)).some(Boolean)},fe=new WeakMap,de=new WeakMap;let Re=Ve;function ts(n=[...globalThis.bitsDismissableLayers]){return n.findLast(([t,{current:e}])=>e==="close"||e==="ignore")}function es(n){const t=[...globalThis.bitsDismissableLayers],e=ts(t);if(e)return e[0].opts.ref.current===n;const[r]=t[0];return r.opts.ref.current===n}function ns(n,t){const e=n.target;if(!Ci(e))return!1;const r=!!e.closest(`[${Qi}]`);if("button"in n&&n.button>0&&!r)return!1;if("button"in n&&n.button===0&&r)return!0;const i=!!t.closest(`[${$i}]`);return r&&i?!1:Cn(e).documentElement.contains(e)&&!An(t,e)&&Fi(n,t)}function un(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 Hs(n,t){ut(t,!0);let e=w(t,"interactOutsideBehavior",3,"close"),r=w(t,"onInteractOutside",3,N),i=w(t,"onFocusOutside",3,N),a=w(t,"isValidEvent",3,()=>!1);const o=Re.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=G(),f=z(u);Et(f,()=>t.children??wt,()=>({props:o.props})),L(n,u),ct()}globalThis.bitsEscapeLayers??(globalThis.bitsEscapeLayers=new Map);var he,pe;const Ue=class Ue{constructor(t){E(this,"opts");E(this,"domContext");c(this,he,()=>R(this.domContext.getDocument(),"keydown",s(this,pe),{passive:!1}));c(this,pe,t=>{if(t.key!==Si||!rs(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 Tn(this.opts.ref);let e=N;Y(()=>t.enabled.current,r=>(r&&(globalThis.bitsEscapeLayers.set(this,t.escapeKeydownBehavior),e=s(this,he).call(this)),()=>{e(),globalThis.bitsEscapeLayers.delete(this)}))}static create(t){return new Ue(t)}};he=new WeakMap,pe=new WeakMap;let Pe=Ue;function rs(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 Xs(n,t){ut(t,!0);let e=w(t,"escapeKeydownBehavior",3,"close"),r=w(t,"onEscapeKeydown",3,N);Pe.create({escapeKeydownBehavior:y(()=>e()),onEscapeKeydown:y(()=>r()),enabled:y(()=>t.enabled),ref:t.ref});var i=G(),a=z(i);Et(a,()=>t.children??wt),L(n,i),ct()}var U,Bt,et;const be=class be{constructor(){c(this,U,mn([]));c(this,Bt,new WeakMap);c(this,et,new WeakMap)}static getInstance(){return this.instance||(this.instance=new be),this.instance}register(t){const e=this.getActive();e&&e!==t&&e.pause();const r=document.activeElement;r&&r!==document.body&&s(this,et).set(t,r),s(this,U).current=s(this,U).current.filter(i=>i!==t),s(this,U).current.unshift(t)}unregister(t){s(this,U).current=s(this,U).current.filter(r=>r!==t);const e=this.getActive();e&&e.resume()}getActive(){return s(this,U).current[0]}setFocusMemory(t,e){s(this,Bt).set(t,e)}getFocusMemory(t){return s(this,Bt).get(t)}isActiveScope(t){return this.getActive()===t}setPreFocusMemory(t,e){s(this,et).set(t,e)}getPreFocusMemory(t){return s(this,et).get(t)}clearPreFocusMemory(t){s(this,et).delete(t)}};U=new WeakMap,Bt=new WeakMap,et=new WeakMap,E(be,"instance");let _e=be;var H,x,I,nt,X,S,Dn,Ln,Mn,Bn,De,Zt,Le;const je=class je{constructor(t){c(this,S);c(this,H,!1);c(this,x,null);c(this,I,_e.getInstance());c(this,nt,[]);c(this,X);p(this,X,t)}get paused(){return s(this,H)}pause(){p(this,H,!0)}resume(){p(this,H,!1)}mount(t){s(this,x)&&this.unmount(),p(this,x,t),s(this,I).register(this),v(this,S,Bn).call(this),v(this,S,Ln).call(this)}unmount(){s(this,x)&&(v(this,S,Dn).call(this),v(this,S,Mn).call(this),s(this,I).unregister(this),s(this,I).clearPreFocusMemory(this),p(this,x,null))}static use(t){let e=null;return Y([()=>t.ref.current,()=>t.enabled.current],([r,i])=>{r&&i?(e||(e=new je(t)),e.mount(r)):e&&(e.unmount(),e=null)}),zt(()=>{e==null||e.unmount()}),{get props(){return{tabindex:-1}}}}};H=new WeakMap,x=new WeakMap,I=new WeakMap,nt=new WeakMap,X=new WeakMap,S=new WeakSet,Dn=function(){for(const t of s(this,nt))t();p(this,nt,[])},Ln=function(){if(!s(this,x))return;const t=new CustomEvent("focusScope.onOpenAutoFocus",{bubbles:!1,cancelable:!0});s(this,X).onOpenAutoFocus.current(t),t.defaultPrevented||requestAnimationFrame(()=>{if(!s(this,x))return;const e=v(this,S,Zt).call(this);e?(e.focus(),s(this,I).setFocusMemory(this,e)):s(this,x).focus()})},Mn=function(){var e,r;const t=new CustomEvent("focusScope.onCloseAutoFocus",{bubbles:!1,cancelable:!0});if((r=(e=s(this,X).onCloseAutoFocus).current)==null||r.call(e,t),!t.defaultPrevented){const i=s(this,I).getPreFocusMemory(this);if(i&&document.contains(i))try{i.focus()}catch{document.body.focus()}}},Bn=function(){if(!s(this,x)||!s(this,X).trap.current)return;const t=s(this,x),e=t.ownerDocument,r=o=>{if(s(this,H)||!s(this,I).isActiveScope(this))return;const u=o.target;if(!u)return;if(t.contains(u))s(this,I).setFocusMemory(this,u);else{const l=s(this,I).getFocusMemory(this);if(l&&t.contains(l)&&Ji(l))o.preventDefault(),l.focus();else{const b=v(this,S,Zt).call(this),h=v(this,S,Le).call(this)[0];(b||h||t).focus()}}},i=o=>{if(!s(this,X).loop||s(this,H)||o.key!=="Tab"||!s(this,I).isActiveScope(this))return;const u=v(this,S,De).call(this);if(u.length===0)return;const f=u[0],l=u[u.length-1];!o.shiftKey&&e.activeElement===l?(o.preventDefault(),f.focus()):o.shiftKey&&e.activeElement===f&&(o.preventDefault(),l.focus())};s(this,nt).push(R(e,"focusin",r,{capture:!0}),R(t,"keydown",i));const a=new MutationObserver(()=>{const o=s(this,I).getFocusMemory(this);if(o&&!t.contains(o)){const u=v(this,S,Zt).call(this),f=v(this,S,Le).call(this)[0],l=u||f;l?(l.focus(),s(this,I).setFocusMemory(this,l)):t.focus()}});a.observe(t,{childList:!0,subtree:!0}),s(this,nt).push(()=>a.disconnect())},De=function(){return s(this,x)?Xi(s(this,x),{includeContainer:!1,getShadowRoot:!0}):[]},Zt=function(){return v(this,S,De).call(this)[0]||null},Le=function(){return s(this,x)?Yi(s(this,x),{includeContainer:!1,getShadowRoot:!0}):[]};let Fe=je;function Ys(n,t){ut(t,!0);let e=w(t,"enabled",3,!1),r=w(t,"trapFocus",3,!1),i=w(t,"loop",3,!1),a=w(t,"onCloseAutoFocus",3,N),o=w(t,"onOpenAutoFocus",3,N);const u=Fe.use({enabled:y(()=>e()),trap:y(()=>r()),loop:i(),onCloseAutoFocus:y(()=>a()),onOpenAutoFocus:y(()=>o()),ref:t.ref});var f=G(),l=z(f);Et(l,()=>t.focusScope??wt,()=>({props:u.props})),L(n,f),ct()}globalThis.bitsTextSelectionLayers??(globalThis.bitsTextSelectionLayers=new Map);var vt,me,Wn,ve,Wt;const Ge=class Ge{constructor(t){c(this,me);E(this,"opts");E(this,"domContext");c(this,vt,N);c(this,ve,t=>{const e=this.opts.ref.current,r=t.target;!sn(e)||!sn(r)||!this.opts.enabled.current||!ss(this)||!vi(e,r)||(this.opts.onPointerDown.current(t),!t.defaultPrevented&&p(this,vt,is(e,this.domContext.getDocument().body)))});c(this,Wt,()=>{s(this,vt).call(this),p(this,vt,N)});this.opts=t,this.domContext=new Tn(t.ref);let e=N;Y(()=>this.opts.enabled.current,r=>(r&&(globalThis.bitsTextSelectionLayers.set(this,this.opts.enabled),e(),e=v(this,me,Wn).call(this)),()=>{e(),s(this,Wt).call(this),globalThis.bitsTextSelectionLayers.delete(this)}))}static create(t){return new Ge(t)}};vt=new WeakMap,me=new WeakSet,Wn=function(){return Ot(R(this.domContext.getDocument(),"pointerdown",s(this,ve)),R(this.domContext.getDocument(),"pointerup",vn(s(this,Wt),this.opts.onPointerUp.current)))},ve=new WeakMap,Wt=new WeakMap;let Me=Ge;const cn=n=>n.style.userSelect||n.style.webkitUserSelect;function is(n,t){const e=cn(t),r=cn(n);return qt(t,"none"),qt(n,"text"),()=>{qt(t,e),qt(n,r)}}function qt(n,t){n.style.userSelect=t,n.style.webkitUserSelect=t}function ss(n){const t=[...globalThis.bitsTextSelectionLayers];if(!t.length)return!1;const e=t.at(-1);return e?e[0]===n:!1}function Zs(n,t){ut(t,!0);let e=w(t,"preventOverflowTextSelection",3,!0),r=w(t,"onPointerDown",3,N),i=w(t,"onPointerUp",3,N);Me.create({id:y(()=>t.id),onPointerDown:y(()=>r()),onPointerUp:y(()=>i()),enabled:y(()=>t.enabled&&e()),ref:t.ref});var a=G(),o=z(a);Et(o,()=>t.children??wt),L(n,a),ct()}globalThis.bitsIdCounter??(globalThis.bitsIdCounter={current:0});function os(n="bits"){return globalThis.bitsIdCounter.current++,`${n}-${globalThis.bitsIdCounter.current}`}var Vt,gt,rt,it,ge,Vn;class as{constructor(t){c(this,ge);c(this,Vt);c(this,gt,0);c(this,rt,ot());c(this,it);p(this,Vt,t)}get(...t){return p(this,gt,s(this,gt)+1),T(s(this,rt))===void 0&&p(this,it,mr(()=>{k(s(this,rt),s(this,Vt).call(this,...t),!0)})),we(()=>()=>{v(this,ge,Vn).call(this)}),T(s(this,rt))}}Vt=new WeakMap,gt=new WeakMap,rt=new WeakMap,it=new WeakMap,ge=new WeakSet,Vn=function(){p(this,gt,s(this,gt)-1),s(this,it)&&s(this,gt)<=0&&(s(this,it).call(this),k(s(this,rt),void 0),p(this,it,void 0))};const Jt=new Ie;let Ht=ot(null),Z=null,Ct=null,xt=!1;const ln=y(()=>{for(const n of Jt.values())if(n)return!0;return!1});let Ce=null;const us=new as(()=>{function n(){document.body.setAttribute("style",T(Ht)??""),document.body.style.removeProperty("--scrollbar-width"),rn&&(Z==null||Z()),k(Ht,null)}function t(){Ct!==null&&(window.clearTimeout(Ct),Ct=null)}function e(i,a){t(),xt=!0,Ce=Date.now();const o=Ce,u=()=>{Ct=null,Ce===o&&(Un(Jt)?xt=!1:(xt=!1,a()))},f=i===null?24:i;Ct=window.setTimeout(u,f)}function r(){T(Ht)===null&&Jt.size===0&&!xt&&k(Ht,document.body.getAttribute("style"),!0)}return Y(()=>ln.current,()=>{var b,h;if(!ln.current)return;r(),xt=!1;const i=getComputedStyle(document.documentElement),a=getComputedStyle(document.body),o=((b=i.scrollbarGutter)==null?void 0:b.includes("stable"))||((h=a.scrollbarGutter)==null?void 0:h.includes("stable")),u=window.innerWidth-document.documentElement.clientWidth,l={padding:Number.parseInt(a.paddingRight??"0",10)+u,margin:Number.parseInt(a.marginRight??"0",10)};u>0&&!o&&(document.body.style.paddingRight=`${l.padding}px`,document.body.style.marginRight=`${l.margin}px`,document.body.style.setProperty("--scrollbar-width",`${u}px`)),document.body.style.overflow="hidden",rn&&(Z=R(document,"touchmove",g=>{g.target===document.documentElement&&(g.touches.length>1||g.preventDefault())},{passive:!1})),Be(()=>{document.body.style.pointerEvents="none",document.body.style.overflow="hidden"})}),zt(()=>()=>{Z==null||Z()}),{get lockMap(){return Jt},resetBodyStyle:n,scheduleCleanupIfNoNewLocks:e,cancelPendingCleanup:t,ensureInitialStyleCaptured:r}});var st,Ut,jt,O;class cs{constructor(t,e=()=>null){c(this,st,os());c(this,Ut);c(this,jt,()=>null);c(this,O);E(this,"locked");p(this,Ut,t),p(this,jt,e),p(this,O,us.get()),s(this,O)&&(s(this,O).cancelPendingCleanup(),s(this,O).ensureInitialStyleCaptured(),s(this,O).lockMap.set(s(this,st),s(this,Ut)??!1),this.locked=y(()=>s(this,O).lockMap.get(s(this,st))??!1,r=>s(this,O).lockMap.set(s(this,st),r)),zt(()=>{if(s(this,O).lockMap.delete(s(this,st)),Un(s(this,O).lockMap))return;const r=s(this,jt).call(this);s(this,O).scheduleCleanupIfNoNewLocks(r,()=>{s(this,O).resetBodyStyle()})}))}}st=new WeakMap,Ut=new WeakMap,jt=new WeakMap,O=new WeakMap;function Un(n){for(const[t,e]of n)if(e)return!0;return!1}function Js(n,t){ut(t,!0);let e=w(t,"preventScroll",3,!0),r=w(t,"restoreScrollDelay",3,null);e()&&new cs(e(),()=>r()),ct()}export{ei as A,yi as B,ui as C,Hs as D,Fs as E,Ys as F,Be as G,Ps as H,Ss as I,Rs as J,Ws as K,Ms as L,Ds as M,Ls as N,_s as O,Ks as P,rn as Q,ks as R,Bs as S,Zs as T,Gs as a,y as b,Ti as c,xs as d,Os as e,zs as f,Ns as g,Xs as h,Js as i,gi as j,Vs as k,Tn as l,Cs as m,N as n,zt as o,Us as p,Is as q,qs as r,Et as s,si as t,mn as u,As as v,Y as w,os as x,Kt as y,js as z};
@@ -1 +1 @@
1
- import{ar as t,an as u,W as o,aa as c,U as e}from"./BbWUOQ_m.js";function l(n){o===null&&t(),c&&o.l!==null?s(o).m.push(n):u(()=>{const a=e(n);if(typeof a=="function")return a})}function i(n){o===null&&t(),l(()=>()=>e(n))}function s(n){var a=n.l;return a.u??(a.u={a:[],b:[],m:[]})}export{i as a,l as o};
1
+ import{ar as t,an as u,W as o,aa as c,U as e}from"./vtBo8kBV.js";function l(n){o===null&&t(),c&&o.l!==null?s(o).m.push(n):u(()=>{const a=e(n);if(typeof a=="function")return a})}function i(n){o===null&&t(),l(()=>()=>e(n))}function s(n){var a=n.l;return a.u??(a.u={a:[],b:[],m:[]})}export{i as a,l as o};
@@ -1 +1 @@
1
- import{c as _,a as s,f as g}from"./BK3WtZwv.js";import"./lk5LaiqA.js";import{at as d,aC as b,aD as h,f as v,au as $,a5 as k,i as n,z as y,az as B}from"./BbWUOQ_m.js";import{s as z,a as j}from"./DjNLq3TF.js";import{i as x}from"./Dt2CddFe.js";import{s as C}from"./B2Q1a1-H.js";import{i as D}from"./CVzlFH44.js";import{p as H}from"./Bu9HsS-V.js";var P=g('<a class="back-to-parent admin-toolbar-btn admin-toolbar-btn--secondary svelte-1md38m6" data-sveltekit-preload-data="hover" aria-label="返回上一层">返回</a>');function I(i,p){d(p,!1);const r=()=>j(H,"$page",f),[f,l]=z(),e=y();function m(t){const a=t.split("/").filter(Boolean);return a.length===0?null:a.length===1?a[0]==="admin"?null:a[0]==="plugins"||a[0]==="logs"?"/":null:(a.pop(),"/"+a.join("/"))}b(()=>r(),()=>{k(e,m(r().url.pathname))}),h(),D();var o=_(),c=v(o);{var u=t=>{var a=P();B(()=>C(a,"href",n(e))),s(t,a)};x(c,t=>{n(e)&&t(u)})}s(i,o),$(),l()}export{I as B};
1
+ import{c as _,a as s,f as g}from"./CS53ooo0.js";import"./BA4Gucnq.js";import{at as d,aC as b,aD as h,f as v,au as $,a5 as k,i as n,z as y,az as B}from"./vtBo8kBV.js";import{s as z,a as j}from"./B6WG2Sd3.js";import{i as x}from"./BkD3yAYe.js";import{s as C}from"./DoRPmqLn.js";import{i as D}from"./DVa8Y-mQ.js";import{p as H}from"./CqYSO3Dx.js";var P=g('<a class="back-to-parent admin-toolbar-btn admin-toolbar-btn--secondary svelte-1md38m6" data-sveltekit-preload-data="hover" aria-label="返回上一层">返回</a>');function I(i,p){d(p,!1);const r=()=>j(H,"$page",f),[f,l]=z(),e=y();function m(t){const a=t.split("/").filter(Boolean);return a.length===0?null:a.length===1?a[0]==="admin"?null:a[0]==="plugins"||a[0]==="logs"?"/":null:(a.pop(),"/"+a.join("/"))}b(()=>r(),()=>{k(e,m(r().url.pathname))}),h(),D();var o=_(),c=v(o);{var u=t=>{var a=P();B(()=>C(a,"href",n(e))),s(t,a)};x(c,t=>{n(e)&&t(u)})}s(i,o),$(),l()}export{I as B};
@@ -0,0 +1 @@
1
+ var wt=Object.defineProperty;var Sn=e=>{throw TypeError(e)};var yt=(e,n,t)=>n in e?wt(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t;var ae=(e,n,t)=>yt(e,typeof n!="symbol"?n+"":n,t),Ze=(e,n,t)=>n.has(e)||Sn("Cannot "+t);var _=(e,n,t)=>(Ze(e,n,"read from private field"),t?t.call(e):n.get(e)),D=(e,n,t)=>n.has(e)?Sn("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(e):n.set(e,t),K=(e,n,t,r)=>(Ze(e,n,"write to private field"),r?r.call(e,t):n.set(e,t),t),q=(e,n,t)=>(Ze(e,n,"access private method"),t);var Et=Array.isArray,mt=Array.prototype.indexOf,Se=Array.prototype.includes,hr=Array.from,wr=Object.defineProperty,Ie=Object.getOwnPropertyDescriptor,gt=Object.getOwnPropertyDescriptors,bt=Object.prototype,Tt=Array.prototype,Ln=Object.getPrototypeOf,xn=Object.isExtensible;function yr(e){return typeof e=="function"}const At=()=>{};function Er(e){return e()}function St(e){for(var n=0;n<e.length;n++)e[n]()}function jn(){var e,n,t=new Promise((r,s)=>{e=r,n=s});return{promise:t,resolve:e,reject:n}}function mr(e,n){if(Array.isArray(e))return e;if(!(Symbol.iterator in e))return Array.from(e);const t=[];for(const r of e)if(t.push(r),t.length===n)break;return t}const T=2,_e=4,Le=8,cn=1<<24,se=16,G=32,Q=64,xt=128,M=512,m=1024,R=2048,H=4096,V=8192,B=16384,we=32768,Rn=1<<25,qe=65536,Nn=1<<17,Rt=1<<18,Re=1<<19,Yn=1<<20,gr=1<<25,ve=65536,Qe=1<<21,_n=1<<22,W=1<<23,ue=Symbol("$state"),br=Symbol("legacy props"),Tr=Symbol(""),$=new class extends Error{constructor(){super(...arguments);ae(this,"name","StaleReactionError");ae(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}};var Fn;const Sr=!!((Fn=globalThis.document)!=null&&Fn.contentType)&&globalThis.document.contentType.includes("xml"),xr=1,$e=3,Hn=8;function Nt(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Ot(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Rr(e,n,t){throw new Error("https://svelte.dev/e/each_key_duplicate")}function kt(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Ct(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Dt(e){throw new Error("https://svelte.dev/e/effect_orphan")}function It(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Nr(){throw new Error("https://svelte.dev/e/hydration_failed")}function Or(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Pt(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Mt(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Ft(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function kr(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const Cr=1,Dr=2,Ir=4,Pr=8,Mr=16,Fr=1,Lr=2,jr=4,Yr=8,Hr=16,qr=1,Ur=2,Lt="[",jt="[!",Vr="[?",Yt="]",vn={},A=Symbol(),Ht="http://www.w3.org/1999/xhtml",Br="http://www.w3.org/2000/svg",Gr="@attach";function dn(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Kr(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function $r(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let de=!1;function zr(e){de=e}let b;function xe(e){if(e===null)throw dn(),vn;return b=e}function Xr(){return xe(fe(b))}function Zr(e){if(de){if(fe(b)!==null)throw dn(),vn;b=e}}function Wr(e=1){if(de){for(var n=e,t=b;n--;)t=fe(t);b=t}}function Jr(e=!0){for(var n=0,t=b;;){if(t.nodeType===Hn){var r=t.data;if(r===Yt){if(n===0)return t;n-=1}else(r===Lt||r===jt||r[0]==="["&&!isNaN(Number(r.slice(1))))&&(n+=1)}var s=fe(t);e&&t.remove(),t=s}}function Qr(e){if(!e||e.nodeType!==Hn)throw dn(),vn;return e.data}function qn(e){return e===this.v}function qt(e,n){return e!=e?n==n:e!==n||e!==null&&typeof e=="object"||typeof e=="function"}function Un(e){return!qt(e,this.v)}let ze=!1;function es(){ze=!0}let y=null;function Ue(e){y=e}function ns(e){return Xe().get(e)}function ts(e,n){return Xe().set(e,n),n}function rs(e){return Xe().has(e)}function ss(){return Xe()}function fs(e,n=!1,t){y={p:y,i:!1,c:null,e:null,s:e,x:null,r:w,l:ze&&!n?{s:null,u:null,$:[]}:null}}function as(e){var n=y,t=n.e;if(t!==null){n.e=null;for(var r of t)st(r)}return n.i=!0,y=n.p,{}}function je(){return!ze||y!==null&&y.l===null}function Xe(e){return y===null&&Nt(),y.c??(y.c=new Map(Ut(y)||void 0))}function Ut(e){let n=e.p;for(;n!==null;){const t=n.c;if(t!==null)return t;n=n.p}return null}let ie=[];function Vn(){var e=ie;ie=[],St(e)}function en(e){if(ie.length===0&&!Pe){var n=ie;queueMicrotask(()=>{n===ie&&Vn()})}ie.push(e)}function Vt(){for(;ie.length>0;)Vn()}function Bt(e){var n=w;if(n===null)return d.f|=W,e;if((n.f&we)===0&&(n.f&_e)===0)throw e;Ve(e,n)}function Ve(e,n){for(;n!==null;){if((n.f&xt)!==0){if((n.f&we)===0)throw e;try{n.b.error(e);return}catch(t){e=t}}n=n.parent}throw e}const Gt=-7169;function E(e,n){e.f=e.f&Gt|n}function pn(e){(e.f&M)!==0||e.deps===null?E(e,m):E(e,H)}function Bn(e){if(e!==null)for(const n of e)(n.f&T)===0||(n.f&ve)===0||(n.f^=ve,Bn(n.deps))}function Kt(e,n,t){(e.f&R)!==0?n.add(e):(e.f&H)!==0&&t.add(e),Bn(e.deps),E(e,m)}const Ce=new Set;let p=null,S=null,nn=null,Pe=!1,We=!1,ye=null,Ye=null;var On=0;let $t=1;var Ee,me,ge,be,Fe,P,Te,Z,U,Ae,x,tn,rn,sn,fn,Gn;const Ke=class Ke{constructor(){D(this,x);ae(this,"id",$t++);ae(this,"current",new Map);ae(this,"previous",new Map);D(this,Ee,new Set);D(this,me,new Set);D(this,ge,0);D(this,be,0);D(this,Fe,null);D(this,P,[]);D(this,Te,new Set);D(this,Z,new Set);D(this,U,new Map);ae(this,"is_fork",!1);D(this,Ae,!1)}skip_effect(n){_(this,U).has(n)||_(this,U).set(n,{d:[],m:[]})}unskip_effect(n){var t=_(this,U).get(n);if(t){_(this,U).delete(n);for(var r of t.d)E(r,R),this.schedule(r);for(r of t.m)E(r,H),this.schedule(r)}}capture(n,t){t!==A&&!this.previous.has(n)&&this.previous.set(n,t),(n.f&W)===0&&(this.current.set(n,n.v),S==null||S.set(n,n.v))}activate(){p=this}deactivate(){p=null,S=null}flush(){try{if(We=!0,p=this,!q(this,x,tn).call(this)){for(const n of _(this,Te))_(this,Z).delete(n),E(n,R),this.schedule(n);for(const n of _(this,Z))E(n,H),this.schedule(n)}q(this,x,rn).call(this)}finally{On=0,nn=null,ye=null,Ye=null,We=!1,p=null,S=null,J.clear()}}discard(){for(const n of _(this,me))n(this);_(this,me).clear()}increment(n){K(this,ge,_(this,ge)+1),n&&K(this,be,_(this,be)+1)}decrement(n,t){K(this,ge,_(this,ge)-1),n&&K(this,be,_(this,be)-1),!(_(this,Ae)||t)&&(K(this,Ae,!0),en(()=>{K(this,Ae,!1),this.flush()}))}oncommit(n){_(this,Ee).add(n)}ondiscard(n){_(this,me).add(n)}settled(){return(_(this,Fe)??K(this,Fe,jn())).promise}static ensure(){if(p===null){const n=p=new Ke;We||(Ce.add(p),Pe||en(()=>{p===n&&n.flush()}))}return p}apply(){}schedule(n){var s;if(nn=n,(s=n.b)!=null&&s.is_pending&&(n.f&(_e|Le|cn))!==0&&(n.f&we)===0){n.b.defer_effect(n);return}for(var t=n;t.parent!==null;){t=t.parent;var r=t.f;if(ye!==null&&t===w&&(d===null||(d.f&T)===0))return;if((r&(Q|G))!==0){if((r&m)===0)return;t.f^=m}}_(this,P).push(t)}};Ee=new WeakMap,me=new WeakMap,ge=new WeakMap,be=new WeakMap,Fe=new WeakMap,P=new WeakMap,Te=new WeakMap,Z=new WeakMap,U=new WeakMap,Ae=new WeakMap,x=new WeakSet,tn=function(){return this.is_fork||_(this,be)>0},rn=function(){var l,a;On++>1e3&&Xt();const n=_(this,P);K(this,P,[]),this.apply();var t=ye=[],r=[],s=Ye=[];for(const i of n)q(this,x,sn).call(this,i,t,r);if(p=null,s.length>0){var f=Ke.ensure();for(const i of s)f.schedule(i)}if(ye=null,Ye=null,q(this,x,tn).call(this)){q(this,x,fn).call(this,r),q(this,x,fn).call(this,t);for(const[i,u]of _(this,U))zn(i,u)}else{_(this,Te).clear(),_(this,Z).clear();for(const i of _(this,Ee))i(this);_(this,Ee).clear(),kn(r),kn(t),_(this,ge)===0&&q(this,x,Gn).call(this),(l=_(this,Fe))==null||l.resolve()}var o=p;if(_(this,P).length>0){const i=o??(o=this);_(i,P).push(..._(this,P).filter(u=>!_(i,P).includes(u)))}o!==null&&(Ce.add(o),q(a=o,x,rn).call(a))},sn=function(n,t,r){n.f^=m;for(var s=n.first;s!==null;){var f=s.f,o=(f&(G|Q))!==0,l=o&&(f&m)!==0,a=l||(f&V)!==0||_(this,U).has(s);if(!a&&s.fn!==null){o?s.f^=m:(f&_e)!==0?t.push(s):Ne(s)&&((f&se)!==0&&_(this,Z).add(s),he(s));var i=s.first;if(i!==null){s=i;continue}}for(;s!==null;){var u=s.next;if(u!==null){s=u;break}s=s.parent}}},fn=function(n){for(var t=0;t<n.length;t+=1)Kt(n[t],_(this,Te),_(this,Z))},Gn=function(){var s;if(Ce.size>1){this.previous.clear();var n=p,t=S,r=!0;for(const f of Ce){if(f===this){r=!1;continue}const o=[];for(const[a,i]of this.current){if(f.current.has(a))if(r&&i!==f.current.get(a))f.current.set(a,i);else continue;o.push(a)}if(o.length===0)continue;const l=[...f.current.keys()].filter(a=>!this.current.has(a));if(l.length>0){f.activate();const a=new Set,i=new Map;for(const u of o)Kn(u,l,a,i);if(_(f,P).length>0){f.apply();for(const u of _(f,P))q(s=f,x,sn).call(s,u,[],[])}f.deactivate()}}p=n,S=t}_(this,U).clear(),Ce.delete(this)};let ee=Ke;function zt(e){var n=Pe;Pe=!0;try{for(var t;;){if(Vt(),p===null)return t;p.flush()}}finally{Pe=n}}function Xt(){try{It()}catch(e){Ve(e,nn)}}let j=null;function kn(e){var n=e.length;if(n!==0){for(var t=0;t<n;){var r=e[t++];if((r.f&(B|V))===0&&Ne(r)&&(j=new Set,he(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&it(r),(j==null?void 0:j.size)>0)){J.clear();for(const s of j){if((s.f&(B|V))!==0)continue;const f=[s];let o=s.parent;for(;o!==null;)j.has(o)&&(j.delete(o),f.push(o)),o=o.parent;for(let l=f.length-1;l>=0;l--){const a=f[l];(a.f&(B|V))===0&&he(a)}}j.clear()}}j=null}}function Kn(e,n,t,r){if(!t.has(e)&&(t.add(e),e.reactions!==null))for(const s of e.reactions){const f=s.f;(f&T)!==0?Kn(s,n,t,r):(f&(_n|se))!==0&&(f&R)===0&&$n(s,n,r)&&(E(s,R),hn(s))}}function $n(e,n,t){const r=t.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const s of e.deps){if(Se.call(n,s))return!0;if((s.f&T)!==0&&$n(s,n,t))return t.set(s,!0),!0}return t.set(e,!1),!1}function hn(e){p.schedule(e)}function zn(e,n){if(!((e.f&G)!==0&&(e.f&m)!==0)){(e.f&R)!==0?n.d.push(e):(e.f&H)!==0&&n.m.push(e),E(e,m);for(var t=e.first;t!==null;)zn(t,n),t=t.next}}function Xn(e,n,t,r){const s=je()?yn:Jt;var f=e.filter(c=>!c.settled);if(t.length===0&&f.length===0){r(n.map(s));return}var o=w,l=Zt(),a=f.length===1?f[0].promise:f.length>1?Promise.all(f.map(c=>c.promise)):null;function i(c){l();try{r(c)}catch(g){(o.f&B)===0&&Ve(g,o)}Be()}if(t.length===0){a.then(()=>i(n.map(s)));return}var u=wn();function v(){Promise.all(t.map(c=>Wt(c))).then(c=>i([...n.map(s),...c])).catch(c=>Ve(c,o)).finally(()=>u())}a?a.then(()=>{l(),v(),Be()}):v()}function Zt(){var e=w,n=d,t=y,r=p;return function(f=!0){re(e),te(n),Ue(t),f&&(e.f&B)===0&&(r==null||r.activate(),r==null||r.apply())}}function Be(e=!0){re(null),te(null),Ue(null),e&&(p==null||p.deactivate())}function wn(){var e=w.b,n=p,t=e.is_rendered();return e.update_pending_count(1,n),n.increment(t),(r=!1)=>{e.update_pending_count(-1,n),n.decrement(t,r)}}function yn(e){var n=T|R,t=d!==null&&(d.f&T)!==0?d:null;return w!==null&&(w.f|=Re),{ctx:y,deps:null,effects:null,equals:qn,f:n,fn:e,reactions:null,rv:0,v:A,wv:0,parent:t??w,ac:null}}function Wt(e,n,t){let r=w;r===null&&Ot();var s=void 0,f=mn(A),o=!d,l=new Map;return lr(()=>{var g;var a=w,i=jn();s=i.promise;try{Promise.resolve(e()).then(i.resolve,i.reject).finally(Be)}catch(h){i.reject(h),Be()}var u=p;if(o){if((a.f&we)!==0)var v=wn();if(r.b.is_rendered())(g=l.get(u))==null||g.reject($),l.delete(u);else{for(const h of l.values())h.reject($);l.clear()}l.set(u,i)}const c=(h,L=void 0)=>{if(v){var N=L===$;v(N)}if(!(L===$||(a.f&B)!==0)){if(u.activate(),L)f.f|=W,ln(f,L);else{(f.f&W)!==0&&(f.f^=W),ln(f,h);for(const[Oe,ke]of l){if(l.delete(Oe),Oe===u)break;ke.reject($)}}u.deactivate()}};i.promise.then(c,h=>c(null,h||"unknown"))}),ir(()=>{for(const a of l.values())a.reject($)}),new Promise(a=>{function i(u){function v(){u===s?a(f):i(s)}u.then(v,v)}i(s)})}function is(e){const n=yn(e);return ut(n),n}function Jt(e){const n=yn(e);return n.equals=Un,n}function Qt(e){var n=e.effects;if(n!==null){e.effects=null;for(var t=0;t<n.length;t+=1)ne(n[t])}}function er(e){for(var n=e.parent;n!==null;){if((n.f&T)===0)return(n.f&B)===0?n:null;n=n.parent}return null}function En(e){var n,t=w;re(er(e));try{e.f&=~ve,Qt(e),n=dt(e)}finally{re(t)}return n}function Zn(e){var n=En(e);if(!e.equals(n)&&(e.wv=_t(),(!(p!=null&&p.is_fork)||e.deps===null)&&(e.v=n,e.deps===null))){E(e,m);return}pe||(S!==null?(rt()||p!=null&&p.is_fork)&&S.set(e,n):pn(e))}function nr(e){var n,t;if(e.effects!==null)for(const r of e.effects)(r.teardown||r.ac)&&((n=r.teardown)==null||n.call(r),(t=r.ac)==null||t.abort($),r.teardown=At,r.ac=null,Me(r,0),Tn(r))}function Wn(e){if(e.effects!==null)for(const n of e.effects)n.teardown&&he(n)}let an=new Set;const J=new Map;let Jn=!1;function mn(e,n){var t={f:0,v:e,reactions:null,equals:qn,rv:0,wv:0};return t}function z(e,n){const t=mn(e);return ut(t),t}function ls(e,n=!1,t=!0){var s;const r=mn(e);return n||(r.equals=Un),ze&&t&&y!==null&&y.l!==null&&((s=y.l).s??(s.s=[])).push(r),r}function X(e,n,t=!1){d!==null&&(!Y||(d.f&Nn)!==0)&&je()&&(d.f&(T|se|_n|Nn))!==0&&(F===null||!Se.call(F,e))&&Ft();let r=t?De(n):n;return ln(e,r,Ye)}function ln(e,n,t=null){if(!e.equals(n)){var r=e.v;pe?J.set(e,n):J.set(e,r),e.v=n;var s=ee.ensure();if(s.capture(e,r),(e.f&T)!==0){const f=e;(e.f&R)!==0&&En(f),pn(f)}e.wv=_t(),Qn(e,R,t),je()&&w!==null&&(w.f&m)!==0&&(w.f&(G|Q))===0&&(I===null?_r([e]):I.push(e)),!s.is_fork&&an.size>0&&!Jn&&tr()}return n}function tr(){Jn=!1;for(const e of an)(e.f&m)!==0&&E(e,H),Ne(e)&&he(e);an.clear()}function os(e,n=1){var t=oe(e),r=n===1?t++:t--;return X(e,t),r}function Je(e){X(e,e.v+1)}function Qn(e,n,t){var r=e.reactions;if(r!==null)for(var s=je(),f=r.length,o=0;o<f;o++){var l=r[o],a=l.f;if(!(!s&&l===w)){var i=(a&R)===0;if(i&&E(l,n),(a&T)!==0){var u=l;S==null||S.delete(u),(a&ve)===0&&(a&M&&(l.f|=ve),Qn(u,H,t))}else if(i){var v=l;(a&se)!==0&&j!==null&&j.add(v),t!==null?t.push(v):hn(v)}}}}function De(e){if(typeof e!="object"||e===null||ue in e)return e;const n=Ln(e);if(n!==bt&&n!==Tt)return e;var t=new Map,r=Et(e),s=z(0),f=ce,o=l=>{if(ce===f)return l();var a=d,i=ce;te(null),Mn(f);var u=l();return te(a),Mn(i),u};return r&&t.set("length",z(e.length)),new Proxy(e,{defineProperty(l,a,i){(!("value"in i)||i.configurable===!1||i.enumerable===!1||i.writable===!1)&&Pt();var u=t.get(a);return u===void 0?o(()=>{var v=z(i.value);return t.set(a,v),v}):X(u,i.value,!0),!0},deleteProperty(l,a){var i=t.get(a);if(i===void 0){if(a in l){const u=o(()=>z(A));t.set(a,u),Je(s)}}else X(i,A),Je(s);return!0},get(l,a,i){var g;if(a===ue)return e;var u=t.get(a),v=a in l;if(u===void 0&&(!v||(g=Ie(l,a))!=null&&g.writable)&&(u=o(()=>{var h=De(v?l[a]:A),L=z(h);return L}),t.set(a,u)),u!==void 0){var c=oe(u);return c===A?void 0:c}return Reflect.get(l,a,i)},getOwnPropertyDescriptor(l,a){var i=Reflect.getOwnPropertyDescriptor(l,a);if(i&&"value"in i){var u=t.get(a);u&&(i.value=oe(u))}else if(i===void 0){var v=t.get(a),c=v==null?void 0:v.v;if(v!==void 0&&c!==A)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return i},has(l,a){var c;if(a===ue)return!0;var i=t.get(a),u=i!==void 0&&i.v!==A||Reflect.has(l,a);if(i!==void 0||w!==null&&(!u||(c=Ie(l,a))!=null&&c.writable)){i===void 0&&(i=o(()=>{var g=u?De(l[a]):A,h=z(g);return h}),t.set(a,i));var v=oe(i);if(v===A)return!1}return u},set(l,a,i,u){var An;var v=t.get(a),c=a in l;if(r&&a==="length")for(var g=i;g<v.v;g+=1){var h=t.get(g+"");h!==void 0?X(h,A):g in l&&(h=o(()=>z(A)),t.set(g+"",h))}if(v===void 0)(!c||(An=Ie(l,a))!=null&&An.writable)&&(v=o(()=>z(void 0)),X(v,De(i)),t.set(a,v));else{c=v.v!==A;var L=o(()=>De(i));X(v,L)}var N=Reflect.getOwnPropertyDescriptor(l,a);if(N!=null&&N.set&&N.set.call(u,i),!c){if(r&&typeof a=="string"){var Oe=t.get("length"),ke=Number(a);Number.isInteger(ke)&&ke>=Oe.v&&X(Oe,ke+1)}Je(s)}return!0},ownKeys(l){oe(s);var a=Reflect.ownKeys(l).filter(v=>{var c=t.get(v);return c===void 0||c.v!==A});for(var[i,u]of t)u.v!==A&&!(i in l)&&a.push(i);return a},setPrototypeOf(){Mt()}})}function Cn(e){try{if(e!==null&&typeof e=="object"&&ue in e)return e[ue]}catch{}return e}function us(e,n){return Object.is(Cn(e),Cn(n))}var Dn,rr,sr,et,nt;function cs(){if(Dn===void 0){Dn=window,rr=document,sr=/Firefox/.test(navigator.userAgent);var e=Element.prototype,n=Node.prototype,t=Text.prototype;et=Ie(n,"firstChild").get,nt=Ie(n,"nextSibling").get,xn(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),xn(t)&&(t.__t=void 0)}}function Ge(e=""){return document.createTextNode(e)}function on(e){return et.call(e)}function fe(e){return nt.call(e)}function _s(e,n){if(!de)return on(e);var t=on(b);if(t===null)t=b.appendChild(Ge());else if(n&&t.nodeType!==$e){var r=Ge();return t==null||t.before(r),xe(r),r}return n&&gn(t),xe(t),t}function vs(e,n=!1){if(!de){var t=on(e);return t instanceof Comment&&t.data===""?fe(t):t}if(n){if((b==null?void 0:b.nodeType)!==$e){var r=Ge();return b==null||b.before(r),xe(r),r}gn(b)}return b}function ds(e,n=1,t=!1){let r=de?b:e;for(var s;n--;)s=r,r=fe(r);if(!de)return r;if(t){if((r==null?void 0:r.nodeType)!==$e){var f=Ge();return r===null?s==null||s.after(f):r.before(f),xe(f),f}gn(r)}return xe(r),r}function ps(e){e.textContent=""}function hs(){return!1}function ws(e,n,t){return document.createElementNS(n??Ht,e,void 0)}function gn(e){if(e.nodeValue.length<65536)return;let n=e.nextSibling;for(;n!==null&&n.nodeType===$e;)n.remove(),e.nodeValue+=n.nodeValue,n=e.nextSibling}function ys(e,n){if(n){const t=document.body;e.autofocus=!0,en(()=>{document.activeElement===t&&e.focus()})}}let In=!1;function fr(){In||(In=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{var n;if(!e.defaultPrevented)for(const t of e.target.elements)(n=t.__on_r)==null||n.call(t)})},{capture:!0}))}function bn(e){var n=d,t=w;te(null),re(null);try{return e()}finally{te(n),re(t)}}function Es(e,n,t,r=t){e.addEventListener(n,()=>bn(t));const s=e.__on_r;s?e.__on_r=()=>{s(),r(!0)}:e.__on_r=()=>r(!0),fr()}function tt(e){w===null&&(d===null&&Dt(),Ct()),pe&&kt()}function ar(e,n){var t=n.last;t===null?n.last=n.first=e:(t.next=e,e.prev=t,n.last=e)}function C(e,n){var t=w;t!==null&&(t.f&V)!==0&&(e|=V);var r={ctx:y,deps:null,nodes:null,f:e|R|M,first:null,fn:n,last:null,next:null,parent:t,b:t&&t.b,prev:null,teardown:null,wv:0,ac:null},s=r;if((e&_e)!==0)ye!==null?ye.push(r):ee.ensure().schedule(r);else if(n!==null){try{he(r)}catch(o){throw ne(r),o}s.deps===null&&s.teardown===null&&s.nodes===null&&s.first===s.last&&(s.f&Re)===0&&(s=s.first,(e&se)!==0&&(e&qe)!==0&&s!==null&&(s.f|=qe))}if(s!==null&&(s.parent=t,t!==null&&ar(s,t),d!==null&&(d.f&T)!==0&&(e&Q)===0)){var f=d;(f.effects??(f.effects=[])).push(s)}return r}function rt(){return d!==null&&!Y}function ir(e){const n=C(Le,null);return E(n,m),n.teardown=e,n}function ms(e){tt();var n=w.f,t=!d&&(n&G)!==0&&(n&we)===0;if(t){var r=y;(r.e??(r.e=[])).push(e)}else return st(e)}function st(e){return C(_e|Yn,e)}function gs(e){return tt(),C(Le|Yn,e)}function bs(e){ee.ensure();const n=C(Q|Re,e);return()=>{ne(n)}}function Ts(e){ee.ensure();const n=C(Q|Re,e);return(t={})=>new Promise(r=>{t.outro?cr(n,()=>{ne(n),r(void 0)}):(ne(n),r(void 0))})}function As(e){return C(_e,e)}function Ss(e,n){var t=y,r={effect:null,ran:!1,deps:e};t.l.$.push(r),r.effect=ft(()=>{if(e(),!r.ran){r.ran=!0;var s=w;try{re(s.parent),dr(n)}finally{re(s)}}})}function xs(){var e=y;ft(()=>{for(var n of e.l.$){n.deps();var t=n.effect;(t.f&m)!==0&&t.deps!==null&&E(t,H),Ne(t)&&he(t),n.ran=!1}})}function lr(e){return C(_n|Re,e)}function ft(e,n=0){return C(Le|n,e)}function Rs(e,n=[],t=[],r=[]){Xn(r,n,t,s=>{C(Le,()=>e(...s.map(oe)))})}function Ns(e,n=[],t=[],r=[]){if(t.length>0||r.length>0)var s=wn();Xn(r,n,t,f=>{C(_e,()=>e(...f.map(oe))),s&&s()})}function Os(e,n=0){var t=C(se|n,e);return t}function ks(e,n=0){var t=C(cn|n,e);return t}function Cs(e){return C(G|Re,e)}function at(e){var n=e.teardown;if(n!==null){const t=pe,r=d;Pn(!0),te(null);try{n.call(null)}finally{Pn(t),te(r)}}}function Tn(e,n=!1){var t=e.first;for(e.first=e.last=null;t!==null;){const s=t.ac;s!==null&&bn(()=>{s.abort($)});var r=t.next;(t.f&Q)!==0?t.parent=null:ne(t,n),t=r}}function or(e){for(var n=e.first;n!==null;){var t=n.next;(n.f&G)===0&&ne(n),n=t}}function ne(e,n=!0){var t=!1;(n||(e.f&Rt)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(ur(e.nodes.start,e.nodes.end),t=!0),E(e,Rn),Tn(e,n&&!t),Me(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(const f of r)f.stop();at(e),e.f^=Rn,e.f|=B;var s=e.parent;s!==null&&s.first!==null&&it(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function ur(e,n){for(;e!==null;){var t=e===n?null:fe(e);e.remove(),e=t}}function it(e){var n=e.parent,t=e.prev,r=e.next;t!==null&&(t.next=r),r!==null&&(r.prev=t),n!==null&&(n.first===e&&(n.first=r),n.last===e&&(n.last=t))}function cr(e,n,t=!0){var r=[];lt(e,r,!0);var s=()=>{t&&ne(e),n&&n()},f=r.length;if(f>0){var o=()=>--f||s();for(var l of r)l.out(o)}else s()}function lt(e,n,t){if((e.f&V)===0){e.f^=V;var r=e.nodes&&e.nodes.t;if(r!==null)for(const l of r)(l.is_global||t)&&n.push(l);for(var s=e.first;s!==null;){var f=s.next,o=(s.f&qe)!==0||(s.f&G)!==0&&(e.f&se)!==0;lt(s,n,o?t:!1),s=f}}}function Ds(e){ot(e,!0)}function ot(e,n){if((e.f&V)!==0){e.f^=V,(e.f&m)===0&&(E(e,R),ee.ensure().schedule(e));for(var t=e.first;t!==null;){var r=t.next,s=(t.f&qe)!==0||(t.f&G)!==0;ot(t,s?n:!1),t=r}var f=e.nodes&&e.nodes.t;if(f!==null)for(const o of f)(o.is_global||n)&&o.in()}}function Is(e,n){if(e.nodes)for(var t=e.nodes.start,r=e.nodes.end;t!==null;){var s=t===r?null:fe(t);n.append(t),t=s}}let He=!1,pe=!1;function Pn(e){pe=e}let d=null,Y=!1;function te(e){d=e}let w=null;function re(e){w=e}let F=null;function ut(e){d!==null&&(F===null?F=[e]:F.push(e))}let O=null,k=0,I=null;function _r(e){I=e}let ct=1,le=0,ce=le;function Mn(e){ce=e}function _t(){return++ct}function Ne(e){var n=e.f;if((n&R)!==0)return!0;if(n&T&&(e.f&=~ve),(n&H)!==0){for(var t=e.deps,r=t.length,s=0;s<r;s++){var f=t[s];if(Ne(f)&&Zn(f),f.wv>e.wv)return!0}(n&M)!==0&&S===null&&E(e,m)}return!1}function vt(e,n,t=!0){var r=e.reactions;if(r!==null&&!(F!==null&&Se.call(F,e)))for(var s=0;s<r.length;s++){var f=r[s];(f.f&T)!==0?vt(f,n,!1):n===f&&(t?E(f,R):(f.f&m)!==0&&E(f,H),hn(f))}}function dt(e){var L;var n=O,t=k,r=I,s=d,f=F,o=y,l=Y,a=ce,i=e.f;O=null,k=0,I=null,d=(i&(G|Q))===0?e:null,F=null,Ue(e.ctx),Y=!1,ce=++le,e.ac!==null&&(bn(()=>{e.ac.abort($)}),e.ac=null);try{e.f|=Qe;var u=e.fn,v=u();e.f|=we;var c=e.deps,g=p==null?void 0:p.is_fork;if(O!==null){var h;if(g||Me(e,k),c!==null&&k>0)for(c.length=k+O.length,h=0;h<O.length;h++)c[k+h]=O[h];else e.deps=c=O;if(rt()&&(e.f&M)!==0)for(h=k;h<c.length;h++)((L=c[h]).reactions??(L.reactions=[])).push(e)}else!g&&c!==null&&k<c.length&&(Me(e,k),c.length=k);if(je()&&I!==null&&!Y&&c!==null&&(e.f&(T|H|R))===0)for(h=0;h<I.length;h++)vt(I[h],e);if(s!==null&&s!==e){if(le++,s.deps!==null)for(let N=0;N<t;N+=1)s.deps[N].rv=le;if(n!==null)for(const N of n)N.rv=le;I!==null&&(r===null?r=I:r.push(...I))}return(e.f&W)!==0&&(e.f^=W),v}catch(N){return Bt(N)}finally{e.f^=Qe,O=n,k=t,I=r,d=s,F=f,Ue(o),Y=l,ce=a}}function vr(e,n){let t=n.reactions;if(t!==null){var r=mt.call(t,e);if(r!==-1){var s=t.length-1;s===0?t=n.reactions=null:(t[r]=t[s],t.pop())}}if(t===null&&(n.f&T)!==0&&(O===null||!Se.call(O,n))){var f=n;(f.f&M)!==0&&(f.f^=M,f.f&=~ve),pn(f),nr(f),Me(f,0)}}function Me(e,n){var t=e.deps;if(t!==null)for(var r=n;r<t.length;r++)vr(e,t[r])}function he(e){var n=e.f;if((n&B)===0){E(e,m);var t=w,r=He;w=e,He=!0;try{(n&(se|cn))!==0?or(e):Tn(e),at(e);var s=dt(e);e.teardown=typeof s=="function"?s:null,e.wv=ct;var f}finally{He=r,w=t}}}async function Ps(){await Promise.resolve(),zt()}function Ms(){return ee.ensure().settled()}function oe(e){var n=e.f,t=(n&T)!==0;if(d!==null&&!Y){var r=w!==null&&(w.f&B)!==0;if(!r&&(F===null||!Se.call(F,e))){var s=d.deps;if((d.f&Qe)!==0)e.rv<le&&(e.rv=le,O===null&&s!==null&&s[k]===e?k++:O===null?O=[e]:O.push(e));else{(d.deps??(d.deps=[])).push(e);var f=e.reactions;f===null?e.reactions=[d]:Se.call(f,d)||f.push(d)}}}if(pe&&J.has(e))return J.get(e);if(t){var o=e;if(pe){var l=o.v;return((o.f&m)===0&&o.reactions!==null||ht(o))&&(l=En(o)),J.set(o,l),l}var a=(o.f&M)===0&&!Y&&d!==null&&(He||(d.f&M)!==0),i=(o.f&we)===0;Ne(o)&&(a&&(o.f|=M),Zn(o)),a&&!i&&(Wn(o),pt(o))}if(S!=null&&S.has(e))return S.get(e);if((e.f&W)!==0)throw e.v;return e.v}function pt(e){if(e.f|=M,e.deps!==null)for(const n of e.deps)(n.reactions??(n.reactions=[])).push(e),(n.f&T)!==0&&(n.f&M)===0&&(Wn(n),pt(n))}function ht(e){if(e.v===A)return!0;if(e.deps===null)return!1;for(const n of e.deps)if(J.has(n)||(n.f&T)!==0&&ht(n))return!0;return!1}function dr(e){var n=Y;try{return Y=!0,e()}finally{Y=n}}function Fs(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(ue in e)un(e);else if(!Array.isArray(e))for(let n in e){const t=e[n];typeof t=="object"&&t&&ue in t&&un(t)}}}function un(e,n=new Set){if(typeof e=="object"&&e!==null&&!(e instanceof EventTarget)&&!n.has(e)){n.add(e),e instanceof Date&&e.getTime();for(let r in e)try{un(e[r],n)}catch{}const t=Ln(e);if(t!==Object.prototype&&t!==Array.prototype&&t!==Map.prototype&&t!==Set.prototype&&t!==Date.prototype){const r=gt(t);for(let s in r){const f=r[s].get;if(f)try{f.call(e)}catch{}}}}}export{rr as $,mn as A,Dr as B,Hn as C,B as D,qe as E,Ds as F,cr as G,Lt as H,V as I,G as J,ps as K,Is as L,ne as M,on as N,en as O,fe as P,Ir as Q,Pr as R,Es as S,Ps as T,dr as U,ft as V,y as W,As as X,w as Y,Rn as Z,ue as _,Xr as a,$r as a$,je as a0,Ie as a1,Or as a2,jr as a3,De as a4,X as a5,pe as a6,os as a7,re as a8,Yr as a9,is as aA,mr as aB,Ss as aC,xs as aD,qt as aE,ws as aF,sr as aG,qr as aH,Ur as aI,$e as aJ,gn as aK,we as aL,rt as aM,Je as aN,xt as aO,Vr as aP,E as aQ,R as aR,H as aS,Kt as aT,te as aU,Ue as aV,ee as aW,Bt as aX,d as aY,Ve as aZ,kr as a_,ze as aa,Lr as ab,Fr as ac,yn as ad,yr as ae,br as af,Hr as ag,ir as ah,wr as ai,At as aj,Rt as ak,Re as al,gs as am,ms as an,St as ao,Er as ap,Fs as aq,Nt as ar,es as as,fs as at,as as au,_s as av,ds as aw,Zr as ax,Wr as ay,Rs as az,Os as b,bn as b0,cs as b1,vn as b2,Nr as b3,Ts as b4,dn as b5,zt as b6,z as b7,ks as b8,Kr as b9,us as ba,Xn as bb,Ht as bc,Ln as bd,Gr as be,gt as bf,Sr as bg,ys as bh,A as bi,fr as bj,Tr as bk,xr as bl,Br as bm,ce as bn,rs as bo,ns as bp,ts as bq,ss as br,bs,Ms as bt,xe as c,Ns as d,zr as e,vs as f,b as g,de as h,oe as i,jt as j,Yt as k,ln as l,p as m,Ge as n,gr as o,Cs as p,Rr as q,Qr as r,Jr as s,hs as t,Jt as u,Et as v,hr as w,Cr as x,Mr as y,ls as z};