rssany 0.3.2 → 0.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env.example +52 -52
- package/README.md +156 -147
- package/app/plugins/builtin/email.rssany.js +84 -84
- package/app/plugins/builtin/rss.rssany.js +164 -164
- package/app/statics/README.md +7 -7
- package/app/webui/build/200.html +36 -36
- package/app/webui/build/_app/immutable/assets/10.CmGYYZFR.css +1 -0
- package/app/webui/build/_app/immutable/assets/11.Dkz3VS_N.css +1 -0
- package/app/webui/build/_app/immutable/assets/14.BCCBoMGj.css +1 -0
- package/app/webui/build/_app/immutable/assets/6.Cm_jpHOq.css +1 -0
- package/app/webui/build/_app/immutable/assets/7.CJ3BjogD.css +1 -0
- package/app/webui/build/_app/immutable/assets/9.CATKVZ-n.css +1 -0
- package/app/webui/build/_app/immutable/assets/{SourcesList.D5Lso0bo.css → SourcesList.ke66uOSi.css} +1 -1
- package/app/webui/build/_app/immutable/assets/chevron-down.CV-KWLNP.css +1 -0
- package/app/webui/build/_app/immutable/chunks/{CGCMIfh3.js → 4TuV_psf.js} +1 -1
- package/app/webui/build/_app/immutable/chunks/{DAdOEnFb.js → B0czyjwj.js} +1 -1
- package/app/webui/build/_app/immutable/chunks/{CFwxUBGi.js → B553hBXT.js} +1 -1
- package/app/webui/build/_app/immutable/chunks/B8StT3Do.js +6 -0
- package/app/webui/build/_app/immutable/chunks/BI_ale1m.js +1 -0
- package/app/webui/build/_app/immutable/chunks/BK0ygNWX.js +2 -0
- package/app/webui/build/_app/immutable/chunks/{Brun6sCr.js → BZY5aksi.js} +2 -2
- package/app/webui/build/_app/immutable/chunks/{C8umpVpB.js → BnqaikL8.js} +1 -1
- package/app/webui/build/_app/immutable/chunks/BsQ08Wq_.js +1 -0
- package/app/webui/build/_app/immutable/chunks/C9wTDiHH.js +1 -0
- package/app/webui/build/_app/immutable/chunks/{B-CeeY89.js → CAKuIoAf.js} +1 -1
- package/app/webui/build/_app/immutable/chunks/CEWi_rGa.js +1 -0
- package/app/webui/build/_app/immutable/chunks/CIsxbQ9B.js +1 -0
- package/app/webui/build/_app/immutable/chunks/{ChUctqXA.js → Cc7aBSsN.js} +1 -1
- package/app/webui/build/_app/immutable/chunks/{DXDBlEGf.js → Czo-EcYU.js} +1 -1
- package/app/webui/build/_app/immutable/chunks/{BAJAS8BI.js → D8G961Hm.js} +1 -1
- package/app/webui/build/_app/immutable/chunks/{CS53ooo0.js → DIeahUKq.js} +1 -1
- package/app/webui/build/_app/immutable/chunks/DO5OXNYS.js +1 -0
- package/app/webui/build/_app/immutable/chunks/{Dr67pd7v.js → DhZZHWov.js} +1 -1
- package/app/webui/build/_app/immutable/chunks/{Dyvi1wBH.js → DptdhtA1.js} +1 -1
- package/app/webui/build/_app/immutable/chunks/{ClknbeNl.js → FDS7fbwH.js} +1 -1
- package/app/webui/build/_app/immutable/chunks/{DCEayuDt.js → IhDlsCxD.js} +1 -1
- package/app/webui/build/_app/immutable/chunks/Nd0ktDhd.js +1 -0
- package/app/webui/build/_app/immutable/chunks/{D6kzEN_P.js → SvdgnirT.js} +1 -1
- package/app/webui/build/_app/immutable/chunks/WW6La7Nt.js +2 -0
- package/app/webui/build/_app/immutable/chunks/{DsxvjlCC.js → pd_p3yYy.js} +5 -5
- package/app/webui/build/_app/immutable/chunks/qwlQuQWi.js +36 -0
- package/app/webui/build/_app/immutable/chunks/rNwPv4DZ.js +1 -0
- package/app/webui/build/_app/immutable/entry/app.CsaNbZ85.js +2 -0
- package/app/webui/build/_app/immutable/entry/start.BZt_oICN.js +1 -0
- package/app/webui/build/_app/immutable/nodes/{0.CQDkqUeN.js → 0.zuqEMBQT.js} +3 -3
- package/app/webui/build/_app/immutable/nodes/1.DzLFxso0.js +1 -0
- package/app/webui/build/_app/immutable/nodes/10.BC-1FXeC.js +1 -0
- package/app/webui/build/_app/immutable/nodes/11.CePwEHqu.js +3 -0
- package/app/webui/build/_app/immutable/nodes/12.eeQ9B6bg.js +1 -0
- package/app/webui/build/_app/immutable/nodes/13.BLKI9iZo.js +1 -0
- package/app/webui/build/_app/immutable/nodes/14.T9l5Rh19.js +1 -0
- package/app/webui/build/_app/immutable/nodes/15.39GHtAg1.js +1 -0
- package/app/webui/build/_app/immutable/nodes/{16.p6WfP435.js → 16.BO-9BBQ5.js} +2 -2
- package/app/webui/build/_app/immutable/nodes/17.BWRgFCUw.js +1 -0
- package/app/webui/build/_app/immutable/nodes/2.BOYqXdCa.js +1 -0
- package/app/webui/build/_app/immutable/nodes/3.CJw5Nx2o.js +1 -0
- package/app/webui/build/_app/immutable/nodes/5.9zgwFV6I.js +2 -0
- package/app/webui/build/_app/immutable/nodes/6.trFT-trT.js +2 -0
- package/app/webui/build/_app/immutable/nodes/7.DCqiDq6O.js +1 -0
- package/app/webui/build/_app/immutable/nodes/8.DG_T-wWN.js +1 -0
- package/app/webui/build/_app/immutable/nodes/9.FiPTezQy.js +1 -0
- package/app/webui/build/_app/version.json +1 -1
- package/bin/rssany.js +55 -3
- package/dist/index.js +314 -96
- package/dist/index.js.map +1 -1
- package/package.json +107 -103
- package/scripts/postinstall.mjs +44 -0
- package/scripts/reset.mjs +137 -135
- package/scripts/user-dir.mjs +52 -0
- package/app/webui/build/_app/immutable/assets/10.Dj8_pmut.css +0 -1
- package/app/webui/build/_app/immutable/assets/13.Qu_tY6H9.css +0 -1
- package/app/webui/build/_app/immutable/assets/5.B-dPiwB7.css +0 -1
- package/app/webui/build/_app/immutable/assets/6.B27N7pdA.css +0 -1
- package/app/webui/build/_app/immutable/assets/8.Cgji2b15.css +0 -1
- package/app/webui/build/_app/immutable/assets/9.BsCIAvn3.css +0 -1
- package/app/webui/build/_app/immutable/chunks/6prdYIKP.js +0 -1
- package/app/webui/build/_app/immutable/chunks/B2cyTHdf.js +0 -2
- package/app/webui/build/_app/immutable/chunks/B6WG2Sd3.js +0 -1
- package/app/webui/build/_app/immutable/chunks/BA4Gucnq.js +0 -1
- package/app/webui/build/_app/immutable/chunks/BXTsojX2.js +0 -36
- package/app/webui/build/_app/immutable/chunks/BkD3yAYe.js +0 -1
- package/app/webui/build/_app/immutable/chunks/C4uF_YIK.js +0 -1
- package/app/webui/build/_app/immutable/chunks/CBY2biv-.js +0 -1
- package/app/webui/build/_app/immutable/chunks/DAV9bzjw.js +0 -1
- package/app/webui/build/_app/immutable/chunks/DL3Q5sfb.js +0 -1
- package/app/webui/build/_app/immutable/chunks/DVa8Y-mQ.js +0 -1
- package/app/webui/build/_app/immutable/chunks/DoRPmqLn.js +0 -2
- package/app/webui/build/_app/immutable/chunks/vtBo8kBV.js +0 -1
- package/app/webui/build/_app/immutable/entry/app.dq7-6soi.js +0 -2
- package/app/webui/build/_app/immutable/entry/start.BnoTfBrB.js +0 -1
- package/app/webui/build/_app/immutable/nodes/1.BUa24rXB.js +0 -1
- package/app/webui/build/_app/immutable/nodes/10.MZgVhpGF.js +0 -1
- package/app/webui/build/_app/immutable/nodes/11.B39IbrZ0.js +0 -1
- package/app/webui/build/_app/immutable/nodes/12.B5B81dLQ.js +0 -1
- package/app/webui/build/_app/immutable/nodes/13.DWWcH27k.js +0 -6
- package/app/webui/build/_app/immutable/nodes/14.Db6eOPqq.js +0 -1
- package/app/webui/build/_app/immutable/nodes/15.B2jiP2VJ.js +0 -1
- package/app/webui/build/_app/immutable/nodes/2.AJd2163d.js +0 -1
- package/app/webui/build/_app/immutable/nodes/3.BZQeL-vz.js +0 -1
- package/app/webui/build/_app/immutable/nodes/4.BT_N8pCh.js +0 -2
- package/app/webui/build/_app/immutable/nodes/5.Bo_ftyqW.js +0 -2
- package/app/webui/build/_app/immutable/nodes/6.vOowdQUr.js +0 -1
- package/app/webui/build/_app/immutable/nodes/7.BfVbBKZu.js +0 -1
- package/app/webui/build/_app/immutable/nodes/8.BslYG5f2.js +0 -1
- package/app/webui/build/_app/immutable/nodes/9.DAgT-df2.js +0 -1
- /package/app/webui/build/_app/immutable/assets/{11.qYZMiTb0.css → 12.qYZMiTb0.css} +0 -0
- /package/app/webui/build/_app/immutable/assets/{12.DfJcfUWl.css → 13.DfJcfUWl.css} +0 -0
- /package/app/webui/build/_app/immutable/assets/{14.DfMfOrS3.css → 15.DfMfOrS3.css} +0 -0
- /package/app/webui/build/_app/immutable/assets/{15.nNGjXhCQ.css → 17.nNGjXhCQ.css} +0 -0
- /package/app/webui/build/_app/immutable/assets/{4.Di6rvlY-.css → 5.Di6rvlY-.css} +0 -0
- /package/app/webui/build/_app/immutable/assets/{7.CrNxmd8B.css → 8.CrNxmd8B.css} +0 -0
- /package/app/webui/build/_app/immutable/nodes/{17.BtYZF6FM.js → 18.BtYZF6FM.js} +0 -0
- /package/app/webui/build/_app/immutable/nodes/{18.BIzqhTqv.js → 4.BIzqhTqv.js} +0 -0
|
@@ -1 +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
|
+
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"./DIeahUKq.js";import{b8 as O,k 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"./BsQ08Wq_.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"./pd_p3yYy.js";import{i as x}from"./rNwPv4DZ.js";import{f as yt}from"./WW6La7Nt.js";import{p as d,r as bt,s as Ct}from"./D8G961Hm.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{b as ae,h as M,a as ie,
|
|
1
|
+
import{b as ae,h as M,a as ie,k as W,r as le,m as ue,s as Z,c as q,e as B,g as L,C as se,n as oe,o as $,i as ve,p as V,q as w,v as U,w as de,x as te,y as ce,z as pe,A as G,B as ge,D as he,F as _e,G as j,I as Ee,J as me,K as ne,L as re,M as Y,N as Te,O as we,P as Ae,Q as Ce,R as Se,S as Ie,T as Ne,U as fe,V as xe}from"./BsQ08Wq_.js";function Oe(e,r){return r}function De(e,r,u){for(var s=[],c=r.length,l,i=r.length,p=0;p<c;p++){let E=r[p];re(E,()=>{if(l){if(l.pending.delete(E),l.done.add(E),l.pending.size===0){var v=e.outrogroups;y(e,G(l.done)),v.delete(l),v.size===0&&(e.outrogroups=null)}}else i-=1},!1)}if(i===0){var a=s.length===0&&u!==null;if(a){var t=u,f=t.parentNode;we(f),f.append(t),e.items.clear()}y(e,r,!a)}else l={pending:new Set(r),done:new Set},(e.outrogroups??(e.outrogroups=new Set)).add(l)}function y(e,r,u=!0){var s;if(e.pending.size>0){s=new Set;for(const i of e.pending.values())for(const p of i)s.add(e.items.get(p).e)}for(var c=0;c<r.length;c++){var l=r[c];if(s!=null&&s.has(l)){l.f|=w;const i=document.createDocumentFragment();Ae(l,i)}else Ce(r[c],u)}}var ee;function be(e,r,u,s,c,l=null){var i=e,p=new Map,a=(r&fe)!==0;if(a){var t=e;i=M?q(Se(t)):t.appendChild(V())}M&&ie();var f=null,E=ce(()=>{var d=u();return pe(d)?d:d==null?[]:G(d)}),v,m=new Map,T=!0;function x(d){(C.effect.f&me)===0&&(C.pending.delete(d),C.fallback=f,Re(C,v,i,r,s),f!==null&&(v.length===0?(f.f&w)===0?ne(f):(f.f^=w,b(f,null,i)):re(f,()=>{f=null})))}function n(d){C.pending.delete(d)}var o=ae(()=>{v=W(E);var d=v.length;let h=!1;if(M){var F=le(i)===ue;F!==(d===0)&&(i=Z(),q(i),B(!1),h=!0)}for(var S=new Set,g=ve,R=te(),I=0;I<d;I+=1){M&&L.nodeType===se&&L.data===oe&&(i=L,h=!0,B(!1));var k=v[I],D=s(k,I),_=T?null:p.get(D);_?(_.v&&$(_.v,k),_.i&&$(_.i,I),R&&g.unskip_effect(_.e)):(_=ke(p,T?i:ee??(ee=V()),k,D,I,c,r,u),T||(_.e.f|=w),p.set(D,_)),S.add(D)}if(d===0&&l&&!f&&(T?f=U(()=>l(i)):(f=U(()=>l(ee??(ee=V()))),f.f|=w)),d>S.size&&de(),M&&d>0&&q(Z()),!T)if(m.set(g,S),R){for(const[H,z]of p)S.has(H)||g.skip_effect(z.e);g.oncommit(x),g.ondiscard(n)}else x(g);h&&B(!0),W(E)}),C={effect:o,items:p,pending:m,outrogroups:null,fallback:f};T=!1,M&&(i=L)}function O(e){for(;e!==null&&(e.f&Te)===0;)e=e.next;return e}function Re(e,r,u,s,c){var k,D,_,H,z,J,K,P,Q;var l=(s&xe)!==0,i=r.length,p=e.items,a=O(e.effect.first),t,f=null,E,v=[],m=[],T,x,n,o;if(l)for(o=0;o<i;o+=1)T=r[o],x=c(T,o),n=p.get(x).e,(n.f&w)===0&&((D=(k=n.nodes)==null?void 0:k.a)==null||D.measure(),(E??(E=new Set)).add(n));for(o=0;o<i;o+=1){if(T=r[o],x=c(T,o),n=p.get(x).e,e.outrogroups!==null)for(const A of e.outrogroups)A.pending.delete(n),A.done.delete(n);if((n.f&w)!==0)if(n.f^=w,n===a)b(n,null,u);else{var C=f?f.next:a;n===e.effect.last&&(e.effect.last=n.prev),n.prev&&(n.prev.next=n.next),n.next&&(n.next.prev=n.prev),N(e,f,n),N(e,n,C),b(n,C,u),f=n,v=[],m=[],a=O(f.next);continue}if((n.f&Y)!==0&&(ne(n),l&&((H=(_=n.nodes)==null?void 0:_.a)==null||H.unfix(),(E??(E=new Set)).delete(n))),n!==a){if(t!==void 0&&t.has(n)){if(v.length<m.length){var d=m[0],h;f=d.prev;var F=v[0],S=v[v.length-1];for(h=0;h<v.length;h+=1)b(v[h],d,u);for(h=0;h<m.length;h+=1)t.delete(m[h]);N(e,F.prev,S.next),N(e,f,F),N(e,S,d),a=d,f=S,o-=1,v=[],m=[]}else t.delete(n),b(n,a,u),N(e,n.prev,n.next),N(e,n,f===null?e.effect.first:f.next),N(e,f,n),f=n;continue}for(v=[],m=[];a!==null&&a!==n;)(t??(t=new Set)).add(a),m.push(a),a=O(a.next);if(a===null)continue}(n.f&w)===0&&v.push(n),f=n,a=O(n.next)}if(e.outrogroups!==null){for(const A of e.outrogroups)A.pending.size===0&&(y(e,G(A.done)),(z=e.outrogroups)==null||z.delete(A));e.outrogroups.size===0&&(e.outrogroups=null)}if(a!==null||t!==void 0){var g=[];if(t!==void 0)for(n of t)(n.f&Y)===0&&g.push(n);for(;a!==null;)(a.f&Y)===0&&a!==e.fallback&&g.push(a),a=O(a.next);var R=g.length;if(R>0){var I=(s&fe)!==0&&i===0?u:null;if(l){for(o=0;o<R;o+=1)(K=(J=g[o].nodes)==null?void 0:J.a)==null||K.measure();for(o=0;o<R;o+=1)(Q=(P=g[o].nodes)==null?void 0:P.a)==null||Q.fix()}De(e,g,I)}}l&&Ie(()=>{var A,X;if(E!==void 0)for(n of E)(X=(A=n.nodes)==null?void 0:A.a)==null||X.apply()})}function ke(e,r,u,s,c,l,i,p){var a=(i&ge)!==0?(i&he)===0?_e(u,!1,!1):j(u):null,t=(i&Ee)!==0?j(c):null;return{v:a,i:t,e:U(()=>(l(r,a??u,t??c,p),()=>{e.delete(s)}))}}function b(e,r,u){if(e.nodes)for(var s=e.nodes.start,c=e.nodes.end,l=r&&(r.f&w)===0?r.nodes.start:u;s!==null;){var i=Ne(s);if(l.before(s),s===c)return;s=i}}function N(e,r,u){r===null?e.effect.first=u:r.next=u,u===null?e.effect.last=r:u.prev=r}export{be as e,Oe as i};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
var Vi=Object.defineProperty;var Jn=e=>{throw TypeError(e)};var Ki=(e,t,n)=>t in e?Vi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var N=(e,t,n)=>Ki(e,typeof t!="symbol"?t+"":t,n),wn=(e,t,n)=>t.has(e)||Jn("Cannot "+n);var a=(e,t,n)=>(wn(e,t,"read from private field"),n?n.call(e):t.get(e)),b=(e,t,n)=>t.has(e)?Jn("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Y=(e,t,n,i)=>(wn(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n),Bt=(e,t,n)=>(wn(e,t,"access private method"),n);import{c as L,a as _,f as at,p as hn}from"./DIeahUKq.js";import{aA as O,k as d,an as tt,u as zi,b8 as V,a4 as Ge,a5 as A,at as Q,f as k,au as $,aj as et,am as Ui,aw as In,av as Et,ax as Tt}from"./BsQ08Wq_.js";import{t as pi,u as Yi,b as R,n as ft,m as gt,v as St,C as Xe,x as Xi,d as _t,y as mi,z as qi,A as ji,w as Pt,B as Zi,s as U,G as vi,l as Mn,H as kt,J as qt,E as Qn,S as yn,K as $n,L as wi,M as yi,N as bi,O as xi,o as Gi,a as Ji,e as Oi,g as Si,q as Qi,c as $i,Q as to,R as ti,F as eo,i as ei,h as no,D as io,T as oo,f as fn,I as ro}from"./pd_p3yYy.js";import{i as G}from"./rNwPv4DZ.js";import{f as ht}from"./WW6La7Nt.js";import{p as x,r as vt,s as It,l as so}from"./D8G961Hm.js";import{o as ao}from"./DptdhtA1.js";import{e as lo}from"./B553hBXT.js";import{b as co}from"./BnqaikL8.js";import{c as uo}from"./C9wTDiHH.js";import{f as ho,o as fo}from"./BK0ygNWX.js";import"./CEWi_rGa.js";import{s as go}from"./Cc7aBSsN.js";const po={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",transform:"translateX(-100%)"},mo=pi(po);function vo(e){return typeof e=="function"}function ni(e){return vo(e)?e():e}var bt,Wt,Lt,Vt,xt,nn,on,Kt;class wo{constructor(t,n={box:"border-box"}){b(this,bt,{width:0,height:0});b(this,Wt,!1);b(this,Lt);b(this,Vt);b(this,xt);b(this,nn,O(()=>{var t;return(t=d(a(this,Kt)))==null||t(),this.getSize().width}));b(this,on,O(()=>{var t;return(t=d(a(this,Kt)))==null||t(),this.getSize().height}));b(this,Kt,O(()=>{const t=ni(a(this,Vt));if(t)return ho(n=>{if(!a(this,xt))return;const i=new(a(this,xt)).ResizeObserver(o=>{Y(this,Wt,!0);for(const s of o){const r=a(this,Lt).box==="content-box"?s.contentBoxSize:s.borderBoxSize,l=Array.isArray(r)?r:[r];a(this,bt).width=l.reduce((u,f)=>Math.max(u,f.inlineSize),0),a(this,bt).height=l.reduce((u,f)=>Math.max(u,f.blockSize),0)}n()});return i.observe(t),()=>{Y(this,Wt,!1),i.disconnect()}})}));Y(this,xt,n.window??Yi),Y(this,Lt,n),Y(this,Vt,t),Y(this,bt,{width:0,height:0})}calculateSize(){const t=ni(a(this,Vt));if(!t||!a(this,xt))return;const n=t.offsetWidth,i=t.offsetHeight;if(a(this,Lt).box==="border-box")return{width:n,height:i};const o=a(this,xt).getComputedStyle(t),s=parseFloat(o.paddingLeft)+parseFloat(o.paddingRight),r=parseFloat(o.paddingTop)+parseFloat(o.paddingBottom),l=parseFloat(o.borderLeftWidth)+parseFloat(o.borderRightWidth),u=parseFloat(o.borderTopWidth)+parseFloat(o.borderBottomWidth),f=n-s-l,h=i-r-u;return{width:f,height:h}}getSize(){return a(this,Wt)?a(this,bt):this.calculateSize()??a(this,bt)}get current(){var t;return(t=d(a(this,Kt)))==null||t(),this.getSize()}get width(){return d(a(this,nn))}get height(){return d(a(this,on))}}bt=new WeakMap,Wt=new WeakMap,Lt=new WeakMap,Vt=new WeakMap,xt=new WeakMap,nn=new WeakMap,on=new WeakMap,Kt=new WeakMap;var Zt,rn;class yo{constructor(t,n){b(this,Zt,()=>{});b(this,rn,O(()=>a(this,Zt).call(this)));let i;n!==void 0&&(i=n),Y(this,Zt,()=>{try{return i}finally{i=t()}})}get current(){return d(a(this,rn))}}Zt=new WeakMap,rn=new WeakMap;function bo(e){tt(()=>zi(()=>e()))}function xo(e,t,n=!0){if(!(e.length===0||t<0||t>=e.length))return e.length===1&&t===0?e[0]:t===e.length-1?n?e[0]:void 0:e[t+1]}function Oo(e,t,n=!0){if(!(e.length===0||t<0||t>=e.length))return e.length===1&&t===0?e[0]:t===0?n?e[e.length-1]:void 0:e[t-1]}function So(e,t,n,i=!0){if(e.length===0||t<0||t>=e.length)return;let o=t+n;return i?o=(o%e.length+e.length)%e.length:o=Math.max(0,Math.min(o,e.length-1)),e[o]}function Po(e,t,n,i=!0){if(e.length===0||t<0||t>=e.length)return;let o=t-n;return i?o=(o%e.length+e.length)%e.length:o=Math.max(0,Math.min(o,e.length-1)),e[o]}function Bn(e,t,n){const i=t.toLowerCase();if(i.endsWith(" ")){const c=i.slice(0,-1);if(e.filter(w=>w.toLowerCase().startsWith(c)).length<=1)return Bn(e,c,n);const g=n==null?void 0:n.toLowerCase();if(g&&g.startsWith(c)&&g.charAt(c.length)===" "&&t.trim()===c)return n;const m=e.filter(w=>w.toLowerCase().startsWith(i));if(m.length>0){const w=n?e.indexOf(n):-1;return ii(m,Math.max(w,0)).find(C=>C!==n)||n}}const s=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,r=s.toLowerCase(),l=n?e.indexOf(n):-1;let u=ii(e,Math.max(l,0));s.length===1&&(u=u.filter(c=>c!==n));const h=u.find(c=>c==null?void 0:c.toLowerCase().startsWith(r));return h!==n?h:void 0}function ii(e,t){return e.map((n,i)=>e[(t+i)%e.length])}const Co={afterMs:1e4,onChange:ft};function Pi(e,t){const{afterMs:n,onChange:i,getWindow:o}={...Co,...t};let s=null,r=V(Ge(e));function l(){return o().setTimeout(()=>{A(r,e,!0),i==null||i(e)},n)}return tt(()=>()=>{s&&o().clearTimeout(s)}),R(()=>d(r),u=>{A(r,u,!0),i==null||i(u),s&&o().clearTimeout(s),s=l()})}var ct,ut,sn,an;class Ao{constructor(t){b(this,ct);b(this,ut);b(this,sn,O(()=>a(this,ct).onMatch?a(this,ct).onMatch:t=>t.focus()));b(this,an,O(()=>a(this,ct).getCurrentItem?a(this,ct).getCurrentItem:a(this,ct).getActiveElement));Y(this,ct,t),Y(this,ut,Pi("",{afterMs:1e3,getWindow:t.getWindow})),this.handleTypeaheadSearch=this.handleTypeaheadSearch.bind(this),this.resetTypeahead=this.resetTypeahead.bind(this)}handleTypeaheadSearch(t,n){var u,f;if(!n.length)return;a(this,ut).current=a(this,ut).current+t;const i=d(a(this,an))(),o=((f=(u=n.find(h=>h===i))==null?void 0:u.textContent)==null?void 0:f.trim())??"",s=n.map(h=>{var c;return((c=h.textContent)==null?void 0:c.trim())??""}),r=Bn(s,a(this,ut).current,o),l=n.find(h=>{var c;return((c=h.textContent)==null?void 0:c.trim())===r});return l&&d(a(this,sn))(l),l}resetTypeahead(){a(this,ut).current=""}get search(){return a(this,ut).current}}ct=new WeakMap,ut=new WeakMap,sn=new WeakMap,an=new WeakMap;var Ro=at("<input/>"),No=at("<input/>");function Eo(e,t){Q(t,!0);let n=x(t,"value",15),i=vt(t,["$$slots","$$events","$$legacy","value"]);const o=O(()=>gt(i,{"aria-hidden":"true",tabindex:-1,style:mo}));var s=L(),r=k(s);{var l=f=>{var h=Ro();ht(h,()=>({...d(o),value:n()}),void 0,void 0,void 0,void 0,!0),_(f,h)},u=f=>{var h=No();ht(h,()=>({...d(o)}),void 0,void 0,void 0,void 0,!0),co(h,n),_(f,h)};G(r,f=>{d(o).type==="checkbox"?f(l):f(u,-1)})}_(e,s),$()}const To=["top","right","bottom","left"],Ct=Math.min,Z=Math.max,Je=Math.round,Ze=Math.floor,rt=e=>({x:e,y:e}),Do={left:"right",right:"left",bottom:"top",top:"bottom"};function Sn(e,t,n){return Z(e,Ct(t,n))}function pt(e,t){return typeof e=="function"?e(t):e}function mt(e){return e.split("-")[0]}function Yt(e){return e.split("-")[1]}function kn(e){return e==="x"?"y":"x"}function Hn(e){return e==="y"?"height":"width"}function ot(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Wn(e){return kn(ot(e))}function Fo(e,t,n){n===void 0&&(n=!1);const i=Yt(e),o=Wn(e),s=Hn(o);let r=o==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(r=Qe(r)),[r,Qe(r)]}function _o(e){const t=Qe(e);return[Pn(e),t,Pn(t)]}function Pn(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const oi=["left","right"],ri=["right","left"],Io=["top","bottom"],Mo=["bottom","top"];function Bo(e,t,n){switch(e){case"top":case"bottom":return n?t?ri:oi:t?oi:ri;case"left":case"right":return t?Io:Mo;default:return[]}}function ko(e,t,n,i){const o=Yt(e);let s=Bo(mt(e),n==="start",i);return o&&(s=s.map(r=>r+"-"+o),t&&(s=s.concat(s.map(Pn)))),s}function Qe(e){const t=mt(e);return Do[t]+e.slice(t.length)}function Ho(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ci(e){return typeof e!="number"?Ho(e):{top:e,right:e,bottom:e,left:e}}function $e(e){const{x:t,y:n,width:i,height:o}=e;return{width:i,height:o,top:n,left:t,right:t+i,bottom:n+o,x:t,y:n}}function si(e,t,n){let{reference:i,floating:o}=e;const s=ot(t),r=Wn(t),l=Hn(r),u=mt(t),f=s==="y",h=i.x+i.width/2-o.width/2,c=i.y+i.height/2-o.height/2,p=i[l]/2-o[l]/2;let g;switch(u){case"top":g={x:h,y:i.y-o.height};break;case"bottom":g={x:h,y:i.y+i.height};break;case"right":g={x:i.x+i.width,y:c};break;case"left":g={x:i.x-o.width,y:c};break;default:g={x:i.x,y:i.y}}switch(Yt(t)){case"start":g[r]-=p*(n&&f?-1:1);break;case"end":g[r]+=p*(n&&f?-1:1);break}return g}async function Wo(e,t){var n;t===void 0&&(t={});const{x:i,y:o,platform:s,rects:r,elements:l,strategy:u}=e,{boundary:f="clippingAncestors",rootBoundary:h="viewport",elementContext:c="floating",altBoundary:p=!1,padding:g=0}=pt(t,e),m=Ci(g),S=l[p?c==="floating"?"reference":"floating":c],v=$e(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(S)))==null||n?S:S.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:f,rootBoundary:h,strategy:u})),C=c==="floating"?{x:i,y:o,width:r.floating.width,height:r.floating.height}:r.reference,P=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),y=await(s.isElement==null?void 0:s.isElement(P))?await(s.getScale==null?void 0:s.getScale(P))||{x:1,y:1}:{x:1,y:1},T=$e(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:C,offsetParent:P,strategy:u}):C);return{top:(v.top-T.top+m.top)/y.y,bottom:(T.bottom-v.bottom+m.bottom)/y.y,left:(v.left-T.left+m.left)/y.x,right:(T.right-v.right+m.right)/y.x}}const Lo=50,Vo=async(e,t,n)=>{const{placement:i="bottom",strategy:o="absolute",middleware:s=[],platform:r}=n,l=r.detectOverflow?r:{...r,detectOverflow:Wo},u=await(r.isRTL==null?void 0:r.isRTL(t));let f=await r.getElementRects({reference:e,floating:t,strategy:o}),{x:h,y:c}=si(f,i,u),p=i,g=0;const m={};for(let w=0;w<s.length;w++){const S=s[w];if(!S)continue;const{name:v,fn:C}=S,{x:P,y,data:T,reset:D}=await C({x:h,y:c,initialPlacement:i,placement:p,strategy:o,middlewareData:m,rects:f,platform:l,elements:{reference:e,floating:t}});h=P??h,c=y??c,m[v]={...m[v],...T},D&&g<Lo&&(g++,typeof D=="object"&&(D.placement&&(p=D.placement),D.rects&&(f=D.rects===!0?await r.getElementRects({reference:e,floating:t,strategy:o}):D.rects),{x:h,y:c}=si(f,p,u)),w=-1)}return{x:h,y:c,placement:p,strategy:o,middlewareData:m}},Ko=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:i,placement:o,rects:s,platform:r,elements:l,middlewareData:u}=t,{element:f,padding:h=0}=pt(e,t)||{};if(f==null)return{};const c=Ci(h),p={x:n,y:i},g=Wn(o),m=Hn(g),w=await r.getDimensions(f),S=g==="y",v=S?"top":"left",C=S?"bottom":"right",P=S?"clientHeight":"clientWidth",y=s.reference[m]+s.reference[g]-p[g]-s.floating[m],T=p[g]-s.reference[g],D=await(r.getOffsetParent==null?void 0:r.getOffsetParent(f));let E=D?D[P]:0;(!E||!await(r.isElement==null?void 0:r.isElement(D)))&&(E=l.floating[P]||s.floating[m]);const W=y/2-T/2,I=E/2-w[m]/2-1,H=Ct(c[v],I),z=Ct(c[C],I),F=H,B=E-w[m]-z,M=E/2-w[m]/2+W,K=Sn(F,M,B),X=!u.arrow&&Yt(o)!=null&&M!==K&&s.reference[m]/2-(M<F?H:z)-w[m]/2<0,q=X?M<F?M-F:M-B:0;return{[g]:p[g]+q,data:{[g]:K,centerOffset:M-K-q,...X&&{alignmentOffset:q}},reset:X}}}),zo=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,i;const{placement:o,middlewareData:s,rects:r,initialPlacement:l,platform:u,elements:f}=t,{mainAxis:h=!0,crossAxis:c=!0,fallbackPlacements:p,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:w=!0,...S}=pt(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const v=mt(o),C=ot(l),P=mt(l)===l,y=await(u.isRTL==null?void 0:u.isRTL(f.floating)),T=p||(P||!w?[Qe(l)]:_o(l)),D=m!=="none";!p&&D&&T.push(...ko(l,w,m,y));const E=[l,...T],W=await u.detectOverflow(t,S),I=[];let H=((i=s.flip)==null?void 0:i.overflows)||[];if(h&&I.push(W[v]),c){const M=Fo(o,r,y);I.push(W[M[0]],W[M[1]])}if(H=[...H,{placement:o,overflows:I}],!I.every(M=>M<=0)){var z,F;const M=(((z=s.flip)==null?void 0:z.index)||0)+1,K=E[M];if(K&&(!(c==="alignment"?C!==ot(K):!1)||H.every(j=>ot(j.placement)===C?j.overflows[0]>0:!0)))return{data:{index:M,overflows:H},reset:{placement:K}};let X=(F=H.filter(q=>q.overflows[0]<=0).sort((q,j)=>q.overflows[1]-j.overflows[1])[0])==null?void 0:F.placement;if(!X)switch(g){case"bestFit":{var B;const q=(B=H.filter(j=>{if(D){const yt=ot(j.placement);return yt===C||yt==="y"}return!0}).map(j=>[j.placement,j.overflows.filter(yt=>yt>0).reduce((yt,Li)=>yt+Li,0)]).sort((j,yt)=>j[1]-yt[1])[0])==null?void 0:B[0];q&&(X=q);break}case"initialPlacement":X=l;break}if(o!==X)return{reset:{placement:X}}}return{}}}};function ai(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function li(e){return To.some(t=>e[t]>=0)}const Uo=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:i}=t,{strategy:o="referenceHidden",...s}=pt(e,t);switch(o){case"referenceHidden":{const r=await i.detectOverflow(t,{...s,elementContext:"reference"}),l=ai(r,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:li(l)}}}case"escaped":{const r=await i.detectOverflow(t,{...s,altBoundary:!0}),l=ai(r,n.floating);return{data:{escapedOffsets:l,escaped:li(l)}}}default:return{}}}}},Ai=new Set(["left","top"]);async function Yo(e,t){const{placement:n,platform:i,elements:o}=e,s=await(i.isRTL==null?void 0:i.isRTL(o.floating)),r=mt(n),l=Yt(n),u=ot(n)==="y",f=Ai.has(r)?-1:1,h=s&&u?-1:1,c=pt(t,e);let{mainAxis:p,crossAxis:g,alignmentAxis:m}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:c.mainAxis||0,crossAxis:c.crossAxis||0,alignmentAxis:c.alignmentAxis};return l&&typeof m=="number"&&(g=l==="end"?m*-1:m),u?{x:g*h,y:p*f}:{x:p*f,y:g*h}}const Xo=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,i;const{x:o,y:s,placement:r,middlewareData:l}=t,u=await Yo(t,e);return r===((n=l.offset)==null?void 0:n.placement)&&(i=l.arrow)!=null&&i.alignmentOffset?{}:{x:o+u.x,y:s+u.y,data:{...u,placement:r}}}}},qo=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:i,placement:o,platform:s}=t,{mainAxis:r=!0,crossAxis:l=!1,limiter:u={fn:v=>{let{x:C,y:P}=v;return{x:C,y:P}}},...f}=pt(e,t),h={x:n,y:i},c=await s.detectOverflow(t,f),p=ot(mt(o)),g=kn(p);let m=h[g],w=h[p];if(r){const v=g==="y"?"top":"left",C=g==="y"?"bottom":"right",P=m+c[v],y=m-c[C];m=Sn(P,m,y)}if(l){const v=p==="y"?"top":"left",C=p==="y"?"bottom":"right",P=w+c[v],y=w-c[C];w=Sn(P,w,y)}const S=u.fn({...t,[g]:m,[p]:w});return{...S,data:{x:S.x-n,y:S.y-i,enabled:{[g]:r,[p]:l}}}}}},jo=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:i,placement:o,rects:s,middlewareData:r}=t,{offset:l=0,mainAxis:u=!0,crossAxis:f=!0}=pt(e,t),h={x:n,y:i},c=ot(o),p=kn(c);let g=h[p],m=h[c];const w=pt(l,t),S=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(u){const P=p==="y"?"height":"width",y=s.reference[p]-s.floating[P]+S.mainAxis,T=s.reference[p]+s.reference[P]-S.mainAxis;g<y?g=y:g>T&&(g=T)}if(f){var v,C;const P=p==="y"?"width":"height",y=Ai.has(mt(o)),T=s.reference[c]-s.floating[P]+(y&&((v=r.offset)==null?void 0:v[c])||0)+(y?0:S.crossAxis),D=s.reference[c]+s.reference[P]+(y?0:((C=r.offset)==null?void 0:C[c])||0)-(y?S.crossAxis:0);m<T?m=T:m>D&&(m=D)}return{[p]:g,[c]:m}}}},Zo=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,i;const{placement:o,rects:s,platform:r,elements:l}=t,{apply:u=()=>{},...f}=pt(e,t),h=await r.detectOverflow(t,f),c=mt(o),p=Yt(o),g=ot(o)==="y",{width:m,height:w}=s.floating;let S,v;c==="top"||c==="bottom"?(S=c,v=p===(await(r.isRTL==null?void 0:r.isRTL(l.floating))?"start":"end")?"left":"right"):(v=c,S=p==="end"?"top":"bottom");const C=w-h.top-h.bottom,P=m-h.left-h.right,y=Ct(w-h[S],C),T=Ct(m-h[v],P),D=!t.middlewareData.shift;let E=y,W=T;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(W=P),(i=t.middlewareData.shift)!=null&&i.enabled.y&&(E=C),D&&!p){const H=Z(h.left,0),z=Z(h.right,0),F=Z(h.top,0),B=Z(h.bottom,0);g?W=m-2*(H!==0||z!==0?H+z:Z(h.left,h.right)):E=w-2*(F!==0||B!==0?F+B:Z(h.top,h.bottom))}await u({...t,availableWidth:W,availableHeight:E});const I=await r.getDimensions(l.floating);return m!==I.width||w!==I.height?{reset:{rects:!0}}:{}}}};function gn(){return typeof window<"u"}function Xt(e){return Ri(e)?(e.nodeName||"").toLowerCase():"#document"}function J(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function lt(e){var t;return(t=(Ri(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ri(e){return gn()?e instanceof Node||e instanceof J(e).Node:!1}function nt(e){return gn()?e instanceof Element||e instanceof J(e).Element:!1}function wt(e){return gn()?e instanceof HTMLElement||e instanceof J(e).HTMLElement:!1}function ci(e){return!gn()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof J(e).ShadowRoot}function qe(e){const{overflow:t,overflowX:n,overflowY:i,display:o}=it(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&o!=="inline"&&o!=="contents"}function Go(e){return/^(table|td|th)$/.test(Xt(e))}function pn(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Jo=/transform|translate|scale|rotate|perspective|filter/,Qo=/paint|layout|strict|content/,Rt=e=>!!e&&e!=="none";let bn;function Ln(e){const t=nt(e)?it(e):e;return Rt(t.transform)||Rt(t.translate)||Rt(t.scale)||Rt(t.rotate)||Rt(t.perspective)||!Vn()&&(Rt(t.backdropFilter)||Rt(t.filter))||Jo.test(t.willChange||"")||Qo.test(t.contain||"")}function $o(e){let t=At(e);for(;wt(t)&&!Ut(t);){if(Ln(t))return t;if(pn(t))return null;t=At(t)}return null}function Vn(){return bn==null&&(bn=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),bn}function Ut(e){return/^(html|body|#document)$/.test(Xt(e))}function it(e){return J(e).getComputedStyle(e)}function mn(e){return nt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function At(e){if(Xt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ci(e)&&e.host||lt(e);return ci(t)?t.host:t}function Ni(e){const t=At(e);return Ut(t)?e.ownerDocument?e.ownerDocument.body:e.body:wt(t)&&qe(t)?t:Ni(t)}function jt(e,t,n){var i;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Ni(e),s=o===((i=e.ownerDocument)==null?void 0:i.body),r=J(o);if(s){const l=Cn(r);return t.concat(r,r.visualViewport||[],qe(o)?o:[],l&&n?jt(l):[])}else return t.concat(o,jt(o,[],n))}function Cn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ei(e){const t=it(e);let n=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const o=wt(e),s=o?e.offsetWidth:n,r=o?e.offsetHeight:i,l=Je(n)!==s||Je(i)!==r;return l&&(n=s,i=r),{width:n,height:i,$:l}}function Kn(e){return nt(e)?e:e.contextElement}function Ht(e){const t=Kn(e);if(!wt(t))return rt(1);const n=t.getBoundingClientRect(),{width:i,height:o,$:s}=Ei(t);let r=(s?Je(n.width):n.width)/i,l=(s?Je(n.height):n.height)/o;return(!r||!Number.isFinite(r))&&(r=1),(!l||!Number.isFinite(l))&&(l=1),{x:r,y:l}}const tr=rt(0);function Ti(e){const t=J(e);return!Vn()||!t.visualViewport?tr:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function er(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==J(e)?!1:t}function Mt(e,t,n,i){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=Kn(e);let r=rt(1);t&&(i?nt(i)&&(r=Ht(i)):r=Ht(e));const l=er(s,n,i)?Ti(s):rt(0);let u=(o.left+l.x)/r.x,f=(o.top+l.y)/r.y,h=o.width/r.x,c=o.height/r.y;if(s){const p=J(s),g=i&&nt(i)?J(i):i;let m=p,w=Cn(m);for(;w&&i&&g!==m;){const S=Ht(w),v=w.getBoundingClientRect(),C=it(w),P=v.left+(w.clientLeft+parseFloat(C.paddingLeft))*S.x,y=v.top+(w.clientTop+parseFloat(C.paddingTop))*S.y;u*=S.x,f*=S.y,h*=S.x,c*=S.y,u+=P,f+=y,m=J(w),w=Cn(m)}}return $e({width:h,height:c,x:u,y:f})}function vn(e,t){const n=mn(e).scrollLeft;return t?t.left+n:Mt(lt(e)).left+n}function Di(e,t){const n=e.getBoundingClientRect(),i=n.left+t.scrollLeft-vn(e,n),o=n.top+t.scrollTop;return{x:i,y:o}}function nr(e){let{elements:t,rect:n,offsetParent:i,strategy:o}=e;const s=o==="fixed",r=lt(i),l=t?pn(t.floating):!1;if(i===r||l&&s)return n;let u={scrollLeft:0,scrollTop:0},f=rt(1);const h=rt(0),c=wt(i);if((c||!c&&!s)&&((Xt(i)!=="body"||qe(r))&&(u=mn(i)),c)){const g=Mt(i);f=Ht(i),h.x=g.x+i.clientLeft,h.y=g.y+i.clientTop}const p=r&&!c&&!s?Di(r,u):rt(0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-u.scrollLeft*f.x+h.x+p.x,y:n.y*f.y-u.scrollTop*f.y+h.y+p.y}}function ir(e){return Array.from(e.getClientRects())}function or(e){const t=lt(e),n=mn(e),i=e.ownerDocument.body,o=Z(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),s=Z(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let r=-n.scrollLeft+vn(e);const l=-n.scrollTop;return it(i).direction==="rtl"&&(r+=Z(t.clientWidth,i.clientWidth)-o),{width:o,height:s,x:r,y:l}}const ui=25;function rr(e,t){const n=J(e),i=lt(e),o=n.visualViewport;let s=i.clientWidth,r=i.clientHeight,l=0,u=0;if(o){s=o.width,r=o.height;const h=Vn();(!h||h&&t==="fixed")&&(l=o.offsetLeft,u=o.offsetTop)}const f=vn(i);if(f<=0){const h=i.ownerDocument,c=h.body,p=getComputedStyle(c),g=h.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,m=Math.abs(i.clientWidth-c.clientWidth-g);m<=ui&&(s-=m)}else f<=ui&&(s+=f);return{width:s,height:r,x:l,y:u}}function sr(e,t){const n=Mt(e,!0,t==="fixed"),i=n.top+e.clientTop,o=n.left+e.clientLeft,s=wt(e)?Ht(e):rt(1),r=e.clientWidth*s.x,l=e.clientHeight*s.y,u=o*s.x,f=i*s.y;return{width:r,height:l,x:u,y:f}}function di(e,t,n){let i;if(t==="viewport")i=rr(e,n);else if(t==="document")i=or(lt(e));else if(nt(t))i=sr(t,n);else{const o=Ti(e);i={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return $e(i)}function Fi(e,t){const n=At(e);return n===t||!nt(n)||Ut(n)?!1:it(n).position==="fixed"||Fi(n,t)}function ar(e,t){const n=t.get(e);if(n)return n;let i=jt(e,[],!1).filter(l=>nt(l)&&Xt(l)!=="body"),o=null;const s=it(e).position==="fixed";let r=s?At(e):e;for(;nt(r)&&!Ut(r);){const l=it(r),u=Ln(r);!u&&l.position==="fixed"&&(o=null),(s?!u&&!o:!u&&l.position==="static"&&!!o&&(o.position==="absolute"||o.position==="fixed")||qe(r)&&!u&&Fi(e,r))?i=i.filter(h=>h!==r):o=l,r=At(r)}return t.set(e,i),i}function lr(e){let{element:t,boundary:n,rootBoundary:i,strategy:o}=e;const r=[...n==="clippingAncestors"?pn(t)?[]:ar(t,this._c):[].concat(n),i],l=di(t,r[0],o);let u=l.top,f=l.right,h=l.bottom,c=l.left;for(let p=1;p<r.length;p++){const g=di(t,r[p],o);u=Z(g.top,u),f=Ct(g.right,f),h=Ct(g.bottom,h),c=Z(g.left,c)}return{width:f-c,height:h-u,x:c,y:u}}function cr(e){const{width:t,height:n}=Ei(e);return{width:t,height:n}}function ur(e,t,n){const i=wt(t),o=lt(t),s=n==="fixed",r=Mt(e,!0,s,t);let l={scrollLeft:0,scrollTop:0};const u=rt(0);function f(){u.x=vn(o)}if(i||!i&&!s)if((Xt(t)!=="body"||qe(o))&&(l=mn(t)),i){const g=Mt(t,!0,s,t);u.x=g.x+t.clientLeft,u.y=g.y+t.clientTop}else o&&f();s&&!i&&o&&f();const h=o&&!i&&!s?Di(o,l):rt(0),c=r.left+l.scrollLeft-u.x-h.x,p=r.top+l.scrollTop-u.y-h.y;return{x:c,y:p,width:r.width,height:r.height}}function xn(e){return it(e).position==="static"}function hi(e,t){if(!wt(e)||it(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return lt(e)===n&&(n=n.ownerDocument.body),n}function _i(e,t){const n=J(e);if(pn(e))return n;if(!wt(e)){let o=At(e);for(;o&&!Ut(o);){if(nt(o)&&!xn(o))return o;o=At(o)}return n}let i=hi(e,t);for(;i&&Go(i)&&xn(i);)i=hi(i,t);return i&&Ut(i)&&xn(i)&&!Ln(i)?n:i||$o(e)||n}const dr=async function(e){const t=this.getOffsetParent||_i,n=this.getDimensions,i=await n(e.floating);return{reference:ur(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function hr(e){return it(e).direction==="rtl"}const fr={convertOffsetParentRelativeRectToViewportRelativeRect:nr,getDocumentElement:lt,getClippingRect:lr,getOffsetParent:_i,getElementRects:dr,getClientRects:ir,getDimensions:cr,getScale:Ht,isElement:nt,isRTL:hr};function Ii(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function gr(e,t){let n=null,i;const o=lt(e);function s(){var l;clearTimeout(i),(l=n)==null||l.disconnect(),n=null}function r(l,u){l===void 0&&(l=!1),u===void 0&&(u=1),s();const f=e.getBoundingClientRect(),{left:h,top:c,width:p,height:g}=f;if(l||t(),!p||!g)return;const m=Ze(c),w=Ze(o.clientWidth-(h+p)),S=Ze(o.clientHeight-(c+g)),v=Ze(h),P={rootMargin:-m+"px "+-w+"px "+-S+"px "+-v+"px",threshold:Z(0,Ct(1,u))||1};let y=!0;function T(D){const E=D[0].intersectionRatio;if(E!==u){if(!y)return r();E?r(!1,E):i=setTimeout(()=>{r(!1,1e-7)},1e3)}E===1&&!Ii(f,e.getBoundingClientRect())&&r(),y=!1}try{n=new IntersectionObserver(T,{...P,root:o.ownerDocument})}catch{n=new IntersectionObserver(T,P)}n.observe(e)}return r(!0),s}function pr(e,t,n,i){i===void 0&&(i={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:r=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:u=!1}=i,f=Kn(e),h=o||s?[...f?jt(f):[],...t?jt(t):[]]:[];h.forEach(v=>{o&&v.addEventListener("scroll",n,{passive:!0}),s&&v.addEventListener("resize",n)});const c=f&&l?gr(f,n):null;let p=-1,g=null;r&&(g=new ResizeObserver(v=>{let[C]=v;C&&C.target===f&&g&&t&&(g.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var P;(P=g)==null||P.observe(t)})),n()}),f&&!u&&g.observe(f),t&&g.observe(t));let m,w=u?Mt(e):null;u&&S();function S(){const v=Mt(e);w&&!Ii(w,v)&&n(),w=v,m=requestAnimationFrame(S)}return n(),()=>{var v;h.forEach(C=>{o&&C.removeEventListener("scroll",n),s&&C.removeEventListener("resize",n)}),c==null||c(),(v=g)==null||v.disconnect(),g=null,u&&cancelAnimationFrame(m)}}const mr=Xo,vr=qo,wr=zo,yr=Zo,br=Uo,xr=Ko,Or=jo,Sr=(e,t,n)=>{const i=new Map,o={platform:fr,...n},s={...o.platform,_c:i};return Vo(e,t,{...o,platform:s})};function Nt(e){return typeof e=="function"?e():e}function Mi(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function fi(e,t){const n=Mi(e);return Math.round(t*n)/n}function Pr(e){return{[`--bits-${e}-content-transform-origin`]:"var(--bits-floating-transform-origin)",[`--bits-${e}-content-available-width`]:"var(--bits-floating-available-width)",[`--bits-${e}-content-available-height`]:"var(--bits-floating-available-height)",[`--bits-${e}-anchor-width`]:"var(--bits-floating-anchor-width)",[`--bits-${e}-anchor-height`]:"var(--bits-floating-anchor-height)"}}function Cr(e){const t=e.whileElementsMounted,n=O(()=>Nt(e.open)??!0),i=O(()=>Nt(e.middleware)),o=O(()=>Nt(e.transform)??!0),s=O(()=>Nt(e.placement)??"bottom"),r=O(()=>Nt(e.strategy)??"absolute"),l=O(()=>Nt(e.sideOffset)??0),u=O(()=>Nt(e.alignOffset)??0),f=e.reference;let h=V(0),c=V(0);const p=St(null);let g=V(Ge(d(r))),m=V(Ge(d(s))),w=V(Ge({})),S=V(!1),v=!1;const C=O(()=>{const I=p.current?fi(p.current,d(h)):d(h),H=p.current?fi(p.current,d(c)):d(c);return d(o)?{position:d(g),left:"0",top:"0",transform:`translate(${I}px, ${H}px)`,...p.current&&Mi(p.current)>=1.5&&{willChange:"transform"}}:{position:d(g),left:`${I}px`,top:`${H}px`}});let P;function y(){f.current===null||p.current===null||Sr(f.current,p.current,{middleware:d(i),placement:d(s),strategy:d(r)}).then(I=>{const H=f.current;if(Ar(H)){A(w,{...d(w),hide:{...d(w).hide,referenceHidden:!0}},!0);return}if(!d(n)&&d(h)!==0&&d(c)!==0){const F=Math.max(Math.abs(d(l)),Math.abs(d(u)),15);if(I.x<=F&&I.y<=F)return}A(h,I.x,!0),A(c,I.y,!0),A(g,I.strategy,!0),A(m,I.placement,!0),A(w,I.middlewareData,!0),A(S,!0)})}function T(){typeof P=="function"&&(P(),P=void 0)}function D(){if(T(),t===void 0){y();return}d(n)&&(f.current===null||p.current===null||(P=t(f.current,p.current,y)))}function E(){!d(n)&&p.current===null&&A(S,!1)}function W(){return[d(i),d(s),d(r),d(l),d(u),d(n)]}return tt(()=>{t===void 0&&d(n)&&y()}),tt(D),tt(()=>{if(t!==void 0){if(W(),!d(n)){v=!1;return}if(!d(S)){v=!1;return}if(!v){v=!0;return}y()}}),tt(E),tt(()=>T),{floating:p,reference:f,get strategy(){return d(g)},get placement(){return d(m)},get middlewareData(){return d(w)},get isPositioned(){return d(S)},get floatingStyles(){return d(C)},get update(){return y}}}function Ar(e){return e instanceof Element?!e.isConnected||e instanceof HTMLElement&&e.hidden?!0:e.getClientRects().length===0:!1}const Rr={top:"bottom",right:"left",bottom:"top",left:"right"},zn=new Xe("Floating.Root"),gi=new Xe("Floating.Content"),Un=new Xe("Floating.Root");class tn{constructor(){N(this,"anchorNode",St(null));N(this,"customAnchorNode",St(null));N(this,"triggerNode",St(null));tt(()=>{this.customAnchorNode.current?typeof this.customAnchorNode.current=="string"?this.anchorNode.current=document.querySelector(this.customAnchorNode.current):this.anchorNode.current=this.customAnchorNode.current:this.anchorNode.current=this.triggerNode.current})}static create(t=!1){return t?Un.set(new tn):zn.set(new tn)}}var Gt,Jt,Qt,ln,$t,cn,te,ee,ne,ie,oe,re,se,ae,le,ce,ue,de,he,fe,ge,pe,me,ve;const un=class un{constructor(t,n){N(this,"opts");N(this,"root");N(this,"contentRef",St(null));N(this,"wrapperRef",St(null));N(this,"arrowRef",St(null));N(this,"contentAttachment",_t(this.contentRef));N(this,"wrapperAttachment",_t(this.wrapperRef));N(this,"arrowAttachment",_t(this.arrowRef));N(this,"arrowId",St(mi()));b(this,Gt,O(()=>{if(typeof this.opts.style=="string")return qi(this.opts.style);if(!this.opts.style)return{}}));b(this,Jt);b(this,Qt,new wo(()=>this.arrowRef.current??void 0));b(this,ln,O(()=>{var t;return((t=a(this,Qt))==null?void 0:t.width)??0}));b(this,$t,O(()=>{var t;return((t=a(this,Qt))==null?void 0:t.height)??0}));b(this,cn,O(()=>{var t;return((t=this.opts.side)==null?void 0:t.current)+(this.opts.align.current!=="center"?`-${this.opts.align.current}`:"")}));b(this,te,O(()=>Array.isArray(this.opts.collisionBoundary.current)?this.opts.collisionBoundary.current:[this.opts.collisionBoundary.current]));b(this,ee,O(()=>d(a(this,te)).length>0));b(this,ne,O(()=>({padding:this.opts.collisionPadding.current,boundary:d(a(this,te)).filter(ji),altBoundary:this.hasExplicitBoundaries})));b(this,ie,V(void 0));b(this,oe,V(void 0));b(this,re,V(void 0));b(this,se,V(void 0));b(this,ae,O(()=>[mr({mainAxis:this.opts.sideOffset.current+d(a(this,$t)),alignmentAxis:this.opts.alignOffset.current}),this.opts.avoidCollisions.current&&vr({mainAxis:!0,crossAxis:!1,limiter:this.opts.sticky.current==="partial"?Or():void 0,...this.detectOverflowOptions}),this.opts.avoidCollisions.current&&wr({...this.detectOverflowOptions}),yr({...this.detectOverflowOptions,apply:({rects:t,availableWidth:n,availableHeight:i})=>{const{width:o,height:s}=t.reference;A(a(this,ie),n,!0),A(a(this,oe),i,!0),A(a(this,re),o,!0),A(a(this,se),s,!0)}}),this.arrowRef.current&&xr({element:this.arrowRef.current,padding:this.opts.arrowPadding.current}),Nr({arrowWidth:d(a(this,ln)),arrowHeight:d(a(this,$t))}),this.opts.hideWhenDetached.current&&br({strategy:"referenceHidden",...this.detectOverflowOptions})].filter(Boolean)));N(this,"floating");b(this,le,O(()=>Er(this.floating.placement)));b(this,ce,O(()=>Tr(this.floating.placement)));b(this,ue,O(()=>{var t;return((t=this.floating.middlewareData.arrow)==null?void 0:t.x)??0}));b(this,de,O(()=>{var t;return((t=this.floating.middlewareData.arrow)==null?void 0:t.y)??0}));b(this,he,O(()=>{var t;return((t=this.floating.middlewareData.arrow)==null?void 0:t.centerOffset)!==0}));b(this,fe,V());b(this,ge,O(()=>Rr[this.placedSide]));b(this,pe,O(()=>{var t,n,i;return{id:this.opts.wrapperId.current,"data-bits-floating-content-wrapper":"",style:{...this.floating.floatingStyles,transform:this.floating.isPositioned?this.floating.floatingStyles.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:this.contentZIndex,"--bits-floating-transform-origin":`${(t=this.floating.middlewareData.transformOrigin)==null?void 0:t.x} ${(n=this.floating.middlewareData.transformOrigin)==null?void 0:n.y}`,"--bits-floating-available-width":`${d(a(this,ie))}px`,"--bits-floating-available-height":`${d(a(this,oe))}px`,"--bits-floating-anchor-width":`${d(a(this,re))}px`,"--bits-floating-anchor-height":`${d(a(this,se))}px`,...((i=this.floating.middlewareData.hide)==null?void 0:i.referenceHidden)&&{visibility:"hidden","pointer-events":"none"},...d(a(this,Gt))},dir:this.opts.dir.current,...this.wrapperAttachment}}));b(this,me,O(()=>({"data-side":this.placedSide,"data-align":this.placedAlign,style:pi({...d(a(this,Gt))}),...this.contentAttachment})));b(this,ve,O(()=>({position:"absolute",left:this.arrowX?`${this.arrowX}px`:void 0,top:this.arrowY?`${this.arrowY}px`:void 0,[this.arrowBaseSide]:0,"transform-origin":{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[this.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[this.placedSide],visibility:this.cannotCenterArrow?"hidden":void 0})));this.opts=t,this.root=n,Y(this,Jt,t.updatePositionStrategy),t.customAnchor&&(this.root.customAnchorNode.current=t.customAnchor.current),Pt(()=>t.customAnchor.current,i=>{this.root.customAnchorNode.current=i}),this.floating=Cr({strategy:()=>this.opts.strategy.current,placement:()=>d(a(this,cn)),middleware:()=>this.middleware,reference:this.root.anchorNode,whileElementsMounted:(...i)=>{var s;return pr(...i,{animationFrame:((s=a(this,Jt))==null?void 0:s.current)==="always"})},open:()=>this.opts.enabled.current,sideOffset:()=>this.opts.sideOffset.current,alignOffset:()=>this.opts.alignOffset.current}),tt(()=>{var i;this.floating.isPositioned&&((i=this.opts.onPlaced)==null||i.current())}),Pt(()=>this.contentRef.current,i=>{if(!i||!this.opts.enabled.current)return;const o=Zi(i),s=o.requestAnimationFrame(()=>{if(this.contentRef.current!==i||!this.opts.enabled.current)return;const r=o.getComputedStyle(i).zIndex;r!==this.contentZIndex&&(this.contentZIndex=r)});return()=>{o.cancelAnimationFrame(s)}}),tt(()=>{this.floating.floating.current=this.wrapperRef.current})}static create(t,n=!1){return n?gi.set(new un(t,Un.get())):gi.set(new un(t,zn.get()))}get hasExplicitBoundaries(){return d(a(this,ee))}set hasExplicitBoundaries(t){A(a(this,ee),t)}get detectOverflowOptions(){return d(a(this,ne))}set detectOverflowOptions(t){A(a(this,ne),t)}get middleware(){return d(a(this,ae))}set middleware(t){A(a(this,ae),t)}get placedSide(){return d(a(this,le))}set placedSide(t){A(a(this,le),t)}get placedAlign(){return d(a(this,ce))}set placedAlign(t){A(a(this,ce),t)}get arrowX(){return d(a(this,ue))}set arrowX(t){A(a(this,ue),t)}get arrowY(){return d(a(this,de))}set arrowY(t){A(a(this,de),t)}get cannotCenterArrow(){return d(a(this,he))}set cannotCenterArrow(t){A(a(this,he),t)}get contentZIndex(){return d(a(this,fe))}set contentZIndex(t){A(a(this,fe),t,!0)}get arrowBaseSide(){return d(a(this,ge))}set arrowBaseSide(t){A(a(this,ge),t)}get wrapperProps(){return d(a(this,pe))}set wrapperProps(t){A(a(this,pe),t)}get props(){return d(a(this,me))}set props(t){A(a(this,me),t)}get arrowStyle(){return d(a(this,ve))}set arrowStyle(t){A(a(this,ve),t)}};Gt=new WeakMap,Jt=new WeakMap,Qt=new WeakMap,ln=new WeakMap,$t=new WeakMap,cn=new WeakMap,te=new WeakMap,ee=new WeakMap,ne=new WeakMap,ie=new WeakMap,oe=new WeakMap,re=new WeakMap,se=new WeakMap,ae=new WeakMap,le=new WeakMap,ce=new WeakMap,ue=new WeakMap,de=new WeakMap,he=new WeakMap,fe=new WeakMap,ge=new WeakMap,pe=new WeakMap,me=new WeakMap,ve=new WeakMap;let An=un;class en{constructor(t,n){N(this,"opts");N(this,"root");this.opts=t,this.root=n,t.virtualEl&&t.virtualEl.current?n.triggerNode=Xi(t.virtualEl.current):n.triggerNode=t.ref}static create(t,n=!1){return n?new en(t,Un.get()):new en(t,zn.get())}}function Nr(e){return{name:"transformOrigin",options:e,fn(t){var S,v,C;const{placement:n,rects:i,middlewareData:o}=t,r=((S=o.arrow)==null?void 0:S.centerOffset)!==0,l=r?0:e.arrowWidth,u=r?0:e.arrowHeight,[f,h]=Yn(n),c={start:"0%",center:"50%",end:"100%"}[h],p=(((v=o.arrow)==null?void 0:v.x)??0)+l/2,g=(((C=o.arrow)==null?void 0:C.y)??0)+u/2;let m="",w="";return f==="bottom"?(m=r?c:`${p}px`,w=`${-u}px`):f==="top"?(m=r?c:`${p}px`,w=`${i.floating.height+u}px`):f==="right"?(m=`${-u}px`,w=r?c:`${g}px`):f==="left"&&(m=`${i.floating.width+u}px`,w=r?c:`${g}px`),{data:{x:m,y:w}}}}}function Yn(e){const[t,n="center"]=e.split("-");return[t,n]}function Er(e){return Yn(e)[0]}function Tr(e){return Yn(e)[1]}function Dr(e,t){Q(t,!0);let n=x(t,"tooltip",3,!1);tn.create(n());var i=L(),o=k(i);U(o,()=>t.children??et),_(e,i),$()}var dt,Dt,Ot;class Fr{constructor(t){b(this,dt);b(this,Dt,O(()=>a(this,dt).candidateValues()));b(this,Ot);Y(this,dt,t),Y(this,Ot,Pi("",{afterMs:1e3,getWindow:a(this,dt).getWindow})),this.handleTypeaheadSearch=this.handleTypeaheadSearch.bind(this),this.resetTypeahead=this.resetTypeahead.bind(this)}handleTypeaheadSearch(t){if(!a(this,dt).enabled()||!d(a(this,Dt)).length)return;a(this,Ot).current=a(this,Ot).current+t;const n=a(this,dt).getCurrentItem(),i=d(a(this,Dt)).find(l=>l===n)??"",o=d(a(this,Dt)).map(l=>l??""),s=Bn(o,a(this,Ot).current,i),r=d(a(this,Dt)).find(l=>l===s);return r&&a(this,dt).onMatch(r),r}resetTypeahead(){a(this,Ot).current=""}}dt=new WeakMap,Dt=new WeakMap,Ot=new WeakMap;const _r=[qt,wi,yi],Ir=[kt,bi,xi],Mr=[..._r,...Ir],Br=$i({component:"select",parts:["trigger","content","item","viewport","scroll-up-button","scroll-down-button","group","group-label","separator","arrow","input","content-wrapper","item-text","value"]}),je=new Xe("Select.Root | Combobox.Root"),Bi=new Xe("Select.Content | Combobox.Content");var we,ye,be,xe,Oe,Se,Pe,Ce,Ae,Re;class ki{constructor(t){N(this,"opts");b(this,we,V(!1));b(this,ye,V(null));b(this,be,V(null));N(this,"contentPresence");b(this,xe,V(null));b(this,Oe,V(null));b(this,Se,V(""));b(this,Pe,V(null));b(this,Ce,O(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-value"):null));b(this,Ae,O(()=>{if(this.highlightedNode)return this.highlightedNode.id}));b(this,Re,O(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-label"):null));N(this,"isUsingKeyboard",!1);N(this,"isCombobox",!1);N(this,"domContext",new Mn(()=>null));N(this,"getBitsAttr",t=>Br.getAttr(t,this.isCombobox?"combobox":void 0));this.opts=t,this.isCombobox=t.isCombobox,this.contentPresence=new Ji({ref:R(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),Ui(()=>{this.opts.open.current||this.setHighlightedNode(null)})}get touchedInput(){return d(a(this,we))}set touchedInput(t){A(a(this,we),t,!0)}get inputNode(){return d(a(this,ye))}set inputNode(t){A(a(this,ye),t,!0)}get contentNode(){return d(a(this,be))}set contentNode(t){A(a(this,be),t,!0)}get viewportNode(){return d(a(this,xe))}set viewportNode(t){A(a(this,xe),t,!0)}get triggerNode(){return d(a(this,Oe))}set triggerNode(t){A(a(this,Oe),t,!0)}get valueId(){return d(a(this,Se))}set valueId(t){A(a(this,Se),t,!0)}get highlightedNode(){return d(a(this,Pe))}set highlightedNode(t){A(a(this,Pe),t,!0)}get highlightedValue(){return d(a(this,Ce))}set highlightedValue(t){A(a(this,Ce),t)}get highlightedId(){return d(a(this,Ae))}set highlightedId(t){A(a(this,Ae),t)}get highlightedLabel(){return d(a(this,Re))}set highlightedLabel(t){A(a(this,Re),t)}setHighlightedNode(t,n=!1){this.highlightedNode=t,t&&(this.isUsingKeyboard||n)&&t.scrollIntoView({block:this.opts.scrollAlignment.current})}getCandidateNodes(){const t=this.contentNode;return t?Array.from(t.querySelectorAll(`[${this.getBitsAttr("item")}]:not([data-disabled])`)):[]}setHighlightedToFirstCandidate(t=!1){this.setHighlightedNode(null);let n=this.getCandidateNodes();if(n.length){if(this.viewportNode){const i=this.viewportNode.getBoundingClientRect();n=n.filter(o=>{if(!this.viewportNode)return!1;const s=o.getBoundingClientRect();return s.right<=i.right&&s.left>=i.left&&s.bottom<=i.bottom&&s.top>=i.top})}this.setHighlightedNode(n[0],t)}}getNodeByValue(t){return this.getCandidateNodes().find(i=>i.dataset.value===t)??null}setOpen(t){this.opts.open.current=t}toggleOpen(){this.opts.open.current=!this.opts.open.current}handleOpen(){this.setOpen(!0)}handleClose(){this.setHighlightedNode(null),this.setOpen(!1)}toggleMenu(){this.toggleOpen()}}we=new WeakMap,ye=new WeakMap,be=new WeakMap,xe=new WeakMap,Oe=new WeakMap,Se=new WeakMap,Pe=new WeakMap,Ce=new WeakMap,Ae=new WeakMap,Re=new WeakMap;var Ne,Ee,Te,De;class kr extends ki{constructor(n){super(n);N(this,"opts");N(this,"isMulti",!1);b(this,Ne,O(()=>this.opts.value.current!==""));b(this,Ee,O(()=>{var n;return this.opts.items.current.length?((n=this.opts.items.current.find(i=>i.value===this.opts.value.current))==null?void 0:n.label)??"":""}));b(this,Te,O(()=>this.opts.items.current.length?this.opts.items.current.filter(i=>!i.disabled).map(i=>i.label):[]));b(this,De,O(()=>!(this.isMulti||this.opts.items.current.length===0)));this.opts=n,tt(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),Pt(()=>this.opts.open.current,()=>{this.opts.open.current&&this.setInitialHighlightedNode()})}get hasValue(){return d(a(this,Ne))}set hasValue(n){A(a(this,Ne),n)}get currentLabel(){return d(a(this,Ee))}set currentLabel(n){A(a(this,Ee),n)}get candidateLabels(){return d(a(this,Te))}set candidateLabels(n){A(a(this,Te),n)}get dataTypeaheadEnabled(){return d(a(this,De))}set dataTypeaheadEnabled(n){A(a(this,De),n)}includesItem(n){return this.opts.value.current===n}toggleItem(n,i=n){const o=this.includesItem(n)?"":n;this.opts.value.current=o,o!==""&&(this.opts.inputValue.current=i)}setInitialHighlightedNode(){vi(()=>{if(!(this.highlightedNode&&this.domContext.getDocument().contains(this.highlightedNode))){if(this.opts.value.current!==""){const n=this.getNodeByValue(this.opts.value.current);if(n){this.setHighlightedNode(n,!0);return}}this.setHighlightedToFirstCandidate(!0)}})}}Ne=new WeakMap,Ee=new WeakMap,Te=new WeakMap,De=new WeakMap;var Fe;class Hr extends ki{constructor(n){super(n);N(this,"opts");N(this,"isMulti",!0);b(this,Fe,O(()=>this.opts.value.current.length>0));this.opts=n,tt(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),Pt(()=>this.opts.open.current,()=>{this.opts.open.current&&this.setInitialHighlightedNode()})}get hasValue(){return d(a(this,Fe))}set hasValue(n){A(a(this,Fe),n)}includesItem(n){return this.opts.value.current.includes(n)}toggleItem(n,i=n){this.includesItem(n)?this.opts.value.current=this.opts.value.current.filter(o=>o!==n):this.opts.value.current=[...this.opts.value.current,n],this.opts.inputValue.current=i}setInitialHighlightedNode(){vi(()=>{if(this.domContext&&!(this.highlightedNode&&this.domContext.getDocument().contains(this.highlightedNode))){if(this.opts.value.current.length&&this.opts.value.current[0]!==""){const n=this.getNodeByValue(this.opts.value.current[0]);if(n){this.setHighlightedNode(n,!0);return}}this.setHighlightedToFirstCandidate(!0)}})}}Fe=new WeakMap;class Wr{static create(t){const{type:n,...i}=t,o=n==="single"?new kr(i):new Hr(i);return je.set(o)}}var Ft,zt,st,Hi,Nn,En,_e;const Xn=class Xn{constructor(t,n){b(this,st);N(this,"opts");N(this,"root");N(this,"attachment");b(this,Ft);b(this,zt);b(this,_e,O(()=>({id:this.opts.id.current,disabled:this.root.opts.disabled.current?!0:void 0,"aria-haspopup":"listbox","aria-expanded":Qi(this.root.opts.open.current),"aria-activedescendant":this.root.highlightedId,"data-state":Si(this.root.opts.open.current),"data-disabled":Oi(this.root.opts.disabled.current),"data-placeholder":this.root.hasValue?void 0:"",[this.root.getBitsAttr("trigger")]:"",onpointerdown:this.onpointerdown,onkeydown:this.onkeydown,onclick:this.onclick,onpointerup:this.onpointerup,...this.attachment})));this.opts=t,this.root=n,this.attachment=_t(t.ref,i=>this.root.triggerNode=i),this.root.domContext=new Mn(t.ref),Y(this,Ft,new Ao({getCurrentItem:()=>this.root.highlightedNode,onMatch:i=>{this.root.setHighlightedNode(i)},getActiveElement:()=>this.root.domContext.getActiveElement(),getWindow:()=>this.root.domContext.getWindow()})),Y(this,zt,new Fr({getCurrentItem:()=>this.root.isMulti?"":this.root.currentLabel,onMatch:i=>{if(this.root.isMulti||!this.root.opts.items.current)return;const o=this.root.opts.items.current.find(s=>s.label===i);o&&(this.root.opts.value.current=o.value)},enabled:()=>!this.root.isMulti&&this.root.dataTypeaheadEnabled,candidateValues:()=>this.root.isMulti?[]:this.root.candidateLabels,getWindow:()=>this.root.domContext.getWindow()})),this.onkeydown=this.onkeydown.bind(this),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this),this.onclick=this.onclick.bind(this)}static create(t){return new Xn(t,je.get())}onkeydown(t){if(this.root.isUsingKeyboard=!0,(t.key===kt||t.key===qt)&&t.preventDefault(),!this.root.opts.open.current){if(t.key===Qn||t.key===yn||t.key===qt||t.key===kt)t.preventDefault(),this.root.handleOpen();else if(!this.root.isMulti&&this.root.dataTypeaheadEnabled){a(this,zt).handleTypeaheadSearch(t.key);return}if(this.root.hasValue)return;const r=this.root.getCandidateNodes();if(!r.length)return;if(t.key===qt){const l=r[0];this.root.setHighlightedNode(l)}else if(t.key===kt){const l=r[r.length-1];this.root.setHighlightedNode(l)}return}if(t.key===$n){this.root.handleClose();return}if((t.key===Qn||t.key===yn&&a(this,Ft).search==="")&&!t.isComposing&&(t.preventDefault(),Bt(this,st,En).call(this)))return;if(t.key===kt&&t.altKey&&this.root.handleClose(),Mr.includes(t.key)){t.preventDefault();const r=this.root.getCandidateNodes(),l=this.root.highlightedNode,u=l?r.indexOf(l):-1,f=this.root.opts.loop.current;let h;if(t.key===qt?h=xo(r,u,f):t.key===kt?h=Oo(r,u,f):t.key===bi?h=So(r,u,10,f):t.key===wi?h=Po(r,u,10,f):t.key===yi?h=r[0]:t.key===xi&&(h=r[r.length-1]),!h)return;this.root.setHighlightedNode(h);return}const n=t.ctrlKey||t.altKey||t.metaKey,i=t.key.length===1,o=t.key===yn,s=this.root.getCandidateNodes();if(t.key!==$n){if(!n&&(i||o)){!a(this,Ft).handleTypeaheadSearch(t.key,s)&&o&&(t.preventDefault(),Bt(this,st,En).call(this));return}this.root.highlightedNode||this.root.setHighlightedToFirstCandidate()}}onclick(t){t.currentTarget.focus()}onpointerdown(t){if(this.root.opts.disabled.current)return;if(t.pointerType==="touch")return t.preventDefault();const n=t.target;n!=null&&n.hasPointerCapture(t.pointerId)&&(n==null||n.releasePointerCapture(t.pointerId)),t.button===0&&t.ctrlKey===!1&&(this.root.opts.open.current===!1?Bt(this,st,Nn).call(this,t):this.root.handleClose())}onpointerup(t){this.root.opts.disabled.current||(t.preventDefault(),t.pointerType==="touch"&&(this.root.opts.open.current===!1?Bt(this,st,Nn).call(this,t):this.root.handleClose()))}get props(){return d(a(this,_e))}set props(t){A(a(this,_e),t)}};Ft=new WeakMap,zt=new WeakMap,st=new WeakSet,Hi=function(){this.root.opts.open.current=!0,a(this,zt).resetTypeahead(),a(this,Ft).resetTypeahead()},Nn=function(t){Bt(this,st,Hi).call(this)},En=function(){const t=this.root.highlightedValue===this.root.opts.value.current;return!this.root.opts.allowDeselect.current&&t&&!this.root.isMulti?(this.root.handleClose(),!0):(this.root.highlightedValue!==null&&this.root.toggleItem(this.root.highlightedValue,this.root.highlightedLabel??void 0),!this.root.isMulti&&!t?(this.root.handleClose(),!0):!1)},_e=new WeakMap;let Rn=Xn;var Ie,dn,Me,Be;const qn=class qn{constructor(t,n){N(this,"opts");N(this,"root");N(this,"attachment");b(this,Ie,V(!1));N(this,"domContext");b(this,dn,O(()=>Pr(this.root.isCombobox?"combobox":"select")));N(this,"onInteractOutside",t=>{if(t.target===this.root.triggerNode||t.target===this.root.inputNode){t.preventDefault();return}this.opts.onInteractOutside.current(t),!t.defaultPrevented&&this.root.handleClose()});N(this,"onEscapeKeydown",t=>{this.opts.onEscapeKeydown.current(t),!t.defaultPrevented&&this.root.handleClose()});N(this,"onOpenAutoFocus",t=>{t.preventDefault()});N(this,"onCloseAutoFocus",t=>{t.preventDefault()});b(this,Me,O(()=>({open:this.root.opts.open.current})));b(this,Be,O(()=>({id:this.opts.id.current,role:"listbox","aria-multiselectable":this.root.isMulti?"true":void 0,"data-state":Si(this.root.opts.open.current),[this.root.getBitsAttr("content")]:"",style:{display:"flex",flexDirection:"column",outline:"none",boxSizing:"border-box",pointerEvents:"auto",...d(a(this,dn))},onpointermove:this.onpointermove,...this.attachment})));N(this,"popperProps",{onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown,onOpenAutoFocus:this.onOpenAutoFocus,onCloseAutoFocus:this.onCloseAutoFocus,trapFocus:!1,loop:!1,onPlaced:()=>{this.root.opts.open.current&&(this.isPositioned=!0)}});this.opts=t,this.root=n,this.attachment=_t(t.ref,i=>this.root.contentNode=i),this.domContext=new Mn(this.opts.ref),this.root.domContext===null&&(this.root.domContext=this.domContext),Gi(()=>{this.root.contentNode=null,this.isPositioned=!1}),Pt(()=>this.root.opts.open.current,()=>{this.root.opts.open.current||(this.isPositioned=!1)}),this.onpointermove=this.onpointermove.bind(this)}static create(t){return Bi.set(new qn(t,je.get()))}get isPositioned(){return d(a(this,Ie))}set isPositioned(t){A(a(this,Ie),t,!0)}onpointermove(t){this.root.isUsingKeyboard=!1}get shouldRender(){return this.root.contentPresence.shouldRender}get snippetProps(){return d(a(this,Me))}set snippetProps(t){A(a(this,Me),t)}get props(){return d(a(this,Be))}set props(t){A(a(this,Be),t)}};Ie=new WeakMap,dn=new WeakMap,Me=new WeakMap,Be=new WeakMap;let Tn=qn;var ke,He,We,Le,Ve;const jn=class jn{constructor(t,n){N(this,"opts");N(this,"root");N(this,"attachment");b(this,ke,O(()=>this.root.includesItem(this.opts.value.current)));b(this,He,O(()=>this.root.highlightedValue===this.opts.value.current));N(this,"prevHighlighted",new yo(()=>this.isHighlighted));b(this,We,V(!1));b(this,Le,O(()=>({selected:this.isSelected,highlighted:this.isHighlighted})));b(this,Ve,O(()=>({id:this.opts.id.current,role:"option","aria-selected":this.root.includesItem(this.opts.value.current)?"true":void 0,"data-value":this.opts.value.current,"data-disabled":Oi(this.opts.disabled.current),"data-highlighted":this.root.highlightedValue===this.opts.value.current&&!this.opts.disabled.current?"":void 0,"data-selected":this.root.includesItem(this.opts.value.current)?"":void 0,"data-label":this.opts.label.current,[this.root.getBitsAttr("item")]:"",onpointermove:this.onpointermove,onpointerdown:this.onpointerdown,onpointerup:this.onpointerup,...this.attachment})));this.opts=t,this.root=n,this.attachment=_t(t.ref),Pt([()=>this.isHighlighted,()=>this.prevHighlighted.current],()=>{this.isHighlighted?this.opts.onHighlight.current():this.prevHighlighted.current&&this.opts.onUnhighlight.current()}),Pt(()=>this.mounted,()=>{this.mounted&&this.root.setInitialHighlightedNode()}),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this),this.onpointermove=this.onpointermove.bind(this)}static create(t){return new jn(t,je.get())}get isSelected(){return d(a(this,ke))}set isSelected(t){A(a(this,ke),t)}get isHighlighted(){return d(a(this,He))}set isHighlighted(t){A(a(this,He),t)}get mounted(){return d(a(this,We))}set mounted(t){A(a(this,We),t,!0)}handleSelect(){if(this.opts.disabled.current)return;const t=this.opts.value.current===this.root.opts.value.current;if(!this.root.opts.allowDeselect.current&&t&&!this.root.isMulti){this.root.handleClose();return}this.root.toggleItem(this.opts.value.current,this.opts.label.current),!this.root.isMulti&&!t&&this.root.handleClose()}get snippetProps(){return d(a(this,Le))}set snippetProps(t){A(a(this,Le),t)}onpointerdown(t){t.preventDefault()}onpointerup(t){if(!(t.defaultPrevented||!this.opts.ref.current)){if(t.pointerType==="touch"&&!to){fo(this.opts.ref.current,"click",()=>{this.handleSelect(),this.root.setHighlightedNode(this.opts.ref.current)},{once:!0});return}t.preventDefault(),this.handleSelect(),t.pointerType==="touch"&&this.root.setHighlightedNode(this.opts.ref.current)}}onpointermove(t){t.pointerType!=="touch"&&this.root.highlightedNode!==this.opts.ref.current&&this.root.setHighlightedNode(this.opts.ref.current)}get props(){return d(a(this,Ve))}set props(t){A(a(this,Ve),t)}};ke=new WeakMap,He=new WeakMap,We=new WeakMap,Le=new WeakMap,Ve=new WeakMap;let Dn=jn;var Ke,ze;const Zn=class Zn{constructor(t,n){N(this,"opts");N(this,"root");b(this,Ke,O(()=>this.root.opts.name.current!==""));b(this,ze,O(()=>({disabled:ti(this.root.opts.disabled.current),required:ti(this.root.opts.required.current),name:this.root.opts.name.current,value:this.opts.value.current,onfocus:this.onfocus})));this.opts=t,this.root=n,this.onfocus=this.onfocus.bind(this)}static create(t){return new Zn(t,je.get())}get shouldRender(){return d(a(this,Ke))}set shouldRender(t){A(a(this,Ke),t)}onfocus(t){var n,i;t.preventDefault(),this.root.isCombobox?(i=this.root.inputNode)==null||i.focus():(n=this.root.triggerNode)==null||n.focus()}get props(){return d(a(this,ze))}set props(t){A(a(this,ze),t)}};Ke=new WeakMap,ze=new WeakMap;let Fn=Zn;var Ue,Ye;const Gn=class Gn{constructor(t,n){N(this,"opts");N(this,"content");N(this,"root");N(this,"attachment");b(this,Ue,V(0));b(this,Ye,O(()=>({id:this.opts.id.current,role:"presentation",[this.root.getBitsAttr("viewport")]:"",style:{position:"relative",flex:1,overflow:"auto"},...this.attachment})));this.opts=t,this.content=n,this.root=n.root,this.attachment=_t(t.ref,i=>{this.root.viewportNode=i})}static create(t){return new Gn(t,Bi.get())}get prevScrollTop(){return d(a(this,Ue))}set prevScrollTop(t){A(a(this,Ue),t,!0)}get props(){return d(a(this,Ye))}set props(t){A(a(this,Ye),t)}};Ue=new WeakMap,Ye=new WeakMap;let _n=Gn;function On(e,t){Q(t,!0);let n=x(t,"value",15);const i=Fn.create({value:R(()=>n())});var o=L(),s=k(o);{var r=l=>{Eo(l,It(()=>i.props,{get autocomplete(){return t.autocomplete},get value(){return n()},set value(u){n(u)}}))};G(s,l=>{i.shouldRender&&l(r)})}_(e,o),$()}function Lr(e,t){Q(t,!0);let n=x(t,"tooltip",3,!1);en.create({id:R(()=>t.id),virtualEl:R(()=>t.virtualEl),ref:t.ref},n());var i=L(),o=k(i);U(o,()=>t.children??et),_(e,i),$()}function Vr(e,t){Q(t,!0);let n=x(t,"side",3,"bottom"),i=x(t,"sideOffset",3,0),o=x(t,"align",3,"center"),s=x(t,"alignOffset",3,0),r=x(t,"arrowPadding",3,0),l=x(t,"avoidCollisions",3,!0),u=x(t,"collisionBoundary",19,()=>[]),f=x(t,"collisionPadding",3,0),h=x(t,"hideWhenDetached",3,!1),c=x(t,"onPlaced",3,()=>{}),p=x(t,"sticky",3,"partial"),g=x(t,"updatePositionStrategy",3,"optimized"),m=x(t,"strategy",3,"fixed"),w=x(t,"dir",3,"ltr"),S=x(t,"style",19,()=>({})),v=x(t,"wrapperId",19,mi),C=x(t,"customAnchor",3,null),P=x(t,"tooltip",3,!1);const y=An.create({side:R(()=>n()),sideOffset:R(()=>i()),align:R(()=>o()),alignOffset:R(()=>s()),id:R(()=>t.id),arrowPadding:R(()=>r()),avoidCollisions:R(()=>l()),collisionBoundary:R(()=>u()),collisionPadding:R(()=>f()),hideWhenDetached:R(()=>h()),onPlaced:R(()=>c()),sticky:R(()=>p()),updatePositionStrategy:R(()=>g()),strategy:R(()=>m()),dir:R(()=>w()),style:R(()=>S()),enabled:R(()=>t.enabled),wrapperId:R(()=>v()),customAnchor:R(()=>C())},P()),T=O(()=>gt(y.wrapperProps,{style:{pointerEvents:"auto"}}));var D=L(),E=k(D);U(E,()=>t.content??et,()=>({props:y.props,wrapperProps:d(T)})),_(e,D),$()}function Kr(e,t){Q(t,!0),ao(()=>{var o;(o=t.onPlaced)==null||o.call(t)});var n=L(),i=k(n);U(i,()=>t.content??et,()=>({props:{},wrapperProps:{}})),_(e,n),$()}function zr(e,t){let n=x(t,"isStatic",3,!1),i=vt(t,["$$slots","$$events","$$legacy","content","isStatic","onPlaced"]);var o=L(),s=k(o);{var r=u=>{Kr(u,{get content(){return t.content},get onPlaced(){return t.onPlaced}})},l=u=>{Vr(u,It({get content(){return t.content},get onPlaced(){return t.onPlaced}},()=>i))};G(s,u=>{n()?u(r):u(l,-1)})}_(e,o)}var Ur=at("<!> <!>",1);function Wi(e,t){Q(t,!0);let n=x(t,"interactOutsideBehavior",3,"close"),i=x(t,"trapFocus",3,!0),o=x(t,"isValidEvent",3,()=>!1),s=x(t,"customAnchor",3,null),r=x(t,"isStatic",3,!1),l=x(t,"tooltip",3,!1),u=x(t,"contentPointerEvents",3,"auto"),f=vt(t,["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled","ref","tooltip","contentPointerEvents"]);zr(e,{get isStatic(){return r()},get id(){return t.id},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return s()},get enabled(){return t.enabled},get tooltip(){return l()},content:(c,p)=>{let g=()=>p==null?void 0:p().props,m=()=>p==null?void 0:p().wrapperProps;var w=Ur(),S=k(w);{var v=y=>{ei(y,{get preventScroll(){return t.preventScroll}})},C=y=>{ei(y,{get preventScroll(){return t.preventScroll}})};G(S,y=>{t.forceMount&&t.enabled?y(v):t.forceMount||y(C,1)})}var P=In(S,2);eo(P,{get onOpenAutoFocus(){return t.onOpenAutoFocus},get onCloseAutoFocus(){return t.onCloseAutoFocus},get loop(){return t.loop},get enabled(){return t.enabled},get trapFocus(){return i()},get forceMount(){return t.forceMount},get ref(){return t.ref},focusScope:(T,D)=>{let E=()=>D==null?void 0:D().props;no(T,{get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get enabled(){return t.enabled},get ref(){return t.ref},children:(W,I)=>{io(W,{get id(){return t.id},get onInteractOutside(){return t.onInteractOutside},get onFocusOutside(){return t.onFocusOutside},get interactOutsideBehavior(){return n()},get isValidEvent(){return o()},get enabled(){return t.enabled},get ref(){return t.ref},children:(z,F)=>{let B=()=>F==null?void 0:F().props;oo(z,{get id(){return t.id},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get enabled(){return t.enabled},get ref(){return t.ref},children:(M,K)=>{var X=L(),q=k(X);{let j=O(()=>({props:gt(f,g(),B(),E(),{style:{pointerEvents:u()}}),wrapperProps:m()}));U(q,()=>t.popper??et,()=>d(j))}_(M,X)},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{focusScope:!0}}),_(c,w)},$$slots:{content:!0}}),$()}function Yr(e,t){let n=x(t,"interactOutsideBehavior",3,"close"),i=x(t,"trapFocus",3,!0),o=x(t,"isValidEvent",3,()=>!1),s=x(t,"customAnchor",3,null),r=x(t,"isStatic",3,!1),l=vt(t,["$$slots","$$events","$$legacy","popper","open","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","ref","shouldRender"]);var u=L(),f=k(u);{var h=c=>{Wi(c,It({get popper(){return t.popper},get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get id(){return t.id},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get preventScroll(){return t.preventScroll},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return s()},get isStatic(){return r()},get enabled(){return t.open},get onInteractOutside(){return t.onInteractOutside},get onCloseAutoFocus(){return t.onCloseAutoFocus},get onOpenAutoFocus(){return t.onOpenAutoFocus},get interactOutsideBehavior(){return n()},get loop(){return t.loop},get trapFocus(){return i()},get isValidEvent(){return o()},get onFocusOutside(){return t.onFocusOutside},forceMount:!1,get ref(){return t.ref}},()=>l))};G(f,c=>{t.shouldRender&&c(h)})}_(e,u)}function Xr(e,t){let n=x(t,"interactOutsideBehavior",3,"close"),i=x(t,"trapFocus",3,!0),o=x(t,"isValidEvent",3,()=>!1),s=x(t,"customAnchor",3,null),r=x(t,"isStatic",3,!1),l=vt(t,["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled"]);Wi(e,It({get popper(){return t.popper},get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get id(){return t.id},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get preventScroll(){return t.preventScroll},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return s()},get isStatic(){return r()},get enabled(){return t.enabled},get onInteractOutside(){return t.onInteractOutside},get onCloseAutoFocus(){return t.onCloseAutoFocus},get onOpenAutoFocus(){return t.onOpenAutoFocus},get interactOutsideBehavior(){return n()},get loop(){return t.loop},get trapFocus(){return i()},get isValidEvent(){return o()},get onFocusOutside(){return t.onFocusOutside}},()=>l,{forceMount:!0}))}var qr=at("<div><div><!></div></div>"),jr=at("<div><div><!></div></div>");function ps(e,t){const n=hn();Q(t,!0);let i=x(t,"id",19,()=>fn(n)),o=x(t,"ref",15,null),s=x(t,"forceMount",3,!1),r=x(t,"side",3,"bottom"),l=x(t,"onInteractOutside",3,ft),u=x(t,"onEscapeKeydown",3,ft),f=x(t,"preventScroll",3,!1),h=vt(t,["$$slots","$$events","$$legacy","id","ref","forceMount","side","onInteractOutside","onEscapeKeydown","children","child","preventScroll","style"]);const c=Tn.create({id:R(()=>i()),ref:R(()=>o(),v=>o(v)),onInteractOutside:R(()=>l()),onEscapeKeydown:R(()=>u())}),p=O(()=>gt(h,c.props));var g=L(),m=k(g);{var w=v=>{Xr(v,It(()=>d(p),()=>c.popperProps,{get ref(){return c.opts.ref},get side(){return r()},get enabled(){return c.root.opts.open.current},get id(){return i()},get preventScroll(){return f()},forceMount:!0,get shouldRender(){return c.shouldRender},popper:(P,y)=>{let T=()=>y==null?void 0:y().props,D=()=>y==null?void 0:y().wrapperProps;const E=O(()=>gt(T(),{style:c.props.style},{style:t.style}));var W=L(),I=k(W);{var H=F=>{var B=L(),M=k(B);{let K=O(()=>({props:d(E),wrapperProps:D(),...c.snippetProps}));U(M,()=>t.child,()=>d(K))}_(F,B)},z=F=>{var B=qr();ht(B,()=>({...D()}));var M=Et(B);ht(M,()=>({...d(E)}));var K=Et(M);U(K,()=>t.children??et),Tt(M),Tt(B),_(F,B)};G(I,F=>{t.child?F(H):F(z,-1)})}_(P,W)},$$slots:{popper:!0}}))},S=v=>{Yr(v,It(()=>d(p),()=>c.popperProps,{get ref(){return c.opts.ref},get side(){return r()},get open(){return c.root.opts.open.current},get id(){return i()},get preventScroll(){return f()},forceMount:!1,get shouldRender(){return c.shouldRender},popper:(P,y)=>{let T=()=>y==null?void 0:y().props,D=()=>y==null?void 0:y().wrapperProps;const E=O(()=>gt(T(),{style:c.props.style},{style:t.style}));var W=L(),I=k(W);{var H=F=>{var B=L(),M=k(B);{let K=O(()=>({props:d(E),wrapperProps:D(),...c.snippetProps}));U(M,()=>t.child,()=>d(K))}_(F,B)},z=F=>{var B=jr();ht(B,()=>({...D()}));var M=Et(B);ht(M,()=>({...d(E)}));var K=Et(M);U(K,()=>t.children??et),Tt(M),Tt(B),_(F,B)};G(I,F=>{t.child?F(H):F(z,-1)})}_(P,W)},$$slots:{popper:!0}}))};G(m,v=>{s()?v(w):s()||v(S,1)})}_(e,g),$()}function Zr(e,t){Q(t,!0);let n=x(t,"mounted",15,!1),i=x(t,"onMountedChange",3,ft);bo(()=>(n(!0),i()(!0),()=>{n(!1),i()(!1)})),$()}var Gr=at("<div><!></div>"),Jr=at("<!> <!>",1);function ms(e,t){const n=hn();Q(t,!0);let i=x(t,"id",19,()=>fn(n)),o=x(t,"ref",15,null),s=x(t,"label",19,()=>t.value),r=x(t,"disabled",3,!1),l=x(t,"onHighlight",3,ft),u=x(t,"onUnhighlight",3,ft),f=vt(t,["$$slots","$$events","$$legacy","id","ref","value","label","disabled","children","child","onHighlight","onUnhighlight"]);const h=Dn.create({id:R(()=>i()),ref:R(()=>o(),v=>o(v)),value:R(()=>t.value),disabled:R(()=>r()),label:R(()=>s()),onHighlight:R(()=>l()),onUnhighlight:R(()=>u())}),c=O(()=>gt(f,h.props));var p=Jr(),g=k(p);{var m=v=>{var C=L(),P=k(C);{let y=O(()=>({props:d(c),...h.snippetProps}));U(P,()=>t.child,()=>d(y))}_(v,C)},w=v=>{var C=Gr();ht(C,()=>({...d(c)}));var P=Et(C);U(P,()=>t.children??et,()=>h.snippetProps),Tt(C),_(v,C)};G(g,v=>{t.child?v(m):v(w,-1)})}var S=In(g,2);Zr(S,{get mounted(){return h.mounted},set mounted(v){h.mounted=v}}),_(e,p),$()}var Qr=at("<div><!></div>");function vs(e,t){const n=hn();Q(t,!0);let i=x(t,"id",19,()=>fn(n)),o=x(t,"ref",15,null),s=vt(t,["$$slots","$$events","$$legacy","id","ref","children","child"]);const r=_n.create({id:R(()=>i()),ref:R(()=>o(),p=>o(p))}),l=O(()=>gt(s,r.props));var u=L(),f=k(u);{var h=p=>{var g=L(),m=k(g);U(m,()=>t.child,()=>({props:d(l)})),_(p,g)},c=p=>{var g=Qr();ht(g,()=>({...d(l)}));var m=Et(g);U(m,()=>t.children??et),Tt(g),_(p,g)};G(f,p=>{t.child?p(h):p(c,-1)})}_(e,u),$()}var $r=at("<!> <!>",1);function ws(e,t){Q(t,!0);let n=x(t,"value",15),i=x(t,"onValueChange",3,ft),o=x(t,"name",3,""),s=x(t,"disabled",3,!1),r=x(t,"open",15,!1),l=x(t,"onOpenChange",3,ft),u=x(t,"onOpenChangeComplete",3,ft),f=x(t,"loop",3,!1),h=x(t,"scrollAlignment",3,"nearest"),c=x(t,"required",3,!1),p=x(t,"items",19,()=>[]),g=x(t,"allowDeselect",3,!1);function m(){n()===void 0&&n(t.type==="single"?"":[])}m(),Pt.pre(()=>n(),()=>{m()});let w=V("");const S=Wr.create({type:t.type,value:R(()=>n(),E=>{n(E),i()(E)}),disabled:R(()=>s()),required:R(()=>c()),open:R(()=>r(),E=>{r(E),l()(E)}),loop:R(()=>f()),scrollAlignment:R(()=>h()),name:R(()=>o()),isCombobox:!1,items:R(()=>p()),allowDeselect:R(()=>g()),inputValue:R(()=>d(w),E=>A(w,E,!0)),onOpenChangeComplete:R(()=>u())});var v=$r(),C=k(v);Dr(C,{children:(E,W)=>{var I=L(),H=k(I);U(H,()=>t.children??et),_(E,I)},$$slots:{default:!0}});var P=In(C,2);{var y=E=>{var W=L(),I=k(W);{var H=F=>{On(F,{get autocomplete(){return t.autocomplete}})},z=F=>{var B=L(),M=k(B);lo(M,16,()=>S.opts.value.current,K=>K,(K,X)=>{On(K,{get value(){return X},get autocomplete(){return t.autocomplete}})}),_(F,B)};G(I,F=>{S.opts.value.current.length===0?F(H):F(z,-1)})}_(E,W)},T=O(()=>Array.isArray(S.opts.value.current)),D=E=>{On(E,{get autocomplete(){return t.autocomplete},get value(){return S.opts.value.current},set value(W){S.opts.value.current=W}})};G(P,E=>{d(T)?E(y):E(D,-1)})}_(e,v),$()}var ts=at("<button><!></button>");function ys(e,t){const n=hn();Q(t,!0);let i=x(t,"id",19,()=>fn(n)),o=x(t,"ref",15,null),s=x(t,"type",3,"button"),r=vt(t,["$$slots","$$events","$$legacy","id","ref","child","children","type"]);const l=Rn.create({id:R(()=>i()),ref:R(()=>o(),c=>o(c))}),u=O(()=>gt(r,l.props,{type:s()}));var f=L(),h=k(f);uo(h,()=>Lr,(c,p)=>{p(c,{get id(){return i()},get ref(){return l.opts.ref},children:(g,m)=>{var w=L(),S=k(w);{var v=P=>{var y=L(),T=k(y);U(T,()=>t.child,()=>({props:d(u)})),_(P,y)},C=P=>{var y=ts();ht(y,()=>({...d(u)}));var T=Et(y);U(T,()=>t.children??et),Tt(y),_(P,y)};G(S,P=>{t.child?P(v):P(C,-1)})}_(g,w)},$$slots:{default:!0}})}),_(e,f),$()}function bs(e,t){const n=so(t,["children","$$slots","$$events","$$legacy"]);/**
|
|
2
|
+
* @license lucide-svelte v0.460.1 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/const i=[["path",{d:"m6 9 6 6 6-6"}]];ro(e,It({name:"chevron-down"},()=>n,{get iconNode(){return i},children:(o,s)=>{var r=L(),l=k(r);go(l,t,"default",{}),_(o,r)},$$slots:{default:!0}}))}export{bs as C,Lr as F,Xr as P,ws as S,ys as a,ps as b,vs as c,ms as d,Yr as e,Dr as f,Pr as g};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{s as c,g as l}from"./FDS7fbwH.js";import{ah as o,ai as b,aj as f,F as p,k as d,a5 as _}from"./BsQ08Wq_.js";let s=!1,i=Symbol();function y(e,n,r){const u=r[n]??(r[n]={store:null,source:p(void 0),unsubscribe:f});if(u.store!==e&&!(i in r))if(u.unsubscribe(),u.store=e??null,e==null)u.source.v=void 0,u.unsubscribe=f;else{var t=!0;u.unsubscribe=c(e,a=>{t?u.source.v=a:_(u.source,a)}),t=!1}return e&&i in r?l(e):d(u.source)}function m(){const e={};function n(){o(()=>{for(var r in e)e[r].unsubscribe();b(e,i,{enumerable:!1,value:!0})})}return[e,n]}function N(e){var n=s;try{return s=!1,[e(),s]}finally{s=n}}export{y as a,N as c,m as s};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var Ie=Object.defineProperty;var he=t=>{throw TypeError(t)};var Me=(t,e,r)=>e in t?Ie(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var q=(t,e,r)=>Me(t,typeof e!="symbol"?e+"":e,r),re=(t,e,r)=>e.has(t)||he("Cannot "+r);var s=(t,e,r)=>(re(t,e,"read from private field"),r?r.call(t):e.get(t)),l=(t,e,r)=>e.has(t)?he("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),a=(t,e,r,i)=>(re(t,e,"write to private field"),i?i.call(t,r):e.set(t,r),r),p=(t,e,r)=>(re(t,e,"access private method"),r);import{aN as Fe,k as Ee,j as Ye,u as Ce,aO as de,S as j,G as me,g as M,h as D,Y as V,aP as _e,b as Pe,a as Ve,m as We,aQ as pe,v as I,p as Te,L as se,i as ve,P as xe,aR as ge,aS as Be,aT as He,aU as je,a8 as J,aV as Z,aW as ye,aX as $e,aY as qe,aZ as we,W as Se,o as ze,Q as ie,c as K,ay as Ue,s as Ge,a_ as z,E as Qe,al as Xe,a$ as Je,b0 as Ze,ah as Ke,b1 as et,ai as tt,b2 as ne,R as rt,C as Re,H as st,T as it,b3 as ae,e as U,b4 as nt,O as at,b5 as ot,A as ft,at as ut,n as ct,b6 as lt,au as ht}from"./BsQ08Wq_.js";import{b as dt}from"./DIeahUKq.js";function _t(t){let e=0,r=me(0),i;return()=>{Fe()&&(Ee(r),Ye(()=>(e===0&&(i=Ce(()=>t(()=>de(r)))),e+=1,()=>{j(()=>{e-=1,e===0&&(i==null||i(),i=void 0,de(r))})})))}}var pt=Qe|Xe;function vt(t,e,r,i){new gt(t,e,r,i)}var E,$,w,Y,v,S,m,T,R,C,N,W,x,B,A,ee,u,Ae,ke,Ne,oe,Q,X,fe;class gt{constructor(e,r,i,o){l(this,u);q(this,"parent");q(this,"is_pending",!1);q(this,"transform_error");l(this,E);l(this,$,D?M:null);l(this,w);l(this,Y);l(this,v);l(this,S,null);l(this,m,null);l(this,T,null);l(this,R,null);l(this,C,0);l(this,N,0);l(this,W,!1);l(this,x,new Set);l(this,B,new Set);l(this,A,null);l(this,ee,_t(()=>(a(this,A,me(s(this,C))),()=>{a(this,A,null)})));var n;a(this,E,e),a(this,w,r),a(this,Y,f=>{var d=V;d.b=this,d.f|=_e,i(f)}),this.parent=V.b,this.transform_error=o??((n=this.parent)==null?void 0:n.transform_error)??(f=>f),a(this,v,Pe(()=>{if(D){const f=s(this,$);Ve();const d=f.data===We;if(f.data.startsWith(pe)){const h=JSON.parse(f.data.slice(pe.length));p(this,u,ke).call(this,h)}else d?p(this,u,Ne).call(this):p(this,u,Ae).call(this)}else p(this,u,oe).call(this)},pt)),D&&a(this,E,M)}defer_effect(e){je(e,s(this,x),s(this,B))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!s(this,w).pending}update_pending_count(e,r){p(this,u,fe).call(this,e,r),a(this,C,s(this,C)+e),!(!s(this,A)||s(this,W))&&(a(this,W,!0),j(()=>{a(this,W,!1),s(this,A)&&ze(s(this,A),s(this,C))}))}get_effect_pending(){return s(this,ee).call(this),Ee(s(this,A))}error(e){var r=s(this,w).onerror;let i=s(this,w).failed;if(!r&&!i)throw e;s(this,S)&&(ie(s(this,S)),a(this,S,null)),s(this,m)&&(ie(s(this,m)),a(this,m,null)),s(this,T)&&(ie(s(this,T)),a(this,T,null)),D&&(K(s(this,$)),Ue(),K(Ge()));var o=!1,n=!1;const f=()=>{if(o){Ze();return}o=!0,n&&Je(),s(this,T)!==null&&se(s(this,T),()=>{a(this,T,null)}),p(this,u,X).call(this,()=>{p(this,u,oe).call(this)})},d=c=>{try{n=!0,r==null||r(c,f),n=!1}catch(h){z(h,s(this,v)&&s(this,v).parent)}i&&a(this,T,p(this,u,X).call(this,()=>{try{return I(()=>{var h=V;h.b=this,h.f|=_e,i(s(this,E),()=>c,()=>f)})}catch(h){return z(h,s(this,v).parent),null}}))};j(()=>{var c;try{c=this.transform_error(e)}catch(h){z(h,s(this,v)&&s(this,v).parent);return}c!==null&&typeof c=="object"&&typeof c.then=="function"?c.then(d,h=>z(h,s(this,v)&&s(this,v).parent)):d(c)})}}E=new WeakMap,$=new WeakMap,w=new WeakMap,Y=new WeakMap,v=new WeakMap,S=new WeakMap,m=new WeakMap,T=new WeakMap,R=new WeakMap,C=new WeakMap,N=new WeakMap,W=new WeakMap,x=new WeakMap,B=new WeakMap,A=new WeakMap,ee=new WeakMap,u=new WeakSet,Ae=function(){try{a(this,S,I(()=>s(this,Y).call(this,s(this,E))))}catch(e){this.error(e)}},ke=function(e){const r=s(this,w).failed;r&&a(this,T,I(()=>{r(s(this,E),()=>e,()=>()=>{})}))},Ne=function(){const e=s(this,w).pending;if(e){this.is_pending=!0,a(this,m,I(()=>e(s(this,E))));var r=ve;j(()=>{var i=a(this,R,document.createDocumentFragment()),o=Te();i.append(o),a(this,S,p(this,u,X).call(this,()=>I(()=>s(this,Y).call(this,o)))),s(this,N)===0&&(s(this,E).before(i),a(this,R,null),se(s(this,m),()=>{a(this,m,null)}),p(this,u,Q).call(this,r))})}},oe=function(){var e=ve;try{if(this.is_pending=this.has_pending_snippet(),a(this,N,0),a(this,C,0),a(this,S,I(()=>{s(this,Y).call(this,s(this,E))})),s(this,N)>0){var r=a(this,R,document.createDocumentFragment());xe(s(this,S),r);const i=s(this,w).pending;a(this,m,I(()=>i(s(this,E))))}else p(this,u,Q).call(this,e)}catch(i){this.error(i)}},Q=function(e){this.is_pending=!1;for(const r of s(this,x))ge(r,Be),e.schedule(r);for(const r of s(this,B))ge(r,He),e.schedule(r);s(this,x).clear(),s(this,B).clear()},X=function(e){var r=V,i=we,o=Se;J(s(this,v)),Z(s(this,v)),ye(s(this,v).ctx);try{return $e.ensure(),e()}catch(n){return qe(n),null}finally{J(r),Z(i),ye(o)}},fe=function(e,r){var i;if(!this.has_pending_snippet()){this.parent&&p(i=this.parent,u,fe).call(i,e,r);return}a(this,N,s(this,N)+e),s(this,N)===0&&(p(this,u,Q).call(this,r),s(this,m)&&se(s(this,m),()=>{a(this,m,null)}),s(this,R)&&(s(this,E).before(s(this,R)),a(this,R,null)))};function kt(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}const yt=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Nt(t){return yt.includes(t)}const bt={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function Dt(t){return t=t.toLowerCase(),bt[t]??t}const Et=["touchstart","touchmove"];function mt(t){return Et.includes(t)}const Tt=["textarea","script","style","title"];function Ot(t){return Tt.includes(t)}const F=Symbol("events"),De=new Set,ue=new Set;function Lt(t){if(!D)return;t.removeAttribute("onload"),t.removeAttribute("onerror");const e=t.__e;e!==void 0&&(t.__e=void 0,queueMicrotask(()=>{t.isConnected&&t.dispatchEvent(e)}))}function Oe(t,e,r,i={}){function o(n){if(i.capture||ce.call(e,n),!n.cancelBubble)return et(()=>r==null?void 0:r.call(this,n))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?j(()=>{e.addEventListener(t,o,i)}):e.addEventListener(t,o,i),o}function It(t,e,r,i={}){var o=Oe(e,t,r,i);return()=>{t.removeEventListener(e,o,i)}}function Mt(t,e,r,i,o){var n={capture:i,passive:o},f=Oe(t,e,r,n);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&Ke(()=>{e.removeEventListener(t,f,n)})}function Ft(t,e,r){(e[F]??(e[F]={}))[t]=r}function Yt(t){for(var e=0;e<t.length;e++)De.add(t[e]);for(var r of ue)r(t)}let be=null;function ce(t){var O,b;var e=this,r=e.ownerDocument,i=t.type,o=((O=t.composedPath)==null?void 0:O.call(t))||[],n=o[0]||t.target;be=t;var f=0,d=be===t&&t[F];if(d){var c=o.indexOf(d);if(c!==-1&&(e===document||e===window)){t[F]=e;return}var h=o.indexOf(e);if(h===-1)return;c<=h&&(f=c)}if(n=o[f]||t.target,n!==e){tt(t,"currentTarget",{configurable:!0,get(){return n||r}});var P=we,H=V;Z(null),J(null);try{for(var k,g=[];n!==null;){var _=n.assignedSlot||n.parentNode||n.host||null;try{var y=(b=n[F])==null?void 0:b[i];y!=null&&(!n.disabled||t.target===n)&&y.call(n,t)}catch(L){k?g.push(L):k=L}if(t.cancelBubble||_===e||_===null)break;n=_}if(k){for(let L of g)queueMicrotask(()=>{throw L});throw k}}finally{t[F]=e,delete t.currentTarget,Z(P),J(H)}}}function Ct(t,e){var r=e==null?"":typeof e=="object"?`${e}`:e;r!==(t.__t??(t.__t=t.nodeValue))&&(t.__t=r,t.nodeValue=`${r}`)}function wt(t,e){return Le(t,e)}function Pt(t,e){ne(),e.intro=e.intro??!1;const r=e.target,i=D,o=M;try{for(var n=rt(r);n&&(n.nodeType!==Re||n.data!==st);)n=it(n);if(!n)throw ae;U(!0),K(n);const f=Le(t,{...e,anchor:n});return U(!1),f}catch(f){if(f instanceof Error&&f.message.split(`
|
|
2
|
+
`).some(d=>d.startsWith("https://svelte.dev/e/")))throw f;return f!==ae&&console.warn("Failed to hydrate: ",f),e.recover===!1&&nt(),ne(),at(r),U(!1),wt(t,e)}finally{U(i),K(o)}}const G=new Map;function Le(t,{target:e,anchor:r,props:i={},events:o,context:n,intro:f=!0,transformError:d}){ne();var c=void 0,h=ot(()=>{var P=r??e.appendChild(Te());vt(P,{pending:()=>{}},g=>{ut({});var _=Se;if(n&&(_.c=n),o&&(i.$$events=o),D&&dt(g,null),c=t(g,i)||{},D&&(V.nodes.end=M,M===null||M.nodeType!==Re||M.data!==ct))throw lt(),ae;ht()},d);var H=new Set,k=g=>{for(var _=0;_<g.length;_++){var y=g[_];if(!H.has(y)){H.add(y);var O=mt(y);for(const te of[e,document]){var b=G.get(te);b===void 0&&(b=new Map,G.set(te,b));var L=b.get(y);L===void 0?(te.addEventListener(y,ce,{passive:O}),b.set(y,1)):b.set(y,L+1)}}}};return k(ft(De)),ue.add(k),()=>{var O;for(var g of H)for(const b of[e,document]){var _=G.get(b),y=_.get(g);--y==0?(b.removeEventListener(g,ce),_.delete(g),_.size===0&&G.delete(b)):_.set(g,y)}ue.delete(k),P!==r&&((O=P.parentNode)==null||O.removeChild(P))}});return le.set(c,h),c}let le=new WeakMap;function Vt(t,e){const r=le.get(t);return r?(le.delete(t),r(e)):Promise.resolve()}export{Ft as a,Nt as b,Oe as c,Yt as d,Mt as e,_t as f,Ot as g,Pt as h,kt as i,wt as m,Dt as n,It as o,Lt as r,Ct as s,Vt as u};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as q,a as n,f as h,t as xt}from"./
|
|
1
|
+
import{c as q,a as n,f as h,t as xt}from"./DIeahUKq.js";import{f as C,at as mt,b8 as ie,a4 as at,an as Ge,a5 as L,av as c,ax as i,aw as A,k as e,az as w,au as gt,aA as k,u as tt,ay as kt}from"./BsQ08Wq_.js";import{d as _t,a as ye,s as O,e as ot,r as it}from"./BK0ygNWX.js";import{i as D}from"./rNwPv4DZ.js";import{e as st,i as $t}from"./B553hBXT.js";import{c as Ne}from"./C9wTDiHH.js";import{b as We,s as S,e as rt,a as Xe}from"./WW6La7Nt.js";import{l as be,s as ze,p as T}from"./D8G961Hm.js";import{s as Oe}from"./4TuV_psf.js";import{w as pt}from"./FDS7fbwH.js";import{I as xe,P as Pt}from"./pd_p3yYy.js";import{a as wt,b as St,c as It,d as Mt,D as Dt}from"./B0czyjwj.js";import"./CEWi_rGa.js";import{s as ke}from"./Cc7aBSsN.js";function lt(f,r){const d=be(r,["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.
|
|
@@ -33,4 +33,4 @@ import{c as q,a as n,f as h,t as xt}from"./CS53ooo0.js";import{f as C,at as mt,b
|
|
|
33
33
|
*
|
|
34
34
|
* This source code is licensed under the ISC license.
|
|
35
35
|
* See the LICENSE file in the root directory of this source tree.
|
|
36
|
-
*/const o=[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z"}],["path",{d:"M20 3v4"}],["path",{d:"M22 5h-4"}],["path",{d:"M4 17v2"}],["path",{d:"M5 18H3"}]];xe(f,ze({name:"sparkles"},()=>d,{get iconNode(){return o},children:(z,F)=>{var p=q(),v=C(p);ke(v,r,"default",{}),n(z,p)},$$slots:{default:!0}}))}const nt=pt({});function dr(f,r){nt.update(d=>({...d,[f]:r}))}function vr(f){nt.update(r=>{const d={...r};return delete d[f],d})}var ur=h('<span class="source-sheet-meta-icon svelte-ypseth"><!></span>'),fr=h('<span class="source-sheet-proxy svelte-ypseth" aria-label="已配置代理"><!></span>'),hr=h('<div class="source-sheet-state svelte-ypseth">加载中…</div>'),mr=h('<div class="source-sheet-state err svelte-ypseth"> </div>'),gr=h('<div class="source-sheet-state svelte-ypseth">暂无条目</div>'),_r=h('<div class="source-feed-cards svelte-ypseth"></div>'),pr=h('<header class="source-sheet-header svelte-ypseth"><div class="source-sheet-title-wrap svelte-ypseth"><div class="source-sheet-title-row svelte-ypseth"><div class="source-sheet-title-cluster svelte-ypseth"><!> <div class="source-sheet-header-icons svelte-ypseth"><!> <!></div></div></div> <p class="source-sheet-sub source-sheet-sub-desc svelte-ypseth"> </p></div> <!></header> <div class="source-sheet-body svelte-ypseth"><!></div>',1),yr=h("<!> <!>",1),br=h('<span class="source-sheet-meta-icon svelte-ypseth"><!></span>'),zr=h('<span class="source-sheet-proxy svelte-ypseth" aria-label="已配置代理"><!></span>'),xr=h('<div class="source-sheet-state svelte-ypseth">加载中…</div>'),kr=h('<div class="source-sheet-state err svelte-ypseth"> </div>'),$r=h('<div class="source-sheet-state svelte-ypseth">暂无条目</div>'),Pr=h('<div class="source-feed-cards svelte-ypseth"></div>'),wr=h('<header class="source-sheet-header source-sheet-header-inline svelte-ypseth"><div class="source-sheet-title-wrap svelte-ypseth"><div class="source-sheet-title-row svelte-ypseth"><div class="source-sheet-title-cluster svelte-ypseth"><h2 class="source-sheet-title svelte-ypseth"> </h2> <div class="source-sheet-header-icons svelte-ypseth"><!> <!> <button type="button"><!></button></div></div></div> <p class="source-sheet-sub source-sheet-sub-desc svelte-ypseth"> </p></div></header> <div class="source-sheet-body svelte-ypseth"><!></div>',1),Sr=h('<div class="source-sheet-inline-empty svelte-ypseth"><p class="source-sheet-inline-empty-title svelte-ypseth">信源条目</p> <p class="source-sheet-inline-empty-hint svelte-ypseth">在左侧列表中点击某一信源,在此查看已拉取的条目。</p></div>'),Ir=h('<aside class="source-feed-panel-inline svelte-ypseth" aria-label="信源条目列表"><!></aside>');function Jr(f,r){mt(r,!0);let d=T(r,"open",3,!1),o=T(r,"sourceRef",3,""),z=T(r,"sourceLabel",3,""),F=T(r,"sourceDescription",3,""),p=T(r,"sourceProxy",3,""),v=T(r,"sourceParseHint",3,null),G=T(r,"variant",3,"overlay"),he=T(r,"onOpenChange",3,()=>{}),R=ie(at([])),J=ie(!1),U=ie(""),Y=ie(0),te=ie(null),K=ie(at({}));Ge(()=>{const x=nt.subscribe(y=>{L(K,y,!0)});return()=>x()});async function Q(){const x=o().trim();if(!x){L(R,[],!0);return}L(Y,e(Y)+1);const y=e(Y);L(J,!0),L(U,"");try{const $=new URLSearchParams;$.set("ref",x),$.set("limit","100"),$.set("offset","0");const N=await Xe("/api/items?"+$.toString());if(y!==e(Y))return;if(!N.ok)throw new Error(await N.text().catch(()=>`HTTP ${N.status}`));const j=await N.json();L(R,Array.isArray(j.items)?j.items:[],!0)}catch($){if(y!==e(Y))return;L(U,$ instanceof Error?$.message:String($),!0),L(R,[],!0)}finally{y===e(Y)&&L(J,!1)}}Ge(()=>{if(d()&&o()){if(!o().trim()){L(R,[],!0);return}tt(()=>void Q())}else d()||tt(()=>{L(Y,e(Y)+1),L(R,[],!0),L(U,""),L(J,!1)})});function le(x){const y=x.author;if(y!=null&&y.length)return y.join(", ")}function me(x){Ye(x)}async function Ye(x){const y=x.trim();if(!(!y||e(te))){L(te,y,!0);try{const $=await Xe("/api/items/"+encodeURIComponent(y),{method:"DELETE"});if(!$.ok){const N=await $.text().catch(()=>"");throw new Error(N.trim()||`HTTP ${$.status}`)}L(R,e(R).filter(N=>N.id!==y),!0),Oe("已删除该条目","success")}catch($){Oe($ instanceof Error?$.message:String($),"error")}finally{L(te,null)}}}const Be=k(()=>F().trim()?F().trim():"—"),Je=k(()=>[z(),o()].filter(Boolean).join(" · ")||void 0);async function Ke(x){for(let y=0;y<120;y++){const $=await Xe(`/api/tasks/${x}`);if(!$.ok)return{ok:!1,error:"轮询失败"};const N=await $.json();if(N.status==="done")return{ok:!0};if(N.status==="error")return{ok:!1,error:N.error??"拉取失败"};await new Promise(j=>setTimeout(j,800))}return{ok:!1,error:"拉取超时"}}async function $e(x,y){y==null||y.preventDefault(),y==null||y.stopPropagation();const $=x.trim();if(!(!$||$ in e(K)))try{const N=await Xe("/api/tasks",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({type:"source-pull",ref:$})}),j=await N.json();if(!N.ok||!j.taskId){Oe(j.error??"拉取失败","error");return}dr($,j.taskId);const V=await Ke(j.taskId);V.ok?await Q():Oe(V.error??"拉取失败","error")}catch(N){Oe(N instanceof Error?N.message:"拉取失败","error")}finally{vr($)}}const re=k(()=>G()==="inline"&&d()&&o().trim()!==""&&o()in e(K));let Pe=!1;Ge(()=>{const x=e(re);Pe&&!x&&d()&&G()==="inline"&&o().trim()&&tt(()=>void Q()),Pe=x});function ae(x){switch(x){case"rss":return"标准 RSS/Atom/JSON Feed(内置 __rss__)";case"plugin":return"Site 插件(listUrlPattern)或语鲸协议(lingowhale://)";case"llm":return"通用网页列表:LLM 解析(generic)";case"email":return"内置 IMAP 邮件插件(__email__)";default:return""}}function Te(x){switch(x){case"rss":return"解析方式:RSS/Atom";case"plugin":return"解析方式:插件";case"llm":return"解析方式:LLM";case"email":return"解析方式:邮箱";default:return"解析方式"}}var Re=q(),He=C(Re);{var Qe=x=>{var y=q(),$=C(y);Ne($,()=>Dt,(N,j)=>{j(N,{get open(){return d()},onOpenChange:V=>he()(V),children:(V,se)=>{var Z=q(),W=C(Z);Ne(W,()=>Pt,(ge,ne)=>{ne(ge,{children:(we,_e)=>{var Se=yr(),ce=C(Se);Ne(ce,()=>wt,(oe,ve)=>{ve(oe,{class:"source-sheet-overlay"})});var de=A(ce,2);Ne(de,()=>St,(oe,ve)=>{ve(oe,{class:"source-sheet-panel","aria-describedby":void 0,children:(Ce,qe)=>{var X=pr(),ue=C(X),pe=c(ue),ee=c(pe),Ie=c(ee),fe=c(Ie);Ne(fe,()=>It,(g,b)=>{b(g,{class:"source-sheet-title",get title(){return e(Je)},children:(E,H)=>{kt();var Le=xt();w(()=>O(Le,z()||o()||"信源条目")),n(E,Le)},$$slots:{default:!0}})});var Me=A(fe,2),De=c(Me);{var Fe=g=>{var b=ur(),E=c(b);{var H=B=>{lt(B,{size:16,class:"source-sheet-meta-icon-svg"})},Le=B=>{ct(B,{size:16,class:"source-sheet-meta-icon-svg"})},Ve=B=>{ht(B,{size:16,class:"source-sheet-meta-icon-svg"})},Ze=B=>{ft(B,{size:16,class:"source-sheet-meta-icon-svg"})};D(E,B=>{v()==="rss"?B(H):v()==="plugin"?B(Le,1):v()==="llm"?B(Ve,2):v()==="email"&&B(Ze,3)})}i(b),w((B,et)=>{S(b,"title",`解析方式:${B??""}`),S(b,"aria-label",et)},[()=>ae(v()),()=>Te(v())]),n(g,b)};D(De,g=>{v()&&g(Fe)})}var Ue=A(De,2);{var je=g=>{var b=fr(),E=c(b);ut(E,{size:16,class:"source-sheet-proxy-globe","aria-hidden":"true"}),i(b),w(H=>S(b,"title",`代理:${H??""}`),[()=>p().trim()]),n(g,b)},I=k(()=>p().trim());D(Ue,g=>{e(I)&&g(je)})}i(Me),i(Ie),i(ee);var t=A(ee,2),a=c(t,!0);i(t),i(pe);var l=A(pe,2);Ne(l,()=>Mt,(g,b)=>{b(g,{class:"source-sheet-close","aria-label":"关闭",children:(E,H)=>{Lt(E,{size:18})},$$slots:{default:!0}})}),i(ue);var P=A(ue,2),M=c(P);{var u=g=>{var b=hr();n(g,b)},s=g=>{var b=mr(),E=c(b,!0);i(b),w(()=>O(E,e(U))),n(g,b)},m=g=>{var b=gr();n(g,b)},_=g=>{var b=_r();st(b,21,()=>e(R),E=>E.id,(E,H)=>{{let Le=k(()=>{var Ee;return((Ee=e(H).title)==null?void 0:Ee.trim())||""}),Ve=k(()=>e(H).summary??void 0),Ze=k(()=>e(H).content??void 0),B=k(()=>le(e(H))),et=k(()=>e(H).pub_date||e(H).fetched_at),bt=k(()=>o().trim()),zt=k(()=>{var Ee;return(Ee=e(H).image_url)!=null&&Ee.trim()?e(H).image_url:void 0});vt(E,{get title(){return e(Le)},get link(){return e(H).url},get summary(){return e(Ve)},get content(){return e(Ze)},get author(){return e(B)},get pubDate(){return e(et)},get sourceRef(){return e(bt)},get coverImg(){return e(zt)},get guid(){return e(H).id},get rawItem(){return e(H)},onDelete:me})}}),i(b),n(g,b)};D(M,g=>{e(J)&&e(R).length===0?g(u):e(U)?g(s,1):e(R).length===0?g(m,2):g(_,-1)})}i(P),w(()=>{S(t,"title",o()),O(a,e(Be))}),n(Ce,X)},$$slots:{default:!0}})}),n(we,Se)},$$slots:{default:!0}})}),n(V,Z)},$$slots:{default:!0}})}),n(x,y)},Ae=x=>{var y=Ir(),$=c(y);{var N=se=>{var Z=wr(),W=C(Z),ge=c(W),ne=c(ge),we=c(ne),_e=c(we),Se=c(_e,!0);i(_e);var ce=A(_e,2),de=c(ce);{var oe=I=>{var t=br(),a=c(t);{var l=s=>{lt(s,{size:16,class:"source-sheet-meta-icon-svg"})},P=s=>{ct(s,{size:16,class:"source-sheet-meta-icon-svg"})},M=s=>{ht(s,{size:16,class:"source-sheet-meta-icon-svg"})},u=s=>{ft(s,{size:16,class:"source-sheet-meta-icon-svg"})};D(a,s=>{v()==="rss"?s(l):v()==="plugin"?s(P,1):v()==="llm"?s(M,2):v()==="email"&&s(u,3)})}i(t),w((s,m)=>{S(t,"title",`解析方式:${s??""}`),S(t,"aria-label",m)},[()=>ae(v()),()=>Te(v())]),n(I,t)};D(de,I=>{v()&&I(oe)})}var ve=A(de,2);{var Ce=I=>{var t=zr(),a=c(t);ut(a,{size:16,class:"source-sheet-proxy-globe","aria-hidden":"true"}),i(t),w(l=>S(t,"title",`代理:${l??""}`),[()=>p().trim()]),n(I,t)},qe=k(()=>p().trim());D(ve,I=>{e(qe)&&I(Ce)})}var X=A(ve,2);let ue;var pe=c(X);cr(pe,{size:16}),i(X),i(ce),i(we),i(ne);var ee=A(ne,2),Ie=c(ee,!0);i(ee),i(ge),i(W);var fe=A(W,2),Me=c(fe);{var De=I=>{var t=xr();n(I,t)},Fe=I=>{var t=kr(),a=c(t,!0);i(t),w(()=>O(a,e(U))),n(I,t)},Ue=I=>{var t=$r();n(I,t)},je=I=>{var t=Pr();st(t,21,()=>e(R),a=>a.id,(a,l)=>{{let P=k(()=>{var b;return((b=e(l).title)==null?void 0:b.trim())||""}),M=k(()=>e(l).summary??void 0),u=k(()=>e(l).content??void 0),s=k(()=>le(e(l))),m=k(()=>e(l).pub_date||e(l).fetched_at),_=k(()=>o().trim()),g=k(()=>{var b;return(b=e(l).image_url)!=null&&b.trim()?e(l).image_url:void 0});vt(a,{get title(){return e(P)},get link(){return e(l).url},get summary(){return e(M)},get content(){return e(u)},get author(){return e(s)},get pubDate(){return e(m)},get sourceRef(){return e(_)},get coverImg(){return e(g)},get guid(){return e(l).id},get rawItem(){return e(l)},onDelete:me})}}),i(t),n(I,t)};D(Me,I=>{e(J)&&e(R).length===0?I(De):e(U)?I(Fe,1):e(R).length===0?I(Ue,2):I(je,-1)})}i(fe),w(()=>{S(_e,"title",e(Je)),O(Se,z()||o()||"信源条目"),ue=We(X,1,"source-sheet-pull-status svelte-ypseth",null,ue,{pulling:e(re)}),S(X,"title",e(re)?"拉取中…":"立即拉取"),S(X,"aria-label",e(re)?"拉取中":"立即拉取"),S(X,"aria-busy",e(re)),S(ee,"title",o()),O(Ie,e(Be))}),ye("click",X,I=>$e(o(),I)),n(se,Z)},j=k(()=>d()&&o().trim()),V=se=>{var Z=Sr();n(se,Z)};D($,se=>{e(j)?se(N):se(V,-1)})}i(y),n(x,y)};D(He,x=>{G()==="overlay"?x(Qe):x(Ae,-1)})}n(f,Re),gt()}_t(["click"]);const qr=pt(null);export{ft as M,ct as P,lt as R,Jr as S,ht as a,cr as b,vr as c,qr as h,nt as r,dr as s};
|
|
36
|
+
*/const o=[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z"}],["path",{d:"M20 3v4"}],["path",{d:"M22 5h-4"}],["path",{d:"M4 17v2"}],["path",{d:"M5 18H3"}]];xe(f,ze({name:"sparkles"},()=>d,{get iconNode(){return o},children:(z,F)=>{var p=q(),v=C(p);ke(v,r,"default",{}),n(z,p)},$$slots:{default:!0}}))}const nt=pt({});function dr(f,r){nt.update(d=>({...d,[f]:r}))}function vr(f){nt.update(r=>{const d={...r};return delete d[f],d})}var ur=h('<span class="source-sheet-meta-icon svelte-ypseth"><!></span>'),fr=h('<span class="source-sheet-proxy svelte-ypseth" aria-label="已配置代理"><!></span>'),hr=h('<div class="source-sheet-state svelte-ypseth">加载中…</div>'),mr=h('<div class="source-sheet-state err svelte-ypseth"> </div>'),gr=h('<div class="source-sheet-state svelte-ypseth">暂无条目</div>'),_r=h('<div class="source-feed-cards svelte-ypseth"></div>'),pr=h('<header class="source-sheet-header svelte-ypseth"><div class="source-sheet-title-wrap svelte-ypseth"><div class="source-sheet-title-row svelte-ypseth"><div class="source-sheet-title-cluster svelte-ypseth"><!> <div class="source-sheet-header-icons svelte-ypseth"><!> <!></div></div></div> <p class="source-sheet-sub source-sheet-sub-desc svelte-ypseth"> </p></div> <!></header> <div class="source-sheet-body svelte-ypseth"><!></div>',1),yr=h("<!> <!>",1),br=h('<span class="source-sheet-meta-icon svelte-ypseth"><!></span>'),zr=h('<span class="source-sheet-proxy svelte-ypseth" aria-label="已配置代理"><!></span>'),xr=h('<div class="source-sheet-state svelte-ypseth">加载中…</div>'),kr=h('<div class="source-sheet-state err svelte-ypseth"> </div>'),$r=h('<div class="source-sheet-state svelte-ypseth">暂无条目</div>'),Pr=h('<div class="source-feed-cards svelte-ypseth"></div>'),wr=h('<header class="source-sheet-header source-sheet-header-inline svelte-ypseth"><div class="source-sheet-title-wrap svelte-ypseth"><div class="source-sheet-title-row svelte-ypseth"><div class="source-sheet-title-cluster svelte-ypseth"><h2 class="source-sheet-title svelte-ypseth"> </h2> <div class="source-sheet-header-icons svelte-ypseth"><!> <!> <button type="button"><!></button></div></div></div> <p class="source-sheet-sub source-sheet-sub-desc svelte-ypseth"> </p></div></header> <div class="source-sheet-body svelte-ypseth"><!></div>',1),Sr=h('<div class="source-sheet-inline-empty svelte-ypseth"><p class="source-sheet-inline-empty-title svelte-ypseth">信源条目</p> <p class="source-sheet-inline-empty-hint svelte-ypseth">在左侧列表中点击某一信源,在此查看已拉取的条目。</p></div>'),Ir=h('<aside class="source-feed-panel-inline svelte-ypseth" aria-label="信源条目列表"><!></aside>');function Br(f,r){mt(r,!0);let d=T(r,"open",3,!1),o=T(r,"sourceRef",3,""),z=T(r,"sourceLabel",3,""),F=T(r,"sourceDescription",3,""),p=T(r,"sourceProxy",3,""),v=T(r,"sourceParseHint",3,null),G=T(r,"variant",3,"overlay"),he=T(r,"onOpenChange",3,()=>{}),R=ie(at([])),J=ie(!1),U=ie(""),Y=ie(0),te=ie(null),K=ie(at({}));Ge(()=>{const x=nt.subscribe(y=>{L(K,y,!0)});return()=>x()});async function Q(){const x=o().trim();if(!x){L(R,[],!0);return}L(Y,e(Y)+1);const y=e(Y);L(J,!0),L(U,"");try{const $=new URLSearchParams;$.set("ref",x),$.set("limit","100"),$.set("offset","0");const N=await Xe("/api/items?"+$.toString());if(y!==e(Y))return;if(!N.ok)throw new Error(await N.text().catch(()=>`HTTP ${N.status}`));const j=await N.json();L(R,Array.isArray(j.items)?j.items:[],!0)}catch($){if(y!==e(Y))return;L(U,$ instanceof Error?$.message:String($),!0),L(R,[],!0)}finally{y===e(Y)&&L(J,!1)}}Ge(()=>{if(d()&&o()){if(!o().trim()){L(R,[],!0);return}tt(()=>void Q())}else d()||tt(()=>{L(Y,e(Y)+1),L(R,[],!0),L(U,""),L(J,!1)})});function le(x){const y=x.author;if(y!=null&&y.length)return y.join(", ")}function me(x){Ye(x)}async function Ye(x){const y=x.trim();if(!(!y||e(te))){L(te,y,!0);try{const $=await Xe("/api/items/"+encodeURIComponent(y),{method:"DELETE"});if(!$.ok){const N=await $.text().catch(()=>"");throw new Error(N.trim()||`HTTP ${$.status}`)}L(R,e(R).filter(N=>N.id!==y),!0),Oe("已删除该条目","success")}catch($){Oe($ instanceof Error?$.message:String($),"error")}finally{L(te,null)}}}const Be=k(()=>F().trim()?F().trim():"—"),Je=k(()=>[z(),o()].filter(Boolean).join(" · ")||void 0);async function Ke(x){for(let y=0;y<120;y++){const $=await Xe(`/api/tasks/${x}`);if(!$.ok)return{ok:!1,error:"轮询失败"};const N=await $.json();if(N.status==="done")return{ok:!0};if(N.status==="error")return{ok:!1,error:N.error??"拉取失败"};await new Promise(j=>setTimeout(j,800))}return{ok:!1,error:"拉取超时"}}async function $e(x,y){y==null||y.preventDefault(),y==null||y.stopPropagation();const $=x.trim();if(!(!$||$ in e(K)))try{const N=await Xe("/api/tasks",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({type:"source-pull",ref:$})}),j=await N.json();if(!N.ok||!j.taskId){Oe(j.error??"拉取失败","error");return}dr($,j.taskId);const V=await Ke(j.taskId);V.ok?await Q():Oe(V.error??"拉取失败","error")}catch(N){Oe(N instanceof Error?N.message:"拉取失败","error")}finally{vr($)}}const re=k(()=>G()==="inline"&&d()&&o().trim()!==""&&o()in e(K));let Pe=!1;Ge(()=>{const x=e(re);Pe&&!x&&d()&&G()==="inline"&&o().trim()&&tt(()=>void Q()),Pe=x});function ae(x){switch(x){case"rss":return"标准 RSS/Atom/JSON Feed(内置 __rss__)";case"plugin":return"Site 插件(listUrlPattern)或语鲸协议(lingowhale://)";case"llm":return"通用网页列表:LLM 解析(generic)";case"email":return"内置 IMAP 邮件插件(__email__)";default:return""}}function Te(x){switch(x){case"rss":return"解析方式:RSS/Atom";case"plugin":return"解析方式:插件";case"llm":return"解析方式:LLM";case"email":return"解析方式:邮箱";default:return"解析方式"}}var Re=q(),He=C(Re);{var Qe=x=>{var y=q(),$=C(y);Ne($,()=>Dt,(N,j)=>{j(N,{get open(){return d()},onOpenChange:V=>he()(V),children:(V,se)=>{var Z=q(),W=C(Z);Ne(W,()=>Pt,(ge,ne)=>{ne(ge,{children:(we,_e)=>{var Se=yr(),ce=C(Se);Ne(ce,()=>wt,(oe,ve)=>{ve(oe,{class:"source-sheet-overlay"})});var de=A(ce,2);Ne(de,()=>St,(oe,ve)=>{ve(oe,{class:"source-sheet-panel","aria-describedby":void 0,children:(Ce,qe)=>{var X=pr(),ue=C(X),pe=c(ue),ee=c(pe),Ie=c(ee),fe=c(Ie);Ne(fe,()=>It,(g,b)=>{b(g,{class:"source-sheet-title",get title(){return e(Je)},children:(E,H)=>{kt();var Le=xt();w(()=>O(Le,z()||o()||"信源条目")),n(E,Le)},$$slots:{default:!0}})});var Me=A(fe,2),De=c(Me);{var Fe=g=>{var b=ur(),E=c(b);{var H=B=>{lt(B,{size:16,class:"source-sheet-meta-icon-svg"})},Le=B=>{ct(B,{size:16,class:"source-sheet-meta-icon-svg"})},Ve=B=>{ht(B,{size:16,class:"source-sheet-meta-icon-svg"})},Ze=B=>{ft(B,{size:16,class:"source-sheet-meta-icon-svg"})};D(E,B=>{v()==="rss"?B(H):v()==="plugin"?B(Le,1):v()==="llm"?B(Ve,2):v()==="email"&&B(Ze,3)})}i(b),w((B,et)=>{S(b,"title",`解析方式:${B??""}`),S(b,"aria-label",et)},[()=>ae(v()),()=>Te(v())]),n(g,b)};D(De,g=>{v()&&g(Fe)})}var Ue=A(De,2);{var je=g=>{var b=fr(),E=c(b);ut(E,{size:16,class:"source-sheet-proxy-globe","aria-hidden":"true"}),i(b),w(H=>S(b,"title",`代理:${H??""}`),[()=>p().trim()]),n(g,b)},I=k(()=>p().trim());D(Ue,g=>{e(I)&&g(je)})}i(Me),i(Ie),i(ee);var t=A(ee,2),a=c(t,!0);i(t),i(pe);var l=A(pe,2);Ne(l,()=>Mt,(g,b)=>{b(g,{class:"source-sheet-close","aria-label":"关闭",children:(E,H)=>{Lt(E,{size:18})},$$slots:{default:!0}})}),i(ue);var P=A(ue,2),M=c(P);{var u=g=>{var b=hr();n(g,b)},s=g=>{var b=mr(),E=c(b,!0);i(b),w(()=>O(E,e(U))),n(g,b)},m=g=>{var b=gr();n(g,b)},_=g=>{var b=_r();st(b,21,()=>e(R),E=>E.id,(E,H)=>{{let Le=k(()=>{var Ee;return((Ee=e(H).title)==null?void 0:Ee.trim())||""}),Ve=k(()=>e(H).summary??void 0),Ze=k(()=>e(H).content??void 0),B=k(()=>le(e(H))),et=k(()=>e(H).pub_date||e(H).fetched_at),bt=k(()=>o().trim()),zt=k(()=>{var Ee;return(Ee=e(H).image_url)!=null&&Ee.trim()?e(H).image_url:void 0});vt(E,{get title(){return e(Le)},get link(){return e(H).url},get summary(){return e(Ve)},get content(){return e(Ze)},get author(){return e(B)},get pubDate(){return e(et)},get sourceRef(){return e(bt)},get coverImg(){return e(zt)},get guid(){return e(H).id},get rawItem(){return e(H)},onDelete:me})}}),i(b),n(g,b)};D(M,g=>{e(J)&&e(R).length===0?g(u):e(U)?g(s,1):e(R).length===0?g(m,2):g(_,-1)})}i(P),w(()=>{S(t,"title",o()),O(a,e(Be))}),n(Ce,X)},$$slots:{default:!0}})}),n(we,Se)},$$slots:{default:!0}})}),n(V,Z)},$$slots:{default:!0}})}),n(x,y)},Ae=x=>{var y=Ir(),$=c(y);{var N=se=>{var Z=wr(),W=C(Z),ge=c(W),ne=c(ge),we=c(ne),_e=c(we),Se=c(_e,!0);i(_e);var ce=A(_e,2),de=c(ce);{var oe=I=>{var t=br(),a=c(t);{var l=s=>{lt(s,{size:16,class:"source-sheet-meta-icon-svg"})},P=s=>{ct(s,{size:16,class:"source-sheet-meta-icon-svg"})},M=s=>{ht(s,{size:16,class:"source-sheet-meta-icon-svg"})},u=s=>{ft(s,{size:16,class:"source-sheet-meta-icon-svg"})};D(a,s=>{v()==="rss"?s(l):v()==="plugin"?s(P,1):v()==="llm"?s(M,2):v()==="email"&&s(u,3)})}i(t),w((s,m)=>{S(t,"title",`解析方式:${s??""}`),S(t,"aria-label",m)},[()=>ae(v()),()=>Te(v())]),n(I,t)};D(de,I=>{v()&&I(oe)})}var ve=A(de,2);{var Ce=I=>{var t=zr(),a=c(t);ut(a,{size:16,class:"source-sheet-proxy-globe","aria-hidden":"true"}),i(t),w(l=>S(t,"title",`代理:${l??""}`),[()=>p().trim()]),n(I,t)},qe=k(()=>p().trim());D(ve,I=>{e(qe)&&I(Ce)})}var X=A(ve,2);let ue;var pe=c(X);cr(pe,{size:16}),i(X),i(ce),i(we),i(ne);var ee=A(ne,2),Ie=c(ee,!0);i(ee),i(ge),i(W);var fe=A(W,2),Me=c(fe);{var De=I=>{var t=xr();n(I,t)},Fe=I=>{var t=kr(),a=c(t,!0);i(t),w(()=>O(a,e(U))),n(I,t)},Ue=I=>{var t=$r();n(I,t)},je=I=>{var t=Pr();st(t,21,()=>e(R),a=>a.id,(a,l)=>{{let P=k(()=>{var b;return((b=e(l).title)==null?void 0:b.trim())||""}),M=k(()=>e(l).summary??void 0),u=k(()=>e(l).content??void 0),s=k(()=>le(e(l))),m=k(()=>e(l).pub_date||e(l).fetched_at),_=k(()=>o().trim()),g=k(()=>{var b;return(b=e(l).image_url)!=null&&b.trim()?e(l).image_url:void 0});vt(a,{get title(){return e(P)},get link(){return e(l).url},get summary(){return e(M)},get content(){return e(u)},get author(){return e(s)},get pubDate(){return e(m)},get sourceRef(){return e(_)},get coverImg(){return e(g)},get guid(){return e(l).id},get rawItem(){return e(l)},onDelete:me})}}),i(t),n(I,t)};D(Me,I=>{e(J)&&e(R).length===0?I(De):e(U)?I(Fe,1):e(R).length===0?I(Ue,2):I(je,-1)})}i(fe),w(()=>{S(_e,"title",e(Je)),O(Se,z()||o()||"信源条目"),ue=We(X,1,"source-sheet-pull-status svelte-ypseth",null,ue,{pulling:e(re)}),S(X,"title",e(re)?"拉取中…":"立即拉取"),S(X,"aria-label",e(re)?"拉取中":"立即拉取"),S(X,"aria-busy",e(re)),S(ee,"title",o()),O(Ie,e(Be))}),ye("click",X,I=>$e(o(),I)),n(se,Z)},j=k(()=>d()&&o().trim()),V=se=>{var Z=Sr();n(se,Z)};D($,se=>{e(j)?se(N):se(V,-1)})}i(y),n(x,y)};D(He,x=>{G()==="overlay"?x(Qe):x(Ae,-1)})}n(f,Re),gt()}_t(["click"]);const Jr=pt(null);export{ft as M,ct as P,lt as R,Br as S,ht as a,cr as b,vr as c,Jr as h,nt as r,dr as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{l as i,i as v,t as m,u as _,j as b,h as y}from"./BsQ08Wq_.js";function k(e,l,u=l){var s=new WeakSet;i(e,"input",async r=>{var a=r?e.defaultValue:e.value;if(a=t(e)?o(a):a,u(a),v!==null&&s.add(v),await m(),a!==(a=l())){var d=e.selectionStart,f=e.selectionEnd,n=e.value.length;if(e.value=a??"",f!==null){var c=e.value.length;d===f&&f===n&&c>n?(e.selectionStart=c,e.selectionEnd=c):(e.selectionStart=d,e.selectionEnd=Math.min(f,c))}}}),(y&&e.defaultValue!==e.value||_(l)==null&&e.value)&&(u(t(e)?o(e.value):e.value),v!==null&&s.add(v)),b(()=>{var r=l();if(e===document.activeElement){var a=v;if(s.has(a))return}t(e)&&r===o(e.value)||e.type==="date"&&!r&&!e.value||r!==e.value&&(e.value=r??"")})}function t(e){var l=e.type;return l==="number"||l==="range"}function o(e){return e===""?null:+e}export{k 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 ie=(e,n,t)=>yt(e,typeof n!="symbol"?n+"":n,t),We=(e,n,t)=>n.has(e)||Sn("Cannot "+t);var _=(e,n,t)=>(We(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)=>(We(e,n,"write to private field"),r?r.call(e,t):n.set(e,t),t),q=(e,n,t)=>(We(e,n,"access private method"),t);var Et=Array.isArray,mt=Array.prototype.indexOf,Se=Array.prototype.includes,wr=Array.from,yr=Object.defineProperty,Ie=Object.getOwnPropertyDescriptor,gt=Object.getOwnPropertyDescriptors,bt=Object.prototype,Tt=Array.prototype,Ln=Object.getPrototypeOf,xn=Object.isExtensible;function Er(e){return typeof e=="function"}const At=()=>{};function mr(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 gr(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,ve=4,Le=8,cn=1<<24,fe=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,br=1<<25,de=65536,en=1<<21,_n=1<<22,W=1<<23,ce=Symbol("$state"),Tr=Symbol("legacy props"),Ar=Symbol(""),$=new class extends Error{constructor(){super(...arguments);ie(this,"name","StaleReactionError");ie(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}};var Fn;const xr=!!((Fn=globalThis.document)!=null&&Fn.contentType)&&globalThis.document.contentType.includes("xml"),Rr=1,ze=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 Nr(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 Or(){throw new Error("https://svelte.dev/e/hydration_failed")}function kr(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 Cr(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const Dr=1,Ir=2,Pr=4,Mr=8,Fr=16,Lr=1,jr=2,Yr=4,Hr=8,qr=16,Ur=1,Vr=2,Lt="[",jt="[!",Br="[?",Yt="]",vn={},A=Symbol(),Ht="http://www.w3.org/1999/xhtml",Gr="http://www.w3.org/2000/svg",Kr="@attach";function dn(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function $r(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function zr(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let ee=!1;function Xr(e){ee=e}let b;function xe(e){if(e===null)throw dn(),vn;return b=e}function Zr(){return xe(ae(b))}function Wr(e){if(ee){if(ae(b)!==null)throw dn(),vn;b=e}}function Jr(e=1){if(ee){for(var n=e,t=b;n--;)t=ae(t);b=t}}function Qr(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=ae(t);e&&t.remove(),t=s}}function es(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 Xe=!1;function ns(){Xe=!0}let y=null;function Ue(e){y=e}function ts(e){return Ze().get(e)}function rs(e,n){return Ze().set(e,n),n}function ss(e){return Ze().has(e)}function fs(){return Ze()}function as(e,n=!1,t){y={p:y,i:!1,c:null,e:null,s:e,x:null,r:w,l:Xe&&!n?{s:null,u:null,$:[]}:null}}function is(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!Xe||y!==null&&y.l===null}function Ze(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 le=[];function Vn(){var e=le;le=[],St(e)}function nn(e){if(le.length===0&&!Pe){var n=le;queueMicrotask(()=>{n===le&&Vn()})}le.push(e)}function Vt(){for(;le.length>0;)Vn()}function Bt(e){var n=w;if(n===null)return d.f|=W,e;if((n.f&we)===0&&(n.f&ve)===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&de)===0||(n.f^=de,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,tn=null,Pe=!1,Je=!1,ye=null,Ye=null;var On=0;let $t=1;var Ee,me,ge,be,Fe,P,Te,Z,U,Ae,x,rn,sn,fn,an,Gn;const $e=class $e{constructor(){D(this,x);ie(this,"id",$t++);ie(this,"current",new Map);ie(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);ie(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(Je=!0,p=this,!q(this,x,rn).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,sn).call(this)}finally{On=0,tn=null,ye=null,Ye=null,Je=!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),nn(()=>{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 $e;Je||(Ce.add(p),Pe||nn(()=>{p===n&&n.flush()}))}return p}apply(){}schedule(n){var s;if(tn=n,(s=n.b)!=null&&s.is_pending&&(n.f&(ve|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,rn=function(){return this.is_fork||_(this,be)>0},sn=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,fn).call(this,i,t,r);if(p=null,s.length>0){var f=$e.ensure();for(const i of s)f.schedule(i)}if(ye=null,Ye=null,q(this,x,rn).call(this)){q(this,x,an).call(this,r),q(this,x,an).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,sn).call(a))},fn=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&ve)!==0?t.push(s):Ne(s)&&((f&fe)!==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}}},an=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,fn).call(s,u,[],[])}f.deactivate()}}p=n,S=t}_(this,U).clear(),Ce.delete(this)};let ne=$e;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,tn)}}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|fe))!==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){se(e),re(n),Ue(t),f&&(e.f&B)===0&&(r==null||r.activate(),r==null||r.apply())}}function Be(e=!0){se(null),re(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 or(()=>{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,on(f,L);else{(f.f&W)!==0&&(f.f^=W),on(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"))}),lr(()=>{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 ls(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)te(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;se(er(e));try{e.f&=~de,Qt(e),n=dt(e)}finally{se(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 ln=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 os(e,n=!1,t=!0){var s;const r=mn(e);return n||(r.equals=Un),Xe&&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|fe|_n|Nn))!==0&&(F===null||!Se.call(F,e))&&Ft();let r=t?De(n):n;return on(e,r,Ye)}function on(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=ne.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?vr([e]):I.push(e)),!s.is_fork&&ln.size>0&&!Jn&&tr()}return n}function tr(){Jn=!1;for(const e of ln)(e.f&m)!==0&&E(e,H),Ne(e)&&he(e);ln.clear()}function us(e,n=1){var t=ue(e),r=n===1?t++:t--;return X(e,t),r}function Qe(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&de)===0&&(a&M&&(l.f|=de),Qn(u,H,t))}else if(i){var v=l;(a&fe)!==0&&j!==null&&j.add(v),t!==null?t.push(v):hn(v)}}}}function De(e){if(typeof e!="object"||e===null||ce 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=_e,o=l=>{if(_e===f)return l();var a=d,i=_e;re(null),Mn(f);var u=l();return re(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),Qe(s)}}else X(i,A),Qe(s);return!0},get(l,a,i){var g;if(a===ce)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=ue(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=ue(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===ce)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=ue(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)}Qe(s)}return!0},ownKeys(l){ue(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"&&ce in e)return e[ce]}catch{}return e}function cs(e,n){return Object.is(Cn(e),Cn(n))}var Dn,rr,sr,et,nt;function _s(){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 Ke(e){return et.call(e)}function ae(e){return nt.call(e)}function vs(e,n){if(!ee)return Ke(e);var t=Ke(b);if(t===null)t=b.appendChild(Ge());else if(n&&t.nodeType!==ze){var r=Ge();return t==null||t.before(r),xe(r),r}return n&&gn(t),xe(t),t}function ds(e,n=!1){if(!ee){var t=Ke(e);return t instanceof Comment&&t.data===""?ae(t):t}if(n){if((b==null?void 0:b.nodeType)!==ze){var r=Ge();return b==null||b.before(r),xe(r),r}gn(b)}return b}function ps(e,n=1,t=!1){let r=ee?b:e;for(var s;n--;)s=r,r=ae(r);if(!ee)return r;if(t){if((r==null?void 0:r.nodeType)!==ze){var f=Ge();return r===null?s==null||s.after(f):r.before(f),xe(f),f}gn(r)}return xe(r),r}function fr(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===ze;)n.remove(),e.nodeValue+=n.nodeValue,n=e.nextSibling}function ys(e,n){if(n){const t=document.body;e.autofocus=!0,nn(()=>{document.activeElement===t&&e.focus()})}}function Es(e){ee&&Ke(e)!==null&&fr(e)}let In=!1;function ar(){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;re(null),se(null);try{return e()}finally{re(n),se(t)}}function ms(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),ar()}function tt(e){w===null&&(d===null&&Dt(),Ct()),pe&&kt()}function ir(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&ve)!==0)ye!==null?ye.push(r):ne.ensure().schedule(r);else if(n!==null){try{he(r)}catch(o){throw te(r),o}s.deps===null&&s.teardown===null&&s.nodes===null&&s.first===s.last&&(s.f&Re)===0&&(s=s.first,(e&fe)!==0&&(e&qe)!==0&&s!==null&&(s.f|=qe))}if(s!==null&&(s.parent=t,t!==null&&ir(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 lr(e){const n=C(Le,null);return E(n,m),n.teardown=e,n}function gs(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(ve|Yn,e)}function bs(e){return tt(),C(Le|Yn,e)}function Ts(e){ne.ensure();const n=C(Q|Re,e);return()=>{te(n)}}function As(e){ne.ensure();const n=C(Q|Re,e);return(t={})=>new Promise(r=>{t.outro?_r(n,()=>{te(n),r(void 0)}):(te(n),r(void 0))})}function Ss(e){return C(ve,e)}function xs(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{se(s.parent),pr(n)}finally{se(s)}}})}function Rs(){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 or(e){return C(_n|Re,e)}function ft(e,n=0){return C(Le|n,e)}function Ns(e,n=[],t=[],r=[]){Xn(r,n,t,s=>{C(Le,()=>e(...s.map(ue)))})}function Os(e,n=[],t=[],r=[]){if(t.length>0||r.length>0)var s=wn();Xn(r,n,t,f=>{C(ve,()=>e(...f.map(ue))),s&&s()})}function ks(e,n=0){var t=C(fe|n,e);return t}function Cs(e,n=0){var t=C(cn|n,e);return t}function Ds(e){return C(G|Re,e)}function at(e){var n=e.teardown;if(n!==null){const t=pe,r=d;Pn(!0),re(null);try{n.call(null)}finally{Pn(t),re(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:te(t,n),t=r}}function ur(e){for(var n=e.first;n!==null;){var t=n.next;(n.f&G)===0&&te(n),n=t}}function te(e,n=!0){var t=!1;(n||(e.f&Rt)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(cr(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 cr(e,n){for(;e!==null;){var t=e===n?null:ae(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 _r(e,n,t=!0){var r=[];lt(e,r,!0);var s=()=>{t&&te(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&fe)!==0;lt(s,n,o?t:!1),s=f}}}function Is(e){ot(e,!0)}function ot(e,n){if((e.f&V)!==0){e.f^=V,(e.f&m)===0&&(E(e,R),ne.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 Ps(e,n){if(e.nodes)for(var t=e.nodes.start,r=e.nodes.end;t!==null;){var s=t===r?null:ae(t);n.append(t),t=s}}let He=!1,pe=!1;function Pn(e){pe=e}let d=null,Y=!1;function re(e){d=e}let w=null;function se(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 vr(e){I=e}let ct=1,oe=0,_e=oe;function Mn(e){_e=e}function _t(){return++ct}function Ne(e){var n=e.f;if((n&R)!==0)return!0;if(n&T&&(e.f&=~de),(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=_e,i=e.f;O=null,k=0,I=null,d=(i&(G|Q))===0?e:null,F=null,Ue(e.ctx),Y=!1,_e=++oe,e.ac!==null&&(bn(()=>{e.ac.abort($)}),e.ac=null);try{e.f|=en;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(oe++,s.deps!==null)for(let N=0;N<t;N+=1)s.deps[N].rv=oe;if(n!==null)for(const N of n)N.rv=oe;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^=en,O=n,k=t,I=r,d=s,F=f,Ue(o),Y=l,_e=a}}function dr(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&=~de),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++)dr(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&(fe|cn))!==0?ur(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 Ms(){await Promise.resolve(),zt()}function Fs(){return ne.ensure().settled()}function ue(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&en)!==0)e.rv<oe&&(e.rv=oe,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 pr(e){var n=Y;try{return Y=!0,e()}finally{Y=n}}function Ls(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(ce in e)un(e);else if(!Array.isArray(e))for(let n in e){const t=e[n];typeof t=="object"&&t&&ce 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 $,wr as A,Dr as B,Hn as C,Fr as D,qe as E,os as F,mn as G,Lt as H,Ir as I,B as J,Is as K,_r as L,V as M,G as N,fr as O,Ps as P,te as Q,Ke as R,nn as S,ae as T,Pr as U,Mr as V,y as W,Ss as X,w as Y,Rn as Z,ce as _,Zr as a,Cr as a$,je as a0,Ie as a1,kr as a2,Yr as a3,De as a4,X as a5,pe as a6,us as a7,se as a8,Hr as a9,ls as aA,gr as aB,xs as aC,Rs as aD,Es as aE,qt as aF,ws as aG,sr as aH,Ur as aI,Vr as aJ,ze as aK,gn as aL,we as aM,rt as aN,Qe as aO,xt as aP,Br as aQ,E as aR,R as aS,H as aT,Kt as aU,re as aV,Ue as aW,ne as aX,Bt as aY,d as aZ,Ve as a_,Xe as aa,jr as ab,Lr as ac,yn as ad,Er as ae,Tr as af,qr as ag,lr as ah,yr as ai,At as aj,Rt as ak,Re as al,bs as am,gs as an,St as ao,mr as ap,Ls as aq,Nt as ar,ns as as,as as at,is as au,vs as av,ps as aw,Wr as ax,Jr as ay,Ns as az,ks as b,zr as b0,bn as b1,_s as b2,vn as b3,Or as b4,As as b5,dn as b6,zt as b7,z as b8,Cs as b9,$r as ba,cs as bb,Xn as bc,Ht as bd,Ln as be,Kr as bf,gt as bg,xr as bh,ys as bi,A as bj,ar as bk,Ar as bl,Rr as bm,Gr as bn,_e as bo,ss as bp,ts as bq,rs as br,fs as bs,Ts as bt,Fs as bu,xe as c,Os as d,Xr as e,ds as f,b as g,ee as h,p as i,ft as j,ue as k,ms as l,jt as m,Yt as n,on as o,Ge as p,br as q,es as r,Qr as s,Ms as t,pr as u,Ds as v,Nr as w,hs as x,Jt as y,Et as z};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as v,E as y,h as o,a as f,r as l,s as m,c as p,e as i,H as T,g}from"./BsQ08Wq_.js";import{B as A}from"./rNwPv4DZ.js";function b(d,_,e){var s;o&&(s=g,f());var r=new A(d);v(()=>{var a=_()??null;if(o){var h=l(s),c=h===T,u=a!==null;if(c!==u){var t=m();p(t),r.anchor=t,i(!1),r.ensure(a,a&&(n=>e(n,a))),i(!0);return}}r.ensure(a,a&&(n=>e(n,a)))},y)}export{b as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{W as S,X as T,
|
|
1
|
+
import{W as S,X as T,j as Y,u as x,Y as E,Z as O,_ as j}from"./BsQ08Wq_.js";function n(r,f){return r===f||(r==null?void 0:r[j])===f}function B(r={},f,i,k){var p=S.r,h=E;return T(()=>{var a,t;return Y(()=>{a=t,t=[],x(()=>{r!==i(...t)&&(f(r,...t),a&&n(i(...a),r)&&f(null,...a))})}),()=>{let s=h;for(;s!==p&&s.parent!==null&&s.parent.f&O;)s=s.parent;const w=()=>{t&&n(i(...t),r)&&f(null,...t)},c=s.teardown;s.teardown=()=>{w(),c==null||c()}}}),r}export{B as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{as as a}from"./BsQ08Wq_.js";a();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as _,a as s,f as g}from"./DIeahUKq.js";import"./CEWi_rGa.js";import{at as d,aC as b,aD as h,f as v,au as $,a5 as k,k as n,F as y,az as B}from"./BsQ08Wq_.js";import{s as j,a as x}from"./BI_ale1m.js";import{i as z}from"./rNwPv4DZ.js";import{s as C}from"./WW6La7Nt.js";import{i as D}from"./Nd0ktDhd.js";import{p as F}from"./Czo-EcYU.js";var H=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=()=>x(F,"$page",f),[f,l]=j(),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=H();B(()=>C(a,"href",n(e))),s(t,a)};z(c,t=>{n(e)&&t(u)})}s(i,o),$(),l()}export{I as B};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as s,a as l}from"./
|
|
1
|
+
import{h as s,a as l}from"./BsQ08Wq_.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{s as e}from"./
|
|
1
|
+
import{s as e}from"./DhZZHWov.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 +1 @@
|
|
|
1
|
-
import{Y as w,
|
|
1
|
+
import{Y as w,G as y,a1 as h,a2 as K,a3 as R,k as _,a4 as Y,a5 as B,a6 as j,J as M,a7 as m,a8 as I,a9 as N,u as U,aa as G,ab as $,ac as q,ad as z,y as C,ae as p,_ as D,af as E,ag as J}from"./BsQ08Wq_.js";import{c as Z}from"./BI_ale1m.js";const F={get(e,r){if(!e.exclude.includes(r))return e.props[r]},set(e,r){return!1},getOwnPropertyDescriptor(e,r){if(!e.exclude.includes(r)&&r in e.props)return{enumerable:!0,configurable:!0,value:e.props[r]}},has(e,r){return e.exclude.includes(r)?!1:r in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(r=>!e.exclude.includes(r))}};function k(e,r,s){return new Proxy({props:e,exclude:r},F)}const H={get(e,r){if(!e.exclude.includes(r))return _(e.version),r in e.special?e.special[r]():e.props[r]},set(e,r,s){if(!(r in e.special)){var n=w;try{I(e.parent_effect),e.special[r]=V({get[r](){return e.props[r]}},r,R)}finally{I(n)}}return e.special[r](s),m(e.version),!0},getOwnPropertyDescriptor(e,r){if(!e.exclude.includes(r)&&r in e.props)return{enumerable:!0,configurable:!0,value:e.props[r]}},deleteProperty(e,r){return e.exclude.includes(r)||(e.exclude.push(r),m(e.version)),!0},has(e,r){return e.exclude.includes(r)?!1:r in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(r=>!e.exclude.includes(r))}};function ee(e,r){return new Proxy({props:e,exclude:r,special:{},version:y(0),parent_effect:w},H)}const Q={get(e,r){let s=e.props.length;for(;s--;){let n=e.props[s];if(p(n)&&(n=n()),typeof n=="object"&&n!==null&&r in n)return n[r]}},set(e,r,s){let n=e.props.length;for(;n--;){let i=e.props[n];p(i)&&(i=i());const t=h(i,r);if(t&&t.set)return t.set(s),!0}return!1},getOwnPropertyDescriptor(e,r){let s=e.props.length;for(;s--;){let n=e.props[s];if(p(n)&&(n=n()),typeof n=="object"&&n!==null&&r in n){const i=h(n,r);return i&&!i.configurable&&(i.configurable=!0),i}}},has(e,r){if(r===D||r===E)return!1;for(let s of e.props)if(p(s)&&(s=s()),s!=null&&r in s)return!0;return!1},ownKeys(e){const r=[];for(let s of e.props)if(p(s)&&(s=s()),!!s){for(const n in s)r.includes(n)||r.push(n);for(const n of Object.getOwnPropertySymbols(s))r.includes(n)||r.push(n)}return r}};function re(...e){return new Proxy({props:e},Q)}function V(e,r,s,n){var x;var i=!G||(s&$)!==0,t=(s&N)!==0,A=(s&J)!==0,f=n,v=!0,S=()=>(v&&(v=!1,f=A?U(n):n),f);let l;if(t){var L=D in e||E in e;l=((x=h(e,r))==null?void 0:x.set)??(L&&r in e?u=>e[r]=u:void 0)}var o,b=!1;t?[o,b]=Z(()=>e[r]):o=e[r],o===void 0&&n!==void 0&&(o=S(),l&&(i&&K(),l(o)));var a;if(i?a=()=>{var u=e[r];return u===void 0?S():(v=!0,u)}:a=()=>{var u=e[r];return u!==void 0&&(f=void 0),u===void 0?f:u},i&&(s&R)===0)return a;if(l){var T=e.$$legacy;return(function(u,d){return arguments.length>0?((!i||!d||T||b)&&l(d?a():u),u):a()})}var P=!1,c=((s&q)!==0?z:C)(()=>(P=!1,a()));t&&_(c);var g=w;return(function(u,d){if(arguments.length>0){const O=d?_(c):i&&t?Y(u):u;return B(c,O),P=!0,f!==void 0&&(f=O),u}return j&&P||(g.f&M)!==0?c.v:_(c)})}export{ee as l,V as p,k as r,re as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{aG as w,p as v,R as f,aH as E,Y as T,aI as N,aJ as M,h as i,g as n,aK as y,c as x,aL as C,aM as L,a as h,C as O}from"./BsQ08Wq_.js";var m;const c=((m=globalThis==null?void 0:globalThis.window)==null?void 0:m.trustedTypes)&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function b(e){return(c==null?void 0:c.createHTML(e))??e}function g(e){var r=w("template");return r.innerHTML=b(e.replaceAll("<!>","<!---->")),r.content}function a(e,r){var t=T;t.nodes===null&&(t.nodes={start:e,end:r,a:null,t:null})}function P(e,r){var t=(r&N)!==0,l=(r&M)!==0,s,u=!e.startsWith("<!>");return()=>{if(i)return a(n,null),n;s===void 0&&(s=g(u?e:"<!>"+e),t||(s=f(s)));var o=l||E?document.importNode(s,!0):s.cloneNode(!0);if(t){var _=f(o),d=o.lastChild;a(_,d)}else a(o,o);return o}}function A(e,r,t="svg"){var l=!e.startsWith("<!>"),s=`<${t}>${l?e:"<!>"+e}</${t}>`,u;return()=>{if(i)return a(n,null),n;if(!u){var o=g(s),_=f(o);u=f(_)}var d=u.cloneNode(!0);return a(d,d),d}}function $(e,r){return A(e,r,"svg")}function D(e=""){if(!i){var r=v(e+"");return a(r,r),r}var t=n;return t.nodeType!==y?(t.before(t=v()),x(t)):C(t),a(t,t),t}function H(){if(i)return a(n,null),n;var e=document.createDocumentFragment(),r=document.createComment(""),t=v();return e.append(r,t),a(r,t),e}function S(e,r){if(i){var t=T;((t.f&L)===0||t.nodes.end===null)&&(t.nodes.end=n),h();return}e!==null&&e.before(r)}function W(){var e,r;if(i&&n&&n.nodeType===O&&((e=n.textContent)!=null&&e.startsWith("$"))){const t=n.textContent.substring(1);return h(),t}return(r=window.__svelte??(window.__svelte={})).uid??(r.uid=1),`c${window.__svelte.uid++}`}const R="5";var p;typeof window<"u"&&((p=window.__svelte??(window.__svelte={})).v??(p.v=new Set)).add(R);export{S as a,a as b,H as c,$ as d,P as f,W as p,D as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{p as y,b as u,ak as _,al as g,h as t,C as o,T as l,e as i,c as d,g as p,R as m}from"./BsQ08Wq_.js";function C(n,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!==n);)e=l(e);if(e===null)i(!1);else{var f=l(e);e.remove(),d(f)}}t||(s=document.head.appendChild(y()));try{u(()=>r(s),_|g)}finally{E&&(i(!0),d(a))}}export{C as h};
|