1import{aK as j,aL as T,j as m,x as y,aM as M,aN as w,a9 as b,aO as S,aP as C,aQ as P,aR as U,aS as _,aT as $,y as N,aF as k,aU as D,a2 as L,d as R,Z as F,aV as K,a8 as V}from"./CW8a1dFb.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};t.SENTRY_RELEASE={id:"08f75a4087f78ecce8d1253c3e394f0be0740cbb"};var e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="513e7630-0758-484f-9ef1-ce96f626a45a",t._sentryDebugIdIdentifier="sentry-dbid-513e7630-0758-484f-9ef1-ce96f626a45a")}catch{}})();function W(t,e){const a=typeof t=="string"&&!e?`${t}Context`:e,s=Symbol(a);return[o=>{const n=j(s,o);if(n||n===null)return n;throw new Error(`Injection \`${s.toString()}\` not found. Component must be used within ${Array.isArray(t)?`one of the following components: ${t.join(", ")}`:`\`${t}\``}`)},o=>(T(s,o),o)]}const[O]=W("ConfigProvider");function G(t){const e=O({dir:m("ltr")});return y(()=>t?.value||e.dir?.value||"ltr")}function B(t){const e=b(),a=e?.type.emits,s={};return a?.length||console.warn(`No emitted event found. Please check component: ${e?.type.__name}`),a?.forEach(u=>{s[M(w(u))]=(...i)=>t(u,...i)}),s}function J(){const t=b(),e=m(),a=y(()=>s());S(()=>{a.value!==s()&&C(e)});function s(){return e.value&&"$el"in e.value&&["#text","#comment"].includes(e.value.$el.nodeName)?e.value.$el.nextElementSibling:P(e)}const u=Object.assign({}
1,t.exposed),i={};for(const n in t.props)Object.defineProperty(i,n,{enumerable:!0,configurable:!0,get:()=>t.props[n]});if(Object.keys(u).length>0)for(const n in u)Object.defineProperty(i,n,{enumerable:!0,configurable:!0,get:()=>u[n]});Object.defineProperty(i,"$el",{enumerable:!0,configurable:!0,get:()=>t.vnode.el}),t.exposed=i;function o(n){if(e.value=n,!!n&&(Object.defineProperty(i,"$el",{enumerable:!0,configurable:!0,get:()=>n instanceof Element?n:n.$el}),!(n instanceof Element)&&!Object.hasOwn(n,"$el"))){const f=n.$.exposed,l=Object.assign({},i);for(const r in f)Object.defineProperty(l,r,{enumerable:!0,configurable:!0,get:()=>f[r]});t.exposed=l}}return{forwardRef:o,currentRef:e,currentElement:a}}function Y(t){const e=b(),a=Object.keys(e?.type.props??{}).reduce((u,i)=>{const o=(e?.type.props[i]).default;return o!==void 0&&(u[i]=o),u},{}),s=U(t);return y(()=>{const u={},i=e?.vnode.props??{};return Object.keys(i).forEach(o=>{u[w(o)]=i[o]}),Object.keys({...a,...u}).reduce((o,n)=>(s.value[n]!==void 0&&(o[n]=s.value[n]),o),{})})}function X(t,e){const a=Y(t),s=e?B(e):{};return y(()=>({...a.value,...s}))}function ee(t,e="reka"){if(t)return t;let a;const s=O({useId:void 0});return s.useId?a=s.useId():a=_?.(),e?`${e}-${a}`:a}function q(t,e){const a=m(t);function s(i){return e[a.value][i]??a.value}return{state:a,dispatch:i=>{a.value=s(i)}}}function z(t,e){const a=m({}),s=m("none"),u=m(t),i=t.value?"mounted":"unmounted";let o;const n=e.value?.ownerDocument.defaultView??$,{state:f,dispatch:l}=q(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}}),r=c=>{if(D){const d=new CustomEvent(c,{bubbles:!1,cancelable:!1});e.value?.dispatchEvent(d)}};N(t,async(c,d)=>{const E=d!==c;if(await L(),E){const A=s.value,p=g(e.value);c?(l("MOUNT"),r("enter"),p==="none"&&r("after-enter")):p==="none"||p==="undefined"||a.value?.display==="none"?(l("UNMOUNT"),r("leave"),r("after-leave")):d&&A!==p?(l("ANIMATION_OUT"),r("leave")):(l("UNMOUNT"),r("after-leave"))}},{immediate:!0});const v=c=>{const d=g(e.value),E=d.includes(CSS.escape(c.animationName)),A=f.value==="mounted"?"enter":"leave";if(c.target===e.value&&E&&(r(`after-${A}`),l("ANIMATION_END"),!u.value)){const p=e.value.style.animationFillMode;e.value.style.animationFillMode="forwards",o=n?.setTimeout(()=>{e.value?.style.animationFillMode==="forwards"&&(e.value.style.animationFillMode=p)})}c.target===e.value&&d==="none"&&l("ANIMATION_END")},h=c=>{c.target===e.value&&(s.value=g(e.value))},I=N(e,(c,d)=>{c?(a.value=getComputedStyle(c),c.addEventListener("animationstart",h),c.addEventListener("animationcancel",v),c.addEventListener("animationend",v)):(l("ANIMATION_END"),o!==void 0&&n?.clearTimeout(o),d?.removeEventListener("animationstart",h),d?.removeEventListener("animationcancel",v),d?.removeEventListener("animationend",v))},{immediate:!0}),x=N(f,()=>{const c=g(e.value);s.value=f.value==="mounted"?c:"none"});return k(()=>{I(),x(),e.value&&(e.value.removeEventListener("animationstart",h),e.value.removeEventListener("animationcancel",v),e.value.removeEventListener("animationend",v)),o!==void 0&&n?.clearTimeout(o)}),{isPresent:y(()=>["mounted","unmountSuspended"].includes(f.value))}}function g(t){return t&&getComputedStyle(t).animationName||"none"}var te=R({name:"Presence",props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(t,{slots:e,expose:a}){const{present:s,forceMount:u}=F(t),i=m(),{isPresent:o}=z(s,i);a({present:o});let n=e.default({present:o.value});n=K(n||[]);const f=b();if(n&&n?.length>1){const l=f?.parent?.type.name?`<${f.parent.type.name} />`:"component";throw new Error([`Detected an invalid children for \`${l}\` for \`Presence\` component.`,"","Note: Presence works similarly to `v-if` directly, but it waits for animation/transition to finished before unmounting. So it expect only one direct child of valid VNode type.","You can apply a few solutions:",["Provide a single child element so that `presence` directive attach correctly.","Ensure the first child is an actual element instead of a raw text node or comment node."].map(r=>` - ${r}`).join(` 2`)].join(` 3`))}return()=>u.value||s.value||o.value?V(e.default({present:o.value})[0],{ref:l=>{const r=P(l);return typeof r?.hasAttribute>"u"||(r?.hasAttribute("data-reka-popper-content-wrapper")?i.value=r.firstElementChild:i.value=r),r}}):null}});export{te as P,ee as a,X as b,W as c,G as d,q as e,Y as f,B as g,O as i,J as u};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.