UNPKG

epic-designer-gold

Version:

基于vue3的设计器,可视化开发页面表单

15 lines (14 loc) 991 kB
"use strict";const Pe=require("./_commonjsHelpers-DwTZ_eVU.cjs"),He=require("./_vue_commonjs-external-CccDNqHl.cjs"),$=require("vue");function hu(e){return e.composedPath()[0]}const J2={mousemoveoutside:new WeakMap,clickoutside:new WeakMap};function Z2(e,n,a){if(e==="mousemoveoutside"){const i=o=>{n.contains(hu(o))||a(o)};return{mousemove:i,touchstart:i}}else if(e==="clickoutside"){let i=!1;const o=v=>{i=!n.contains(hu(v))},h=v=>{i&&(n.contains(hu(v))||a(v))};return{mousedown:o,mouseup:h,touchstart:o,touchend:h}}return console.error(`[evtd/create-trap-handler]: name \`${e}\` is invalid. This could be a bug of evtd.`),{}}function sW(e,n,a){const i=J2[e];let o=i.get(n);o===void 0&&i.set(n,o=new WeakMap);let h=o.get(a);return h===void 0&&o.set(a,h=Z2(e,n,a)),h}function U2(e,n,a,i){if(e==="mousemoveoutside"||e==="clickoutside"){const o=sW(e,n,a);return Object.keys(o).forEach(h=>{Ft(h,document,o[h],i)}),!0}return!1}function eC(e,n,a,i){if(e==="mousemoveoutside"||e==="clickoutside"){const o=sW(e,n,a);return Object.keys(o).forEach(h=>{ut(h,document,o[h],i)}),!0}return!1}function tC(){if(typeof window>"u")return{on:()=>{},off:()=>{}};const e=new WeakMap,n=new WeakMap;function a(){e.set(this,!0)}function i(){e.set(this,!0),n.set(this,!0)}function o(C,H,Q){const ie=C[H];return C[H]=function(){return Q.apply(C,arguments),ie.apply(C,arguments)},C}function h(C,H){C[H]=Event.prototype[H]}const v=new WeakMap,p=Object.getOwnPropertyDescriptor(Event.prototype,"currentTarget");function w(){var C;return(C=v.get(this))!==null&&C!==void 0?C:null}function b(C,H){p!==void 0&&Object.defineProperty(C,"currentTarget",{configurable:!0,enumerable:!0,get:H??p.get})}const k={bubble:{},capture:{}},S={};function z(){const C=function(H){const{type:Q,eventPhase:ie,bubbles:ge}=H,We=hu(H);if(ie===2)return;const I=ie===1?"capture":"bubble";let q=We;const ae=[];for(;q===null&&(q=window),ae.push(q),q!==window;)q=q.parentNode||null;const he=k.capture[Q],ce=k.bubble[Q];if(o(H,"stopPropagation",a),o(H,"stopImmediatePropagation",i),b(H,w),I==="capture"){if(he===void 0)return;for(let ue=ae.length-1;ue>=0&&!e.has(H);--ue){const pe=ae[ue],$e=he.get(pe);if($e!==void 0){v.set(H,pe);for(const we of $e){if(n.has(H))break;we(H)}}if(ue===0&&!ge&&ce!==void 0){const we=ce.get(pe);if(we!==void 0)for(const pt of we){if(n.has(H))break;pt(H)}}}}else if(I==="bubble"){if(ce===void 0)return;for(let ue=0;ue<ae.length&&!e.has(H);++ue){const pe=ae[ue],$e=ce.get(pe);if($e!==void 0){v.set(H,pe);for(const we of $e){if(n.has(H))break;we(H)}}}}h(H,"stopPropagation"),h(H,"stopImmediatePropagation"),b(H)};return C.displayName="evtdUnifiedHandler",C}function A(){const C=function(H){const{type:Q,eventPhase:ie}=H;if(ie!==2)return;const ge=S[Q];ge!==void 0&&ge.forEach(We=>We(H))};return C.displayName="evtdUnifiedWindowEventHandler",C}const F=z(),R=A();function j(C,H){const Q=k[C];return Q[H]===void 0&&(Q[H]=new Map,window.addEventListener(H,F,C==="capture")),Q[H]}function W(C){return S[C]===void 0&&(S[C]=new Set,window.addEventListener(C,R)),S[C]}function G(C,H){let Q=C.get(H);return Q===void 0&&C.set(H,Q=new Set),Q}function K(C,H,Q,ie){const ge=k[H][Q];if(ge!==void 0){const We=ge.get(C);if(We!==void 0&&We.has(ie))return!0}return!1}function de(C,H){const Q=S[C];return!!(Q!==void 0&&Q.has(H))}function Me(C,H,Q,ie){let ge;if(typeof ie=="object"&&ie.once===!0?ge=he=>{xe(C,H,ge,ie),Q(he)}:ge=Q,U2(C,H,ge,ie))return;const I=ie===!0||typeof ie=="object"&&ie.capture===!0?"capture":"bubble",q=j(I,C),ae=G(q,H);if(ae.has(ge)||ae.add(ge),H===window){const he=W(C);he.has(ge)||he.add(ge)}}function xe(C,H,Q,ie){if(eC(C,H,Q,ie))return;const We=ie===!0||typeof ie=="object"&&ie.capture===!0,I=We?"capture":"bubble",q=j(I,C),ae=G(q,H);if(H===window&&!K(H,We?"bubble":"capture",C,Q)&&de(C,Q)){const ce=S[C];ce.delete(Q),ce.size===0&&(window.removeEventListener(C,R),S[C]=void 0)}ae.has(Q)&&ae.delete(Q),ae.size===0&&q.delete(H),q.size===0&&(window.removeEventListener(C,F,I==="capture"),k[I][C]=void 0)}return{on:Me,off:xe}}const{on:Ft,off:ut}=tC(),aC=Object.freeze(Object.defineProperty({__proto__:null,off:ut,on:Ft},Symbol.toStringTag,{value:"Module"})),dW=Pe.getAugmentedNamespace(aC);let gu=[];const uW=new WeakMap;function nC(){gu.forEach(e=>e(...uW.get(e))),gu=[]}function Wh(e,...n){uW.set(e,n),!gu.includes(e)&&gu.push(e)===1&&requestAnimationFrame(nC)}let uh=[],lh=[];function rC(){uh.forEach((e,n)=>e(...lh[n])),uh=[],lh=[]}function iC(e,...n){uh.push(e)===1&&requestAnimationFrame(rC),lh.push(n)}function oC(e){return e.nodeType===9?null:e.parentNode}function lW(e){if(e===null)return null;const n=oC(e);if(n===null)return null;if(n.nodeType===9)return document.documentElement;if(n.nodeType===1){const{overflow:a,overflowX:i,overflowY:o}=getComputedStyle(n);if(/(auto|scroll|overlay)/.test(a+o+i))return n}return lW(n)}function sC(e){return typeof e=="string"?document.querySelector(e):typeof e=="function"?e():e}function dC(e,n){let{target:a}=e;for(;a;){if(a.dataset&&a.dataset[n]!==void 0)return!0;a=a.parentElement}return!1}function cW(e){return e.composedPath()[0]||null}function mW(e){if(typeof e=="number")return{"":e.toString()};const n={};return e.split(/ +/).forEach(a=>{if(a==="")return;const[i,o]=a.split(":");o===void 0?n[""]=i:n[i]=o}),n}function uC(e,n){var a;if(e==null)return;const i=mW(e);if(n===void 0)return i[""];if(typeof n=="string")return(a=i[n])!==null&&a!==void 0?a:i[""];if(Array.isArray(n)){for(let o=n.length-1;o>=0;--o){const h=n[o];if(h in i)return i[h]}return i[""]}else{let o,h=-1;return Object.keys(i).forEach(v=>{const p=Number(v);!Number.isNaN(p)&&n>=p&&p>=h&&(h=p,o=i[v])}),o}}function ch(e){return typeof e=="string"?e.endsWith("px")?Number(e.slice(0,e.length-2)):Number(e):e}function Kn(e){if(e!=null)return typeof e=="number"?`${e}px`:e.endsWith("px")?e:`${e}px`}function TF(e,n){const a=e.trim().split(/\s+/g),i={top:a[0]};switch(a.length){case 1:i.right=a[0],i.bottom=a[0],i.left=a[0];break;case 2:i.right=a[1],i.left=a[1],i.bottom=a[0];break;case 3:i.right=a[1],i.bottom=a[2],i.left=a[1];break;case 4:i.right=a[1],i.bottom=a[2],i.left=a[3];break;default:throw new Error("[seemly/getMargin]:"+e+" is not a valid value.")}return n===void 0?i:i[n]}function lC(e,n){const[a,i]=e.split(" ");return n?n==="row"?a:i:{row:a,col:i||a}}const SF={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",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#0FF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgrey:"#A9A9A9",darkgreen:"#006400",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",grey:"#808080",green:"#008000",greenyellow:"#ADFF2F",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",lightgrey:"#D3D3D3",lightgreen:"#90EE90",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",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",transparent:"#0000"};function cC(e,n,a){n/=100,a/=100;const i=n*Math.min(a,1-a)+a;return[e,i?(2-2*a/i)*100:0,i*100]}function mC(e,n,a){n/=100,a/=100;const i=a-a*n/2,o=Math.min(i,1-i);return[e,o?(a-i)/o*100:0,i*100]}function hW(e,n,a){n/=100,a/=100;let i=(o,h=(o+e/60)%6)=>a-a*n*Math.max(Math.min(h,4-h,1),0);return[i(5)*255,i(3)*255,i(1)*255]}function hC(e,n,a){e/=255,n/=255,a/=255;let i=Math.max(e,n,a),o=i-Math.min(e,n,a),h=o&&(i==e?(n-a)/o:i==n?2+(a-e)/o:4+(e-n)/o);return[60*(h<0?h+6:h),i&&o/i*100,i*100]}function fC(e,n,a){e/=255,n/=255,a/=255;let i=Math.max(e,n,a),o=i-Math.min(e,n,a),h=1-Math.abs(i+i-o-1),v=o&&(i==e?(n-a)/o:i==n?2+(a-e)/o:4+(e-n)/o);return[60*(v<0?v+6:v),h?o/h*100:0,(i+i-o)*50]}function fW(e,n,a){n/=100,a/=100;let i=n*Math.min(a,1-a),o=(h,v=(h+e/30)%12)=>a-i*Math.max(Math.min(v-3,9-v,1),-1);return[o(0)*255,o(8)*255,o(4)*255]}const da="^\\s*",ua="\\s*$",Ha="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))%\\s*",_t="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",gn="([0-9A-Fa-f])",pn="([0-9A-Fa-f]{2})",vW=new RegExp(`${da}hsl\\s*\\(${_t},${Ha},${Ha}\\)${ua}`),gW=new RegExp(`${da}hsv\\s*\\(${_t},${Ha},${Ha}\\)${ua}`),pW=new RegExp(`${da}hsla\\s*\\(${_t},${Ha},${Ha},${_t}\\)${ua}`),bW=new RegExp(`${da}hsva\\s*\\(${_t},${Ha},${Ha},${_t}\\)${ua}`),vC=new RegExp(`${da}rgb\\s*\\(${_t},${_t},${_t}\\)${ua}`),gC=new RegExp(`${da}rgba\\s*\\(${_t},${_t},${_t},${_t}\\)${ua}`),xh=new RegExp(`${da}#${gn}${gn}${gn}${ua}`),Dh=new RegExp(`${da}#${pn}${pn}${pn}${ua}`),zh=new RegExp(`${da}#${gn}${gn}${gn}${gn}${ua}`),jh=new RegExp(`${da}#${pn}${pn}${pn}${pn}${ua}`);function ft(e){return parseInt(e,16)}function yW(e){try{let n;if(n=pW.exec(e))return[Kt(n[1]),Ae(n[5]),Ae(n[9]),sa(n[13])];if(n=vW.exec(e))return[Kt(n[1]),Ae(n[5]),Ae(n[9]),1];throw new Error(`[seemly/hsla]: Invalid color value ${e}.`)}catch(n){throw n}}function wW(e){try{let n;if(n=bW.exec(e))return[Kt(n[1]),Ae(n[5]),Ae(n[9]),sa(n[13])];if(n=gW.exec(e))return[Kt(n[1]),Ae(n[5]),Ae(n[9]),1];throw new Error(`[seemly/hsva]: Invalid color value ${e}.`)}catch(n){throw n}}function Ra(e){try{let n;if(n=Dh.exec(e))return[ft(n[1]),ft(n[2]),ft(n[3]),1];if(n=vC.exec(e))return[Ce(n[1]),Ce(n[5]),Ce(n[9]),1];if(n=gC.exec(e))return[Ce(n[1]),Ce(n[5]),Ce(n[9]),sa(n[13])];if(n=xh.exec(e))return[ft(n[1]+n[1]),ft(n[2]+n[2]),ft(n[3]+n[3]),1];if(n=jh.exec(e))return[ft(n[1]),ft(n[2]),ft(n[3]),sa(ft(n[4])/255)];if(n=zh.exec(e))return[ft(n[1]+n[1]),ft(n[2]+n[2]),ft(n[3]+n[3]),sa(ft(n[4]+n[4])/255)];if(e in SF)return Ra(SF[e]);if(vW.test(e)||pW.test(e)){const[a,i,o,h]=yW(e);return[...fW(a,i,o),h]}else if(gW.test(e)||bW.test(e)){const[a,i,o,h]=wW(e);return[...hW(a,i,o),h]}throw new Error(`[seemly/rgba]: Invalid color value ${e}.`)}catch(n){throw n}}function pC(e){return e>1?1:e<0?0:e}function bC(e,n,a){return`rgb(${Ce(e)}, ${Ce(n)}, ${Ce(a)})`}function mh(e,n,a,i){return`rgba(${Ce(e)}, ${Ce(n)}, ${Ce(a)}, ${pC(i)})`}function nc(e,n,a,i,o){return Ce((e*n*(1-i)+a*i)/o)}function yC(e,n){Array.isArray(e)||(e=Ra(e)),Array.isArray(n)||(n=Ra(n));const a=e[3],i=n[3],o=sa(a+i-a*i);return mh(nc(e[0],a,n[0],i,o),nc(e[1],a,n[1],i,o),nc(e[2],a,n[2],i,o),o)}function wC(e,n){const[a,i,o,h=1]=Array.isArray(e)?e:Ra(e);return typeof n.alpha=="number"?mh(a,i,o,n.alpha):mh(a,i,o,h)}function PC(e,n){const[a,i,o,h=1]=Array.isArray(e)?e:Ra(e),{lightness:v=1,alpha:p=1}=n;return MW([a*v,i*v,o*v,h*p])}function PW(e){var n;return(n=(Array.isArray(e)?e:Ra(e))[3])!==null&&n!==void 0?n:1}function MC(e){return`${PW(e)}`}function sa(e){const n=Math.round(Number(e)*100)/100;return n>1?1:n<0?0:n}function Kt(e){const n=Math.round(Number(e));return n>=360||n<0?0:n}function Ce(e){const n=Math.round(Number(e));return n>255?255:n<0?0:n}function Ae(e){const n=Math.round(Number(e));return n>100?100:n<0?0:n}function $C(e){const[n,a,i]=Array.isArray(e)?e:Ra(e);return bC(n,a,i)}function MW(e){const[n,a,i]=e;return 3 in e?`rgba(${Ce(n)}, ${Ce(a)}, ${Ce(i)}, ${sa(e[3])})`:`rgba(${Ce(n)}, ${Ce(a)}, ${Ce(i)}, 1)`}function kC(e){return`hsv(${Kt(e[0])}, ${Ae(e[1])}%, ${Ae(e[2])}%)`}function FC(e){const[n,a,i]=e;return 3 in e?`hsva(${Kt(n)}, ${Ae(a)}%, ${Ae(i)}%, ${sa(e[3])})`:`hsva(${Kt(n)}, ${Ae(a)}%, ${Ae(i)}%, 1)`}function _C(e){return`hsl(${Kt(e[0])}, ${Ae(e[1])}%, ${Ae(e[2])}%)`}function WC(e){const[n,a,i]=e;return 3 in e?`hsla(${Kt(n)}, ${Ae(a)}%, ${Ae(i)}%, ${sa(e[3])})`:`hsla(${Kt(n)}, ${Ae(a)}%, ${Ae(i)}%, 1)`}function xC(e){if(typeof e=="string"){let i;if(i=Dh.exec(e))return`${i[0]}FF`;if(i=jh.exec(e))return i[0];if(i=xh.exec(e))return`#${i[1]}${i[1]}${i[2]}${i[2]}${i[3]}${i[3]}FF`;if(i=zh.exec(e))return`#${i[1]}${i[1]}${i[2]}${i[2]}${i[3]}${i[3]}${i[4]}${i[4]}`;throw new Error(`[seemly/toHexString]: Invalid hex value ${e}.`)}const n=`#${e.slice(0,3).map(i=>Ce(i).toString(16).toUpperCase().padStart(2,"0")).join("")}`,a=e.length===3?"FF":Ce(e[3]*255).toString(16).padStart(2,"0").toUpperCase();return n+a}function DC(e){if(typeof e=="string"){let n;if(n=Dh.exec(e))return n[0];if(n=jh.exec(e))return n[0].slice(0,7);if(n=xh.exec(e)||zh.exec(e))return`#${n[1]}${n[1]}${n[2]}${n[2]}${n[3]}${n[3]}`;throw new Error(`[seemly/toHexString]: Invalid hex value ${e}.`)}return`#${e.slice(0,3).map(n=>Ce(n).toString(16).toUpperCase().padStart(2,"0")).join("")}`}function $W(e=8){return Math.random().toString(16).slice(2,2+e)}function zC(e,n){const a=[];for(let i=0;i<e;++i)a.push(n);return a}function jC(e,n){const a=[];if(!n){for(let i=0;i<e;++i)a.push(i);return a}for(let i=0;i<e;++i)a.push(n(i));return a}async function TC(e){return new Promise(n=>{setTimeout(n,e)})}const SC=Object.freeze(Object.defineProperty({__proto__:null,beforeNextFrame:iC,beforeNextFrameOnce:Wh,changeColor:wC,composite:yC,createId:$W,depx:ch,getAlpha:PW,getAlphaString:MC,getGap:lC,getMargin:TF,getPadding:TF,getPreciseEventTarget:cW,getScrollParent:lW,happensIn:dC,hsl2hsv:cC,hsl2rgb:fW,hsla:yW,hsv2hsl:mC,hsv2rgb:hW,hsva:wW,indexMap:jC,parseResponsiveProp:mW,parseResponsivePropValue:uC,pxfy:Kn,repeat:zC,rgb2hsl:fC,rgb2hsv:hC,rgba:Ra,roundAlpha:sa,roundChannel:Ce,roundDeg:Kt,roundPercent:Ae,scaleColor:PC,sleep:TC,toHexString:DC,toHexaString:xC,toHslString:_C,toHslaString:WC,toHsvString:kC,toHsvaString:FC,toRgbString:$C,toRgbaString:MW,unwrapElement:sC},Symbol.toStringTag,{value:"Module"})),Pu=Pe.getAugmentedNamespace(SC);function kW(e){const n=$.ref(!!e.value);if(n.value)return $.readonly(n);const a=$.watch(e,i=>{i&&(n.value=!0,a())});return $.readonly(n)}function Mn(e){const n=$.computed(e),a=$.ref(n.value);return $.watch(n,i=>{a.value=i}),typeof e=="function"?a:{__v_isRef:!0,get value(){return a.value},set value(i){e.set(i)}}}function Mu(){return $.getCurrentInstance()!==null}const ad=typeof window<"u";let Qn,Zs;const LC=()=>{var e,n;Qn=ad?(n=(e=document)===null||e===void 0?void 0:e.fonts)===null||n===void 0?void 0:n.ready:void 0,Zs=!1,Qn!==void 0?Qn.then(()=>{Zs=!0}):Zs=!0};LC();function FW(e){if(Zs)return;let n=!1;$.onMounted(()=>{Zs||Qn==null||Qn.then(()=>{n||e()})}),$.onBeforeUnmount(()=>{n=!0})}const Js=$.ref(null);function LF(e){if(e.clientX>0||e.clientY>0)Js.value={x:e.clientX,y:e.clientY};else{const{target:n}=e;if(n instanceof Element){const{left:a,top:i,width:o,height:h}=n.getBoundingClientRect();a>0||i>0?Js.value={x:a+o/2,y:i+h/2}:Js.value={x:0,y:0}}else Js.value=null}}let eu=0,CF=!0;function CC(){if(!ad)return $.readonly($.ref(null));eu===0&&Ft("click",document,LF,!0);const e=()=>{eu+=1};return CF&&(CF=Mu())?($.onBeforeMount(e),$.onBeforeUnmount(()=>{eu-=1,eu===0&&ut("click",document,LF,!0)})):e(),$.readonly(Js)}const EC=$.ref(void 0);let tu=0;function EF(){EC.value=Date.now()}let OF=!0;function OC(e){if(!ad)return $.readonly($.ref(!1));const n=$.ref(!1);let a=null;function i(){a!==null&&window.clearTimeout(a)}function o(){i(),n.value=!0,a=window.setTimeout(()=>{n.value=!1},e)}tu===0&&Ft("click",window,EF,!0);const h=()=>{tu+=1,Ft("click",window,o,!0)};return OF&&(OF=Mu())?($.onBeforeMount(h),$.onBeforeUnmount(()=>{tu-=1,tu===0&&ut("click",window,EF,!0),ut("click",window,o,!0),i()})):h(),$.readonly(n)}let au=0;const NC=typeof window<"u"&&window.matchMedia!==void 0,Aa=$.ref(null);let Gt,bn;function pu(e){e.matches&&(Aa.value="dark")}function bu(e){e.matches&&(Aa.value="light")}function AC(){Gt=window.matchMedia("(prefers-color-scheme: dark)"),bn=window.matchMedia("(prefers-color-scheme: light)"),Gt.matches?Aa.value="dark":bn.matches?Aa.value="light":Aa.value=null,Gt.addEventListener?(Gt.addEventListener("change",pu),bn.addEventListener("change",bu)):Gt.addListener&&(Gt.addListener(pu),bn.addListener(bu))}function HC(){"removeEventListener"in Gt?(Gt.removeEventListener("change",pu),bn.removeEventListener("change",bu)):"removeListener"in Gt&&(Gt.removeListener(pu),bn.removeListener(bu)),Gt=void 0,bn=void 0}let NF=!0;function RC(){return process.env.NODE_ENV!=="test"&&!NC||process.env.NODE_ENV==="test"&&window.matchMedia===void 0||(au===0&&AC(),NF&&(NF=Mu())&&($.onBeforeMount(()=>{au+=1}),$.onBeforeUnmount(()=>{au-=1,au===0&&HC()}))),$.readonly(Aa)}function IC(e,n){return $.watch(e,a=>{a!==void 0&&(n.value=a)}),$.computed(()=>e.value===void 0?n.value:e.value)}function _W(){const e=$.ref(!1);return $.onMounted(()=>{e.value=!0}),$.readonly(e)}function VC(e,n){return $.computed(()=>{for(const a of n)if(e[a]!==void 0)return e[a];return e[n[n.length-1]]})}const WW=(typeof window>"u"?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!window.MSStream;function XC(){return WW}const qC={xs:0,s:640,m:1024,l:1280,xl:1536,"2xl":1920};function YC(e){return`(min-width: ${e}px)`}const Lr={};function hh(e=qC){if(!ad)return $.computed(()=>[]);if(typeof window.matchMedia!="function")return $.computed(()=>[]);const n=$.ref({}),a=Object.keys(e),i=(o,h)=>{o.matches?n.value[h]=!0:n.value[h]=!1};return a.forEach(o=>{const h=e[o];let v,p;Lr[h]===void 0?(v=window.matchMedia(YC(h)),v.addEventListener?v.addEventListener("change",w=>{p.forEach(b=>{b(w,o)})}):v.addListener&&v.addListener(w=>{p.forEach(b=>{b(w,o)})}),p=new Set,Lr[h]={mql:v,cbs:p}):(v=Lr[h].mql,p=Lr[h].cbs),p.add(i),v.matches&&p.forEach(w=>{w(v,o)})}),$.onBeforeUnmount(()=>{a.forEach(o=>{const{cbs:h}=Lr[e[o]];h.has(i)&&h.delete(i)})}),$.computed(()=>{const{value:o}=n;return a.filter(h=>o[h])})}function BC(e){if(!ad)return $.computed(()=>{});const n=e!==void 0?hh(e):hh();return $.computed(()=>{const{value:a}=n;if(a.length!==0)return a[a.length-1]})}function GC(e={},n){const a=$.reactive({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:i,keyup:o}=e,h=w=>{switch(w.key){case"Control":a.ctrl=!0;break;case"Meta":a.command=!0,a.win=!0;break;case"Shift":a.shift=!0;break;case"Tab":a.tab=!0;break}i!==void 0&&Object.keys(i).forEach(b=>{if(b!==w.key)return;const k=i[b];if(typeof k=="function")k(w);else{const{stop:S=!1,prevent:z=!1}=k;S&&w.stopPropagation(),z&&w.preventDefault(),k.handler(w)}})},v=w=>{switch(w.key){case"Control":a.ctrl=!1;break;case"Meta":a.command=!1,a.win=!1;break;case"Shift":a.shift=!1;break;case"Tab":a.tab=!1;break}o!==void 0&&Object.keys(o).forEach(b=>{if(b!==w.key)return;const k=o[b];if(typeof k=="function")k(w);else{const{stop:S=!1,prevent:z=!1}=k;S&&w.stopPropagation(),z&&w.preventDefault(),k.handler(w)}})},p=()=>{(n===void 0||n.value)&&(Ft("keydown",document,h),Ft("keyup",document,v)),n!==void 0&&$.watch(n,w=>{w?(Ft("keydown",document,h),Ft("keyup",document,v)):(ut("keydown",document,h),ut("keyup",document,v))})};return Mu()?($.onBeforeMount(p),$.onBeforeUnmount(()=>{(n===void 0||n.value)&&(ut("keydown",document,h),ut("keyup",document,v))})):p(),$.readonly(a)}const KC=typeof window>"u"?!1:WW||window.safari!==void 0;function QC(){return KC}const JC=Object.freeze(Object.defineProperty({__proto__:null,onFontsReady:FW,useBreakpoint:BC,useBreakpoints:hh,useClickPosition:CC,useClicked:OC,useCompitable:VC,useFalseUntilTruthy:kW,useIsIos:XC,useIsMounted:_W,useIsSafari:QC,useKeyboard:GC,useMemo:Mn,useMergedState:IC,useOsTheme:RC},Symbol.toStringTag,{value:"Module"})),xW=Pe.getAugmentedNamespace(JC);function fh(e,n,a="default"){const i=n[a];if(i===void 0)throw new Error(`[vueuc/${e}]: slot[${a}] is empty.`);return i()}function vh(e,n=!0,a=[]){return e.forEach(i=>{if(i!==null){if(typeof i!="object"){(typeof i=="string"||typeof i=="number")&&a.push($.createTextVNode(String(i)));return}if(Array.isArray(i)){vh(i,n,a);return}if(i.type===$.Fragment){if(i.children===null)return;Array.isArray(i.children)&&vh(i.children,n,a)}else i.type!==$.Comment&&a.push(i)}}),a}function AF(e,n,a="default"){const i=n[a];if(i===void 0)throw new Error(`[vueuc/${e}]: slot[${a}] is empty.`);const o=vh(i());if(o.length===1)return o[0];throw new Error(`[vueuc/${e}]: slot[${a}] should have exactly one child.`)}let Oa=null;function DW(){if(Oa===null&&(Oa=document.getElementById("v-binder-view-measurer"),Oa===null)){Oa=document.createElement("div"),Oa.id="v-binder-view-measurer";const{style:e}=Oa;e.position="fixed",e.left="0",e.right="0",e.top="0",e.bottom="0",e.pointerEvents="none",e.visibility="hidden",document.body.appendChild(Oa)}return Oa.getBoundingClientRect()}function ZC(e,n){const a=DW();return{top:n,left:e,height:0,width:0,right:a.width-e,bottom:a.height-n}}function rc(e){const n=e.getBoundingClientRect(),a=DW();return{left:n.left-a.left,top:n.top-a.top,bottom:a.height+a.top-n.bottom,right:a.width+a.left-n.right,width:n.width,height:n.height}}function UC(e){return e.nodeType===9?null:e.parentNode}function zW(e){if(e===null)return null;const n=UC(e);if(n===null)return null;if(n.nodeType===9)return document;if(n.nodeType===1){const{overflow:a,overflowX:i,overflowY:o}=getComputedStyle(n);if(/(auto|scroll|overlay)/.test(a+o+i))return n}return zW(n)}const HF=$.defineComponent({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){var n;$.provide("VBinder",(n=$.getCurrentInstance())===null||n===void 0?void 0:n.proxy);const a=$.inject("VBinder",null),i=$.ref(null),o=W=>{i.value=W,a&&e.syncTargetWithParent&&a.setTargetRef(W)};let h=[];const v=()=>{let W=i.value;for(;W=zW(W),W!==null;)h.push(W);for(const G of h)Ft("scroll",G,S,!0)},p=()=>{for(const W of h)ut("scroll",W,S,!0);h=[]},w=new Set,b=W=>{w.size===0&&v(),w.has(W)||w.add(W)},k=W=>{w.has(W)&&w.delete(W),w.size===0&&p()},S=()=>{Wh(z)},z=()=>{w.forEach(W=>W())},A=new Set,F=W=>{A.size===0&&Ft("resize",window,j),A.has(W)||A.add(W)},R=W=>{A.has(W)&&A.delete(W),A.size===0&&ut("resize",window,j)},j=()=>{A.forEach(W=>W())};return $.onBeforeUnmount(()=>{ut("resize",window,j),p()}),{targetRef:i,setTargetRef:o,addScrollListener:b,removeScrollListener:k,addResizeListener:F,removeResizeListener:R}},render(){return fh("binder",this.$slots)}}),RF=$.defineComponent({name:"Target",setup(){const{setTargetRef:e,syncTarget:n}=$.inject("VBinder");return{syncTarget:n,setTargetDirective:{mounted:e,updated:e}}},render(){const{syncTarget:e,setTargetDirective:n}=this;return e?$.withDirectives(AF("follower",this.$slots),[[n]]):AF("follower",this.$slots)}});function eE(e,n){console.error(`[vdirs/${e}]: ${n}`)}class tE{constructor(){this.elementZIndex=new Map,this.nextZIndex=2e3}get elementCount(){return this.elementZIndex.size}ensureZIndex(n,a){const{elementZIndex:i}=this;if(a!==void 0){n.style.zIndex=`${a}`,i.delete(n);return}const{nextZIndex:o}=this;i.has(n)&&i.get(n)+1===this.nextZIndex||(n.style.zIndex=`${o}`,i.set(n,o),this.nextZIndex=o+1,this.squashState())}unregister(n,a){const{elementZIndex:i}=this;i.has(n)?i.delete(n):a===void 0&&eE("z-index-manager/unregister-element","Element not found when unregistering."),this.squashState()}squashState(){const{elementCount:n}=this;n||(this.nextZIndex=2e3),this.nextZIndex-n>2500&&this.rearrange()}rearrange(){const n=Array.from(this.elementZIndex.entries());n.sort((a,i)=>a[1]-i[1]),this.nextZIndex=2e3,n.forEach(a=>{const i=a[0],o=this.nextZIndex++;`${o}`!==i.style.zIndex&&(i.style.zIndex=`${o}`)})}}const ic=new tE,Gn="@@ziContext",jW={mounted(e,n){const{value:a={}}=n,{zIndex:i,enabled:o}=a;e[Gn]={enabled:!!o,initialized:!1},o&&(ic.ensureZIndex(e,i),e[Gn].initialized=!0)},updated(e,n){const{value:a={}}=n,{zIndex:i,enabled:o}=a,h=e[Gn].enabled;o&&!h&&(ic.ensureZIndex(e,i),e[Gn].initialized=!0),e[Gn].enabled=!!o},unmounted(e,n){if(!e[Gn].initialized)return;const{value:a={}}=n,{zIndex:i}=a;ic.unregister(e,i)}},TW="@css-render/vue3-ssr";function aE(e,n){return`<style cssr-id="${e}"> ${n} </style>`}function nE(e,n,a){const{styles:i,ids:o}=a;o.has(e)||i!==null&&(o.add(e),i.push(aE(e,n)))}const rE=typeof document<"u";function nd(){if(rE)return;const e=$.inject(TW,null);if(e!==null)return{adapter:(n,a)=>nE(n,a,e),context:e}}function iE(e){const n=[],a={styles:n,ids:new Set};return e.provide(TW,a),{collect(){const i=n.join(` `);return n.length=0,i}}}const oE=Object.freeze(Object.defineProperty({__proto__:null,setup:iE,useSsrAdapter:nd},Symbol.toStringTag,{value:"Module"}));function IF(e,n){console.error(`[vueuc/${e}]: ${n}`)}function sE(e){let n=0;for(let a=0;a<e.length;++a)e[a]==="&"&&++n;return n}const SW=/\s*,(?![^(]*\))\s*/g,dE=/\s+/g;function uE(e,n){const a=[];return n.split(SW).forEach(i=>{let o=sE(i);if(o){if(o===1){e.forEach(v=>{a.push(i.replace("&",v))});return}}else{e.forEach(v=>{a.push((v&&v+" ")+i)});return}let h=[i];for(;o--;){const v=[];h.forEach(p=>{e.forEach(w=>{v.push(p.replace("&",w))})}),h=v}h.forEach(v=>a.push(v))}),a}function lE(e,n){const a=[];return n.split(SW).forEach(i=>{e.forEach(o=>{a.push((o&&o+" ")+i)})}),a}function cE(e){let n=[""];return e.forEach(a=>{a=a&&a.trim(),a&&(a.includes("&")?n=uE(n,a):n=lE(n,a))}),n.join(", ").replace(dE," ")}function VF(e){if(!e)return;const n=e.parentElement;n&&n.removeChild(e)}function $u(e,n){return(n??document.head).querySelector(`style[cssr-id="${e}"]`)}function mE(e){const n=document.createElement("style");return n.setAttribute("cssr-id",e),n}function nu(e){return e?/^\s*@(s|m)/.test(e):!1}const hE=/[A-Z]/g;function LW(e){return e.replace(hE,n=>"-"+n.toLowerCase())}function fE(e,n=" "){return typeof e=="object"&&e!==null?` { `+Object.entries(e).map(a=>n+` ${LW(a[0])}: ${a[1]};`).join(` `)+` `+n+"}":`: ${e};`}function vE(e,n,a){return typeof e=="function"?e({context:n.context,props:a}):e}function XF(e,n,a,i){if(!n)return"";const o=vE(n,a,i);if(!o)return"";if(typeof o=="string")return`${e} { ${o} }`;const h=Object.keys(o);if(h.length===0)return a.config.keepEmptyBlock?e+` { }`:"";const v=e?[e+" {"]:[];return h.forEach(p=>{const w=o[p];if(p==="raw"){v.push(` `+w+` `);return}p=LW(p),w!=null&&v.push(` ${p}${fE(w)}`)}),e&&v.push("}"),v.join(` `)}function gh(e,n,a){e&&e.forEach(i=>{if(Array.isArray(i))gh(i,n,a);else if(typeof i=="function"){const o=i(n);Array.isArray(o)?gh(o,n,a):o&&a(o)}else i&&a(i)})}function CW(e,n,a,i,o){const h=e.$;let v="";if(!h||typeof h=="string")nu(h)?v=h:n.push(h);else if(typeof h=="function"){const b=h({context:i.context,props:o});nu(b)?v=b:n.push(b)}else if(h.before&&h.before(i.context),!h.$||typeof h.$=="string")nu(h.$)?v=h.$:n.push(h.$);else if(h.$){const b=h.$({context:i.context,props:o});nu(b)?v=b:n.push(b)}const p=cE(n),w=XF(p,e.props,i,o);v?a.push(`${v} {`):w.length&&a.push(w),e.children&&gh(e.children,{context:i.context,props:o},b=>{if(typeof b=="string"){const k=XF(p,{raw:b},i,o);a.push(k)}else CW(b,n,a,i,o)}),n.pop(),v&&a.push("}"),h&&h.after&&h.after(i.context)}function gE(e,n,a){const i=[];return CW(e,[],i,n,a),i.join(` `)}function EW(e){for(var n=0,a,i=0,o=e.length;o>=4;++i,o-=4)a=e.charCodeAt(i)&255|(e.charCodeAt(++i)&255)<<8|(e.charCodeAt(++i)&255)<<16|(e.charCodeAt(++i)&255)<<24,a=(a&65535)*1540483477+((a>>>16)*59797<<16),a^=a>>>24,n=(a&65535)*1540483477+((a>>>16)*59797<<16)^(n&65535)*1540483477+((n>>>16)*59797<<16);switch(o){case 3:n^=(e.charCodeAt(i+2)&255)<<16;case 2:n^=(e.charCodeAt(i+1)&255)<<8;case 1:n^=e.charCodeAt(i)&255,n=(n&65535)*1540483477+((n>>>16)*59797<<16)}return n^=n>>>13,n=(n&65535)*1540483477+((n>>>16)*59797<<16),((n^n>>>15)>>>0).toString(36)}typeof window<"u"&&(window.__cssrContext={});function pE(e,n,a,i){const{els:o}=n;if(a===void 0)o.forEach(VF),n.els=[];else{const h=$u(a,i);h&&o.includes(h)&&(VF(h),n.els=o.filter(v=>v!==h))}}function qF(e,n){e.push(n)}function bE(e,n,a,i,o,h,v,p,w){let b;if(a===void 0&&(b=n.render(i),a=EW(b)),w){w.adapter(a,b??n.render(i));return}p===void 0&&(p=document.head);const k=$u(a,p);if(k!==null&&!h)return k;const S=k??mE(a);if(b===void 0&&(b=n.render(i)),S.textContent=b,k!==null)return k;if(v){const z=p.querySelector(`meta[name="${v}"]`);if(z)return p.insertBefore(S,z),qF(n.els,S),S}return o?p.insertBefore(S,p.querySelector("style, link")):p.appendChild(S),qF(n.els,S),S}function yE(e){return gE(this,this.instance,e)}function wE(e={}){const{id:n,ssr:a,props:i,head:o=!1,force:h=!1,anchorMetaName:v,parent:p}=e;return bE(this.instance,this,n,i,o,h,v,p,a)}function PE(e={}){const{id:n,parent:a}=e;pE(this.instance,this,n,a)}const ru=function(e,n,a,i){return{instance:e,$:n,props:a,children:i,els:[],render:yE,mount:wE,unmount:PE}},ME=function(e,n,a,i){return Array.isArray(n)?ru(e,{$:null},null,n):Array.isArray(a)?ru(e,n,null,a):Array.isArray(i)?ru(e,n,a,i):ru(e,n,a,null)};function ph(e={}){const n={c:(...a)=>ME(n,...a),use:(a,...i)=>a.install(n,...i),find:$u,context:{},config:e};return n}function $E(e,n){if(e===void 0)return!1;if(n){const{context:{ids:a}}=n;return a.has(e)}return $u(e)!==null}const kE=Object.freeze(Object.defineProperty({__proto__:null,CssRender:ph,default:ph,exists:$E,hash:EW},Symbol.toStringTag,{value:"Module"})),{c:ia}=ph(),ku="vueuc-style";function YF(e){return e&-e}class OW{constructor(n,a){this.l=n,this.min=a;const i=new Array(n+1);for(let o=0;o<n+1;++o)i[o]=0;this.ft=i}add(n,a){if(a===0)return;const{l:i,ft:o}=this;for(n+=1;n<=i;)o[n]+=a,n+=YF(n)}get(n){return this.sum(n+1)-this.sum(n)}sum(n){if(n===void 0&&(n=this.l),n<=0)return 0;const{ft:a,min:i,l:o}=this;if(n>o)throw new Error("[FinweckTree.sum]: `i` is larger than length.");let h=n*i;for(;n>0;)h+=a[n],n-=YF(n);return h}getBound(n){let a=0,i=this.l;for(;i>a;){const o=Math.floor((a+i)/2),h=this.sum(o);if(h>n){i=o;continue}else if(h<n){if(a===o)return this.sum(a+1)<=n?a+1:o;a=o}else return o}return a}}function BF(e){return typeof e=="string"?document.querySelector(e):e()||null}const bh=$.defineComponent({name:"LazyTeleport",props:{to:{type:[String,Object],default:void 0},disabled:Boolean,show:{type:Boolean,required:!0}},setup(e){return{showTeleport:kW($.toRef(e,"show")),mergedTo:$.computed(()=>{const{to:n}=e;return n??"body"})}},render(){return this.showTeleport?this.disabled?fh("lazy-teleport",this.$slots):$.h($.Teleport,{disabled:this.disabled,to:this.mergedTo},fh("lazy-teleport",this.$slots)):null}}),iu={top:"bottom",bottom:"top",left:"right",right:"left"},GF={start:"end",center:"center",end:"start"},oc={top:"height",bottom:"height",left:"width",right:"width"},FE={"bottom-start":"top left",bottom:"top center","bottom-end":"top right","top-start":"bottom left",top:"bottom center","top-end":"bottom right","right-start":"top left",right:"center left","right-end":"bottom left","left-start":"top right",left:"center right","left-end":"bottom right"},_E={"bottom-start":"bottom left",bottom:"bottom center","bottom-end":"bottom right","top-start":"top left",top:"top center","top-end":"top right","right-start":"top right",right:"center right","right-end":"bottom right","left-start":"top left",left:"center left","left-end":"bottom left"},WE={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},KF={top:!0,bottom:!1,left:!0,right:!1},QF={top:"end",bottom:"start",left:"end",right:"start"};function xE(e,n,a,i,o,h){if(!o||h)return{placement:e,top:0,left:0};const[v,p]=e.split("-");let w=p??"center",b={top:0,left:0};const k=(A,F,R)=>{let j=0,W=0;const G=a[A]-n[F]-n[A];return G>0&&i&&(R?W=KF[F]?G:-G:j=KF[F]?G:-G),{left:j,top:W}},S=v==="left"||v==="right";if(w!=="center"){const A=WE[e],F=iu[A],R=oc[A];if(a[R]>n[R]){if(n[A]+n[R]<a[R]){const j=(a[R]-n[R])/2;n[A]<j||n[F]<j?n[A]<n[F]?(w=GF[p],b=k(R,F,S)):b=k(R,A,S):w="center"}}else a[R]<n[R]&&n[F]<0&&n[A]>n[F]&&(w=GF[p])}else{const A=v==="bottom"||v==="top"?"left":"top",F=iu[A],R=oc[A],j=(a[R]-n[R])/2;(n[A]<j||n[F]<j)&&(n[A]>n[F]?(w=QF[A],b=k(R,A,S)):(w=QF[F],b=k(R,F,S)))}let z=v;return n[v]<a[oc[v]]&&n[v]<n[iu[v]]&&(z=iu[v]),{placement:w!=="center"?`${z}-${w}`:z,left:b.left,top:b.top}}function DE(e,n){return n?_E[e]:FE[e]}function zE(e,n,a,i,o,h){if(h)switch(e){case"bottom-start":return{top:`${Math.round(a.top-n.top+a.height)}px`,left:`${Math.round(a.left-n.left)}px`,transform:"translateY(-100%)"};case"bottom-end":return{top:`${Math.round(a.top-n.top+a.height)}px`,left:`${Math.round(a.left-n.left+a.width)}px`,transform:"translateX(-100%) translateY(-100%)"};case"top-start":return{top:`${Math.round(a.top-n.top)}px`,left:`${Math.round(a.left-n.left)}px`,transform:""};case"top-end":return{top:`${Math.round(a.top-n.top)}px`,left:`${Math.round(a.left-n.left+a.width)}px`,transform:"translateX(-100%)"};case"right-start":return{top:`${Math.round(a.top-n.top)}px`,left:`${Math.round(a.left-n.left+a.width)}px`,transform:"translateX(-100%)"};case"right-end":return{top:`${Math.round(a.top-n.top+a.height)}px`,left:`${Math.round(a.left-n.left+a.width)}px`,transform:"translateX(-100%) translateY(-100%)"};case"left-start":return{top:`${Math.round(a.top-n.top)}px`,left:`${Math.round(a.left-n.left)}px`,transform:""};case"left-end":return{top:`${Math.round(a.top-n.top+a.height)}px`,left:`${Math.round(a.left-n.left)}px`,transform:"translateY(-100%)"};case"top":return{top:`${Math.round(a.top-n.top)}px`,left:`${Math.round(a.left-n.left+a.width/2)}px`,transform:"translateX(-50%)"};case"right":return{top:`${Math.round(a.top-n.top+a.height/2)}px`,left:`${Math.round(a.left-n.left+a.width)}px`,transform:"translateX(-100%) translateY(-50%)"};case"left":return{top:`${Math.round(a.top-n.top+a.height/2)}px`,left:`${Math.round(a.left-n.left)}px`,transform:"translateY(-50%)"};case"bottom":default:return{top:`${Math.round(a.top-n.top+a.height)}px`,left:`${Math.round(a.left-n.left+a.width/2)}px`,transform:"translateX(-50%) translateY(-100%)"}}switch(e){case"bottom-start":return{top:`${Math.round(a.top-n.top+a.height+i)}px`,left:`${Math.round(a.left-n.left+o)}px`,transform:""};case"bottom-end":return{top:`${Math.round(a.top-n.top+a.height+i)}px`,left:`${Math.round(a.left-n.left+a.width+o)}px`,transform:"translateX(-100%)"};case"top-start":return{top:`${Math.round(a.top-n.top+i)}px`,left:`${Math.round(a.left-n.left+o)}px`,transform:"translateY(-100%)"};case"top-end":return{top:`${Math.round(a.top-n.top+i)}px`,left:`${Math.round(a.left-n.left+a.width+o)}px`,transform:"translateX(-100%) translateY(-100%)"};case"right-start":return{top:`${Math.round(a.top-n.top+i)}px`,left:`${Math.round(a.left-n.left+a.width+o)}px`,transform:""};case"right-end":return{top:`${Math.round(a.top-n.top+a.height+i)}px`,left:`${Math.round(a.left-n.left+a.width+o)}px`,transform:"translateY(-100%)"};case"left-start":return{top:`${Math.round(a.top-n.top+i)}px`,left:`${Math.round(a.left-n.left+o)}px`,transform:"translateX(-100%)"};case"left-end":return{top:`${Math.round(a.top-n.top+a.height+i)}px`,left:`${Math.round(a.left-n.left+o)}px`,transform:"translateX(-100%) translateY(-100%)"};case"top":return{top:`${Math.round(a.top-n.top+i)}px`,left:`${Math.round(a.left-n.left+a.width/2+o)}px`,transform:"translateY(-100%) translateX(-50%)"};case"right":return{top:`${Math.round(a.top-n.top+a.height/2+i)}px`,left:`${Math.round(a.left-n.left+a.width+o)}px`,transform:"translateY(-50%)"};case"left":return{top:`${Math.round(a.top-n.top+a.height/2+i)}px`,left:`${Math.round(a.left-n.left+o)}px`,transform:"translateY(-50%) translateX(-100%)"};case"bottom":default:return{top:`${Math.round(a.top-n.top+a.height+i)}px`,left:`${Math.round(a.left-n.left+a.width/2+o)}px`,transform:"translateX(-50%)"}}}const jE=ia([ia(".v-binder-follower-container",{position:"absolute",left:"0",right:"0",top:"0",height:"0",pointerEvents:"none",zIndex:"auto"}),ia(".v-binder-follower-content",{position:"absolute",zIndex:"auto"},[ia("> *",{pointerEvents:"all"})])]),JF=$.defineComponent({name:"Follower",inheritAttrs:!1,props:{show:Boolean,enabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom"},syncTrigger:{type:Array,default:["resize","scroll"]},to:[String,Object],flip:{type:Boolean,default:!0},internalShift:Boolean,x:Number,y:Number,width:String,minWidth:String,containerClass:String,teleportDisabled:Boolean,zindexable:{type:Boolean,default:!0},zIndex:Number,overlap:Boolean},setup(e){const n=$.inject("VBinder"),a=Mn(()=>e.enabled!==void 0?e.enabled:e.show),i=$.ref(null),o=$.ref(null),h=()=>{const{syncTrigger:z}=e;z.includes("scroll")&&n.addScrollListener(w),z.includes("resize")&&n.addResizeListener(w)},v=()=>{n.removeScrollListener(w),n.removeResizeListener(w)};$.onMounted(()=>{a.value&&(w(),h())});const p=nd();jE.mount({id:"vueuc/binder",head:!0,anchorMetaName:ku,ssr:p}),$.onBeforeUnmount(()=>{v()}),FW(()=>{a.value&&w()});const w=()=>{if(!a.value)return;const z=i.value;if(z===null)return;const A=n.targetRef,{x:F,y:R,overlap:j}=e,W=F!==void 0&&R!==void 0?ZC(F,R):rc(A);z.style.setProperty("--v-target-width",`${Math.round(W.width)}px`),z.style.setProperty("--v-target-height",`${Math.round(W.height)}px`);const{width:G,minWidth:K,placement:de,internalShift:Me,flip:xe}=e;z.setAttribute("v-placement",de),j?z.setAttribute("v-overlap",""):z.removeAttribute("v-overlap");const{style:C}=z;G==="target"?C.width=`${W.width}px`:G!==void 0?C.width=G:C.width="",K==="target"?C.minWidth=`${W.width}px`:K!==void 0?C.minWidth=K:C.minWidth="";const H=rc(z),Q=rc(o.value),{left:ie,top:ge,placement:We}=xE(de,W,H,Me,xe,j),I=DE(We,j),{left:q,top:ae,transform:he}=zE(We,Q,W,ge,ie,j);z.setAttribute("v-placement",We),z.style.setProperty("--v-offset-left",`${Math.round(ie)}px`),z.style.setProperty("--v-offset-top",`${Math.round(ge)}px`),z.style.transform=`translateX(${q}) translateY(${ae}) ${he}`,z.style.setProperty("--v-transform-origin",I),z.style.transformOrigin=I};$.watch(a,z=>{z?(h(),b()):v()});const b=()=>{$.nextTick().then(w).catch(z=>console.error(z))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach(z=>{$.watch($.toRef(e,z),w)}),["teleportDisabled"].forEach(z=>{$.watch($.toRef(e,z),b)}),$.watch($.toRef(e,"syncTrigger"),z=>{z.includes("resize")?n.addResizeListener(w):n.removeResizeListener(w),z.includes("scroll")?n.addScrollListener(w):n.removeScrollListener(w)});const k=_W(),S=Mn(()=>{const{to:z}=e;if(z!==void 0)return z;k.value});return{VBinder:n,mergedEnabled:a,offsetContainerRef:o,followerRef:i,mergedTo:S,syncPosition:w}},render(){return $.h(bh,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var e,n;const a=$.h("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[$.h("div",{class:"v-binder-follower-content",ref:"followerRef"},(n=(e=this.$slots).default)===null||n===void 0?void 0:n.call(e))]);return this.zindexable?$.withDirectives(a,[[jW,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):a}})}});var wn=[],TE=function(){return wn.some(function(e){return e.activeTargets.length>0})},SE=function(){return wn.some(function(e){return e.skippedTargets.length>0})},ZF="ResizeObserver loop completed with undelivered notifications.",LE=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:ZF}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=ZF),window.dispatchEvent(e)},ed;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(ed||(ed={}));var Pn=function(e){return Object.freeze(e)},CE=function(){function e(n,a){this.inlineSize=n,this.blockSize=a,Pn(this)}return e}(),NW=function(){function e(n,a,i,o){return this.x=n,this.y=a,this.width=i,this.height=o,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Pn(this)}return e.prototype.toJSON=function(){var n=this,a=n.x,i=n.y,o=n.top,h=n.right,v=n.bottom,p=n.left,w=n.width,b=n.height;return{x:a,y:i,top:o,right:h,bottom:v,left:p,width:w,height:b}},e.fromRect=function(n){return new e(n.x,n.y,n.width,n.height)},e}(),Th=function(e){return e instanceof SVGElement&&"getBBox"in e},AW=function(e){if(Th(e)){var n=e.getBBox(),a=n.width,i=n.height;return!a&&!i}var o=e,h=o.offsetWidth,v=o.offsetHeight;return!(h||v||e.getClientRects().length)},UF=function(e){var n;if(e instanceof Element)return!0;var a=(n=e==null?void 0:e.ownerDocument)===null||n===void 0?void 0:n.defaultView;return!!(a&&e instanceof a.Element)},EE=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},Us=typeof window<"u"?window:{},ou=new WeakMap,e_=/auto|scroll/,OE=/^tb|vertical/,NE=/msie|trident/i.test(Us.navigator&&Us.navigator.userAgent),ra=function(e){return parseFloat(e||"0")},Jn=function(e,n,a){return e===void 0&&(e=0),n===void 0&&(n=0),a===void 0&&(a=!1),new CE((a?n:e)||0,(a?e:n)||0)},t_=Pn({devicePixelContentBoxSize:Jn(),borderBoxSize:Jn(),contentBoxSize:Jn(),contentRect:new NW(0,0,0,0)}),HW=function(e,n){if(n===void 0&&(n=!1),ou.has(e)&&!n)return ou.get(e);if(AW(e))return ou.set(e,t_),t_;var a=getComputedStyle(e),i=Th(e)&&e.ownerSVGElement&&e.getBBox(),o=!NE&&a.boxSizing==="border-box",h=OE.test(a.writingMode||""),v=!i&&e_.test(a.overflowY||""),p=!i&&e_.test(a.overflowX||""),w=i?0:ra(a.paddingTop),b=i?0:ra(a.paddingRight),k=i?0:ra(a.paddingBottom),S=i?0:ra(a.paddingLeft),z=i?0:ra(a.borderTopWidth),A=i?0:ra(a.borderRightWidth),F=i?0:ra(a.borderBottomWidth),R=i?0:ra(a.borderLeftWidth),j=S+b,W=w+k,G=R+A,K=z+F,de=p?e.offsetHeight-K-e.clientHeight:0,Me=v?e.offsetWidth-G-e.clientWidth:0,xe=o?j+G:0,C=o?W+K:0,H=i?i.width:ra(a.width)-xe-Me,Q=i?i.height:ra(a.height)-C-de,ie=H+j+Me+G,ge=Q+W+de+K,We=Pn({devicePixelContentBoxSize:Jn(Math.round(H*devicePixelRatio),Math.round(Q*devicePixelRatio),h),borderBoxSize:Jn(ie,ge,h),contentBoxSize:Jn(H,Q,h),contentRect:new NW(S,w,H,Q)});return ou.set(e,We),We},RW=function(e,n,a){var i=HW(e,a),o=i.borderBoxSize,h=i.contentBoxSize,v=i.devicePixelContentBoxSize;switch(n){case ed.DEVICE_PIXEL_CONTENT_BOX:return v;case ed.BORDER_BOX:return o;default:return h}},AE=function(){function e(n){var a=HW(n);this.target=n,this.contentRect=a.contentRect,this.borderBoxSize=Pn([a.borderBoxSize]),this.contentBoxSize=Pn([a.contentBoxSize]),this.devicePixelContentBoxSize=Pn([a.devicePixelContentBoxSize])}return e}(),IW=function(e){if(AW(e))return 1/0;for(var n=0,a=e.parentNode;a;)n+=1,a=a.parentNode;return n},HE=function(){var e=1/0,n=[];wn.forEach(function(v){if(v.activeTargets.length!==0){var p=[];v.activeTargets.forEach(function(b){var k=new AE(b.target),S=IW(b.target);p.push(k),b.lastReportedSize=RW(b.target,b.observedBox),S<e&&(e=S)}),n.push(function(){v.callback.call(v.observer,p,v.observer)}),v.activeTargets.splice(0,v.activeTargets.length)}});for(var a=0,i=n;a<i.length;a++){var o=i[a];o()}return e},a_=function(e){wn.forEach(function(a){a.activeTargets.splice(0,a.activeTargets.length),a.skippedTargets.splice(0,a.skippedTargets.length),a.observationTargets.forEach(function(o){o.isActive()&&(IW(o.target)>e?a.activeTargets.push(o):a.skippedTargets.push(o))})})},RE=function(){var e=0;for(a_(e);TE();)e=HE(),a_(e);return SE()&&LE(),e>0},sc,VW=[],IE=function(){return VW.splice(0).forEach(function(e){return e()})},VE=function(e){if(!sc){var n=0,a=document.createTextNode(""),i={characterData:!0};new MutationObserver(function(){return IE()}).observe(a,i),sc=function(){a.textContent="".concat(n?n--:n++)}}VW.push(e),sc()},XE=function(e){VE(function(){requestAnimationFrame(e)})},fu=0,qE=function(){return!!fu},YE=250,BE={attributes:!0,characterData:!0,childList:!0,subtree:!0},n_=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],r_=function(e){return e===void 0&&(e=0),Date.now()+e},dc=!1,GE=function(){function e(){var n=this;this.stopped=!0,this.listener=function(){return n.schedule()}}return e.prototype.run=function(n){var a=this;if(n===void 0&&(n=YE),!dc){dc=!0;var i=r_(n);XE(function(){var o=!1;try{o=RE()}finally{if(dc=!1,n=i-r_(),!qE())return;o?a.run(1e3):n>0?a.run(n):a.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var n=this,a=function(){return n.observer&&n.observer.observe(document.body,BE)};document.body?a():Us.addEventListener("DOMContentLoaded",a)},e.prototype.start=function(){var n=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),n_.forEach(function(a){return Us.addEventListener(a,n.listener,!0)}))},e.prototype.stop=function(){var n=this;this.stopped||(this.observer&&this.observer.disconnect(),n_.forEach(function(a){return Us.removeEventListener(a,n.listener,!0)}),this.stopped=!0)},e}(),yh=new GE,i_=function(e){!fu&&e>0&&yh.start(),fu+=e,!fu&&yh.stop()},KE=function(e){return!Th(e)&&!EE(e)&&getComputedStyle(e).display==="inline"},QE=function(){function e(n,a){this.target=n,this.observedBox=a||ed.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var n=RW(this.target,this.observedBox,!0);return KE(this.target)&&(this.lastReportedSize=n),this.lastReportedSize.inlineSize!==n.inlineSize||this.lastReportedSize.blockSize!==n.blockSize},e}(),JE=function(){function e(n,a){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=n,this.callback=a}return e}(),su=new WeakMap,o_=function(e,n){for(var a=0;a<e.length;a+=1)if(e[a].target===n)return a;return-1},du=function(){function e(){}return e.connect=function(n,a){var i=new JE(n,a);su.set(n,i)},e.observe=function(n,a,i){var o=su.get(n),h=o.observationTargets.length===0;o_(o.observationTargets,a)<0&&(h&&wn.push(o),o.observationTargets.push(new QE(a,i&&i.box)),i_(1),yh.schedule())},e.unobserve=function(n,a){var i=su.get(n),o=o_(i.observationTargets,a),h=i.observationTargets.length===1;o>=0&&(h&&wn.splice(wn.indexOf(i),1),i.observationTargets.splice(o,1),i_(-1))},e.disconnect=function(n){var a=this,i=su.get(n);i.observationTargets.slice().forEach(function(o){return a.unobserve(n,o.target)}),i.activeTargets.splice(0,i.activeTargets.length)},e}(),ZE=function(){function e(n){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof n!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");du.connect(this,n)}return e.prototype.observe=function(n,a){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!UF(n))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");du.observe(this,n,a)},e.prototype.unobserve=function(n){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!UF(n))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");du.unobserve(this,n)},e.prototype.disconnect=function(){du.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();class UE{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new(typeof window<"u"&&window.ResizeObserver||ZE)(this.handleResize),this.elHandlersMap=new Map}handleResize(n){for(const a of n){const i=this.elHandlersMap.get(a.target);i!==void 0&&i(a)}}registerHandler(n,a){this.elHandlersMap.set(n,a),this.observer.observe(n)}unregisterHandler(n){this.elHandlersMap.has(n)&&(this.elHandlersMap.delete(n),this.observer.unobserve(n))}}const wh=new UE,yu=$.defineComponent({name:"ResizeObserver",props:{onResize:Function},setup(e){let n=!1;const a=$.getCurrentInstance().proxy;function i(o){const{onResize:h}=e;h!==void 0&&h(o)}$.onMounted(()=>{const o=a.$el;if(o===void 0){IF("resize-observer","$el does not exist.");return}if(o.nextElementSibling!==o.nextSibling&&o.nodeType===3&&o.nodeValue!==""){IF("resize-observer","$el can not be observed (it may be a text node).");return}o.nextElementSibling!==null&&(wh.registerHandler(o.nextElementSibling,i),n=!0)}),$.onBeforeUnmount(()=>{n&&wh.unregisterHandler(a.$el.nextElementSibling)})},render(){return $.renderSlot(this.$slots,"default")}});let uu;function eO(){return typeof document>"u"?!1:(uu===void 0&&("matchMedia"in window?uu=window.matchMedia("(pointer:coarse)").matches:uu=!1),uu)}let uc;function s_(){return typeof document>"u"?1:(uc===void 0&&(uc="chrome"in window?window.devicePixelRatio:1),uc)}const X