@king-one/antdv 1.0.21 → 1.0.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/cdn/index.cdn.js +7 -7
  3. package/dist/cdn/index.cdn.js.map +1 -1
  4. package/dist/cdn/index.cdn.mjs +7 -7
  5. package/dist/cdn/index.cdn.mjs.map +1 -1
  6. package/dist/es/components/form-item/component/form-item.vue.d.ts +15 -2
  7. package/dist/es/components/form-item/component/form-item.vue2.mjs +21 -6
  8. package/dist/es/components/form-item/component/form-item.vue2.mjs.map +1 -1
  9. package/dist/es/components/index.d.ts +1 -0
  10. package/dist/es/components/index.mjs +3 -0
  11. package/dist/es/components/index.mjs.map +1 -1
  12. package/dist/es/components/pro-dialog/hooks/useProDialog.d.ts +13 -0
  13. package/dist/es/components/pro-dialog/hooks/useProDialog.mjs +49 -0
  14. package/dist/es/components/pro-dialog/hooks/useProDialog.mjs.map +1 -0
  15. package/dist/es/components/pro-dialog/index.d.ts +1542 -0
  16. package/dist/es/components/pro-dialog/index.mjs +11 -0
  17. package/dist/es/components/pro-dialog/index.mjs.map +1 -0
  18. package/dist/es/components/pro-dialog/src/pro-dialog.vue.d.ts +1539 -0
  19. package/dist/es/components/pro-dialog/src/pro-dialog.vue.mjs +6 -0
  20. package/dist/es/components/pro-dialog/src/pro-dialog.vue.mjs.map +1 -0
  21. package/dist/es/components/pro-dialog/src/pro-dialog.vue2.mjs +38 -0
  22. package/dist/es/components/pro-dialog/src/pro-dialog.vue2.mjs.map +1 -0
  23. package/dist/es/components/pro-dialog/src/types.d.ts +6 -0
  24. package/dist/es/components/pro-dialog/src/types.mjs +9 -0
  25. package/dist/es/components/pro-dialog/src/types.mjs.map +1 -0
  26. package/dist/es/components/pro-dialog/style/index.mjs +3 -0
  27. package/dist/es/components/pro-dialog/style/index.mjs.map +1 -0
  28. package/dist/es/index.mjs +3 -0
  29. package/dist/es/index.mjs.map +1 -1
  30. package/dist/lib/components/form-item/component/form-item.vue.d.ts +15 -2
  31. package/dist/lib/components/form-item/component/form-item.vue2.js +20 -5
  32. package/dist/lib/components/form-item/component/form-item.vue2.js.map +1 -1
  33. package/dist/lib/components/index.d.ts +1 -0
  34. package/dist/lib/components/index.js +7 -0
  35. package/dist/lib/components/index.js.map +1 -1
  36. package/dist/lib/components/pro-dialog/hooks/useProDialog.d.ts +13 -0
  37. package/dist/lib/components/pro-dialog/hooks/useProDialog.js +52 -0
  38. package/dist/lib/components/pro-dialog/hooks/useProDialog.js.map +1 -0
  39. package/dist/lib/components/pro-dialog/index.d.ts +1542 -0
  40. package/dist/lib/components/pro-dialog/index.js +19 -0
  41. package/dist/lib/components/pro-dialog/index.js.map +1 -0
  42. package/dist/lib/components/pro-dialog/src/pro-dialog.vue.d.ts +1539 -0
  43. package/dist/lib/components/pro-dialog/src/pro-dialog.vue.js +10 -0
  44. package/dist/lib/components/pro-dialog/src/pro-dialog.vue.js.map +1 -0
  45. package/dist/lib/components/pro-dialog/src/pro-dialog.vue2.js +42 -0
  46. package/dist/lib/components/pro-dialog/src/pro-dialog.vue2.js.map +1 -0
  47. package/dist/lib/components/pro-dialog/src/types.d.ts +6 -0
  48. package/dist/lib/components/pro-dialog/src/types.js +11 -0
  49. package/dist/lib/components/pro-dialog/src/types.js.map +1 -0
  50. package/dist/lib/components/pro-dialog/style/index.js +6 -0
  51. package/dist/lib/components/pro-dialog/style/index.js.map +1 -0
  52. package/dist/lib/index.js +7 -0
  53. package/dist/lib/index.js.map +1 -1
  54. package/dist/theme-chalk/pro-dialog.css +1 -0
  55. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @king-one/antdv
2
2
 
3
+ ## 1.0.22
4
+
5
+ ### Patch Changes
6
+
7
+ - feat:增加 dialog 组件
8
+
3
9
  ## 1.0.21
4
10
 
5
11
  ### Patch Changes
@@ -1,16 +1,16 @@
1
- (function(q,i){typeof exports=="object"&&typeof module!="undefined"?i(exports,require("vue"),require("lodash-es"),require("@king-one/antdv/dist/theme-chalk/base.css"),require("@king-one/antdv/dist/theme-chalk/scroll-bar.css"),require("@king-one/antdv/dist/theme-chalk/collapse-transtion.css")):typeof define=="function"&&define.amd?define(["exports","vue","lodash-es","@king-one/antdv/dist/theme-chalk/base.css","@king-one/antdv/dist/theme-chalk/scroll-bar.css","@king-one/antdv/dist/theme-chalk/collapse-transtion.css"],i):(q=typeof globalThis!="undefined"?globalThis:q||self,i(q.KingUI={},q.Vue,q.lodashEs))})(this,function(q,i,An){"use strict";const On="K";function We(e){return e.install=t=>{const n=e;t.component(On+n.name,n)},e}function _o(e,t){return{install:n=>{n.directive(t,e)},directive:e}}const Mt={model:{type:Object},rules:{type:Object}},Hn={class:"king-form"},Fn=i.createElementVNode("div",null,"\u4F1F\u5927\u7684\u597D\u6B4C",-1);var Rn=i.defineComponent({__name:"form",props:Mt,setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock("form",Hn,[Fn,i.renderSlot(t.$slots,"default")]))}});const Ct=We(Rn);let Le=[];const zt=new WeakMap;function Wn(){Le.forEach(e=>e(...zt.get(e))),Le=[]}function kt(e,...t){zt.set(e,t),!Le.includes(e)&&Le.push(e)===1&&requestAnimationFrame(Wn)}let ot=[],it=[];function Ln(){ot.forEach((e,t)=>e(...it[t])),ot=[],it=[]}function Vo(e,...t){ot.push(e)===1&&requestAnimationFrame(Ln),it.push(t)}function Pn(e){return e.nodeType===9?null:e.parentNode}function Nn(e){if(e===null)return null;const t=Pn(e);if(t===null)return null;if(t.nodeType===9)return document.documentElement;if(t.nodeType===1){const{overflow:n,overflowX:r,overflowY:o}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(n+o+r))return t}return Nn(t)}function jo(e){return typeof e=="string"?document.querySelector(e):typeof e=="function"?e():e}function Xo(e,t){let{target:n}=e;for(;n;){if(n.dataset&&n.dataset[t]!==void 0)return!0;n=n.parentElement}return!1}function Dn(e){return e.composedPath()[0]||null}function _n(e){if(typeof e=="number")return{"":e.toString()};const t={};return e.split(/ +/).forEach(n=>{if(n==="")return;const[r,o]=n.split(":");o===void 0?t[""]=r:t[r]=o}),t}function qo(e,t){var n;if(e==null)return;const r=_n(e);if(t===void 0)return r[""];if(typeof t=="string")return(n=r[t])!==null&&n!==void 0?n:r[""];if(Array.isArray(t)){for(let o=t.length-1;o>=0;--o){const s=t[o];if(s in r)return r[s]}return r[""]}else{let o,s=-1;return Object.keys(r).forEach(l=>{const d=Number(l);!Number.isNaN(d)&&t>=d&&d>=s&&(s=d,o=r[l])}),o}}function Bt(e){return typeof e=="string"?e.endsWith("px")?Number(e.slice(0,e.length-2)):Number(e):e}function Ce(e){if(e!=null)return typeof e=="number"?`${e}px`:e.endsWith("px")?e:`${e}px`}function Yo(e,t){const n=e.trim().split(/\s+/g),r={top:n[0]};switch(n.length){case 1:r.right=n[0],r.bottom=n[0],r.left=n[0];break;case 2:r.right=n[1],r.left=n[1],r.bottom=n[0];break;case 3:r.right=n[1],r.bottom=n[2],r.left=n[1];break;case 4:r.right=n[1],r.bottom=n[2],r.left=n[3];break;default:throw new Error("[seemly/getMargin]:"+e+" is not a valid value.")}return t===void 0?r:r[t]}function Uo(e,t){const[n,r]=e.split(" ");return t?t==="row"?n:r:{row:n,col:r||n}}var It={black:"#000",silver:"#C0C0C0",gray:"#808080",white:"#FFF",maroon:"#800000",red:"#F00",purple:"#800080",fuchsia:"#F0F",green:"#008000",lime:"#0F0",olive:"#808000",yellow:"#FF0",navy:"#000080",blue:"#00F",teal:"#008080",aqua:"#0FF",transparent:"#0000"};function Zo(e,t,n){t/=100,n/=100;const r=t*Math.min(n,1-n)+n;return[e,r?(2-2*n/r)*100:0,r*100]}function Ko(e,t,n){t/=100,n/=100;const r=n-n*t/2,o=Math.min(r,1-r);return[e,o?(n-r)/o*100:0,r*100]}function Go(e,t,n){t/=100,n/=100;let r=(o,s=(o+e/60)%6)=>n-n*t*Math.max(Math.min(s,4-s,1),0);return[r(5)*255,r(3)*255,r(1)*255]}function Jo(e,t,n){e/=255,t/=255,n/=255;let r=Math.max(e,t,n),o=r-Math.min(e,t,n),s=o&&(r==e?(t-n)/o:r==t?2+(n-e)/o:4+(e-t)/o);return[60*(s<0?s+6:s),r&&o/r*100,r*100]}function Qo(e,t,n){e/=255,t/=255,n/=255;let r=Math.max(e,t,n),o=r-Math.min(e,t,n),s=1-Math.abs(r+r-o-1),l=o&&(r==e?(t-n)/o:r==t?2+(n-e)/o:4+(e-t)/o);return[60*(l<0?l+6:l),s?o/s*100:0,(r+r-o)*50]}function ei(e,t,n){t/=100,n/=100;let r=t*Math.min(n,1-n),o=(s,l=(s+e/30)%12)=>n-r*Math.max(Math.min(l-3,9-l,1),-1);return[o(0)*255,o(8)*255,o(4)*255]}const ee="^\\s*",te="\\s*$",ae="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))%\\s*",Z="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",he="([0-9A-Fa-f])",pe="([0-9A-Fa-f]{2})",Vn=new RegExp(`${ee}hsl\\s*\\(${Z},${ae},${ae}\\)${te}`),jn=new RegExp(`${ee}hsv\\s*\\(${Z},${ae},${ae}\\)${te}`),Xn=new RegExp(`${ee}hsla\\s*\\(${Z},${ae},${ae},${Z}\\)${te}`),qn=new RegExp(`${ee}hsva\\s*\\(${Z},${ae},${ae},${Z}\\)${te}`),Yn=new RegExp(`${ee}rgb\\s*\\(${Z},${Z},${Z}\\)${te}`),Un=new RegExp(`${ee}rgba\\s*\\(${Z},${Z},${Z},${Z}\\)${te}`),st=new RegExp(`${ee}#${he}${he}${he}${te}`),lt=new RegExp(`${ee}#${pe}${pe}${pe}${te}`),at=new RegExp(`${ee}#${he}${he}${he}${he}${te}`),ut=new RegExp(`${ee}#${pe}${pe}${pe}${pe}${te}`);function Y(e){return parseInt(e,16)}function ti(e){try{let t;if(t=Xn.exec(e))return[ne(t[1]),_(t[5]),_(t[9]),se(t[13])];if(t=Vn.exec(e))return[ne(t[1]),_(t[5]),_(t[9]),1];throw new Error(`[seemly/hsla]: Invalid color value ${e}.`)}catch(t){throw t}}function ni(e){try{let t;if(t=qn.exec(e))return[ne(t[1]),_(t[5]),_(t[9]),se(t[13])];if(t=jn.exec(e))return[ne(t[1]),_(t[5]),_(t[9]),1];throw new Error(`[seemly/hsva]: Invalid color value ${e}.`)}catch(t){throw t}}function me(e){try{let t;if(t=lt.exec(e))return[Y(t[1]),Y(t[2]),Y(t[3]),1];if(t=Yn.exec(e))return[L(t[1]),L(t[5]),L(t[9]),1];if(t=Un.exec(e))return[L(t[1]),L(t[5]),L(t[9]),se(t[13])];if(t=st.exec(e))return[Y(t[1]+t[1]),Y(t[2]+t[2]),Y(t[3]+t[3]),1];if(t=ut.exec(e))return[Y(t[1]),Y(t[2]),Y(t[3]),se(Y(t[4])/255)];if(t=at.exec(e))return[Y(t[1]+t[1]),Y(t[2]+t[2]),Y(t[3]+t[3]),se(Y(t[4]+t[4])/255)];if(e in It)return me(It[e]);throw new Error(`[seemly/rgba]: Invalid color value ${e}.`)}catch(t){throw t}}function Zn(e){return e>1?1:e<0?0:e}function Kn(e,t,n){return`rgb(${L(e)}, ${L(t)}, ${L(n)})`}function dt(e,t,n,r){return`rgba(${L(e)}, ${L(t)}, ${L(n)}, ${Zn(r)})`}function ft(e,t,n,r,o){return L((e*t*(1-r)+n*r)/o)}function ri(e,t){Array.isArray(e)||(e=me(e)),Array.isArray(t)||(t=me(t));const n=e[3],r=t[3],o=se(n+r-n*r);return dt(ft(e[0],n,t[0],r,o),ft(e[1],n,t[1],r,o),ft(e[2],n,t[2],r,o),o)}function oi(e,t){const[n,r,o,s=1]=Array.isArray(e)?e:me(e);return t.alpha?dt(n,r,o,t.alpha):dt(n,r,o,s)}function ii(e,t){const[n,r,o,s=1]=Array.isArray(e)?e:me(e),{lightness:l=1,alpha:d=1}=t;return Jn([n*l,r*l,o*l,s*d])}function Gn(e){var t;return(t=(Array.isArray(e)?e:me(e))[3])!==null&&t!==void 0?t:1}function si(e){return`${Gn(e)}`}function se(e){const t=Math.round(Number(e)*100)/100;return t>1?1:t<0?0:t}function ne(e){const t=Math.round(Number(e));return t>=360||t<0?0:t}function L(e){const t=Math.round(Number(e));return t>255?255:t<0?0:t}function _(e){const t=Math.round(Number(e));return t>100?100:t<0?0:t}function li(e){const[t,n,r]=Array.isArray(e)?e:me(e);return Kn(t,n,r)}function Jn(e){const[t,n,r]=e;return 3 in e?`rgba(${L(t)}, ${L(n)}, ${L(r)}, ${se(e[3])})`:`rgba(${L(t)}, ${L(n)}, ${L(r)}, 1)`}function ai(e){return`hsv(${ne(e[0])}, ${_(e[1])}%, ${_(e[2])}%)`}function ui(e){const[t,n,r]=e;return 3 in e?`hsva(${ne(t)}, ${_(n)}%, ${_(r)}%, ${se(e[3])})`:`hsva(${ne(t)}, ${_(n)}%, ${_(r)}%, 1)`}function di(e){return`hsl(${ne(e[0])}, ${_(e[1])}%, ${_(e[2])}%)`}function fi(e){const[t,n,r]=e;return 3 in e?`hsla(${ne(t)}, ${_(n)}%, ${_(r)}%, ${se(e[3])})`:`hsla(${ne(t)}, ${_(n)}%, ${_(r)}%, 1)`}function ci(e){if(typeof e=="string"){let r;if(r=lt.exec(e))return`${r[0]}FF`;if(r=ut.exec(e))return r[0];if(r=st.exec(e))return`#${r[1]}${r[1]}${r[2]}${r[2]}${r[3]}${r[3]}FF`;if(r=at.exec(e))return`#${r[1]}${r[1]}${r[2]}${r[2]}${r[3]}${r[3]}${r[4]}${r[4]}`;throw new Error(`[seemly/toHexString]: Invalid hex value ${e}.`)}const t=`#${e.slice(0,3).map(r=>L(r).toString(16).toUpperCase().padStart(2,"0")).join("")}`,n=e.length===3?"FF":L(e[3]*255).toString(16).padStart(2,"0").toUpperCase();return t+n}function hi(e){if(typeof e=="string"){let t;if(t=lt.exec(e))return t[0];if(t=ut.exec(e))return t[0].slice(0,7);if(t=st.exec(e)||at.exec(e))return`#${t[1]}${t[1]}${t[2]}${t[2]}${t[3]}${t[3]}`;throw new Error(`[seemly/toHexString]: Invalid hex value ${e}.`)}return`#${e.slice(0,3).map(t=>L(t).toString(16).toUpperCase().padStart(2,"0")).join("")}`}function Qn(e=8){return Math.random().toString(16).slice(2,2+e)}function pi(e,t){const n=[];for(let r=0;r<e;++r)n.push(t);return n}function mi(e,t){const n=[];if(!t){for(let r=0;r<e;++r)n.push(r);return n}for(let r=0;r<e;++r)n.push(t(r));return n}async function vi(e){return new Promise(t=>{setTimeout(t,e)})}function Pe(e){return e.composedPath()[0]}const er={mousemoveoutside:new WeakMap,clickoutside:new WeakMap};function tr(e,t,n){if(e==="mousemoveoutside"){const r=o=>{t.contains(Pe(o))||n(o)};return{mousemove:r,touchstart:r}}else if(e==="clickoutside"){let r=!1;const o=l=>{r=!t.contains(Pe(l))},s=l=>{r&&(t.contains(Pe(l))||n(l))};return{mousedown:o,mouseup:s,touchstart:o,touchend:s}}return console.error(`[evtd/create-trap-handler]: name \`${e}\` is invalid. This could be a bug of evtd.`),{}}function At(e,t,n){const r=er[e];let o=r.get(t);o===void 0&&r.set(t,o=new WeakMap);let s=o.get(n);return s===void 0&&o.set(n,s=tr(e,t,n)),s}function nr(e,t,n,r){if(e==="mousemoveoutside"||e==="clickoutside"){const o=At(e,t,n);return Object.keys(o).forEach(s=>{D(s,document,o[s],r)}),!0}return!1}function rr(e,t,n,r){if(e==="mousemoveoutside"||e==="clickoutside"){const o=At(e,t,n);return Object.keys(o).forEach(s=>{R(s,document,o[s],r)}),!0}return!1}function or(){if(typeof window=="undefined")return{on:()=>{},off:()=>{}};const e=new WeakMap,t=new WeakMap;function n(){e.set(this,!0)}function r(){e.set(this,!0),t.set(this,!0)}function o(p,m,T){const C=p[m];return p[m]=function(){return T.apply(p,arguments),C.apply(p,arguments)},p}function s(p,m){p[m]=Event.prototype[m]}const l=new WeakMap,d=Object.getOwnPropertyDescriptor(Event.prototype,"currentTarget");function a(){var p;return(p=l.get(this))!==null&&p!==void 0?p:null}function u(p,m){d!==void 0&&Object.defineProperty(p,"currentTarget",{configurable:!0,enumerable:!0,get:m!=null?m:d.get})}const h={bubble:{},capture:{}},w={};function f(){const p=function(m){const{type:T,eventPhase:C,bubbles:I}=m,W=Pe(m);if(C===2)return;const v=C===1?"capture":"bubble";let b=W;const S=[];for(;b===null&&(b=window),S.push(b),b!==window;)b=b.parentNode||null;const z=h.capture[T],O=h.bubble[T];if(o(m,"stopPropagation",n),o(m,"stopImmediatePropagation",r),u(m,a),v==="capture"){if(z===void 0)return;for(let H=S.length-1;H>=0&&!e.has(m);--H){const A=S[H],F=z.get(A);if(F!==void 0){l.set(m,A);for(const V of F){if(t.has(m))break;V(m)}}if(H===0&&!I&&O!==void 0){const V=O.get(A);if(V!==void 0)for(const fe of V){if(t.has(m))break;fe(m)}}}}else if(v==="bubble"){if(O===void 0)return;for(let H=0;H<S.length&&!e.has(m);++H){const A=S[H],F=O.get(A);if(F!==void 0){l.set(m,A);for(const V of F){if(t.has(m))break;V(m)}}}}s(m,"stopPropagation"),s(m,"stopImmediatePropagation"),u(m)};return p.displayName="evtdUnifiedHandler",p}function x(){const p=function(m){const{type:T,eventPhase:C}=m;if(C!==2)return;const I=w[T];I!==void 0&&I.forEach(W=>W(m))};return p.displayName="evtdUnifiedWindowEventHandler",p}const $=f(),E=x();function g(p,m){const T=h[p];return T[m]===void 0&&(T[m]=new Map,window.addEventListener(m,$,p==="capture")),T[m]}function c(p){return w[p]===void 0&&(w[p]=new Set,window.addEventListener(p,E)),w[p]}function M(p,m){let T=p.get(m);return T===void 0&&p.set(m,T=new Set),T}function k(p,m,T,C){const I=h[m][T];if(I!==void 0){const W=I.get(p);if(W!==void 0&&W.has(C))return!0}return!1}function P(p,m){const T=w[p];return!!(T!==void 0&&T.has(m))}function K(p,m,T,C){let I;if(typeof C=="object"&&C.once===!0?I=z=>{j(p,m,I,C),T(z)}:I=T,nr(p,m,I,C))return;const v=C===!0||typeof C=="object"&&C.capture===!0?"capture":"bubble",b=g(v,p),S=M(b,m);if(S.has(I)||S.add(I),m===window){const z=c(p);z.has(I)||z.add(I)}}function j(p,m,T,C){if(rr(p,m,T,C))return;const W=C===!0||typeof C=="object"&&C.capture===!0,v=W?"capture":"bubble",b=g(v,p),S=M(b,m);if(m===window&&!k(m,W?"bubble":"capture",p,T)&&P(p,T)){const O=w[p];O.delete(T),O.size===0&&(window.removeEventListener(p,E),w[p]=void 0)}S.has(T)&&S.delete(T),S.size===0&&b.delete(m),b.size===0&&(window.removeEventListener(p,$,v==="capture"),h[v][p]=void 0)}return{on:K,off:j}}const{on:D,off:R}=or();function ct(e,t,n="default"){const r=t[n];if(r===void 0)throw new Error(`[vueuc/${e}]: slot[${n}] is empty.`);return r()}function ht(e,t=!0,n=[]){return e.forEach(r=>{if(r!==null){if(typeof r!="object"){(typeof r=="string"||typeof r=="number")&&n.push(i.createTextVNode(String(r)));return}if(Array.isArray(r)){ht(r,t,n);return}if(r.type===i.Fragment){if(r.children===null)return;Array.isArray(r.children)&&ht(r.children,t,n)}else r.type!==i.Comment&&n.push(r)}}),n}function Ot(e,t,n="default"){const r=t[n];if(r===void 0)throw new Error(`[vueuc/${e}]: slot[${n}] is empty.`);const o=ht(r());if(o.length===1)return o[0];throw new Error(`[vueuc/${e}]: slot[${n}] should have exactly one child.`)}let ue=null;function Ht(){if(ue===null&&(ue=document.getElementById("v-binder-view-measurer"),ue===null)){ue=document.createElement("div"),ue.id="v-binder-view-measurer";const{style:e}=ue;e.position="fixed",e.left="0",e.right="0",e.top="0",e.bottom="0",e.pointerEvents="none",e.visibility="hidden",document.body.appendChild(ue)}return ue.getBoundingClientRect()}function ir(e,t){const n=Ht();return{top:t,left:e,height:0,width:0,right:n.width-e,bottom:n.height-t}}function pt(e){const t=e.getBoundingClientRect(),n=Ht();return{left:t.left-n.left,top:t.top-n.top,bottom:n.height+n.top-t.bottom,right:n.width+n.left-t.right,width:t.width,height:t.height}}function sr(e){return e.nodeType===9?null:e.parentNode}function Ft(e){if(e===null)return null;const t=sr(e);if(t===null)return null;if(t.nodeType===9)return document;if(t.nodeType===1){const{overflow:n,overflowX:r,overflowY:o}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(n+o+r))return t}return Ft(t)}const gi=i.defineComponent({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){var t;i.provide("VBinder",(t=i.getCurrentInstance())===null||t===void 0?void 0:t.proxy);const n=i.inject("VBinder",null),r=i.ref(null),o=c=>{r.value=c,n&&e.syncTargetWithParent&&n.setTargetRef(c)};let s=[];const l=()=>{let c=r.value;for(;c=Ft(c),c!==null;)s.push(c);for(const M of s)D("scroll",M,w,!0)},d=()=>{for(const c of s)R("scroll",c,w,!0);s=[]},a=new Set,u=c=>{a.size===0&&l(),a.has(c)||a.add(c)},h=c=>{a.has(c)&&a.delete(c),a.size===0&&d()},w=()=>{kt(f)},f=()=>{a.forEach(c=>c())},x=new Set,$=c=>{x.size===0&&D("resize",window,g),x.has(c)||x.add(c)},E=c=>{x.has(c)&&x.delete(c),x.size===0&&R("resize",window,g)},g=()=>{x.forEach(c=>c())};return i.onBeforeUnmount(()=>{R("resize",window,g),d()}),{targetRef:r,setTargetRef:o,addScrollListener:u,removeScrollListener:h,addResizeListener:$,removeResizeListener:E}},render(){return ct("binder",this.$slots)}});var bi=i.defineComponent({name:"Target",setup(){const{setTargetRef:e,syncTarget:t}=i.inject("VBinder");return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){const{syncTarget:e,setTargetDirective:t}=this;return e?i.withDirectives(Ot("follower",this.$slots),[[t]]):Ot("follower",this.$slots)}});const xe="@@mmoContext",wi={mounted(e,{value:t}){e[xe]={handler:void 0},typeof t=="function"&&(e[xe].handler=t,D("mousemoveoutside",e,t))},updated(e,{value:t}){const n=e[xe];typeof t=="function"?n.handler?n.handler!==t&&(R("mousemoveoutside",e,n.handler),n.handler=t,D("mousemoveoutside",e,t)):(e[xe].handler=t,D("mousemoveoutside",e,t)):n.handler&&(R("mousemoveoutside",e,n.handler),n.handler=void 0)},unmounted(e){const{handler:t}=e[xe];t&&R("mousemoveoutside",e,t),e[xe].handler=void 0}},ye="@@coContext",xi={mounted(e,{value:t,modifiers:n}){e[ye]={handler:void 0},typeof t=="function"&&(e[ye].handler=t,D("clickoutside",e,t,{capture:n.capture}))},updated(e,{value:t,modifiers:n}){const r=e[ye];typeof t=="function"?r.handler?r.handler!==t&&(R("clickoutside",e,r.handler,{capture:n.capture}),r.handler=t,D("clickoutside",e,t,{capture:n.capture})):(e[ye].handler=t,D("clickoutside",e,t,{capture:n.capture})):r.handler&&(R("clickoutside",e,r.handler,{capture:n.capture}),r.handler=void 0)},unmounted(e,{modifiers:t}){const{handler:n}=e[ye];n&&R("clickoutside",e,n,{capture:t.capture}),e[ye].handler=void 0}},Rt=new Set;function yi(e,t){const n=`[vdirs/${e}]: ${t}`;Rt.has(n)||Rt.add(n)}function lr(e,t){console.error(`[vdirs/${e}]: ${t}`)}class ar{constructor(){this.elementZIndex=new Map,this.nextZIndex=2e3}get elementCount(){return this.elementZIndex.size}ensureZIndex(t,n){const{elementZIndex:r}=this;if(n!==void 0){t.style.zIndex=`${n}`,r.delete(t);return}const{nextZIndex:o}=this;r.has(t)&&r.get(t)+1===this.nextZIndex||(t.style.zIndex=`${o}`,r.set(t,o),this.nextZIndex=o+1,this.squashState())}unregister(t,n){const{elementZIndex:r}=this;r.has(t)?r.delete(t):n===void 0&&lr("z-index-manager/unregister-element","Element not found when unregistering."),this.squashState()}squashState(){const{elementCount:t}=this;t||(this.nextZIndex=2e3),this.nextZIndex-t>2500&&this.rearrange()}rearrange(){const t=Array.from(this.elementZIndex.entries());t.sort((n,r)=>n[1]-r[1]),this.nextZIndex=2e3,t.forEach(n=>{const r=n[0],o=this.nextZIndex++;`${o}`!==r.style.zIndex&&(r.style.zIndex=`${o}`)})}}var mt=new ar;const $e="@@ziContext",ur={mounted(e,t){const{value:n={}}=t,{zIndex:r,enabled:o}=n;e[$e]={enabled:!!o,initialized:!1},o&&(mt.ensureZIndex(e,r),e[$e].initialized=!0)},updated(e,t){const{value:n={}}=t,{zIndex:r,enabled:o}=n,s=e[$e].enabled;o&&!s&&(mt.ensureZIndex(e,r),e[$e].initialized=!0),e[$e].enabled=!!o},unmounted(e,t){if(!e[$e].initialized)return;const{value:n={}}=t,{zIndex:r}=n;mt.unregister(e,r)}};function dr(e){const t=i.ref(!!e.value);if(t.value)return i.readonly(t);const n=i.watch(e,r=>{r&&(t.value=!0,n())});return i.readonly(t)}function Ee(e){const t=i.computed(e),n=i.ref(t.value);return i.watch(t,r=>{n.value=r}),typeof e=="function"?n:{__v_isRef:!0,get value(){return n.value},set value(r){e.set(r)}}}function Ne(){return i.getCurrentInstance()!==null}const ze=typeof window!="undefined";let Te,ke;(()=>{var e,t;Te=ze?(t=(e=document)===null||e===void 0?void 0:e.fonts)===null||t===void 0?void 0:t.ready:void 0,ke=!1,Te!==void 0?Te.then(()=>{ke=!0}):ke=!0})();function fr(e){if(ke)return;let t=!1;i.onMounted(()=>{ke||Te==null||Te.then(()=>{t||e()})}),i.onBeforeUnmount(()=>{t=!0})}const Be=i.ref(null);function Wt(e){if(e.clientX>0||e.clientY>0)Be.value={x:e.clientX,y:e.clientY};else{const{target:t}=e;if(t instanceof Element){const{left:n,top:r,width:o,height:s}=t.getBoundingClientRect();n>0||r>0?Be.value={x:n+o/2,y:r+s/2}:Be.value={x:0,y:0}}else Be.value=null}}let De=0,Lt=!0;function Ei(){if(!ze)return i.readonly(i.ref(null));De===0&&D("click",document,Wt,!0);const e=()=>{De+=1};return Lt&&(Lt=Ne())?(i.onBeforeMount(e),i.onBeforeUnmount(()=>{De-=1,De===0&&R("click",document,Wt,!0)})):e(),i.readonly(Be)}const cr=i.ref(void 0);let _e=0;function Pt(){cr.value=Date.now()}let Nt=!0;function Ti(e){if(!ze)return i.readonly(i.ref(!1));const t=i.ref(!1);let n=null;function r(){n!==null&&window.clearTimeout(n)}function o(){r(),t.value=!0,n=window.setTimeout(()=>{t.value=!1},e)}_e===0&&D("click",window,Pt,!0);const s=()=>{_e+=1,D("click",window,o,!0)};return Nt&&(Nt=Ne())?(i.onBeforeMount(s),i.onBeforeUnmount(()=>{_e-=1,_e===0&&R("click",window,Pt,!0),R("click",window,o,!0),r()})):s(),i.readonly(t)}let Ve=0;const hr=typeof window!="undefined"&&window.matchMedia!==void 0,de=i.ref(null);let J,ve;function je(e){e.matches&&(de.value="dark")}function Xe(e){e.matches&&(de.value="light")}function pr(){J=window.matchMedia("(prefers-color-scheme: dark)"),ve=window.matchMedia("(prefers-color-scheme: light)"),J.matches?de.value="dark":ve.matches?de.value="light":de.value=null,J.addEventListener?(J.addEventListener("change",je),ve.addEventListener("change",Xe)):J.addListener&&(J.addListener(je),ve.addListener(Xe))}function mr(){"removeEventListener"in J?(J.removeEventListener("change",je),ve.removeEventListener("change",Xe)):"removeListener"in J&&(J.removeListener(je),ve.removeListener(Xe)),J=void 0,ve=void 0}let Dt=!0;function Si(){return process.env.NODE_ENV!=="test"&&!hr||process.env.NODE_ENV==="test"&&window.matchMedia===void 0||(Ve===0&&pr(),Dt&&(Dt=Ne())&&(i.onBeforeMount(()=>{Ve+=1}),i.onBeforeUnmount(()=>{Ve-=1,Ve===0&&mr()}))),i.readonly(de)}function Mi(e,t){return i.watch(e,n=>{n!==void 0&&(t.value=n)}),i.computed(()=>e.value===void 0?t.value:e.value)}function vr(){const e=i.ref(!1);return i.onMounted(()=>{e.value=!0}),i.readonly(e)}function Ci(e,t){return i.computed(()=>{for(const n of t)if(e[n]!==void 0)return e[n];return e[t[t.length-1]]})}const _t=(typeof window=="undefined"?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!window.MSStream;function zi(){return _t}const gr={xs:0,s:640,m:1024,l:1280,xl:1536,"2xl":1920};function br(e){return`(min-width: ${e}px)`}const Ie={};function Vt(e=gr){if(!ze)return i.computed(()=>[]);if(typeof window.matchMedia!="function")return i.computed(()=>[]);const t=i.ref({}),n=Object.keys(e),r=(o,s)=>{o.matches?t.value[s]=!0:t.value[s]=!1};return n.forEach(o=>{const s=e[o];let l,d;Ie[s]===void 0?(l=window.matchMedia(br(s)),l.addEventListener?l.addEventListener("change",a=>{d.forEach(u=>{u(a,o)})}):l.addListener&&l.addListener(a=>{d.forEach(u=>{u(a,o)})}),d=new Set,Ie[s]={mql:l,cbs:d}):(l=Ie[s].mql,d=Ie[s].cbs),d.add(r),l.matches&&d.forEach(a=>{a(l,o)})}),i.onBeforeUnmount(()=>{n.forEach(o=>{const{cbs:s}=Ie[e[o]];s.has(r)&&s.delete(r)})}),i.computed(()=>{const{value:o}=t;return n.filter(s=>o[s])})}function ki(e){if(!ze)return i.computed(()=>{});const t=e!==void 0?Vt(e):Vt();return i.computed(()=>{const{value:n}=t;if(n.length!==0)return n[n.length-1]})}function Bi(e={},t){const n=i.reactive({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:r,keyup:o}=e,s=a=>{switch(a.key){case"Control":n.ctrl=!0;break;case"Meta":n.command=!0,n.win=!0;break;case"Shift":n.shift=!0;break;case"Tab":n.tab=!0;break}r!==void 0&&Object.keys(r).forEach(u=>{if(u!==a.key)return;const h=r[u];if(typeof h=="function")h(a);else{const{stop:w=!1,prevent:f=!1}=h;w&&a.stopPropagation(),f&&a.preventDefault(),h.handler(a)}})},l=a=>{switch(a.key){case"Control":n.ctrl=!1;break;case"Meta":n.command=!1,n.win=!1;break;case"Shift":n.shift=!1;break;case"Tab":n.tab=!1;break}o!==void 0&&Object.keys(o).forEach(u=>{if(u!==a.key)return;const h=o[u];if(typeof h=="function")h(a);else{const{stop:w=!1,prevent:f=!1}=h;w&&a.stopPropagation(),f&&a.preventDefault(),h.handler(a)}})},d=()=>{(t===void 0||t.value)&&(D("keydown",document,s),D("keyup",document,l)),t!==void 0&&i.watch(t,a=>{a?(D("keydown",document,s),D("keyup",document,l)):(R("keydown",document,s),R("keyup",document,l))})};return Ne()?(i.onBeforeMount(d),i.onBeforeUnmount(()=>{(t===void 0||t.value)&&(R("keydown",document,s),R("keyup",document,l))})):d(),i.readonly(n)}const wr=typeof window=="undefined"?!1:_t||window.safari!==void 0;function Ii(){return wr}const jt="@css-render/vue3-ssr";function xr(e,t){return`<style cssr-id="${e}">
1
+ (function(V,i){typeof exports=="object"&&typeof module!="undefined"?i(exports,require("vue"),require("lodash-es"),require("@king-one/antdv/dist/theme-chalk/base.css"),require("@king-one/antdv/dist/theme-chalk/scroll-bar.css"),require("@king-one/antdv/dist/theme-chalk/collapse-transtion.css"),require("ant-design-vue"),require("@king-one/antdv/dist/theme-chalk/pro-dialog.css")):typeof define=="function"&&define.amd?define(["exports","vue","lodash-es","@king-one/antdv/dist/theme-chalk/base.css","@king-one/antdv/dist/theme-chalk/scroll-bar.css","@king-one/antdv/dist/theme-chalk/collapse-transtion.css","ant-design-vue","@king-one/antdv/dist/theme-chalk/pro-dialog.css"],i):(V=typeof globalThis!="undefined"?globalThis:V||self,i(V.KingUI={},V.Vue,V.lodashEs,null,null,null,V.antDesignVue))})(this,function(V,i,On,Uo,Zo,Ko,Hn){"use strict";const Fn="K";function Ce(e){return e.install=t=>{const n=e;t.component(Fn+n.name,n)},e}function Go(e,t){return{install:n=>{n.directive(t,e)},directive:e}}const Mt={model:{type:Object},rules:{type:Object}},Rn={class:"king-form"},Pn=i.createElementVNode("div",null,"\u4F1F\u5927\u7684\u597D\u6B4C",-1);var Wn=i.defineComponent({__name:"form",props:Mt,setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock("form",Rn,[Pn,i.renderSlot(t.$slots,"default")]))}});const Ct=Ce(Wn);let We=[];const kt=new WeakMap;function Ln(){We.forEach(e=>e(...kt.get(e))),We=[]}function zt(e,...t){kt.set(e,t),!We.includes(e)&&We.push(e)===1&&requestAnimationFrame(Ln)}let ot=[],it=[];function Dn(){ot.forEach((e,t)=>e(...it[t])),ot=[],it=[]}function Jo(e,...t){ot.push(e)===1&&requestAnimationFrame(Dn),it.push(t)}function Nn(e){return e.nodeType===9?null:e.parentNode}function _n(e){if(e===null)return null;const t=Nn(e);if(t===null)return null;if(t.nodeType===9)return document.documentElement;if(t.nodeType===1){const{overflow:n,overflowX:r,overflowY:o}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(n+o+r))return t}return _n(t)}function Qo(e){return typeof e=="string"?document.querySelector(e):typeof e=="function"?e():e}function ei(e,t){let{target:n}=e;for(;n;){if(n.dataset&&n.dataset[t]!==void 0)return!0;n=n.parentElement}return!1}function Vn(e){return e.composedPath()[0]||null}function jn(e){if(typeof e=="number")return{"":e.toString()};const t={};return e.split(/ +/).forEach(n=>{if(n==="")return;const[r,o]=n.split(":");o===void 0?t[""]=r:t[r]=o}),t}function ti(e,t){var n;if(e==null)return;const r=jn(e);if(t===void 0)return r[""];if(typeof t=="string")return(n=r[t])!==null&&n!==void 0?n:r[""];if(Array.isArray(t)){for(let o=t.length-1;o>=0;--o){const s=t[o];if(s in r)return r[s]}return r[""]}else{let o,s=-1;return Object.keys(r).forEach(l=>{const d=Number(l);!Number.isNaN(d)&&t>=d&&d>=s&&(s=d,o=r[l])}),o}}function Bt(e){return typeof e=="string"?e.endsWith("px")?Number(e.slice(0,e.length-2)):Number(e):e}function ke(e){if(e!=null)return typeof e=="number"?`${e}px`:e.endsWith("px")?e:`${e}px`}function ni(e,t){const n=e.trim().split(/\s+/g),r={top:n[0]};switch(n.length){case 1:r.right=n[0],r.bottom=n[0],r.left=n[0];break;case 2:r.right=n[1],r.left=n[1],r.bottom=n[0];break;case 3:r.right=n[1],r.bottom=n[2],r.left=n[1];break;case 4:r.right=n[1],r.bottom=n[2],r.left=n[3];break;default:throw new Error("[seemly/getMargin]:"+e+" is not a valid value.")}return t===void 0?r:r[t]}function ri(e,t){const[n,r]=e.split(" ");return t?t==="row"?n:r:{row:n,col:r||n}}var It={black:"#000",silver:"#C0C0C0",gray:"#808080",white:"#FFF",maroon:"#800000",red:"#F00",purple:"#800080",fuchsia:"#F0F",green:"#008000",lime:"#0F0",olive:"#808000",yellow:"#FF0",navy:"#000080",blue:"#00F",teal:"#008080",aqua:"#0FF",transparent:"#0000"};function oi(e,t,n){t/=100,n/=100;const r=t*Math.min(n,1-n)+n;return[e,r?(2-2*n/r)*100:0,r*100]}function ii(e,t,n){t/=100,n/=100;const r=n-n*t/2,o=Math.min(r,1-r);return[e,o?(n-r)/o*100:0,r*100]}function si(e,t,n){t/=100,n/=100;let r=(o,s=(o+e/60)%6)=>n-n*t*Math.max(Math.min(s,4-s,1),0);return[r(5)*255,r(3)*255,r(1)*255]}function li(e,t,n){e/=255,t/=255,n/=255;let r=Math.max(e,t,n),o=r-Math.min(e,t,n),s=o&&(r==e?(t-n)/o:r==t?2+(n-e)/o:4+(e-t)/o);return[60*(s<0?s+6:s),r&&o/r*100,r*100]}function ai(e,t,n){e/=255,t/=255,n/=255;let r=Math.max(e,t,n),o=r-Math.min(e,t,n),s=1-Math.abs(r+r-o-1),l=o&&(r==e?(t-n)/o:r==t?2+(n-e)/o:4+(e-t)/o);return[60*(l<0?l+6:l),s?o/s*100:0,(r+r-o)*50]}function ui(e,t,n){t/=100,n/=100;let r=t*Math.min(n,1-n),o=(s,l=(s+e/30)%12)=>n-r*Math.max(Math.min(l-3,9-l,1),-1);return[o(0)*255,o(8)*255,o(4)*255]}const ee="^\\s*",te="\\s*$",ae="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))%\\s*",Z="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",he="([0-9A-Fa-f])",pe="([0-9A-Fa-f]{2})",qn=new RegExp(`${ee}hsl\\s*\\(${Z},${ae},${ae}\\)${te}`),Xn=new RegExp(`${ee}hsv\\s*\\(${Z},${ae},${ae}\\)${te}`),Yn=new RegExp(`${ee}hsla\\s*\\(${Z},${ae},${ae},${Z}\\)${te}`),Un=new RegExp(`${ee}hsva\\s*\\(${Z},${ae},${ae},${Z}\\)${te}`),Zn=new RegExp(`${ee}rgb\\s*\\(${Z},${Z},${Z}\\)${te}`),Kn=new RegExp(`${ee}rgba\\s*\\(${Z},${Z},${Z},${Z}\\)${te}`),st=new RegExp(`${ee}#${he}${he}${he}${te}`),lt=new RegExp(`${ee}#${pe}${pe}${pe}${te}`),at=new RegExp(`${ee}#${he}${he}${he}${he}${te}`),ut=new RegExp(`${ee}#${pe}${pe}${pe}${pe}${te}`);function U(e){return parseInt(e,16)}function di(e){try{let t;if(t=Yn.exec(e))return[ne(t[1]),_(t[5]),_(t[9]),se(t[13])];if(t=qn.exec(e))return[ne(t[1]),_(t[5]),_(t[9]),1];throw new Error(`[seemly/hsla]: Invalid color value ${e}.`)}catch(t){throw t}}function ci(e){try{let t;if(t=Un.exec(e))return[ne(t[1]),_(t[5]),_(t[9]),se(t[13])];if(t=Xn.exec(e))return[ne(t[1]),_(t[5]),_(t[9]),1];throw new Error(`[seemly/hsva]: Invalid color value ${e}.`)}catch(t){throw t}}function me(e){try{let t;if(t=lt.exec(e))return[U(t[1]),U(t[2]),U(t[3]),1];if(t=Zn.exec(e))return[W(t[1]),W(t[5]),W(t[9]),1];if(t=Kn.exec(e))return[W(t[1]),W(t[5]),W(t[9]),se(t[13])];if(t=st.exec(e))return[U(t[1]+t[1]),U(t[2]+t[2]),U(t[3]+t[3]),1];if(t=ut.exec(e))return[U(t[1]),U(t[2]),U(t[3]),se(U(t[4])/255)];if(t=at.exec(e))return[U(t[1]+t[1]),U(t[2]+t[2]),U(t[3]+t[3]),se(U(t[4]+t[4])/255)];if(e in It)return me(It[e]);throw new Error(`[seemly/rgba]: Invalid color value ${e}.`)}catch(t){throw t}}function Gn(e){return e>1?1:e<0?0:e}function Jn(e,t,n){return`rgb(${W(e)}, ${W(t)}, ${W(n)})`}function dt(e,t,n,r){return`rgba(${W(e)}, ${W(t)}, ${W(n)}, ${Gn(r)})`}function ct(e,t,n,r,o){return W((e*t*(1-r)+n*r)/o)}function fi(e,t){Array.isArray(e)||(e=me(e)),Array.isArray(t)||(t=me(t));const n=e[3],r=t[3],o=se(n+r-n*r);return dt(ct(e[0],n,t[0],r,o),ct(e[1],n,t[1],r,o),ct(e[2],n,t[2],r,o),o)}function hi(e,t){const[n,r,o,s=1]=Array.isArray(e)?e:me(e);return t.alpha?dt(n,r,o,t.alpha):dt(n,r,o,s)}function pi(e,t){const[n,r,o,s=1]=Array.isArray(e)?e:me(e),{lightness:l=1,alpha:d=1}=t;return er([n*l,r*l,o*l,s*d])}function Qn(e){var t;return(t=(Array.isArray(e)?e:me(e))[3])!==null&&t!==void 0?t:1}function mi(e){return`${Qn(e)}`}function se(e){const t=Math.round(Number(e)*100)/100;return t>1?1:t<0?0:t}function ne(e){const t=Math.round(Number(e));return t>=360||t<0?0:t}function W(e){const t=Math.round(Number(e));return t>255?255:t<0?0:t}function _(e){const t=Math.round(Number(e));return t>100?100:t<0?0:t}function vi(e){const[t,n,r]=Array.isArray(e)?e:me(e);return Jn(t,n,r)}function er(e){const[t,n,r]=e;return 3 in e?`rgba(${W(t)}, ${W(n)}, ${W(r)}, ${se(e[3])})`:`rgba(${W(t)}, ${W(n)}, ${W(r)}, 1)`}function gi(e){return`hsv(${ne(e[0])}, ${_(e[1])}%, ${_(e[2])}%)`}function wi(e){const[t,n,r]=e;return 3 in e?`hsva(${ne(t)}, ${_(n)}%, ${_(r)}%, ${se(e[3])})`:`hsva(${ne(t)}, ${_(n)}%, ${_(r)}%, 1)`}function bi(e){return`hsl(${ne(e[0])}, ${_(e[1])}%, ${_(e[2])}%)`}function xi(e){const[t,n,r]=e;return 3 in e?`hsla(${ne(t)}, ${_(n)}%, ${_(r)}%, ${se(e[3])})`:`hsla(${ne(t)}, ${_(n)}%, ${_(r)}%, 1)`}function yi(e){if(typeof e=="string"){let r;if(r=lt.exec(e))return`${r[0]}FF`;if(r=ut.exec(e))return r[0];if(r=st.exec(e))return`#${r[1]}${r[1]}${r[2]}${r[2]}${r[3]}${r[3]}FF`;if(r=at.exec(e))return`#${r[1]}${r[1]}${r[2]}${r[2]}${r[3]}${r[3]}${r[4]}${r[4]}`;throw new Error(`[seemly/toHexString]: Invalid hex value ${e}.`)}const t=`#${e.slice(0,3).map(r=>W(r).toString(16).toUpperCase().padStart(2,"0")).join("")}`,n=e.length===3?"FF":W(e[3]*255).toString(16).padStart(2,"0").toUpperCase();return t+n}function $i(e){if(typeof e=="string"){let t;if(t=lt.exec(e))return t[0];if(t=ut.exec(e))return t[0].slice(0,7);if(t=st.exec(e)||at.exec(e))return`#${t[1]}${t[1]}${t[2]}${t[2]}${t[3]}${t[3]}`;throw new Error(`[seemly/toHexString]: Invalid hex value ${e}.`)}return`#${e.slice(0,3).map(t=>W(t).toString(16).toUpperCase().padStart(2,"0")).join("")}`}function tr(e=8){return Math.random().toString(16).slice(2,2+e)}function Ei(e,t){const n=[];for(let r=0;r<e;++r)n.push(t);return n}function Ti(e,t){const n=[];if(!t){for(let r=0;r<e;++r)n.push(r);return n}for(let r=0;r<e;++r)n.push(t(r));return n}async function Si(e){return new Promise(t=>{setTimeout(t,e)})}function Le(e){return e.composedPath()[0]}const nr={mousemoveoutside:new WeakMap,clickoutside:new WeakMap};function rr(e,t,n){if(e==="mousemoveoutside"){const r=o=>{t.contains(Le(o))||n(o)};return{mousemove:r,touchstart:r}}else if(e==="clickoutside"){let r=!1;const o=l=>{r=!t.contains(Le(l))},s=l=>{r&&(t.contains(Le(l))||n(l))};return{mousedown:o,mouseup:s,touchstart:o,touchend:s}}return console.error(`[evtd/create-trap-handler]: name \`${e}\` is invalid. This could be a bug of evtd.`),{}}function At(e,t,n){const r=nr[e];let o=r.get(t);o===void 0&&r.set(t,o=new WeakMap);let s=o.get(n);return s===void 0&&o.set(n,s=rr(e,t,n)),s}function or(e,t,n,r){if(e==="mousemoveoutside"||e==="clickoutside"){const o=At(e,t,n);return Object.keys(o).forEach(s=>{N(s,document,o[s],r)}),!0}return!1}function ir(e,t,n,r){if(e==="mousemoveoutside"||e==="clickoutside"){const o=At(e,t,n);return Object.keys(o).forEach(s=>{R(s,document,o[s],r)}),!0}return!1}function sr(){if(typeof window=="undefined")return{on:()=>{},off:()=>{}};const e=new WeakMap,t=new WeakMap;function n(){e.set(this,!0)}function r(){e.set(this,!0),t.set(this,!0)}function o(p,m,T){const C=p[m];return p[m]=function(){return T.apply(p,arguments),C.apply(p,arguments)},p}function s(p,m){p[m]=Event.prototype[m]}const l=new WeakMap,d=Object.getOwnPropertyDescriptor(Event.prototype,"currentTarget");function a(){var p;return(p=l.get(this))!==null&&p!==void 0?p:null}function u(p,m){d!==void 0&&Object.defineProperty(p,"currentTarget",{configurable:!0,enumerable:!0,get:m!=null?m:d.get})}const h={bubble:{},capture:{}},b={};function c(){const p=function(m){const{type:T,eventPhase:C,bubbles:I}=m,P=Le(m);if(C===2)return;const v=C===1?"capture":"bubble";let w=P;const S=[];for(;w===null&&(w=window),S.push(w),w!==window;)w=w.parentNode||null;const k=h.capture[T],O=h.bubble[T];if(o(m,"stopPropagation",n),o(m,"stopImmediatePropagation",r),u(m,a),v==="capture"){if(k===void 0)return;for(let H=S.length-1;H>=0&&!e.has(m);--H){const A=S[H],F=k.get(A);if(F!==void 0){l.set(m,A);for(const j of F){if(t.has(m))break;j(m)}}if(H===0&&!I&&O!==void 0){const j=O.get(A);if(j!==void 0)for(const ce of j){if(t.has(m))break;ce(m)}}}}else if(v==="bubble"){if(O===void 0)return;for(let H=0;H<S.length&&!e.has(m);++H){const A=S[H],F=O.get(A);if(F!==void 0){l.set(m,A);for(const j of F){if(t.has(m))break;j(m)}}}}s(m,"stopPropagation"),s(m,"stopImmediatePropagation"),u(m)};return p.displayName="evtdUnifiedHandler",p}function x(){const p=function(m){const{type:T,eventPhase:C}=m;if(C!==2)return;const I=b[T];I!==void 0&&I.forEach(P=>P(m))};return p.displayName="evtdUnifiedWindowEventHandler",p}const $=c(),E=x();function g(p,m){const T=h[p];return T[m]===void 0&&(T[m]=new Map,window.addEventListener(m,$,p==="capture")),T[m]}function f(p){return b[p]===void 0&&(b[p]=new Set,window.addEventListener(p,E)),b[p]}function M(p,m){let T=p.get(m);return T===void 0&&p.set(m,T=new Set),T}function z(p,m,T,C){const I=h[m][T];if(I!==void 0){const P=I.get(p);if(P!==void 0&&P.has(C))return!0}return!1}function L(p,m){const T=b[p];return!!(T!==void 0&&T.has(m))}function K(p,m,T,C){let I;if(typeof C=="object"&&C.once===!0?I=k=>{q(p,m,I,C),T(k)}:I=T,or(p,m,I,C))return;const v=C===!0||typeof C=="object"&&C.capture===!0?"capture":"bubble",w=g(v,p),S=M(w,m);if(S.has(I)||S.add(I),m===window){const k=f(p);k.has(I)||k.add(I)}}function q(p,m,T,C){if(ir(p,m,T,C))return;const P=C===!0||typeof C=="object"&&C.capture===!0,v=P?"capture":"bubble",w=g(v,p),S=M(w,m);if(m===window&&!z(m,P?"bubble":"capture",p,T)&&L(p,T)){const O=b[p];O.delete(T),O.size===0&&(window.removeEventListener(p,E),b[p]=void 0)}S.has(T)&&S.delete(T),S.size===0&&w.delete(m),w.size===0&&(window.removeEventListener(p,$,v==="capture"),h[v][p]=void 0)}return{on:K,off:q}}const{on:N,off:R}=sr();function ft(e,t,n="default"){const r=t[n];if(r===void 0)throw new Error(`[vueuc/${e}]: slot[${n}] is empty.`);return r()}function ht(e,t=!0,n=[]){return e.forEach(r=>{if(r!==null){if(typeof r!="object"){(typeof r=="string"||typeof r=="number")&&n.push(i.createTextVNode(String(r)));return}if(Array.isArray(r)){ht(r,t,n);return}if(r.type===i.Fragment){if(r.children===null)return;Array.isArray(r.children)&&ht(r.children,t,n)}else r.type!==i.Comment&&n.push(r)}}),n}function Ot(e,t,n="default"){const r=t[n];if(r===void 0)throw new Error(`[vueuc/${e}]: slot[${n}] is empty.`);const o=ht(r());if(o.length===1)return o[0];throw new Error(`[vueuc/${e}]: slot[${n}] should have exactly one child.`)}let ue=null;function Ht(){if(ue===null&&(ue=document.getElementById("v-binder-view-measurer"),ue===null)){ue=document.createElement("div"),ue.id="v-binder-view-measurer";const{style:e}=ue;e.position="fixed",e.left="0",e.right="0",e.top="0",e.bottom="0",e.pointerEvents="none",e.visibility="hidden",document.body.appendChild(ue)}return ue.getBoundingClientRect()}function lr(e,t){const n=Ht();return{top:t,left:e,height:0,width:0,right:n.width-e,bottom:n.height-t}}function pt(e){const t=e.getBoundingClientRect(),n=Ht();return{left:t.left-n.left,top:t.top-n.top,bottom:n.height+n.top-t.bottom,right:n.width+n.left-t.right,width:t.width,height:t.height}}function ar(e){return e.nodeType===9?null:e.parentNode}function Ft(e){if(e===null)return null;const t=ar(e);if(t===null)return null;if(t.nodeType===9)return document;if(t.nodeType===1){const{overflow:n,overflowX:r,overflowY:o}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(n+o+r))return t}return Ft(t)}const Mi=i.defineComponent({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){var t;i.provide("VBinder",(t=i.getCurrentInstance())===null||t===void 0?void 0:t.proxy);const n=i.inject("VBinder",null),r=i.ref(null),o=f=>{r.value=f,n&&e.syncTargetWithParent&&n.setTargetRef(f)};let s=[];const l=()=>{let f=r.value;for(;f=Ft(f),f!==null;)s.push(f);for(const M of s)N("scroll",M,b,!0)},d=()=>{for(const f of s)R("scroll",f,b,!0);s=[]},a=new Set,u=f=>{a.size===0&&l(),a.has(f)||a.add(f)},h=f=>{a.has(f)&&a.delete(f),a.size===0&&d()},b=()=>{zt(c)},c=()=>{a.forEach(f=>f())},x=new Set,$=f=>{x.size===0&&N("resize",window,g),x.has(f)||x.add(f)},E=f=>{x.has(f)&&x.delete(f),x.size===0&&R("resize",window,g)},g=()=>{x.forEach(f=>f())};return i.onBeforeUnmount(()=>{R("resize",window,g),d()}),{targetRef:r,setTargetRef:o,addScrollListener:u,removeScrollListener:h,addResizeListener:$,removeResizeListener:E}},render(){return ft("binder",this.$slots)}});var Ci=i.defineComponent({name:"Target",setup(){const{setTargetRef:e,syncTarget:t}=i.inject("VBinder");return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){const{syncTarget:e,setTargetDirective:t}=this;return e?i.withDirectives(Ot("follower",this.$slots),[[t]]):Ot("follower",this.$slots)}});const xe="@@mmoContext",ki={mounted(e,{value:t}){e[xe]={handler:void 0},typeof t=="function"&&(e[xe].handler=t,N("mousemoveoutside",e,t))},updated(e,{value:t}){const n=e[xe];typeof t=="function"?n.handler?n.handler!==t&&(R("mousemoveoutside",e,n.handler),n.handler=t,N("mousemoveoutside",e,t)):(e[xe].handler=t,N("mousemoveoutside",e,t)):n.handler&&(R("mousemoveoutside",e,n.handler),n.handler=void 0)},unmounted(e){const{handler:t}=e[xe];t&&R("mousemoveoutside",e,t),e[xe].handler=void 0}},ye="@@coContext",zi={mounted(e,{value:t,modifiers:n}){e[ye]={handler:void 0},typeof t=="function"&&(e[ye].handler=t,N("clickoutside",e,t,{capture:n.capture}))},updated(e,{value:t,modifiers:n}){const r=e[ye];typeof t=="function"?r.handler?r.handler!==t&&(R("clickoutside",e,r.handler,{capture:n.capture}),r.handler=t,N("clickoutside",e,t,{capture:n.capture})):(e[ye].handler=t,N("clickoutside",e,t,{capture:n.capture})):r.handler&&(R("clickoutside",e,r.handler,{capture:n.capture}),r.handler=void 0)},unmounted(e,{modifiers:t}){const{handler:n}=e[ye];n&&R("clickoutside",e,n,{capture:t.capture}),e[ye].handler=void 0}},Rt=new Set;function Bi(e,t){const n=`[vdirs/${e}]: ${t}`;Rt.has(n)||Rt.add(n)}function ur(e,t){console.error(`[vdirs/${e}]: ${t}`)}class dr{constructor(){this.elementZIndex=new Map,this.nextZIndex=2e3}get elementCount(){return this.elementZIndex.size}ensureZIndex(t,n){const{elementZIndex:r}=this;if(n!==void 0){t.style.zIndex=`${n}`,r.delete(t);return}const{nextZIndex:o}=this;r.has(t)&&r.get(t)+1===this.nextZIndex||(t.style.zIndex=`${o}`,r.set(t,o),this.nextZIndex=o+1,this.squashState())}unregister(t,n){const{elementZIndex:r}=this;r.has(t)?r.delete(t):n===void 0&&ur("z-index-manager/unregister-element","Element not found when unregistering."),this.squashState()}squashState(){const{elementCount:t}=this;t||(this.nextZIndex=2e3),this.nextZIndex-t>2500&&this.rearrange()}rearrange(){const t=Array.from(this.elementZIndex.entries());t.sort((n,r)=>n[1]-r[1]),this.nextZIndex=2e3,t.forEach(n=>{const r=n[0],o=this.nextZIndex++;`${o}`!==r.style.zIndex&&(r.style.zIndex=`${o}`)})}}var mt=new dr;const $e="@@ziContext",cr={mounted(e,t){const{value:n={}}=t,{zIndex:r,enabled:o}=n;e[$e]={enabled:!!o,initialized:!1},o&&(mt.ensureZIndex(e,r),e[$e].initialized=!0)},updated(e,t){const{value:n={}}=t,{zIndex:r,enabled:o}=n,s=e[$e].enabled;o&&!s&&(mt.ensureZIndex(e,r),e[$e].initialized=!0),e[$e].enabled=!!o},unmounted(e,t){if(!e[$e].initialized)return;const{value:n={}}=t,{zIndex:r}=n;mt.unregister(e,r)}};function fr(e){const t=i.ref(!!e.value);if(t.value)return i.readonly(t);const n=i.watch(e,r=>{r&&(t.value=!0,n())});return i.readonly(t)}function Ee(e){const t=i.computed(e),n=i.ref(t.value);return i.watch(t,r=>{n.value=r}),typeof e=="function"?n:{__v_isRef:!0,get value(){return n.value},set value(r){e.set(r)}}}function De(){return i.getCurrentInstance()!==null}const ze=typeof window!="undefined";let Te,Be;(()=>{var e,t;Te=ze?(t=(e=document)===null||e===void 0?void 0:e.fonts)===null||t===void 0?void 0:t.ready:void 0,Be=!1,Te!==void 0?Te.then(()=>{Be=!0}):Be=!0})();function hr(e){if(Be)return;let t=!1;i.onMounted(()=>{Be||Te==null||Te.then(()=>{t||e()})}),i.onBeforeUnmount(()=>{t=!0})}const Ie=i.ref(null);function Pt(e){if(e.clientX>0||e.clientY>0)Ie.value={x:e.clientX,y:e.clientY};else{const{target:t}=e;if(t instanceof Element){const{left:n,top:r,width:o,height:s}=t.getBoundingClientRect();n>0||r>0?Ie.value={x:n+o/2,y:r+s/2}:Ie.value={x:0,y:0}}else Ie.value=null}}let Ne=0,Wt=!0;function Ai(){if(!ze)return i.readonly(i.ref(null));Ne===0&&N("click",document,Pt,!0);const e=()=>{Ne+=1};return Wt&&(Wt=De())?(i.onBeforeMount(e),i.onBeforeUnmount(()=>{Ne-=1,Ne===0&&R("click",document,Pt,!0)})):e(),i.readonly(Ie)}const pr=i.ref(void 0);let _e=0;function Lt(){pr.value=Date.now()}let Dt=!0;function Oi(e){if(!ze)return i.readonly(i.ref(!1));const t=i.ref(!1);let n=null;function r(){n!==null&&window.clearTimeout(n)}function o(){r(),t.value=!0,n=window.setTimeout(()=>{t.value=!1},e)}_e===0&&N("click",window,Lt,!0);const s=()=>{_e+=1,N("click",window,o,!0)};return Dt&&(Dt=De())?(i.onBeforeMount(s),i.onBeforeUnmount(()=>{_e-=1,_e===0&&R("click",window,Lt,!0),R("click",window,o,!0),r()})):s(),i.readonly(t)}let Ve=0;const mr=typeof window!="undefined"&&window.matchMedia!==void 0,de=i.ref(null);let J,ve;function je(e){e.matches&&(de.value="dark")}function qe(e){e.matches&&(de.value="light")}function vr(){J=window.matchMedia("(prefers-color-scheme: dark)"),ve=window.matchMedia("(prefers-color-scheme: light)"),J.matches?de.value="dark":ve.matches?de.value="light":de.value=null,J.addEventListener?(J.addEventListener("change",je),ve.addEventListener("change",qe)):J.addListener&&(J.addListener(je),ve.addListener(qe))}function gr(){"removeEventListener"in J?(J.removeEventListener("change",je),ve.removeEventListener("change",qe)):"removeListener"in J&&(J.removeListener(je),ve.removeListener(qe)),J=void 0,ve=void 0}let Nt=!0;function Hi(){return process.env.NODE_ENV!=="test"&&!mr||process.env.NODE_ENV==="test"&&window.matchMedia===void 0||(Ve===0&&vr(),Nt&&(Nt=De())&&(i.onBeforeMount(()=>{Ve+=1}),i.onBeforeUnmount(()=>{Ve-=1,Ve===0&&gr()}))),i.readonly(de)}function Fi(e,t){return i.watch(e,n=>{n!==void 0&&(t.value=n)}),i.computed(()=>e.value===void 0?t.value:e.value)}function wr(){const e=i.ref(!1);return i.onMounted(()=>{e.value=!0}),i.readonly(e)}function Ri(e,t){return i.computed(()=>{for(const n of t)if(e[n]!==void 0)return e[n];return e[t[t.length-1]]})}const _t=(typeof window=="undefined"?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!window.MSStream;function Pi(){return _t}const br={xs:0,s:640,m:1024,l:1280,xl:1536,"2xl":1920};function xr(e){return`(min-width: ${e}px)`}const Ae={};function Vt(e=br){if(!ze)return i.computed(()=>[]);if(typeof window.matchMedia!="function")return i.computed(()=>[]);const t=i.ref({}),n=Object.keys(e),r=(o,s)=>{o.matches?t.value[s]=!0:t.value[s]=!1};return n.forEach(o=>{const s=e[o];let l,d;Ae[s]===void 0?(l=window.matchMedia(xr(s)),l.addEventListener?l.addEventListener("change",a=>{d.forEach(u=>{u(a,o)})}):l.addListener&&l.addListener(a=>{d.forEach(u=>{u(a,o)})}),d=new Set,Ae[s]={mql:l,cbs:d}):(l=Ae[s].mql,d=Ae[s].cbs),d.add(r),l.matches&&d.forEach(a=>{a(l,o)})}),i.onBeforeUnmount(()=>{n.forEach(o=>{const{cbs:s}=Ae[e[o]];s.has(r)&&s.delete(r)})}),i.computed(()=>{const{value:o}=t;return n.filter(s=>o[s])})}function Wi(e){if(!ze)return i.computed(()=>{});const t=e!==void 0?Vt(e):Vt();return i.computed(()=>{const{value:n}=t;if(n.length!==0)return n[n.length-1]})}function Li(e={},t){const n=i.reactive({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:r,keyup:o}=e,s=a=>{switch(a.key){case"Control":n.ctrl=!0;break;case"Meta":n.command=!0,n.win=!0;break;case"Shift":n.shift=!0;break;case"Tab":n.tab=!0;break}r!==void 0&&Object.keys(r).forEach(u=>{if(u!==a.key)return;const h=r[u];if(typeof h=="function")h(a);else{const{stop:b=!1,prevent:c=!1}=h;b&&a.stopPropagation(),c&&a.preventDefault(),h.handler(a)}})},l=a=>{switch(a.key){case"Control":n.ctrl=!1;break;case"Meta":n.command=!1,n.win=!1;break;case"Shift":n.shift=!1;break;case"Tab":n.tab=!1;break}o!==void 0&&Object.keys(o).forEach(u=>{if(u!==a.key)return;const h=o[u];if(typeof h=="function")h(a);else{const{stop:b=!1,prevent:c=!1}=h;b&&a.stopPropagation(),c&&a.preventDefault(),h.handler(a)}})},d=()=>{(t===void 0||t.value)&&(N("keydown",document,s),N("keyup",document,l)),t!==void 0&&i.watch(t,a=>{a?(N("keydown",document,s),N("keyup",document,l)):(R("keydown",document,s),R("keyup",document,l))})};return De()?(i.onBeforeMount(d),i.onBeforeUnmount(()=>{(t===void 0||t.value)&&(R("keydown",document,s),R("keyup",document,l))})):d(),i.readonly(n)}const yr=typeof window=="undefined"?!1:_t||window.safari!==void 0;function Di(){return yr}const jt="@css-render/vue3-ssr";function $r(e,t){return`<style cssr-id="${e}">
2
2
  ${t}
3
- </style>`}function yr(e,t,n){const{styles:r,ids:o}=n;o.has(e)||r!==null&&(o.add(e),r.push(xr(e,t)))}const $r=typeof document!="undefined";function qe(){if($r)return;const e=i.inject(jt,null);if(e!==null)return{adapter:(t,n)=>yr(t,n,e),context:e}}function Ai(e){const t=[],n={styles:t,ids:new Set};return e.provide(jt,n),{collect(){const r=t.join(`
4
- `);return t.length=0,r}}}function Xt(e,t){console.error(`[vueuc/${e}]: ${t}`)}function Er(e){let t=0;for(let n=0;n<e.length;++n)e[n]==="&"&&++t;return t}const qt=/\s*,(?![^(]*\))\s*/g,Tr=/\s+/g;function Sr(e,t){const n=[];return t.split(qt).forEach(r=>{let o=Er(r);if(o){if(o===1){e.forEach(l=>{n.push(r.replace("&",l))});return}}else{e.forEach(l=>{n.push((l&&l+" ")+r)});return}let s=[r];for(;o--;){const l=[];s.forEach(d=>{e.forEach(a=>{l.push(d.replace("&",a))})}),s=l}s.forEach(l=>n.push(l))}),n}function Mr(e,t){const n=[];return t.split(qt).forEach(r=>{e.forEach(o=>{n.push((o&&o+" ")+r)})}),n}function Cr(e){let t=[""];return e.forEach(n=>{n=n&&n.trim(),n&&(n.includes("&")?t=Sr(t,n):t=Mr(t,n))}),t.join(", ").replace(Tr," ")}function Yt(e){if(!e)return;const t=e.parentElement;t&&t.removeChild(e)}function Ye(e,t){return(t!=null?t:document.head).querySelector(`style[cssr-id="${e}"]`)}function zr(e){const t=document.createElement("style");return t.setAttribute("cssr-id",e),t}function Ue(e){return e?/^\s*@(s|m)/.test(e):!1}const kr=/[A-Z]/g;function Ut(e){return e.replace(kr,t=>"-"+t.toLowerCase())}function Br(e,t=" "){return typeof e=="object"&&e!==null?` {
3
+ </style>`}function Er(e,t,n){const{styles:r,ids:o}=n;o.has(e)||r!==null&&(o.add(e),r.push($r(e,t)))}const Tr=typeof document!="undefined";function Xe(){if(Tr)return;const e=i.inject(jt,null);if(e!==null)return{adapter:(t,n)=>Er(t,n,e),context:e}}function Ni(e){const t=[],n={styles:t,ids:new Set};return e.provide(jt,n),{collect(){const r=t.join(`
4
+ `);return t.length=0,r}}}function qt(e,t){console.error(`[vueuc/${e}]: ${t}`)}function Sr(e){let t=0;for(let n=0;n<e.length;++n)e[n]==="&"&&++t;return t}const Xt=/\s*,(?![^(]*\))\s*/g,Mr=/\s+/g;function Cr(e,t){const n=[];return t.split(Xt).forEach(r=>{let o=Sr(r);if(o){if(o===1){e.forEach(l=>{n.push(r.replace("&",l))});return}}else{e.forEach(l=>{n.push((l&&l+" ")+r)});return}let s=[r];for(;o--;){const l=[];s.forEach(d=>{e.forEach(a=>{l.push(d.replace("&",a))})}),s=l}s.forEach(l=>n.push(l))}),n}function kr(e,t){const n=[];return t.split(Xt).forEach(r=>{e.forEach(o=>{n.push((o&&o+" ")+r)})}),n}function zr(e){let t=[""];return e.forEach(n=>{n=n&&n.trim(),n&&(n.includes("&")?t=Cr(t,n):t=kr(t,n))}),t.join(", ").replace(Mr," ")}function Yt(e){if(!e)return;const t=e.parentElement;t&&t.removeChild(e)}function Ye(e,t){return(t!=null?t:document.head).querySelector(`style[cssr-id="${e}"]`)}function Br(e){const t=document.createElement("style");return t.setAttribute("cssr-id",e),t}function Ue(e){return e?/^\s*@(s|m)/.test(e):!1}const Ir=/[A-Z]/g;function Ut(e){return e.replace(Ir,t=>"-"+t.toLowerCase())}function Ar(e,t=" "){return typeof e=="object"&&e!==null?` {
5
5
  `+Object.entries(e).map(n=>t+` ${Ut(n[0])}: ${n[1]};`).join(`
6
6
  `)+`
7
- `+t+"}":`: ${e};`}function Ir(e,t,n){return typeof e=="function"?e({context:t.context,props:n}):e}function Zt(e,t,n,r){if(!t)return"";const o=Ir(t,n,r);if(!o)return"";if(typeof o=="string")return`${e} {
7
+ `+t+"}":`: ${e};`}function Or(e,t,n){return typeof e=="function"?e({context:t.context,props:n}):e}function Zt(e,t,n,r){if(!t)return"";const o=Or(t,n,r);if(!o)return"";if(typeof o=="string")return`${e} {
8
8
  ${o}
9
9
  }`;const s=Object.keys(o);if(s.length===0)return n.config.keepEmptyBlock?e+` {
10
10
  }`:"";const l=e?[e+" {"]:[];return s.forEach(d=>{const a=o[d];if(d==="raw"){l.push(`
11
11
  `+a+`
12
- `);return}d=Ut(d),a!=null&&l.push(` ${d}${Br(a)}`)}),e&&l.push("}"),l.join(`
13
- `)}function vt(e,t,n){e&&e.forEach(r=>{if(Array.isArray(r))vt(r,t,n);else if(typeof r=="function"){const o=r(t);Array.isArray(o)?vt(o,t,n):o&&n(o)}else r&&n(r)})}function Kt(e,t,n,r,o){const s=e.$;let l="";if(!s||typeof s=="string")Ue(s)?l=s:t.push(s);else if(typeof s=="function"){const u=s({context:r.context,props:o});Ue(u)?l=u:t.push(u)}else if(s.before&&s.before(r.context),!s.$||typeof s.$=="string")Ue(s.$)?l=s.$:t.push(s.$);else if(s.$){const u=s.$({context:r.context,props:o});Ue(u)?l=u:t.push(u)}const d=Cr(t),a=Zt(d,e.props,r,o);l?n.push(`${l} {`):a.length&&n.push(a),e.children&&vt(e.children,{context:r.context,props:o},u=>{if(typeof u=="string"){const h=Zt(d,{raw:u},r,o);n.push(h)}else Kt(u,t,n,r,o)}),t.pop(),l&&n.push("}"),s&&s.after&&s.after(r.context)}function Ar(e,t,n){const r=[];return Kt(e,[],r,t,n),r.join(`
12
+ `);return}d=Ut(d),a!=null&&l.push(` ${d}${Ar(a)}`)}),e&&l.push("}"),l.join(`
13
+ `)}function vt(e,t,n){e&&e.forEach(r=>{if(Array.isArray(r))vt(r,t,n);else if(typeof r=="function"){const o=r(t);Array.isArray(o)?vt(o,t,n):o&&n(o)}else r&&n(r)})}function Kt(e,t,n,r,o){const s=e.$;let l="";if(!s||typeof s=="string")Ue(s)?l=s:t.push(s);else if(typeof s=="function"){const u=s({context:r.context,props:o});Ue(u)?l=u:t.push(u)}else if(s.before&&s.before(r.context),!s.$||typeof s.$=="string")Ue(s.$)?l=s.$:t.push(s.$);else if(s.$){const u=s.$({context:r.context,props:o});Ue(u)?l=u:t.push(u)}const d=zr(t),a=Zt(d,e.props,r,o);l?n.push(`${l} {`):a.length&&n.push(a),e.children&&vt(e.children,{context:r.context,props:o},u=>{if(typeof u=="string"){const h=Zt(d,{raw:u},r,o);n.push(h)}else Kt(u,t,n,r,o)}),t.pop(),l&&n.push("}"),s&&s.after&&s.after(r.context)}function Hr(e,t,n){const r=[];return Kt(e,[],r,t,n),r.join(`
14
14
 
15
- `)}function Or(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}typeof window!="undefined"&&(window.__cssrContext={});function Hr(e,t,n,r){const{els:o}=t;if(n===void 0)o.forEach(Yt),t.els=[];else{const s=Ye(n,r);s&&o.includes(s)&&(Yt(s),t.els=o.filter(l=>l!==s))}}function Gt(e,t){e.push(t)}function Fr(e,t,n,r,o,s,l,d,a){let u;if(n===void 0&&(u=t.render(r),n=Or(u)),a){a.adapter(n,u!=null?u:t.render(r));return}d===void 0&&(d=document.head);const h=Ye(n,d);if(h!==null&&!s)return h;const w=h!=null?h:zr(n);if(u===void 0&&(u=t.render(r)),w.textContent=u,h!==null)return h;if(l){const f=d.querySelector(`meta[name="${l}"]`);if(f)return d.insertBefore(w,f),Gt(t.els,w),w}return o?d.insertBefore(w,d.querySelector("style, link")):d.appendChild(w),Gt(t.els,w),w}function Rr(e){return Ar(this,this.instance,e)}function Wr(e={}){const{id:t,ssr:n,props:r,head:o=!1,force:s=!1,anchorMetaName:l,parent:d}=e;return Fr(this.instance,this,t,r,o,s,l,d,n)}function Lr(e={}){const{id:t,parent:n}=e;Hr(this.instance,this,t,n)}const Ze=function(e,t,n,r){return{instance:e,$:t,props:n,children:r,els:[],render:Rr,mount:Wr,unmount:Lr}},Pr=function(e,t,n,r){return Array.isArray(t)?Ze(e,{$:null},null,t):Array.isArray(n)?Ze(e,t,null,n):Array.isArray(r)?Ze(e,t,n,r):Ze(e,t,n,null)};function Nr(e={}){const t={c:(...n)=>Pr(t,...n),use:(n,...r)=>n.install(t,...r),find:Ye,context:{},config:e};return t}function Oi(e,t){if(e===void 0)return!1;if(t){const{context:{ids:n}}=t;return n.has(e)}return Ye(e)!==null}const{c:re}=Nr(),Ke="vueuc-style";function Jt(e){return e&-e}class Qt{constructor(t,n){this.l=t,this.min=n;const r=new Array(t+1);for(let o=0;o<t+1;++o)r[o]=0;this.ft=r}add(t,n){if(n===0)return;const{l:r,ft:o}=this;for(t+=1;t<=r;)o[t]+=n,t+=Jt(t)}get(t){return this.sum(t+1)-this.sum(t)}sum(t){if(t===void 0&&(t=this.l),t<=0)return 0;const{ft:n,min:r,l:o}=this;if(t>o)throw new Error("[FinweckTree.sum]: `i` is larger than length.");let s=t*r;for(;t>0;)s+=n[t],t-=Jt(t);return s}getBound(t){let n=0,r=this.l;for(;r>n;){const o=Math.floor((n+r)/2),s=this.sum(o);if(s>t){r=o;continue}else if(s<t){if(n===o)return this.sum(n+1)<=t?n+1:o;n=o}else return o}return n}}function en(e){return typeof e=="string"?document.querySelector(e):e()}var Dr=i.defineComponent({name:"LazyTeleport",props:{to:{type:[String,Object],default:void 0},disabled:Boolean,show:{type:Boolean,required:!0}},setup(e){return{showTeleport:dr(i.toRef(e,"show")),mergedTo:i.computed(()=>{const{to:t}=e;return t!=null?t:"body"})}},render(){return this.showTeleport?this.disabled?ct("lazy-teleport",this.$slots):i.h(i.Teleport,{disabled:this.disabled,to:this.mergedTo},ct("lazy-teleport",this.$slots)):null}});const Ge={top:"bottom",bottom:"top",left:"right",right:"left"},tn={start:"end",center:"center",end:"start"},gt={top:"height",bottom:"height",left:"width",right:"width"},_r={"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"},Vr={"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"},jr={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},nn={top:!0,bottom:!1,left:!0,right:!1},rn={top:"end",bottom:"start",left:"end",right:"start"};function Xr(e,t,n,r,o,s){if(!o||s)return{placement:e,top:0,left:0};const[l,d]=e.split("-");let a=d!=null?d:"center",u={top:0,left:0};const h=(x,$,E)=>{let g=0,c=0;const M=n[x]-t[$]-t[x];return M>0&&r&&(E?c=nn[$]?M:-M:g=nn[$]?M:-M),{left:g,top:c}},w=l==="left"||l==="right";if(a!=="center"){const x=jr[e],$=Ge[x],E=gt[x];if(n[E]>t[E]){if(t[x]+t[E]<n[E]){const g=(n[E]-t[E])/2;t[x]<g||t[$]<g?t[x]<t[$]?(a=tn[d],u=h(E,$,w)):u=h(E,x,w):a="center"}}else n[E]<t[E]&&t[$]<0&&t[x]>t[$]&&(a=tn[d])}else{const x=l==="bottom"||l==="top"?"left":"top",$=Ge[x],E=gt[x],g=(n[E]-t[E])/2;(t[x]<g||t[$]<g)&&(t[x]>t[$]?(a=rn[x],u=h(E,x,w)):(a=rn[$],u=h(E,$,w)))}let f=l;return t[l]<n[gt[l]]&&t[l]<t[Ge[l]]&&(f=Ge[l]),{placement:a!=="center"?`${f}-${a}`:f,left:u.left,top:u.top}}function qr(e,t){return t?Vr[e]:_r[e]}function Yr(e,t,n,r,o,s){if(s)switch(e){case"bottom-start":return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left)}px`,transform:"translateY(-100%)"};case"bottom-end":return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:"translateX(-100%) translateY(-100%)"};case"top-start":return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left)}px`,transform:""};case"top-end":return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:"translateX(-100%)"};case"right-start":return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:"translateX(-100%)"};case"right-end":return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:"translateX(-100%) translateY(-100%)"};case"left-start":return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left)}px`,transform:""};case"left-end":return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left)}px`,transform:"translateY(-100%)"};case"top":return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left+n.width/2)}px`,transform:"translateX(-50%)"};case"right":return{top:`${Math.round(n.top-t.top+n.height/2)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:"translateX(-100%) translateY(-50%)"};case"left":return{top:`${Math.round(n.top-t.top+n.height/2)}px`,left:`${Math.round(n.left-t.left)}px`,transform:"translateY(-50%)"};case"bottom":default:return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left+n.width/2)}px`,transform:"translateX(-50%) translateY(-100%)"}}switch(e){case"bottom-start":return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+o)}px`,transform:""};case"bottom-end":return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+n.width+o)}px`,transform:"translateX(-100%)"};case"top-start":return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+o)}px`,transform:"translateY(-100%)"};case"top-end":return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+n.width+o)}px`,transform:"translateX(-100%) translateY(-100%)"};case"right-start":return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+n.width+o)}px`,transform:""};case"right-end":return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+n.width+o)}px`,transform:"translateY(-100%)"};case"left-start":return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+o)}px`,transform:"translateX(-100%)"};case"left-end":return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+o)}px`,transform:"translateX(-100%) translateY(-100%)"};case"top":return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+n.width/2+o)}px`,transform:"translateY(-100%) translateX(-50%)"};case"right":return{top:`${Math.round(n.top-t.top+n.height/2+r)}px`,left:`${Math.round(n.left-t.left+n.width+o)}px`,transform:"translateY(-50%)"};case"left":return{top:`${Math.round(n.top-t.top+n.height/2+r)}px`,left:`${Math.round(n.left-t.left+o)}px`,transform:"translateY(-50%) translateX(-100%)"};case"bottom":default:return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+n.width/2+o)}px`,transform:"translateX(-50%)"}}}const Ur=re([re(".v-binder-follower-container",{position:"absolute",left:"0",right:"0",top:"0",height:"0",pointerEvents:"none",zIndex:"auto"}),re(".v-binder-follower-content",{position:"absolute",zIndex:"auto"},[re("> *",{pointerEvents:"all"})])]);var Hi=i.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 t=i.inject("VBinder"),n=Ee(()=>e.enabled!==void 0?e.enabled:e.show),r=i.ref(null),o=i.ref(null),s=()=>{const{syncTrigger:f}=e;f.includes("scroll")&&t.addScrollListener(a),f.includes("resize")&&t.addResizeListener(a)},l=()=>{t.removeScrollListener(a),t.removeResizeListener(a)};i.onMounted(()=>{n.value&&(a(),s())});const d=qe();Ur.mount({id:"vueuc/binder",head:!0,anchorMetaName:Ke,ssr:d}),i.onBeforeUnmount(()=>{l()}),fr(()=>{n.value&&a()});const a=()=>{if(!n.value)return;const f=r.value;if(f===null)return;const x=t.targetRef,{x:$,y:E,overlap:g}=e,c=$!==void 0&&E!==void 0?ir($,E):pt(x);f.style.setProperty("--v-target-width",`${Math.round(c.width)}px`),f.style.setProperty("--v-target-height",`${Math.round(c.height)}px`);const{width:M,minWidth:k,placement:P,internalShift:K,flip:j}=e;f.setAttribute("v-placement",P),g?f.setAttribute("v-overlap",""):f.removeAttribute("v-overlap");const{style:p}=f;M==="target"?p.width=`${c.width}px`:M!==void 0?p.width=M:p.width="",k==="target"?p.minWidth=`${c.width}px`:k!==void 0?p.minWidth=k:p.minWidth="";const m=pt(f),T=pt(o.value),{left:C,top:I,placement:W}=Xr(P,c,m,K,j,g),v=qr(W,g),{left:b,top:S,transform:z}=Yr(W,T,c,I,C,g);f.setAttribute("v-placement",W),f.style.setProperty("--v-offset-left",`${Math.round(C)}px`),f.style.setProperty("--v-offset-top",`${Math.round(I)}px`),f.style.transform=`translateX(${b}) translateY(${S}) ${z}`,f.style.setProperty("--v-transform-origin",v),f.style.transformOrigin=v};i.watch(n,f=>{f?(s(),u()):l()});const u=()=>{i.nextTick().then(a).catch(f=>console.error(f))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach(f=>{i.watch(i.toRef(e,f),a)}),["teleportDisabled"].forEach(f=>{i.watch(i.toRef(e,f),u)}),i.watch(i.toRef(e,"syncTrigger"),f=>{f.includes("resize")?t.addResizeListener(a):t.removeResizeListener(a),f.includes("scroll")?t.addScrollListener(a):t.removeScrollListener(a)});const h=vr(),w=Ee(()=>{const{to:f}=e;if(f!==void 0)return f;h.value});return{VBinder:t,mergedEnabled:n,offsetContainerRef:o,followerRef:r,mergedTo:w,syncPosition:a}},render(){return i.h(Dr,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var e,t;const n=i.h("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[i.h("div",{class:"v-binder-follower-content",ref:"followerRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))]);return this.zindexable?i.withDirectives(n,[[ur,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):n}})}}),ge=[],Zr=function(){return ge.some(function(e){return e.activeTargets.length>0})},Kr=function(){return ge.some(function(e){return e.skippedTargets.length>0})},on="ResizeObserver loop completed with undelivered notifications.",Gr=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:on}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=on),window.dispatchEvent(e)},Ae;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Ae||(Ae={}));var be=function(e){return Object.freeze(e)},Jr=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,be(this)}return e}(),sn=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,be(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,r=t.y,o=t.top,s=t.right,l=t.bottom,d=t.left,a=t.width,u=t.height;return{x:n,y:r,top:o,right:s,bottom:l,left:d,width:a,height:u}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),bt=function(e){return e instanceof SVGElement&&"getBBox"in e},ln=function(e){if(bt(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var o=e,s=o.offsetWidth,l=o.offsetHeight;return!(s||l||e.getClientRects().length)},an=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)},Qr=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},Oe=typeof window!="undefined"?window:{},Je=new WeakMap,un=/auto|scroll/,eo=/^tb|vertical/,to=/msie|trident/i.test(Oe.navigator&&Oe.navigator.userAgent),oe=function(e){return parseFloat(e||"0")},Se=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new Jr((n?t:e)||0,(n?e:t)||0)},dn=be({devicePixelContentBoxSize:Se(),borderBoxSize:Se(),contentBoxSize:Se(),contentRect:new sn(0,0,0,0)}),fn=function(e,t){if(t===void 0&&(t=!1),Je.has(e)&&!t)return Je.get(e);if(ln(e))return Je.set(e,dn),dn;var n=getComputedStyle(e),r=bt(e)&&e.ownerSVGElement&&e.getBBox(),o=!to&&n.boxSizing==="border-box",s=eo.test(n.writingMode||""),l=!r&&un.test(n.overflowY||""),d=!r&&un.test(n.overflowX||""),a=r?0:oe(n.paddingTop),u=r?0:oe(n.paddingRight),h=r?0:oe(n.paddingBottom),w=r?0:oe(n.paddingLeft),f=r?0:oe(n.borderTopWidth),x=r?0:oe(n.borderRightWidth),$=r?0:oe(n.borderBottomWidth),E=r?0:oe(n.borderLeftWidth),g=w+u,c=a+h,M=E+x,k=f+$,P=d?e.offsetHeight-k-e.clientHeight:0,K=l?e.offsetWidth-M-e.clientWidth:0,j=o?g+M:0,p=o?c+k:0,m=r?r.width:oe(n.width)-j-K,T=r?r.height:oe(n.height)-p-P,C=m+g+K+M,I=T+c+P+k,W=be({devicePixelContentBoxSize:Se(Math.round(m*devicePixelRatio),Math.round(T*devicePixelRatio),s),borderBoxSize:Se(C,I,s),contentBoxSize:Se(m,T,s),contentRect:new sn(w,a,m,T)});return Je.set(e,W),W},cn=function(e,t,n){var r=fn(e,n),o=r.borderBoxSize,s=r.contentBoxSize,l=r.devicePixelContentBoxSize;switch(t){case Ae.DEVICE_PIXEL_CONTENT_BOX:return l;case Ae.BORDER_BOX:return o;default:return s}},no=function(){function e(t){var n=fn(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=be([n.borderBoxSize]),this.contentBoxSize=be([n.contentBoxSize]),this.devicePixelContentBoxSize=be([n.devicePixelContentBoxSize])}return e}(),hn=function(e){if(ln(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},ro=function(){var e=1/0,t=[];ge.forEach(function(l){if(l.activeTargets.length!==0){var d=[];l.activeTargets.forEach(function(u){var h=new no(u.target),w=hn(u.target);d.push(h),u.lastReportedSize=cn(u.target,u.observedBox),w<e&&(e=w)}),t.push(function(){l.callback.call(l.observer,d,l.observer)}),l.activeTargets.splice(0,l.activeTargets.length)}});for(var n=0,r=t;n<r.length;n++){var o=r[n];o()}return e},pn=function(e){ge.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(o){o.isActive()&&(hn(o.target)>e?n.activeTargets.push(o):n.skippedTargets.push(o))})})},oo=function(){var e=0;for(pn(e);Zr();)e=ro(),pn(e);return Kr()&&Gr(),e>0},wt,mn=[],io=function(){return mn.splice(0).forEach(function(e){return e()})},so=function(e){if(!wt){var t=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return io()}).observe(n,r),wt=function(){n.textContent="".concat(t?t--:t++)}}mn.push(e),wt()},lo=function(e){so(function(){requestAnimationFrame(e)})},Qe=0,ao=function(){return!!Qe},uo=250,fo={attributes:!0,characterData:!0,childList:!0,subtree:!0},vn=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],gn=function(e){return e===void 0&&(e=0),Date.now()+e},xt=!1,co=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=uo),!xt){xt=!0;var r=gn(t);lo(function(){var o=!1;try{o=oo()}finally{if(xt=!1,t=r-gn(),!ao())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,fo)};document.body?n():Oe.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),vn.forEach(function(n){return Oe.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),vn.forEach(function(n){return Oe.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),yt=new co,bn=function(e){!Qe&&e>0&&yt.start(),Qe+=e,!Qe&&yt.stop()},ho=function(e){return!bt(e)&&!Qr(e)&&getComputedStyle(e).display==="inline"},po=function(){function e(t,n){this.target=t,this.observedBox=n||Ae.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=cn(this.target,this.observedBox,!0);return ho(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),mo=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),et=new WeakMap,wn=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},tt=function(){function e(){}return e.connect=function(t,n){var r=new mo(t,n);et.set(t,r)},e.observe=function(t,n,r){var o=et.get(t),s=o.observationTargets.length===0;wn(o.observationTargets,n)<0&&(s&&ge.push(o),o.observationTargets.push(new po(n,r&&r.box)),bn(1),yt.schedule())},e.unobserve=function(t,n){var r=et.get(t),o=wn(r.observationTargets,n),s=r.observationTargets.length===1;o>=0&&(s&&ge.splice(ge.indexOf(r),1),r.observationTargets.splice(o,1),bn(-1))},e.disconnect=function(t){var n=this,r=et.get(t);r.observationTargets.slice().forEach(function(o){return n.unobserve(t,o.target)}),r.activeTargets.splice(0,r.activeTargets.length)},e}(),vo=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.");tt.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(!an(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");tt.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(!an(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");tt.unobserve(this,t)},e.prototype.disconnect=function(){tt.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();class go{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new(typeof window!="undefined"&&window.ResizeObserver||vo)(this.handleResize),this.elHandlersMap=new Map}handleResize(t){for(const n of t){const r=this.elHandlersMap.get(n.target);r!==void 0&&r(n)}}registerHandler(t,n){this.elHandlersMap.set(t,n),this.observer.observe(t)}unregisterHandler(t){this.elHandlersMap.has(t)&&(this.elHandlersMap.delete(t),this.observer.unobserve(t))}}var xn=new go,nt=i.defineComponent({name:"ResizeObserver",props:{onResize:Function},setup(e){let t=!1;const n=i.getCurrentInstance().proxy;function r(o){const{onResize:s}=e;s!==void 0&&s(o)}i.onMounted(()=>{const o=n.$el;if(o===void 0){Xt("resize-observer","$el does not exist.");return}if(o.nextElementSibling!==o.nextSibling&&o.nodeType===3&&o.nodeValue!==""){Xt("resize-observer","$el can not be observed (it may be a text node).");return}o.nextElementSibling!==null&&(xn.registerHandler(o.nextElementSibling,r),t=!0)}),i.onBeforeUnmount(()=>{t&&xn.unregisterHandler(n.$el.nextElementSibling)})},render(){return i.renderSlot(this.$slots,"default")}});let rt;function bo(){return typeof document=="undefined"?!1:(rt===void 0&&("matchMedia"in window?rt=window.matchMedia("(pointer:coarse)").matches:rt=!1),rt)}let $t;function yn(){return typeof document=="undefined"?1:($t===void 0&&($t="chrome"in window?window.devicePixelRatio:1),$t)}const $n="VVirtualListXScroll";function wo({columnsRef:e,renderColRef:t,renderItemWithColsRef:n}){const r=i.ref(0),o=i.ref(0),s=i.computed(()=>{const u=e.value;if(u.length===0)return null;const h=new Qt(u.length,0);return u.forEach((w,f)=>{h.add(f,w.width)}),h}),l=Ee(()=>{const u=s.value;return u!==null?Math.max(u.getBound(o.value)-1,0):0}),d=u=>{const h=s.value;return h!==null?h.sum(u):0},a=Ee(()=>{const u=s.value;return u!==null?Math.min(u.getBound(o.value+r.value)+1,e.value.length-1):0});return i.provide($n,{startIndexRef:l,endIndexRef:a,columnsRef:e,renderColRef:t,renderItemWithColsRef:n,getLeft:d}),{listWidthRef:r,scrollLeftRef:o}}const En=i.defineComponent({name:"VirtualListRow",props:{index:{type:Number,required:!0},item:{type:Object,required:!0}},setup(){const{startIndexRef:e,endIndexRef:t,columnsRef:n,getLeft:r,renderColRef:o,renderItemWithColsRef:s}=i.inject($n);return{startIndex:e,endIndex:t,columns:n,renderCol:o,renderItemWithCols:s,getLeft:r}},render(){const{startIndex:e,endIndex:t,columns:n,renderCol:r,renderItemWithCols:o,getLeft:s,item:l}=this;if(o!=null)return o({itemIndex:this.index,startColIndex:e,endColIndex:t,allColumns:n,item:l,getLeft:s});if(r!=null){const d=[];for(let a=e;a<=t;++a){const u=n[a];d.push(r({column:u,left:s(a),item:l}))}return d}return null}}),xo=re(".v-vl",{maxHeight:"inherit",height:"100%",overflow:"auto",minWidth:"1px"},[re("&:not(.v-vl--show-scrollbar)",{scrollbarWidth:"none"},[re("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",{width:0,height:0,display:"none"})])]);var yo=i.defineComponent({name:"VirtualList",inheritAttrs:!1,props:{showScrollbar:{type:Boolean,default:!0},columns:{type:Array,default:()=>[]},renderCol:Function,renderItemWithCols:Function,items:{type:Array,default:()=>[]},itemSize:{type:Number,required:!0},itemResizable:Boolean,itemsStyle:[String,Object],visibleItemsTag:{type:[String,Object],default:"div"},visibleItemsProps:Object,ignoreItemResize:Boolean,onScroll:Function,onWheel:Function,onResize:Function,defaultScrollKey:[Number,String],defaultScrollIndex:Number,keyField:{type:String,default:"key"},paddingTop:{type:[Number,String],default:0},paddingBottom:{type:[Number,String],default:0}},setup(e){const t=qe();xo.mount({id:"vueuc/virtual-list",head:!0,anchorMetaName:Ke,ssr:t}),i.onMounted(()=>{const{defaultScrollIndex:v,defaultScrollKey:b}=e;v!=null?g({index:v}):b!=null&&g({key:b})});let n=!1,r=!1;i.onActivated(()=>{if(n=!1,!r){r=!0;return}g({top:x.value,left:l.value})}),i.onDeactivated(()=>{n=!0,r||(r=!0)});const o=Ee(()=>{if(e.renderCol==null&&e.renderItemWithCols==null||e.columns.length===0)return;let v=0;return e.columns.forEach(b=>{v+=b.width}),v}),s=i.computed(()=>{const v=new Map,{keyField:b}=e;return e.items.forEach((S,z)=>{v.set(S[b],z)}),v}),{scrollLeftRef:l,listWidthRef:d}=wo({columnsRef:i.toRef(e,"columns"),renderColRef:i.toRef(e,"renderCol"),renderItemWithColsRef:i.toRef(e,"renderItemWithCols")}),a=i.ref(null),u=i.ref(void 0),h=new Map,w=i.computed(()=>{const{items:v,itemSize:b,keyField:S}=e,z=new Qt(v.length,b);return v.forEach((O,H)=>{const A=O[S],F=h.get(A);F!==void 0&&z.add(H,F)}),z}),f=i.ref(0),x=i.ref(0),$=Ee(()=>Math.max(w.value.getBound(x.value-Bt(e.paddingTop))-1,0)),E=i.computed(()=>{const{value:v}=u;if(v===void 0)return[];const{items:b,itemSize:S}=e,z=$.value,O=Math.min(z+Math.ceil(v/S+1),b.length-1),H=[];for(let A=z;A<=O;++A)H.push(b[A]);return H}),g=(v,b)=>{if(typeof v=="number"){P(v,b,"auto");return}const{left:S,top:z,index:O,key:H,position:A,behavior:F,debounce:V=!0}=v;if(S!==void 0||z!==void 0)P(S,z,F);else if(O!==void 0)k(O,F,V);else if(H!==void 0){const fe=s.value.get(H);fe!==void 0&&k(fe,F,V)}else A==="bottom"?P(0,Number.MAX_SAFE_INTEGER,F):A==="top"&&P(0,0,F)};let c,M=null;function k(v,b,S){const{value:z}=w,O=z.sum(v)+Bt(e.paddingTop);if(!S)a.value.scrollTo({left:0,top:O,behavior:b});else{c=v,M!==null&&window.clearTimeout(M),M=window.setTimeout(()=>{c=void 0,M=null},16);const{scrollTop:H,offsetHeight:A}=a.value;if(O>H){const F=z.get(v);O+F<=H+A||a.value.scrollTo({left:0,top:O+F-A,behavior:b})}else a.value.scrollTo({left:0,top:O,behavior:b})}}function P(v,b,S){a.value.scrollTo({left:v,top:b,behavior:S})}function K(v,b){var S,z,O;if(n||e.ignoreItemResize||W(b.target))return;const{value:H}=w,A=s.value.get(v),F=H.get(A),V=(O=(z=(S=b.borderBoxSize)===null||S===void 0?void 0:S[0])===null||z===void 0?void 0:z.blockSize)!==null&&O!==void 0?O:b.contentRect.height;if(V===F)return;V-e.itemSize===0?h.delete(v):h.set(v,V-e.itemSize);const ce=V-F;if(ce===0)return;H.add(A,ce);const ie=a.value;if(ie!=null){if(c===void 0){const Fe=H.sum(A);ie.scrollTop>Fe&&ie.scrollBy(0,ce)}else if(A<c)ie.scrollBy(0,ce);else if(A===c){const Fe=H.sum(A);V+Fe>ie.scrollTop+ie.offsetHeight&&ie.scrollBy(0,ce)}I()}f.value++}const j=!bo();let p=!1;function m(v){var b;(b=e.onScroll)===null||b===void 0||b.call(e,v),(!j||!p)&&I()}function T(v){var b;if((b=e.onWheel)===null||b===void 0||b.call(e,v),j){const S=a.value;if(S!=null){if(v.deltaX===0&&(S.scrollTop===0&&v.deltaY<=0||S.scrollTop+S.offsetHeight>=S.scrollHeight&&v.deltaY>=0))return;v.preventDefault(),S.scrollTop+=v.deltaY/yn(),S.scrollLeft+=v.deltaX/yn(),I(),p=!0,kt(()=>{p=!1})}}}function C(v){if(n||W(v.target))return;if(e.renderCol==null&&e.renderItemWithCols==null){if(v.contentRect.height===u.value)return}else if(v.contentRect.height===u.value&&v.contentRect.width===d.value)return;u.value=v.contentRect.height,d.value=v.contentRect.width;const{onResize:b}=e;b!==void 0&&b(v)}function I(){const{value:v}=a;v!=null&&(x.value=v.scrollTop,l.value=v.scrollLeft)}function W(v){let b=v;for(;b!==null;){if(b.style.display==="none")return!0;b=b.parentElement}return!1}return{listHeight:u,listStyle:{overflow:"auto"},keyToIndex:s,itemsStyle:i.computed(()=>{const{itemResizable:v}=e,b=Ce(w.value.sum());return f.value,[e.itemsStyle,{boxSizing:"content-box",width:Ce(o.value),height:v?"":b,minHeight:v?b:"",paddingTop:Ce(e.paddingTop),paddingBottom:Ce(e.paddingBottom)}]}),visibleItemsStyle:i.computed(()=>(f.value,{transform:`translateY(${Ce(w.value.sum($.value))})`})),viewportItems:E,listElRef:a,itemsElRef:i.ref(null),scrollTo:g,handleListResize:C,handleListScroll:m,handleListWheel:T,handleItemResize:K}},render(){const{itemResizable:e,keyField:t,keyToIndex:n,visibleItemsTag:r}=this;return i.h(nt,{onResize:this.handleListResize},{default:()=>{var o,s;return i.h("div",i.mergeProps(this.$attrs,{class:["v-vl",this.showScrollbar&&"v-vl--show-scrollbar"],onScroll:this.handleListScroll,onWheel:this.handleListWheel,ref:"listElRef"}),[this.items.length!==0?i.h("div",{ref:"itemsElRef",class:"v-vl-items",style:this.itemsStyle},[i.h(r,Object.assign({class:"v-vl-visible-items",style:this.visibleItemsStyle},this.visibleItemsProps),{default:()=>{const{renderCol:l,renderItemWithCols:d}=this;return this.viewportItems.map(a=>{const u=a[t],h=n.get(u),w=l!=null?i.h(En,{index:h,item:a}):void 0,f=d!=null?i.h(En,{index:h,item:a}):void 0,x=this.$slots.default({item:a,renderedCols:w,renderedItemWithCols:f,index:h})[0];return e?i.h(nt,{key:u,onResize:$=>this.handleItemResize(u,$)},{default:()=>x}):(x.key=u,x)})}})]):(s=(o=this.$slots).empty)===null||s===void 0?void 0:s.call(o)])}})}});const $o=re(".v-x-scroll",{overflow:"auto",scrollbarWidth:"none"},[re("&::-webkit-scrollbar",{width:0,height:0})]);var Fi=i.defineComponent({name:"XScroll",props:{disabled:Boolean,onScroll:Function},setup(){const e=i.ref(null);function t(o){!(o.currentTarget.offsetWidth<o.currentTarget.scrollWidth)||o.deltaY===0||(o.currentTarget.scrollLeft+=o.deltaY+o.deltaX,o.preventDefault())}const n=qe();return $o.mount({id:"vueuc/x-scroll",head:!0,anchorMetaName:Ke,ssr:n}),Object.assign({selfRef:e,handleWheel:t},{scrollTo(...o){var s;(s=e.value)===null||s===void 0||s.scrollTo(...o)}})},render(){return i.h("div",{ref:"selfRef",onScroll:this.onScroll,onWheel:this.disabled?void 0:this.handleWheel,class:"v-x-scroll"},this.$slots)}});const le="v-hidden",Eo=re("[v-hidden]",{display:"none!important"});var Ri=i.defineComponent({name:"Overflow",props:{getCounter:Function,getTail:Function,updateCounter:Function,onUpdateCount:Function,onUpdateOverflow:Function},setup(e,{slots:t}){const n=i.ref(null),r=i.ref(null);function o(l){const{value:d}=n,{getCounter:a,getTail:u}=e;let h;if(a!==void 0?h=a():h=r.value,!d||!h)return;h.hasAttribute(le)&&h.removeAttribute(le);const{children:w}=d;if(l.showAllItemsBeforeCalculate)for(const k of w)k.hasAttribute(le)&&k.removeAttribute(le);const f=d.offsetWidth,x=[],$=t.tail?u==null?void 0:u():null;let E=$?$.offsetWidth:0,g=!1;const c=d.children.length-(t.tail?1:0);for(let k=0;k<c-1;++k){if(k<0)continue;const P=w[k];if(g){P.hasAttribute(le)||P.setAttribute(le,"");continue}else P.hasAttribute(le)&&P.removeAttribute(le);const K=P.offsetWidth;if(E+=K,x[k]=K,E>f){const{updateCounter:j}=e;for(let p=k;p>=0;--p){const m=c-1-p;j!==void 0?j(m):h.textContent=`${m}`;const T=h.offsetWidth;if(E-=x[p],E+T<=f||p===0){g=!0,k=p-1,$&&(k===-1?($.style.maxWidth=`${f-T}px`,$.style.boxSizing="border-box"):$.style.maxWidth="");const{onUpdateCount:C}=e;C&&C(m);break}}}}const{onUpdateOverflow:M}=e;g?M!==void 0&&M(!0):(M!==void 0&&M(!1),h.setAttribute(le,""))}const s=qe();return Eo.mount({id:"vueuc/overflow",head:!0,anchorMetaName:Ke,ssr:s}),i.onMounted(()=>o({showAllItemsBeforeCalculate:!1})),{selfRef:n,counterRef:r,sync:o}},render(){const{$slots:e}=this;return i.nextTick(()=>this.sync({showAllItemsBeforeCalculate:!1})),i.h("div",{class:"v-overflow",ref:"selfRef"},[i.renderSlot(e,"default"),e.counter?e.counter():i.h("span",{style:{display:"inline-block"},ref:"counterRef"}),e.tail?e.tail():null])}});function Tn(e){return e instanceof HTMLElement}function Sn(e){for(let t=0;t<e.childNodes.length;t++){const n=e.childNodes[t];if(Tn(n)&&(Cn(n)||Sn(n)))return!0}return!1}function Mn(e){for(let t=e.childNodes.length-1;t>=0;t--){const n=e.childNodes[t];if(Tn(n)&&(Cn(n)||Mn(n)))return!0}return!1}function Cn(e){if(!To(e))return!1;try{e.focus({preventScroll:!0})}catch{}return document.activeElement===e}function To(e){if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.getAttribute("disabled"))return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return e.type!=="hidden"&&e.type!=="file";case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}}let He=[];const Wi=i.defineComponent({name:"FocusTrap",props:{disabled:Boolean,active:Boolean,autoFocus:{type:Boolean,default:!0},onEsc:Function,initialFocusTo:String,finalFocusTo:String,returnFocusOnDeactivated:{type:Boolean,default:!0}},setup(e){const t=Qn(),n=i.ref(null),r=i.ref(null);let o=!1,s=!1;const l=typeof document=="undefined"?null:document.activeElement;function d(){return He[He.length-1]===t}function a(g){var c;g.code==="Escape"&&d()&&((c=e.onEsc)===null||c===void 0||c.call(e,g))}i.onMounted(()=>{i.watch(()=>e.active,g=>{g?(w(),D("keydown",document,a)):(R("keydown",document,a),o&&f())},{immediate:!0})}),i.onBeforeUnmount(()=>{R("keydown",document,a),o&&f()});function u(g){if(!s&&d()){const c=h();if(c===null||c.contains(Dn(g)))return;x("first")}}function h(){const g=n.value;if(g===null)return null;let c=g;for(;c=c.nextSibling,!(c===null||c instanceof Element&&c.tagName==="DIV"););return c}function w(){var g;if(!e.disabled){if(He.push(t),e.autoFocus){const{initialFocusTo:c}=e;c===void 0?x("first"):(g=en(c))===null||g===void 0||g.focus({preventScroll:!0})}o=!0,document.addEventListener("focus",u,!0)}}function f(){var g;if(e.disabled||(document.removeEventListener("focus",u,!0),He=He.filter(M=>M!==t),d()))return;const{finalFocusTo:c}=e;c!==void 0?(g=en(c))===null||g===void 0||g.focus({preventScroll:!0}):e.returnFocusOnDeactivated&&l instanceof HTMLElement&&(s=!0,l.focus({preventScroll:!0}),s=!1)}function x(g){if(d()&&e.active){const c=n.value,M=r.value;if(c!==null&&M!==null){const k=h();if(k==null||k===M){s=!0,c.focus({preventScroll:!0}),s=!1;return}s=!0;const P=g==="first"?Sn(k):Mn(k);s=!1,P||(s=!0,c.focus({preventScroll:!0}),s=!1)}}}function $(g){if(s)return;const c=h();c!==null&&(g.relatedTarget!==null&&c.contains(g.relatedTarget)?x("last"):x("first"))}function E(g){s||(g.relatedTarget!==null&&g.relatedTarget===n.value?x("last"):x("first"))}return{focusableStartRef:n,focusableEndRef:r,focusableStyle:"position: absolute; height: 0; width: 0;",handleStartFocus:$,handleEndFocus:E}},render(){const{default:e}=this.$slots;if(e===void 0)return null;if(this.disabled)return e();const{active:t,focusableStyle:n}=this;return i.h(i.Fragment,null,[i.h("div",{"aria-hidden":"true",tabindex:t?"0":"-1",ref:"focusableStartRef",style:n,onFocus:this.handleStartFocus}),e(),i.h("div",{"aria-hidden":"true",style:n,ref:"focusableEndRef",tabindex:t?"0":"-1",onFocus:this.handleEndFocus})])}}),U="king",So="is-";function we(e,t,n,r,o){let s=`${e}-${t}`;return n&&(s+=`-${n}`),r&&(s+=`__${r}`),o&&(s+=`--${o}`),s}const Mo=Symbol("namespaceContextKey");function Co(e){const t=e||(i.getCurrentInstance()?i.inject(Mo,i.ref(U)):i.ref(U));return i.computed(()=>i.unref(t)||U)}function Li(e,t){const n=Co(t);return{namespace:n,b:(r="")=>we(n.value,e,r,"",""),e:r=>r?we(n.value,e,"",r,""):"",m:r=>r?we(n.value,e,"","",r):"",be:(r,o)=>r&&o?we(n.value,e,r,o,""):"",em:(r,o)=>r&&o?we(n.value,e,"",r,o):"",bm:(r,o)=>r&&o?we(n.value,e,r,"",o):"",bem:(r,o,s)=>r&&o&&s?we(n.value,e,r,o,s):"",is:(r,...o)=>{const s=o.length>=1?o[0]:!0;return r&&s?`${So}${r}`:""},cssVar:r=>{const o={};for(const s in r)r[s]&&(o[`--${n.value}-${s}`]=r[s]);return o},cssVarName:r=>`--${n.value}-${r}`,cssVarBlock:r=>{const o={};for(const s in r)r[s]&&(o[`--${n.value}-${e}-${s}`]=r[s]);return o},cssVarBlockName:r=>`--${n.value}-${e}-${r}`}}const zo={container:Function,content:Function,onScroll:Function,xScrollable:Boolean};function ko(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!i.isVNode(e)}var Bo=i.defineComponent({name:"KScrollbar",props:zo,inheritAttrs:!1,setup(e){i.onMounted(()=>{e.container||Me()});const t=()=>{Me()},n=()=>{Me()},r=i.ref(null),o=i.ref(null),s=i.ref(null),l=i.ref(null),d=i.ref(null),a=i.ref(null),u=i.ref(null),h=i.ref(null),w=i.ref(null),f=i.ref(null),x=i.computed(()=>{var y;return((y=e.content)==null?void 0:y.call(e))||r.value}),$=i.computed(()=>{var y;return((y=e.container)==null?void 0:y.call(e))||o.value}),E=i.ref(0),g=i.ref(0),c=i.computed(()=>{const{value:y}=u,{value:B}=d;return y!==null&&B!==null&&B>y}),M=i.computed(()=>{const{value:y}=u,{value:B}=d,{value:N}=w;return y===null||B===null||N===null?0:Math.min(y,N*y/B+5*1.5)}),k=i.computed(()=>`${M.value}px`),P=i.computed(()=>{const{value:y}=u,{value:B}=E,{value:N}=d,{value:G}=w;if(y===null||N===null||G===null)return 0;{const X=N-y;return X?B/X*(G-M.value):0}}),K=i.computed(()=>`${P.value}px`);let j=!1,p=0,m=0,T,C;const I=y=>{if(!j)return;C!==void 0&&window.clearTimeout(C),T!==void 0&&window.clearTimeout(T);const{value:B}=u,{value:N}=d,{value:G}=M;if(B===null||N===null)return;const X=(y.clientY-m)*(N-B)/(B-G),St=N-B;let Q=p+X;Q=Math.min(St,Q),Q=Math.max(Q,0);const{value:Re}=$;Re&&(Re.scrollTop=Q)},W=y=>{y.preventDefault(),y.stopPropagation(),R("mousemove",window,I,!0),R("mouseup",window,W,!0),j=!1,Me()},v=y=>{y.preventDefault(),y.stopPropagation(),D("mousemove",window,I,!0),D("mouseup",window,W,!0),p=E.value,m=y.clientY,j=!0};function b(y){const{onScroll:B}=e;B&&B(y),In()}const S=i.computed(()=>{const{value:y}=h,{value:B}=a;return y!==null&&B!==null&&B>y}),z=i.computed(()=>{const{value:y}=h,{value:B}=a,{value:N}=f;return y===null||B===null||N===null?0:N*y/B+5*1.5}),O=i.computed(()=>`${z.value}px`),H=i.computed(()=>{const{value:y}=h,{value:B}=g,{value:N}=a,{value:G}=f;if(y===null||N===null||G===null)return 0;{const X=N-y;return X?B/X*(G-z.value):0}}),A=i.computed(()=>`${H.value}px`);let F=!1,V=0,fe=0;const ce=y=>{if(!F)return;C!==void 0&&window.clearTimeout(C),T!==void 0&&window.clearTimeout(T);const{value:B}=h,{value:N}=a,{value:G}=z;if(B===null||N===null)return;const X=(y.clientX-fe)*(N-B)/(B-G),St=N-B;let Q=V+X;Q=Math.min(St,Q),Q=Math.max(Q,0);const{value:Re}=$;Re&&(Re.scrollLeft=Q)},ie=y=>{y.preventDefault(),y.stopPropagation(),R("mousemove",window,ce,!0),R("mouseup",window,ie,!0),F=!1,Me()};function Fe(y){y.preventDefault(),y.stopPropagation(),F=!0,D("mousemove",window,ce,!0),D("mouseup",window,ie,!0),V=g.value,fe=y.clientX}function In(){const{value:y}=$;y&&(E.value=y.scrollTop,g.value=y.scrollLeft)}const Do=()=>{const{value:y}=x;if(y){const X=y.getBoundingClientRect();d.value=X.height,a.value=X.width}const{value:B}=$;if(B){const X=B.getBoundingClientRect();u.value=X.height,h.value=X.width}const{value:N}=s;N&&(w.value=N.offsetHeight);const{value:G}=l;G&&(f.value=G.offsetWidth)};function Me(){Do(),In()}return{sync:Me,handleContentResize:t,handleContainerResize:n,contentRef:r,yRailRef:s,xRailRef:l,containerRef:o,contentHeightRef:d,containerHeightRef:u,needYBarRef:c,needXBarRef:S,yBarSizePxRef:k,handleYScrollMouseDown:v,handleXScrollMouseDown:Fe,yBarTopPxRef:K,handleScroll:b,xBarSizePxRef:O,xBarLeftPxRef:A}},render(){let e;const{$slots:t,xScrollable:n}=this,r=()=>i.createVNode("div",{class:`${U}-scrollbar-rail ${U}-scrollbar-rail--horizontal`,ref:"xRailRef"},[this.needXBarRef&&i.createVNode("div",{class:`${U}-scrollbar-rail__scrollbar--horizontal`,style:{width:this.xBarSizePxRef,left:this.xBarLeftPxRef},onMousedown:this.handleXScrollMouseDown},null)]),o=()=>i.createVNode("div",{class:`${U}-scrollbar-rail ${U}-scrollbar-rail--vertical`,ref:"yRailRef"},[this.needYBarRef&&i.createVNode("div",{class:`${U}-scrollbar-rail__scrollbar--vertical`,style:{height:this.yBarSizePxRef,top:this.yBarTopPxRef},onMousedown:this.handleYScrollMouseDown},null)]),s=()=>{var l;return i.createVNode("div",i.mergeProps({class:`${U}-scrollbar`},this.$attrs),[this.container?(l=t.default)==null?void 0:l.call(t):i.createVNode("div",{class:`${U}-scrollbar-container`,onScroll:this.handleScroll,ref:"containerRef"},[i.createVNode(nt,{onResize:this.handleContentResize},{default:()=>{var d;return[i.createVNode("div",{ref:"contentRef",class:`${U}-scrollbar-content`},[(d=t.default)==null?void 0:d.call(t)])]}})]),o(),n&&r()])};return this.container?s():i.createVNode(nt,{onResize:this.handleContainerResize},ko(e=s())?e:{default:()=>[e]})}});const Io=We(Bo),zn={items:{type:Array,default:()=>[]},itemSize:{type:Number,required:!0},itemResizable:Boolean,paddingTop:{type:[Number,String],default:0},paddingBottom:{type:[Number,String],default:0},keyField:{type:String,default:"key"},xScrollable:Boolean,onScroll:Function,onWheel:Function,onResize:Function};var Ao=i.defineComponent({__name:"virtual-list",props:zn,setup(e,{expose:t}){const n=e,r=i.ref(null),o=i.ref(null);function s(){var f;return(f=r.value)==null?void 0:f.listElRef}function l(){var f;return(f=r.value)==null?void 0:f.itemsElRef}const d=()=>{var f;return(f=o.value)==null?void 0:f.sync()},a=An.debounce(()=>{var f;if(r.value){const x=r.value.listElRef.scrollTop,$=r.value.viewportItems.map(E=>i.toRaw(E));(f=n.onScroll)==null||f.call(n,{viewportItems:$,scrollTop:x})}},100);function u(){a(),d()}i.onMounted(()=>{setTimeout(()=>{d()},100)});function h(){d()}function w(f,x){var $,E;typeof f=="number"?($=r.value)==null||$.scrollTo(f,x!=null?x:0):(E=r.value)==null||E.scrollTo(f)}return t({getScrollContainer:s,getScrollContent:l,scrollTo:w}),(f,x)=>(i.openBlock(),i.createBlock(i.unref(Io),{ref_key:"scrollbarInstRef",ref:o,style:{"max-height":"300px"},"x-scrollable":f.xScrollable,container:s,content:l},{default:i.withCtx(()=>[i.createVNode(i.unref(yo),{ref_key:"virtualListInstRef",ref:r,items:f.items,style:{height:"100%"},"item-size":f.itemSize,"item-resizable":f.itemResizable,"show-scrollbar":!1,"padding-bottom":f.paddingBottom,"padding-top":f.paddingTop,"on-scroll":u,"on-resize":h},{default:i.withCtx(({item:$,index:E})=>[i.renderSlot(f.$slots,"default",{item:$,index:E})]),_:3},8,["items","item-size","item-resizable","padding-bottom","padding-top"])]),_:3},8,["x-scrollable"]))}});const kn=We(Ao);function Et(e){e.style.maxHeight="",e.style.overflow=e.dataset.oldOverflow,e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom}function Tt(e){e.style.maxWidth="",e.style.overflow=e.dataset.oldOverflow,e.style.paddingLeft=e.dataset.oldPaddingLeft,e.style.paddingRight=e.dataset.oldPaddingRight}const Oo={beforeEnter(e){e.dataset||(e.dataset={}),e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.style.height&&(e.dataset.elExistsHeight=e.style.height),e.style.maxHeight=0,e.style.paddingTop=0,e.style.paddingBottom=0},enter(e){requestAnimationFrame(()=>{e.dataset.oldOverflow=e.style.overflow,e.dataset.elExistsHeight?e.style.maxHeight=e.dataset.elExistsHeight:e.scrollHeight!==0?e.style.maxHeight=`${e.scrollHeight}px`:e.style.maxHeight=0,e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom,e.style.overflow="hidden"})},afterEnter(e){e.style.maxHeight="",e.style.overflow=e.dataset.oldOverflow},enterCancelled(e){Et(e)},beforeLeave(e){e.dataset||(e.dataset={}),e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.dataset.oldOverflow=e.style.overflow,e.style.maxHeight=`${e.scrollHeight}px`,e.style.overflow="hidden"},leave(e){e.scrollHeight!==0&&(e.style.maxHeight=0,e.style.paddingTop=0,e.style.paddingBottom=0)},afterLeave(e){Et(e)},leaveCancelled(e){Et(e)}},Ho={beforeEnter(e){e.dataset||(e.dataset={}),e.dataset.oldPaddingLeft=e.style.paddingLeft,e.dataset.oldPaddingRight=e.style.paddingRight,e.style.width&&(e.dataset.elExistsWidth=e.style.width),e.style.maxWidth=0,e.style.paddingLeft=0,e.style.paddingRight=0},enter(e){requestAnimationFrame(()=>{e.dataset.oldOverflow=e.style.overflow,e.dataset.elExistsWidth?e.style.maxWidth=e.dataset.elExistsWidth:e.scrollWidth!==0?e.style.maxWidth=`${e.scrollWidth}px`:e.style.maxWidth=0,e.style.paddingLeft=e.dataset.oldPaddingLeft,e.style.paddingRight=e.dataset.oldPaddingRight,e.style.overflow="hidden"})},afterEnter(e){e.style.maxWidth="",e.style.overflow=e.dataset.oldOverflow},enterCancelled(e){Tt(e)},beforeLeave(e){e.dataset||(e.dataset={}),e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingRight=e.style.paddingRight,e.dataset.oldOverflow=e.style.overflow,e.style.maxWidth=`${e.scrollWidth}px`,e.style.overflow="hidden"},leave(e){e.scrollWidth!==0&&(e.style.maxWidth=0,e.style.paddingTop=0,e.style.paddingRight=0)},afterLeave(e){Tt(e)},leaveCancelled(e){Tt(e)}};function Fo(e){return e.mode==="vertical"?Oo:Ho}const Bn={mode:{type:String,required:!0}};var Ro=i.defineComponent({name:"CollapseTransition",__name:"collapse-transtion",props:Bn,setup(e){const t=Fo(e);return(n,r)=>(i.openBlock(),i.createBlock(i.Transition,i.mergeProps({name:n.mode==="horizontal"?`${i.unref(U)}-horizontal-transition`:`${i.unref(U)}-vertical-transition`},i.toHandlers(i.unref(t))),{default:i.withCtx(()=>[i.renderSlot(n.$slots,"default")]),_:3},16,["name"]))}});const Wo=We(Ro),Lo=[Ct,kn];function Po(e){Lo.forEach(t=>e.use(t))}const No={install:Po};q.KCollapseTranstion=Wo,q.KForm=Ct,q.KVirtualList=kn,q.collapseProps=Bn,q.default=No,q.formType=Mt,q.virtualListProps=zn,Object.defineProperty(q,"__esModule",{value:!0})});
15
+ `)}function Fr(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}typeof window!="undefined"&&(window.__cssrContext={});function Rr(e,t,n,r){const{els:o}=t;if(n===void 0)o.forEach(Yt),t.els=[];else{const s=Ye(n,r);s&&o.includes(s)&&(Yt(s),t.els=o.filter(l=>l!==s))}}function Gt(e,t){e.push(t)}function Pr(e,t,n,r,o,s,l,d,a){let u;if(n===void 0&&(u=t.render(r),n=Fr(u)),a){a.adapter(n,u!=null?u:t.render(r));return}d===void 0&&(d=document.head);const h=Ye(n,d);if(h!==null&&!s)return h;const b=h!=null?h:Br(n);if(u===void 0&&(u=t.render(r)),b.textContent=u,h!==null)return h;if(l){const c=d.querySelector(`meta[name="${l}"]`);if(c)return d.insertBefore(b,c),Gt(t.els,b),b}return o?d.insertBefore(b,d.querySelector("style, link")):d.appendChild(b),Gt(t.els,b),b}function Wr(e){return Hr(this,this.instance,e)}function Lr(e={}){const{id:t,ssr:n,props:r,head:o=!1,force:s=!1,anchorMetaName:l,parent:d}=e;return Pr(this.instance,this,t,r,o,s,l,d,n)}function Dr(e={}){const{id:t,parent:n}=e;Rr(this.instance,this,t,n)}const Ze=function(e,t,n,r){return{instance:e,$:t,props:n,children:r,els:[],render:Wr,mount:Lr,unmount:Dr}},Nr=function(e,t,n,r){return Array.isArray(t)?Ze(e,{$:null},null,t):Array.isArray(n)?Ze(e,t,null,n):Array.isArray(r)?Ze(e,t,n,r):Ze(e,t,n,null)};function _r(e={}){const t={c:(...n)=>Nr(t,...n),use:(n,...r)=>n.install(t,...r),find:Ye,context:{},config:e};return t}function _i(e,t){if(e===void 0)return!1;if(t){const{context:{ids:n}}=t;return n.has(e)}return Ye(e)!==null}const{c:re}=_r(),Ke="vueuc-style";function Jt(e){return e&-e}class Qt{constructor(t,n){this.l=t,this.min=n;const r=new Array(t+1);for(let o=0;o<t+1;++o)r[o]=0;this.ft=r}add(t,n){if(n===0)return;const{l:r,ft:o}=this;for(t+=1;t<=r;)o[t]+=n,t+=Jt(t)}get(t){return this.sum(t+1)-this.sum(t)}sum(t){if(t===void 0&&(t=this.l),t<=0)return 0;const{ft:n,min:r,l:o}=this;if(t>o)throw new Error("[FinweckTree.sum]: `i` is larger than length.");let s=t*r;for(;t>0;)s+=n[t],t-=Jt(t);return s}getBound(t){let n=0,r=this.l;for(;r>n;){const o=Math.floor((n+r)/2),s=this.sum(o);if(s>t){r=o;continue}else if(s<t){if(n===o)return this.sum(n+1)<=t?n+1:o;n=o}else return o}return n}}function en(e){return typeof e=="string"?document.querySelector(e):e()}var Vr=i.defineComponent({name:"LazyTeleport",props:{to:{type:[String,Object],default:void 0},disabled:Boolean,show:{type:Boolean,required:!0}},setup(e){return{showTeleport:fr(i.toRef(e,"show")),mergedTo:i.computed(()=>{const{to:t}=e;return t!=null?t:"body"})}},render(){return this.showTeleport?this.disabled?ft("lazy-teleport",this.$slots):i.h(i.Teleport,{disabled:this.disabled,to:this.mergedTo},ft("lazy-teleport",this.$slots)):null}});const Ge={top:"bottom",bottom:"top",left:"right",right:"left"},tn={start:"end",center:"center",end:"start"},gt={top:"height",bottom:"height",left:"width",right:"width"},jr={"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"},qr={"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"},Xr={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},nn={top:!0,bottom:!1,left:!0,right:!1},rn={top:"end",bottom:"start",left:"end",right:"start"};function Yr(e,t,n,r,o,s){if(!o||s)return{placement:e,top:0,left:0};const[l,d]=e.split("-");let a=d!=null?d:"center",u={top:0,left:0};const h=(x,$,E)=>{let g=0,f=0;const M=n[x]-t[$]-t[x];return M>0&&r&&(E?f=nn[$]?M:-M:g=nn[$]?M:-M),{left:g,top:f}},b=l==="left"||l==="right";if(a!=="center"){const x=Xr[e],$=Ge[x],E=gt[x];if(n[E]>t[E]){if(t[x]+t[E]<n[E]){const g=(n[E]-t[E])/2;t[x]<g||t[$]<g?t[x]<t[$]?(a=tn[d],u=h(E,$,b)):u=h(E,x,b):a="center"}}else n[E]<t[E]&&t[$]<0&&t[x]>t[$]&&(a=tn[d])}else{const x=l==="bottom"||l==="top"?"left":"top",$=Ge[x],E=gt[x],g=(n[E]-t[E])/2;(t[x]<g||t[$]<g)&&(t[x]>t[$]?(a=rn[x],u=h(E,x,b)):(a=rn[$],u=h(E,$,b)))}let c=l;return t[l]<n[gt[l]]&&t[l]<t[Ge[l]]&&(c=Ge[l]),{placement:a!=="center"?`${c}-${a}`:c,left:u.left,top:u.top}}function Ur(e,t){return t?qr[e]:jr[e]}function Zr(e,t,n,r,o,s){if(s)switch(e){case"bottom-start":return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left)}px`,transform:"translateY(-100%)"};case"bottom-end":return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:"translateX(-100%) translateY(-100%)"};case"top-start":return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left)}px`,transform:""};case"top-end":return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:"translateX(-100%)"};case"right-start":return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:"translateX(-100%)"};case"right-end":return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:"translateX(-100%) translateY(-100%)"};case"left-start":return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left)}px`,transform:""};case"left-end":return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left)}px`,transform:"translateY(-100%)"};case"top":return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left+n.width/2)}px`,transform:"translateX(-50%)"};case"right":return{top:`${Math.round(n.top-t.top+n.height/2)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:"translateX(-100%) translateY(-50%)"};case"left":return{top:`${Math.round(n.top-t.top+n.height/2)}px`,left:`${Math.round(n.left-t.left)}px`,transform:"translateY(-50%)"};case"bottom":default:return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left+n.width/2)}px`,transform:"translateX(-50%) translateY(-100%)"}}switch(e){case"bottom-start":return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+o)}px`,transform:""};case"bottom-end":return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+n.width+o)}px`,transform:"translateX(-100%)"};case"top-start":return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+o)}px`,transform:"translateY(-100%)"};case"top-end":return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+n.width+o)}px`,transform:"translateX(-100%) translateY(-100%)"};case"right-start":return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+n.width+o)}px`,transform:""};case"right-end":return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+n.width+o)}px`,transform:"translateY(-100%)"};case"left-start":return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+o)}px`,transform:"translateX(-100%)"};case"left-end":return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+o)}px`,transform:"translateX(-100%) translateY(-100%)"};case"top":return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+n.width/2+o)}px`,transform:"translateY(-100%) translateX(-50%)"};case"right":return{top:`${Math.round(n.top-t.top+n.height/2+r)}px`,left:`${Math.round(n.left-t.left+n.width+o)}px`,transform:"translateY(-50%)"};case"left":return{top:`${Math.round(n.top-t.top+n.height/2+r)}px`,left:`${Math.round(n.left-t.left+o)}px`,transform:"translateY(-50%) translateX(-100%)"};case"bottom":default:return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+n.width/2+o)}px`,transform:"translateX(-50%)"}}}const Kr=re([re(".v-binder-follower-container",{position:"absolute",left:"0",right:"0",top:"0",height:"0",pointerEvents:"none",zIndex:"auto"}),re(".v-binder-follower-content",{position:"absolute",zIndex:"auto"},[re("> *",{pointerEvents:"all"})])]);var Vi=i.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 t=i.inject("VBinder"),n=Ee(()=>e.enabled!==void 0?e.enabled:e.show),r=i.ref(null),o=i.ref(null),s=()=>{const{syncTrigger:c}=e;c.includes("scroll")&&t.addScrollListener(a),c.includes("resize")&&t.addResizeListener(a)},l=()=>{t.removeScrollListener(a),t.removeResizeListener(a)};i.onMounted(()=>{n.value&&(a(),s())});const d=Xe();Kr.mount({id:"vueuc/binder",head:!0,anchorMetaName:Ke,ssr:d}),i.onBeforeUnmount(()=>{l()}),hr(()=>{n.value&&a()});const a=()=>{if(!n.value)return;const c=r.value;if(c===null)return;const x=t.targetRef,{x:$,y:E,overlap:g}=e,f=$!==void 0&&E!==void 0?lr($,E):pt(x);c.style.setProperty("--v-target-width",`${Math.round(f.width)}px`),c.style.setProperty("--v-target-height",`${Math.round(f.height)}px`);const{width:M,minWidth:z,placement:L,internalShift:K,flip:q}=e;c.setAttribute("v-placement",L),g?c.setAttribute("v-overlap",""):c.removeAttribute("v-overlap");const{style:p}=c;M==="target"?p.width=`${f.width}px`:M!==void 0?p.width=M:p.width="",z==="target"?p.minWidth=`${f.width}px`:z!==void 0?p.minWidth=z:p.minWidth="";const m=pt(c),T=pt(o.value),{left:C,top:I,placement:P}=Yr(L,f,m,K,q,g),v=Ur(P,g),{left:w,top:S,transform:k}=Zr(P,T,f,I,C,g);c.setAttribute("v-placement",P),c.style.setProperty("--v-offset-left",`${Math.round(C)}px`),c.style.setProperty("--v-offset-top",`${Math.round(I)}px`),c.style.transform=`translateX(${w}) translateY(${S}) ${k}`,c.style.setProperty("--v-transform-origin",v),c.style.transformOrigin=v};i.watch(n,c=>{c?(s(),u()):l()});const u=()=>{i.nextTick().then(a).catch(c=>console.error(c))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach(c=>{i.watch(i.toRef(e,c),a)}),["teleportDisabled"].forEach(c=>{i.watch(i.toRef(e,c),u)}),i.watch(i.toRef(e,"syncTrigger"),c=>{c.includes("resize")?t.addResizeListener(a):t.removeResizeListener(a),c.includes("scroll")?t.addScrollListener(a):t.removeScrollListener(a)});const h=wr(),b=Ee(()=>{const{to:c}=e;if(c!==void 0)return c;h.value});return{VBinder:t,mergedEnabled:n,offsetContainerRef:o,followerRef:r,mergedTo:b,syncPosition:a}},render(){return i.h(Vr,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var e,t;const n=i.h("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[i.h("div",{class:"v-binder-follower-content",ref:"followerRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))]);return this.zindexable?i.withDirectives(n,[[cr,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):n}})}}),ge=[],Gr=function(){return ge.some(function(e){return e.activeTargets.length>0})},Jr=function(){return ge.some(function(e){return e.skippedTargets.length>0})},on="ResizeObserver loop completed with undelivered notifications.",Qr=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:on}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=on),window.dispatchEvent(e)},Oe;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Oe||(Oe={}));var we=function(e){return Object.freeze(e)},eo=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,we(this)}return e}(),sn=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,we(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,r=t.y,o=t.top,s=t.right,l=t.bottom,d=t.left,a=t.width,u=t.height;return{x:n,y:r,top:o,right:s,bottom:l,left:d,width:a,height:u}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),wt=function(e){return e instanceof SVGElement&&"getBBox"in e},ln=function(e){if(wt(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var o=e,s=o.offsetWidth,l=o.offsetHeight;return!(s||l||e.getClientRects().length)},an=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)},to=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!="undefined"?window:{},Je=new WeakMap,un=/auto|scroll/,no=/^tb|vertical/,ro=/msie|trident/i.test(He.navigator&&He.navigator.userAgent),oe=function(e){return parseFloat(e||"0")},Se=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new eo((n?t:e)||0,(n?e:t)||0)},dn=we({devicePixelContentBoxSize:Se(),borderBoxSize:Se(),contentBoxSize:Se(),contentRect:new sn(0,0,0,0)}),cn=function(e,t){if(t===void 0&&(t=!1),Je.has(e)&&!t)return Je.get(e);if(ln(e))return Je.set(e,dn),dn;var n=getComputedStyle(e),r=wt(e)&&e.ownerSVGElement&&e.getBBox(),o=!ro&&n.boxSizing==="border-box",s=no.test(n.writingMode||""),l=!r&&un.test(n.overflowY||""),d=!r&&un.test(n.overflowX||""),a=r?0:oe(n.paddingTop),u=r?0:oe(n.paddingRight),h=r?0:oe(n.paddingBottom),b=r?0:oe(n.paddingLeft),c=r?0:oe(n.borderTopWidth),x=r?0:oe(n.borderRightWidth),$=r?0:oe(n.borderBottomWidth),E=r?0:oe(n.borderLeftWidth),g=b+u,f=a+h,M=E+x,z=c+$,L=d?e.offsetHeight-z-e.clientHeight:0,K=l?e.offsetWidth-M-e.clientWidth:0,q=o?g+M:0,p=o?f+z:0,m=r?r.width:oe(n.width)-q-K,T=r?r.height:oe(n.height)-p-L,C=m+g+K+M,I=T+f+L+z,P=we({devicePixelContentBoxSize:Se(Math.round(m*devicePixelRatio),Math.round(T*devicePixelRatio),s),borderBoxSize:Se(C,I,s),contentBoxSize:Se(m,T,s),contentRect:new sn(b,a,m,T)});return Je.set(e,P),P},fn=function(e,t,n){var r=cn(e,n),o=r.borderBoxSize,s=r.contentBoxSize,l=r.devicePixelContentBoxSize;switch(t){case Oe.DEVICE_PIXEL_CONTENT_BOX:return l;case Oe.BORDER_BOX:return o;default:return s}},oo=function(){function e(t){var n=cn(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=we([n.borderBoxSize]),this.contentBoxSize=we([n.contentBoxSize]),this.devicePixelContentBoxSize=we([n.devicePixelContentBoxSize])}return e}(),hn=function(e){if(ln(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},io=function(){var e=1/0,t=[];ge.forEach(function(l){if(l.activeTargets.length!==0){var d=[];l.activeTargets.forEach(function(u){var h=new oo(u.target),b=hn(u.target);d.push(h),u.lastReportedSize=fn(u.target,u.observedBox),b<e&&(e=b)}),t.push(function(){l.callback.call(l.observer,d,l.observer)}),l.activeTargets.splice(0,l.activeTargets.length)}});for(var n=0,r=t;n<r.length;n++){var o=r[n];o()}return e},pn=function(e){ge.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(o){o.isActive()&&(hn(o.target)>e?n.activeTargets.push(o):n.skippedTargets.push(o))})})},so=function(){var e=0;for(pn(e);Gr();)e=io(),pn(e);return Jr()&&Qr(),e>0},bt,mn=[],lo=function(){return mn.splice(0).forEach(function(e){return e()})},ao=function(e){if(!bt){var t=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return lo()}).observe(n,r),bt=function(){n.textContent="".concat(t?t--:t++)}}mn.push(e),bt()},uo=function(e){ao(function(){requestAnimationFrame(e)})},Qe=0,co=function(){return!!Qe},fo=250,ho={attributes:!0,characterData:!0,childList:!0,subtree:!0},vn=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],gn=function(e){return e===void 0&&(e=0),Date.now()+e},xt=!1,po=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=fo),!xt){xt=!0;var r=gn(t);uo(function(){var o=!1;try{o=so()}finally{if(xt=!1,t=r-gn(),!co())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,ho)};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(),vn.forEach(function(n){return He.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),vn.forEach(function(n){return He.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),yt=new po,wn=function(e){!Qe&&e>0&&yt.start(),Qe+=e,!Qe&&yt.stop()},mo=function(e){return!wt(e)&&!to(e)&&getComputedStyle(e).display==="inline"},vo=function(){function e(t,n){this.target=t,this.observedBox=n||Oe.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=fn(this.target,this.observedBox,!0);return mo(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),go=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),et=new WeakMap,bn=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},tt=function(){function e(){}return e.connect=function(t,n){var r=new go(t,n);et.set(t,r)},e.observe=function(t,n,r){var o=et.get(t),s=o.observationTargets.length===0;bn(o.observationTargets,n)<0&&(s&&ge.push(o),o.observationTargets.push(new vo(n,r&&r.box)),wn(1),yt.schedule())},e.unobserve=function(t,n){var r=et.get(t),o=bn(r.observationTargets,n),s=r.observationTargets.length===1;o>=0&&(s&&ge.splice(ge.indexOf(r),1),r.observationTargets.splice(o,1),wn(-1))},e.disconnect=function(t){var n=this,r=et.get(t);r.observationTargets.slice().forEach(function(o){return n.unobserve(t,o.target)}),r.activeTargets.splice(0,r.activeTargets.length)},e}(),wo=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.");tt.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(!an(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");tt.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(!an(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");tt.unobserve(this,t)},e.prototype.disconnect=function(){tt.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();class bo{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new(typeof window!="undefined"&&window.ResizeObserver||wo)(this.handleResize),this.elHandlersMap=new Map}handleResize(t){for(const n of t){const r=this.elHandlersMap.get(n.target);r!==void 0&&r(n)}}registerHandler(t,n){this.elHandlersMap.set(t,n),this.observer.observe(t)}unregisterHandler(t){this.elHandlersMap.has(t)&&(this.elHandlersMap.delete(t),this.observer.unobserve(t))}}var xn=new bo,nt=i.defineComponent({name:"ResizeObserver",props:{onResize:Function},setup(e){let t=!1;const n=i.getCurrentInstance().proxy;function r(o){const{onResize:s}=e;s!==void 0&&s(o)}i.onMounted(()=>{const o=n.$el;if(o===void 0){qt("resize-observer","$el does not exist.");return}if(o.nextElementSibling!==o.nextSibling&&o.nodeType===3&&o.nodeValue!==""){qt("resize-observer","$el can not be observed (it may be a text node).");return}o.nextElementSibling!==null&&(xn.registerHandler(o.nextElementSibling,r),t=!0)}),i.onBeforeUnmount(()=>{t&&xn.unregisterHandler(n.$el.nextElementSibling)})},render(){return i.renderSlot(this.$slots,"default")}});let rt;function xo(){return typeof document=="undefined"?!1:(rt===void 0&&("matchMedia"in window?rt=window.matchMedia("(pointer:coarse)").matches:rt=!1),rt)}let $t;function yn(){return typeof document=="undefined"?1:($t===void 0&&($t="chrome"in window?window.devicePixelRatio:1),$t)}const $n="VVirtualListXScroll";function yo({columnsRef:e,renderColRef:t,renderItemWithColsRef:n}){const r=i.ref(0),o=i.ref(0),s=i.computed(()=>{const u=e.value;if(u.length===0)return null;const h=new Qt(u.length,0);return u.forEach((b,c)=>{h.add(c,b.width)}),h}),l=Ee(()=>{const u=s.value;return u!==null?Math.max(u.getBound(o.value)-1,0):0}),d=u=>{const h=s.value;return h!==null?h.sum(u):0},a=Ee(()=>{const u=s.value;return u!==null?Math.min(u.getBound(o.value+r.value)+1,e.value.length-1):0});return i.provide($n,{startIndexRef:l,endIndexRef:a,columnsRef:e,renderColRef:t,renderItemWithColsRef:n,getLeft:d}),{listWidthRef:r,scrollLeftRef:o}}const En=i.defineComponent({name:"VirtualListRow",props:{index:{type:Number,required:!0},item:{type:Object,required:!0}},setup(){const{startIndexRef:e,endIndexRef:t,columnsRef:n,getLeft:r,renderColRef:o,renderItemWithColsRef:s}=i.inject($n);return{startIndex:e,endIndex:t,columns:n,renderCol:o,renderItemWithCols:s,getLeft:r}},render(){const{startIndex:e,endIndex:t,columns:n,renderCol:r,renderItemWithCols:o,getLeft:s,item:l}=this;if(o!=null)return o({itemIndex:this.index,startColIndex:e,endColIndex:t,allColumns:n,item:l,getLeft:s});if(r!=null){const d=[];for(let a=e;a<=t;++a){const u=n[a];d.push(r({column:u,left:s(a),item:l}))}return d}return null}}),$o=re(".v-vl",{maxHeight:"inherit",height:"100%",overflow:"auto",minWidth:"1px"},[re("&:not(.v-vl--show-scrollbar)",{scrollbarWidth:"none"},[re("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",{width:0,height:0,display:"none"})])]);var Eo=i.defineComponent({name:"VirtualList",inheritAttrs:!1,props:{showScrollbar:{type:Boolean,default:!0},columns:{type:Array,default:()=>[]},renderCol:Function,renderItemWithCols:Function,items:{type:Array,default:()=>[]},itemSize:{type:Number,required:!0},itemResizable:Boolean,itemsStyle:[String,Object],visibleItemsTag:{type:[String,Object],default:"div"},visibleItemsProps:Object,ignoreItemResize:Boolean,onScroll:Function,onWheel:Function,onResize:Function,defaultScrollKey:[Number,String],defaultScrollIndex:Number,keyField:{type:String,default:"key"},paddingTop:{type:[Number,String],default:0},paddingBottom:{type:[Number,String],default:0}},setup(e){const t=Xe();$o.mount({id:"vueuc/virtual-list",head:!0,anchorMetaName:Ke,ssr:t}),i.onMounted(()=>{const{defaultScrollIndex:v,defaultScrollKey:w}=e;v!=null?g({index:v}):w!=null&&g({key:w})});let n=!1,r=!1;i.onActivated(()=>{if(n=!1,!r){r=!0;return}g({top:x.value,left:l.value})}),i.onDeactivated(()=>{n=!0,r||(r=!0)});const o=Ee(()=>{if(e.renderCol==null&&e.renderItemWithCols==null||e.columns.length===0)return;let v=0;return e.columns.forEach(w=>{v+=w.width}),v}),s=i.computed(()=>{const v=new Map,{keyField:w}=e;return e.items.forEach((S,k)=>{v.set(S[w],k)}),v}),{scrollLeftRef:l,listWidthRef:d}=yo({columnsRef:i.toRef(e,"columns"),renderColRef:i.toRef(e,"renderCol"),renderItemWithColsRef:i.toRef(e,"renderItemWithCols")}),a=i.ref(null),u=i.ref(void 0),h=new Map,b=i.computed(()=>{const{items:v,itemSize:w,keyField:S}=e,k=new Qt(v.length,w);return v.forEach((O,H)=>{const A=O[S],F=h.get(A);F!==void 0&&k.add(H,F)}),k}),c=i.ref(0),x=i.ref(0),$=Ee(()=>Math.max(b.value.getBound(x.value-Bt(e.paddingTop))-1,0)),E=i.computed(()=>{const{value:v}=u;if(v===void 0)return[];const{items:w,itemSize:S}=e,k=$.value,O=Math.min(k+Math.ceil(v/S+1),w.length-1),H=[];for(let A=k;A<=O;++A)H.push(w[A]);return H}),g=(v,w)=>{if(typeof v=="number"){L(v,w,"auto");return}const{left:S,top:k,index:O,key:H,position:A,behavior:F,debounce:j=!0}=v;if(S!==void 0||k!==void 0)L(S,k,F);else if(O!==void 0)z(O,F,j);else if(H!==void 0){const ce=s.value.get(H);ce!==void 0&&z(ce,F,j)}else A==="bottom"?L(0,Number.MAX_SAFE_INTEGER,F):A==="top"&&L(0,0,F)};let f,M=null;function z(v,w,S){const{value:k}=b,O=k.sum(v)+Bt(e.paddingTop);if(!S)a.value.scrollTo({left:0,top:O,behavior:w});else{f=v,M!==null&&window.clearTimeout(M),M=window.setTimeout(()=>{f=void 0,M=null},16);const{scrollTop:H,offsetHeight:A}=a.value;if(O>H){const F=k.get(v);O+F<=H+A||a.value.scrollTo({left:0,top:O+F-A,behavior:w})}else a.value.scrollTo({left:0,top:O,behavior:w})}}function L(v,w,S){a.value.scrollTo({left:v,top:w,behavior:S})}function K(v,w){var S,k,O;if(n||e.ignoreItemResize||P(w.target))return;const{value:H}=b,A=s.value.get(v),F=H.get(A),j=(O=(k=(S=w.borderBoxSize)===null||S===void 0?void 0:S[0])===null||k===void 0?void 0:k.blockSize)!==null&&O!==void 0?O:w.contentRect.height;if(j===F)return;j-e.itemSize===0?h.delete(v):h.set(v,j-e.itemSize);const fe=j-F;if(fe===0)return;H.add(A,fe);const ie=a.value;if(ie!=null){if(f===void 0){const Re=H.sum(A);ie.scrollTop>Re&&ie.scrollBy(0,fe)}else if(A<f)ie.scrollBy(0,fe);else if(A===f){const Re=H.sum(A);j+Re>ie.scrollTop+ie.offsetHeight&&ie.scrollBy(0,fe)}I()}c.value++}const q=!xo();let p=!1;function m(v){var w;(w=e.onScroll)===null||w===void 0||w.call(e,v),(!q||!p)&&I()}function T(v){var w;if((w=e.onWheel)===null||w===void 0||w.call(e,v),q){const S=a.value;if(S!=null){if(v.deltaX===0&&(S.scrollTop===0&&v.deltaY<=0||S.scrollTop+S.offsetHeight>=S.scrollHeight&&v.deltaY>=0))return;v.preventDefault(),S.scrollTop+=v.deltaY/yn(),S.scrollLeft+=v.deltaX/yn(),I(),p=!0,zt(()=>{p=!1})}}}function C(v){if(n||P(v.target))return;if(e.renderCol==null&&e.renderItemWithCols==null){if(v.contentRect.height===u.value)return}else if(v.contentRect.height===u.value&&v.contentRect.width===d.value)return;u.value=v.contentRect.height,d.value=v.contentRect.width;const{onResize:w}=e;w!==void 0&&w(v)}function I(){const{value:v}=a;v!=null&&(x.value=v.scrollTop,l.value=v.scrollLeft)}function P(v){let w=v;for(;w!==null;){if(w.style.display==="none")return!0;w=w.parentElement}return!1}return{listHeight:u,listStyle:{overflow:"auto"},keyToIndex:s,itemsStyle:i.computed(()=>{const{itemResizable:v}=e,w=ke(b.value.sum());return c.value,[e.itemsStyle,{boxSizing:"content-box",width:ke(o.value),height:v?"":w,minHeight:v?w:"",paddingTop:ke(e.paddingTop),paddingBottom:ke(e.paddingBottom)}]}),visibleItemsStyle:i.computed(()=>(c.value,{transform:`translateY(${ke(b.value.sum($.value))})`})),viewportItems:E,listElRef:a,itemsElRef:i.ref(null),scrollTo:g,handleListResize:C,handleListScroll:m,handleListWheel:T,handleItemResize:K}},render(){const{itemResizable:e,keyField:t,keyToIndex:n,visibleItemsTag:r}=this;return i.h(nt,{onResize:this.handleListResize},{default:()=>{var o,s;return i.h("div",i.mergeProps(this.$attrs,{class:["v-vl",this.showScrollbar&&"v-vl--show-scrollbar"],onScroll:this.handleListScroll,onWheel:this.handleListWheel,ref:"listElRef"}),[this.items.length!==0?i.h("div",{ref:"itemsElRef",class:"v-vl-items",style:this.itemsStyle},[i.h(r,Object.assign({class:"v-vl-visible-items",style:this.visibleItemsStyle},this.visibleItemsProps),{default:()=>{const{renderCol:l,renderItemWithCols:d}=this;return this.viewportItems.map(a=>{const u=a[t],h=n.get(u),b=l!=null?i.h(En,{index:h,item:a}):void 0,c=d!=null?i.h(En,{index:h,item:a}):void 0,x=this.$slots.default({item:a,renderedCols:b,renderedItemWithCols:c,index:h})[0];return e?i.h(nt,{key:u,onResize:$=>this.handleItemResize(u,$)},{default:()=>x}):(x.key=u,x)})}})]):(s=(o=this.$slots).empty)===null||s===void 0?void 0:s.call(o)])}})}});const To=re(".v-x-scroll",{overflow:"auto",scrollbarWidth:"none"},[re("&::-webkit-scrollbar",{width:0,height:0})]);var ji=i.defineComponent({name:"XScroll",props:{disabled:Boolean,onScroll:Function},setup(){const e=i.ref(null);function t(o){!(o.currentTarget.offsetWidth<o.currentTarget.scrollWidth)||o.deltaY===0||(o.currentTarget.scrollLeft+=o.deltaY+o.deltaX,o.preventDefault())}const n=Xe();return To.mount({id:"vueuc/x-scroll",head:!0,anchorMetaName:Ke,ssr:n}),Object.assign({selfRef:e,handleWheel:t},{scrollTo(...o){var s;(s=e.value)===null||s===void 0||s.scrollTo(...o)}})},render(){return i.h("div",{ref:"selfRef",onScroll:this.onScroll,onWheel:this.disabled?void 0:this.handleWheel,class:"v-x-scroll"},this.$slots)}});const le="v-hidden",So=re("[v-hidden]",{display:"none!important"});var qi=i.defineComponent({name:"Overflow",props:{getCounter:Function,getTail:Function,updateCounter:Function,onUpdateCount:Function,onUpdateOverflow:Function},setup(e,{slots:t}){const n=i.ref(null),r=i.ref(null);function o(l){const{value:d}=n,{getCounter:a,getTail:u}=e;let h;if(a!==void 0?h=a():h=r.value,!d||!h)return;h.hasAttribute(le)&&h.removeAttribute(le);const{children:b}=d;if(l.showAllItemsBeforeCalculate)for(const z of b)z.hasAttribute(le)&&z.removeAttribute(le);const c=d.offsetWidth,x=[],$=t.tail?u==null?void 0:u():null;let E=$?$.offsetWidth:0,g=!1;const f=d.children.length-(t.tail?1:0);for(let z=0;z<f-1;++z){if(z<0)continue;const L=b[z];if(g){L.hasAttribute(le)||L.setAttribute(le,"");continue}else L.hasAttribute(le)&&L.removeAttribute(le);const K=L.offsetWidth;if(E+=K,x[z]=K,E>c){const{updateCounter:q}=e;for(let p=z;p>=0;--p){const m=f-1-p;q!==void 0?q(m):h.textContent=`${m}`;const T=h.offsetWidth;if(E-=x[p],E+T<=c||p===0){g=!0,z=p-1,$&&(z===-1?($.style.maxWidth=`${c-T}px`,$.style.boxSizing="border-box"):$.style.maxWidth="");const{onUpdateCount:C}=e;C&&C(m);break}}}}const{onUpdateOverflow:M}=e;g?M!==void 0&&M(!0):(M!==void 0&&M(!1),h.setAttribute(le,""))}const s=Xe();return So.mount({id:"vueuc/overflow",head:!0,anchorMetaName:Ke,ssr:s}),i.onMounted(()=>o({showAllItemsBeforeCalculate:!1})),{selfRef:n,counterRef:r,sync:o}},render(){const{$slots:e}=this;return i.nextTick(()=>this.sync({showAllItemsBeforeCalculate:!1})),i.h("div",{class:"v-overflow",ref:"selfRef"},[i.renderSlot(e,"default"),e.counter?e.counter():i.h("span",{style:{display:"inline-block"},ref:"counterRef"}),e.tail?e.tail():null])}});function Tn(e){return e instanceof HTMLElement}function Sn(e){for(let t=0;t<e.childNodes.length;t++){const n=e.childNodes[t];if(Tn(n)&&(Cn(n)||Sn(n)))return!0}return!1}function Mn(e){for(let t=e.childNodes.length-1;t>=0;t--){const n=e.childNodes[t];if(Tn(n)&&(Cn(n)||Mn(n)))return!0}return!1}function Cn(e){if(!Mo(e))return!1;try{e.focus({preventScroll:!0})}catch{}return document.activeElement===e}function Mo(e){if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.getAttribute("disabled"))return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return e.type!=="hidden"&&e.type!=="file";case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}}let Fe=[];const Xi=i.defineComponent({name:"FocusTrap",props:{disabled:Boolean,active:Boolean,autoFocus:{type:Boolean,default:!0},onEsc:Function,initialFocusTo:String,finalFocusTo:String,returnFocusOnDeactivated:{type:Boolean,default:!0}},setup(e){const t=tr(),n=i.ref(null),r=i.ref(null);let o=!1,s=!1;const l=typeof document=="undefined"?null:document.activeElement;function d(){return Fe[Fe.length-1]===t}function a(g){var f;g.code==="Escape"&&d()&&((f=e.onEsc)===null||f===void 0||f.call(e,g))}i.onMounted(()=>{i.watch(()=>e.active,g=>{g?(b(),N("keydown",document,a)):(R("keydown",document,a),o&&c())},{immediate:!0})}),i.onBeforeUnmount(()=>{R("keydown",document,a),o&&c()});function u(g){if(!s&&d()){const f=h();if(f===null||f.contains(Vn(g)))return;x("first")}}function h(){const g=n.value;if(g===null)return null;let f=g;for(;f=f.nextSibling,!(f===null||f instanceof Element&&f.tagName==="DIV"););return f}function b(){var g;if(!e.disabled){if(Fe.push(t),e.autoFocus){const{initialFocusTo:f}=e;f===void 0?x("first"):(g=en(f))===null||g===void 0||g.focus({preventScroll:!0})}o=!0,document.addEventListener("focus",u,!0)}}function c(){var g;if(e.disabled||(document.removeEventListener("focus",u,!0),Fe=Fe.filter(M=>M!==t),d()))return;const{finalFocusTo:f}=e;f!==void 0?(g=en(f))===null||g===void 0||g.focus({preventScroll:!0}):e.returnFocusOnDeactivated&&l instanceof HTMLElement&&(s=!0,l.focus({preventScroll:!0}),s=!1)}function x(g){if(d()&&e.active){const f=n.value,M=r.value;if(f!==null&&M!==null){const z=h();if(z==null||z===M){s=!0,f.focus({preventScroll:!0}),s=!1;return}s=!0;const L=g==="first"?Sn(z):Mn(z);s=!1,L||(s=!0,f.focus({preventScroll:!0}),s=!1)}}}function $(g){if(s)return;const f=h();f!==null&&(g.relatedTarget!==null&&f.contains(g.relatedTarget)?x("last"):x("first"))}function E(g){s||(g.relatedTarget!==null&&g.relatedTarget===n.value?x("last"):x("first"))}return{focusableStartRef:n,focusableEndRef:r,focusableStyle:"position: absolute; height: 0; width: 0;",handleStartFocus:$,handleEndFocus:E}},render(){const{default:e}=this.$slots;if(e===void 0)return null;if(this.disabled)return e();const{active:t,focusableStyle:n}=this;return i.h(i.Fragment,null,[i.h("div",{"aria-hidden":"true",tabindex:t?"0":"-1",ref:"focusableStartRef",style:n,onFocus:this.handleStartFocus}),e(),i.h("div",{"aria-hidden":"true",style:n,ref:"focusableEndRef",tabindex:t?"0":"-1",onFocus:this.handleEndFocus})])}}),X="king",Co="is-";function be(e,t,n,r,o){let s=`${e}-${t}`;return n&&(s+=`-${n}`),r&&(s+=`__${r}`),o&&(s+=`--${o}`),s}const ko=Symbol("namespaceContextKey");function zo(e){const t=e||(i.getCurrentInstance()?i.inject(ko,i.ref(X)):i.ref(X));return i.computed(()=>i.unref(t)||X)}function Yi(e,t){const n=zo(t);return{namespace:n,b:(r="")=>be(n.value,e,r,"",""),e:r=>r?be(n.value,e,"",r,""):"",m:r=>r?be(n.value,e,"","",r):"",be:(r,o)=>r&&o?be(n.value,e,r,o,""):"",em:(r,o)=>r&&o?be(n.value,e,"",r,o):"",bm:(r,o)=>r&&o?be(n.value,e,r,"",o):"",bem:(r,o,s)=>r&&o&&s?be(n.value,e,r,o,s):"",is:(r,...o)=>{const s=o.length>=1?o[0]:!0;return r&&s?`${Co}${r}`:""},cssVar:r=>{const o={};for(const s in r)r[s]&&(o[`--${n.value}-${s}`]=r[s]);return o},cssVarName:r=>`--${n.value}-${r}`,cssVarBlock:r=>{const o={};for(const s in r)r[s]&&(o[`--${n.value}-${e}-${s}`]=r[s]);return o},cssVarBlockName:r=>`--${n.value}-${e}-${r}`}}const Bo={container:Function,content:Function,onScroll:Function,xScrollable:Boolean};function Io(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!i.isVNode(e)}var Ao=i.defineComponent({name:"KScrollbar",props:Bo,inheritAttrs:!1,setup(e){i.onMounted(()=>{e.container||Me()});const t=()=>{Me()},n=()=>{Me()},r=i.ref(null),o=i.ref(null),s=i.ref(null),l=i.ref(null),d=i.ref(null),a=i.ref(null),u=i.ref(null),h=i.ref(null),b=i.ref(null),c=i.ref(null),x=i.computed(()=>{var y;return((y=e.content)==null?void 0:y.call(e))||r.value}),$=i.computed(()=>{var y;return((y=e.container)==null?void 0:y.call(e))||o.value}),E=i.ref(0),g=i.ref(0),f=i.computed(()=>{const{value:y}=u,{value:B}=d;return y!==null&&B!==null&&B>y}),M=i.computed(()=>{const{value:y}=u,{value:B}=d,{value:D}=b;return y===null||B===null||D===null?0:Math.min(y,D*y/B+5*1.5)}),z=i.computed(()=>`${M.value}px`),L=i.computed(()=>{const{value:y}=u,{value:B}=E,{value:D}=d,{value:G}=b;if(y===null||D===null||G===null)return 0;{const Y=D-y;return Y?B/Y*(G-M.value):0}}),K=i.computed(()=>`${L.value}px`);let q=!1,p=0,m=0,T,C;const I=y=>{if(!q)return;C!==void 0&&window.clearTimeout(C),T!==void 0&&window.clearTimeout(T);const{value:B}=u,{value:D}=d,{value:G}=M;if(B===null||D===null)return;const Y=(y.clientY-m)*(D-B)/(B-G),St=D-B;let Q=p+Y;Q=Math.min(St,Q),Q=Math.max(Q,0);const{value:Pe}=$;Pe&&(Pe.scrollTop=Q)},P=y=>{y.preventDefault(),y.stopPropagation(),R("mousemove",window,I,!0),R("mouseup",window,P,!0),q=!1,Me()},v=y=>{y.preventDefault(),y.stopPropagation(),N("mousemove",window,I,!0),N("mouseup",window,P,!0),p=E.value,m=y.clientY,q=!0};function w(y){const{onScroll:B}=e;B&&B(y),An()}const S=i.computed(()=>{const{value:y}=h,{value:B}=a;return y!==null&&B!==null&&B>y}),k=i.computed(()=>{const{value:y}=h,{value:B}=a,{value:D}=c;return y===null||B===null||D===null?0:D*y/B+5*1.5}),O=i.computed(()=>`${k.value}px`),H=i.computed(()=>{const{value:y}=h,{value:B}=g,{value:D}=a,{value:G}=c;if(y===null||D===null||G===null)return 0;{const Y=D-y;return Y?B/Y*(G-k.value):0}}),A=i.computed(()=>`${H.value}px`);let F=!1,j=0,ce=0;const fe=y=>{if(!F)return;C!==void 0&&window.clearTimeout(C),T!==void 0&&window.clearTimeout(T);const{value:B}=h,{value:D}=a,{value:G}=k;if(B===null||D===null)return;const Y=(y.clientX-ce)*(D-B)/(B-G),St=D-B;let Q=j+Y;Q=Math.min(St,Q),Q=Math.max(Q,0);const{value:Pe}=$;Pe&&(Pe.scrollLeft=Q)},ie=y=>{y.preventDefault(),y.stopPropagation(),R("mousemove",window,fe,!0),R("mouseup",window,ie,!0),F=!1,Me()};function Re(y){y.preventDefault(),y.stopPropagation(),F=!0,N("mousemove",window,fe,!0),N("mouseup",window,ie,!0),j=g.value,ce=y.clientX}function An(){const{value:y}=$;y&&(E.value=y.scrollTop,g.value=y.scrollLeft)}const Yo=()=>{const{value:y}=x;if(y){const Y=y.getBoundingClientRect();d.value=Y.height,a.value=Y.width}const{value:B}=$;if(B){const Y=B.getBoundingClientRect();u.value=Y.height,h.value=Y.width}const{value:D}=s;D&&(b.value=D.offsetHeight);const{value:G}=l;G&&(c.value=G.offsetWidth)};function Me(){Yo(),An()}return{sync:Me,handleContentResize:t,handleContainerResize:n,contentRef:r,yRailRef:s,xRailRef:l,containerRef:o,contentHeightRef:d,containerHeightRef:u,needYBarRef:f,needXBarRef:S,yBarSizePxRef:z,handleYScrollMouseDown:v,handleXScrollMouseDown:Re,yBarTopPxRef:K,handleScroll:w,xBarSizePxRef:O,xBarLeftPxRef:A}},render(){let e;const{$slots:t,xScrollable:n}=this,r=()=>i.createVNode("div",{class:`${X}-scrollbar-rail ${X}-scrollbar-rail--horizontal`,ref:"xRailRef"},[this.needXBarRef&&i.createVNode("div",{class:`${X}-scrollbar-rail__scrollbar--horizontal`,style:{width:this.xBarSizePxRef,left:this.xBarLeftPxRef},onMousedown:this.handleXScrollMouseDown},null)]),o=()=>i.createVNode("div",{class:`${X}-scrollbar-rail ${X}-scrollbar-rail--vertical`,ref:"yRailRef"},[this.needYBarRef&&i.createVNode("div",{class:`${X}-scrollbar-rail__scrollbar--vertical`,style:{height:this.yBarSizePxRef,top:this.yBarTopPxRef},onMousedown:this.handleYScrollMouseDown},null)]),s=()=>{var l;return i.createVNode("div",i.mergeProps({class:`${X}-scrollbar`},this.$attrs),[this.container?(l=t.default)==null?void 0:l.call(t):i.createVNode("div",{class:`${X}-scrollbar-container`,onScroll:this.handleScroll,ref:"containerRef"},[i.createVNode(nt,{onResize:this.handleContentResize},{default:()=>{var d;return[i.createVNode("div",{ref:"contentRef",class:`${X}-scrollbar-content`},[(d=t.default)==null?void 0:d.call(t)])]}})]),o(),n&&r()])};return this.container?s():i.createVNode(nt,{onResize:this.handleContainerResize},Io(e=s())?e:{default:()=>[e]})}});const Oo=Ce(Ao),kn={items:{type:Array,default:()=>[]},itemSize:{type:Number,required:!0},itemResizable:Boolean,paddingTop:{type:[Number,String],default:0},paddingBottom:{type:[Number,String],default:0},keyField:{type:String,default:"key"},xScrollable:Boolean,onScroll:Function,onWheel:Function,onResize:Function};var Ho=i.defineComponent({__name:"virtual-list",props:kn,setup(e,{expose:t}){const n=e,r=i.ref(null),o=i.ref(null);function s(){var c;return(c=r.value)==null?void 0:c.listElRef}function l(){var c;return(c=r.value)==null?void 0:c.itemsElRef}const d=()=>{var c;return(c=o.value)==null?void 0:c.sync()},a=On.debounce(()=>{var c;if(r.value){const x=r.value.listElRef.scrollTop,$=r.value.viewportItems.map(E=>i.toRaw(E));(c=n.onScroll)==null||c.call(n,{viewportItems:$,scrollTop:x})}},100);function u(){a(),d()}i.onMounted(()=>{setTimeout(()=>{d()},100)});function h(){d()}function b(c,x){var $,E;typeof c=="number"?($=r.value)==null||$.scrollTo(c,x!=null?x:0):(E=r.value)==null||E.scrollTo(c)}return t({getScrollContainer:s,getScrollContent:l,scrollTo:b}),(c,x)=>(i.openBlock(),i.createBlock(i.unref(Oo),{ref_key:"scrollbarInstRef",ref:o,style:{"max-height":"300px"},"x-scrollable":c.xScrollable,container:s,content:l},{default:i.withCtx(()=>[i.createVNode(i.unref(Eo),{ref_key:"virtualListInstRef",ref:r,items:c.items,style:{height:"100%"},"item-size":c.itemSize,"item-resizable":c.itemResizable,"show-scrollbar":!1,"padding-bottom":c.paddingBottom,"padding-top":c.paddingTop,"on-scroll":u,"on-resize":h},{default:i.withCtx(({item:$,index:E})=>[i.renderSlot(c.$slots,"default",{item:$,index:E})]),_:3},8,["items","item-size","item-resizable","padding-bottom","padding-top"])]),_:3},8,["x-scrollable"]))}});const zn=Ce(Ho);function Et(e){e.style.maxHeight="",e.style.overflow=e.dataset.oldOverflow,e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom}function Tt(e){e.style.maxWidth="",e.style.overflow=e.dataset.oldOverflow,e.style.paddingLeft=e.dataset.oldPaddingLeft,e.style.paddingRight=e.dataset.oldPaddingRight}const Fo={beforeEnter(e){e.dataset||(e.dataset={}),e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.style.height&&(e.dataset.elExistsHeight=e.style.height),e.style.maxHeight=0,e.style.paddingTop=0,e.style.paddingBottom=0},enter(e){requestAnimationFrame(()=>{e.dataset.oldOverflow=e.style.overflow,e.dataset.elExistsHeight?e.style.maxHeight=e.dataset.elExistsHeight:e.scrollHeight!==0?e.style.maxHeight=`${e.scrollHeight}px`:e.style.maxHeight=0,e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom,e.style.overflow="hidden"})},afterEnter(e){e.style.maxHeight="",e.style.overflow=e.dataset.oldOverflow},enterCancelled(e){Et(e)},beforeLeave(e){e.dataset||(e.dataset={}),e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.dataset.oldOverflow=e.style.overflow,e.style.maxHeight=`${e.scrollHeight}px`,e.style.overflow="hidden"},leave(e){e.scrollHeight!==0&&(e.style.maxHeight=0,e.style.paddingTop=0,e.style.paddingBottom=0)},afterLeave(e){Et(e)},leaveCancelled(e){Et(e)}},Ro={beforeEnter(e){e.dataset||(e.dataset={}),e.dataset.oldPaddingLeft=e.style.paddingLeft,e.dataset.oldPaddingRight=e.style.paddingRight,e.style.width&&(e.dataset.elExistsWidth=e.style.width),e.style.maxWidth=0,e.style.paddingLeft=0,e.style.paddingRight=0},enter(e){requestAnimationFrame(()=>{e.dataset.oldOverflow=e.style.overflow,e.dataset.elExistsWidth?e.style.maxWidth=e.dataset.elExistsWidth:e.scrollWidth!==0?e.style.maxWidth=`${e.scrollWidth}px`:e.style.maxWidth=0,e.style.paddingLeft=e.dataset.oldPaddingLeft,e.style.paddingRight=e.dataset.oldPaddingRight,e.style.overflow="hidden"})},afterEnter(e){e.style.maxWidth="",e.style.overflow=e.dataset.oldOverflow},enterCancelled(e){Tt(e)},beforeLeave(e){e.dataset||(e.dataset={}),e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingRight=e.style.paddingRight,e.dataset.oldOverflow=e.style.overflow,e.style.maxWidth=`${e.scrollWidth}px`,e.style.overflow="hidden"},leave(e){e.scrollWidth!==0&&(e.style.maxWidth=0,e.style.paddingTop=0,e.style.paddingRight=0)},afterLeave(e){Tt(e)},leaveCancelled(e){Tt(e)}};function Po(e){return e.mode==="vertical"?Fo:Ro}const Bn={mode:{type:String,required:!0}};var Wo=i.defineComponent({name:"CollapseTransition",__name:"collapse-transtion",props:Bn,setup(e){const t=Po(e);return(n,r)=>(i.openBlock(),i.createBlock(i.Transition,i.mergeProps({name:n.mode==="horizontal"?`${i.unref(X)}-horizontal-transition`:`${i.unref(X)}-vertical-transition`},i.toHandlers(i.unref(t))),{default:i.withCtx(()=>[i.renderSlot(n.$slots,"default")]),_:3},16,["name"]))}});const Lo=Ce(Wo),In={modelValue:{type:Boolean,required:!0}};var Do=i.defineComponent({name:"ProDialog",__name:"pro-dialog",props:In,emits:["onConfirm","onCancel","update:modelValue"],setup(e,{emit:t}){const n=e,r=t,o=i.useModel(n,"modelValue"),s=()=>r("onConfirm"),l=()=>r("onCancel");return(d,a)=>(i.openBlock(),i.createBlock(i.unref(Hn.Modal),{open:i.unref(o),"onUpdate:open":a[0]||(a[0]=u=>i.isRef(o)?o.value=u:null),"wrap-class-name":`${i.unref(X)}-pro-dialog`,onOk:s,onCancel:l},{default:i.withCtx(()=>[i.renderSlot(d.$slots,"default")]),_:3},8,["open","wrap-class-name"]))}});function No(){const e=i.ref(!1),t=()=>{e.value=!0},n=()=>{e.value=!1},r={openDialog:t,closeDialog:n},o=i.getCurrentInstance();return o&&o.emit("init",r),{dialogVisible:e,openDialog:t,closeDialog:n}}function _o(){const e=i.ref(null),t=()=>{const n=i.unref(e.value);return n||console.error("useModal instance is undefined!"),n};return[n=>{i.onBeforeUnmount(()=>{}),e.value=n},{openDialog:()=>{var n;(n=t())==null||n.openDialog()},closeDialog:()=>{var n;return(n=t())==null?void 0:n.closeDialog()}}]}const Vo=Ce(Do),jo=[Ct,zn];function qo(e){jo.forEach(t=>e.use(t))}const Xo={install:qo};V.KCollapseTranstion=Lo,V.KForm=Ct,V.KProDialog=Vo,V.KVirtualList=zn,V.ProDialogProps=In,V.collapseProps=Bn,V.default=Xo,V.formType=Mt,V.useProDialog=No,V.useProDialogInit=_o,V.virtualListProps=kn,Object.defineProperty(V,"__esModule",{value:!0})});
16
16
  //# sourceMappingURL=index.cdn.js.map