cognova 0.2.20 → 0.2.21
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/.output/nitro.json +1 -1
- package/.output/public/_nuxt/{CCeM5lW2.js → -O86rjFZ.js} +1 -1
- package/.output/public/_nuxt/{BXxZokD_.js → -Q9J9PRu.js} +1 -1
- package/.output/public/_nuxt/{Hh9mv0Ek.js → 0DkCurh5.js} +1 -1
- package/.output/public/_nuxt/{CjJPkhbc.js → 49whOfsW.js} +1 -1
- package/.output/public/_nuxt/{DqR9SdeU.js → 4Vi9hKJC.js} +1 -1
- package/.output/public/_nuxt/{BoCU3mWu.js → 66GNa6MU.js} +1 -1
- package/.output/public/_nuxt/9dGxQN-2.js +1 -0
- package/.output/public/_nuxt/{DhlIWT8K.js → 9wWq016N.js} +1 -1
- package/.output/public/_nuxt/{BD5rPkc2.js → B04GYyxD.js} +1 -1
- package/.output/public/_nuxt/{DwrmFEZN.js → B0KPvVav.js} +1 -1
- package/.output/public/_nuxt/{Cywo6tZI.js → B1meh0Ci.js} +1 -1
- package/.output/public/_nuxt/{C5Cu9Fx6.js → B53zbEPa.js} +1 -1
- package/.output/public/_nuxt/{B20jNAhm.js → B6-aFDg7.js} +1 -1
- package/.output/public/_nuxt/{kkAMoB43.js → B6lgiDn1.js} +1 -1
- package/.output/public/_nuxt/{BgavRUl_.js → B7uuK82m.js} +1 -1
- package/.output/public/_nuxt/{BWqJInD3.js → B9OPrqTh.js} +1 -1
- package/.output/public/_nuxt/{DLHnP6tw.js → BA646MN4.js} +1 -1
- package/.output/public/_nuxt/{mzM4BGtv.js → BDhTzPPo.js} +1 -1
- package/.output/public/_nuxt/{CZNOaqeX.js → BDzVzzBM.js} +1 -1
- package/.output/public/_nuxt/{DTlSLSo1.js → BEkFNtxw.js} +3 -3
- package/.output/public/_nuxt/{B_hNqC64.js → BI7-RNYV.js} +1 -1
- package/.output/public/_nuxt/{rIgg2Arf.js → BN8XazaH.js} +3 -3
- package/.output/public/_nuxt/{TSYrPbLR.js → BNP0kT7B.js} +1 -1
- package/.output/public/_nuxt/{BhhMUror.js → BPfVf7kt.js} +1 -1
- package/.output/public/_nuxt/{BxsQlbgl.js → BQGDi8tM.js} +1 -1
- package/.output/public/_nuxt/{Br6epbzY.js → BUXewbUG.js} +1 -1
- package/.output/public/_nuxt/{Y59XKprr.js → BW0FZi7D.js} +1 -1
- package/.output/public/_nuxt/{Br81Sr2R.js → BXmijQzM.js} +1 -1
- package/.output/public/_nuxt/{C-78dDNd.js → BZFf3mr_.js} +1 -1
- package/.output/public/_nuxt/{C7hFztZL.js → BZx0xqxG.js} +1 -1
- package/.output/public/_nuxt/{DjsqyRqt.js → BbElT9yG.js} +1 -1
- package/.output/public/_nuxt/{BHUy5EAj.js → BjyHtuwq.js} +1 -1
- package/.output/public/_nuxt/{C4sG6rdW.js → BnfOmQBX.js} +1 -1
- package/.output/public/_nuxt/BoqEl-F1.js +1 -0
- package/.output/public/_nuxt/{C_A_NkeC.js → Bq2pktu_.js} +2 -2
- package/.output/public/_nuxt/{C2Gh3qqr.js → Br712gOY.js} +1 -1
- package/.output/public/_nuxt/{PamJNol9.js → Bs4sk8vv.js} +1 -1
- package/.output/public/_nuxt/{DL4EpgqQ.js → Bt87rSlM.js} +1 -1
- package/.output/public/_nuxt/{DFTEBTzZ.js → BtOA13zl.js} +1 -1
- package/.output/public/_nuxt/{TNpdJOlc.js → Bti4Nb4c.js} +1 -1
- package/.output/public/_nuxt/{BZ7DAtPi.js → Bu0HhyZq.js} +1 -1
- package/.output/public/_nuxt/{D867g6Ds.js → Bv25Wgb9.js} +1 -1
- package/.output/public/_nuxt/{CqS0zXYQ.js → BwMPB_Mu.js} +1 -1
- package/.output/public/_nuxt/{CS8SdmH2.js → BzkqPhn-.js} +1 -1
- package/.output/public/_nuxt/{BZm9w7en.js → C35LJkds.js} +1 -1
- package/.output/public/_nuxt/{DcJ0GstJ.js → C4VW2EjN.js} +1 -1
- package/.output/public/_nuxt/{C2-_hcwB.js → C6FzuEFH.js} +1 -1
- package/.output/public/_nuxt/{X0o5GcBb.js → C866FgGj.js} +1 -1
- package/.output/public/_nuxt/{BOCn_SGf.js → CBqC92gC.js} +3 -3
- package/.output/public/_nuxt/{D49P2RhG.js → CD2Wt775.js} +1 -1
- package/.output/public/_nuxt/{BzrhNhdT.js → CE491BHV.js} +1 -1
- package/.output/public/_nuxt/{BAY3_Hrq.js → CF8ziKf1.js} +1 -1
- package/.output/public/_nuxt/{B3OpTH_e.js → CFE6wnRK.js} +1 -1
- package/.output/public/_nuxt/{BVYYP4eQ.js → CFjVdIUR.js} +1 -1
- package/.output/public/_nuxt/{Dsuag_iW.js → CGPn0bIO.js} +1 -1
- package/.output/public/_nuxt/{BtrNCc2S.js → CKSWEIag.js} +1 -1
- package/.output/public/_nuxt/{BgIS9_ti.js → CL9cB3YW.js} +1 -1
- package/.output/public/_nuxt/{BWQ7zE01.js → CLUsxCN7.js} +1 -1
- package/.output/public/_nuxt/{CVVtVzXC.js → CM5aLXsq.js} +1 -1
- package/.output/public/_nuxt/{DZikIgHK.js → CN_jZBEh.js} +1 -1
- package/.output/public/_nuxt/{B-yW4SD3.js → CNgf0D2d.js} +1 -1
- package/.output/public/_nuxt/{CHbHVtCy.js → CPYFvNZ2.js} +1 -1
- package/.output/public/_nuxt/{PY5EGujn.js → CQTD64un.js} +1 -1
- package/.output/public/_nuxt/{DpSM97eH.js → CRLO8tx3.js} +1 -1
- package/.output/public/_nuxt/{DxE8r3r4.js → CTIUqf4N.js} +1 -1
- package/.output/public/_nuxt/{CLNcmNQS.js → CUDpi0L3.js} +1 -1
- package/.output/public/_nuxt/{C_doutX-.js → CY4SEsrB.js} +1 -1
- package/.output/public/_nuxt/{LR0kCjbe.js → CYAPNNGW.js} +1 -1
- package/.output/public/_nuxt/{CHnVFnBW.js → CZV2u8Xx.js} +1 -1
- package/.output/public/_nuxt/{CAVUAxNU.js → C_TYqFbT.js} +1 -1
- package/.output/public/_nuxt/{D3cEeQh7.js → CdIGoC9r.js} +1 -1
- package/.output/public/_nuxt/{U-eBrbR4.js → CiPQXVBy.js} +1 -1
- package/.output/public/_nuxt/{DEFWIjWl.js → Cif20myG.js} +1 -1
- package/.output/public/_nuxt/{DNAMjHbb.js → Ck1KJ2HV.js} +1 -1
- package/.output/public/_nuxt/{Cet4T_yO.js → CkSyHzm-.js} +1 -1
- package/.output/public/_nuxt/{CuvkTsqs.js → ClKTC8bU.js} +1 -1
- package/.output/public/_nuxt/CltqyXO5.js +1 -0
- package/.output/public/_nuxt/{BS1t375R.js → CmuSeGko.js} +1 -1
- package/.output/public/_nuxt/{CkrW8sGL.js → Cn_NBSuo.js} +1 -1
- package/.output/public/_nuxt/{C2OHaW6l.js → CvUov1Ey.js} +1 -1
- package/.output/public/_nuxt/{BQi8LIrn.js → CwY5tLRb.js} +1 -1
- package/.output/public/_nuxt/{C3xzleKP.js → CwoQ23uO.js} +1 -1
- package/.output/public/_nuxt/{1wCoXZ14.js → Cwoe6TAi.js} +1 -1
- package/.output/public/_nuxt/{CbDLhrNA.js → CxTuME0Z.js} +2 -2
- package/.output/public/_nuxt/{BGYoW3kO.js → Cyjm1APH.js} +1 -1
- package/.output/public/_nuxt/{C6Eoiclo.js → Cyo4VJ6S.js} +1 -1
- package/.output/public/_nuxt/{Be47YE2L.js → D-WxGaym.js} +1 -1
- package/.output/public/_nuxt/{0GqCtQ9S.js → D0SYimTY.js} +1 -1
- package/.output/public/_nuxt/{G_CsVlOR.js → D82AhPdI.js} +1 -1
- package/.output/public/_nuxt/{DVdnhfXT.js → D9dLxr1_.js} +1 -1
- package/.output/public/_nuxt/{C3szZmvA.js → D9jU4ocP.js} +1 -1
- package/.output/public/_nuxt/{C1oaoi1p.js → DAQeLqQw.js} +1 -1
- package/.output/public/_nuxt/{DM20WaLq.js → DDg2H-HK.js} +1 -1
- package/.output/public/_nuxt/{Co0UxVsx.js → DESvLlSI.js} +1 -1
- package/.output/public/_nuxt/{B9_vmatf.js → DFSB3QxC.js} +1 -1
- package/.output/public/_nuxt/{RlvwEbHv.js → DFqzAgzP.js} +1 -1
- package/.output/public/_nuxt/{Bj5e7QPz.js → DJuYHeIc.js} +1 -1
- package/.output/public/_nuxt/{D1reIfpX.js → DK0AJoGL.js} +1 -1
- package/.output/public/_nuxt/{XQNzmQy9.js → DQdWxVax.js} +1 -1
- package/.output/public/_nuxt/{z-MP0bB7.js → DRF-DnQg.js} +1 -1
- package/.output/public/_nuxt/{hCeWb_38.js → DUf0f355.js} +1 -1
- package/.output/public/_nuxt/{jTT1R-Vz.js → DWnLv2oh.js} +1 -1
- package/.output/public/_nuxt/{vCFAHwdt.js → DXkvGTEB.js} +1 -1
- package/.output/public/_nuxt/{CePKCqSb.js → DZncVjYt.js} +1 -1
- package/.output/public/_nuxt/{jC4pIK1p.js → DaAG12aj.js} +1 -1
- package/.output/public/_nuxt/{D2edadpd.js → Db66Rsfj.js} +1 -1
- package/.output/public/_nuxt/{B9Y3_B5G.js → DbLjznUU.js} +1 -1
- package/.output/public/_nuxt/{CxMuZEwX.js → Dfzca1IN.js} +1 -1
- package/.output/public/_nuxt/{MYeLvJGV.js → DhvuBruY.js} +1 -1
- package/.output/public/_nuxt/{Daf2MbWG.js → Dj9yr6QC.js} +1 -1
- package/.output/public/_nuxt/{_-TGPiLQ.js → DjJn4g73.js} +1 -1
- package/.output/public/_nuxt/{2J1KxdHv.js → DkAUrkyD.js} +1 -1
- package/.output/public/_nuxt/{DhN3_DYH.js → DkybthvX.js} +1 -1
- package/.output/public/_nuxt/{CkZT4LGq.js → DlNwSYeM.js} +1 -1
- package/.output/public/_nuxt/{pwJTkIQ4.js → Dm5HyQgM.js} +1 -1
- package/.output/public/_nuxt/{t8B72leH.js → Dn7zgQZh.js} +1 -1
- package/.output/public/_nuxt/{D41A2mE2.js → DoIqoxBH.js} +1 -1
- package/.output/public/_nuxt/{Bnn59-FS.js → Dqx39Omg.js} +1 -1
- package/.output/public/_nuxt/{8WMJQbWG.js → DrQVjmDX.js} +1 -1
- package/.output/public/_nuxt/{6VDUZECX.js → DuYzdzqK.js} +1 -1
- package/.output/public/_nuxt/{BLdMRpJD.js → DvZW6QuM.js} +1 -1
- package/.output/public/_nuxt/{CTGm_mc8.js → DxztGg8Y.js} +1 -1
- package/.output/public/_nuxt/{BTGeP1bA.js → EPFrlLUV.js} +1 -1
- package/.output/public/_nuxt/{hrPTRWjM.js → JsQhjNzl.js} +1 -1
- package/.output/public/_nuxt/{D_YGqvw_.js → NApXVVQD.js} +1 -1
- package/.output/public/_nuxt/{9Rw88G6h.js → OwiFxd0L.js} +1 -1
- package/.output/public/_nuxt/{BXdQ9ASJ.js → QAfF68DH.js} +1 -1
- package/.output/public/_nuxt/{CPwCTHun.js → QDt0Bhze.js} +1 -1
- package/.output/public/_nuxt/{DhSvBSt3.js → RF9kzKHY.js} +1 -1
- package/.output/public/_nuxt/{Dtr_0IbE.js → RzJhlhBq.js} +1 -1
- package/.output/public/_nuxt/{NKs0EGrh.js → SHHFgixe.js} +1 -1
- package/.output/public/_nuxt/V5ro_Ide.js +1 -0
- package/.output/public/_nuxt/{YZQjZgsH.js → Zge3ScOQ.js} +1 -1
- package/.output/public/_nuxt/{Bh0yGTzr.js → Zj8SE5Ja.js} +1 -1
- package/.output/public/_nuxt/{DHRexj9X.js → ZjXNlFkb.js} +1 -1
- package/.output/public/_nuxt/{DcYKh6QA.js → _5GQc09B.js} +1 -1
- package/.output/public/_nuxt/{CDcQ31Eh.js → aK4BeJQk.js} +1 -1
- package/.output/public/_nuxt/builds/latest.json +1 -1
- package/.output/public/_nuxt/builds/meta/36770554-14f7-4f3a-add8-2f51436e3d25.json +1 -0
- package/.output/public/_nuxt/{C5gfF7J1.js → cQU5gXxh.js} +1 -1
- package/.output/public/_nuxt/{CxSijT71.js → cq8AG_FV.js} +1 -1
- package/.output/public/_nuxt/{o-s8JBm2.js → d2FXPfMj.js} +1 -1
- package/.output/public/_nuxt/{UuqXScSw.js → dD3g22lS.js} +1 -1
- package/.output/public/_nuxt/{subdxgSQ.js → f35n4CdE.js} +1 -1
- package/.output/public/_nuxt/{HStC1ZyE.js → gWMUdeHB.js} +1 -1
- package/.output/public/_nuxt/{CTQFGHjS.js → i2HesToX.js} +1 -1
- package/.output/public/_nuxt/{V04-MrLN.js → iIxC-lNx.js} +1 -1
- package/.output/public/_nuxt/{D1uV2uir.js → nRp8uM7H.js} +1 -1
- package/.output/public/_nuxt/{DP8t9VWs.js → oBlsjU0k.js} +1 -1
- package/.output/public/_nuxt/{-mGU8_Hv.js → rH7JJqZQ.js} +1 -1
- package/.output/public/_nuxt/{D_k1YwXm.js → tak9pMy9.js} +1 -1
- package/.output/public/_nuxt/{BrkEOLHu.js → vebhRA6y.js} +1 -1
- package/.output/server/chunks/build/client.precomputed.mjs +1 -1
- package/.output/server/chunks/build/{integrations-D5JWURiJ.mjs → integrations-Hf4O1jkW.mjs} +24 -77
- package/.output/server/chunks/build/integrations-Hf4O1jkW.mjs.map +1 -0
- package/.output/server/chunks/build/server.mjs +1 -1
- package/.output/server/chunks/build/styles.mjs +4 -4
- package/.output/server/chunks/nitro/nitro.mjs +903 -996
- package/.output/server/package.json +1 -1
- package/app/pages/settings/integrations.vue +2 -23
- package/package.json +1 -1
- package/server/bridge/adapters/imessage.ts +12 -138
- package/shared/types/index.ts +0 -2
- package/.output/public/_nuxt/B9o6sFST.js +0 -1
- package/.output/public/_nuxt/CskGv_Km.js +0 -1
- package/.output/public/_nuxt/DTR31rjp.js +0 -1
- package/.output/public/_nuxt/Gyw_2f6x.js +0 -1
- package/.output/public/_nuxt/builds/meta/d528449f-50ac-4f95-b7da-122a1fdd6e85.json +0 -1
- package/.output/server/chunks/build/integrations-D5JWURiJ.mjs.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as s}from"./
|
|
1
|
+
import{r as s}from"./Zj8SE5Ja.js";import t from"./f35n4CdE.js";import{W as a,c as e,o as c,w as p,a as n}from"./CBqC92gC.js";import"./iik6CYzq.js";const d={__name:"ProseTip",setup(i){const o=a();return(r,f)=>(c(),e(t,{color:"success",icon:n(o).ui.icons.tip},{default:p(()=>[s(r.$slots,"default",{mdcUnwrap:"p"})]),_:3},8,["icon"]))}};export{d as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{bp as K,i as L,bq as N,e as E,a2 as U,h as M,a8 as x,aZ as R,br as C,bf as q,B as D,a5 as I,a6 as H,bs as $,d as Y,u as j,an as X,F as B,c as z,o as G,w as V,r as Z,a as J,P as Q,bt as b,T as F,bu as A,bv as ee,bw as te,bx as k,by as T,bz as ne}from"./
|
|
1
|
+
import{bp as K,i as L,bq as N,e as E,a2 as U,h as M,a8 as x,aZ as R,br as C,bf as q,B as D,a5 as I,a6 as H,bs as $,d as Y,u as j,an as X,F as B,c as z,o as G,w as V,r as Z,a as J,P as Q,bt as b,T as F,bu as A,bv as ee,bw as te,bx as k,by as T,bz as ne}from"./CBqC92gC.js";const re=K(()=>{const e=E(new Map),t=E(),n=L(()=>{for(const v of e.value.values())if(v)return!0;return!1}),o=U({scrollBody:E(!0)});let c=null;const p=()=>{document.body.style.paddingRight="",document.body.style.marginRight="",document.body.style.pointerEvents="",document.documentElement.style.removeProperty("--scrollbar-width"),document.body.style.overflow=t.value??"",C&&c?.(),t.value=void 0};return M(n,(v,m)=>{if(!x)return;if(!v){m&&p();return}t.value===void 0&&(t.value=document.body.style.overflow);const l=window.innerWidth-document.documentElement.clientWidth,h={padding:l,margin:0},a=o.scrollBody?.value?typeof o.scrollBody.value=="object"?R({padding:o.scrollBody.value.padding===!0?l:o.scrollBody.value.padding,margin:o.scrollBody.value.margin===!0?l:o.scrollBody.value.margin},h):h:{padding:0,margin:0};l>0&&(document.body.style.paddingRight=typeof a.padding=="number"?`${a.padding}px`:String(a.padding),document.body.style.marginRight=typeof a.margin=="number"?`${a.margin}px`:String(a.margin),document.documentElement.style.setProperty("--scrollbar-width",`${l}px`),document.body.style.overflow="hidden"),C&&(c=q(document,"touchmove",r=>ae(r),{passive:!1})),D(()=>{document.body.style.pointerEvents="none",document.body.style.overflow="hidden"})},{immediate:!0,flush:"sync"}),e});function pe(e){const t=Math.random().toString(36).substring(2,7),n=re();n.value.set(t,e??!1);const o=L({get:()=>n.value.get(t)??!1,set:c=>n.value.set(t,c)});return N(()=>{n.value.delete(t)}),o}function W(e){const t=window.getComputedStyle(e);if(t.overflowX==="scroll"||t.overflowY==="scroll"||t.overflowX==="auto"&&e.clientWidth<e.scrollWidth||t.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const n=e.parentNode;return!(n instanceof Element)||n.tagName==="BODY"?!1:W(n)}}function ae(e){const t=e||window.event,n=t.target;return n instanceof Element&&W(n)?!1:t.touches.length>1?!0:(t.preventDefault&&t.cancelable&&t.preventDefault(),!1)}var oe=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},g=new WeakMap,w=new WeakMap,S={},O=0,P=function(e){return e&&(e.host||P(e.parentNode))},se=function(e,t){return t.map(function(n){if(e.contains(n))return n;var o=P(n);return o&&e.contains(o)?o:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},ue=function(e,t,n,o){var c=se(t,Array.isArray(e)?e:[e]);S[n]||(S[n]=new WeakMap);var p=S[n],v=[],m=new Set,l=new Set(c),h=function(r){!r||m.has(r)||(m.add(r),h(r.parentNode))};c.forEach(h);var a=function(r){!r||l.has(r)||Array.prototype.forEach.call(r.children,function(s){if(m.has(s))a(s);else try{var d=s.getAttribute(o),u=d!==null&&d!=="false",i=(g.get(s)||0)+1,f=(p.get(s)||0)+1;g.set(s,i),p.set(s,f),v.push(s),i===1&&u&&w.set(s,!0),f===1&&s.setAttribute(n,"true"),u||s.setAttribute(o,"true")}catch(y){console.error("aria-hidden: cannot operate on ",s,y)}})};return a(t),m.clear(),O++,function(){v.forEach(function(r){var s=g.get(r)-1,d=p.get(r)-1;g.set(r,s),p.set(r,d),s||(w.has(r)||r.removeAttribute(o),w.delete(r)),d||r.removeAttribute(n)}),O--,O||(g=new WeakMap,g=new WeakMap,w=new WeakMap,S={})}},ie=function(e,t,n){n===void 0&&(n="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),c=oe(e);return c?(o.push.apply(o,Array.from(c.querySelectorAll("[aria-live], script"))),ue(o,c,n,"aria-hidden")):function(){return null}};function me(e){let t;M(()=>H(e),n=>{n?t=ie(n):t&&t()}),I(()=>{t&&t()})}const ce=$(()=>E([]));function le(){const e=ce();return{add(t){const n=e.value[0];t!==n&&n?.pause(),e.value=_(e.value,t),e.value.unshift(t)},remove(t){e.value=_(e.value,t),e.value[0]?.resume()}}}function _(e,t){const n=[...e],o=n.indexOf(t);return o!==-1&&n.splice(o,1),n}function de(e){return e.filter(t=>t.tagName!=="A")}var fe=Y({__name:"FocusScope",props:{loop:{type:Boolean,required:!1,default:!1},trapped:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["mountAutoFocus","unmountAutoFocus"],setup(e,{emit:t}){const n=e,o=t,{currentRef:c,currentElement:p}=j(),v=E(null),m=le(),l=X({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}});B(a=>{if(!x)return;const r=p.value;if(!n.trapped)return;function s(f){if(l.paused||!r)return;const y=f.target;r.contains(y)?v.value=y:b(v.value,{select:!0})}function d(f){if(l.paused||!r)return;const y=f.relatedTarget;y!==null&&(r.contains(y)||b(v.value,{select:!0}))}function u(f){r.contains(v.value)||b(r)}document.addEventListener("focusin",s),document.addEventListener("focusout",d);const i=new MutationObserver(u);r&&i.observe(r,{childList:!0,subtree:!0}),a(()=>{document.removeEventListener("focusin",s),document.removeEventListener("focusout",d),i.disconnect()})}),B(async a=>{const r=p.value;if(await D(),!r)return;m.add(l);const s=F();if(!r.contains(s)){const u=new CustomEvent(A,T);r.addEventListener(A,i=>o("mountAutoFocus",i)),r.dispatchEvent(u),u.defaultPrevented||(ee(de(te(r)),{select:!0}),F()===s&&b(r))}a(()=>{r.removeEventListener(A,f=>o("mountAutoFocus",f));const u=new CustomEvent(k,T),i=f=>{o("unmountAutoFocus",f)};r.addEventListener(k,i),r.dispatchEvent(u),setTimeout(()=>{u.defaultPrevented||b(s??document.body,{select:!0}),r.removeEventListener(k,i),m.remove(l)},0)})});function h(a){if(!n.loop&&!n.trapped||l.paused)return;const r=a.key==="Tab"&&!a.altKey&&!a.ctrlKey&&!a.metaKey,s=F();if(r&&s){const d=a.currentTarget,[u,i]=ne(d);u&&i?!a.shiftKey&&s===i?(a.preventDefault(),n.loop&&b(u,{select:!0})):a.shiftKey&&s===u&&(a.preventDefault(),n.loop&&b(i,{select:!0})):s===d&&a.preventDefault()}}return(a,r)=>(G(),z(J(Q),{ref_key:"currentRef",ref:c,tabindex:"-1","as-child":a.asChild,as:a.as,onKeydown:h},{default:V(()=>[Z(a.$slots,"default")]),_:3},8,["as-child","as"]))}}),ye=fe;export{ye as F,pe as a,me as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{W as f,i as b,M as l,o as h,r as a,$ as i,ap as r}from"./
|
|
1
|
+
import{W as f,i as b,M as l,o as h,r as a,$ as i,ap as r}from"./CBqC92gC.js";const u={base:"ms-4 border-s border-default ps-8 [counter-reset:step]",variants:{level:{2:"[&>h2]:[counter-increment:step] [&>h2]:relative [&>h2]:before:absolute [&>h2]:before:size-8 [&>h2]:before:bg-elevated [&>h2]:before:rounded-full [&>h2]:before:font-semibold [&>h2]:before:text-sm [&>h2]:before:tabular-nums [&>h2]:before:inline-flex [&>h2]:before:items-center [&>h2]:before:justify-center [&>h2]:before:ring-4 [&>h2]:before:ring-bg [&>h2]:before:-ms-[48.5px] [&>h2]:before:-mt-0 [&>h2]:before:content-[counter(step)] [&>h2>a>span.absolute]:hidden",3:"[&>h3]:[counter-increment:step] [&>h3]:relative [&>h3]:before:absolute [&>h3]:before:size-7 [&>h3]:before:inset-x-0.5 [&>h3]:before:bg-elevated [&>h3]:before:rounded-full [&>h3]:before:font-semibold [&>h3]:before:text-sm [&>h3]:before:tabular-nums [&>h3]:before:inline-flex [&>h3]:before:items-center [&>h3]:before:justify-center [&>h3]:before:ring-4 [&>h3]:before:ring-bg [&>h3]:before:-ms-[48.5px] [&>h3]:before:content-[counter(step)] [&>h3>a>span.absolute]:hidden",4:"[&>h4]:[counter-increment:step] [&>h4]:relative [&>h4]:before:absolute [&>h4]:before:size-7 [&>h4]:before:inset-x-0.5 [&>h4]:before:bg-elevated [&>h4]:before:rounded-full [&>h4]:before:font-semibold [&>h4]:before:text-sm [&>h4]:before:tabular-nums [&>h4]:before:inline-flex [&>h4]:before:items-center [&>h4]:before:justify-center [&>h4]:before:ring-4 [&>h4]:before:ring-bg [&>h4]:before:-ms-[48.5px] [&>h4]:before:content-[counter(step)] [&>h4>a>span.absolute]:hidden"}},defaultVariants:{level:"3"}},d={__name:"ProseSteps",props:{level:{type:null,required:!1},class:{type:null,required:!1}},setup(o){const e=o,t=f(),s=b(()=>r({extend:r(u),...t.ui?.prose?.steps||{}}));return(n,c)=>(h(),l("div",{class:i(s.value({class:e.class,level:e.level}))},[a(n.$slots,"default")],2))}};export{d as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{W as r,i as p,M as n,o as c,r as d,$ as i,ap as e}from"./
|
|
1
|
+
import{W as r,i as p,M as n,o as c,r as d,$ as i,ap as e}from"./CBqC92gC.js";const u={base:"py-3 px-4 text-sm text-left align-top border-e border-b first:border-s border-muted [&_code]:text-xs/5 [&_p]:my-0 [&_p]:leading-6 [&_ul]:my-0 [&_ol]:my-0 [&_ul]:ps-4.5 [&_ol]:ps-4.5 [&_li]:leading-6 [&_li]:my-0.5"},f={__name:"ProseTd",props:{class:{type:null,required:!1}},setup(s){const t=s,o=r(),a=p(()=>e({extend:e(u),...o.ui?.prose?.td||{}}));return(l,m)=>(c(),n("td",{class:i(a.value({class:t.class}))},[d(l.$slots,"default")],2))}};export{f as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{W as r,i,c as n,o as u,w as c,r as p,$ as d,a as f,P as m,ap as e}from"./
|
|
1
|
+
import{W as r,i,c as n,o as u,w as c,r as p,$ as d,a as f,P as m,ap as e}from"./CBqC92gC.js";const v={base:"my-5 divide-y divide-default *:not-last:pb-5"},_={__name:"ProseFieldGroup",props:{as:{type:null,required:!1},class:{type:null,required:!1}},setup(s){const a=s,t=r(),l=i(()=>e({extend:e(v),...t.ui?.prose?.fieldGroup||{}}));return(o,y)=>(u(),n(f(m),{as:s.as,class:d(l.value({class:a.class}))},{default:c(()=>[p(o.$slots,"default")]),_:3},8,["as","class"]))}};export{_ as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a7 as s}from"./
|
|
1
|
+
import{a7 as s}from"./CBqC92gC.js";function r(e,i,o){const t=e.findIndex(n=>s(n,i)),d=e.findIndex(n=>s(n,o));if(t===-1||d===-1)return[];const[x,f]=[t,d].sort((n,I)=>n-I);return e.slice(x,f+1)}export{r as f};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as s,aS as w,a7 as I,d as m,aQ as x,aR as R,u as A,c as g,o as _,w as y,r as b,a as o,P as k,bm as O}from"./
|
|
1
|
+
import{i as s,aS as w,a7 as I,d as m,aQ as x,aR as R,u as A,c as g,o as _,w as y,r as b,a as o,P as k,bm as O}from"./CBqC92gC.js";import{b as E,a as M,C as D}from"./DkAUrkyD.js";import{u as T}from"./BoqEl-F1.js";import{u as H}from"./B9OPrqTh.js";import{i as K}from"./49whOfsW.js";import{u as P}from"./C6Y-ieo6.js";function $({type:t,defaultValue:l,modelValue:a}){const e=a||l;return a!==void 0||l!==void 0?Array.isArray(e)?"multiple":"single":t??"single"}function j({type:t,defaultValue:l,modelValue:a}){return t||$({type:t,defaultValue:l,modelValue:a})}function F({type:t,defaultValue:l}){return l!==void 0?l:t==="single"?void 0:[]}function N(t,l){const a=s(()=>j(t)),e=w(t,"modelValue",l,{defaultValue:F(t),passive:t.modelValue===void 0,deep:!0});function n(i){if(a.value==="single")e.value=I(i,e.value)?void 0:i;else{const d=Array.isArray(e.value)?[...e.value||[]]:[e.value].filter(Boolean);if(K(d,i)){const u=d.findIndex(p=>I(p,i));d.splice(u,1)}else d.push(i);e.value=d}}const r=s(()=>a.value==="single");return{modelValue:e,changeModelValue:n,isSingle:r}}const[q,Q]=x("AccordionRoot");var z=m({__name:"AccordionRoot",props:{collapsible:{type:Boolean,required:!1,default:!1},disabled:{type:Boolean,required:!1,default:!1},dir:{type:String,required:!1},orientation:{type:String,required:!1,default:"vertical"},unmountOnHide:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},type:{type:String,required:!1},modelValue:{type:null,required:!1},defaultValue:{type:null,required:!1}},emits:["update:modelValue"],setup(t,{emit:l}){const a=t,e=l,{dir:n,disabled:r,unmountOnHide:i}=R(a),d=H(n),{modelValue:u,changeModelValue:p,isSingle:h}=N(a,e),{forwardRef:c,currentElement:f}=A();return Q({disabled:r,direction:d,orientation:a.orientation,parentElement:f,isSingle:h,collapsible:a.collapsible,modelValue:u,changeModelValue:p,unmountOnHide:i}),(v,B)=>(_(),g(o(k),{ref:o(c),"as-child":v.asChild,as:v.as},{default:y(()=>[b(v.$slots,"default",{modelValue:o(u)})]),_:3},8,["as-child","as"]))}}),te=z,C=(function(t){return t.Open="open",t.Closed="closed",t})(C||{});const[V,G]=x("AccordionItem");var J=m({__name:"AccordionItem",props:{disabled:{type:Boolean,required:!1},value:{type:String,required:!0},unmountOnHide:{type:Boolean,required:!1,default:void 0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(t,{expose:l}){const a=t,e=q(),n=s(()=>e.isSingle.value?a.value===e.modelValue.value:Array.isArray(e.modelValue.value)&&e.modelValue.value.includes(a.value)),r=s(()=>e.disabled.value||a.disabled),i=s(()=>r.value?"":void 0),d=s(()=>n.value?C.Open:C.Closed);l({open:n,dataDisabled:i});const{currentRef:u,currentElement:p}=A();G({open:n,dataState:d,disabled:r,dataDisabled:i,triggerId:"",currentRef:u,currentElement:p,value:s(()=>a.value)});function h(c){const f=c.target;if(Array.from(e.parentElement.value?.querySelectorAll("[data-reka-collection-item]")??[]).findIndex(S=>S===f)===-1)return null;P(c,f,e.parentElement.value,{arrowKeyOptions:e.orientation,dir:e.direction.value,focus:!0})}return(c,f)=>(_(),g(o(E),{"data-orientation":o(e).orientation,"data-disabled":i.value,"data-state":d.value,disabled:r.value,open:n.value,as:a.as,"as-child":a.asChild,"unmount-on-hide":a.unmountOnHide??o(e).unmountOnHide.value,onKeydown:O(h,["up","down","left","right","home","end"])},{default:y(()=>[b(c.$slots,"default",{open:n.value})]),_:3},8,["data-orientation","data-disabled","data-state","disabled","open","as","as-child","unmount-on-hide"]))}}),oe=J,L=m({__name:"AccordionContent",props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(t){const l=t,a=q(),e=V();return A(),(n,r)=>(_(),g(o(M),{role:"region","as-child":l.asChild,as:n.as,"force-mount":l.forceMount,"aria-labelledby":o(e).triggerId,"data-state":o(e).dataState.value,"data-disabled":o(e).dataDisabled.value,"data-orientation":o(a).orientation,style:{"--reka-accordion-content-width":"var(--reka-collapsible-content-width)","--reka-accordion-content-height":"var(--reka-collapsible-content-height)"},onContentFound:r[0]||(r[0]=i=>o(a).changeModelValue(o(e).value.value))},{default:y(()=>[b(n.$slots,"default")]),_:3},8,["as-child","as","force-mount","aria-labelledby","data-state","data-disabled","data-orientation"]))}}),le=L,U=m({__name:"AccordionTrigger",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(t){const l=t,a=q(),e=V();e.triggerId||=T(void 0,"reka-accordion-trigger");function n(){const r=a.isSingle.value&&e.open.value&&!a.collapsible;e.disabled.value||r||a.changeModelValue(e.value.value)}return(r,i)=>(_(),g(o(D),{id:o(e).triggerId,ref:o(e).currentRef,"data-reka-collection-item":"",as:l.as,"as-child":l.asChild,"aria-disabled":o(e).disabled.value||void 0,"aria-expanded":o(e).open.value||!1,"data-disabled":o(e).dataDisabled.value,"data-orientation":o(a).orientation,"data-state":o(e).dataState.value,disabled:o(e).disabled.value,onClick:n},{default:y(()=>[b(r.$slots,"default")]),_:3},8,["id","as","as-child","aria-disabled","aria-expanded","data-disabled","data-orientation","data-state","disabled"]))}}),ne=U;export{oe as A,V as a,ne as b,le as c,te as d,q as i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{be as g,i as o,an as u,C as d,W as p,ap as s,c as v,o as f,w as b,r as m,ab as x,af as y,a as i,$ as w,P as h}from"./
|
|
1
|
+
import{be as g,i as o,an as u,C as d,W as p,ap as s,c as v,o as f,w as b,r as m,ab as x,af as y,a as i,$ as w,P as h}from"./CBqC92gC.js";const a={meta:"",ctrl:"",alt:"",win:"⊞",command:"⌘",shift:"⇧",control:"⌃",option:"⌥",enter:"↵",delete:"⌦",backspace:"⌫",escape:"Esc",tab:"⇥",capslock:"⇪",arrowup:"↑",arrowright:"→",arrowdown:"↓",arrowleft:"←",pageup:"⇞",pagedown:"⇟",home:"↖",end:"↘"},K=()=>{const e=o(()=>navigator&&navigator.userAgent&&navigator.userAgent.match(/Macintosh;/)),r=u({meta:" ",alt:" ",ctrl:" "});d(()=>{r.meta=e.value?a.command:"Ctrl",r.ctrl=e.value?a.control:"Ctrl",r.alt=e.value?a.option:"Alt"});function n(t){if(t)return["meta","alt","ctrl"].includes(t)?r[t]:a[t]||t}return{macOS:e,getKbdKey:n}},k=g(K),C={base:"inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase",variants:{color:{primary:"",secondary:"",success:"",info:"",warning:"",error:"",neutral:""},variant:{solid:"",outline:"",soft:"",subtle:""},size:{sm:"h-4 min-w-[16px] text-[10px]",md:"h-5 min-w-[20px] text-[11px]",lg:"h-6 min-w-[24px] text-[12px]"}},compoundVariants:[{color:"primary",variant:"solid",class:"text-inverted bg-primary"},{color:"secondary",variant:"solid",class:"text-inverted bg-secondary"},{color:"success",variant:"solid",class:"text-inverted bg-success"},{color:"info",variant:"solid",class:"text-inverted bg-info"},{color:"warning",variant:"solid",class:"text-inverted bg-warning"},{color:"error",variant:"solid",class:"text-inverted bg-error"},{color:"primary",variant:"outline",class:"ring ring-inset ring-primary/50 text-primary"},{color:"secondary",variant:"outline",class:"ring ring-inset ring-secondary/50 text-secondary"},{color:"success",variant:"outline",class:"ring ring-inset ring-success/50 text-success"},{color:"info",variant:"outline",class:"ring ring-inset ring-info/50 text-info"},{color:"warning",variant:"outline",class:"ring ring-inset ring-warning/50 text-warning"},{color:"error",variant:"outline",class:"ring ring-inset ring-error/50 text-error"},{color:"primary",variant:"soft",class:"text-primary bg-primary/10"},{color:"secondary",variant:"soft",class:"text-secondary bg-secondary/10"},{color:"success",variant:"soft",class:"text-success bg-success/10"},{color:"info",variant:"soft",class:"text-info bg-info/10"},{color:"warning",variant:"soft",class:"text-warning bg-warning/10"},{color:"error",variant:"soft",class:"text-error bg-error/10"},{color:"primary",variant:"subtle",class:"text-primary ring ring-inset ring-primary/25 bg-primary/10"},{color:"secondary",variant:"subtle",class:"text-secondary ring ring-inset ring-secondary/25 bg-secondary/10"},{color:"success",variant:"subtle",class:"text-success ring ring-inset ring-success/25 bg-success/10"},{color:"info",variant:"subtle",class:"text-info ring ring-inset ring-info/25 bg-info/10"},{color:"warning",variant:"subtle",class:"text-warning ring ring-inset ring-warning/25 bg-warning/10"},{color:"error",variant:"subtle",class:"text-error ring ring-inset ring-error/25 bg-error/10"},{color:"neutral",variant:"solid",class:"text-inverted bg-inverted"},{color:"neutral",variant:"outline",class:"ring ring-inset ring-accented text-default bg-default"},{color:"neutral",variant:"soft",class:"text-default bg-elevated"},{color:"neutral",variant:"subtle",class:"ring ring-inset ring-accented text-default bg-elevated"}],defaultVariants:{variant:"outline",color:"neutral",size:"md"}},S={__name:"UKbd",props:{as:{type:null,required:!1,default:"kbd"},value:{type:null,required:!1},color:{type:null,required:!1},variant:{type:null,required:!1},size:{type:null,required:!1},class:{type:null,required:!1}},setup(e){const r=e,{getKbdKey:n}=k(),t=p(),c=o(()=>s({extend:s(C),...t.ui?.kbd||{}}));return(l,q)=>(f(),v(i(h),{as:e.as,class:w(c.value({class:r.class,color:r.color,variant:r.variant,size:r.size}))},{default:b(()=>[m(l.$slots,"default",{},()=>[x(y(i(n)(e.value)),1)])]),_:3},8,["as","class"]))}};export{S as _,k as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as a}from"./
|
|
1
|
+
import{r as a}from"./Zj8SE5Ja.js";import t from"./f35n4CdE.js";import{W as e,c as n,o as s,w as c,a as i}from"./CBqC92gC.js";import"./iik6CYzq.js";const d={__name:"ProseCaution",setup(p){const o=e();return(r,f)=>(s(),n(t,{color:"error",icon:i(o).ui.icons.caution},{default:c(()=>[a(r.$slots,"default",{mdcUnwrap:"p"})]),_:3},8,["icon"]))}};export{d as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ad as c,i as d,M as t,o as n,r,a as p}from"./
|
|
1
|
+
import{ad as c,i as d,M as t,o as n,r,a as p}from"./CBqC92gC.js";const u=["id"],f=["href"],k={__name:"ProseH6",props:{id:{type:String,required:!1}},setup(a){const e=a,{headings:o}=c().public.mdc,i=d(()=>e.id&&(typeof o?.anchorLinks=="boolean"&&o?.anchorLinks===!0||typeof o?.anchorLinks=="object"&&o?.anchorLinks?.h6));return(s,h)=>(n(),t("h6",{id:e.id},[e.id&&p(i)?(n(),t("a",{key:0,href:`#${e.id}`},[r(s.$slots,"default")],8,f)):r(s.$slots,"default",{key:1})],8,u))}};export{k as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as k,b as w,T,c as B,d as I}from"./
|
|
1
|
+
import{a as k,b as w,T,c as B,d as I}from"./RF9kzKHY.js";import{aU as M,ax as L,aV as q,W as $,i as b,e as z,C as U,aW as D,h as y,aX as G,c,o,w as d,Z as m,M as h,a as u,$ as i,am as x,ac as N,af as W,al as V,aY as A,ap as S}from"./CBqC92gC.js";import E from"./CF8ziKf1.js";import"./BXmijQzM.js";import"./B9OPrqTh.js";import"./Zge3ScOQ.js";import"./BoqEl-F1.js";const F={slots:{root:"relative group *:not-first:!my-0 *:not-first:!static my-5",list:"relative flex items-center gap-1 border border-muted bg-default border-b-0 rounded-t-md overflow-x-auto p-2",indicator:"absolute left-0 inset-y-2 w-(--reka-tabs-indicator-size) translate-x-(--reka-tabs-indicator-position) transition-[translate,width] duration-200 bg-elevated rounded-md shadow-xs",trigger:["relative inline-flex items-center gap-1.5 text-default data-[state=active]:text-highlighted hover:bg-elevated/50 px-2 py-1.5 text-sm rounded-md disabled:cursor-not-allowed disabled:opacity-75 focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-primary focus:outline-none","transition-colors"],triggerIcon:"size-4 shrink-0",triggerLabel:"truncate"}},H={__name:"ProseCodeGroup",props:M({defaultValue:{type:String,required:!1,default:"0"},sync:{type:String,required:!1},class:{type:null,required:!1},ui:{type:null,required:!1}},{modelValue:{type:String},modelModifiers:{}}),emits:["update:modelValue"],setup(f){const a=f,_=L(),s=q(f,"modelValue"),C=$(),r=b(()=>S({extend:S(F),...C.ui?.prose?.codeGroup||{}})()),p=z(1),g=b(()=>(p.value,_.default?.()?.flatMap(v).filter(Boolean)||[]));function v(e,t){return typeof e.type=="symbol"?e.children?.map(v):{label:e.props?.filename||e.props?.label||`${t}`,icon:e.props?.icon,component:e}}return U(()=>{if(a.sync){const e=`code-group-${a.sync}`,t=D(e,()=>localStorage.getItem(e));y(t,()=>{t.value&&(s.value=t.value)},{immediate:!0}),y(s,()=>{s.value&&(t.value=s.value,localStorage.setItem(e,s.value))})}}),G(()=>p.value++),(e,t)=>(o(),c(u(I),{modelValue:s.value,"onUpdate:modelValue":t[0]||(t[0]=l=>s.value=l),"default-value":f.defaultValue,"unmount-on-hide":!1,class:i(r.value.root({class:[a.ui?.root,a.class]}))},{default:d(()=>[m(u(T),{class:i(r.value.list({class:a.ui?.list}))},{default:d(()=>[m(u(k),{class:i(r.value.indicator({class:a.ui?.indicator}))},null,8,["class"]),(o(!0),h(V,null,x(g.value,(l,n)=>(o(),c(u(w),{key:n,value:String(n),class:i(r.value.trigger({class:a.ui?.trigger}))},{default:d(()=>[m(E,{icon:l.icon,filename:l.label,class:i(r.value.triggerIcon({class:a.ui?.triggerIcon}))},null,8,["icon","filename","class"]),N("span",{class:i(r.value.triggerLabel({class:a.ui?.triggerLabel}))},W(l.label),3)]),_:2},1032,["value","class"]))),128))]),_:1},8,["class"]),(o(!0),h(V,null,x(g.value,(l,n)=>(o(),c(u(B),{key:n,value:String(n),"as-child":""},{default:d(()=>[(o(),c(A(l.component),{"hide-header":"",tabindex:"-1"}))]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue","default-value","class"]))}};export{H as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ax as C,W as y,aG as h,aH as B,i as v,ap as u,c as p,o as d,w as l,aa as T,Z as x,a as s,r as f,$ as o,m as $,U as w,ac as b,_ as S,af as _,a_ as k}from"./
|
|
1
|
+
import{ax as C,W as y,aG as h,aH as B,i as v,ap as u,c as p,o as d,w as l,aa as T,Z as x,a as s,r as f,$ as o,m as $,U as w,ac as b,_ as S,af as _,a_ as k}from"./CBqC92gC.js";import{C as P,a as I,b as L}from"./DkAUrkyD.js";import"./BoqEl-F1.js";const O={slots:{root:"",content:"data-[state=open]:animate-[collapsible-down_200ms_ease-out] data-[state=closed]:animate-[collapsible-up_200ms_ease-out] overflow-hidden"}},H={__name:"UCollapsible",props:{as:{type:null,required:!1},class:{type:null,required:!1},ui:{type:null,required:!1},defaultOpen:{type:Boolean,required:!1},open:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},unmountOnHide:{type:Boolean,required:!1,default:!0}},emits:["update:open"],setup(n,{emit:e}){const t=n,r=e,a=C(),c=y(),m=h(B(t,"as","defaultOpen","open","disabled","unmountOnHide"),r),i=v(()=>u({extend:u(O),...c.ui?.collapsible||{}})());return(g,U)=>(d(),p(s(L),$(s(m),{"data-slot":"root",class:i.value.root({class:[t.ui?.root,t.class]})}),{default:l(({open:q})=>[a.default?(d(),p(s(P),{key:0,"as-child":""},{default:l(()=>[f(g.$slots,"default",{open:q})]),_:2},1024)):T("",!0),x(s(I),{"data-slot":"content",class:o(i.value.content({class:t.ui?.content}))},{default:l(()=>[f(g.$slots,"content")]),_:3},8,["class"])]),_:3},16,["class"]))}},N={slots:{root:"my-5",trigger:["group relative rounded-xs inline-flex items-center gap-1.5 text-muted hover:text-default text-sm focus-visible:ring-2 focus-visible:ring-primary focus:outline-none","transition-colors"],triggerIcon:"size-4 shrink-0 group-data-[state=open]:rotate-180 transition-transform duration-200",triggerLabel:"truncate",content:"*:first:mt-2.5 *:last:mb-0 *:my-1.5"}},A={__name:"ProseCollapsible",props:{icon:{type:null,required:!1},name:{type:String,required:!1},openText:{type:String,required:!1},closeText:{type:String,required:!1},class:{type:null,required:!1},ui:{type:void 0,required:!1}},setup(n){const e=n,{t}=w(),r=y(),a=v(()=>u({extend:u(N),...r.ui?.prose?.collapsible||{}})());return(c,m)=>(d(),p(H,{"unmount-on-hide":!1,class:o(e.class),ui:s(k)(a.value,e.ui)},{default:l(({open:i})=>[b("button",{class:o(a.value.trigger({class:e.ui?.trigger}))},[x(S,{name:n.icon||s(r).ui.icons.chevronDown,class:o(a.value.triggerIcon({class:e.ui?.triggerIcon}))},null,8,["name","class"]),b("span",{class:o(a.value.triggerLabel({class:e.ui?.triggerLabel}))},_(i?e.closeText||s(t)("prose.collapsible.closeText"):e.openText||s(t)("prose.collapsible.openText"))+" "+_(e.name||s(t)("prose.collapsible.name")),3)],2)]),content:l(()=>[f(c.$slots,"default")]),_:3},8,["class","ui"]))}};export{A as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aU as F,ax as P,aV as O,ah as A,U as H,W as T,i as y,h as I,au as E,aZ as Z,M as _,o as g,Z as t,w as o,r as s,a as l,ac as m,c as b,aa as h,$ as n,m as q,P as w,aL as G,aM as W,al as J,ap as v,bE as K,a0 as R,aC as Q,ab as X,af as Y,d as ee,ag as te,_ as ae}from"./
|
|
1
|
+
import{aU as F,ax as P,aV as O,ah as A,U as H,W as T,i as y,h as I,au as E,aZ as Z,M as _,o as g,Z as t,w as o,r as s,a as l,ac as m,c as b,aa as h,$ as n,m as q,P as w,aL as G,aM as W,al as J,ap as v,bE as K,a0 as R,aC as Q,ab as X,af as Y,d as ee,ag as te,_ as ae}from"./CBqC92gC.js";import{_ as le}from"./BDzVzzBM.js";import{c as C}from"./DUf0f355.js";import{_ as N}from"./CRLO8tx3.js";import{_ as se}from"./Dn7zgQZh.js";import{_ as oe}from"./CE491BHV.js";import{_ as ne}from"./nRp8uM7H.js";import{_ as ie}from"./OwiFxd0L.js";import"./DvZW6QuM.js";import"./BoqEl-F1.js";import"./iIxC-lNx.js";import"./Cyo4VJ6S.js";import"./CN_jZBEh.js";import"./CTIUqf4N.js";const re={slots:{root:"bg-default/75 backdrop-blur border-b border-default h-(--ui-header-height) sticky top-0 z-50",container:"flex items-center justify-between gap-3 h-full",left:"lg:flex-1 flex items-center gap-1.5",center:"hidden lg:flex",right:"flex items-center justify-end lg:flex-1 gap-1.5",title:"shrink-0 font-bold text-xl text-highlighted flex items-end gap-1.5",toggle:"lg:hidden",content:"lg:hidden",overlay:"lg:hidden",header:"px-4 sm:px-6 h-(--ui-header-height) shrink-0 flex items-center justify-between gap-3",body:"p-4 sm:p-6 overflow-y-auto"},variants:{toggleSide:{left:{toggle:"-ms-1.5"},right:{toggle:"-me-1.5"}}}},ue=Object.assign({inheritAttrs:!1},{__name:"UHeader",props:F({as:{type:null,required:!1,default:"header"},title:{type:String,required:!1,default:"Nuxt UI"},to:{type:String,required:!1,default:"/"},mode:{type:null,required:!1,default:"modal"},menu:{type:null,required:!1},toggle:{type:[Boolean,Object],required:!1,default:!0},toggleSide:{type:String,required:!1,default:"right"},class:{type:null,required:!1},ui:{type:null,required:!1}},{open:{type:Boolean,default:!1},openModifiers:{}}),emits:["update:open"],setup(a){const e=a,d=P(),i=O(a,"open",{type:Boolean,default:!1}),r=A(),{t:u}=H(),p=T(),[S,$]=C(),[x,k]=C(),[V,j]=C(),L=y(()=>(d.title&&K(d.title())||e.title||"Nuxt UI").trim());I(()=>r.fullPath,()=>{i.value=!1});const f=y(()=>v({extend:v(re),...p.ui?.header||{}})()),D=y(()=>({slideover:se,modal:oe,drawer:ne})[e.mode]),z=E(()=>Z(e.menu,{content:{onOpenAutoFocus:c=>c.preventDefault()}},e.mode==="modal"?{fullscreen:!0,transition:!1}:{}));function B(){i.value=!i.value}return(c,M)=>(g(),_(J,null,[t(l(V),null,{default:o(()=>[s(c.$slots,"toggle",{open:i.value,toggle:B,ui:f.value},()=>[a.toggle?(g(),b(R,q({key:0,color:"neutral",variant:"ghost","aria-label":i.value?l(u)("header.close"):l(u)("header.open"),icon:i.value?l(p).ui.icons.close:l(p).ui.icons.menu},typeof a.toggle=="object"?a.toggle:{},{"data-slot":"toggle",class:f.value.toggle({class:e.ui?.toggle,toggleSide:a.toggleSide}),onClick:B}),null,16,["aria-label","icon","class"])):h("",!0)])]),_:3}),t(l(S),null,{default:o(()=>[m("div",{"data-slot":"left",class:n(f.value.left({class:e.ui?.left}))},[a.toggleSide==="left"?(g(),b(l(j),{key:0})):h("",!0),s(c.$slots,"left",{},()=>[t(Q,{to:a.to,"aria-label":L.value,"data-slot":"title",class:n(f.value.title({class:e.ui?.title}))},{default:o(()=>[s(c.$slots,"title",{},()=>[X(Y(a.title),1)])]),_:3},8,["to","aria-label","class"])])],2)]),_:3}),t(l(x),null,{default:o(()=>[m("div",{"data-slot":"right",class:n(f.value.right({class:e.ui?.right}))},[s(c.$slots,"right"),a.toggleSide==="right"?(g(),b(l(j),{key:0})):h("",!0)],2)]),_:3}),t(l(w),q({as:a.as},c.$attrs,{"data-slot":"root",class:f.value.root({class:[e.ui?.root,e.class]})}),{default:o(()=>[s(c.$slots,"top"),t(N,{"data-slot":"container",class:n(f.value.container({class:e.ui?.container}))},{default:o(()=>[t(l($)),m("div",{"data-slot":"center",class:n(f.value.center({class:e.ui?.center}))},[s(c.$slots,"default")],2),t(l(k))]),_:3},8,["class"]),s(c.$slots,"bottom")]),_:3},16,["as","class"]),t(l(D),q({open:i.value,"onUpdate:open":M[0]||(M[0]=U=>i.value=U),title:l(u)("header.title"),description:l(u)("header.description")},z.value,{ui:{overlay:f.value.overlay({class:e.ui?.overlay}),content:f.value.content({class:e.ui?.content})}}),{content:o(U=>[s(c.$slots,"content",G(W(U)),()=>[a.mode!=="drawer"?(g(),_("div",{key:0,"data-slot":"header",class:n(f.value.header({class:e.ui?.header}))},[t(l($)),t(l(k))],2)):h("",!0),m("div",{"data-slot":"body",class:n(f.value.body({class:e.ui?.body}))},[s(c.$slots,"body")],2)])]),_:3},16,["open","title","description","ui"])],64))}}),ce={base:"min-h-[calc(100vh-var(--ui-header-height))]"},de={__name:"UMain",props:{as:{type:null,required:!1},class:{type:null,required:!1}},setup(a){const e=a,d=T(),i=y(()=>v({extend:v(ce),...d.ui?.main||{}}));return(r,u)=>(g(),b(l(w),{as:a.as,class:n(i.value({class:e.class}))},{default:o(()=>[s(r.$slots,"default")]),_:3},8,["as","class"]))}},fe={slots:{root:"",top:"py-8 lg:py-12",bottom:"py-8 lg:py-12",container:"py-8 lg:py-4 lg:flex lg:items-center lg:justify-between lg:gap-x-3",left:"flex items-center justify-center lg:justify-start lg:flex-1 gap-x-1.5 mt-3 lg:mt-0 lg:order-1",center:"mt-3 lg:mt-0 lg:order-2 flex items-center justify-center",right:"lg:flex-1 flex items-center justify-center lg:justify-end gap-x-1.5 lg:order-3"}},ge={__name:"UFooter",props:{as:{type:null,required:!1,default:"footer"},class:{type:null,required:!1},ui:{type:null,required:!1}},setup(a){const e=a,d=P(),i=T(),r=y(()=>v({extend:v(fe),...i.ui?.footer||{}})());return(u,p)=>(g(),b(l(w),{as:a.as,"data-slot":"root",class:n(r.value.root({class:[e.ui?.root,e.class]}))},{default:o(()=>[d.top?(g(),_("div",{key:0,"data-slot":"top",class:n(r.value.top({class:e.ui?.top}))},[s(u.$slots,"top")],2)):h("",!0),t(N,{"data-slot":"container",class:n(r.value.container({class:e.ui?.container}))},{default:o(()=>[m("div",{"data-slot":"right",class:n(r.value.right({class:e.ui?.right}))},[s(u.$slots,"right")],2),m("div",{"data-slot":"center",class:n(r.value.center({class:e.ui?.center}))},[s(u.$slots,"default")],2),m("div",{"data-slot":"left",class:n(r.value.left({class:e.ui?.left}))},[s(u.$slots,"left")],2)]),_:3},8,["class"]),d.bottom?(g(),_("div",{key:1,"data-slot":"bottom",class:n(r.value.bottom({class:e.ui?.bottom}))},[s(u.$slots,"bottom")],2)):h("",!0)]),_:3},8,["as","class"]))}},Te=ee({__name:"view",setup(a){return(e,d)=>{const i=ae,r=te,u=le,p=ue,S=de,$=ie,x=R,k=ge;return g(),_("div",null,[t(p,null,{left:o(()=>[t(r,{to:"/",class:"flex items-center gap-2"},{default:o(()=>[t(i,{name:"i-lucide-brain",class:"size-6 text-primary"}),d[0]||(d[0]=m("span",{class:"font-semibold"},"Cognova",-1))]),_:1})]),right:o(()=>[t(u)]),_:1}),t(S,null,{default:o(()=>[s(e.$slots,"default")]),_:3}),t($,{icon:"i-lucide-brain",ui:{icon:"text-primary"}}),t(k,null,{left:o(()=>[...d[1]||(d[1]=[m("p",{class:"text-muted text-sm"}," Shared via Cognova ",-1)])]),right:o(()=>[t(x,{icon:"i-simple-icons-github",to:"https://github.com/Patrity/cognova",target:"_blank","aria-label":"View on GitHub",color:"neutral",variant:"ghost"}),t(x,{icon:"i-simple-icons-x",to:"https://x.com/Patrity/",target:"_blank","aria-label":"View Twitter",color:"neutral",variant:"ghost"})]),_:1})])}}});export{Te as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{W as o,i as t,c as r,o as l,$ as i,_ as p,ap as e}from"./
|
|
1
|
+
import{W as o,i as t,c as r,o as l,$ as i,_ as p,ap as e}from"./CBqC92gC.js";const u={base:"size-4 shrink-0 align-sub"},d={__name:"ProseIcon",props:{name:{type:String,required:!0},class:{type:null,required:!1}},setup(s){const a=s,n=o(),c=t(()=>e({extend:e(u),...n.ui?.prose?.icon||{}}));return(m,f)=>(l(),r(p,{name:s.name,class:i(c.value({class:a.class}))},null,8,["name","class"]))}};export{d as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{W as r,i as c,M as n,o as p,r as u,$ as m,ap as s}from"./
|
|
1
|
+
import{W as r,i as c,M as n,o as p,r as u,$ as m,ap as s}from"./CBqC92gC.js";const i={base:"list-decimal ps-6 my-5 marker:text-muted"},_={__name:"ProseOl",props:{class:{type:null,required:!1}},setup(e){const a=e,t=r(),o=c(()=>s({extend:s(i),...t.ui?.prose?.ol||{}}));return(l,d)=>(p(),n("ol",{class:m(o.value({class:a.class}))},[u(l.$slots,"default")],2))}};export{_ as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{W as n,i as r,M as p,o as c,r as i,$ as u,ap as s}from"./
|
|
1
|
+
import{W as n,i as r,M as p,o as c,r as i,$ as u,ap as s}from"./CBqC92gC.js";const m={base:"my-1.5 ps-1.5 leading-7 [&>ul]:my-0"},_={__name:"ProseLi",props:{class:{type:null,required:!1}},setup(e){const a=e,o=n(),l=r(()=>s({extend:s(m),...o.ui?.prose?.li||{}}));return(t,d)=>(c(),p("li",{class:u(l.value({class:a.class}))},[i(t.$slots,"default")],2))}};export{_ as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as G,e as K,h as H,i as W,s as S,d as I,j as se,t as D,k as T,l as ie,p as re,f as U,q as ue,v as j,x as le,y as ae,z as ce,A as Q,B as Z,C as de,D as fe,E as ve,F as pe,G as L,H as me,I as ge,a as he,J as we}from"./BOCn_SGf.js";function Ne(e={}){const{inheritAttrs:n=!0}=e,o=S(),l=I({setup(t,{slots:u}){return()=>{o.value=u.default}}}),r=I({inheritAttrs:n,props:e.props,setup(t,{attrs:u,slots:d}){return()=>{var a;if(!o.value)throw new Error("[VueUse] Failed to find the definition of reusable template");const i=(a=o.value)===null||a===void 0?void 0:a.call(o,{...e.props==null?ye(u):t,$slots:d});return n&&i?.length===1?i[0]:i}}});return se({define:l,reuse:r},[l,r])}function ye(e){const n={};for(const o in e)n[ce(o)]=e[o];return n}const _=Q?window:void 0,ee=Q?window.navigator:void 0;function R(e){var n;const o=T(e);return(n=o?.$el)!==null&&n!==void 0?n:o}function $(...e){const n=(l,r,t,u)=>(l.addEventListener(r,t,u),()=>l.removeEventListener(r,t,u)),o=W(()=>{const l=D(T(e[0])).filter(r=>r!=null);return l.every(r=>typeof r!="string")?l:void 0});return ie(()=>{var l,r;return[(l=(r=o.value)===null||r===void 0?void 0:r.map(t=>R(t)))!==null&&l!==void 0?l:[_].filter(t=>t!=null),D(T(o.value?e[1]:e[0])),D(he(o.value?e[2]:e[1])),T(o.value?e[3]:e[2])]},([l,r,t,u],d,a)=>{if(!l?.length||!r?.length||!t?.length)return;const i=ge(u)?{...u}:u,c=l.flatMap(s=>r.flatMap(v=>t.map(g=>n(s,v,g,i))));a(()=>{c.forEach(s=>s())})},{flush:"post"})}function be(){const e=S(!1),n=G();return n&&de(()=>{e.value=!0},n),e}function P(e){const n=be();return W(()=>(n.value,!!e()))}function te(e,n,o={}){const{window:l=_,...r}=o;let t;const u=P(()=>l&&"MutationObserver"in l),d=()=>{t&&(t.disconnect(),t=void 0)},a=H(W(()=>{const s=D(T(e)).map(R).filter(me);return new Set(s)}),s=>{d(),u.value&&s.size&&(t=new MutationObserver(n),s.forEach(v=>t.observe(v,r)))},{immediate:!0,flush:"post"}),i=()=>t?.takeRecords(),c=()=>{a(),d()};return L(c),{isSupported:u,stop:c,takeRecords:i}}function Se(e,n,o={}){const{window:l=_,document:r=l?.document,flush:t="sync"}=o;if(!l||!r)return ve;let u;const d=c=>{u?.(),u=c},a=pe(()=>{const c=R(e);if(c){const{stop:s}=te(r,v=>{v.map(g=>[...g.removedNodes]).flat().some(g=>g===c||g.contains(c))&&n(v)},{window:l,childList:!0,subtree:!0});d(s)}},{flush:t}),i=()=>{a(),d()};return L(i),i}function Ae(e={}){var n;const{window:o=_,deep:l=!0,triggerOnRemoval:r=!1}=e,t=(n=e.document)!==null&&n!==void 0?n:o?.document,u=()=>{let i=t?.activeElement;if(l)for(var c;i?.shadowRoot;)i=i==null||(c=i.shadowRoot)===null||c===void 0?void 0:c.activeElement;return i},d=S(),a=()=>{d.value=u()};if(o){const i={capture:!0,passive:!0};$(o,"blur",c=>{c.relatedTarget===null&&a()},i),$(o,"focus",a,i)}return r&&Se(d,a,{document:t}),a(),d}function k(e,n={}){const{controls:o=!1,navigator:l=ee}=n,r=P(()=>l&&"permissions"in l),t=S(),u=typeof e=="string"?{name:e}:e,d=S(),a=()=>{var c,s;d.value=(c=(s=t.value)===null||s===void 0?void 0:s.state)!==null&&c!==void 0?c:"prompt"};$(t,"change",a,{passive:!0});const i=fe(async()=>{if(r.value){if(!t.value)try{t.value=await l.permissions.query(u)}catch{t.value=void 0}finally{a()}if(o)return we(t.value)}});return i(),o?{state:d,isSupported:r,query:i}:d}function Te(e={}){const{navigator:n=ee,read:o=!1,source:l,copiedDuring:r=1500,legacy:t=!1}=e,u=P(()=>n&&"clipboard"in n),d=k("clipboard-read"),a=k("clipboard-write"),i=W(()=>u.value||t),c=S(""),s=S(!1),v=re(()=>s.value=!1,r,{immediate:!1});async function g(){let f=!(u.value&&b(d.value));if(!f)try{c.value=await n.clipboard.readText()}catch{f=!0}f&&(c.value=E())}i.value&&o&&$(["copy","cut"],g,{passive:!0});async function w(f=T(l)){if(i.value&&f!=null){let p=!(u.value&&b(a.value));if(!p)try{await n.clipboard.writeText(f)}catch{p=!0}p&&y(f),c.value=f,s.value=!0,v.start()}}function y(f){const p=document.createElement("textarea");p.value=f,p.style.position="absolute",p.style.opacity="0",p.setAttribute("readonly",""),document.body.appendChild(p),p.select(),document.execCommand("copy"),p.remove()}function E(){var f,p,O;return(f=(p=document)===null||p===void 0||(O=p.getSelection)===null||O===void 0||(O=O.call(p))===null||O===void 0?void 0:O.toString())!==null&&f!==void 0?f:""}function b(f){return f==="granted"||f==="prompt"}return{isSupported:i,text:U(c),copied:U(s),copy:w}}function Ee(e){return JSON.parse(JSON.stringify(e))}const J=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},B="__vueuse_ssr_handlers__",Oe=xe();function xe(){return B in J||(J[B]=J[B]||{}),J[B]}function $e(e,n){return Oe[e]||n}function Me(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const _e={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},q="vueuse-storage";function We(e,n,o,l={}){var r;const{flush:t="pre",deep:u=!0,listenToStorageChanges:d=!0,writeDefaults:a=!0,mergeDefaults:i=!1,shallow:c,window:s=_,eventFilter:v,onError:g=m=>{console.error(m)},initOnMounted:w}=l,y=(c?S:K)(typeof n=="function"?n():n),E=W(()=>T(e));if(!o)try{o=$e("getDefaultStorage",()=>_?.localStorage)()}catch(m){g(m)}if(!o)return y;const b=T(n),f=Me(b),p=(r=l.serializer)!==null&&r!==void 0?r:_e[f],{pause:O,resume:M}=ue(y,m=>V(m),{flush:t,deep:u,eventFilter:v});H(E,()=>A(),{flush:t});let z=!1;const h=m=>{w&&!z||A(m)},N=m=>{w&&!z||oe(m)};s&&d&&(o instanceof Storage?$(s,"storage",h,{passive:!0}):$(s,q,N)),w?j(()=>{z=!0,A()}):A();function F(m,x){if(s){const C={key:E.value,oldValue:m,newValue:x,storageArea:o};s.dispatchEvent(o instanceof Storage?new StorageEvent("storage",C):new CustomEvent(q,{detail:C}))}}function V(m){try{const x=o.getItem(E.value);if(m==null)F(x,null),o.removeItem(E.value);else{const C=p.write(m);x!==C&&(o.setItem(E.value,C),F(x,C))}}catch(x){g(x)}}function X(m){const x=m?m.newValue:o.getItem(E.value);if(x==null)return a&&b!=null&&o.setItem(E.value,p.write(b)),b;if(!m&&i){const C=p.read(x);return typeof i=="function"?i(C,b):f==="object"&&!Array.isArray(C)?{...b,...C}:C}else return typeof x!="string"?x:p.read(x)}function A(m){if(!(m&&m.storageArea!==o)){if(m&&m.key==null){y.value=b;return}if(!(m&&m.key!==E.value)){O();try{const x=p.write(y.value);(m===void 0||m?.newValue!==x)&&(y.value=X(m))}catch(x){g(x)}finally{m?Z(M):M()}}}}function oe(m){A(m.detail)}return y}function ne(e,n,o={}){const{window:l=_,...r}=o;let t;const u=P(()=>l&&"ResizeObserver"in l),d=()=>{t&&(t.disconnect(),t=void 0)},a=H(W(()=>{const c=T(e);return Array.isArray(c)?c.map(s=>R(s)):[R(c)]}),c=>{if(d(),u.value&&l){t=new ResizeObserver(n);for(const s of c)s&&t.observe(s,r)}},{immediate:!0,flush:"post"}),i=()=>{d(),a()};return L(i),{isSupported:u,stop:i}}function He(e,n={width:0,height:0},o={}){const{window:l=_,box:r="content-box"}=o,t=W(()=>{var s;return(s=R(e))===null||s===void 0||(s=s.namespaceURI)===null||s===void 0?void 0:s.includes("svg")}),u=S(n.width),d=S(n.height),{stop:a}=ne(e,([s])=>{const v=r==="border-box"?s.borderBoxSize:r==="content-box"?s.contentBoxSize:s.devicePixelContentBoxSize;if(l&&t.value){const g=R(e);if(g){const w=g.getBoundingClientRect();u.value=w.width,d.value=w.height}}else if(v){const g=D(v);u.value=g.reduce((w,{inlineSize:y})=>w+y,0),d.value=g.reduce((w,{blockSize:y})=>w+y,0)}else u.value=s.contentRect.width,d.value=s.contentRect.height},o);j(()=>{const s=R(e);s&&(u.value="offsetWidth"in s?s.offsetWidth:n.width,d.value="offsetHeight"in s?s.offsetHeight:n.height)});const i=H(()=>R(e),s=>{u.value=s?n.width:0,d.value=s?n.height:0});function c(){a(),i()}return{width:u,height:d,stop:c}}const Y=new Map;function Fe(e){const n=ae();function o(d){var a;const i=Y.get(e)||new Set;i.add(d),Y.set(e,i);const c=()=>r(d);return n==null||(a=n.cleanups)===null||a===void 0||a.push(c),c}function l(d){function a(...i){r(a),d(...i)}return o(a)}function r(d){const a=Y.get(e);a&&(a.delete(d),a.size||t())}function t(){Y.delete(e)}function u(d,a){var i;(i=Y.get(e))===null||i===void 0||i.forEach(c=>c(d,a))}return{on:o,once:l,off:r,emit:u,reset:t}}const Ce={page:e=>[e.pageX,e.pageY],client:e=>[e.clientX,e.clientY],screen:e=>[e.screenX,e.screenY],movement:e=>e instanceof MouseEvent?[e.movementX,e.movementY]:null};function Re(e={}){const{type:n="page",touch:o=!0,resetOnTouchEnds:l=!1,initialValue:r={x:0,y:0},window:t=_,target:u=t,scroll:d=!0,eventFilter:a}=e;let i=null,c=0,s=0;const v=S(r.x),g=S(r.y),w=S(null),y=typeof n=="function"?n:Ce[n],E=h=>{const N=y(h);i=h,N&&([v.value,g.value]=N,w.value="mouse"),t&&(c=t.scrollX,s=t.scrollY)},b=h=>{if(h.touches.length>0){const N=y(h.touches[0]);N&&([v.value,g.value]=N,w.value="touch")}},f=()=>{if(!i||!t)return;const h=y(i);i instanceof MouseEvent&&h&&(v.value=h[0]+t.scrollX-c,g.value=h[1]+t.scrollY-s)},p=()=>{v.value=r.x,g.value=r.y},O=a?h=>a(()=>E(h),{}):h=>E(h),M=a?h=>a(()=>b(h),{}):h=>b(h),z=a?()=>a(()=>f(),{}):()=>f();if(u){const h={passive:!0};$(u,["mousemove","dragover"],O,h),o&&n!=="movement"&&($(u,["touchstart","touchmove"],M,h),l&&$(u,"touchend",p,h)),d&&n==="page"&&$(t,"scroll",z,h)}return{x:v,y:g,sourceType:w}}function Ve(e,n={}){const{windowResize:o=!0,windowScroll:l=!0,handleOutside:r=!0,window:t=_}=n,u=n.type||"page",{x:d,y:a,sourceType:i}=Re(n),c=S(e??t?.document.body),s=S(0),v=S(0),g=S(0),w=S(0),y=S(0),E=S(0),b=S(!0);function f(){if(!t)return;const M=R(c);if(!(!M||!(M instanceof Element)))for(const z of M.getClientRects()){const{left:h,top:N,width:F,height:V}=z;g.value=h+(u==="page"?t.pageXOffset:0),w.value=N+(u==="page"?t.pageYOffset:0),y.value=V,E.value=F;const X=d.value-g.value,A=a.value-w.value;if(b.value=F===0||V===0||X<0||A<0||X>F||A>V,(r||!b.value)&&(s.value=X,v.value=A),!b.value)break}}const p=[];function O(){p.forEach(M=>M()),p.length=0}if(j(()=>{f()}),t){const{stop:M}=ne(c,f),{stop:z}=te(c,f,{attributeFilter:["style","class"]}),h=H([c,d,a],f);p.push(M,z,h),$(document,"mouseleave",()=>b.value=!0,{passive:!0}),l&&p.push($("scroll",f,{capture:!0,passive:!0})),o&&p.push($("resize",f,{passive:!0}))}return{x:d,y:a,sourceType:i,elementX:s,elementY:v,elementPositionX:g,elementPositionY:w,elementHeight:y,elementWidth:E,isOutside:b,stop:O}}function Xe(e,n,o,l={}){var r,t;const{clone:u=!1,passive:d=!1,eventName:a,deep:i=!1,defaultValue:c,shouldEmit:s}=l,v=G(),g=o||v?.emit||(v==null||(r=v.$emit)===null||r===void 0?void 0:r.bind(v))||(v==null||(t=v.proxy)===null||t===void 0||(t=t.$emit)===null||t===void 0?void 0:t.bind(v?.proxy));let w=a;w=w||`update:${n.toString()}`;const y=f=>u?typeof u=="function"?u(f):Ee(f):f,E=()=>le(e[n])?y(e[n]):c,b=f=>{s?s(f)&&g(w,f):g(w,f)};if(d){const f=K(E());let p=!1;return H(()=>e[n],O=>{p||(p=!0,f.value=y(O),Z(()=>p=!1))}),H(f,O=>{!p&&(O!==e[n]||i)&&b(O)},{deep:i}),f}else return W({get(){return E()},set(f){b(f)}})}export{Te as a,Fe as b,Ne as c,We as d,He as e,Ve as f,Ae as g,$ as h,Xe as u};
|
|
1
|
+
import{g as G,e as K,h as H,i as W,s as S,d as I,j as se,t as D,k as T,l as ie,p as re,f as U,q as ue,v as j,x as le,y as ae,z as ce,A as Q,B as Z,C as de,D as fe,E as ve,F as pe,G as L,H as me,I as ge,a as he,J as we}from"./CBqC92gC.js";function Ne(e={}){const{inheritAttrs:n=!0}=e,o=S(),l=I({setup(t,{slots:u}){return()=>{o.value=u.default}}}),r=I({inheritAttrs:n,props:e.props,setup(t,{attrs:u,slots:d}){return()=>{var a;if(!o.value)throw new Error("[VueUse] Failed to find the definition of reusable template");const i=(a=o.value)===null||a===void 0?void 0:a.call(o,{...e.props==null?ye(u):t,$slots:d});return n&&i?.length===1?i[0]:i}}});return se({define:l,reuse:r},[l,r])}function ye(e){const n={};for(const o in e)n[ce(o)]=e[o];return n}const _=Q?window:void 0,ee=Q?window.navigator:void 0;function R(e){var n;const o=T(e);return(n=o?.$el)!==null&&n!==void 0?n:o}function $(...e){const n=(l,r,t,u)=>(l.addEventListener(r,t,u),()=>l.removeEventListener(r,t,u)),o=W(()=>{const l=D(T(e[0])).filter(r=>r!=null);return l.every(r=>typeof r!="string")?l:void 0});return ie(()=>{var l,r;return[(l=(r=o.value)===null||r===void 0?void 0:r.map(t=>R(t)))!==null&&l!==void 0?l:[_].filter(t=>t!=null),D(T(o.value?e[1]:e[0])),D(he(o.value?e[2]:e[1])),T(o.value?e[3]:e[2])]},([l,r,t,u],d,a)=>{if(!l?.length||!r?.length||!t?.length)return;const i=ge(u)?{...u}:u,c=l.flatMap(s=>r.flatMap(v=>t.map(g=>n(s,v,g,i))));a(()=>{c.forEach(s=>s())})},{flush:"post"})}function be(){const e=S(!1),n=G();return n&&de(()=>{e.value=!0},n),e}function P(e){const n=be();return W(()=>(n.value,!!e()))}function te(e,n,o={}){const{window:l=_,...r}=o;let t;const u=P(()=>l&&"MutationObserver"in l),d=()=>{t&&(t.disconnect(),t=void 0)},a=H(W(()=>{const s=D(T(e)).map(R).filter(me);return new Set(s)}),s=>{d(),u.value&&s.size&&(t=new MutationObserver(n),s.forEach(v=>t.observe(v,r)))},{immediate:!0,flush:"post"}),i=()=>t?.takeRecords(),c=()=>{a(),d()};return L(c),{isSupported:u,stop:c,takeRecords:i}}function Se(e,n,o={}){const{window:l=_,document:r=l?.document,flush:t="sync"}=o;if(!l||!r)return ve;let u;const d=c=>{u?.(),u=c},a=pe(()=>{const c=R(e);if(c){const{stop:s}=te(r,v=>{v.map(g=>[...g.removedNodes]).flat().some(g=>g===c||g.contains(c))&&n(v)},{window:l,childList:!0,subtree:!0});d(s)}},{flush:t}),i=()=>{a(),d()};return L(i),i}function Ae(e={}){var n;const{window:o=_,deep:l=!0,triggerOnRemoval:r=!1}=e,t=(n=e.document)!==null&&n!==void 0?n:o?.document,u=()=>{let i=t?.activeElement;if(l)for(var c;i?.shadowRoot;)i=i==null||(c=i.shadowRoot)===null||c===void 0?void 0:c.activeElement;return i},d=S(),a=()=>{d.value=u()};if(o){const i={capture:!0,passive:!0};$(o,"blur",c=>{c.relatedTarget===null&&a()},i),$(o,"focus",a,i)}return r&&Se(d,a,{document:t}),a(),d}function k(e,n={}){const{controls:o=!1,navigator:l=ee}=n,r=P(()=>l&&"permissions"in l),t=S(),u=typeof e=="string"?{name:e}:e,d=S(),a=()=>{var c,s;d.value=(c=(s=t.value)===null||s===void 0?void 0:s.state)!==null&&c!==void 0?c:"prompt"};$(t,"change",a,{passive:!0});const i=fe(async()=>{if(r.value){if(!t.value)try{t.value=await l.permissions.query(u)}catch{t.value=void 0}finally{a()}if(o)return we(t.value)}});return i(),o?{state:d,isSupported:r,query:i}:d}function Te(e={}){const{navigator:n=ee,read:o=!1,source:l,copiedDuring:r=1500,legacy:t=!1}=e,u=P(()=>n&&"clipboard"in n),d=k("clipboard-read"),a=k("clipboard-write"),i=W(()=>u.value||t),c=S(""),s=S(!1),v=re(()=>s.value=!1,r,{immediate:!1});async function g(){let f=!(u.value&&b(d.value));if(!f)try{c.value=await n.clipboard.readText()}catch{f=!0}f&&(c.value=E())}i.value&&o&&$(["copy","cut"],g,{passive:!0});async function w(f=T(l)){if(i.value&&f!=null){let p=!(u.value&&b(a.value));if(!p)try{await n.clipboard.writeText(f)}catch{p=!0}p&&y(f),c.value=f,s.value=!0,v.start()}}function y(f){const p=document.createElement("textarea");p.value=f,p.style.position="absolute",p.style.opacity="0",p.setAttribute("readonly",""),document.body.appendChild(p),p.select(),document.execCommand("copy"),p.remove()}function E(){var f,p,O;return(f=(p=document)===null||p===void 0||(O=p.getSelection)===null||O===void 0||(O=O.call(p))===null||O===void 0?void 0:O.toString())!==null&&f!==void 0?f:""}function b(f){return f==="granted"||f==="prompt"}return{isSupported:i,text:U(c),copied:U(s),copy:w}}function Ee(e){return JSON.parse(JSON.stringify(e))}const J=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},B="__vueuse_ssr_handlers__",Oe=xe();function xe(){return B in J||(J[B]=J[B]||{}),J[B]}function $e(e,n){return Oe[e]||n}function Me(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const _e={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},q="vueuse-storage";function We(e,n,o,l={}){var r;const{flush:t="pre",deep:u=!0,listenToStorageChanges:d=!0,writeDefaults:a=!0,mergeDefaults:i=!1,shallow:c,window:s=_,eventFilter:v,onError:g=m=>{console.error(m)},initOnMounted:w}=l,y=(c?S:K)(typeof n=="function"?n():n),E=W(()=>T(e));if(!o)try{o=$e("getDefaultStorage",()=>_?.localStorage)()}catch(m){g(m)}if(!o)return y;const b=T(n),f=Me(b),p=(r=l.serializer)!==null&&r!==void 0?r:_e[f],{pause:O,resume:M}=ue(y,m=>V(m),{flush:t,deep:u,eventFilter:v});H(E,()=>A(),{flush:t});let z=!1;const h=m=>{w&&!z||A(m)},N=m=>{w&&!z||oe(m)};s&&d&&(o instanceof Storage?$(s,"storage",h,{passive:!0}):$(s,q,N)),w?j(()=>{z=!0,A()}):A();function F(m,x){if(s){const C={key:E.value,oldValue:m,newValue:x,storageArea:o};s.dispatchEvent(o instanceof Storage?new StorageEvent("storage",C):new CustomEvent(q,{detail:C}))}}function V(m){try{const x=o.getItem(E.value);if(m==null)F(x,null),o.removeItem(E.value);else{const C=p.write(m);x!==C&&(o.setItem(E.value,C),F(x,C))}}catch(x){g(x)}}function X(m){const x=m?m.newValue:o.getItem(E.value);if(x==null)return a&&b!=null&&o.setItem(E.value,p.write(b)),b;if(!m&&i){const C=p.read(x);return typeof i=="function"?i(C,b):f==="object"&&!Array.isArray(C)?{...b,...C}:C}else return typeof x!="string"?x:p.read(x)}function A(m){if(!(m&&m.storageArea!==o)){if(m&&m.key==null){y.value=b;return}if(!(m&&m.key!==E.value)){O();try{const x=p.write(y.value);(m===void 0||m?.newValue!==x)&&(y.value=X(m))}catch(x){g(x)}finally{m?Z(M):M()}}}}function oe(m){A(m.detail)}return y}function ne(e,n,o={}){const{window:l=_,...r}=o;let t;const u=P(()=>l&&"ResizeObserver"in l),d=()=>{t&&(t.disconnect(),t=void 0)},a=H(W(()=>{const c=T(e);return Array.isArray(c)?c.map(s=>R(s)):[R(c)]}),c=>{if(d(),u.value&&l){t=new ResizeObserver(n);for(const s of c)s&&t.observe(s,r)}},{immediate:!0,flush:"post"}),i=()=>{d(),a()};return L(i),{isSupported:u,stop:i}}function He(e,n={width:0,height:0},o={}){const{window:l=_,box:r="content-box"}=o,t=W(()=>{var s;return(s=R(e))===null||s===void 0||(s=s.namespaceURI)===null||s===void 0?void 0:s.includes("svg")}),u=S(n.width),d=S(n.height),{stop:a}=ne(e,([s])=>{const v=r==="border-box"?s.borderBoxSize:r==="content-box"?s.contentBoxSize:s.devicePixelContentBoxSize;if(l&&t.value){const g=R(e);if(g){const w=g.getBoundingClientRect();u.value=w.width,d.value=w.height}}else if(v){const g=D(v);u.value=g.reduce((w,{inlineSize:y})=>w+y,0),d.value=g.reduce((w,{blockSize:y})=>w+y,0)}else u.value=s.contentRect.width,d.value=s.contentRect.height},o);j(()=>{const s=R(e);s&&(u.value="offsetWidth"in s?s.offsetWidth:n.width,d.value="offsetHeight"in s?s.offsetHeight:n.height)});const i=H(()=>R(e),s=>{u.value=s?n.width:0,d.value=s?n.height:0});function c(){a(),i()}return{width:u,height:d,stop:c}}const Y=new Map;function Fe(e){const n=ae();function o(d){var a;const i=Y.get(e)||new Set;i.add(d),Y.set(e,i);const c=()=>r(d);return n==null||(a=n.cleanups)===null||a===void 0||a.push(c),c}function l(d){function a(...i){r(a),d(...i)}return o(a)}function r(d){const a=Y.get(e);a&&(a.delete(d),a.size||t())}function t(){Y.delete(e)}function u(d,a){var i;(i=Y.get(e))===null||i===void 0||i.forEach(c=>c(d,a))}return{on:o,once:l,off:r,emit:u,reset:t}}const Ce={page:e=>[e.pageX,e.pageY],client:e=>[e.clientX,e.clientY],screen:e=>[e.screenX,e.screenY],movement:e=>e instanceof MouseEvent?[e.movementX,e.movementY]:null};function Re(e={}){const{type:n="page",touch:o=!0,resetOnTouchEnds:l=!1,initialValue:r={x:0,y:0},window:t=_,target:u=t,scroll:d=!0,eventFilter:a}=e;let i=null,c=0,s=0;const v=S(r.x),g=S(r.y),w=S(null),y=typeof n=="function"?n:Ce[n],E=h=>{const N=y(h);i=h,N&&([v.value,g.value]=N,w.value="mouse"),t&&(c=t.scrollX,s=t.scrollY)},b=h=>{if(h.touches.length>0){const N=y(h.touches[0]);N&&([v.value,g.value]=N,w.value="touch")}},f=()=>{if(!i||!t)return;const h=y(i);i instanceof MouseEvent&&h&&(v.value=h[0]+t.scrollX-c,g.value=h[1]+t.scrollY-s)},p=()=>{v.value=r.x,g.value=r.y},O=a?h=>a(()=>E(h),{}):h=>E(h),M=a?h=>a(()=>b(h),{}):h=>b(h),z=a?()=>a(()=>f(),{}):()=>f();if(u){const h={passive:!0};$(u,["mousemove","dragover"],O,h),o&&n!=="movement"&&($(u,["touchstart","touchmove"],M,h),l&&$(u,"touchend",p,h)),d&&n==="page"&&$(t,"scroll",z,h)}return{x:v,y:g,sourceType:w}}function Ve(e,n={}){const{windowResize:o=!0,windowScroll:l=!0,handleOutside:r=!0,window:t=_}=n,u=n.type||"page",{x:d,y:a,sourceType:i}=Re(n),c=S(e??t?.document.body),s=S(0),v=S(0),g=S(0),w=S(0),y=S(0),E=S(0),b=S(!0);function f(){if(!t)return;const M=R(c);if(!(!M||!(M instanceof Element)))for(const z of M.getClientRects()){const{left:h,top:N,width:F,height:V}=z;g.value=h+(u==="page"?t.pageXOffset:0),w.value=N+(u==="page"?t.pageYOffset:0),y.value=V,E.value=F;const X=d.value-g.value,A=a.value-w.value;if(b.value=F===0||V===0||X<0||A<0||X>F||A>V,(r||!b.value)&&(s.value=X,v.value=A),!b.value)break}}const p=[];function O(){p.forEach(M=>M()),p.length=0}if(j(()=>{f()}),t){const{stop:M}=ne(c,f),{stop:z}=te(c,f,{attributeFilter:["style","class"]}),h=H([c,d,a],f);p.push(M,z,h),$(document,"mouseleave",()=>b.value=!0,{passive:!0}),l&&p.push($("scroll",f,{capture:!0,passive:!0})),o&&p.push($("resize",f,{passive:!0}))}return{x:d,y:a,sourceType:i,elementX:s,elementY:v,elementPositionX:g,elementPositionY:w,elementHeight:y,elementWidth:E,isOutside:b,stop:O}}function Xe(e,n,o,l={}){var r,t;const{clone:u=!1,passive:d=!1,eventName:a,deep:i=!1,defaultValue:c,shouldEmit:s}=l,v=G(),g=o||v?.emit||(v==null||(r=v.$emit)===null||r===void 0?void 0:r.bind(v))||(v==null||(t=v.proxy)===null||t===void 0||(t=t.$emit)===null||t===void 0?void 0:t.bind(v?.proxy));let w=a;w=w||`update:${n.toString()}`;const y=f=>u?typeof u=="function"?u(f):Ee(f):f,E=()=>le(e[n])?y(e[n]):c,b=f=>{s?s(f)&&g(w,f):g(w,f)};if(d){const f=K(E());let p=!1;return H(()=>e[n],O=>{p||(p=!0,f.value=y(O),Z(()=>p=!1))}),H(f,O=>{!p&&(O!==e[n]||i)&&b(O)},{deep:i}),f}else return W({get(){return E()},set(f){b(f)}})}export{Te as a,Fe as b,Ne as c,We as d,He as e,Ve as f,Ae as g,$ as h,Xe as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as Y,i as R,C as gt,a6 as wt,d as ae,aQ as Ke,r as ce,u as ge,bO as Ge,c as Je,o as ne,w as we,a as _,P as _e,M as de,m as Ee,s as yt,h as Ae,y as vt,at as xt,bP as ee,bQ as bt,bR as At,F as Ct,Z as et,a$ as tt}from"./BOCn_SGf.js";function Ot(e){const t=Y(),n=R(()=>t.value?.width??0),o=R(()=>t.value?.height??0);return gt(()=>{const i=wt(e);if(i){t.value={width:i.offsetWidth,height:i.offsetHeight};const r=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const l=s[0];let c,f;if("borderBoxSize"in l){const u=l.borderBoxSize,a=Array.isArray(u)?u[0]:u;c=a.inlineSize,f=a.blockSize}else c=i.offsetWidth,f=i.offsetHeight;t.value={width:c,height:f}});return r.observe(i,{box:"border-box"}),()=>r.unobserve(i)}else t.value=void 0}),{width:n,height:o}}const[nt,Pt]=Ke("PopperRoot");var St=ae({inheritAttrs:!1,__name:"PopperRoot",setup(e){const t=Y();return Pt({anchor:t,onAnchorChange:n=>t.value=n}),(n,o)=>ce(n.$slots,"default")}}),Yn=St,Rt=ae({__name:"PopperAnchor",props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,{forwardRef:n,currentElement:o}=ge(),i=nt();return Ge(()=>{i.onAnchorChange(t.reference??o.value)}),(r,s)=>(ne(),Je(_(_e),{ref:_(n),as:r.as,"as-child":r.asChild},{default:we(()=>[ce(r.$slots,"default")]),_:3},8,["as","as-child"]))}}),jn=Rt;const _t={key:0,d:"M0 0L6 6L12 0"},Et={key:1,d:"M0 0L4.58579 4.58579C5.36683 5.36683 6.63316 5.36684 7.41421 4.58579L12 0"};var Lt=ae({__name:"Arrow",props:{width:{type:Number,required:!1,default:10},height:{type:Number,required:!1,default:5},rounded:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"svg"}},setup(e){const t=e;return ge(),(n,o)=>(ne(),Je(_(_e),Ee(t,{width:n.width,height:n.height,viewBox:n.asChild?void 0:"0 0 12 6",preserveAspectRatio:n.asChild?void 0:"none"}),{default:we(()=>[ce(n.$slots,"default",{},()=>[n.rounded?(ne(),de("path",Et)):(ne(),de("path",_t))])]),_:3},16,["width","height","viewBox","preserveAspectRatio"]))}}),Dt=Lt;function Bt(e){return e!==null}function Tt(e){return{name:"transformOrigin",options:e,fn(t){const{placement:n,rects:o,middlewareData:i}=t,s=i.arrow?.centerOffset!==0,l=s?0:e.arrowWidth,c=s?0:e.arrowHeight,[f,u]=Oe(n),a={start:"0%",center:"50%",end:"100%"}[u],h=(i.arrow?.x??0)+l/2,d=(i.arrow?.y??0)+c/2;let p="",m="";return f==="bottom"?(p=s?a:`${h}px`,m=`${-c}px`):f==="top"?(p=s?a:`${h}px`,m=`${o.floating.height+c}px`):f==="right"?(p=`${-c}px`,m=s?a:`${d}px`):f==="left"&&(p=`${o.floating.width+c}px`,m=s?a:`${d}px`),{data:{x:p,y:m}}}}}function Oe(e){const[t,n="center"]=e.split("-");return[t,n]}const ot=["top","right","bottom","left"],We=["start","end"],qe=ot.reduce((e,t)=>e.concat(t,t+"-"+We[0],t+"-"+We[1]),[]),N=Math.min,$=Math.max,pe=Math.round,ue=Math.floor,j=e=>({x:e,y:e}),$t={left:"right",right:"left",bottom:"top",top:"bottom"},kt={start:"end",end:"start"};function Pe(e,t,n){return $(e,N(t,n))}function V(e,t){return typeof e=="function"?e(t):e}function q(e){return e.split("-")[0]}function z(e){return e.split("-")[1]}function Le(e){return e==="x"?"y":"x"}function De(e){return e==="y"?"height":"width"}const Ft=new Set(["top","bottom"]);function H(e){return Ft.has(q(e))?"y":"x"}function Be(e){return Le(H(e))}function it(e,t,n){n===void 0&&(n=!1);const o=z(e),i=Be(e),r=De(i);let s=i==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[r]>t.floating[r]&&(s=me(s)),[s,me(s)]}function Mt(e){const t=me(e);return[he(e),t,he(t)]}function he(e){return e.replace(/start|end/g,t=>kt[t])}const He=["left","right"],ze=["right","left"],Wt=["top","bottom"],qt=["bottom","top"];function Ht(e,t,n){switch(e){case"top":case"bottom":return n?t?ze:He:t?He:ze;case"left":case"right":return t?Wt:qt;default:return[]}}function zt(e,t,n,o){const i=z(e);let r=Ht(q(e),n==="start",o);return i&&(r=r.map(s=>s+"-"+i),t&&(r=r.concat(r.map(he)))),r}function me(e){return e.replace(/left|right|bottom|top/g,t=>$t[t])}function Nt(e){return{top:0,right:0,bottom:0,left:0,...e}}function Te(e){return typeof e!="number"?Nt(e):{top:e,right:e,bottom:e,left:e}}function ie(e){const{x:t,y:n,width:o,height:i}=e;return{width:o,height:i,top:n,left:t,right:t+o,bottom:n+i,x:t,y:n}}function Ne(e,t,n){let{reference:o,floating:i}=e;const r=H(t),s=Be(t),l=De(s),c=q(t),f=r==="y",u=o.x+o.width/2-i.width/2,a=o.y+o.height/2-i.height/2,h=o[l]/2-i[l]/2;let d;switch(c){case"top":d={x:u,y:o.y-i.height};break;case"bottom":d={x:u,y:o.y+o.height};break;case"right":d={x:o.x+o.width,y:a};break;case"left":d={x:o.x-i.width,y:a};break;default:d={x:o.x,y:o.y}}switch(z(t)){case"start":d[s]-=h*(n&&f?-1:1);break;case"end":d[s]+=h*(n&&f?-1:1);break}return d}const Vt=async(e,t,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:r=[],platform:s}=n,l=r.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t));let f=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:a}=Ne(f,o,c),h=o,d={},p=0;for(let m=0;m<l.length;m++){const{name:g,fn:w}=l[m],{x:y,y:v,data:A,reset:x}=await w({x:u,y:a,initialPlacement:o,placement:h,strategy:i,middlewareData:d,rects:f,platform:s,elements:{reference:e,floating:t}});u=y??u,a=v??a,d={...d,[g]:{...d[g],...A}},x&&p<=50&&(p++,typeof x=="object"&&(x.placement&&(h=x.placement),x.rects&&(f=x.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:a}=Ne(f,h,c)),m=-1)}return{x:u,y:a,placement:h,strategy:i,middlewareData:d}};async function re(e,t){var n;t===void 0&&(t={});const{x:o,y:i,platform:r,rects:s,elements:l,strategy:c}=e,{boundary:f="clippingAncestors",rootBoundary:u="viewport",elementContext:a="floating",altBoundary:h=!1,padding:d=0}=V(t,e),p=Te(d),g=l[h?a==="floating"?"reference":"floating":a],w=ie(await r.getClippingRect({element:(n=await(r.isElement==null?void 0:r.isElement(g)))==null||n?g:g.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(l.floating)),boundary:f,rootBoundary:u,strategy:c})),y=a==="floating"?{x:o,y:i,width:s.floating.width,height:s.floating.height}:s.reference,v=await(r.getOffsetParent==null?void 0:r.getOffsetParent(l.floating)),A=await(r.isElement==null?void 0:r.isElement(v))?await(r.getScale==null?void 0:r.getScale(v))||{x:1,y:1}:{x:1,y:1},x=ie(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:y,offsetParent:v,strategy:c}):y);return{top:(w.top-x.top+p.top)/A.y,bottom:(x.bottom-w.bottom+p.bottom)/A.y,left:(w.left-x.left+p.left)/A.x,right:(x.right-w.right+p.right)/A.x}}const It=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:i,rects:r,platform:s,elements:l,middlewareData:c}=t,{element:f,padding:u=0}=V(e,t)||{};if(f==null)return{};const a=Te(u),h={x:n,y:o},d=Be(i),p=De(d),m=await s.getDimensions(f),g=d==="y",w=g?"top":"left",y=g?"bottom":"right",v=g?"clientHeight":"clientWidth",A=r.reference[p]+r.reference[d]-h[d]-r.floating[p],x=h[d]-r.reference[d],O=await(s.getOffsetParent==null?void 0:s.getOffsetParent(f));let b=O?O[v]:0;(!b||!await(s.isElement==null?void 0:s.isElement(O)))&&(b=l.floating[v]||r.floating[p]);const S=A/2-x/2,E=b/2-m[p]/2-1,C=N(a[w],E),L=N(a[y],E),P=C,B=b-m[p]-L,D=b/2-m[p]/2+S,M=Pe(P,D,B),F=!c.arrow&&z(i)!=null&&D!==M&&r.reference[p]/2-(D<P?C:L)-m[p]/2<0,k=F?D<P?D-P:D-B:0;return{[d]:h[d]+k,data:{[d]:M,centerOffset:D-M-k,...F&&{alignmentOffset:k}},reset:F}}});function Xt(e,t,n){return(e?[...n.filter(i=>z(i)===e),...n.filter(i=>z(i)!==e)]:n.filter(i=>q(i)===i)).filter(i=>e?z(i)===e||(t?he(i)!==i:!1):!0)}const Yt=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,o,i;const{rects:r,middlewareData:s,placement:l,platform:c,elements:f}=t,{crossAxis:u=!1,alignment:a,allowedPlacements:h=qe,autoAlignment:d=!0,...p}=V(e,t),m=a!==void 0||h===qe?Xt(a||null,d,h):h,g=await re(t,p),w=((n=s.autoPlacement)==null?void 0:n.index)||0,y=m[w];if(y==null)return{};const v=it(y,r,await(c.isRTL==null?void 0:c.isRTL(f.floating)));if(l!==y)return{reset:{placement:m[0]}};const A=[g[q(y)],g[v[0]],g[v[1]]],x=[...((o=s.autoPlacement)==null?void 0:o.overflows)||[],{placement:y,overflows:A}],O=m[w+1];if(O)return{data:{index:w+1,overflows:x},reset:{placement:O}};const b=x.map(C=>{const L=z(C.placement);return[C.placement,L&&u?C.overflows.slice(0,2).reduce((P,B)=>P+B,0):C.overflows[0],C.overflows]}).sort((C,L)=>C[1]-L[1]),E=((i=b.filter(C=>C[2].slice(0,z(C[0])?2:3).every(L=>L<=0))[0])==null?void 0:i[0])||b[0][0];return E!==l?{data:{index:w+1,overflows:x},reset:{placement:E}}:{}}}},jt=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:i,middlewareData:r,rects:s,initialPlacement:l,platform:c,elements:f}=t,{mainAxis:u=!0,crossAxis:a=!0,fallbackPlacements:h,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:m=!0,...g}=V(e,t);if((n=r.arrow)!=null&&n.alignmentOffset)return{};const w=q(i),y=H(l),v=q(l)===l,A=await(c.isRTL==null?void 0:c.isRTL(f.floating)),x=h||(v||!m?[me(l)]:Mt(l)),O=p!=="none";!h&&O&&x.push(...zt(l,m,p,A));const b=[l,...x],S=await re(t,g),E=[];let C=((o=r.flip)==null?void 0:o.overflows)||[];if(u&&E.push(S[w]),a){const D=it(i,s,A);E.push(S[D[0]],S[D[1]])}if(C=[...C,{placement:i,overflows:E}],!E.every(D=>D<=0)){var L,P;const D=(((L=r.flip)==null?void 0:L.index)||0)+1,M=b[D];if(M&&(!(a==="alignment"?y!==H(M):!1)||C.every(T=>H(T.placement)===y?T.overflows[0]>0:!0)))return{data:{index:D,overflows:C},reset:{placement:M}};let F=(P=C.filter(k=>k.overflows[0]<=0).sort((k,T)=>k.overflows[1]-T.overflows[1])[0])==null?void 0:P.placement;if(!F)switch(d){case"bestFit":{var B;const k=(B=C.filter(T=>{if(O){const Z=H(T.placement);return Z===y||Z==="y"}return!0}).map(T=>[T.placement,T.overflows.filter(Z=>Z>0).reduce((Z,mt)=>Z+mt,0)]).sort((T,Z)=>T[1]-Z[1])[0])==null?void 0:B[0];k&&(F=k);break}case"initialPlacement":F=l;break}if(i!==F)return{reset:{placement:F}}}return{}}}};function Ve(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ie(e){return ot.some(t=>e[t]>=0)}const Ut=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:o="referenceHidden",...i}=V(e,t);switch(o){case"referenceHidden":{const r=await re(t,{...i,elementContext:"reference"}),s=Ve(r,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Ie(s)}}}case"escaped":{const r=await re(t,{...i,altBoundary:!0}),s=Ve(r,n.floating);return{data:{escapedOffsets:s,escaped:Ie(s)}}}default:return{}}}}};function rt(e){const t=N(...e.map(r=>r.left)),n=N(...e.map(r=>r.top)),o=$(...e.map(r=>r.right)),i=$(...e.map(r=>r.bottom));return{x:t,y:n,width:o-t,height:i-n}}function Qt(e){const t=e.slice().sort((i,r)=>i.y-r.y),n=[];let o=null;for(let i=0;i<t.length;i++){const r=t[i];!o||r.y-o.y>o.height/2?n.push([r]):n[n.length-1].push(r),o=r}return n.map(i=>ie(rt(i)))}const Zt=function(e){return e===void 0&&(e={}),{name:"inline",options:e,async fn(t){const{placement:n,elements:o,rects:i,platform:r,strategy:s}=t,{padding:l=2,x:c,y:f}=V(e,t),u=Array.from(await(r.getClientRects==null?void 0:r.getClientRects(o.reference))||[]),a=Qt(u),h=ie(rt(u)),d=Te(l);function p(){if(a.length===2&&a[0].left>a[1].right&&c!=null&&f!=null)return a.find(g=>c>g.left-d.left&&c<g.right+d.right&&f>g.top-d.top&&f<g.bottom+d.bottom)||h;if(a.length>=2){if(H(n)==="y"){const C=a[0],L=a[a.length-1],P=q(n)==="top",B=C.top,D=L.bottom,M=P?C.left:L.left,F=P?C.right:L.right,k=F-M,T=D-B;return{top:B,bottom:D,left:M,right:F,width:k,height:T,x:M,y:B}}const g=q(n)==="left",w=$(...a.map(C=>C.right)),y=N(...a.map(C=>C.left)),v=a.filter(C=>g?C.left===y:C.right===w),A=v[0].top,x=v[v.length-1].bottom,O=y,b=w,S=b-O,E=x-A;return{top:A,bottom:x,left:O,right:b,width:S,height:E,x:O,y:A}}return h}const m=await r.getElementRects({reference:{getBoundingClientRect:p},floating:o.floating,strategy:s});return i.reference.x!==m.reference.x||i.reference.y!==m.reference.y||i.reference.width!==m.reference.width||i.reference.height!==m.reference.height?{reset:{rects:m}}:{}}}},st=new Set(["left","top"]);async function Kt(e,t){const{placement:n,platform:o,elements:i}=e,r=await(o.isRTL==null?void 0:o.isRTL(i.floating)),s=q(n),l=z(n),c=H(n)==="y",f=st.has(s)?-1:1,u=r&&c?-1:1,a=V(t,e);let{mainAxis:h,crossAxis:d,alignmentAxis:p}=typeof a=="number"?{mainAxis:a,crossAxis:0,alignmentAxis:null}:{mainAxis:a.mainAxis||0,crossAxis:a.crossAxis||0,alignmentAxis:a.alignmentAxis};return l&&typeof p=="number"&&(d=l==="end"?p*-1:p),c?{x:d*u,y:h*f}:{x:h*f,y:d*u}}const Gt=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:i,y:r,placement:s,middlewareData:l}=t,c=await Kt(t,e);return s===((n=l.offset)==null?void 0:n.placement)&&(o=l.arrow)!=null&&o.alignmentOffset?{}:{x:i+c.x,y:r+c.y,data:{...c,placement:s}}}}},Jt=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:i}=t,{mainAxis:r=!0,crossAxis:s=!1,limiter:l={fn:g=>{let{x:w,y}=g;return{x:w,y}}},...c}=V(e,t),f={x:n,y:o},u=await re(t,c),a=H(q(i)),h=Le(a);let d=f[h],p=f[a];if(r){const g=h==="y"?"top":"left",w=h==="y"?"bottom":"right",y=d+u[g],v=d-u[w];d=Pe(y,d,v)}if(s){const g=a==="y"?"top":"left",w=a==="y"?"bottom":"right",y=p+u[g],v=p-u[w];p=Pe(y,p,v)}const m=l.fn({...t,[h]:d,[a]:p});return{...m,data:{x:m.x-n,y:m.y-o,enabled:{[h]:r,[a]:s}}}}}},en=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:i,rects:r,middlewareData:s}=t,{offset:l=0,mainAxis:c=!0,crossAxis:f=!0}=V(e,t),u={x:n,y:o},a=H(i),h=Le(a);let d=u[h],p=u[a];const m=V(l,t),g=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(c){const v=h==="y"?"height":"width",A=r.reference[h]-r.floating[v]+g.mainAxis,x=r.reference[h]+r.reference[v]-g.mainAxis;d<A?d=A:d>x&&(d=x)}if(f){var w,y;const v=h==="y"?"width":"height",A=st.has(q(i)),x=r.reference[a]-r.floating[v]+(A&&((w=s.offset)==null?void 0:w[a])||0)+(A?0:g.crossAxis),O=r.reference[a]+r.reference[v]+(A?0:((y=s.offset)==null?void 0:y[a])||0)-(A?g.crossAxis:0);p<x?p=x:p>O&&(p=O)}return{[h]:d,[a]:p}}}},tn=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,o;const{placement:i,rects:r,platform:s,elements:l}=t,{apply:c=()=>{},...f}=V(e,t),u=await re(t,f),a=q(i),h=z(i),d=H(i)==="y",{width:p,height:m}=r.floating;let g,w;a==="top"||a==="bottom"?(g=a,w=h===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(w=a,g=h==="end"?"top":"bottom");const y=m-u.top-u.bottom,v=p-u.left-u.right,A=N(m-u[g],y),x=N(p-u[w],v),O=!t.middlewareData.shift;let b=A,S=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(S=v),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(b=y),O&&!h){const C=$(u.left,0),L=$(u.right,0),P=$(u.top,0),B=$(u.bottom,0);d?S=p-2*(C!==0||L!==0?C+L:$(u.left,u.right)):b=m-2*(P!==0||B!==0?P+B:$(u.top,u.bottom))}await c({...t,availableWidth:S,availableHeight:b});const E=await s.getDimensions(l.floating);return p!==E.width||m!==E.height?{reset:{rects:!0}}:{}}}};function ye(){return typeof window<"u"}function J(e){return $e(e)?(e.nodeName||"").toLowerCase():"#document"}function W(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Q(e){var t;return(t=($e(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function $e(e){return ye()?e instanceof Node||e instanceof W(e).Node:!1}function I(e){return ye()?e instanceof Element||e instanceof W(e).Element:!1}function U(e){return ye()?e instanceof HTMLElement||e instanceof W(e).HTMLElement:!1}function Xe(e){return!ye()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof W(e).ShadowRoot}const nn=new Set(["inline","contents"]);function fe(e){const{overflow:t,overflowX:n,overflowY:o,display:i}=X(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!nn.has(i)}const on=new Set(["table","td","th"]);function rn(e){return on.has(J(e))}const sn=[":popover-open",":modal"];function ve(e){return sn.some(t=>{try{return e.matches(t)}catch{return!1}})}const ln=["transform","translate","scale","rotate","perspective"],an=["transform","translate","scale","rotate","perspective","filter"],cn=["paint","layout","strict","content"];function ke(e){const t=Fe(),n=I(e)?X(e):e;return ln.some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||an.some(o=>(n.willChange||"").includes(o))||cn.some(o=>(n.contain||"").includes(o))}function fn(e){let t=K(e);for(;U(t)&&!se(t);){if(ke(t))return t;if(ve(t))return null;t=K(t)}return null}function Fe(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const un=new Set(["html","body","#document"]);function se(e){return un.has(J(e))}function X(e){return W(e).getComputedStyle(e)}function xe(e){return I(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function K(e){if(J(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Xe(e)&&e.host||Q(e);return Xe(t)?t.host:t}function lt(e){const t=K(e);return se(t)?e.ownerDocument?e.ownerDocument.body:e.body:U(t)&&fe(t)?t:lt(t)}function le(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=lt(e),r=i===((o=e.ownerDocument)==null?void 0:o.body),s=W(i);if(r){const l=Se(s);return t.concat(s,s.visualViewport||[],fe(i)?i:[],l&&n?le(l):[])}return t.concat(i,le(i,[],n))}function Se(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function at(e){const t=X(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const i=U(e),r=i?e.offsetWidth:n,s=i?e.offsetHeight:o,l=pe(n)!==r||pe(o)!==s;return l&&(n=r,o=s),{width:n,height:o,$:l}}function Me(e){return I(e)?e:e.contextElement}function oe(e){const t=Me(e);if(!U(t))return j(1);const n=t.getBoundingClientRect(),{width:o,height:i,$:r}=at(t);let s=(r?pe(n.width):n.width)/o,l=(r?pe(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const dn=j(0);function ct(e){const t=W(e);return!Fe()||!t.visualViewport?dn:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function pn(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==W(e)?!1:t}function G(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),r=Me(e);let s=j(1);t&&(o?I(o)&&(s=oe(o)):s=oe(e));const l=pn(r,n,o)?ct(r):j(0);let c=(i.left+l.x)/s.x,f=(i.top+l.y)/s.y,u=i.width/s.x,a=i.height/s.y;if(r){const h=W(r),d=o&&I(o)?W(o):o;let p=h,m=Se(p);for(;m&&o&&d!==p;){const g=oe(m),w=m.getBoundingClientRect(),y=X(m),v=w.left+(m.clientLeft+parseFloat(y.paddingLeft))*g.x,A=w.top+(m.clientTop+parseFloat(y.paddingTop))*g.y;c*=g.x,f*=g.y,u*=g.x,a*=g.y,c+=v,f+=A,p=W(m),m=Se(p)}}return ie({width:u,height:a,x:c,y:f})}function be(e,t){const n=xe(e).scrollLeft;return t?t.left+n:G(Q(e)).left+n}function ft(e,t){const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-be(e,n),i=n.top+t.scrollTop;return{x:o,y:i}}function hn(e){let{elements:t,rect:n,offsetParent:o,strategy:i}=e;const r=i==="fixed",s=Q(o),l=t?ve(t.floating):!1;if(o===s||l&&r)return n;let c={scrollLeft:0,scrollTop:0},f=j(1);const u=j(0),a=U(o);if((a||!a&&!r)&&((J(o)!=="body"||fe(s))&&(c=xe(o)),U(o))){const d=G(o);f=oe(o),u.x=d.x+o.clientLeft,u.y=d.y+o.clientTop}const h=s&&!a&&!r?ft(s,c):j(0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-c.scrollLeft*f.x+u.x+h.x,y:n.y*f.y-c.scrollTop*f.y+u.y+h.y}}function mn(e){return Array.from(e.getClientRects())}function gn(e){const t=Q(e),n=xe(e),o=e.ownerDocument.body,i=$(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),r=$(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+be(e);const l=-n.scrollTop;return X(o).direction==="rtl"&&(s+=$(t.clientWidth,o.clientWidth)-i),{width:i,height:r,x:s,y:l}}const Ye=25;function wn(e,t){const n=W(e),o=Q(e),i=n.visualViewport;let r=o.clientWidth,s=o.clientHeight,l=0,c=0;if(i){r=i.width,s=i.height;const u=Fe();(!u||u&&t==="fixed")&&(l=i.offsetLeft,c=i.offsetTop)}const f=be(o);if(f<=0){const u=o.ownerDocument,a=u.body,h=getComputedStyle(a),d=u.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,p=Math.abs(o.clientWidth-a.clientWidth-d);p<=Ye&&(r-=p)}else f<=Ye&&(r+=f);return{width:r,height:s,x:l,y:c}}const yn=new Set(["absolute","fixed"]);function vn(e,t){const n=G(e,!0,t==="fixed"),o=n.top+e.clientTop,i=n.left+e.clientLeft,r=U(e)?oe(e):j(1),s=e.clientWidth*r.x,l=e.clientHeight*r.y,c=i*r.x,f=o*r.y;return{width:s,height:l,x:c,y:f}}function je(e,t,n){let o;if(t==="viewport")o=wn(e,n);else if(t==="document")o=gn(Q(e));else if(I(t))o=vn(t,n);else{const i=ct(e);o={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return ie(o)}function ut(e,t){const n=K(e);return n===t||!I(n)||se(n)?!1:X(n).position==="fixed"||ut(n,t)}function xn(e,t){const n=t.get(e);if(n)return n;let o=le(e,[],!1).filter(l=>I(l)&&J(l)!=="body"),i=null;const r=X(e).position==="fixed";let s=r?K(e):e;for(;I(s)&&!se(s);){const l=X(s),c=ke(s);!c&&l.position==="fixed"&&(i=null),(r?!c&&!i:!c&&l.position==="static"&&!!i&&yn.has(i.position)||fe(s)&&!c&&ut(e,s))?o=o.filter(u=>u!==s):i=l,s=K(s)}return t.set(e,o),o}function bn(e){let{element:t,boundary:n,rootBoundary:o,strategy:i}=e;const s=[...n==="clippingAncestors"?ve(t)?[]:xn(t,this._c):[].concat(n),o],l=s[0],c=s.reduce((f,u)=>{const a=je(t,u,i);return f.top=$(a.top,f.top),f.right=N(a.right,f.right),f.bottom=N(a.bottom,f.bottom),f.left=$(a.left,f.left),f},je(t,l,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function An(e){const{width:t,height:n}=at(e);return{width:t,height:n}}function Cn(e,t,n){const o=U(t),i=Q(t),r=n==="fixed",s=G(e,!0,r,t);let l={scrollLeft:0,scrollTop:0};const c=j(0);function f(){c.x=be(i)}if(o||!o&&!r)if((J(t)!=="body"||fe(i))&&(l=xe(t)),o){const d=G(t,!0,r,t);c.x=d.x+t.clientLeft,c.y=d.y+t.clientTop}else i&&f();r&&!o&&i&&f();const u=i&&!o&&!r?ft(i,l):j(0),a=s.left+l.scrollLeft-c.x-u.x,h=s.top+l.scrollTop-c.y-u.y;return{x:a,y:h,width:s.width,height:s.height}}function Ce(e){return X(e).position==="static"}function Ue(e,t){if(!U(e)||X(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Q(e)===n&&(n=n.ownerDocument.body),n}function dt(e,t){const n=W(e);if(ve(e))return n;if(!U(e)){let i=K(e);for(;i&&!se(i);){if(I(i)&&!Ce(i))return i;i=K(i)}return n}let o=Ue(e,t);for(;o&&rn(o)&&Ce(o);)o=Ue(o,t);return o&&se(o)&&Ce(o)&&!ke(o)?n:o||fn(e)||n}const On=async function(e){const t=this.getOffsetParent||dt,n=this.getDimensions,o=await n(e.floating);return{reference:Cn(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Pn(e){return X(e).direction==="rtl"}const Sn={convertOffsetParentRelativeRectToViewportRelativeRect:hn,getDocumentElement:Q,getClippingRect:bn,getOffsetParent:dt,getElementRects:On,getClientRects:mn,getDimensions:An,getScale:oe,isElement:I,isRTL:Pn};function pt(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Rn(e,t){let n=null,o;const i=Q(e);function r(){var l;clearTimeout(o),(l=n)==null||l.disconnect(),n=null}function s(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),r();const f=e.getBoundingClientRect(),{left:u,top:a,width:h,height:d}=f;if(l||t(),!h||!d)return;const p=ue(a),m=ue(i.clientWidth-(u+h)),g=ue(i.clientHeight-(a+d)),w=ue(u),v={rootMargin:-p+"px "+-m+"px "+-g+"px "+-w+"px",threshold:$(0,N(1,c))||1};let A=!0;function x(O){const b=O[0].intersectionRatio;if(b!==c){if(!A)return s();b?s(!1,b):o=setTimeout(()=>{s(!1,1e-7)},1e3)}b===1&&!pt(f,e.getBoundingClientRect())&&s(),A=!1}try{n=new IntersectionObserver(x,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(x,v)}n.observe(e)}return s(!0),r}function _n(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,f=Me(e),u=i||r?[...f?le(f):[],...le(t)]:[];u.forEach(w=>{i&&w.addEventListener("scroll",n,{passive:!0}),r&&w.addEventListener("resize",n)});const a=f&&l?Rn(f,n):null;let h=-1,d=null;s&&(d=new ResizeObserver(w=>{let[y]=w;y&&y.target===f&&d&&(d.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var v;(v=d)==null||v.observe(t)})),n()}),f&&!c&&d.observe(f),d.observe(t));let p,m=c?G(e):null;c&&g();function g(){const w=G(e);m&&!pt(m,w)&&n(),m=w,p=requestAnimationFrame(g)}return n(),()=>{var w;u.forEach(y=>{i&&y.removeEventListener("scroll",n),r&&y.removeEventListener("resize",n)}),a?.(),(w=d)==null||w.disconnect(),d=null,c&&cancelAnimationFrame(p)}}const En=Gt,Un=Yt,Ln=Jt,Qe=jt,Dn=tn,Bn=Ut,Tn=It,Qn=Zt,$n=en,kn=(e,t,n)=>{const o=new Map,i={platform:Sn,...n},r={...i.platform,_c:o};return Vt(e,t,{...i,platform:r})};function Fn(e){return e!=null&&typeof e=="object"&&"$el"in e}function Re(e){if(Fn(e)){const t=e.$el;return $e(t)&&J(t)==="#comment"?null:t}return e}function te(e){return typeof e=="function"?e():_(e)}function Mn(e){return{name:"arrow",options:e,fn(t){const n=Re(te(e.element));return n==null?{}:Tn({element:n,padding:e.padding}).fn(t)}}}function ht(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ze(e,t){const n=ht(e);return Math.round(t*n)/n}function Wn(e,t,n){n===void 0&&(n={});const o=n.whileElementsMounted,i=R(()=>{var b;return(b=te(n.open))!=null?b:!0}),r=R(()=>te(n.middleware)),s=R(()=>{var b;return(b=te(n.placement))!=null?b:"bottom"}),l=R(()=>{var b;return(b=te(n.strategy))!=null?b:"absolute"}),c=R(()=>{var b;return(b=te(n.transform))!=null?b:!0}),f=R(()=>Re(e.value)),u=R(()=>Re(t.value)),a=Y(0),h=Y(0),d=Y(l.value),p=Y(s.value),m=yt({}),g=Y(!1),w=R(()=>{const b={position:d.value,left:"0",top:"0"};if(!u.value)return b;const S=Ze(u.value,a.value),E=Ze(u.value,h.value);return c.value?{...b,transform:"translate("+S+"px, "+E+"px)",...ht(u.value)>=1.5&&{willChange:"transform"}}:{position:d.value,left:S+"px",top:E+"px"}});let y;function v(){if(f.value==null||u.value==null)return;const b=i.value;kn(f.value,u.value,{middleware:r.value,placement:s.value,strategy:l.value}).then(S=>{a.value=S.x,h.value=S.y,d.value=S.strategy,p.value=S.placement,m.value=S.middlewareData,g.value=b!==!1})}function A(){typeof y=="function"&&(y(),y=void 0)}function x(){if(A(),o===void 0){v();return}if(f.value!=null&&u.value!=null){y=o(f.value,u.value,v);return}}function O(){i.value||(g.value=!1)}return Ae([r,s,l,i],v,{flush:"sync"}),Ae([f,u],x,{flush:"sync"}),Ae(i,O,{flush:"sync"}),vt()&&xt(A),{x:ee(a),y:ee(h),strategy:ee(d),placement:ee(p),middlewareData:ee(m),isPositioned:ee(g),floatingStyles:w,update:v}}const qn={side:"bottom",sideOffset:0,sideFlip:!0,align:"center",alignOffset:0,alignFlip:!0,arrowPadding:0,avoidCollisions:!0,collisionBoundary:()=>[],collisionPadding:0,sticky:"partial",hideWhenDetached:!1,positionStrategy:"fixed",updatePositionStrategy:"optimized",prioritizePosition:!1},[Hn,zn]=Ke("PopperContent");var Nn=ae({inheritAttrs:!1,__name:"PopperContent",props:bt({side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},{...qn}),emits:["placed"],setup(e,{emit:t}){const n=e,o=t,i=nt(),{forwardRef:r,currentElement:s}=ge(),l=Y(),c=Y(),{width:f,height:u}=Ot(c),a=R(()=>n.side+(n.align!=="center"?`-${n.align}`:"")),h=R(()=>typeof n.collisionPadding=="number"?n.collisionPadding:{top:0,right:0,bottom:0,left:0,...n.collisionPadding}),d=R(()=>Array.isArray(n.collisionBoundary)?n.collisionBoundary:[n.collisionBoundary]),p=R(()=>({padding:h.value,boundary:d.value.filter(Bt),altBoundary:d.value.length>0})),m=R(()=>({mainAxis:n.sideFlip,crossAxis:n.alignFlip})),g=At(()=>[En({mainAxis:n.sideOffset+u.value,alignmentAxis:n.alignOffset}),n.prioritizePosition&&n.avoidCollisions&&Qe({...p.value,...m.value}),n.avoidCollisions&&Ln({mainAxis:!0,crossAxis:!!n.prioritizePosition,limiter:n.sticky==="partial"?$n():void 0,...p.value}),!n.prioritizePosition&&n.avoidCollisions&&Qe({...p.value,...m.value}),Dn({...p.value,apply:({elements:P,rects:B,availableWidth:D,availableHeight:M})=>{const{width:F,height:k}=B.reference,T=P.floating.style;T.setProperty("--reka-popper-available-width",`${D}px`),T.setProperty("--reka-popper-available-height",`${M}px`),T.setProperty("--reka-popper-anchor-width",`${F}px`),T.setProperty("--reka-popper-anchor-height",`${k}px`)}}),c.value&&Mn({element:c.value,padding:n.arrowPadding}),Tt({arrowWidth:f.value,arrowHeight:u.value}),n.hideWhenDetached&&Bn({strategy:"referenceHidden",...p.value})]),w=R(()=>n.reference??i.anchor.value),{floatingStyles:y,placement:v,isPositioned:A,middlewareData:x}=Wn(w,l,{strategy:n.positionStrategy,placement:a,whileElementsMounted:(...P)=>_n(...P,{layoutShift:!n.disableUpdateOnLayoutShift,animationFrame:n.updatePositionStrategy==="always"}),middleware:g}),O=R(()=>Oe(v.value)[0]),b=R(()=>Oe(v.value)[1]);Ge(()=>{A.value&&o("placed")});const S=R(()=>x.value.arrow?.centerOffset!==0),E=Y("");Ct(()=>{s.value&&(E.value=window.getComputedStyle(s.value).zIndex)});const C=R(()=>x.value.arrow?.x??0),L=R(()=>x.value.arrow?.y??0);return zn({placedSide:O,onArrowChange:P=>c.value=P,arrowX:C,arrowY:L,shouldHideArrow:S}),(P,B)=>(ne(),de("div",{ref_key:"floatingRef",ref:l,"data-reka-popper-content-wrapper":"",style:tt({..._(y),transform:_(A)?_(y).transform:"translate(0, -200%)",minWidth:"max-content",zIndex:E.value,"--reka-popper-transform-origin":[_(x).transformOrigin?.x,_(x).transformOrigin?.y].join(" "),..._(x).hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}})},[et(_(_e),Ee({ref:_(r)},P.$attrs,{"as-child":n.asChild,as:P.as,"data-side":O.value,"data-align":b.value,style:{animation:_(A)?void 0:"none"}}),{default:we(()=>[ce(P.$slots,"default")]),_:3},16,["as-child","as","data-side","data-align","style"])],4))}}),Zn=Nn;const Vn={top:"bottom",right:"left",bottom:"top",left:"right"};var In=ae({inheritAttrs:!1,__name:"PopperArrow",props:{width:{type:Number,required:!1},height:{type:Number,required:!1},rounded:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"svg"}},setup(e){const{forwardRef:t}=ge(),n=Hn(),o=R(()=>Vn[n.placedSide.value]);return(i,r)=>(ne(),de("span",{ref:s=>{_(n).onArrowChange(s)},style:tt({position:"absolute",left:_(n).arrowX?.value?`${_(n).arrowX?.value}px`:void 0,top:_(n).arrowY?.value?`${_(n).arrowY?.value}px`:void 0,[o.value]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[_(n).placedSide.value],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[_(n).placedSide.value],visibility:_(n).shouldHideArrow.value?"hidden":void 0})},[et(Dt,Ee(i.$attrs,{ref:_(t),style:{display:"block"},as:i.as,"as-child":i.asChild,rounded:i.rounded,width:i.width,height:i.height}),{default:we(()=>[ce(i.$slots,"default")]),_:3},16,["as","as-child","rounded","width","height"])],4))}}),Kn=In;export{Kn as P,Yn as a,Zn as b,jn as c,Tn as d,Dn as e,Qe as f,Un as g,Bn as h,Qn as i,kn as j,qn as k,En as o,Ln as s};
|
|
1
|
+
import{e as Y,i as R,C as gt,a6 as wt,d as ae,aQ as Ke,r as ce,u as ge,bO as Ge,c as Je,o as ne,w as we,a as _,P as _e,M as de,m as Ee,s as yt,h as Ae,y as vt,at as xt,bP as ee,bQ as bt,bR as At,F as Ct,Z as et,a$ as tt}from"./CBqC92gC.js";function Ot(e){const t=Y(),n=R(()=>t.value?.width??0),o=R(()=>t.value?.height??0);return gt(()=>{const i=wt(e);if(i){t.value={width:i.offsetWidth,height:i.offsetHeight};const r=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const l=s[0];let c,f;if("borderBoxSize"in l){const u=l.borderBoxSize,a=Array.isArray(u)?u[0]:u;c=a.inlineSize,f=a.blockSize}else c=i.offsetWidth,f=i.offsetHeight;t.value={width:c,height:f}});return r.observe(i,{box:"border-box"}),()=>r.unobserve(i)}else t.value=void 0}),{width:n,height:o}}const[nt,Pt]=Ke("PopperRoot");var St=ae({inheritAttrs:!1,__name:"PopperRoot",setup(e){const t=Y();return Pt({anchor:t,onAnchorChange:n=>t.value=n}),(n,o)=>ce(n.$slots,"default")}}),Yn=St,Rt=ae({__name:"PopperAnchor",props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,{forwardRef:n,currentElement:o}=ge(),i=nt();return Ge(()=>{i.onAnchorChange(t.reference??o.value)}),(r,s)=>(ne(),Je(_(_e),{ref:_(n),as:r.as,"as-child":r.asChild},{default:we(()=>[ce(r.$slots,"default")]),_:3},8,["as","as-child"]))}}),jn=Rt;const _t={key:0,d:"M0 0L6 6L12 0"},Et={key:1,d:"M0 0L4.58579 4.58579C5.36683 5.36683 6.63316 5.36684 7.41421 4.58579L12 0"};var Lt=ae({__name:"Arrow",props:{width:{type:Number,required:!1,default:10},height:{type:Number,required:!1,default:5},rounded:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"svg"}},setup(e){const t=e;return ge(),(n,o)=>(ne(),Je(_(_e),Ee(t,{width:n.width,height:n.height,viewBox:n.asChild?void 0:"0 0 12 6",preserveAspectRatio:n.asChild?void 0:"none"}),{default:we(()=>[ce(n.$slots,"default",{},()=>[n.rounded?(ne(),de("path",Et)):(ne(),de("path",_t))])]),_:3},16,["width","height","viewBox","preserveAspectRatio"]))}}),Dt=Lt;function Bt(e){return e!==null}function Tt(e){return{name:"transformOrigin",options:e,fn(t){const{placement:n,rects:o,middlewareData:i}=t,s=i.arrow?.centerOffset!==0,l=s?0:e.arrowWidth,c=s?0:e.arrowHeight,[f,u]=Oe(n),a={start:"0%",center:"50%",end:"100%"}[u],h=(i.arrow?.x??0)+l/2,d=(i.arrow?.y??0)+c/2;let p="",m="";return f==="bottom"?(p=s?a:`${h}px`,m=`${-c}px`):f==="top"?(p=s?a:`${h}px`,m=`${o.floating.height+c}px`):f==="right"?(p=`${-c}px`,m=s?a:`${d}px`):f==="left"&&(p=`${o.floating.width+c}px`,m=s?a:`${d}px`),{data:{x:p,y:m}}}}}function Oe(e){const[t,n="center"]=e.split("-");return[t,n]}const ot=["top","right","bottom","left"],We=["start","end"],qe=ot.reduce((e,t)=>e.concat(t,t+"-"+We[0],t+"-"+We[1]),[]),N=Math.min,$=Math.max,pe=Math.round,ue=Math.floor,j=e=>({x:e,y:e}),$t={left:"right",right:"left",bottom:"top",top:"bottom"},kt={start:"end",end:"start"};function Pe(e,t,n){return $(e,N(t,n))}function V(e,t){return typeof e=="function"?e(t):e}function q(e){return e.split("-")[0]}function z(e){return e.split("-")[1]}function Le(e){return e==="x"?"y":"x"}function De(e){return e==="y"?"height":"width"}const Ft=new Set(["top","bottom"]);function H(e){return Ft.has(q(e))?"y":"x"}function Be(e){return Le(H(e))}function it(e,t,n){n===void 0&&(n=!1);const o=z(e),i=Be(e),r=De(i);let s=i==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[r]>t.floating[r]&&(s=me(s)),[s,me(s)]}function Mt(e){const t=me(e);return[he(e),t,he(t)]}function he(e){return e.replace(/start|end/g,t=>kt[t])}const He=["left","right"],ze=["right","left"],Wt=["top","bottom"],qt=["bottom","top"];function Ht(e,t,n){switch(e){case"top":case"bottom":return n?t?ze:He:t?He:ze;case"left":case"right":return t?Wt:qt;default:return[]}}function zt(e,t,n,o){const i=z(e);let r=Ht(q(e),n==="start",o);return i&&(r=r.map(s=>s+"-"+i),t&&(r=r.concat(r.map(he)))),r}function me(e){return e.replace(/left|right|bottom|top/g,t=>$t[t])}function Nt(e){return{top:0,right:0,bottom:0,left:0,...e}}function Te(e){return typeof e!="number"?Nt(e):{top:e,right:e,bottom:e,left:e}}function ie(e){const{x:t,y:n,width:o,height:i}=e;return{width:o,height:i,top:n,left:t,right:t+o,bottom:n+i,x:t,y:n}}function Ne(e,t,n){let{reference:o,floating:i}=e;const r=H(t),s=Be(t),l=De(s),c=q(t),f=r==="y",u=o.x+o.width/2-i.width/2,a=o.y+o.height/2-i.height/2,h=o[l]/2-i[l]/2;let d;switch(c){case"top":d={x:u,y:o.y-i.height};break;case"bottom":d={x:u,y:o.y+o.height};break;case"right":d={x:o.x+o.width,y:a};break;case"left":d={x:o.x-i.width,y:a};break;default:d={x:o.x,y:o.y}}switch(z(t)){case"start":d[s]-=h*(n&&f?-1:1);break;case"end":d[s]+=h*(n&&f?-1:1);break}return d}const Vt=async(e,t,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:r=[],platform:s}=n,l=r.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t));let f=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:a}=Ne(f,o,c),h=o,d={},p=0;for(let m=0;m<l.length;m++){const{name:g,fn:w}=l[m],{x:y,y:v,data:A,reset:x}=await w({x:u,y:a,initialPlacement:o,placement:h,strategy:i,middlewareData:d,rects:f,platform:s,elements:{reference:e,floating:t}});u=y??u,a=v??a,d={...d,[g]:{...d[g],...A}},x&&p<=50&&(p++,typeof x=="object"&&(x.placement&&(h=x.placement),x.rects&&(f=x.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:a}=Ne(f,h,c)),m=-1)}return{x:u,y:a,placement:h,strategy:i,middlewareData:d}};async function re(e,t){var n;t===void 0&&(t={});const{x:o,y:i,platform:r,rects:s,elements:l,strategy:c}=e,{boundary:f="clippingAncestors",rootBoundary:u="viewport",elementContext:a="floating",altBoundary:h=!1,padding:d=0}=V(t,e),p=Te(d),g=l[h?a==="floating"?"reference":"floating":a],w=ie(await r.getClippingRect({element:(n=await(r.isElement==null?void 0:r.isElement(g)))==null||n?g:g.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(l.floating)),boundary:f,rootBoundary:u,strategy:c})),y=a==="floating"?{x:o,y:i,width:s.floating.width,height:s.floating.height}:s.reference,v=await(r.getOffsetParent==null?void 0:r.getOffsetParent(l.floating)),A=await(r.isElement==null?void 0:r.isElement(v))?await(r.getScale==null?void 0:r.getScale(v))||{x:1,y:1}:{x:1,y:1},x=ie(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:y,offsetParent:v,strategy:c}):y);return{top:(w.top-x.top+p.top)/A.y,bottom:(x.bottom-w.bottom+p.bottom)/A.y,left:(w.left-x.left+p.left)/A.x,right:(x.right-w.right+p.right)/A.x}}const It=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:i,rects:r,platform:s,elements:l,middlewareData:c}=t,{element:f,padding:u=0}=V(e,t)||{};if(f==null)return{};const a=Te(u),h={x:n,y:o},d=Be(i),p=De(d),m=await s.getDimensions(f),g=d==="y",w=g?"top":"left",y=g?"bottom":"right",v=g?"clientHeight":"clientWidth",A=r.reference[p]+r.reference[d]-h[d]-r.floating[p],x=h[d]-r.reference[d],O=await(s.getOffsetParent==null?void 0:s.getOffsetParent(f));let b=O?O[v]:0;(!b||!await(s.isElement==null?void 0:s.isElement(O)))&&(b=l.floating[v]||r.floating[p]);const S=A/2-x/2,E=b/2-m[p]/2-1,C=N(a[w],E),L=N(a[y],E),P=C,B=b-m[p]-L,D=b/2-m[p]/2+S,M=Pe(P,D,B),F=!c.arrow&&z(i)!=null&&D!==M&&r.reference[p]/2-(D<P?C:L)-m[p]/2<0,k=F?D<P?D-P:D-B:0;return{[d]:h[d]+k,data:{[d]:M,centerOffset:D-M-k,...F&&{alignmentOffset:k}},reset:F}}});function Xt(e,t,n){return(e?[...n.filter(i=>z(i)===e),...n.filter(i=>z(i)!==e)]:n.filter(i=>q(i)===i)).filter(i=>e?z(i)===e||(t?he(i)!==i:!1):!0)}const Yt=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,o,i;const{rects:r,middlewareData:s,placement:l,platform:c,elements:f}=t,{crossAxis:u=!1,alignment:a,allowedPlacements:h=qe,autoAlignment:d=!0,...p}=V(e,t),m=a!==void 0||h===qe?Xt(a||null,d,h):h,g=await re(t,p),w=((n=s.autoPlacement)==null?void 0:n.index)||0,y=m[w];if(y==null)return{};const v=it(y,r,await(c.isRTL==null?void 0:c.isRTL(f.floating)));if(l!==y)return{reset:{placement:m[0]}};const A=[g[q(y)],g[v[0]],g[v[1]]],x=[...((o=s.autoPlacement)==null?void 0:o.overflows)||[],{placement:y,overflows:A}],O=m[w+1];if(O)return{data:{index:w+1,overflows:x},reset:{placement:O}};const b=x.map(C=>{const L=z(C.placement);return[C.placement,L&&u?C.overflows.slice(0,2).reduce((P,B)=>P+B,0):C.overflows[0],C.overflows]}).sort((C,L)=>C[1]-L[1]),E=((i=b.filter(C=>C[2].slice(0,z(C[0])?2:3).every(L=>L<=0))[0])==null?void 0:i[0])||b[0][0];return E!==l?{data:{index:w+1,overflows:x},reset:{placement:E}}:{}}}},jt=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:i,middlewareData:r,rects:s,initialPlacement:l,platform:c,elements:f}=t,{mainAxis:u=!0,crossAxis:a=!0,fallbackPlacements:h,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:m=!0,...g}=V(e,t);if((n=r.arrow)!=null&&n.alignmentOffset)return{};const w=q(i),y=H(l),v=q(l)===l,A=await(c.isRTL==null?void 0:c.isRTL(f.floating)),x=h||(v||!m?[me(l)]:Mt(l)),O=p!=="none";!h&&O&&x.push(...zt(l,m,p,A));const b=[l,...x],S=await re(t,g),E=[];let C=((o=r.flip)==null?void 0:o.overflows)||[];if(u&&E.push(S[w]),a){const D=it(i,s,A);E.push(S[D[0]],S[D[1]])}if(C=[...C,{placement:i,overflows:E}],!E.every(D=>D<=0)){var L,P;const D=(((L=r.flip)==null?void 0:L.index)||0)+1,M=b[D];if(M&&(!(a==="alignment"?y!==H(M):!1)||C.every(T=>H(T.placement)===y?T.overflows[0]>0:!0)))return{data:{index:D,overflows:C},reset:{placement:M}};let F=(P=C.filter(k=>k.overflows[0]<=0).sort((k,T)=>k.overflows[1]-T.overflows[1])[0])==null?void 0:P.placement;if(!F)switch(d){case"bestFit":{var B;const k=(B=C.filter(T=>{if(O){const Z=H(T.placement);return Z===y||Z==="y"}return!0}).map(T=>[T.placement,T.overflows.filter(Z=>Z>0).reduce((Z,mt)=>Z+mt,0)]).sort((T,Z)=>T[1]-Z[1])[0])==null?void 0:B[0];k&&(F=k);break}case"initialPlacement":F=l;break}if(i!==F)return{reset:{placement:F}}}return{}}}};function Ve(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ie(e){return ot.some(t=>e[t]>=0)}const Ut=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:o="referenceHidden",...i}=V(e,t);switch(o){case"referenceHidden":{const r=await re(t,{...i,elementContext:"reference"}),s=Ve(r,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Ie(s)}}}case"escaped":{const r=await re(t,{...i,altBoundary:!0}),s=Ve(r,n.floating);return{data:{escapedOffsets:s,escaped:Ie(s)}}}default:return{}}}}};function rt(e){const t=N(...e.map(r=>r.left)),n=N(...e.map(r=>r.top)),o=$(...e.map(r=>r.right)),i=$(...e.map(r=>r.bottom));return{x:t,y:n,width:o-t,height:i-n}}function Qt(e){const t=e.slice().sort((i,r)=>i.y-r.y),n=[];let o=null;for(let i=0;i<t.length;i++){const r=t[i];!o||r.y-o.y>o.height/2?n.push([r]):n[n.length-1].push(r),o=r}return n.map(i=>ie(rt(i)))}const Zt=function(e){return e===void 0&&(e={}),{name:"inline",options:e,async fn(t){const{placement:n,elements:o,rects:i,platform:r,strategy:s}=t,{padding:l=2,x:c,y:f}=V(e,t),u=Array.from(await(r.getClientRects==null?void 0:r.getClientRects(o.reference))||[]),a=Qt(u),h=ie(rt(u)),d=Te(l);function p(){if(a.length===2&&a[0].left>a[1].right&&c!=null&&f!=null)return a.find(g=>c>g.left-d.left&&c<g.right+d.right&&f>g.top-d.top&&f<g.bottom+d.bottom)||h;if(a.length>=2){if(H(n)==="y"){const C=a[0],L=a[a.length-1],P=q(n)==="top",B=C.top,D=L.bottom,M=P?C.left:L.left,F=P?C.right:L.right,k=F-M,T=D-B;return{top:B,bottom:D,left:M,right:F,width:k,height:T,x:M,y:B}}const g=q(n)==="left",w=$(...a.map(C=>C.right)),y=N(...a.map(C=>C.left)),v=a.filter(C=>g?C.left===y:C.right===w),A=v[0].top,x=v[v.length-1].bottom,O=y,b=w,S=b-O,E=x-A;return{top:A,bottom:x,left:O,right:b,width:S,height:E,x:O,y:A}}return h}const m=await r.getElementRects({reference:{getBoundingClientRect:p},floating:o.floating,strategy:s});return i.reference.x!==m.reference.x||i.reference.y!==m.reference.y||i.reference.width!==m.reference.width||i.reference.height!==m.reference.height?{reset:{rects:m}}:{}}}},st=new Set(["left","top"]);async function Kt(e,t){const{placement:n,platform:o,elements:i}=e,r=await(o.isRTL==null?void 0:o.isRTL(i.floating)),s=q(n),l=z(n),c=H(n)==="y",f=st.has(s)?-1:1,u=r&&c?-1:1,a=V(t,e);let{mainAxis:h,crossAxis:d,alignmentAxis:p}=typeof a=="number"?{mainAxis:a,crossAxis:0,alignmentAxis:null}:{mainAxis:a.mainAxis||0,crossAxis:a.crossAxis||0,alignmentAxis:a.alignmentAxis};return l&&typeof p=="number"&&(d=l==="end"?p*-1:p),c?{x:d*u,y:h*f}:{x:h*f,y:d*u}}const Gt=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:i,y:r,placement:s,middlewareData:l}=t,c=await Kt(t,e);return s===((n=l.offset)==null?void 0:n.placement)&&(o=l.arrow)!=null&&o.alignmentOffset?{}:{x:i+c.x,y:r+c.y,data:{...c,placement:s}}}}},Jt=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:i}=t,{mainAxis:r=!0,crossAxis:s=!1,limiter:l={fn:g=>{let{x:w,y}=g;return{x:w,y}}},...c}=V(e,t),f={x:n,y:o},u=await re(t,c),a=H(q(i)),h=Le(a);let d=f[h],p=f[a];if(r){const g=h==="y"?"top":"left",w=h==="y"?"bottom":"right",y=d+u[g],v=d-u[w];d=Pe(y,d,v)}if(s){const g=a==="y"?"top":"left",w=a==="y"?"bottom":"right",y=p+u[g],v=p-u[w];p=Pe(y,p,v)}const m=l.fn({...t,[h]:d,[a]:p});return{...m,data:{x:m.x-n,y:m.y-o,enabled:{[h]:r,[a]:s}}}}}},en=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:i,rects:r,middlewareData:s}=t,{offset:l=0,mainAxis:c=!0,crossAxis:f=!0}=V(e,t),u={x:n,y:o},a=H(i),h=Le(a);let d=u[h],p=u[a];const m=V(l,t),g=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(c){const v=h==="y"?"height":"width",A=r.reference[h]-r.floating[v]+g.mainAxis,x=r.reference[h]+r.reference[v]-g.mainAxis;d<A?d=A:d>x&&(d=x)}if(f){var w,y;const v=h==="y"?"width":"height",A=st.has(q(i)),x=r.reference[a]-r.floating[v]+(A&&((w=s.offset)==null?void 0:w[a])||0)+(A?0:g.crossAxis),O=r.reference[a]+r.reference[v]+(A?0:((y=s.offset)==null?void 0:y[a])||0)-(A?g.crossAxis:0);p<x?p=x:p>O&&(p=O)}return{[h]:d,[a]:p}}}},tn=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,o;const{placement:i,rects:r,platform:s,elements:l}=t,{apply:c=()=>{},...f}=V(e,t),u=await re(t,f),a=q(i),h=z(i),d=H(i)==="y",{width:p,height:m}=r.floating;let g,w;a==="top"||a==="bottom"?(g=a,w=h===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(w=a,g=h==="end"?"top":"bottom");const y=m-u.top-u.bottom,v=p-u.left-u.right,A=N(m-u[g],y),x=N(p-u[w],v),O=!t.middlewareData.shift;let b=A,S=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(S=v),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(b=y),O&&!h){const C=$(u.left,0),L=$(u.right,0),P=$(u.top,0),B=$(u.bottom,0);d?S=p-2*(C!==0||L!==0?C+L:$(u.left,u.right)):b=m-2*(P!==0||B!==0?P+B:$(u.top,u.bottom))}await c({...t,availableWidth:S,availableHeight:b});const E=await s.getDimensions(l.floating);return p!==E.width||m!==E.height?{reset:{rects:!0}}:{}}}};function ye(){return typeof window<"u"}function J(e){return $e(e)?(e.nodeName||"").toLowerCase():"#document"}function W(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Q(e){var t;return(t=($e(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function $e(e){return ye()?e instanceof Node||e instanceof W(e).Node:!1}function I(e){return ye()?e instanceof Element||e instanceof W(e).Element:!1}function U(e){return ye()?e instanceof HTMLElement||e instanceof W(e).HTMLElement:!1}function Xe(e){return!ye()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof W(e).ShadowRoot}const nn=new Set(["inline","contents"]);function fe(e){const{overflow:t,overflowX:n,overflowY:o,display:i}=X(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!nn.has(i)}const on=new Set(["table","td","th"]);function rn(e){return on.has(J(e))}const sn=[":popover-open",":modal"];function ve(e){return sn.some(t=>{try{return e.matches(t)}catch{return!1}})}const ln=["transform","translate","scale","rotate","perspective"],an=["transform","translate","scale","rotate","perspective","filter"],cn=["paint","layout","strict","content"];function ke(e){const t=Fe(),n=I(e)?X(e):e;return ln.some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||an.some(o=>(n.willChange||"").includes(o))||cn.some(o=>(n.contain||"").includes(o))}function fn(e){let t=K(e);for(;U(t)&&!se(t);){if(ke(t))return t;if(ve(t))return null;t=K(t)}return null}function Fe(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const un=new Set(["html","body","#document"]);function se(e){return un.has(J(e))}function X(e){return W(e).getComputedStyle(e)}function xe(e){return I(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function K(e){if(J(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Xe(e)&&e.host||Q(e);return Xe(t)?t.host:t}function lt(e){const t=K(e);return se(t)?e.ownerDocument?e.ownerDocument.body:e.body:U(t)&&fe(t)?t:lt(t)}function le(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=lt(e),r=i===((o=e.ownerDocument)==null?void 0:o.body),s=W(i);if(r){const l=Se(s);return t.concat(s,s.visualViewport||[],fe(i)?i:[],l&&n?le(l):[])}return t.concat(i,le(i,[],n))}function Se(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function at(e){const t=X(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const i=U(e),r=i?e.offsetWidth:n,s=i?e.offsetHeight:o,l=pe(n)!==r||pe(o)!==s;return l&&(n=r,o=s),{width:n,height:o,$:l}}function Me(e){return I(e)?e:e.contextElement}function oe(e){const t=Me(e);if(!U(t))return j(1);const n=t.getBoundingClientRect(),{width:o,height:i,$:r}=at(t);let s=(r?pe(n.width):n.width)/o,l=(r?pe(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const dn=j(0);function ct(e){const t=W(e);return!Fe()||!t.visualViewport?dn:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function pn(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==W(e)?!1:t}function G(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),r=Me(e);let s=j(1);t&&(o?I(o)&&(s=oe(o)):s=oe(e));const l=pn(r,n,o)?ct(r):j(0);let c=(i.left+l.x)/s.x,f=(i.top+l.y)/s.y,u=i.width/s.x,a=i.height/s.y;if(r){const h=W(r),d=o&&I(o)?W(o):o;let p=h,m=Se(p);for(;m&&o&&d!==p;){const g=oe(m),w=m.getBoundingClientRect(),y=X(m),v=w.left+(m.clientLeft+parseFloat(y.paddingLeft))*g.x,A=w.top+(m.clientTop+parseFloat(y.paddingTop))*g.y;c*=g.x,f*=g.y,u*=g.x,a*=g.y,c+=v,f+=A,p=W(m),m=Se(p)}}return ie({width:u,height:a,x:c,y:f})}function be(e,t){const n=xe(e).scrollLeft;return t?t.left+n:G(Q(e)).left+n}function ft(e,t){const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-be(e,n),i=n.top+t.scrollTop;return{x:o,y:i}}function hn(e){let{elements:t,rect:n,offsetParent:o,strategy:i}=e;const r=i==="fixed",s=Q(o),l=t?ve(t.floating):!1;if(o===s||l&&r)return n;let c={scrollLeft:0,scrollTop:0},f=j(1);const u=j(0),a=U(o);if((a||!a&&!r)&&((J(o)!=="body"||fe(s))&&(c=xe(o)),U(o))){const d=G(o);f=oe(o),u.x=d.x+o.clientLeft,u.y=d.y+o.clientTop}const h=s&&!a&&!r?ft(s,c):j(0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-c.scrollLeft*f.x+u.x+h.x,y:n.y*f.y-c.scrollTop*f.y+u.y+h.y}}function mn(e){return Array.from(e.getClientRects())}function gn(e){const t=Q(e),n=xe(e),o=e.ownerDocument.body,i=$(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),r=$(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+be(e);const l=-n.scrollTop;return X(o).direction==="rtl"&&(s+=$(t.clientWidth,o.clientWidth)-i),{width:i,height:r,x:s,y:l}}const Ye=25;function wn(e,t){const n=W(e),o=Q(e),i=n.visualViewport;let r=o.clientWidth,s=o.clientHeight,l=0,c=0;if(i){r=i.width,s=i.height;const u=Fe();(!u||u&&t==="fixed")&&(l=i.offsetLeft,c=i.offsetTop)}const f=be(o);if(f<=0){const u=o.ownerDocument,a=u.body,h=getComputedStyle(a),d=u.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,p=Math.abs(o.clientWidth-a.clientWidth-d);p<=Ye&&(r-=p)}else f<=Ye&&(r+=f);return{width:r,height:s,x:l,y:c}}const yn=new Set(["absolute","fixed"]);function vn(e,t){const n=G(e,!0,t==="fixed"),o=n.top+e.clientTop,i=n.left+e.clientLeft,r=U(e)?oe(e):j(1),s=e.clientWidth*r.x,l=e.clientHeight*r.y,c=i*r.x,f=o*r.y;return{width:s,height:l,x:c,y:f}}function je(e,t,n){let o;if(t==="viewport")o=wn(e,n);else if(t==="document")o=gn(Q(e));else if(I(t))o=vn(t,n);else{const i=ct(e);o={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return ie(o)}function ut(e,t){const n=K(e);return n===t||!I(n)||se(n)?!1:X(n).position==="fixed"||ut(n,t)}function xn(e,t){const n=t.get(e);if(n)return n;let o=le(e,[],!1).filter(l=>I(l)&&J(l)!=="body"),i=null;const r=X(e).position==="fixed";let s=r?K(e):e;for(;I(s)&&!se(s);){const l=X(s),c=ke(s);!c&&l.position==="fixed"&&(i=null),(r?!c&&!i:!c&&l.position==="static"&&!!i&&yn.has(i.position)||fe(s)&&!c&&ut(e,s))?o=o.filter(u=>u!==s):i=l,s=K(s)}return t.set(e,o),o}function bn(e){let{element:t,boundary:n,rootBoundary:o,strategy:i}=e;const s=[...n==="clippingAncestors"?ve(t)?[]:xn(t,this._c):[].concat(n),o],l=s[0],c=s.reduce((f,u)=>{const a=je(t,u,i);return f.top=$(a.top,f.top),f.right=N(a.right,f.right),f.bottom=N(a.bottom,f.bottom),f.left=$(a.left,f.left),f},je(t,l,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function An(e){const{width:t,height:n}=at(e);return{width:t,height:n}}function Cn(e,t,n){const o=U(t),i=Q(t),r=n==="fixed",s=G(e,!0,r,t);let l={scrollLeft:0,scrollTop:0};const c=j(0);function f(){c.x=be(i)}if(o||!o&&!r)if((J(t)!=="body"||fe(i))&&(l=xe(t)),o){const d=G(t,!0,r,t);c.x=d.x+t.clientLeft,c.y=d.y+t.clientTop}else i&&f();r&&!o&&i&&f();const u=i&&!o&&!r?ft(i,l):j(0),a=s.left+l.scrollLeft-c.x-u.x,h=s.top+l.scrollTop-c.y-u.y;return{x:a,y:h,width:s.width,height:s.height}}function Ce(e){return X(e).position==="static"}function Ue(e,t){if(!U(e)||X(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Q(e)===n&&(n=n.ownerDocument.body),n}function dt(e,t){const n=W(e);if(ve(e))return n;if(!U(e)){let i=K(e);for(;i&&!se(i);){if(I(i)&&!Ce(i))return i;i=K(i)}return n}let o=Ue(e,t);for(;o&&rn(o)&&Ce(o);)o=Ue(o,t);return o&&se(o)&&Ce(o)&&!ke(o)?n:o||fn(e)||n}const On=async function(e){const t=this.getOffsetParent||dt,n=this.getDimensions,o=await n(e.floating);return{reference:Cn(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Pn(e){return X(e).direction==="rtl"}const Sn={convertOffsetParentRelativeRectToViewportRelativeRect:hn,getDocumentElement:Q,getClippingRect:bn,getOffsetParent:dt,getElementRects:On,getClientRects:mn,getDimensions:An,getScale:oe,isElement:I,isRTL:Pn};function pt(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Rn(e,t){let n=null,o;const i=Q(e);function r(){var l;clearTimeout(o),(l=n)==null||l.disconnect(),n=null}function s(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),r();const f=e.getBoundingClientRect(),{left:u,top:a,width:h,height:d}=f;if(l||t(),!h||!d)return;const p=ue(a),m=ue(i.clientWidth-(u+h)),g=ue(i.clientHeight-(a+d)),w=ue(u),v={rootMargin:-p+"px "+-m+"px "+-g+"px "+-w+"px",threshold:$(0,N(1,c))||1};let A=!0;function x(O){const b=O[0].intersectionRatio;if(b!==c){if(!A)return s();b?s(!1,b):o=setTimeout(()=>{s(!1,1e-7)},1e3)}b===1&&!pt(f,e.getBoundingClientRect())&&s(),A=!1}try{n=new IntersectionObserver(x,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(x,v)}n.observe(e)}return s(!0),r}function _n(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,f=Me(e),u=i||r?[...f?le(f):[],...le(t)]:[];u.forEach(w=>{i&&w.addEventListener("scroll",n,{passive:!0}),r&&w.addEventListener("resize",n)});const a=f&&l?Rn(f,n):null;let h=-1,d=null;s&&(d=new ResizeObserver(w=>{let[y]=w;y&&y.target===f&&d&&(d.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var v;(v=d)==null||v.observe(t)})),n()}),f&&!c&&d.observe(f),d.observe(t));let p,m=c?G(e):null;c&&g();function g(){const w=G(e);m&&!pt(m,w)&&n(),m=w,p=requestAnimationFrame(g)}return n(),()=>{var w;u.forEach(y=>{i&&y.removeEventListener("scroll",n),r&&y.removeEventListener("resize",n)}),a?.(),(w=d)==null||w.disconnect(),d=null,c&&cancelAnimationFrame(p)}}const En=Gt,Un=Yt,Ln=Jt,Qe=jt,Dn=tn,Bn=Ut,Tn=It,Qn=Zt,$n=en,kn=(e,t,n)=>{const o=new Map,i={platform:Sn,...n},r={...i.platform,_c:o};return Vt(e,t,{...i,platform:r})};function Fn(e){return e!=null&&typeof e=="object"&&"$el"in e}function Re(e){if(Fn(e)){const t=e.$el;return $e(t)&&J(t)==="#comment"?null:t}return e}function te(e){return typeof e=="function"?e():_(e)}function Mn(e){return{name:"arrow",options:e,fn(t){const n=Re(te(e.element));return n==null?{}:Tn({element:n,padding:e.padding}).fn(t)}}}function ht(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ze(e,t){const n=ht(e);return Math.round(t*n)/n}function Wn(e,t,n){n===void 0&&(n={});const o=n.whileElementsMounted,i=R(()=>{var b;return(b=te(n.open))!=null?b:!0}),r=R(()=>te(n.middleware)),s=R(()=>{var b;return(b=te(n.placement))!=null?b:"bottom"}),l=R(()=>{var b;return(b=te(n.strategy))!=null?b:"absolute"}),c=R(()=>{var b;return(b=te(n.transform))!=null?b:!0}),f=R(()=>Re(e.value)),u=R(()=>Re(t.value)),a=Y(0),h=Y(0),d=Y(l.value),p=Y(s.value),m=yt({}),g=Y(!1),w=R(()=>{const b={position:d.value,left:"0",top:"0"};if(!u.value)return b;const S=Ze(u.value,a.value),E=Ze(u.value,h.value);return c.value?{...b,transform:"translate("+S+"px, "+E+"px)",...ht(u.value)>=1.5&&{willChange:"transform"}}:{position:d.value,left:S+"px",top:E+"px"}});let y;function v(){if(f.value==null||u.value==null)return;const b=i.value;kn(f.value,u.value,{middleware:r.value,placement:s.value,strategy:l.value}).then(S=>{a.value=S.x,h.value=S.y,d.value=S.strategy,p.value=S.placement,m.value=S.middlewareData,g.value=b!==!1})}function A(){typeof y=="function"&&(y(),y=void 0)}function x(){if(A(),o===void 0){v();return}if(f.value!=null&&u.value!=null){y=o(f.value,u.value,v);return}}function O(){i.value||(g.value=!1)}return Ae([r,s,l,i],v,{flush:"sync"}),Ae([f,u],x,{flush:"sync"}),Ae(i,O,{flush:"sync"}),vt()&&xt(A),{x:ee(a),y:ee(h),strategy:ee(d),placement:ee(p),middlewareData:ee(m),isPositioned:ee(g),floatingStyles:w,update:v}}const qn={side:"bottom",sideOffset:0,sideFlip:!0,align:"center",alignOffset:0,alignFlip:!0,arrowPadding:0,avoidCollisions:!0,collisionBoundary:()=>[],collisionPadding:0,sticky:"partial",hideWhenDetached:!1,positionStrategy:"fixed",updatePositionStrategy:"optimized",prioritizePosition:!1},[Hn,zn]=Ke("PopperContent");var Nn=ae({inheritAttrs:!1,__name:"PopperContent",props:bt({side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},{...qn}),emits:["placed"],setup(e,{emit:t}){const n=e,o=t,i=nt(),{forwardRef:r,currentElement:s}=ge(),l=Y(),c=Y(),{width:f,height:u}=Ot(c),a=R(()=>n.side+(n.align!=="center"?`-${n.align}`:"")),h=R(()=>typeof n.collisionPadding=="number"?n.collisionPadding:{top:0,right:0,bottom:0,left:0,...n.collisionPadding}),d=R(()=>Array.isArray(n.collisionBoundary)?n.collisionBoundary:[n.collisionBoundary]),p=R(()=>({padding:h.value,boundary:d.value.filter(Bt),altBoundary:d.value.length>0})),m=R(()=>({mainAxis:n.sideFlip,crossAxis:n.alignFlip})),g=At(()=>[En({mainAxis:n.sideOffset+u.value,alignmentAxis:n.alignOffset}),n.prioritizePosition&&n.avoidCollisions&&Qe({...p.value,...m.value}),n.avoidCollisions&&Ln({mainAxis:!0,crossAxis:!!n.prioritizePosition,limiter:n.sticky==="partial"?$n():void 0,...p.value}),!n.prioritizePosition&&n.avoidCollisions&&Qe({...p.value,...m.value}),Dn({...p.value,apply:({elements:P,rects:B,availableWidth:D,availableHeight:M})=>{const{width:F,height:k}=B.reference,T=P.floating.style;T.setProperty("--reka-popper-available-width",`${D}px`),T.setProperty("--reka-popper-available-height",`${M}px`),T.setProperty("--reka-popper-anchor-width",`${F}px`),T.setProperty("--reka-popper-anchor-height",`${k}px`)}}),c.value&&Mn({element:c.value,padding:n.arrowPadding}),Tt({arrowWidth:f.value,arrowHeight:u.value}),n.hideWhenDetached&&Bn({strategy:"referenceHidden",...p.value})]),w=R(()=>n.reference??i.anchor.value),{floatingStyles:y,placement:v,isPositioned:A,middlewareData:x}=Wn(w,l,{strategy:n.positionStrategy,placement:a,whileElementsMounted:(...P)=>_n(...P,{layoutShift:!n.disableUpdateOnLayoutShift,animationFrame:n.updatePositionStrategy==="always"}),middleware:g}),O=R(()=>Oe(v.value)[0]),b=R(()=>Oe(v.value)[1]);Ge(()=>{A.value&&o("placed")});const S=R(()=>x.value.arrow?.centerOffset!==0),E=Y("");Ct(()=>{s.value&&(E.value=window.getComputedStyle(s.value).zIndex)});const C=R(()=>x.value.arrow?.x??0),L=R(()=>x.value.arrow?.y??0);return zn({placedSide:O,onArrowChange:P=>c.value=P,arrowX:C,arrowY:L,shouldHideArrow:S}),(P,B)=>(ne(),de("div",{ref_key:"floatingRef",ref:l,"data-reka-popper-content-wrapper":"",style:tt({..._(y),transform:_(A)?_(y).transform:"translate(0, -200%)",minWidth:"max-content",zIndex:E.value,"--reka-popper-transform-origin":[_(x).transformOrigin?.x,_(x).transformOrigin?.y].join(" "),..._(x).hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}})},[et(_(_e),Ee({ref:_(r)},P.$attrs,{"as-child":n.asChild,as:P.as,"data-side":O.value,"data-align":b.value,style:{animation:_(A)?void 0:"none"}}),{default:we(()=>[ce(P.$slots,"default")]),_:3},16,["as-child","as","data-side","data-align","style"])],4))}}),Zn=Nn;const Vn={top:"bottom",right:"left",bottom:"top",left:"right"};var In=ae({inheritAttrs:!1,__name:"PopperArrow",props:{width:{type:Number,required:!1},height:{type:Number,required:!1},rounded:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"svg"}},setup(e){const{forwardRef:t}=ge(),n=Hn(),o=R(()=>Vn[n.placedSide.value]);return(i,r)=>(ne(),de("span",{ref:s=>{_(n).onArrowChange(s)},style:tt({position:"absolute",left:_(n).arrowX?.value?`${_(n).arrowX?.value}px`:void 0,top:_(n).arrowY?.value?`${_(n).arrowY?.value}px`:void 0,[o.value]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[_(n).placedSide.value],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[_(n).placedSide.value],visibility:_(n).shouldHideArrow.value?"hidden":void 0})},[et(Dt,Ee(i.$attrs,{ref:_(t),style:{display:"block"},as:i.as,"as-child":i.asChild,rounded:i.rounded,width:i.width,height:i.height}),{default:we(()=>[ce(i.$slots,"default")]),_:3},16,["as","as-child","rounded","width","height"])],4))}}),Kn=In;export{Kn as P,Yn as a,Zn as b,jn as c,Tn as d,Dn as e,Qe as f,Un as g,Bn as h,Qn as i,kn as j,qn as k,En as o,Ln as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as q}from"./
|
|
1
|
+
import{_ as q}from"./4Vi9hKJC.js";import{d as D,aj as F,e as m,C as M,M as c,ac as a,Z as l,ak as I,a as i,w as U,al as h,am as k,a0 as H,o as r,ab as P,aa as O,_ as Z,af as w}from"./CBqC92gC.js";import{_ as G}from"./OwiFxd0L.js";import{_ as J}from"./DhvuBruY.js";import{_ as K}from"./DuYzdzqK.js";import{u as Q,d as g}from"./C6FzuEFH.js";import"./DUf0f355.js";import"./CTIUqf4N.js";import"./CdIGoC9r.js";import"./CltqyXO5.js";import"./ClKTC8bU.js";import"./V5ro_Ide.js";const W={class:"max-w-2xl mx-auto py-6"},X={class:"mb-8"},Y={class:"flex gap-2"},ee={key:0,class:"space-y-3"},te={key:1,class:"space-y-2"},se={class:"flex items-center justify-between px-4 py-3"},ae={class:"flex items-center gap-3"},oe={class:"font-medium"},le={key:0,class:"border-t border-default px-4 py-3 space-y-2 bg-elevated/50"},ie={class:"text-sm text-dimmed capitalize"},ne={class:"mt-6"},ge=D({__name:"app",setup(ce){const f=F(),{updatePreferences:R}=Q(),n=m(""),b=m(!1);async function L(){try{const{data:s}=await $fetch("/api/secrets/APP_URL");n.value=s.value||""}catch{n.value=""}}async function $(){b.value=!0;try{if(n.value)try{await $fetch("/api/secrets/APP_URL",{method:"PUT",body:{value:n.value,description:"Public URL for webhooks and auth callbacks"}})}catch{await $fetch("/api/secrets",{method:"POST",body:{key:"APP_URL",value:n.value,description:"Public URL for webhooks and auth callbacks"}})}else try{await $fetch("/api/secrets/APP_URL",{method:"DELETE"})}catch{}f.add({title:"Public URL saved",description:"Restart running integrations for changes to take effect.",color:"success"})}catch{f.add({title:"Failed to save URL",color:"error"})}b.value=!1}const o=m({...g}),v=m(!1),y=m(!1),p=m(new Set),C=[{key:"task",label:"Tasks",icon:"i-lucide-check-square",subtypes:["create","edit","delete","restore"]},{key:"project",label:"Projects",icon:"i-lucide-folder",subtypes:["create","edit","delete"]},{key:"agent",label:"Agents",icon:"i-lucide-bot",subtypes:["create","edit","delete","run","complete","fail","cancel"]},{key:"document",label:"Documents",icon:"i-lucide-file-text",subtypes:["edit","delete","restore"]},{key:"memory",label:"Memories",icon:"i-lucide-brain",subtypes:["create","delete"]},{key:"reminder",label:"Reminders",icon:"i-lucide-bell",subtypes:["create"]},{key:"secret",label:"Secrets",icon:"i-lucide-key-round",subtypes:["create","edit","delete"]},{key:"hook",label:"Hooks",icon:"i-lucide-webhook",subtypes:["create"]},{key:"conversation",label:"Conversations",icon:"i-lucide-message-square",subtypes:["delete"]},{key:"bridge",label:"Bridges",icon:"i-lucide-plug",subtypes:["create","edit","delete","complete","fail"]}];async function S(){v.value=!0;try{const{data:s}=await $fetch("/api/settings");o.value={...g,...s.notifications}}catch{o.value={...g}}v.value=!1}async function V(){y.value=!0;try{await $fetch("/api/settings",{method:"PUT",body:{notifications:o.value}}),R(o.value),f.add({title:"Notification preferences saved",color:"success"})}catch{f.add({title:"Failed to save preferences",color:"error"})}y.value=!1}function N(s){p.value.has(s)?p.value.delete(s):p.value.add(s)}function T(s,e){o.value[s]={...o.value[s],enabled:e}}function A(s,e,_){const u=o.value[s];o.value[s]={...u,subtypes:{...u?.subtypes,[e]:_}}}return M(()=>{L(),S()}),(s,e)=>{const _=q,u=H,E=G,B=J,j=Z,x=K;return r(),c("div",W,[a("div",X,[e[2]||(e[2]=a("h3",{class:"text-lg font-semibold mb-1"}," Public URL ",-1)),e[3]||(e[3]=a("p",{class:"text-sm text-dimmed mb-4"}," The publicly accessible URL for this instance. Used for Telegram webhooks, auth callbacks, and other integrations that need to reach your server. ",-1)),a("div",Y,[l(_,{modelValue:i(n),"onUpdate:modelValue":e[0]||(e[0]=t=>I(n)?n.value=t:null),placeholder:"https://example.com",class:"flex-1"},null,8,["modelValue"]),l(u,{loading:i(b),onClick:$},{default:U(()=>[...e[1]||(e[1]=[P(" Save ",-1)])]),_:1},8,["loading"])]),e[4]||(e[4]=a("p",{class:"text-xs text-dimmed mt-2"}," Leave empty to use long-polling for Telegram instead of webhooks. Changes require restarting running integrations. ",-1))]),l(E,{class:"mb-8"}),e[6]||(e[6]=a("div",{class:"mb-6"},[a("h3",{class:"text-lg font-semibold mb-1"}," Notification Preferences "),a("p",{class:"text-sm text-dimmed"}," Choose which resource changes show toast notifications. ")],-1)),i(v)?(r(),c("div",ee,[(r(),c(h,null,k(5,t=>l(B,{key:t,class:"h-12 w-full"})),64))])):(r(),c("div",te,[(r(),c(h,null,k(C,t=>a("div",{key:t.key,class:"border border-default rounded-lg"},[a("div",se,[a("div",ae,[l(u,{variant:"ghost",size:"xs",icon:i(p).has(t.key)?"i-lucide-chevron-down":"i-lucide-chevron-right",onClick:d=>N(t.key)},null,8,["icon","onClick"]),l(j,{name:t.icon,class:"size-5 text-dimmed"},null,8,["name"]),a("span",oe,w(t.label),1)]),l(x,{"model-value":i(o)[t.key]?.enabled??!1,"onUpdate:modelValue":d=>T(t.key,d)},null,8,["model-value","onUpdate:modelValue"])]),i(p).has(t.key)&&i(o)[t.key]?.enabled?(r(),c("div",le,[(r(!0),c(h,null,k(t.subtypes,d=>(r(),c("div",{key:d,class:"flex items-center justify-between pl-11"},[a("span",ie,w(d),1),l(x,{"model-value":i(o)[t.key]?.subtypes?.[d]!==!1,size:"sm","onUpdate:modelValue":z=>A(t.key,d,z)},null,8,["model-value","onUpdate:modelValue"])]))),128))])):O("",!0)])),64))])),a("div",ne,[l(u,{loading:i(y),onClick:V},{default:U(()=>[...e[5]||(e[5]=[P(" Save Preferences ",-1)])]),_:1},8,["loading"])])])}}});export{ge as default};
|