@vexip-ui/hooks
Advanced tools
+1
-1
@@ -1,2 +0,2 @@ | ||
| "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue"),B=typeof window<"u";var at;B&&((at=window==null?void 0:window.navigator)!=null&&at.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function We(e){return e!=null}function P(){}const sn=Object.freeze({aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"});Object.freeze(new Set(Object.keys(sn)));function lt(e){return e&-e}function cn(e,t=0){const n=new Array(e+1).fill(0);function r(c,l){if(!(!l||c>=e))for(c+=1;c<=e;)n[c]+=l,c+=lt(c)}function o(c=e){if(c<=0)return 0;c>e&&(c=e);let l=c*t;for(;c>0;)l+=n[c],c-=lt(c);return l}function i(c){return o(c+1)-o(c)}function s(c){let l=0,f=e;for(;f>l;){const u=Math.floor((l+f)/2),h=o(u);if(h>c){f=u;continue}else if(h<c){if(l===u)return o(l+1)<=c?l+1:l;l=u}else return u}return l}return{tree:n,add:r,sum:o,get:i,boundIndex:s}}function an(e){let t=parseFloat(e);return Number.isNaN(t)&&(t=Number(e)),Number.isNaN(t)?0:t}const ln=B&&("ontouchstart"in window||un()>0),fn=ln?"pointerdown":"click";function un(){return typeof navigator<"u"&&(navigator.maxTouchPoints||navigator.msMaxTouchPoints)||0}function dn(e,t,n=window.Event){const{type:r,bubbles:o=!1,cancelable:i=!1,...s}=t;if(!We(r)||r==="")return!1;let c;return We(n)?c=new n(r,{bubbles:o,cancelable:i}):(c=document.createEvent("HTMLEvents"),c.initEvent(r,o,i)),Object.assign(c,s),e.dispatchEvent(c)}const hn=B?requestAnimationFrame:e=>{setTimeout(e,16)};function Ct(e,t=16){if(typeof e!="function")return P;const n=(...i)=>{e(...i)};if(t<=0)return mn(n);let r=0,o;return function(...i){const s=Date.now(),c=s-r;clearTimeout(o),c>=t?(r=s,n(...i)):o=setTimeout(()=>{r=Date.now(),n(...i)},Math.max(0,t-c))}}function mn(e){if(typeof e!="function")return e;let t=!1,n,r;return function(...o){return n=o,t||(t=!0,r=Promise.resolve().then(()=>(t=!1,r=void 0,e(...n)))),r}}const de=new Set,At=new WeakMap;function pn(){de.forEach(e=>{e(...At.get(e))}),de.clear()}function vn(e,...t){if(typeof e!="function")return e;At.set(e,t),!de.has(e)&&(de.add(e),de.size===1&&hn(pn))}function Mt(e){return Array.isArray(e)?e:[e]}function V(e,t,n,r){if(!e)return P;const o=a.computed(()=>typeof r=="boolean"?{capture:r}:r||{});let i=P;const s=a.watch(()=>a.unref(e),l=>{if(i(),!l)return;const{disabled:f,...u}=o.value,h=v=>{a.unref(f)||n(v)};l.addEventListener(t,h,u),i=()=>{l.removeEventListener(t,h,u),i=P}},{immediate:!0,flush:"post"}),c=()=>{s(),i()};return a.getCurrentScope()&&a.onScopeDispose(c),c}const Ge="clickoutside",He=new Set;B&&document.addEventListener(fn,e=>{const t=e.target,n=e.composedPath&&e.composedPath();He.forEach(r=>{r!==t&&(n?!n.includes(r):!r.contains(t))&&(!r.__transferElement||r.__transferElement!==t&&!r.__transferElement.contains(t))&&dn(r,{type:Ge})})},!0);function gn(e,t=a.ref(null)){let n=P;const r=a.watch(()=>a.unref(t),i=>{n(),i&&(He.add(i),n=()=>{He.delete(i),n=P})},{immediate:!0,flush:"post"}),o=()=>{r(),n()};return a.getCurrentScope()&&a.onScopeDispose(o),V(t,Ge,e),t}function bn(e=P,t=a.ref(null)){let n;return a.onMounted(()=>{a.nextTick(()=>{const r=Je(t.value);r?(n=new MutationObserver(()=>{r.style.display!=="none"&&(typeof e=="function"&&e(),n==null||n.disconnect(),n=null)}),n.observe(r,{attributes:!0,childList:!0,characterData:!0,attributeFilter:["style"]})):typeof e=="function"&&e()})}),a.onBeforeUnmount(()=>{n==null||n.disconnect(),n=null}),t}function Je(e){if(e){let t=e.parentElement;for(;t&&t!==document.body;){if(t.style.display==="none")return t;t=t.parentElement}}return null}function $e(e){return(e==null?void 0:e.style.display)!=="none"?!!Je(e):!0}function yn(e,t,n){for(const r of t)if(e[r])return o=>a.renderSlot(e,r,o,()=>{const i=n==null?void 0:n(o);return i?Mt(i):[]});return n||null}function wn(e){const t=[],n=Array.isArray(e)?[...e]:[];for(;n.length;){const r=n.shift();r!==null&&(Array.isArray(r)&&n.unshift(...r),!(typeof r!="string"&&typeof r!="number"&&(!a.isVNode(r)||r.type===a.Comment))&&(typeof r=="string"||typeof r=="number"?t.push(a.createTextVNode(String(r))):r.type===a.Fragment&&Array.isArray(r.children)?n.unshift(r.children):t.push(r)))}return t}function fe(e){const t=a.unref(e);return typeof t=="string"?B?document.querySelector(t):null:(t==null?void 0:t.$el)??t}function xn(e){return new Proxy({},{get(t,n){var r,o,i;if(e.component)return((r=e.component.proxy)==null?void 0:r[n])??((o=e.component.exposeProxy)==null?void 0:o[n])??((i=e.component.exposed)==null?void 0:i[n])}})}function En(...e){const t=a.ref(!0),n=e[1]||P;function r(){t.value=!1}function o(){t.value=!0}const i=a.watch(e[0],(...s)=>new Promise((c,l)=>{t.value&&Promise.resolve(n(...s)).then(c).catch(l)}),e[2]);return{active:a.readonly(t),pause:r,resume:o,stop:i}}function Rn(e,t){return t.map(n=>a.toRef(e,n))}const Sn=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]];let re;if(B){for(const e of Sn)if(e[1]in document){re=e;break}}const qe=!!re,Tn={supported:qe,full:a.computed(()=>!1),enter:P,exit:P,toggle:P},Lt=new Set,Ve=new WeakMap;if(B&&re){const e=re[2],t=re[4];document.addEventListener(t,()=>{if(Lt.forEach(n=>{n.value=!1}),document[e]){const n=Ve.get(document[e]);n&&(n.value=!0)}},!1)}function On(e=a.ref(null)){const t=a.computed({get:()=>fe(e),set:f=>{a.isRef(e)&&(e.value=f)}});if(!B||!qe)return{...Tn,target:t};const[n,r,o]=re,i=a.ref(!1);a.watch(()=>fe(e),(f,u)=>{u&&Ve.delete(u),f&&Ve.set(f,i)},{immediate:!0,flush:"post"}),Lt.add(i),a.getCurrentScope()&&a.onScopeDispose(c);async function s(f=!1){await c();const u=fe(e);return u&&(f||!document[o])?(await u[n](),i.value=!0,document[o]===u):!1}async function c(f=!1){const u=fe(e);return f||document[o]&&document[o]===u?(await document[r](),i.value=!1,document[o]!==u):!1}async function l(f=!1){return i.value?await c(f):await s(f)}return{supported:qe,target:t,full:a.computed(()=>i.value),enter:s,exit:c,toggle:l}}function kn(e=a.ref(null)){const t=a.ref(!1);V(e,"mouseenter",n),V(e,"mouseleave",r);function n(){t.value=!0}function r(){t.value=!1}return{wrapper:e,isHover:t}}const we=new WeakMap,zn=/\s+/g,Cn=/(px|%)$/;function An(e){const t=e.target||a.ref(null);if(!B)return{target:t,disconnect:P};const{handler:n}=e;let r=e.root??document;const o=Mt(e.threshold||0).join()||"0",i=p(e.rootMargin);we.has(r)||we.set(r,new Map);const s=we.get(r);s.has(o)||s.set(o,new Map);const c=s.get(o);c.has(i)||c.set(i,{ob:new IntersectionObserver(y,{...e,rootMargin:i}),count:0,handlers:new WeakMap});let l=c.get(i),{ob:f,handlers:u}=l,h=P;const v=a.watch(()=>a.unref(t),g=>{h(),!(!g||!f)&&(u.set(g,n),f.observe(g),l&&l.count++,h=()=>{f.unobserve(g),u.delete(g),l&&l.count--,h=P})},{immediate:!0,flush:"post"});a.getCurrentScope()&&a.onScopeDispose(b);function p(g){if(!g||!g.trim())return"_";const m=g.trim().split(zn,4);m.length=4;for(let d=0;d<4;++d){const w=m[d];m[d]=Cn.test(w)?w:`${an(w)}px`}return m.join(" ")}function y(g){for(let m=0,d=g.length;m<d;++m){const w=g[m],O=u.get(w.target);typeof O=="function"&&O(w)}}function b(){v(),h(),l&&(l.count<=0&&(c.delete(i),c.size||(s.delete(o),s.size||we.delete(r))),l=void 0,f=void 0,u=void 0,r=void 0)}return{target:t,disconnect:b}}function Mn(){const e=new Set;function t(r){return a.customRef((o,i)=>{let s=r;const c=()=>{r!==s&&(s=r,i())};return{get:()=>(o(),r),set:l=>{l!==r&&(r=l,e.add(c))}}})}function n(){for(const r of e)r();e.clear()}return{updateSet:e,manualRef:t,triggerUpdate:n}}const Ln={ctrl:"control",command:"meta",cmd:"meta",option:"alt",up:"arrowup",down:"arrowdown",left:"arrowleft",right:"arrowright"},Dn=/[+_-]/,Pn=/[+_-]/g,Bn=["activeKeys","resetAll"];function Fn(e={}){const{autoReset:t=!0,capture:n=!1,passive:r=!0,strictTarget:o=!1,onKeyDown:i=P,onKeyUp:s=P}=e,c=e.target||a.ref(null),l=a.isRef(e.disabled)?e.disabled:a.ref(e.disabled||!1),f={...Ln,...e.aliasMap||{}},u=a.reactive(new Set),h=new Set,v=a.reactive({activeKeys:u,resetAll:b});function p(m,d){m in v&&(v[m]=d)}function y(m,d){var T,C;const w=(T=m.key)==null?void 0:T.toLocaleLowerCase(),S=[(C=m.code)==null?void 0:C.toLocaleLowerCase(),w].filter(Boolean);for(const k of S)u[d?"add":"delete"](k),p(k,d);if(!d&&w==="meta"){for(const k of h)u.delete(k),p(k,!1);h.clear()}else if(d&&typeof m.getModifierState=="function"&&m.getModifierState("Meta"))for(const k of[...u,...S])h.add(k)}function b(){Object.keys(v).forEach(m=>{v[m]=!1}),v.activeKeys=u,v.resetAll=b}const g=new Proxy(v,{get(m,d,w){if(typeof d!="string"||Bn.includes(d))return Reflect.get(m,d,w);if(d=d.toLocaleLowerCase(),d in f&&(d=f[d]),!(d in v))if(Dn.test(d)){const O=d.split(Pn).map(S=>S.trim());v[d]=a.computed(()=>O.every(S=>a.unref(g[S])))}else v[d]=a.ref(u.has(d));return a.unref(Reflect.get(m,d,w))}});return V(c,"keydown",m=>{o&&m.target!==a.unref(c)||(y(m,!0),i(m,g))},{capture:n,passive:r,disabled:l}),V(c,"keyup",m=>{o&&m.target!==a.unref(c)||(y(m,!1),s(m,g))},{capture:n,passive:r,disabled:l}),t&&V(c,"blur",b,{capture:n,passive:r,disabled:l}),{target:c,modifier:g}}function _n(e){const t=a.ref(!1),n=()=>t.value=!0;return a.onMounted(()=>{e==="tick"?a.nextTick(n):e==="frame"?requestAnimationFrame(n):n()}),a.onBeforeUnmount(()=>{t.value=!1}),{isMounted:a.readonly(t)}}function Fe(e){e.cancelable&&(e.stopPropagation(),e.preventDefault())}function Nn(e){const t=e.target||a.ref(null),n=a.isRef(e.x)?e.x:a.ref(0),r=a.isRef(e.y)?e.y:a.ref(0),o=a.isRef(e.lazy)?e.lazy:a.ref(e.lazy||!1),i=a.isRef(e.disabled)?e.disabled:a.ref(e.disabled||!1),{capture:s=!0,stopMouse:c=!0,stopTouch:l=!0}=e,f=a.ref(!1),u={xStart:0,yStart:0,xEnd:0,yEnd:0,clientX:0,clientY:0,deltaX:0,deltaY:0,lazy:!1};let h=0,v=0;const p=Ct(d=>{var w;v<h||(m(d),u.lazy||(n.value=u.xEnd,r.value=u.yEnd),(w=e.onMove)==null||w.call(e,u,d))});function y(d){var w;i.value||(Object.assign(u,{xStart:n.value,yStart:r.value,xEnd:n.value,yEnd:r.value,clientX:d.clientX,clientY:d.clientY,lazy:o.value}),((w=e.onStart)==null?void 0:w.call(e,u,d))!==!1&&(document.addEventListener("pointermove",b,{capture:s}),document.addEventListener("pointerup",g,{capture:s}),v=h,f.value=!0))}function b(d){i.value||(Fe(d),p(d))}function g(d){var w;document.removeEventListener("pointermove",b,{capture:s}),document.removeEventListener("pointerup",g,{capture:s}),!i.value&&(m(d),u.lazy&&(n.value=u.xEnd,r.value=u.yEnd),f.value=!1,++h,(w=e.onEnd)==null||w.call(e,u,d))}function m(d){const{clientX:w,clientY:O}=d,{xStart:S,yStart:T,clientX:C,clientY:k}=u,L=w-C,A=O-k;u.deltaX=L,u.deltaY=A,u.xEnd=S+L,u.yEnd=T+A}return V(t,"pointerdown",y,{capture:s}),c&&V(t,"mousedown",Fe,{capture:s}),l&&V(t,"touchstart",Fe,{capture:s}),{target:t,moving:a.computed(()=>f.value),x:n,y:r,lazy:o,disabled:i}}const me=new Set,K=new Map;K.set("x",0);K.set("y",0);function In(e){const{pageX:t,pageY:n}=e;K.set("x",t),K.set("y",n),me.forEach(r=>{r.x.value=t,r.y.value=n})}const Dt=Ct(In);function Wn(e){!me.size&&window&&(K.set("x",0),K.set("y",0),window.addEventListener("pointermove",Dt,{passive:!0})),me.add(e)}function ft(e){me.delete(e),!me.size&&window&&window.removeEventListener("pointermove",Dt)}function Hn(e={}){const t=a.ref(e.x??K.get("x")),n=a.ref(e.y??K.get("y")),r={x:t,y:n};return Wn(r),e.manualStop||a.onBeforeUnmount(()=>{ft(r)}),{...r,unregister:()=>ft(r)}}const $n=["top","right","bottom","left"],se=Math.min,J=Math.max,ke=Math.round,xe=Math.floor,X=e=>({x:e,y:e}),qn={left:"right",right:"left",bottom:"top",top:"bottom"},Vn={start:"end",end:"start"};function Xe(e,t,n){return J(e,se(t,n))}function ae(e,t){return typeof e=="function"?e(t):e}function te(e){return e.split("-")[0]}function ge(e){return e.split("-")[1]}function Pt(e){return e==="x"?"y":"x"}function Ze(e){return e==="y"?"height":"width"}function Z(e){return["top","bottom"].includes(te(e))?"y":"x"}function Qe(e){return Pt(Z(e))}function Xn(e,t,n){n===void 0&&(n=!1);const r=ge(e),o=Qe(e),i=Ze(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=ze(s)),[s,ze(s)]}function jn(e){const t=ze(e);return[je(e),t,je(t)]}function je(e){return e.replace(/start|end/g,t=>Vn[t])}function Yn(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:s;default:return[]}}function Un(e,t,n,r){const o=ge(e);let i=Yn(te(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(je)))),i}function ze(e){return e.replace(/left|right|bottom|top/g,t=>qn[t])}function Kn(e){return{top:0,right:0,bottom:0,left:0,...e}}function Bt(e){return typeof e!="number"?Kn(e):{top:e,right:e,bottom:e,left:e}}function Ce(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function ut(e,t,n){let{reference:r,floating:o}=e;const i=Z(t),s=Qe(t),c=Ze(s),l=te(t),f=i==="y",u=r.x+r.width/2-o.width/2,h=r.y+r.height/2-o.height/2,v=r[c]/2-o[c]/2;let p;switch(l){case"top":p={x:u,y:r.y-o.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:h};break;case"left":p={x:r.x-o.width,y:h};break;default:p={x:r.x,y:r.y}}switch(ge(t)){case"start":p[s]-=v*(n&&f?-1:1);break;case"end":p[s]+=v*(n&&f?-1:1);break}return p}const Gn=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,c=i.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let f=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:h}=ut(f,r,l),v=r,p={},y=0;for(let b=0;b<c.length;b++){const{name:g,fn:m}=c[b],{x:d,y:w,data:O,reset:S}=await m({x:u,y:h,initialPlacement:r,placement:v,strategy:o,middlewareData:p,rects:f,platform:s,elements:{reference:e,floating:t}});u=d??u,h=w??h,p={...p,[g]:{...p[g],...O}},S&&y<=50&&(y++,typeof S=="object"&&(S.placement&&(v=S.placement),S.rects&&(f=S.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):S.rects),{x:u,y:h}=ut(f,v,l)),b=-1)}return{x:u,y:h,placement:v,strategy:o,middlewareData:p}};async function Ae(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:s,elements:c,strategy:l}=e,{boundary:f="clippingAncestors",rootBoundary:u="viewport",elementContext:h="floating",altBoundary:v=!1,padding:p=0}=ae(t,e),y=Bt(p),g=c[v?h==="floating"?"reference":"floating":h],m=Ce(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(g)))==null||n?g:g.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(c.floating)),boundary:f,rootBoundary:u,strategy:l})),d=h==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,w=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c.floating)),O=await(i.isElement==null?void 0:i.isElement(w))?await(i.getScale==null?void 0:i.getScale(w))||{x:1,y:1}:{x:1,y:1},S=Ce(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:d,offsetParent:w,strategy:l}):d);return{top:(m.top-S.top+y.top)/O.y,bottom:(S.bottom-m.bottom+y.bottom)/O.y,left:(m.left-S.left+y.left)/O.x,right:(S.right-m.right+y.right)/O.x}}const Jn=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:c,middlewareData:l}=t,{element:f,padding:u=0}=ae(e,t)||{};if(f==null)return{};const h=Bt(u),v={x:n,y:r},p=Qe(o),y=Ze(p),b=await s.getDimensions(f),g=p==="y",m=g?"top":"left",d=g?"bottom":"right",w=g?"clientHeight":"clientWidth",O=i.reference[y]+i.reference[p]-v[p]-i.floating[y],S=v[p]-i.reference[p],T=await(s.getOffsetParent==null?void 0:s.getOffsetParent(f));let C=T?T[w]:0;(!C||!await(s.isElement==null?void 0:s.isElement(T)))&&(C=c.floating[w]||i.floating[y]);const k=O/2-S/2,L=C/2-b[y]/2-1,A=se(h[m],L),W=se(h[d],L),F=A,x=C-b[y]-W,R=C/2-b[y]/2+k,E=Xe(F,R,x),M=!l.arrow&&ge(o)!=null&&R!==E&&i.reference[y]/2-(R<F?A:W)-b[y]/2<0,z=M?R<F?R-F:R-x:0;return{[p]:v[p]+z,data:{[p]:E,centerOffset:R-E-z,...M&&{alignmentOffset:z}},reset:M}}}),Zn=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:c,platform:l,elements:f}=t,{mainAxis:u=!0,crossAxis:h=!0,fallbackPlacements:v,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:b=!0,...g}=ae(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const m=te(o),d=Z(c),w=te(c)===c,O=await(l.isRTL==null?void 0:l.isRTL(f.floating)),S=v||(w||!b?[ze(c)]:jn(c)),T=y!=="none";!v&&T&&S.push(...Un(c,b,y,O));const C=[c,...S],k=await Ae(t,g),L=[];let A=((r=i.flip)==null?void 0:r.overflows)||[];if(u&&L.push(k[m]),h){const E=Xn(o,s,O);L.push(k[E[0]],k[E[1]])}if(A=[...A,{placement:o,overflows:L}],!L.every(E=>E<=0)){var W,F;const E=(((W=i.flip)==null?void 0:W.index)||0)+1,M=C[E];if(M){var x;const _=h==="alignment"?d!==Z(M):!1,D=((x=A[0])==null?void 0:x.overflows[0])>0;if(!_||D)return{data:{index:E,overflows:A},reset:{placement:M}}}let z=(F=A.filter(_=>_.overflows[0]<=0).sort((_,D)=>_.overflows[1]-D.overflows[1])[0])==null?void 0:F.placement;if(!z)switch(p){case"bestFit":{var R;const _=(R=A.filter(D=>{if(T){const N=Z(D.placement);return N===d||N==="y"}return!0}).map(D=>[D.placement,D.overflows.filter(N=>N>0).reduce((N,U)=>N+U,0)]).sort((D,N)=>D[1]-N[1])[0])==null?void 0:R[0];_&&(z=_);break}case"initialPlacement":z=c;break}if(o!==z)return{reset:{placement:z}}}return{}}}};function dt(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ht(e){return $n.some(t=>e[t]>=0)}const Qn=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=ae(e,t);switch(r){case"referenceHidden":{const i=await Ae(t,{...o,elementContext:"reference"}),s=dt(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:ht(s)}}}case"escaped":{const i=await Ae(t,{...o,altBoundary:!0}),s=dt(i,n.floating);return{data:{escapedOffsets:s,escaped:ht(s)}}}default:return{}}}}};async function er(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=te(n),c=ge(n),l=Z(n)==="y",f=["left","top"].includes(s)?-1:1,u=i&&l?-1:1,h=ae(t,e);let{mainAxis:v,crossAxis:p,alignmentAxis:y}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return c&&typeof y=="number"&&(p=c==="end"?y*-1:y),l?{x:p*u,y:v*f}:{x:v*f,y:p*u}}const tr=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:c}=t,l=await er(t,e);return s===((n=c.offset)==null?void 0:n.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:s}}}}},nr=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:c={fn:g=>{let{x:m,y:d}=g;return{x:m,y:d}}},...l}=ae(e,t),f={x:n,y:r},u=await Ae(t,l),h=Z(te(o)),v=Pt(h);let p=f[v],y=f[h];if(i){const g=v==="y"?"top":"left",m=v==="y"?"bottom":"right",d=p+u[g],w=p-u[m];p=Xe(d,p,w)}if(s){const g=h==="y"?"top":"left",m=h==="y"?"bottom":"right",d=y+u[g],w=y-u[m];y=Xe(d,y,w)}const b=c.fn({...t,[v]:p,[h]:y});return{...b,data:{x:b.x-n,y:b.y-r,enabled:{[v]:i,[h]:s}}}}}};function De(){return typeof window<"u"}function le(e){return Ft(e)?(e.nodeName||"").toLowerCase():"#document"}function I(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Y(e){var t;return(t=(Ft(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ft(e){return De()?e instanceof Node||e instanceof I(e).Node:!1}function H(e){return De()?e instanceof Element||e instanceof I(e).Element:!1}function j(e){return De()?e instanceof HTMLElement||e instanceof I(e).HTMLElement:!1}function mt(e){return!De()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof I(e).ShadowRoot}function be(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=$(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function rr(e){return["table","td","th"].includes(le(e))}function Pe(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function et(e){const t=tt(),n=H(e)?$(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function or(e){let t=G(e);for(;j(t)&&!ce(t);){if(et(t))return t;if(Pe(t))return null;t=G(t)}return null}function tt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ce(e){return["html","body","#document"].includes(le(e))}function $(e){return I(e).getComputedStyle(e)}function Be(e){return H(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function G(e){if(le(e)==="html")return e;const t=e.assignedSlot||e.parentNode||mt(e)&&e.host||Y(e);return mt(t)?t.host:t}function _t(e){const t=G(e);return ce(t)?e.ownerDocument?e.ownerDocument.body:e.body:j(t)&&be(t)?t:_t(t)}function pe(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=_t(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=I(o);if(i){const c=Ye(s);return t.concat(s,s.visualViewport||[],be(o)?o:[],c&&n?pe(c):[])}return t.concat(o,pe(o,[],n))}function Ye(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Nt(e){const t=$(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=j(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,c=ke(n)!==i||ke(r)!==s;return c&&(n=i,r=s),{width:n,height:r,$:c}}function nt(e){return H(e)?e:e.contextElement}function oe(e){const t=nt(e);if(!j(t))return X(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Nt(t);let s=(i?ke(n.width):n.width)/r,c=(i?ke(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const ir=X(0);function It(e){const t=I(e);return!tt()||!t.visualViewport?ir:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function sr(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==I(e)?!1:t}function ne(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=nt(e);let s=X(1);t&&(r?H(r)&&(s=oe(r)):s=oe(e));const c=sr(i,n,r)?It(i):X(0);let l=(o.left+c.x)/s.x,f=(o.top+c.y)/s.y,u=o.width/s.x,h=o.height/s.y;if(i){const v=I(i),p=r&&H(r)?I(r):r;let y=v,b=Ye(y);for(;b&&r&&p!==y;){const g=oe(b),m=b.getBoundingClientRect(),d=$(b),w=m.left+(b.clientLeft+parseFloat(d.paddingLeft))*g.x,O=m.top+(b.clientTop+parseFloat(d.paddingTop))*g.y;l*=g.x,f*=g.y,u*=g.x,h*=g.y,l+=w,f+=O,y=I(b),b=Ye(y)}}return Ce({width:u,height:h,x:l,y:f})}function rt(e,t){const n=Be(e).scrollLeft;return t?t.left+n:ne(Y(e)).left+n}function Wt(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:rt(e,r)),i=r.top+t.scrollTop;return{x:o,y:i}}function cr(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=Y(r),c=t?Pe(t.floating):!1;if(r===s||c&&i)return n;let l={scrollLeft:0,scrollTop:0},f=X(1);const u=X(0),h=j(r);if((h||!h&&!i)&&((le(r)!=="body"||be(s))&&(l=Be(r)),j(r))){const p=ne(r);f=oe(r),u.x=p.x+r.clientLeft,u.y=p.y+r.clientTop}const v=s&&!h&&!i?Wt(s,l,!0):X(0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-l.scrollLeft*f.x+u.x+v.x,y:n.y*f.y-l.scrollTop*f.y+u.y+v.y}}function ar(e){return Array.from(e.getClientRects())}function lr(e){const t=Y(e),n=Be(e),r=e.ownerDocument.body,o=J(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=J(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+rt(e);const c=-n.scrollTop;return $(r).direction==="rtl"&&(s+=J(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:c}}function fr(e,t){const n=I(e),r=Y(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,c=0,l=0;if(o){i=o.width,s=o.height;const f=tt();(!f||f&&t==="fixed")&&(c=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:c,y:l}}function ur(e,t){const n=ne(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=j(e)?oe(e):X(1),s=e.clientWidth*i.x,c=e.clientHeight*i.y,l=o*i.x,f=r*i.y;return{width:s,height:c,x:l,y:f}}function pt(e,t,n){let r;if(t==="viewport")r=fr(e,n);else if(t==="document")r=lr(Y(e));else if(H(t))r=ur(t,n);else{const o=It(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Ce(r)}function Ht(e,t){const n=G(e);return n===t||!H(n)||ce(n)?!1:$(n).position==="fixed"||Ht(n,t)}function dr(e,t){const n=t.get(e);if(n)return n;let r=pe(e,[],!1).filter(c=>H(c)&&le(c)!=="body"),o=null;const i=$(e).position==="fixed";let s=i?G(e):e;for(;H(s)&&!ce(s);){const c=$(s),l=et(s);!l&&c.position==="fixed"&&(o=null),(i?!l&&!o:!l&&c.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||be(s)&&!l&&Ht(e,s))?r=r.filter(u=>u!==s):o=c,s=G(s)}return t.set(e,r),r}function hr(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?Pe(t)?[]:dr(t,this._c):[].concat(n),r],c=s[0],l=s.reduce((f,u)=>{const h=pt(t,u,o);return f.top=J(h.top,f.top),f.right=se(h.right,f.right),f.bottom=se(h.bottom,f.bottom),f.left=J(h.left,f.left),f},pt(t,c,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function mr(e){const{width:t,height:n}=Nt(e);return{width:t,height:n}}function pr(e,t,n){const r=j(t),o=Y(t),i=n==="fixed",s=ne(e,!0,i,t);let c={scrollLeft:0,scrollTop:0};const l=X(0);function f(){l.x=rt(o)}if(r||!r&&!i)if((le(t)!=="body"||be(o))&&(c=Be(t)),r){const p=ne(t,!0,i,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}else o&&f();i&&!r&&o&&f();const u=o&&!r&&!i?Wt(o,c):X(0),h=s.left+c.scrollLeft-l.x-u.x,v=s.top+c.scrollTop-l.y-u.y;return{x:h,y:v,width:s.width,height:s.height}}function _e(e){return $(e).position==="static"}function vt(e,t){if(!j(e)||$(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Y(e)===n&&(n=n.ownerDocument.body),n}function $t(e,t){const n=I(e);if(Pe(e))return n;if(!j(e)){let o=G(e);for(;o&&!ce(o);){if(H(o)&&!_e(o))return o;o=G(o)}return n}let r=vt(e,t);for(;r&&rr(r)&&_e(r);)r=vt(r,t);return r&&ce(r)&&_e(r)&&!et(r)?n:r||or(e)||n}const vr=async function(e){const t=this.getOffsetParent||$t,n=this.getDimensions,r=await n(e.floating);return{reference:pr(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function gr(e){return $(e).direction==="rtl"}const qt={convertOffsetParentRelativeRectToViewportRelativeRect:cr,getDocumentElement:Y,getClippingRect:hr,getOffsetParent:$t,getElementRects:vr,getClientRects:ar,getDimensions:mr,getScale:oe,isElement:H,isRTL:gr};function Vt(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function br(e,t){let n=null,r;const o=Y(e);function i(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function s(c,l){c===void 0&&(c=!1),l===void 0&&(l=1),i();const f=e.getBoundingClientRect(),{left:u,top:h,width:v,height:p}=f;if(c||t(),!v||!p)return;const y=xe(h),b=xe(o.clientWidth-(u+v)),g=xe(o.clientHeight-(h+p)),m=xe(u),w={rootMargin:-y+"px "+-b+"px "+-g+"px "+-m+"px",threshold:J(0,se(1,l))||1};let O=!0;function S(T){const C=T[0].intersectionRatio;if(C!==l){if(!O)return s();C?s(!1,C):r=setTimeout(()=>{s(!1,1e-7)},1e3)}C===1&&!Vt(f,e.getBoundingClientRect())&&s(),O=!1}try{n=new IntersectionObserver(S,{...w,root:o.ownerDocument})}catch{n=new IntersectionObserver(S,w)}n.observe(e)}return s(!0),i}function yr(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,f=nt(e),u=o||i?[...f?pe(f):[],...pe(t)]:[];u.forEach(m=>{o&&m.addEventListener("scroll",n,{passive:!0}),i&&m.addEventListener("resize",n)});const h=f&&c?br(f,n):null;let v=-1,p=null;s&&(p=new ResizeObserver(m=>{let[d]=m;d&&d.target===f&&p&&(p.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var w;(w=p)==null||w.observe(t)})),n()}),f&&!l&&p.observe(f),p.observe(t));let y,b=l?ne(e):null;l&&g();function g(){const m=ne(e);b&&!Vt(b,m)&&n(),b=m,y=requestAnimationFrame(g)}return n(),()=>{var m;u.forEach(d=>{o&&d.removeEventListener("scroll",n),i&&d.removeEventListener("resize",n)}),h==null||h(),(m=p)==null||m.disconnect(),p=null,l&&cancelAnimationFrame(y)}}const wr=tr,xr=nr,Er=Zn,Rr=Qn,Sr=Jn,Tr=(e,t,n)=>{const r=new Map,o={platform:qt,...n},i={...o.platform,_c:r};return Gn(e,t,{...o,platform:i})};var Q=[],Or=function(){return Q.some(function(e){return e.activeTargets.length>0})},kr=function(){return Q.some(function(e){return e.skippedTargets.length>0})},gt="ResizeObserver loop completed with undelivered notifications.",zr=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:gt}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=gt),window.dispatchEvent(e)},ve;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(ve||(ve={}));var ee=function(e){return Object.freeze(e)},Cr=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,ee(this)}return e}(),Xt=function(){function e(t,n,r,o){return this.x=t,this.y=n,this.width=r,this.height=o,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,ee(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,r=t.y,o=t.top,i=t.right,s=t.bottom,c=t.left,l=t.width,f=t.height;return{x:n,y:r,top:o,right:i,bottom:s,left:c,width:l,height:f}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),ot=function(e){return e instanceof SVGElement&&"getBBox"in e},jt=function(e){if(ot(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var o=e,i=o.offsetWidth,s=o.offsetHeight;return!(i||s||e.getClientRects().length)},bt=function(e){var t;if(e instanceof Element)return!0;var n=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},Ar=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},he=typeof window<"u"?window:{},Ee=new WeakMap,yt=/auto|scroll/,Mr=/^tb|vertical/,Lr=/msie|trident/i.test(he.navigator&&he.navigator.userAgent),q=function(e){return parseFloat(e||"0")},ie=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new Cr((n?t:e)||0,(n?e:t)||0)},wt=ee({devicePixelContentBoxSize:ie(),borderBoxSize:ie(),contentBoxSize:ie(),contentRect:new Xt(0,0,0,0)}),Yt=function(e,t){if(t===void 0&&(t=!1),Ee.has(e)&&!t)return Ee.get(e);if(jt(e))return Ee.set(e,wt),wt;var n=getComputedStyle(e),r=ot(e)&&e.ownerSVGElement&&e.getBBox(),o=!Lr&&n.boxSizing==="border-box",i=Mr.test(n.writingMode||""),s=!r&&yt.test(n.overflowY||""),c=!r&&yt.test(n.overflowX||""),l=r?0:q(n.paddingTop),f=r?0:q(n.paddingRight),u=r?0:q(n.paddingBottom),h=r?0:q(n.paddingLeft),v=r?0:q(n.borderTopWidth),p=r?0:q(n.borderRightWidth),y=r?0:q(n.borderBottomWidth),b=r?0:q(n.borderLeftWidth),g=h+f,m=l+u,d=b+p,w=v+y,O=c?e.offsetHeight-w-e.clientHeight:0,S=s?e.offsetWidth-d-e.clientWidth:0,T=o?g+d:0,C=o?m+w:0,k=r?r.width:q(n.width)-T-S,L=r?r.height:q(n.height)-C-O,A=k+g+S+d,W=L+m+O+w,F=ee({devicePixelContentBoxSize:ie(Math.round(k*devicePixelRatio),Math.round(L*devicePixelRatio),i),borderBoxSize:ie(A,W,i),contentBoxSize:ie(k,L,i),contentRect:new Xt(h,l,k,L)});return Ee.set(e,F),F},Ut=function(e,t,n){var r=Yt(e,n),o=r.borderBoxSize,i=r.contentBoxSize,s=r.devicePixelContentBoxSize;switch(t){case ve.DEVICE_PIXEL_CONTENT_BOX:return s;case ve.BORDER_BOX:return o;default:return i}},Dr=function(){function e(t){var n=Yt(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=ee([n.borderBoxSize]),this.contentBoxSize=ee([n.contentBoxSize]),this.devicePixelContentBoxSize=ee([n.devicePixelContentBoxSize])}return e}(),Kt=function(e){if(jt(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},Pr=function(){var e=1/0,t=[];Q.forEach(function(s){if(s.activeTargets.length!==0){var c=[];s.activeTargets.forEach(function(f){var u=new Dr(f.target),h=Kt(f.target);c.push(u),f.lastReportedSize=Ut(f.target,f.observedBox),h<e&&(e=h)}),t.push(function(){s.callback.call(s.observer,c,s.observer)}),s.activeTargets.splice(0,s.activeTargets.length)}});for(var n=0,r=t;n<r.length;n++){var o=r[n];o()}return e},xt=function(e){Q.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(o){o.isActive()&&(Kt(o.target)>e?n.activeTargets.push(o):n.skippedTargets.push(o))})})},Br=function(){var e=0;for(xt(e);Or();)e=Pr(),xt(e);return kr()&&zr(),e>0},Ne,Gt=[],Fr=function(){return Gt.splice(0).forEach(function(e){return e()})},_r=function(e){if(!Ne){var t=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return Fr()}).observe(n,r),Ne=function(){n.textContent="".concat(t?t--:t++)}}Gt.push(e),Ne()},Nr=function(e){_r(function(){requestAnimationFrame(e)})},Te=0,Ir=function(){return!!Te},Wr=250,Hr={attributes:!0,characterData:!0,childList:!0,subtree:!0},Et=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Rt=function(e){return e===void 0&&(e=0),Date.now()+e},Ie=!1,$r=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var n=this;if(t===void 0&&(t=Wr),!Ie){Ie=!0;var r=Rt(t);Nr(function(){var o=!1;try{o=Br()}finally{if(Ie=!1,t=r-Rt(),!Ir())return;o?n.run(1e3):t>0?n.run(t):n.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,n=function(){return t.observer&&t.observer.observe(document.body,Hr)};document.body?n():he.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Et.forEach(function(n){return he.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),Et.forEach(function(n){return he.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),Ue=new $r,St=function(e){!Te&&e>0&&Ue.start(),Te+=e,!Te&&Ue.stop()},qr=function(e){return!ot(e)&&!Ar(e)&&getComputedStyle(e).display==="inline"},Vr=function(){function e(t,n){this.target=t,this.observedBox=n||ve.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=Ut(this.target,this.observedBox,!0);return qr(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),Xr=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),Re=new WeakMap,Tt=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},Se=function(){function e(){}return e.connect=function(t,n){var r=new Xr(t,n);Re.set(t,r)},e.observe=function(t,n,r){var o=Re.get(t),i=o.observationTargets.length===0;Tt(o.observationTargets,n)<0&&(i&&Q.push(o),o.observationTargets.push(new Vr(n,r&&r.box)),St(1),Ue.schedule())},e.unobserve=function(t,n){var r=Re.get(t),o=Tt(r.observationTargets,n),i=r.observationTargets.length===1;o>=0&&(i&&Q.splice(Q.indexOf(r),1),r.observationTargets.splice(o,1),St(-1))},e.disconnect=function(t){var n=this,r=Re.get(t);r.observationTargets.slice().forEach(function(o){return n.unobserve(t,o.target)}),r.activeTargets.splice(0,r.activeTargets.length)},e}(),Ot=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Se.connect(this,t)}return e.prototype.observe=function(t,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!bt(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Se.observe(this,t,n)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!bt(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Se.unobserve(this,t)},e.prototype.disconnect=function(){Se.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();const Me=new WeakMap;function jr(e){for(let t=0,n=e.length;t<n;++t){const r=e[t],o=Me.get(r.target);typeof o=="function"&&o(r)}}const Jt=new(B&&window.ResizeObserver||Ot)(jr);function ye(e,t){Me.set(e,t),Jt.observe(e)}function it(e){Me.has(e)&&(Jt.unobserve(e),Me.delete(e))}function Yr(){return{observeResize:ye,unobserveResize:it}}const Zt=a.ref(!1),Ur=a.computed(()=>Zt.value),ue="__rtl_observer__";function Qt(){return B&&!document.querySelector(`#${ue}`)&&Kr(),{isRtl:Ur}}function Kr(){if(!B)return;const e=document.createElement("style"),t=`#${ue} { width: 1px } html.rtl #${ue}, html[dir='rtl'] #${ue} { width: 2px }`;e.textContent=t,document.head.appendChild(e);const n=document.createElement("div");n.id=ue,n.role="none",n.style.cssText="position: fixed; top -10px; left: -10px; height: 1px; visibility: hidden;",ye(n,()=>{B&&(Zt.value=document.documentElement.classList.contains("rtl")||document.documentElement.getAttribute("dir")==="rtl")}),document.body.appendChild(n)}const Gr=Object.freeze(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end"]);function Jr(e){const{transfer:t,wrapper:n,isDrop:r=!1}=e,o=e.reference??a.shallowRef(null),i=e.popper??a.shallowRef(null),s=e.arrow??a.shallowRef(null),c=a.ref(a.unref(e.placement)),l=a.ref(""),f=e.isRtl??Qt().isRtl;n&&a.watchEffect(()=>{const b=a.unref(n),g=a.unref(i);b&&(b.__transferElement=g)}),t!=null&&(a.watch(()=>a.unref(t),b=>{p(b),v()}),p(a.unref(t))),a.onMounted(()=>{requestAnimationFrame(()=>{a.watchEffect(h)})});let u;async function h(){if(!B)return;u==null||u();const b=a.unref(o),g=a.unref(i);if(!b||!g)return;const m=a.unref(s),d=[Er()];if(r&&d.push({name:"origin",fn({placement:T,elements:C}){const k=y(T);return k&&(C.floating.style.transformOrigin=k),{}}}),e.offset){let T=a.unref(e.offset);Array.isArray(T)&&(T={mainAxis:T[1],crossAxis:T[0]}),d.push(wr(T))}if(e.shift){let T=a.unref(e.shift);typeof T=="boolean"&&(T={}),d.push(xr(T))}m&&d.push(Sr({element:m})),d.push(Rr({strategy:"escaped"}));const w=a.unref(f)||!1,O={middleware:d,placement:a.unref(e.placement),platform:{...qt,isRTL:async()=>w}},S=async()=>{const{x:T,y:C,placement:k,strategy:L,middlewareData:A}=await Tr(b,g,O);if(a.unref(o)!==b){a.unref(i)===g&&Object.assign(g.style,{position:"",top:"",left:""});return}const W={position:L,top:`${C}px`,left:`${T}px`};if(m)if(A.arrow){const{x:F,y:x}=A.arrow;Object.assign(m.style,{top:x!=null?`${x}px`:"",left:F!=null?`${F}px`:""})}else Object.assign(m.style,{top:"",left:""});Object.assign(g.style,W),g.dataset.popperPlacement=k,c.value=k};e.autoUpdate&&(u=yr(b,g,S)),await S()}const v=()=>new Promise(b=>{requestAnimationFrame(()=>{h().then(b)})});function p(b){l.value=typeof b=="boolean"?b?"body":"":b}function y(b){if(b!=="left"&&b!=="right"){const[g,m]=b.split("-");return g==="bottom"||g!=="top"&&m==="start"?"center top":"center bottom"}}return{wrapper:n,reference:o,popper:i,placement:c,transferTo:l,updatePopper:v}}const kt="__theme_style__",Oe="__theme_observer__",zt=new WeakMap;function Zr(e){const t=a.ref();if(B){e=e||document.body;let n=zt.get(e);n||(n=no(t),e.appendChild(n),zt.set(e,n))}return{theme:t}}const Le=a.reactive(new Map),Ke=new Map;a.watch(Le,()=>{if(!B)return;Ke.clear();const e=document.head.querySelector(`#${kt}`);e&&document.head.removeChild(e);const t=document.createElement("style");let n=`.${Oe} { width: 1px }`,r=1;for(const[o,[i,s]]of Le.entries())n+=` html.${i} .${Oe}, .${s} .${Oe} { width: ${++r}px }`,Ke.set(r,o);t.textContent=n,t.id=kt,document.head.appendChild(t)});function en(e){for(const t of e){const{name:n,rootClass:r=n,varsClass:o=`vxp-theme-vars-${r}`}=typeof t=="string"?{name:t}:t;Le.set(n,[r,o])}}function Qr(e){Le.clear(),en(e)}let eo=0;function to(){return`__theme_observer_${eo++}__`}function no(e){if(!B)return;const t=document.createElement("div");return t.id=to(),t.className=Oe,t.role="none",t.style.cssText="position: fixed; top -10px; left: -10px; height: 1px; visibility: hidden;",ye(t,n=>{var o;if(!B)return;const r=((o=n.borderBoxSize)==null?void 0:o[0].inlineSize)??n.contentRect.width;e.value=Ke.get(r)}),t}function tn(){const e={};return a.onScopeDispose(()=>{Object.keys(e).forEach(t=>{clearTimeout(e[t])})}),{timer:e}}function nn(){const e={};return a.onScopeDispose(()=>{Object.keys(e).forEach(t=>{clearInterval(e[t])})}),{timer:e}}function rn(){const e={};return a.onScopeDispose(()=>{Object.keys(e).forEach(t=>{cancelAnimationFrame(e[t])})}),{timer:e}}function ro(){const{timer:e}=tn(),{timer:t}=nn(),{timer:n}=rn();return{timeout:e,interval:t,raf:n}}function oo(e,t,n=100){let r;function o(){e.value==="hover"&&(clearTimeout(r),r=setTimeout(()=>{t.value=!0},n))}function i(){e.value==="hover"&&(clearTimeout(r),r=setTimeout(()=>{t.value=!1},n))}function s(){e.value==="click"&&(t.value=!t.value)}return{handleTriggerEnter:o,handleTriggerLeave:i,handleTriggerClick:s}}function io(e){const{items:t,itemSize:n,itemFixed:r,idKey:o,defaultKeyAt:i,bufferSize:s=a.ref(5),wrapper:c=a.ref(null),autoResize:l=!0}=e,f=a.computed(()=>{const x=a.unref(t),R=x.length,E=a.unref(o),M=new Map;for(let z=0;z<R;++z)M.set(x[z][E],z);return M}),u=a.ref(0),h=new Map,v=a.computed(()=>{const x=a.unref(t),R=x.length,E=a.unref(o),M=cn(R,a.unref(n));for(let z=0;z<R;++z){const _=x[z][E],D=h.get(_);D&&M.add(z,D)}return M}),p=a.ref(0),y=a.ref(0),b=a.computed(()=>Math.max(v.value.boundIndex(y.value)-Math.max(a.unref(s),0),0)),g=a.computed(()=>{if(!u.value||u.value<0)return[];const x=a.unref(t),R=Math.min(v.value.boundIndex(y.value+u.value)+1+Math.max(a.unref(s),0),x.length);return x.slice(b.value,R)}),m=a.computed(()=>{p.value;const x=v.value.sum(),R=a.unref(r);return{height:R?`${x}px`:void 0,minHeight:R?void 0:`${x}px`,boxSizing:"content-box"}}),d=a.computed(()=>(p.value,{transform:`translate3d(0, ${v.value.sum(b.value)}px, 0)`}));if(l){let x=P;const R=a.watch(()=>a.unref(c),E=>{x(),E&&(ye(E,S),x=()=>{it(E),x=P},We(i)&&L(i))},{immediate:!0,flush:"post"});a.onScopeDispose(()=>{R(),x()})}function w(){const x=a.unref(c);x&&(y.value=x.scrollTop)}function O(){vn(w)}function S(x){$e(x.target)||x.contentRect.height===u.value||(u.value=x.contentRect.height)}function T(x,R){var st,ct;if(a.unref(r))return;const E=f.value.get(x),M=v.value,z=M.get(E),_=((ct=(st=R.borderBoxSize)==null?void 0:st[0])==null?void 0:ct.blockSize)??R.contentRect.height;if(_===z)return;if($e(R.target)){z&&(M.add(E,-z),p.value++);return}const D=_-a.unref(n),N=_-z;if(D?h.set(x,D):h.delete(x),!N)return;M.add(E,N),p.value++;const U=a.unref(c);if(U){const on=M.sum(E);U.scrollTop>on&&U.scrollBy(0,N),y.value=U.scrollTop}}function C(x,R){const E=a.unref(c);E&&E.scrollTo({behavior:R,top:x,left:0})}function k(x,R){const E=a.unref(c);E&&E.scrollBy({behavior:R,top:x,left:0})}function L(x,R){const E=f.value.get(x);E!=null&&A(E,R)}function A(x,R){const E=a.unref(c);E&&E.scrollTo({behavior:R,top:v.value.sum(x),left:0})}function W(x,R){const E=a.unref(c);if(!E)return;const M=v.value,z=E.scrollTop;if(M.sum(x)<z){A(x,R);return}const D=E.offsetHeight,N=z+D,U=M.sum(x+1);U>N&&C(U-D,R)}function F(x,R){const E=f.value.get(x);E!=null&&W(E,R)}return{wrapper:c,indexMap:f,heightTree:v,startIndex:b,scrollOffset:y,visibleItems:g,listStyle:m,itemsStyle:d,handleScroll:O,handleResize:S,handleItemResize:T,scrollTo:C,scrollBy:k,scrollToKey:L,scrollToIndex:A,ensureIndexInView:W,ensureKeyInView:F}}exports.CLICK_OUTSIDE=Ge;exports.addActiveThemes=en;exports.createSlotRender=yn;exports.flatVNodes=wn;exports.isHiddenElement=$e;exports.observeResize=ye;exports.pickToRefs=Rn;exports.placementWhileList=Gr;exports.proxyExposed=xn;exports.queryOutsideHiddenElement=Je;exports.setActiveThemes=Qr;exports.unobserveResize=it;exports.unrefElement=fe;exports.useClickOutside=gn;exports.useDisplay=bn;exports.useFullScreen=On;exports.useHover=kn;exports.useIntersection=An;exports.useListener=V;exports.useManualRef=Mn;exports.useModifier=Fn;exports.useMounted=_n;exports.useMoving=Nn;exports.usePointer=Hn;exports.usePopper=Jr;exports.useRaf=rn;exports.useResize=Yr;exports.useRtl=Qt;exports.useSetInterval=nn;exports.useSetTimeout=tn;exports.useTheme=Zr;exports.useTimerRecord=ro;exports.useTriggerHandler=oo;exports.useVirtual=io;exports.watchPauseable=En; | ||
| "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue"),P=typeof window<"u";var at;P&&((at=window==null?void 0:window.navigator)!=null&&at.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function He(e){return e!=null}function D(){}const sn=Object.freeze({aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"});Object.freeze(new Set(Object.keys(sn)));function lt(e){return e&-e}function cn(e,t=0){const n=new Array(e+1).fill(0);function r(c,l){if(!(!l||c>=e))for(c+=1;c<=e;)n[c]+=l,c+=lt(c)}function o(c=e){if(c<=0)return 0;c>e&&(c=e);let l=c*t;for(;c>0;)l+=n[c],c-=lt(c);return l}function i(c){return o(c+1)-o(c)}function s(c){let l=0,f=e;for(;f>l;){const u=Math.floor((l+f)/2),h=o(u);if(h>c){f=u;continue}else if(h<c){if(l===u)return o(l+1)<=c?l+1:l;l=u}else return u}return l}return{tree:n,add:r,sum:o,get:i,boundIndex:s}}function an(e){let t=parseFloat(e);return Number.isNaN(t)&&(t=Number(e)),Number.isNaN(t)?0:t}const ln=P&&("ontouchstart"in window||un()>0),fn=ln?"pointerdown":"click";function un(){return typeof navigator<"u"&&(navigator.maxTouchPoints||navigator.msMaxTouchPoints)||0}function dn(e,t,n=window.Event){const{type:r,bubbles:o=!1,cancelable:i=!1,...s}=t;if(!He(r)||r==="")return!1;let c;return He(n)?c=new n(r,{bubbles:o,cancelable:i}):(c=document.createEvent("HTMLEvents"),c.initEvent(r,o,i)),Object.assign(c,s),e.dispatchEvent(c)}const hn=P?requestAnimationFrame:e=>{setTimeout(e,16)};function Ct(e,t=16){if(typeof e!="function")return D;const n=(...i)=>{e(...i)};if(t<=0)return mn(n);let r=0,o;return function(...i){const s=Date.now(),c=s-r;clearTimeout(o),c>=t?(r=s,n(...i)):o=setTimeout(()=>{r=Date.now(),n(...i)},Math.max(0,t-c))}}function mn(e){if(typeof e!="function")return e;let t=!1,n,r;return function(...o){return n=o,t||(t=!0,r=Promise.resolve().then(()=>(t=!1,r=void 0,e(...n)))),r}}const he=new Set,At=new WeakMap;function pn(){he.forEach(e=>{e(...At.get(e))}),he.clear()}function vn(e,...t){if(typeof e!="function")return e;At.set(e,t),!he.has(e)&&(he.add(e),he.size===1&&hn(pn))}function Mt(e){return Array.isArray(e)?e:[e]}function V(e,t,n,r){if(!e)return D;const o=a.computed(()=>typeof r=="boolean"?{capture:r}:r||{});let i=D;const s=a.watch(()=>a.unref(e),l=>{if(i(),!l)return;const{disabled:f,...u}=o.value,h=v=>{a.unref(f)||n(v)};l.addEventListener(t,h,u),i=()=>{l.removeEventListener(t,h,u),i=D}},{immediate:!0,flush:"post"}),c=()=>{s(),i()};return a.getCurrentScope()&&a.onScopeDispose(c),c}const Je="clickoutside",$e=new Set;P&&document.addEventListener(fn,e=>{const t=e.target,n=e.composedPath&&e.composedPath();$e.forEach(r=>{r!==t&&(n?!n.includes(r):!r.contains(t))&&(!r.__transferElement||r.__transferElement!==t&&!r.__transferElement.contains(t))&&dn(r,{type:Je})})},!0);function gn(e,t=a.ref(null)){let n=D;const r=a.watch(()=>a.unref(t),i=>{n(),i&&($e.add(i),n=()=>{$e.delete(i),n=D})},{immediate:!0,flush:"post"}),o=()=>{r(),n()};return a.getCurrentScope()&&a.onScopeDispose(o),V(t,Je,e),t}function bn(e=D,t=a.ref(null)){let n;return a.onMounted(()=>{a.nextTick(()=>{const r=Ze(t.value);r?(n=new MutationObserver(()=>{r.style.display!=="none"&&(typeof e=="function"&&e(),n==null||n.disconnect(),n=null)}),n.observe(r,{attributes:!0,childList:!0,characterData:!0,attributeFilter:["style"]})):typeof e=="function"&&e()})}),a.onBeforeUnmount(()=>{n==null||n.disconnect(),n=null}),t}function Ze(e){if(e){let t=e.parentElement;for(;t&&t!==document.body;){if(t.style.display==="none")return t;t=t.parentElement}}return null}function qe(e){return(e==null?void 0:e.style.display)!=="none"?!!Ze(e):!0}function wn(e,t,n){for(const r of t)if(e[r])return o=>a.renderSlot(e,r,o,()=>{const i=n==null?void 0:n(o);return i?Mt(i):[]});return n||null}function yn(e){const t=[],n=Array.isArray(e)?[...e]:[];for(;n.length;){const r=n.shift();r!==null&&(Array.isArray(r)&&n.unshift(...r),!(typeof r!="string"&&typeof r!="number"&&(!a.isVNode(r)||r.type===a.Comment))&&(typeof r=="string"||typeof r=="number"?t.push(a.createTextVNode(String(r))):r.type===a.Fragment&&Array.isArray(r.children)?n.unshift(r.children):t.push(r)))}return t}function ue(e){const t=a.unref(e);return typeof t=="string"?P?document.querySelector(t):null:(t==null?void 0:t.$el)??t}function xn(e){return new Proxy({},{get(t,n){var r,o,i;if(e.component)return((r=e.component.proxy)==null?void 0:r[n])??((o=e.component.exposeProxy)==null?void 0:o[n])??((i=e.component.exposed)==null?void 0:i[n])}})}function En(...e){const t=a.ref(!0),n=e[1]||D;function r(){t.value=!1}function o(){t.value=!0}const i=a.watch(e[0],(...s)=>new Promise((c,l)=>{t.value&&Promise.resolve(n(...s)).then(c).catch(l)}),e[2]);return{active:a.readonly(t),pause:r,resume:o,stop:i}}function Rn(e,t){return t.map(n=>a.toRef(e,n))}const Sn=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]];let re;if(P){for(const e of Sn)if(e[1]in document){re=e;break}}const Ve=!!re,Tn={supported:Ve,full:a.computed(()=>!1),enter:D,exit:D,toggle:D},Lt=new Set,Xe=new WeakMap;if(P&&re){const e=re[2],t=re[4];document.addEventListener(t,()=>{if(Lt.forEach(n=>{n.value=!1}),document[e]){const n=Xe.get(document[e]);n&&(n.value=!0)}},!1)}function On(e=a.ref(null)){const t=a.computed({get:()=>ue(e),set:f=>{a.isRef(e)&&(e.value=f)}});if(!P||!Ve)return{...Tn,target:t};const[n,r,o]=re,i=a.ref(!1);a.watch(()=>ue(e),(f,u)=>{u&&Xe.delete(u),f&&Xe.set(f,i)},{immediate:!0,flush:"post"}),Lt.add(i),a.getCurrentScope()&&a.onScopeDispose(c);async function s(f=!1){await c();const u=ue(e);return u&&(f||!document[o])?(await u[n](),i.value=!0,document[o]===u):!1}async function c(f=!1){const u=ue(e);return f||document[o]&&document[o]===u?(await document[r](),i.value=!1,document[o]!==u):!1}async function l(f=!1){return i.value?await c(f):await s(f)}return{supported:Ve,target:t,full:a.computed(()=>i.value),enter:s,exit:c,toggle:l}}function zn(e=a.ref(null)){const t=a.ref(!1);V(e,"mouseenter",n),V(e,"mouseleave",r);function n(){t.value=!0}function r(){t.value=!1}return{wrapper:e,isHover:t}}const ye=new WeakMap,kn=/\s+/g,Cn=/(px|%)$/;function An(e){const t=e.target||a.ref(null);if(!P)return{target:t,disconnect:D};const{handler:n}=e;let r=e.root??document;const o=Mt(e.threshold||0).join()||"0",i=p(e.rootMargin);ye.has(r)||ye.set(r,new Map);const s=ye.get(r);s.has(o)||s.set(o,new Map);const c=s.get(o);c.has(i)||c.set(i,{ob:new IntersectionObserver(w,{...e,rootMargin:i}),count:0,handlers:new WeakMap});let l=c.get(i),{ob:f,handlers:u}=l,h=D;const v=a.watch(()=>a.unref(t),g=>{h(),!(!g||!f)&&(u.set(g,n),f.observe(g),l&&l.count++,h=()=>{f.unobserve(g),u.delete(g),l&&l.count--,h=D})},{immediate:!0,flush:"post"});a.getCurrentScope()&&a.onScopeDispose(b);function p(g){if(!g||!g.trim())return"_";const m=g.trim().split(kn,4);m.length=4;for(let d=0;d<4;++d){const y=m[d];m[d]=Cn.test(y)?y:`${an(y)}px`}return m.join(" ")}function w(g){for(let m=0,d=g.length;m<d;++m){const y=g[m],O=u.get(y.target);typeof O=="function"&&O(y)}}function b(){v(),h(),l&&(l.count<=0&&(c.delete(i),c.size||(s.delete(o),s.size||ye.delete(r))),l=void 0,f=void 0,u=void 0,r=void 0)}return{target:t,disconnect:b}}function Mn(){const e=new Set;function t(r){return a.customRef((o,i)=>{let s=r;const c=()=>{r!==s&&(s=r,i())};return{get:()=>(o(),r),set:l=>{l!==r&&(r=l,e.add(c))}}})}function n(){for(const r of e)r();e.clear()}return{updateSet:e,manualRef:t,triggerUpdate:n}}const Ln={ctrl:"control",command:"meta",cmd:"meta",option:"alt",up:"arrowup",down:"arrowdown",left:"arrowleft",right:"arrowright"},Dn=/[+_-]/,Bn=/[+_-]/g,Pn=["activeKeys","resetAll"];function Fn(e={}){const{autoReset:t=!0,capture:n=!1,passive:r=!0,strictTarget:o=!1,onKeyDown:i=D,onKeyUp:s=D}=e,c=e.target||a.ref(null),l=a.isRef(e.disabled)?e.disabled:a.ref(e.disabled||!1),f={...Ln,...e.aliasMap||{}},u=a.reactive(new Set),h=new Set,v=a.reactive({activeKeys:u,resetAll:b});function p(m,d){m in v&&(v[m]=d)}function w(m,d){var T,C;const y=(T=m.key)==null?void 0:T.toLocaleLowerCase(),S=[(C=m.code)==null?void 0:C.toLocaleLowerCase(),y].filter(Boolean);for(const z of S)u[d?"add":"delete"](z),p(z,d);if(!d&&y==="meta"){for(const z of h)u.delete(z),p(z,!1);h.clear()}else if(d&&typeof m.getModifierState=="function"&&m.getModifierState("Meta"))for(const z of[...u,...S])h.add(z)}function b(){Object.keys(v).forEach(m=>{v[m]=!1}),v.activeKeys=u,v.resetAll=b}const g=new Proxy(v,{get(m,d,y){if(typeof d!="string"||Pn.includes(d))return Reflect.get(m,d,y);if(d=d.toLocaleLowerCase(),d in f&&(d=f[d]),!(d in v))if(Dn.test(d)){const O=d.split(Bn).map(S=>S.trim());v[d]=a.computed(()=>O.every(S=>a.unref(g[S])))}else v[d]=a.ref(u.has(d));return a.unref(Reflect.get(m,d,y))}});return V(c,"keydown",m=>{o&&m.target!==a.unref(c)||(w(m,!0),i(m,g))},{capture:n,passive:r,disabled:l}),V(c,"keyup",m=>{o&&m.target!==a.unref(c)||(w(m,!1),s(m,g))},{capture:n,passive:r,disabled:l}),t&&V(c,"blur",b,{capture:n,passive:r,disabled:l}),{target:c,modifier:g}}function _n(e){const t=a.ref(!1),n=()=>t.value=!0;return a.onMounted(()=>{e==="tick"?a.nextTick(n):e==="frame"?requestAnimationFrame(n):n()}),a.onBeforeUnmount(()=>{t.value=!1}),{isMounted:a.readonly(t)}}function _e(e){e.cancelable&&(e.stopPropagation(),e.preventDefault())}function Nn(e){const t=e.target||a.ref(null),n=a.isRef(e.x)?e.x:a.ref(0),r=a.isRef(e.y)?e.y:a.ref(0),o=a.isRef(e.lazy)?e.lazy:a.ref(e.lazy||!1),i=a.isRef(e.disabled)?e.disabled:a.ref(e.disabled||!1),{capture:s=!0,stopMouse:c=!0,stopTouch:l=!0}=e,f=a.ref(!1),u={xStart:0,yStart:0,xEnd:0,yEnd:0,clientX:0,clientY:0,deltaX:0,deltaY:0,lazy:!1};let h=0,v=0;const p=Ct(d=>{var y;v<h||(m(d),u.lazy||(n.value=u.xEnd,r.value=u.yEnd),(y=e.onMove)==null||y.call(e,u,d))});function w(d){var y;i.value||(Object.assign(u,{xStart:n.value,yStart:r.value,xEnd:n.value,yEnd:r.value,clientX:d.clientX,clientY:d.clientY,lazy:o.value}),((y=e.onStart)==null?void 0:y.call(e,u,d))!==!1&&(document.addEventListener("pointermove",b,{capture:s}),document.addEventListener("pointerup",g,{capture:s}),v=h,f.value=!0))}function b(d){i.value||(_e(d),p(d))}function g(d){var y;document.removeEventListener("pointermove",b,{capture:s}),document.removeEventListener("pointerup",g,{capture:s}),!i.value&&(m(d),u.lazy&&(n.value=u.xEnd,r.value=u.yEnd),f.value=!1,++h,(y=e.onEnd)==null||y.call(e,u,d))}function m(d){const{clientX:y,clientY:O}=d,{xStart:S,yStart:T,clientX:C,clientY:z}=u,L=y-C,A=O-z;u.deltaX=L,u.deltaY=A,u.xEnd=S+L,u.yEnd=T+A}return V(t,"pointerdown",w,{capture:s}),c&&V(t,"mousedown",_e,{capture:s}),l&&V(t,"touchstart",_e,{capture:s}),{target:t,moving:a.computed(()=>f.value),x:n,y:r,lazy:o,disabled:i}}const pe=new Set,K=new Map;K.set("x",0);K.set("y",0);function Wn(e){const{pageX:t,pageY:n}=e;K.set("x",t),K.set("y",n),pe.forEach(r=>{r.x.value=t,r.y.value=n})}const Dt=Ct(Wn);function In(e){!pe.size&&window&&(K.set("x",0),K.set("y",0),window.addEventListener("pointermove",Dt,{passive:!0})),pe.add(e)}function ft(e){pe.delete(e),!pe.size&&window&&window.removeEventListener("pointermove",Dt)}function Hn(e={}){const t=a.ref(e.x??K.get("x")),n=a.ref(e.y??K.get("y")),r={x:t,y:n};return In(r),e.manualStop||a.onBeforeUnmount(()=>{ft(r)}),{...r,unregister:()=>ft(r)}}const $n=["top","right","bottom","left"],se=Math.min,J=Math.max,ze=Math.round,xe=Math.floor,X=e=>({x:e,y:e}),qn={left:"right",right:"left",bottom:"top",top:"bottom"},Vn={start:"end",end:"start"};function je(e,t,n){return J(e,se(t,n))}function le(e,t){return typeof e=="function"?e(t):e}function te(e){return e.split("-")[0]}function be(e){return e.split("-")[1]}function Bt(e){return e==="x"?"y":"x"}function Qe(e){return e==="y"?"height":"width"}function Z(e){return["top","bottom"].includes(te(e))?"y":"x"}function et(e){return Bt(Z(e))}function Xn(e,t,n){n===void 0&&(n=!1);const r=be(e),o=et(e),i=Qe(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=ke(s)),[s,ke(s)]}function jn(e){const t=ke(e);return[Ye(e),t,Ye(t)]}function Ye(e){return e.replace(/start|end/g,t=>Vn[t])}function Yn(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:s;default:return[]}}function Un(e,t,n,r){const o=be(e);let i=Yn(te(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Ye)))),i}function ke(e){return e.replace(/left|right|bottom|top/g,t=>qn[t])}function Kn(e){return{top:0,right:0,bottom:0,left:0,...e}}function Pt(e){return typeof e!="number"?Kn(e):{top:e,right:e,bottom:e,left:e}}function Ce(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function ut(e,t,n){let{reference:r,floating:o}=e;const i=Z(t),s=et(t),c=Qe(s),l=te(t),f=i==="y",u=r.x+r.width/2-o.width/2,h=r.y+r.height/2-o.height/2,v=r[c]/2-o[c]/2;let p;switch(l){case"top":p={x:u,y:r.y-o.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:h};break;case"left":p={x:r.x-o.width,y:h};break;default:p={x:r.x,y:r.y}}switch(be(t)){case"start":p[s]-=v*(n&&f?-1:1);break;case"end":p[s]+=v*(n&&f?-1:1);break}return p}const Gn=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,c=i.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let f=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:h}=ut(f,r,l),v=r,p={},w=0;for(let b=0;b<c.length;b++){const{name:g,fn:m}=c[b],{x:d,y,data:O,reset:S}=await m({x:u,y:h,initialPlacement:r,placement:v,strategy:o,middlewareData:p,rects:f,platform:s,elements:{reference:e,floating:t}});u=d??u,h=y??h,p={...p,[g]:{...p[g],...O}},S&&w<=50&&(w++,typeof S=="object"&&(S.placement&&(v=S.placement),S.rects&&(f=S.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):S.rects),{x:u,y:h}=ut(f,v,l)),b=-1)}return{x:u,y:h,placement:v,strategy:o,middlewareData:p}};async function Ae(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:s,elements:c,strategy:l}=e,{boundary:f="clippingAncestors",rootBoundary:u="viewport",elementContext:h="floating",altBoundary:v=!1,padding:p=0}=le(t,e),w=Pt(p),g=c[v?h==="floating"?"reference":"floating":h],m=Ce(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(g)))==null||n?g:g.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(c.floating)),boundary:f,rootBoundary:u,strategy:l})),d=h==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,y=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c.floating)),O=await(i.isElement==null?void 0:i.isElement(y))?await(i.getScale==null?void 0:i.getScale(y))||{x:1,y:1}:{x:1,y:1},S=Ce(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:d,offsetParent:y,strategy:l}):d);return{top:(m.top-S.top+w.top)/O.y,bottom:(S.bottom-m.bottom+w.bottom)/O.y,left:(m.left-S.left+w.left)/O.x,right:(S.right-m.right+w.right)/O.x}}const Jn=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:c,middlewareData:l}=t,{element:f,padding:u=0}=le(e,t)||{};if(f==null)return{};const h=Pt(u),v={x:n,y:r},p=et(o),w=Qe(p),b=await s.getDimensions(f),g=p==="y",m=g?"top":"left",d=g?"bottom":"right",y=g?"clientHeight":"clientWidth",O=i.reference[w]+i.reference[p]-v[p]-i.floating[w],S=v[p]-i.reference[p],T=await(s.getOffsetParent==null?void 0:s.getOffsetParent(f));let C=T?T[y]:0;(!C||!await(s.isElement==null?void 0:s.isElement(T)))&&(C=c.floating[y]||i.floating[w]);const z=O/2-S/2,L=C/2-b[w]/2-1,A=se(h[m],L),I=se(h[d],L),F=A,x=C-b[w]-I,R=C/2-b[w]/2+z,E=je(F,R,x),M=!l.arrow&&be(o)!=null&&R!==E&&i.reference[w]/2-(R<F?A:I)-b[w]/2<0,k=M?R<F?R-F:R-x:0;return{[p]:v[p]+k,data:{[p]:E,centerOffset:R-E-k,...M&&{alignmentOffset:k}},reset:M}}}),Zn=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:c,platform:l,elements:f}=t,{mainAxis:u=!0,crossAxis:h=!0,fallbackPlacements:v,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:b=!0,...g}=le(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const m=te(o),d=Z(c),y=te(c)===c,O=await(l.isRTL==null?void 0:l.isRTL(f.floating)),S=v||(y||!b?[ke(c)]:jn(c)),T=w!=="none";!v&&T&&S.push(...Un(c,b,w,O));const C=[c,...S],z=await Ae(t,g),L=[];let A=((r=i.flip)==null?void 0:r.overflows)||[];if(u&&L.push(z[m]),h){const E=Xn(o,s,O);L.push(z[E[0]],z[E[1]])}if(A=[...A,{placement:o,overflows:L}],!L.every(E=>E<=0)){var I,F;const E=(((I=i.flip)==null?void 0:I.index)||0)+1,M=C[E];if(M){var x;const _=h==="alignment"?d!==Z(M):!1,B=((x=A[0])==null?void 0:x.overflows[0])>0;if(!_||B)return{data:{index:E,overflows:A},reset:{placement:M}}}let k=(F=A.filter(_=>_.overflows[0]<=0).sort((_,B)=>_.overflows[1]-B.overflows[1])[0])==null?void 0:F.placement;if(!k)switch(p){case"bestFit":{var R;const _=(R=A.filter(B=>{if(T){const N=Z(B.placement);return N===d||N==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(N=>N>0).reduce((N,U)=>N+U,0)]).sort((B,N)=>B[1]-N[1])[0])==null?void 0:R[0];_&&(k=_);break}case"initialPlacement":k=c;break}if(o!==k)return{reset:{placement:k}}}return{}}}};function dt(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ht(e){return $n.some(t=>e[t]>=0)}const Qn=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=le(e,t);switch(r){case"referenceHidden":{const i=await Ae(t,{...o,elementContext:"reference"}),s=dt(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:ht(s)}}}case"escaped":{const i=await Ae(t,{...o,altBoundary:!0}),s=dt(i,n.floating);return{data:{escapedOffsets:s,escaped:ht(s)}}}default:return{}}}}};async function er(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=te(n),c=be(n),l=Z(n)==="y",f=["left","top"].includes(s)?-1:1,u=i&&l?-1:1,h=le(t,e);let{mainAxis:v,crossAxis:p,alignmentAxis:w}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return c&&typeof w=="number"&&(p=c==="end"?w*-1:w),l?{x:p*u,y:v*f}:{x:v*f,y:p*u}}const tr=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:c}=t,l=await er(t,e);return s===((n=c.offset)==null?void 0:n.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:s}}}}},nr=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:c={fn:g=>{let{x:m,y:d}=g;return{x:m,y:d}}},...l}=le(e,t),f={x:n,y:r},u=await Ae(t,l),h=Z(te(o)),v=Bt(h);let p=f[v],w=f[h];if(i){const g=v==="y"?"top":"left",m=v==="y"?"bottom":"right",d=p+u[g],y=p-u[m];p=je(d,p,y)}if(s){const g=h==="y"?"top":"left",m=h==="y"?"bottom":"right",d=w+u[g],y=w-u[m];w=je(d,w,y)}const b=c.fn({...t,[v]:p,[h]:w});return{...b,data:{x:b.x-n,y:b.y-r,enabled:{[v]:i,[h]:s}}}}}};function Be(){return typeof window<"u"}function fe(e){return Ft(e)?(e.nodeName||"").toLowerCase():"#document"}function W(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Y(e){var t;return(t=(Ft(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ft(e){return Be()?e instanceof Node||e instanceof W(e).Node:!1}function H(e){return Be()?e instanceof Element||e instanceof W(e).Element:!1}function j(e){return Be()?e instanceof HTMLElement||e instanceof W(e).HTMLElement:!1}function mt(e){return!Be()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof W(e).ShadowRoot}function we(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=$(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function rr(e){return["table","td","th"].includes(fe(e))}function Pe(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function tt(e){const t=nt(),n=H(e)?$(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function or(e){let t=G(e);for(;j(t)&&!ce(t);){if(tt(t))return t;if(Pe(t))return null;t=G(t)}return null}function nt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ce(e){return["html","body","#document"].includes(fe(e))}function $(e){return W(e).getComputedStyle(e)}function Fe(e){return H(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function G(e){if(fe(e)==="html")return e;const t=e.assignedSlot||e.parentNode||mt(e)&&e.host||Y(e);return mt(t)?t.host:t}function _t(e){const t=G(e);return ce(t)?e.ownerDocument?e.ownerDocument.body:e.body:j(t)&&we(t)?t:_t(t)}function ve(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=_t(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=W(o);if(i){const c=Ue(s);return t.concat(s,s.visualViewport||[],we(o)?o:[],c&&n?ve(c):[])}return t.concat(o,ve(o,[],n))}function Ue(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Nt(e){const t=$(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=j(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,c=ze(n)!==i||ze(r)!==s;return c&&(n=i,r=s),{width:n,height:r,$:c}}function rt(e){return H(e)?e:e.contextElement}function oe(e){const t=rt(e);if(!j(t))return X(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Nt(t);let s=(i?ze(n.width):n.width)/r,c=(i?ze(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const ir=X(0);function Wt(e){const t=W(e);return!nt()||!t.visualViewport?ir:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function sr(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==W(e)?!1:t}function ne(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=rt(e);let s=X(1);t&&(r?H(r)&&(s=oe(r)):s=oe(e));const c=sr(i,n,r)?Wt(i):X(0);let l=(o.left+c.x)/s.x,f=(o.top+c.y)/s.y,u=o.width/s.x,h=o.height/s.y;if(i){const v=W(i),p=r&&H(r)?W(r):r;let w=v,b=Ue(w);for(;b&&r&&p!==w;){const g=oe(b),m=b.getBoundingClientRect(),d=$(b),y=m.left+(b.clientLeft+parseFloat(d.paddingLeft))*g.x,O=m.top+(b.clientTop+parseFloat(d.paddingTop))*g.y;l*=g.x,f*=g.y,u*=g.x,h*=g.y,l+=y,f+=O,w=W(b),b=Ue(w)}}return Ce({width:u,height:h,x:l,y:f})}function ot(e,t){const n=Fe(e).scrollLeft;return t?t.left+n:ne(Y(e)).left+n}function It(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:ot(e,r)),i=r.top+t.scrollTop;return{x:o,y:i}}function cr(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=Y(r),c=t?Pe(t.floating):!1;if(r===s||c&&i)return n;let l={scrollLeft:0,scrollTop:0},f=X(1);const u=X(0),h=j(r);if((h||!h&&!i)&&((fe(r)!=="body"||we(s))&&(l=Fe(r)),j(r))){const p=ne(r);f=oe(r),u.x=p.x+r.clientLeft,u.y=p.y+r.clientTop}const v=s&&!h&&!i?It(s,l,!0):X(0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-l.scrollLeft*f.x+u.x+v.x,y:n.y*f.y-l.scrollTop*f.y+u.y+v.y}}function ar(e){return Array.from(e.getClientRects())}function lr(e){const t=Y(e),n=Fe(e),r=e.ownerDocument.body,o=J(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=J(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+ot(e);const c=-n.scrollTop;return $(r).direction==="rtl"&&(s+=J(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:c}}function fr(e,t){const n=W(e),r=Y(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,c=0,l=0;if(o){i=o.width,s=o.height;const f=nt();(!f||f&&t==="fixed")&&(c=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:c,y:l}}function ur(e,t){const n=ne(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=j(e)?oe(e):X(1),s=e.clientWidth*i.x,c=e.clientHeight*i.y,l=o*i.x,f=r*i.y;return{width:s,height:c,x:l,y:f}}function pt(e,t,n){let r;if(t==="viewport")r=fr(e,n);else if(t==="document")r=lr(Y(e));else if(H(t))r=ur(t,n);else{const o=Wt(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Ce(r)}function Ht(e,t){const n=G(e);return n===t||!H(n)||ce(n)?!1:$(n).position==="fixed"||Ht(n,t)}function dr(e,t){const n=t.get(e);if(n)return n;let r=ve(e,[],!1).filter(c=>H(c)&&fe(c)!=="body"),o=null;const i=$(e).position==="fixed";let s=i?G(e):e;for(;H(s)&&!ce(s);){const c=$(s),l=tt(s);!l&&c.position==="fixed"&&(o=null),(i?!l&&!o:!l&&c.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||we(s)&&!l&&Ht(e,s))?r=r.filter(u=>u!==s):o=c,s=G(s)}return t.set(e,r),r}function hr(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?Pe(t)?[]:dr(t,this._c):[].concat(n),r],c=s[0],l=s.reduce((f,u)=>{const h=pt(t,u,o);return f.top=J(h.top,f.top),f.right=se(h.right,f.right),f.bottom=se(h.bottom,f.bottom),f.left=J(h.left,f.left),f},pt(t,c,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function mr(e){const{width:t,height:n}=Nt(e);return{width:t,height:n}}function pr(e,t,n){const r=j(t),o=Y(t),i=n==="fixed",s=ne(e,!0,i,t);let c={scrollLeft:0,scrollTop:0};const l=X(0);function f(){l.x=ot(o)}if(r||!r&&!i)if((fe(t)!=="body"||we(o))&&(c=Fe(t)),r){const p=ne(t,!0,i,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}else o&&f();i&&!r&&o&&f();const u=o&&!r&&!i?It(o,c):X(0),h=s.left+c.scrollLeft-l.x-u.x,v=s.top+c.scrollTop-l.y-u.y;return{x:h,y:v,width:s.width,height:s.height}}function Ne(e){return $(e).position==="static"}function vt(e,t){if(!j(e)||$(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Y(e)===n&&(n=n.ownerDocument.body),n}function $t(e,t){const n=W(e);if(Pe(e))return n;if(!j(e)){let o=G(e);for(;o&&!ce(o);){if(H(o)&&!Ne(o))return o;o=G(o)}return n}let r=vt(e,t);for(;r&&rr(r)&&Ne(r);)r=vt(r,t);return r&&ce(r)&&Ne(r)&&!tt(r)?n:r||or(e)||n}const vr=async function(e){const t=this.getOffsetParent||$t,n=this.getDimensions,r=await n(e.floating);return{reference:pr(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function gr(e){return $(e).direction==="rtl"}const qt={convertOffsetParentRelativeRectToViewportRelativeRect:cr,getDocumentElement:Y,getClippingRect:hr,getOffsetParent:$t,getElementRects:vr,getClientRects:ar,getDimensions:mr,getScale:oe,isElement:H,isRTL:gr};function Vt(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function br(e,t){let n=null,r;const o=Y(e);function i(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function s(c,l){c===void 0&&(c=!1),l===void 0&&(l=1),i();const f=e.getBoundingClientRect(),{left:u,top:h,width:v,height:p}=f;if(c||t(),!v||!p)return;const w=xe(h),b=xe(o.clientWidth-(u+v)),g=xe(o.clientHeight-(h+p)),m=xe(u),y={rootMargin:-w+"px "+-b+"px "+-g+"px "+-m+"px",threshold:J(0,se(1,l))||1};let O=!0;function S(T){const C=T[0].intersectionRatio;if(C!==l){if(!O)return s();C?s(!1,C):r=setTimeout(()=>{s(!1,1e-7)},1e3)}C===1&&!Vt(f,e.getBoundingClientRect())&&s(),O=!1}try{n=new IntersectionObserver(S,{...y,root:o.ownerDocument})}catch{n=new IntersectionObserver(S,y)}n.observe(e)}return s(!0),i}function wr(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,f=rt(e),u=o||i?[...f?ve(f):[],...ve(t)]:[];u.forEach(m=>{o&&m.addEventListener("scroll",n,{passive:!0}),i&&m.addEventListener("resize",n)});const h=f&&c?br(f,n):null;let v=-1,p=null;s&&(p=new ResizeObserver(m=>{let[d]=m;d&&d.target===f&&p&&(p.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var y;(y=p)==null||y.observe(t)})),n()}),f&&!l&&p.observe(f),p.observe(t));let w,b=l?ne(e):null;l&&g();function g(){const m=ne(e);b&&!Vt(b,m)&&n(),b=m,w=requestAnimationFrame(g)}return n(),()=>{var m;u.forEach(d=>{o&&d.removeEventListener("scroll",n),i&&d.removeEventListener("resize",n)}),h==null||h(),(m=p)==null||m.disconnect(),p=null,l&&cancelAnimationFrame(w)}}const yr=tr,xr=nr,Er=Zn,Rr=Qn,Sr=Jn,Tr=(e,t,n)=>{const r=new Map,o={platform:qt,...n},i={...o.platform,_c:r};return Gn(e,t,{...o,platform:i})};var Q=[],Or=function(){return Q.some(function(e){return e.activeTargets.length>0})},zr=function(){return Q.some(function(e){return e.skippedTargets.length>0})},gt="ResizeObserver loop completed with undelivered notifications.",kr=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:gt}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=gt),window.dispatchEvent(e)},ge;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(ge||(ge={}));var ee=function(e){return Object.freeze(e)},Cr=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,ee(this)}return e}(),Xt=function(){function e(t,n,r,o){return this.x=t,this.y=n,this.width=r,this.height=o,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,ee(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,r=t.y,o=t.top,i=t.right,s=t.bottom,c=t.left,l=t.width,f=t.height;return{x:n,y:r,top:o,right:i,bottom:s,left:c,width:l,height:f}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),it=function(e){return e instanceof SVGElement&&"getBBox"in e},jt=function(e){if(it(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var o=e,i=o.offsetWidth,s=o.offsetHeight;return!(i||s||e.getClientRects().length)},bt=function(e){var t;if(e instanceof Element)return!0;var n=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},Ar=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},me=typeof window<"u"?window:{},Ee=new WeakMap,wt=/auto|scroll/,Mr=/^tb|vertical/,Lr=/msie|trident/i.test(me.navigator&&me.navigator.userAgent),q=function(e){return parseFloat(e||"0")},ie=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new Cr((n?t:e)||0,(n?e:t)||0)},yt=ee({devicePixelContentBoxSize:ie(),borderBoxSize:ie(),contentBoxSize:ie(),contentRect:new Xt(0,0,0,0)}),Yt=function(e,t){if(t===void 0&&(t=!1),Ee.has(e)&&!t)return Ee.get(e);if(jt(e))return Ee.set(e,yt),yt;var n=getComputedStyle(e),r=it(e)&&e.ownerSVGElement&&e.getBBox(),o=!Lr&&n.boxSizing==="border-box",i=Mr.test(n.writingMode||""),s=!r&&wt.test(n.overflowY||""),c=!r&&wt.test(n.overflowX||""),l=r?0:q(n.paddingTop),f=r?0:q(n.paddingRight),u=r?0:q(n.paddingBottom),h=r?0:q(n.paddingLeft),v=r?0:q(n.borderTopWidth),p=r?0:q(n.borderRightWidth),w=r?0:q(n.borderBottomWidth),b=r?0:q(n.borderLeftWidth),g=h+f,m=l+u,d=b+p,y=v+w,O=c?e.offsetHeight-y-e.clientHeight:0,S=s?e.offsetWidth-d-e.clientWidth:0,T=o?g+d:0,C=o?m+y:0,z=r?r.width:q(n.width)-T-S,L=r?r.height:q(n.height)-C-O,A=z+g+S+d,I=L+m+O+y,F=ee({devicePixelContentBoxSize:ie(Math.round(z*devicePixelRatio),Math.round(L*devicePixelRatio),i),borderBoxSize:ie(A,I,i),contentBoxSize:ie(z,L,i),contentRect:new Xt(h,l,z,L)});return Ee.set(e,F),F},Ut=function(e,t,n){var r=Yt(e,n),o=r.borderBoxSize,i=r.contentBoxSize,s=r.devicePixelContentBoxSize;switch(t){case ge.DEVICE_PIXEL_CONTENT_BOX:return s;case ge.BORDER_BOX:return o;default:return i}},Dr=function(){function e(t){var n=Yt(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=ee([n.borderBoxSize]),this.contentBoxSize=ee([n.contentBoxSize]),this.devicePixelContentBoxSize=ee([n.devicePixelContentBoxSize])}return e}(),Kt=function(e){if(jt(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},Br=function(){var e=1/0,t=[];Q.forEach(function(s){if(s.activeTargets.length!==0){var c=[];s.activeTargets.forEach(function(f){var u=new Dr(f.target),h=Kt(f.target);c.push(u),f.lastReportedSize=Ut(f.target,f.observedBox),h<e&&(e=h)}),t.push(function(){s.callback.call(s.observer,c,s.observer)}),s.activeTargets.splice(0,s.activeTargets.length)}});for(var n=0,r=t;n<r.length;n++){var o=r[n];o()}return e},xt=function(e){Q.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(o){o.isActive()&&(Kt(o.target)>e?n.activeTargets.push(o):n.skippedTargets.push(o))})})},Pr=function(){var e=0;for(xt(e);Or();)e=Br(),xt(e);return zr()&&kr(),e>0},We,Gt=[],Fr=function(){return Gt.splice(0).forEach(function(e){return e()})},_r=function(e){if(!We){var t=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return Fr()}).observe(n,r),We=function(){n.textContent="".concat(t?t--:t++)}}Gt.push(e),We()},Nr=function(e){_r(function(){requestAnimationFrame(e)})},Te=0,Wr=function(){return!!Te},Ir=250,Hr={attributes:!0,characterData:!0,childList:!0,subtree:!0},Et=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Rt=function(e){return e===void 0&&(e=0),Date.now()+e},Ie=!1,$r=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var n=this;if(t===void 0&&(t=Ir),!Ie){Ie=!0;var r=Rt(t);Nr(function(){var o=!1;try{o=Pr()}finally{if(Ie=!1,t=r-Rt(),!Wr())return;o?n.run(1e3):t>0?n.run(t):n.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,n=function(){return t.observer&&t.observer.observe(document.body,Hr)};document.body?n():me.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Et.forEach(function(n){return me.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),Et.forEach(function(n){return me.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),Ke=new $r,St=function(e){!Te&&e>0&&Ke.start(),Te+=e,!Te&&Ke.stop()},qr=function(e){return!it(e)&&!Ar(e)&&getComputedStyle(e).display==="inline"},Vr=function(){function e(t,n){this.target=t,this.observedBox=n||ge.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=Ut(this.target,this.observedBox,!0);return qr(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),Xr=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),Re=new WeakMap,Tt=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},Se=function(){function e(){}return e.connect=function(t,n){var r=new Xr(t,n);Re.set(t,r)},e.observe=function(t,n,r){var o=Re.get(t),i=o.observationTargets.length===0;Tt(o.observationTargets,n)<0&&(i&&Q.push(o),o.observationTargets.push(new Vr(n,r&&r.box)),St(1),Ke.schedule())},e.unobserve=function(t,n){var r=Re.get(t),o=Tt(r.observationTargets,n),i=r.observationTargets.length===1;o>=0&&(i&&Q.splice(Q.indexOf(r),1),r.observationTargets.splice(o,1),St(-1))},e.disconnect=function(t){var n=this,r=Re.get(t);r.observationTargets.slice().forEach(function(o){return n.unobserve(t,o.target)}),r.activeTargets.splice(0,r.activeTargets.length)},e}(),Ot=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Se.connect(this,t)}return e.prototype.observe=function(t,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!bt(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Se.observe(this,t,n)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!bt(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Se.unobserve(this,t)},e.prototype.disconnect=function(){Se.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();const Me=new WeakMap;function jr(e){var t;for(let n=0,r=e.length;n<r;++n){const o=e[n],i=Me.get(o.target);if(typeof i=="function"){const{inlineSize:s,blockSize:c}=(t=o.borderBoxSize)==null?void 0:t[0],{offsetWidth:l,offsetHeight:f}=o.target;i({...o,offsetWidth:l,offsetHeight:f,width:s??l,height:c??f})}}}const Jt=new(P&&window.ResizeObserver||Ot)(jr);function ae(e,t){Me.set(e,t),Jt.observe(e)}function Le(e){Me.has(e)&&(Jt.unobserve(e),Me.delete(e))}function Yr(e={}){let t=D;const n=a.watch(()=>a.unref(e.target),o=>{t(),!(!o||typeof e.onResize!="function")&&(ae(o,e.onResize),t=()=>{Le(o),t=D})},{immediate:!0}),r=()=>{n(),t()};return a.getCurrentScope()&&a.onScopeDispose(r),{observeResize:ae,unobserveResize:Le,unobserve:r}}const Zt=a.ref(!1),Ur=a.computed(()=>Zt.value),de="__rtl_observer__";function Qt(){return P&&!document.querySelector(`#${de}`)&&Kr(),{isRtl:Ur}}function Kr(){if(!P)return;const e=document.createElement("style"),t=`#${de} { width: 1px } html.rtl #${de}, html[dir='rtl'] #${de} { width: 2px }`;e.textContent=t,document.head.appendChild(e);const n=document.createElement("div");n.id=de,n.role="none",n.style.cssText="position: fixed; top -10px; left: -10px; height: 1px; visibility: hidden;",ae(n,()=>{P&&(Zt.value=document.documentElement.classList.contains("rtl")||document.documentElement.getAttribute("dir")==="rtl")}),document.body.appendChild(n)}const Gr=Object.freeze(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end"]);function Jr(e){const{transfer:t,wrapper:n,isDrop:r=!1}=e,o=e.reference??a.shallowRef(null),i=e.popper??a.shallowRef(null),s=e.arrow??a.shallowRef(null),c=a.ref(a.unref(e.placement)),l=a.ref(""),f=e.isRtl??Qt().isRtl;n&&a.watchEffect(()=>{const b=a.unref(n),g=a.unref(i);b&&(b.__transferElement=g)}),t!=null&&(a.watch(()=>a.unref(t),b=>{p(b),v()}),p(a.unref(t))),a.onMounted(()=>{requestAnimationFrame(()=>{a.watchEffect(h)})});let u;async function h(){if(!P)return;u==null||u();const b=a.unref(o),g=a.unref(i);if(!b||!g)return;const m=a.unref(s),d=[Er()];if(r&&d.push({name:"origin",fn({placement:T,elements:C}){const z=w(T);return z&&(C.floating.style.transformOrigin=z),{}}}),e.offset){let T=a.unref(e.offset);Array.isArray(T)&&(T={mainAxis:T[1],crossAxis:T[0]}),d.push(yr(T))}if(e.shift){let T=a.unref(e.shift);typeof T=="boolean"&&(T={}),d.push(xr(T))}m&&d.push(Sr({element:m})),d.push(Rr({strategy:"escaped"}));const y=a.unref(f)||!1,O={middleware:d,placement:a.unref(e.placement),platform:{...qt,isRTL:async()=>y}},S=async()=>{const{x:T,y:C,placement:z,strategy:L,middlewareData:A}=await Tr(b,g,O);if(a.unref(o)!==b){a.unref(i)===g&&Object.assign(g.style,{position:"",top:"",left:""});return}const I={position:L,top:`${C}px`,left:`${T}px`};if(m)if(A.arrow){const{x:F,y:x}=A.arrow;Object.assign(m.style,{top:x!=null?`${x}px`:"",left:F!=null?`${F}px`:""})}else Object.assign(m.style,{top:"",left:""});Object.assign(g.style,I),g.dataset.popperPlacement=z,c.value=z};e.autoUpdate&&(u=wr(b,g,S)),await S()}const v=()=>new Promise(b=>{requestAnimationFrame(()=>{h().then(b)})});function p(b){l.value=typeof b=="boolean"?b?"body":"":b}function w(b){if(b!=="left"&&b!=="right"){const[g,m]=b.split("-");return g==="bottom"||g!=="top"&&m==="start"?"center top":"center bottom"}}return{wrapper:n,reference:o,popper:i,placement:c,transferTo:l,updatePopper:v}}const zt="__theme_style__",Oe="__theme_observer__",kt=new WeakMap;function Zr(e){const t=a.ref();if(P){e=e||document.body;let n=kt.get(e);n||(n=no(t),e.appendChild(n),kt.set(e,n))}return{theme:t}}const De=a.reactive(new Map),Ge=new Map;a.watch(De,()=>{if(!P)return;Ge.clear();const e=document.head.querySelector(`#${zt}`);e&&document.head.removeChild(e);const t=document.createElement("style");let n=`.${Oe} { width: 1px }`,r=1;for(const[o,[i,s]]of De.entries())n+=` html.${i} .${Oe}, .${s} .${Oe} { width: ${++r}px }`,Ge.set(r,o);t.textContent=n,t.id=zt,document.head.appendChild(t)});function en(e){for(const t of e){const{name:n,rootClass:r=n,varsClass:o=`vxp-theme-vars-${r}`}=typeof t=="string"?{name:t}:t;De.set(n,[r,o])}}function Qr(e){De.clear(),en(e)}let eo=0;function to(){return`__theme_observer_${eo++}__`}function no(e){if(!P)return;const t=document.createElement("div");return t.id=to(),t.className=Oe,t.role="none",t.style.cssText="position: fixed; top -10px; left: -10px; height: 1px; visibility: hidden;",ae(t,n=>{var o;if(!P)return;const r=((o=n.borderBoxSize)==null?void 0:o[0].inlineSize)??n.contentRect.width;e.value=Ge.get(r)}),t}function tn(){const e={};return a.onScopeDispose(()=>{Object.keys(e).forEach(t=>{clearTimeout(e[t])})}),{timer:e}}function nn(){const e={};return a.onScopeDispose(()=>{Object.keys(e).forEach(t=>{clearInterval(e[t])})}),{timer:e}}function rn(){const e={};return a.onScopeDispose(()=>{Object.keys(e).forEach(t=>{cancelAnimationFrame(e[t])})}),{timer:e}}function ro(){const{timer:e}=tn(),{timer:t}=nn(),{timer:n}=rn();return{timeout:e,interval:t,raf:n}}function oo(e,t,n=100){let r;function o(){e.value==="hover"&&(clearTimeout(r),r=setTimeout(()=>{t.value=!0},n))}function i(){e.value==="hover"&&(clearTimeout(r),r=setTimeout(()=>{t.value=!1},n))}function s(){e.value==="click"&&(t.value=!t.value)}return{handleTriggerEnter:o,handleTriggerLeave:i,handleTriggerClick:s}}function io(e){const{items:t,itemSize:n,itemFixed:r,idKey:o,defaultKeyAt:i,bufferSize:s=a.ref(5),wrapper:c=a.ref(null),autoResize:l=!0}=e,f=a.computed(()=>{const x=a.unref(t),R=x.length,E=a.unref(o),M=new Map;for(let k=0;k<R;++k)M.set(x[k][E],k);return M}),u=a.ref(0),h=new Map,v=a.computed(()=>{const x=a.unref(t),R=x.length,E=a.unref(o),M=cn(R,a.unref(n));for(let k=0;k<R;++k){const _=x[k][E],B=h.get(_);B&&M.add(k,B)}return M}),p=a.ref(0),w=a.ref(0),b=a.computed(()=>Math.max(v.value.boundIndex(w.value)-Math.max(a.unref(s),0),0)),g=a.computed(()=>{if(!u.value||u.value<0)return[];const x=a.unref(t),R=Math.min(v.value.boundIndex(w.value+u.value)+1+Math.max(a.unref(s),0),x.length);return x.slice(b.value,R)}),m=a.computed(()=>{p.value;const x=v.value.sum(),R=a.unref(r);return{height:R?`${x}px`:void 0,minHeight:R?void 0:`${x}px`,boxSizing:"content-box"}}),d=a.computed(()=>(p.value,{transform:`translate3d(0, ${v.value.sum(b.value)}px, 0)`}));if(l){let x=D;const R=a.watch(()=>a.unref(c),E=>{x(),E&&(ae(E,S),x=()=>{Le(E),x=D},He(i)&&L(i))},{immediate:!0,flush:"post"});a.onScopeDispose(()=>{R(),x()})}function y(){const x=a.unref(c);x&&(w.value=x.scrollTop)}function O(){vn(y)}function S(x){qe(x.target)||x.contentRect.height===u.value||(u.value=x.contentRect.height)}function T(x,R){var st,ct;if(a.unref(r))return;const E=f.value.get(x),M=v.value,k=M.get(E),_=((ct=(st=R.borderBoxSize)==null?void 0:st[0])==null?void 0:ct.blockSize)??R.contentRect.height;if(_===k)return;if(qe(R.target)){k&&(M.add(E,-k),p.value++);return}const B=_-a.unref(n),N=_-k;if(B?h.set(x,B):h.delete(x),!N)return;M.add(E,N),p.value++;const U=a.unref(c);if(U){const on=M.sum(E);U.scrollTop>on&&U.scrollBy(0,N),w.value=U.scrollTop}}function C(x,R){const E=a.unref(c);E&&E.scrollTo({behavior:R,top:x,left:0})}function z(x,R){const E=a.unref(c);E&&E.scrollBy({behavior:R,top:x,left:0})}function L(x,R){const E=f.value.get(x);E!=null&&A(E,R)}function A(x,R){const E=a.unref(c);E&&E.scrollTo({behavior:R,top:v.value.sum(x),left:0})}function I(x,R){const E=a.unref(c);if(!E)return;const M=v.value,k=E.scrollTop;if(M.sum(x)<k){A(x,R);return}const B=E.offsetHeight,N=k+B,U=M.sum(x+1);U>N&&C(U-B,R)}function F(x,R){const E=f.value.get(x);E!=null&&I(E,R)}return{wrapper:c,indexMap:f,heightTree:v,startIndex:b,scrollOffset:w,visibleItems:g,listStyle:m,itemsStyle:d,handleScroll:O,handleResize:S,handleItemResize:T,scrollTo:C,scrollBy:z,scrollToKey:L,scrollToIndex:A,ensureIndexInView:I,ensureKeyInView:F}}exports.CLICK_OUTSIDE=Je;exports.addActiveThemes=en;exports.createSlotRender=wn;exports.flatVNodes=yn;exports.isHiddenElement=qe;exports.observeResize=ae;exports.pickToRefs=Rn;exports.placementWhileList=Gr;exports.proxyExposed=xn;exports.queryOutsideHiddenElement=Ze;exports.setActiveThemes=Qr;exports.unobserveResize=Le;exports.unrefElement=ue;exports.useClickOutside=gn;exports.useDisplay=bn;exports.useFullScreen=On;exports.useHover=zn;exports.useIntersection=An;exports.useListener=V;exports.useManualRef=Mn;exports.useModifier=Fn;exports.useMounted=_n;exports.useMoving=Nn;exports.usePointer=Hn;exports.usePopper=Jr;exports.useRaf=rn;exports.useResize=Yr;exports.useRtl=Qt;exports.useSetInterval=nn;exports.useSetTimeout=tn;exports.useTheme=Zr;exports.useTimerRecord=ro;exports.useTriggerHandler=oo;exports.useVirtual=io;exports.watchPauseable=En; | ||
| //# sourceMappingURL=index.cjs.map |
+24
-2
@@ -88,4 +88,11 @@ import { BITree } from '../../common/utils/src'; | ||
| export declare type ResizeHandler = (entry: ResizeObserverEntry) => any; | ||
| export declare type ResizeHandler = (entry: ResizeInfo) => any; | ||
| export declare interface ResizeInfo extends ResizeObserverEntry { | ||
| offsetWidth: number; | ||
| offsetHeight: number; | ||
| width: number; | ||
| height: number; | ||
| } | ||
| export declare function setActiveThemes(themes: (string | InitThemeOptions)[]): void; | ||
@@ -366,7 +373,22 @@ | ||
| export declare function useResize(): { | ||
| export declare function useResize(options?: UseResizeOptions): { | ||
| /** | ||
| * @deprecated Will be removed in next major version, please directly use `observeResize` from imports. | ||
| */ | ||
| observeResize: typeof observeResize; | ||
| /** | ||
| * @deprecated Will be removed in next major version, please directly use `unobserveResize` from imports. | ||
| */ | ||
| unobserveResize: typeof unobserveResize; | ||
| unobserve: () => void; | ||
| }; | ||
| export declare interface UseResizeOptions { | ||
| /** | ||
| * 作用的目标元素的 Ref | ||
| */ | ||
| target?: MaybeRef<HTMLElement | null | undefined>; | ||
| onResize?: ResizeHandler; | ||
| } | ||
| export declare function useRtl(): { | ||
@@ -373,0 +395,0 @@ isRtl: Ref<boolean, boolean>; |
+2
-2
| { | ||
| "name": "@vexip-ui/hooks", | ||
| "version": "2.8.1", | ||
| "version": "2.9.0", | ||
| "type": "module", | ||
@@ -33,3 +33,3 @@ "license": "MIT", | ||
| "devDependencies": { | ||
| "vue": "^3.5.14" | ||
| "vue": "^3.5.15" | ||
| }, | ||
@@ -36,0 +36,0 @@ "peerDependencies": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
708205
0.87%3152
1.64%