@vexip-ui/utils
Advanced tools
Comparing version 1.6.0 to 1.7.0
@@ -440,2 +440,4 @@ /** | ||
export declare function getRangeWidth(el: HTMLElement | null): number; | ||
/** | ||
@@ -448,2 +450,10 @@ * 获取变量类型 | ||
export declare function getXMargin(el: HTMLElement | null): number; | ||
export declare function getXPadding(el: HTMLElement | null): number; | ||
export declare function getYMargin(el: HTMLElement | null): number; | ||
export declare function getYPadding(el: HTMLElement | null): number; | ||
/** | ||
@@ -551,2 +561,4 @@ * 按照一定顺序的属性对数据进行分组 | ||
export declare const isClient: boolean; | ||
/** | ||
@@ -565,2 +577,4 @@ * 判断给定的字符串是否为一个合法颜色值 | ||
export declare function isElement(value: unknown): value is Element; | ||
export declare function isEmpty(value: unknown): boolean; | ||
@@ -576,2 +590,4 @@ | ||
export declare const isIOS: boolean | ""; | ||
/** | ||
@@ -578,0 +594,0 @@ * 判断给定的年份是否为闰年 |
@@ -1,1 +0,1 @@ | ||
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const pt="[-\\+]?\\d+%?",bt="[-\\+]?\\d*\\.\\d+%?",M=`(?:${bt})|(?:${pt})`,mt=`[\\s|\\(]+(${M})[,|\\s]+(${M})[,|\\s]+(${M})\\s*\\)?`,G=`[\\s|\\(]+(${M})[,|\\s]+(${M})[,|\\s]+(${M})[,|\\s]+(${M})\\s*\\)?`,ie=new RegExp(`rgb${mt}`),ae=new RegExp(`rgba${G}`),ce=new RegExp(`hsl${G}`),fe=new RegExp(`hsla${G}`),ue=new RegExp(`hsv${G}`),le=new RegExp(`hsva${G}`),de=/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ge=/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,he=/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,pe=/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,I=Object.freeze({aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"}),Ae=Object.freeze(new Set(Object.keys(I)));function yt(e){return e=String(e).trim().toLowerCase(),e?e==="transparent"||I[e]?!0:e==="transparent"||Ae.has(e)||ie.test(e)||ae.test(e)||ce.test(e)||fe.test(e)||ue.test(e)||le.test(e)||de.test(e)||ge.test(e)||he.test(e)||pe.test(e):!1}function Oe(e){if(e=e.toString().trim().toLowerCase(),e==="transparent")return{r:0,g:0,b:0,a:0,format:"name",toString:h};let t=!1;I[e]&&(e=I[e],t=!0);let n;if(n=ie.exec(e)){const{r,g:o,b:s}=O(n[1],n[2],n[3]);return{r:r*255,g:o*255,b:s*255,format:"rgb",toString:h}}if(n=ae.exec(e)){const{r,g:o,b:s}=O(n[1],n[2],n[3]);return{r:r*255,g:o*255,b:s*255,a:A(n[4]),format:"rgba",toString:h}}if(n=ce.exec(e)){const{h:r,s:o,l:s}=L(n[0],n[1],n[3]);return{h:r*360,s:o,l:s,format:"hsl",toString:v}}if(n=fe.exec(e)){const{h:r,s:o,l:s}=L(n[0],n[1],n[3]);return{h:r*360,s:o,l:s,a:A(n[4]),format:"hsla",toString:v}}if(n=ue.exec(e)){const{h:r,s:o,v:s}=U(n[0],n[1],n[3]);return{h:r*360,s:o,v:s,format:"hsv",toString:W}}if(n=le.exec(e)){const{h:r,s:o,v:s}=U(n[0],n[1],n[3]);return{h:r*360,s:o,v:s,a:A(n[4]),format:"hsva",toString:W}}return(n=de.exec(e))?{r:parseInt(`${n[1]}${n[1]}`,16),g:parseInt(`${n[2]}${n[2]}`,16),b:parseInt(`${n[3]}${n[3]}`,16),format:t?"name":"hex3",toString:h}:(n=ge.exec(e))?{r:parseInt(`${n[1]}${n[1]}`,16),g:parseInt(`${n[2]}${n[2]}`,16),b:parseInt(`${n[3]}${n[3]}`,16),a:Se(`${n[4]}${n[4]}`),format:t?"name":"hex4",toString:h}:(n=he.exec(e))?{r:parseInt(n[1],16),g:parseInt(n[2],16),b:parseInt(n[3],16),format:t?"name":"hex6",toString:h}:(n=pe.exec(e))?{r:parseInt(n[1],16),g:parseInt(n[2],16),b:parseInt(n[3],16),a:Se(n[4]),format:t?"name":"hex8",toString:h}:null}function Et(e){const{a:t,...n}=S(e);delete n.format;const r=Re(n.r,n.g,n.b),o=De(n.r,n.g,n.b),s=He(n.r,n.g,n.b),i=Fe(n.r,n.g,n.b,t);return{rgb:n,hsl:r,hsv:o,hex:s,alpha:t,rgba:{...n,a:t,format:"rgba"},hsla:{...r,a:t,format:"hsla"},hsva:{...o,a:t,format:"hsva"},hex8:i,origin:e}}function S(e){let t={r:0,g:0,b:0},n=1,r;return typeof e=="string"?r=Oe(e):r=e,r!==null&&typeof r=="object"&&("l"in r?t=Te(r.h,r.s,r.l):"v"in r&&(t=we(r.h,r.s,r.v)),r.a&&(n=A(r.a),Number.isNaN(n)&&(n=1)),t=r),{...t,a:n,format:"rgba",toString:h}}function L(e,t,n){return{h:p(e,0,360)/360,s:p(D(t)?H(t):t,0,1),l:p(D(n)?H(n):n,0,1)}}function O(e,t,n){return{r:p(e,0,255)/255,g:p(t,0,255)/255,b:p(n,0,255)/255}}function U(e,t,n){return{h:p(e,0,360)/360,s:p(D(t)?H(t):t,0,1),v:p(D(n)?H(n):n,0,1)}}function A(e){return p(D(e)?H(e):e,0,1)}function Te(e,t,n){let r,o,s;if({h:e,s:t,l:n}=L(e,t,n),t===0)r=o=s=n;else{const i=n<.5?1*(1+t):n+t-n*t,a=2*n-i;r=J(a,i,e+1/3),o=J(a,i,e),s=J(a,i,e-1/3)}return r*=255,o*=255,s*=255,{r,g:o,b:s,toString:h}}function Re(e,t,n){({r:e,g:t,b:n}=O(e,t,n));const r=Math.max(e,t,n),o=Math.min(e,t,n);let s,i;const a=(r+o)/2;if(r===o)s=i=0;else{const c=r-o;switch(i=a>.5?c/(2-r-o):c/(r+o),r){case e:{s=(t-n)/c+(t<n?6:0);break}case t:{s=(n-e)/c+2;break}case n:{s=(e-t)/c+4;break}default:s=0}s*=60}return{h:s,s:i,l:a,toString:v}}function Mt(e,t,n){({h:e,s:t,l:n}=L(e,t,n));const r=.5*(2*n+t*(1-Math.abs(2*n-1)));return t=2*(r-n)/r,{h:e*360,s:t,v:r,toString:W}}function St(e,t,n){({h:e,s:t,v:n}=U(e,t,n));const r=.5*n*(2-t);return t=n*t/(1-Math.abs(2*r-1)),{h:e*360,s:t,l:r,toString:v}}function we(e,t,n){({h:e,s:t,v:n}=U(e,t,n)),e*=6;const r=Math.floor(e),o=e-r,s=n*(1-t),i=n*(1-o*t),a=n*(1-(1-o)*t),c=r%6;let u=[n,i,s,s,a,n][c],f=[a,n,n,i,s,s][c],d=[s,s,a,n,n,i][c];return u*=255,f*=255,d*=255,{r:u,g:f,b:d,toString:h}}function De(e,t,n){({r:e,g:t,b:n}=O(e,t,n));const r=Math.max(e,t,n),o=Math.min(e,t,n);let s;const i=r,a=r-o,c=r===0?0:a/r;if(r===o)s=0;else{switch(r){case e:{s=(t-n)/a+(t<n?6:0);break}case t:{s=(n-e)/a+2;break}case n:{s=(e-t)/a+4;break}default:s=0}s*=60}return{h:s,s:c,v:i,toString:W}}function He(e,t,n,r=!1){({r:e,g:t,b:n}=O(e,t,n));const o=[_(Math.round(e*255).toString(16)),_(Math.round(t*255).toString(16)),_(Math.round(n*255).toString(16))];return r&&N(o[0])&&N(o[1])&&N(o[2])?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):"#"+o.join("")}function Fe(e,t,n,r,o=!1){({r:e,g:t,b:n}=O(e,t,n));const s=[_(Math.round(e*255).toString(16)),_(Math.round(t*255).toString(16)),_(Math.round(n*255).toString(16)),_(At(A(r)))];return o&&N(s[0])&&N(s[1])&&N(s[2])&&N(s[3])?s[0].charAt(0)+s[1].charAt(0)+s[2].charAt(0)+s[3].charAt(0):"#"+s.join("")}function _t(e,t,n=.5){if(!e&&!t)return{r:0,g:0,b:0,a:1};if(!e)return S(t);if(!t)return S(e);const r=S(e),o=S(t),s=p(n,0,1),i=s*2-1,a=r.a-o.a,u=((i*a===-1?i:(i+a)/(1+i*a))+1)/2,f=1-u;return{r:Math.round(r.r*u+o.r*f),g:Math.round(r.g*u+o.g*f),b:Math.round(r.b*u+o.b*f),a:Math.round(r.a*s+o.a*(1-s)),format:"rgba",toString:h}}function Nt(e,t){const n=S(e);return n.a=A(D(t)?H(t):t),n}function _(e){return e.length===1?`0${e}`:e.toString()}function N(e){return e.charAt(0)===e.charAt(1)}function At(e){return Math.round(parseFloat(e)*255).toString(16)}function Se(e){return parseInt(e,16)/255}function p(e,t,n){return Math.max(t,Math.min(n,parseFloat(e)))}function J(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function D(e){return e.toString().trim().includes("%")}function H(e){const t=parseFloat(e)/100;return Number.isNaN(t)?0:t}function h(){return this.a&&this.a>=0&&this.a<1?`rgba(${this.r}, ${this.g}, ${this.b}, ${this.a})`:`rgb(${this.r}, ${this.g}, ${this.b})`}function v(){return this.a&&this.a>=0&&this.a<1?`hsla(${this.h}, ${this.s}, ${this.l}, ${this.a})`:`hsl(${this.h}, ${this.s}, ${this.l})`}function W(){return this.a&&this.a>=0&&this.a<1?`hsva(${this.h}, ${this.s}, ${this.v}, ${this.a})`:`hsv(${this.h}, ${this.s}, ${this.v})`}const Ot=Object.prototype.toString,Tt=Object.prototype.hasOwnProperty;function k(e,t){return Ot.call(e)===`[object ${t}]`}function Rt(e,t){return Tt.call(e,t)}function T(e){return e!=null}function wt(e){return e==null}function Dt(e){return typeof e=="number"}function Ht(e){return Number.isNaN(e)}function Ft(e){return typeof e=="string"}function kt(e){return typeof e=="boolean"}function Ct(e){return e===!0}function $t(e){return e===!1}function xt(e){return typeof e=="symbol"}function It(e){return typeof e=="bigint"}function Lt(e){return Array.isArray(e)}function Y(e){return k(e,"Object")}function Ut(e){return!!e&&typeof e.then=="function"&&typeof e.catch=="function"}function ke(e){return typeof e=="function"}function Yt(e){return k(e,"Set")}function Gt(e){return k(e,"Map")}function Bt(e){return k(e,"Date")}function vt(e){return k(e,"RegExp")}function Wt(e){return Array.isArray(e)||typeof e=="string"?e.length===0:e instanceof Map||e instanceof Set?e.size===0:Y(e)?Object.keys(e).length===0:!1}function Pt(){}function qt(e,t=1,n=1){const r=[];for(let o=0;o<e;++o)r.push(t+o*n);return r}function zt(e){return Object.prototype.toString.call(e).slice(8,-1)}function jt(e=16){const t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890",n=t.length;let r="";for(;e--;)r+=t.charAt(Math.floor(Math.random()*n));return r}function _e(e){return e&-e}function Kt(e,t=0){const n=new Array(e+1).fill(0);function r(a,c){if(!(!c||a>=e))for(a+=1;a<=e;)n[a]+=c,a+=_e(a)}function o(a=e){if(a<=0)return 0;a>e&&(a=e);let c=a*t;for(;a>0;)c+=n[a],a-=_e(a);return c}function s(a){return o(a+1)-o(a)}function i(a){let c=0,u=e;for(;u>c;){const f=Math.floor((c+u)/2),d=o(f);if(d>a){u=f;continue}else if(d<a){if(c===f)return o(c+1)<=a?c+1:c;c=f}else return f}return c}return{add:r,sum:o,get:s,boundIndex:i}}function Qt(e){const t=parseFloat(e);return Number.isNaN(t)?0:t}function E(e){return e<10?`0${e}`:e.toString()}function Xt(e,t=3,n=","){if(typeof e!="number"&&(e=parseFloat(e)),Number.isNaN(e))return"0";let[r,o]=String(e).split(".");const s=new RegExp(`(\\d+)(\\d{${t}})`);for(;s.test(r);)r=r.replace(s,`$1${n}$2`);return o=o?`.${o}`:"",`${r}${o}`}function Ce(e,t){if(t===0)return Math.round(e);let n=String(e);const r=n.indexOf(".");if(r===-1)return e;const o=n.replace(".","").split(""),s=r+t;return o[s]?(n.charAt(s+1)==="5"?n=n.substring(0,s+1)+"6":n=n.substring(0,s+2),parseFloat(Number(n).toFixed(t))):e}function Vt(e,t,n){return Ce(e*t,n)}function Zt(e,t){if(t<0||t>1)return Math.round(e);const n=Math.ceil(e);return e+t>=n?n:Math.floor(e)}function Jt(e,t,n){return Math.max(t,Math.min(n,parseFloat(e)))}const en=Object.freeze(["B","KB","MB","GB","TB","AUTO"]);function tn(e,t="AUTO"){let n=t.toUpperCase();n=en.includes(n)?n:"AUTO";let r;switch(n){case"AUTO":r=0;break;case"KB":r=1;break;case"MB":r=2;break;case"GB":r=3;break;case"TB":r=4;break;default:return e}let o;if(r)o=e/1024**r;else for(o=e;o>1024&&!(r>4);++r)o=o/1024;return o}function b(e){const t=e.toString().split(/[eE]/),n=(t[0].split(".")[1]||"").length-+(t[1]||0);return n>0?n:0}function be(e,t=15){return+parseFloat(Number(e).toPrecision(t))}function P(e){const t=String(e);if(!t.includes("e"))return Number(t.replace(".",""));const n=b(e);return n>0?be(Number(e)*10**n):Number(e)}function z(e){return(...t)=>{let n=t[0];for(let r=1,o=t.length;r<o;++r)n=e(n,t[r]);return n}}const F=z((e,t)=>{const n=P(e),r=P(t),o=b(e)+b(t);return n*r/10**o}),nn=z((e,t)=>{const n=10**Math.max(b(e),b(t));return(F(e,n)+F(t,n))/n}),rn=z((e,t)=>{const n=10**Math.max(b(e),b(t));return(F(e,n)-F(t,n))/n}),on=z((e,t)=>{const n=P(e),r=P(t);return F(n/r,be(10**(b(t)-b(e))))}),w=1e3,C=60,$e=C*w,B=60,xe=B*C,Ie=xe*w,me=24,Le=me*B,Ue=Le*C,Ye=Ue*w,j=7,Ge=j*me,Be=Ge*B,ve=Be*C,We=ve*w,ye=3,Pe=4,qe=Pe*ye,sn={y(e,t){const n=e.getFullYear();return t.length===4?n:n%1e3%100},M(e,t){const n=e.getMonth()+1;return t.length===2?E(n):n},d(e,t){const n=e.getDate();return t.length===2?E(n):n},H(e,t){const n=e.getHours();return t.length===2?E(n):n},m(e,t){const n=e.getMinutes();return t.length===2?E(n):n},s(e,t){const n=e.getSeconds();return t.length===2?E(n):n},q(e,t){const n=Math.ceil((e.getMonth()+1)/3);return t.length===2?E(n):n}},an=/[yMdHmsq](\w)*|./g,cn=/'(.+?)'/g;function l(e,t=!1){const n=new Date(e);if(t&&Number.isNaN(+n))throw new RangeError("Invalid date value");return n}function fn(e,t="yyyy-MM-dd HH:mm:ss"){e=l(e);const n=t.match(an),r=n==null?void 0:n.length;if(!r)return t;let o=0,s="";for(;o<r;){const i=n[o],a=i[0],c=sn[a];c?s+=c(e,i):s+=i,++o}return s.replace(cn,"$1")}function q(e){return e=l(e),Math.floor(e.getMonth()/3)+1}const un=["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"];function ln(e){return un[e.getDay()]}function ze(e,t){return e=l(e),e.setTime(e.getTime()+t),e}function je(e,t){return t*=w,ze(e,t)}function Ke(e,t){return t*=C,je(e,t)}function Qe(e,t){return t*=B,Ke(e,t)}function dn(e,t){return t*=12,Qe(e,t)}function K(e,t){return e=l(e),t=~~t,e.setDate(e.getDate()+t),e}function gn(e,t){return t*=j,K(e,t)}function Q(e,t){return e=l(e),t=~~t,e.setMonth(e.getMonth()+t),e}function hn(e,t){return t*=ye,Q(e,t)}function pn(e,t){return t*=qe,Q(e,t)}function bn(e,t=42,n=1){e=l(e);const r=[];for(let o=0;o<t;++o)r.push(K(e,o*n));return r}function mn(e,t=12,n=1){e=l(e);const r=[];for(let o=0;o<t;++o)r.push(Q(e,o*n));return r}function yn(e){var n;const t=(n=e.getDay())!=null?n:7;return K(e,-t)}function te(e){return e=l(e),e.setMilliseconds(0),e}function ne(e){return e=l(e),e.setSeconds(0,0),e}function re(e){return e=l(e),e.setMinutes(0,0,0),e}function oe(e){return e=l(e),e.setHours(0,0,0,0),e}function En(e){return e=l(e),e.setHours(23,59,59,999),e}function se(e,t=0){t=t%7,t<0&&(t+=7),e=l(e);const n=e.getDay(),r=(n<t?7:0)+n-t;return e.setDate(e.getDate()-r),e.setHours(0,0,0,0),e}function Mn(e){return e%4===0&&e%100!==0||e%400===0}function Sn(e,t=1){e=l(e);const n=e.getFullYear(),r=e.getMonth()+1,o=e.getDate(),s=n%4===0&&n%100!==0||n%400===0;let i;return r<7?r!==2?i=30+r%2:s?i=29:i=28:i=31-r%2,t=t%i,t<0&&(t+=i),o<t&&e.setMonth(r-1),e.setDate(t),e.setHours(0,0,0,0),e}function _n(e){e=l(e);const t=q(e);return e.setDate(1),e.setHours(0,0,0,0),e.setMonth((t-1)*3),e}function Nn(e,t=0){t=t%11,t<0&&(t+=11),e=l(e);const n=e.getMonth(),r=(n<t?11:0)+n-t;return e.setMonth(e.getMonth()-r),e.setDate(1),e.setHours(0,0,0,0),e}function X(e,t){return e=l(e),t=l(t),t.getTime()-e.getTime()}function Xe(e,t){const n=X(e,t)/w;return n>0?Math.floor(n):Math.ceil(n)}function Ve(e,t){const n=X(e,t)/$e;return n>0?Math.floor(n):Math.ceil(n)}function Ze(e,t){const n=X(e,t)/Ie;return n>0?Math.floor(n):Math.ceil(n)}function Je(e,t){return e=oe(e),t=oe(t),(t.getTime()-e.getTime())/Ye}function An(e,t,n=0){return e=se(e,n),t=se(t,n),(t.getTime()-e.getTime())/We}function et(e,t){e=l(e),t=l(t);const n=t.getFullYear()-e.getFullYear(),r=t.getMonth()-e.getMonth();return n*12+r}function On(e,t){e=l(e),t=l(t);const n=t.getFullYear()-e.getFullYear(),r=q(t)-q(e);return n*4+r}function tt(e,t){return e=l(e),t=l(t),t.getFullYear()-e.getFullYear()}function nt(e,t){e=l(e),t=l(t);const n=e.getTime()-t.getTime();return n<0?-1:n>0?1:n}function R(e,t){return-nt(e,t)}function Tn(e,t){return e=te(e),t=te(t),Xe(e,t)}function Rn(e,t){return e=ne(e),t=ne(t),Ve(e,t)}function wn(e,t){return e=re(e),t=re(t),Ze(e,t)}function rt(e,t){const n=R(e,t),r=Math.abs(Je(e,t));e=l(e),e.setDate(e.getDate()+n*r);const o=R(e,t)===-n;return n*(r-(o?1:0))}function Dn(e,t){const n=rt(e,t)/j;return n>0?Math.floor(n):Math.ceil(n)}function ot(e,t){const n=R(e,t),r=Math.abs(et(e,t));e=l(e),e.setMonth(e.getMonth()+n*r);const o=R(e,t)===-n;return n*(r-(o?1:0))}function Hn(e,t){const n=ot(e,t)/3;return n>0?Math.floor(n):Math.ceil(n)}function Fn(e,t){const n=R(e,t),r=Math.abs(tt(e,t));e=l(e),e.setFullYear(e.getFullYear()+n*r);const o=R(e,t)===-n;return n*(r-(o?1:0))}function st(e){if(e===null||typeof e!="object")return e;const t=Array.isArray(e)?[]:{},n=[{parent:t,key:void 0,data:e}];for(;n.length;){const r=n.pop(),{parent:o,key:s,data:i}=r,a=Array.isArray(i)?"array":"object";if(!o)continue;let c=o;typeof s<"u"&&(c=o[s]=a==="array"?[]:{}),Object.keys(i).forEach(u=>{const f=i[u];f===i?c[u]=c:f!==null&&typeof f=="object"?n.push({parent:c,key:u,data:f}):c[u]=f})}return t}const kn="This object was destroyed, do not use it anywhere",Cn=()=>!0;function $n(e,t=kn){const n=()=>{throw new Error(t)};Object.keys(e).forEach(r=>{typeof e[r]=="function"?e[r]=n.bind(e):e[r]=null}),Object.getOwnPropertyNames(e.constructor.prototype).forEach(r=>{r!=="constructor"&&typeof e[r]=="function"&&(e[r]=n.bind(e))}),e.isDestroyed=Cn}const it=typeof window<"u"&&("ontouchstart"in window||In()>0),xn=it?"touchstart":"click";function In(){return typeof navigator<"u"&&(navigator.maxTouchPoints||navigator.msMaxTouchPoints)||0}const m=new Map;function Ln(e){m.has(e)||m.set(e,new Set)}function Un(e){var t;return(t=m.get(e))!=null?t:m.set(e,new Set).get(e)}function Yn(e,t){if(typeof t=="string"&&(t=[t]),Array.isArray(t))for(let n=0,r=t.length;n<r;++n){const o=t[n];m.has(o)||m.set(o,new Set),m.get(o).add(e)}}function Gn(e,t){var n;if(typeof t=="string"&&(t=[t]),Array.isArray(t))for(let r=0,o=t.length;r<o;++r){const s=t[r];m.has(s)&&((n=m.get(s))==null||n.delete(e))}}function Bn(e,t,n=window.Event){const{type:r,bubbles:o=!1,cancelable:s=!1,...i}=t;if(!T(r)||r==="")return!1;let a;return T(n)?a=new n(r,{bubbles:o,cancelable:s}):(a=document.createEvent("HTMLEvents"),a.initEvent(r,o,s)),Object.assign(a,i),e.dispatchEvent(a)}const vn=["button","[href]:not(.disabled)","input","select","textarea","[tabindex]","[contenteditable]"].map(e=>`${e}:not(:disabled):not([disabled])`).join(", ");function V(e){return!!e&&e.nodeType===Node.ELEMENT_NODE}function Wn(e){return V(e)?e:document.body}function at(e,t){return e?Array.from(Wn(t).querySelectorAll(e)):[]}function Pn(e){const t=document.activeElement;return!V(e)||!t?!1:e===t||Ee(t,e)}function Ee(e,t){if(!e||!t)return!1;const n=t.__transferElement;return t.contains(e)||!!n&&(n===e||n.contains(e))}function ct(e){if(!V(e)||!e.parentNode||!Ee(e,document.body)||e.style.display==="none")return!0;const t=e.getBoundingClientRect();return!(t&&t.width>0&&t.height>0)}function ft(e){return!ct(e)}function ut(e){return!V(e)||e.hasAttribute("disabled")&&e.getAttribute("disabled")!=="false"||e.disabled}function qn(e,t=!1){const n=t?()=>!1:ut;return at(vn,e).filter(r=>ft(r)&&r.tabIndex>-1&&!n(r))}const zn=/["'&<>]/;function jn(e){const t=""+e,n=zn.exec(t);if(!n)return t;let r="",o,s,i=0;for(s=n.index;s<t.length;s++){switch(t.charCodeAt(s)){case 34:o=""";break;case 38:o="&";break;case 39:o="'";break;case 60:o="<";break;case 62:o=">";break;default:continue}i!==s&&(r+=t.substring(i,s)),i=s+1,r+=o}return i!==s?r+t.substring(i,s):r}function Kn(){const e=new Map;return{on(t,n){const r=e.get(t);(r==null?void 0:r.add(n))||e.set(t,new Set([n]))},off(t,n){const r=e.get(t);r&&r.delete(n)},clear(t){const n=e.get(t);n&&n.clear()},clearAll(){e.clear()},emit(t,...n){const r=e.get(t);r&&r.forEach(o=>{o(...n)})}}}function Qn(e,t=16){if(typeof e!="function")return e;let n=Date.now(),r;return function(...o){const s=Date.now(),i=n+t-s;clearTimeout(r),i<=0?(e(...o),n=Date.now()):r=setTimeout(()=>{e(...o)},t)}}function Xn(e,t=100){if(typeof e!="function")return e;let n;return function(...r){clearTimeout(n),n=setTimeout(()=>{e(...r)},t)}}function Vn(e){if(typeof e!="function")return e;let t=!1,n;return function(...r){n=r,t||(t=!0,Promise.resolve().then(()=>{e(...n),t=!1}))}}function Zn(e){if(typeof e!="function")return e;let t=!1,n;return function(...r){n=r,t||(t=!0,requestAnimationFrame(()=>{e(...n),t=!1}))}}const $=new Set,lt=new WeakMap;function Jn(){$.forEach(e=>{e(...lt.get(e))}),$.clear()}function er(e,...t){if(typeof e!="function")return e;lt.set(e,t),!$.has(e)&&($.add(e),$.size===1&&Promise.resolve().then(Jn))}const x=new Set,dt=new WeakMap;function tr(){x.forEach(e=>{e(...dt.get(e))}),x.clear()}function nr(e,...t){if(typeof e!="function")return e;dt.set(e,t),!x.has(e)&&(x.add(e),x.size===1&&requestAnimationFrame(tr))}let ee=null;function rr(){if(!window||!document)return!0;if(ee===null){const e=document.createElement("div");e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e),ee=e.scrollHeight===1,document.body.removeChild(e)}return ee}function or(e,t,n=r=>r){const r={};if(!T(t))return r;const o=ke(t)?t:s=>s[t];return e.forEach(s=>{const i=o(s);T(i)&&(r[i]=n(s))}),r}function sr(e,t,n=!1){let r=-1;return n||typeof t!="function"?r=e.findIndex(o=>o===t):r=e.findIndex(t),~r?e.splice(r,1)[0]:null}function ir(e,t=[]){(typeof t=="string"||typeof t=="function")&&(t=[t]);const n=t.length,r={};for(const o of e){let s;for(let i=0;i<n;++i){const a=i===n-1,c=t[i],u=typeof c=="function"?c(o):o[c];s?(s[u]||(s[u]=a?[]:{}),s=s[u]):(r[u]||(r[u]=a?[]:{}),s=r[u])}s.push(o)}return r}function ar(e,t={}){const{keyField:n="id",childField:r="children",parentField:o="parent",rootId:s=null}=t,i=T(s)&&s!=="",a=[],c=new Map;for(let u=0,f=e.length;u<f;++u){const d=e[u],g=d[n];if(!(i?g===s:!g))if(c.has(g)?d[r]=c.get(g):(d[r]=[],c.set(g,d[r])),d[o]&&(!i||d[o]!==s)){const y=d[o];c.has(y)||c.set(y,[]),c.get(y).push(d)}else a.push(d)}return a}function cr(e,t={}){const{keyField:n="id",childField:r="children",parentField:o="parent",rootId:s=null}=t,i=T(s)&&s!=="",a=[],c=[...e];let u=1;for(;c.length;){const f=c.shift();let d=[];const g=f[r];Array.isArray(g)&&g.length&&(d=g),f[n]||(f[n]=u++);const y=f[n];(i?f[o]===s:!f[o])&&(f[o]=s);for(let Z=0,ht=d.length;Z<ht;++Z){const Me=d[Z];Me[o]=y,c.push(Me)}a.push(f)}return a}const Ne=(e,t)=>Number.isNaN(Number(e)-Number(t))?String(e).localeCompare(t):e-t;function fr(e,t){if(!e.sort||Y(t)&&!t.key||!t.length)return e;const n=Array.from(e);Array.isArray(t)||(t=[t]);const r=t.map(o=>typeof o=="string"?{key:o,method:Ne,type:"asc"}:o).map(o=>(typeof o.accessor!="function"&&(o.accessor=s=>s[o.key]),typeof o.method!="function"&&(o.method=Ne),o.params=Array.isArray(o.params)?o.params:[],o));return n.sort((o,s)=>{let i=0;for(const a of r){const{method:c,type:u,accessor:f,params:d}=a,g=u==="desc",y=c(f(o,...d),f(s,...d));if(i=g?-y:y,i)break}return i}),n}function ur(e,t,n=!0){e=n?st(e):e;const r=[{source:e,target:t}];for(;r.length;){const{source:o,target:s}=r.pop();Object.keys(s).forEach(i=>{Y(s[i])?(Y(o[i])||(o[i]={}),r.push({source:o[i],target:s[i]})):Array.isArray(s[i])?(Array.isArray(o[i])||(o[i]=[]),r.push({source:o[i],target:s[i]})):o[i]=s[i]})}return e}function lr(e){return e.charAt(0).toLowerCase()+e.slice(1).replace(/([A-Z])/g,"-$1").toLowerCase()}function gt(e){return e.charAt(0).toUpperCase()+e.slice(1).replace(/-(\w)/g,(t,n)=>n?n.toUpperCase():"")}function dr(e){const t=gt(e);return t.charAt(0).toLowerCase()+t.slice(1)}exports.CLICK_TYPE=xn;exports.COLOR_NAMES=Ae;exports.DAY_ON_HOURS=me;exports.DAY_ON_MILLIS=Ye;exports.DAY_ON_MINUTES=Le;exports.DAY_ON_SECONDS=Ue;exports.HEX_REG_3=de;exports.HEX_REG_4=ge;exports.HEX_REG_6=he;exports.HEX_REG_8=pe;exports.HOUR_ON_MILLS=Ie;exports.HOUR_ON_MINUTES=B;exports.HOUR_ON_SECONDS=xe;exports.HSLA_REG=fe;exports.HSL_REG=ce;exports.HSVA_REG=le;exports.HSV_REG=ue;exports.MINUTE_ON_MILLS=$e;exports.MINUTE_ON_SECONDS=C;exports.NAMED_COLORS=I;exports.QUARTER_ON_MONTHS=ye;exports.RGBA_REG=ae;exports.RGB_REG=ie;exports.SECOND_ON_MILLS=w;exports.USE_TOUCH=it;exports.WEEK_ON_DAYS=j;exports.WEEK_ON_HOURS=Ge;exports.WEEK_ON_MILLIS=We;exports.WEEK_ON_MINUTES=Be;exports.WEEK_ON_SECONDS=ve;exports.YEAR_ON_MONTHS=qe;exports.YEAR_ON_QUARTERS=Pe;exports.addDays=K;exports.addHalfDays=dn;exports.addHours=Qe;exports.addMilliseconds=ze;exports.addMinutes=Ke;exports.addMonths=Q;exports.addQuarters=hn;exports.addSeconds=je;exports.addWeeks=gn;exports.addYears=pn;exports.adjustAlpha=Nt;exports.boundRange=Jt;exports.compareAsc=nt;exports.compareDesc=R;exports.contains=Ee;exports.createBITree=Kt;exports.createEvent=Ln;exports.createEventEmitter=Kn;exports.debounce=Xn;exports.debounceFrame=Zn;exports.debounceMinor=Vn;exports.deepClone=st;exports.destroyObject=$n;exports.differenceDays=Je;exports.differenceFullDays=rt;exports.differenceFullHours=wn;exports.differenceFullMinutes=Rn;exports.differenceFullMonths=ot;exports.differenceFullQuarters=Hn;exports.differenceFullSeconds=Tn;exports.differenceFullWeeks=Dn;exports.differenceFullYears=Fn;exports.differenceHours=Ze;exports.differenceMilliseconds=X;exports.differenceMinutes=Ve;exports.differenceMonths=et;exports.differenceQuarters=On;exports.differenceSeconds=Xe;exports.differenceWeeks=An;exports.differenceYears=tt;exports.digitLength=b;exports.disconnect=Gn;exports.dispatchEvent=Bn;exports.divide=on;exports.doubleDigits=E;exports.endOfDay=En;exports.escapeHtml=jn;exports.flatTree=cr;exports.format=fn;exports.formatByteSize=tn;exports.getChineseWeek=ln;exports.getLastSunday=yn;exports.getObservers=Un;exports.getQuarter=q;exports.getType=zt;exports.groupByProps=ir;exports.has=Rt;exports.hslToHsv=Mt;exports.hslToRgb=Te;exports.hsvToHsl=St;exports.hsvToRgb=we;exports.is=k;exports.isArray=Lt;exports.isBigInt=It;exports.isBoolean=kt;exports.isColor=yt;exports.isDate=Bt;exports.isDefined=T;exports.isDisabled=ut;exports.isEmpty=Wt;exports.isFalse=$t;exports.isFocusIn=Pn;exports.isFunction=ke;exports.isHidden=ct;exports.isLeepYear=Mn;exports.isMap=Gt;exports.isNaN=Ht;exports.isNull=wt;exports.isNumber=Dt;exports.isObject=Y;exports.isPromise=Ut;exports.isRegExp=vt;exports.isSet=Yt;exports.isString=Ft;exports.isSymbol=xt;exports.isTrue=Ct;exports.isVisible=ft;exports.mergeObjects=ur;exports.minus=rn;exports.mixColor=_t;exports.multipleFixed=Vt;exports.nextFrameOnce=nr;exports.nextTickOnce=er;exports.noop=Pt;exports.normalizeAlpha=A;exports.normalizeHsl=L;exports.normalizeHsv=U;exports.normalizeRgb=O;exports.observe=Yn;exports.parseColor=Et;exports.parseColorToRgba=S;exports.parseStringColor=Oe;exports.plus=nn;exports.queryAll=at;exports.queryTabables=qn;exports.randomString=jt;exports.range=qt;exports.rangeDate=bn;exports.rangeMonth=mn;exports.removeArrayItem=sr;exports.rgbToHex=He;exports.rgbToHsl=Re;exports.rgbToHsv=De;exports.rgbaToHex=Fe;exports.round=Zt;exports.segmentNumber=Xt;exports.sortByProps=fr;exports.startOfDay=oe;exports.startOfHour=re;exports.startOfMinute=ne;exports.startOfMonth=Sn;exports.startOfQuarter=_n;exports.startOfSecond=te;exports.startOfWeek=se;exports.startOfYear=Nn;exports.supportFlexGap=rr;exports.throttle=Qn;exports.times=F;exports.toCamelCase=dr;exports.toCapitalCase=gt;exports.toDate=l;exports.toFixed=Ce;exports.toKebabCase=lr;exports.toNumber=Qt;exports.toPrecision=be;exports.transformListToMap=or;exports.transformTree=ar; | ||
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const yt="[-\\+]?\\d+%?",Et="[-\\+]?\\d*\\.\\d+%?",S=`(?:${Et})|(?:${yt})`,St=`[\\s|\\(]+(${S})[,|\\s]+(${S})[,|\\s]+(${S})\\s*\\)?`,B=`[\\s|\\(]+(${S})[,|\\s]+(${S})[,|\\s]+(${S})[,|\\s]+(${S})\\s*\\)?`,ae=new RegExp(`rgb${St}`),ce=new RegExp(`rgba${B}`),fe=new RegExp(`hsl${B}`),ue=new RegExp(`hsla${B}`),le=new RegExp(`hsv${B}`),de=new RegExp(`hsva${B}`),ge=/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,he=/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,pe=/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,me=/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,I=Object.freeze({aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"}),Re=Object.freeze(new Set(Object.keys(I)));function Mt(e){return e=String(e).trim().toLowerCase(),e?e==="transparent"||I[e]?!0:e==="transparent"||Re.has(e)||ae.test(e)||ce.test(e)||fe.test(e)||ue.test(e)||le.test(e)||de.test(e)||ge.test(e)||he.test(e)||pe.test(e)||me.test(e):!1}function Te(e){if(e=e.toString().trim().toLowerCase(),e==="transparent")return{r:0,g:0,b:0,a:0,format:"name",toString:h};let t=!1;I[e]&&(e=I[e],t=!0);let n;if(n=ae.exec(e)){const{r,g:o,b:i}=O(n[1],n[2],n[3]);return{r:r*255,g:o*255,b:i*255,format:"rgb",toString:h}}if(n=ce.exec(e)){const{r,g:o,b:i}=O(n[1],n[2],n[3]);return{r:r*255,g:o*255,b:i*255,a:A(n[4]),format:"rgba",toString:h}}if(n=fe.exec(e)){const{h:r,s:o,l:i}=L(n[0],n[1],n[3]);return{h:r*360,s:o,l:i,format:"hsl",toString:P}}if(n=ue.exec(e)){const{h:r,s:o,l:i}=L(n[0],n[1],n[3]);return{h:r*360,s:o,l:i,a:A(n[4]),format:"hsla",toString:P}}if(n=le.exec(e)){const{h:r,s:o,v:i}=U(n[0],n[1],n[3]);return{h:r*360,s:o,v:i,format:"hsv",toString:v}}if(n=de.exec(e)){const{h:r,s:o,v:i}=U(n[0],n[1],n[3]);return{h:r*360,s:o,v:i,a:A(n[4]),format:"hsva",toString:v}}return(n=ge.exec(e))?{r:parseInt(`${n[1]}${n[1]}`,16),g:parseInt(`${n[2]}${n[2]}`,16),b:parseInt(`${n[3]}${n[3]}`,16),format:t?"name":"hex3",toString:h}:(n=he.exec(e))?{r:parseInt(`${n[1]}${n[1]}`,16),g:parseInt(`${n[2]}${n[2]}`,16),b:parseInt(`${n[3]}${n[3]}`,16),a:_e(`${n[4]}${n[4]}`),format:t?"name":"hex4",toString:h}:(n=pe.exec(e))?{r:parseInt(n[1],16),g:parseInt(n[2],16),b:parseInt(n[3],16),format:t?"name":"hex6",toString:h}:(n=me.exec(e))?{r:parseInt(n[1],16),g:parseInt(n[2],16),b:parseInt(n[3],16),a:_e(n[4]),format:t?"name":"hex8",toString:h}:null}function _t(e){const{a:t,...n}=M(e);delete n.format;const r=Fe(n.r,n.g,n.b),o=He(n.r,n.g,n.b),i=ke(n.r,n.g,n.b),s=Ce(n.r,n.g,n.b,t);return{rgb:n,hsl:r,hsv:o,hex:i,alpha:t,rgba:{...n,a:t,format:"rgba"},hsla:{...r,a:t,format:"hsla"},hsva:{...o,a:t,format:"hsva"},hex8:s,origin:e}}function M(e){let t={r:0,g:0,b:0},n=1,r;return typeof e=="string"?r=Te(e):r=e,r!==null&&typeof r=="object"&&("l"in r?t=we(r.h,r.s,r.l):"v"in r&&(t=De(r.h,r.s,r.v)),r.a&&(n=A(r.a),Number.isNaN(n)&&(n=1)),t=r),{...t,a:n,format:"rgba",toString:h}}function L(e,t,n){return{h:p(e,0,360)/360,s:p(F(t)?D(t):t,0,1),l:p(F(n)?D(n):n,0,1)}}function O(e,t,n){return{r:p(e,0,255)/255,g:p(t,0,255)/255,b:p(n,0,255)/255}}function U(e,t,n){return{h:p(e,0,360)/360,s:p(F(t)?D(t):t,0,1),v:p(F(n)?D(n):n,0,1)}}function A(e){return p(F(e)?D(e):e,0,1)}function we(e,t,n){let r,o,i;if({h:e,s:t,l:n}=L(e,t,n),t===0)r=o=i=n;else{const s=n<.5?1*(1+t):n+t-n*t,a=2*n-s;r=ee(a,s,e+1/3),o=ee(a,s,e),i=ee(a,s,e-1/3)}return r*=255,o*=255,i*=255,{r,g:o,b:i,toString:h}}function Fe(e,t,n){({r:e,g:t,b:n}=O(e,t,n));const r=Math.max(e,t,n),o=Math.min(e,t,n);let i,s;const a=(r+o)/2;if(r===o)i=s=0;else{const c=r-o;switch(s=a>.5?c/(2-r-o):c/(r+o),r){case e:{i=(t-n)/c+(t<n?6:0);break}case t:{i=(n-e)/c+2;break}case n:{i=(e-t)/c+4;break}default:i=0}i*=60}return{h:i,s,l:a,toString:P}}function Nt(e,t,n){({h:e,s:t,l:n}=L(e,t,n));const r=.5*(2*n+t*(1-Math.abs(2*n-1)));return t=2*(r-n)/r,{h:e*360,s:t,v:r,toString:v}}function At(e,t,n){({h:e,s:t,v:n}=U(e,t,n));const r=.5*n*(2-t);return t=n*t/(1-Math.abs(2*r-1)),{h:e*360,s:t,l:r,toString:P}}function De(e,t,n){({h:e,s:t,v:n}=U(e,t,n)),e*=6;const r=Math.floor(e),o=e-r,i=n*(1-t),s=n*(1-o*t),a=n*(1-(1-o)*t),c=r%6;let u=[n,s,i,i,a,n][c],f=[a,n,n,s,i,i][c],d=[i,i,a,n,n,s][c];return u*=255,f*=255,d*=255,{r:u,g:f,b:d,toString:h}}function He(e,t,n){({r:e,g:t,b:n}=O(e,t,n));const r=Math.max(e,t,n),o=Math.min(e,t,n);let i;const s=r,a=r-o,c=r===0?0:a/r;if(r===o)i=0;else{switch(r){case e:{i=(t-n)/a+(t<n?6:0);break}case t:{i=(n-e)/a+2;break}case n:{i=(e-t)/a+4;break}default:i=0}i*=60}return{h:i,s:c,v:s,toString:v}}function ke(e,t,n,r=!1){({r:e,g:t,b:n}=O(e,t,n));const o=[_(Math.round(e*255).toString(16)),_(Math.round(t*255).toString(16)),_(Math.round(n*255).toString(16))];return r&&N(o[0])&&N(o[1])&&N(o[2])?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):"#"+o.join("")}function Ce(e,t,n,r,o=!1){({r:e,g:t,b:n}=O(e,t,n));const i=[_(Math.round(e*255).toString(16)),_(Math.round(t*255).toString(16)),_(Math.round(n*255).toString(16)),_(Tt(A(r)))];return o&&N(i[0])&&N(i[1])&&N(i[2])&&N(i[3])?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):"#"+i.join("")}function Ot(e,t,n=.5){if(!e&&!t)return{r:0,g:0,b:0,a:1};if(!e)return M(t);if(!t)return M(e);const r=M(e),o=M(t),i=p(n,0,1),s=i*2-1,a=r.a-o.a,u=((s*a===-1?s:(s+a)/(1+s*a))+1)/2,f=1-u;return{r:Math.round(r.r*u+o.r*f),g:Math.round(r.g*u+o.g*f),b:Math.round(r.b*u+o.b*f),a:Math.round(r.a*i+o.a*(1-i)),format:"rgba",toString:h}}function Rt(e,t){const n=M(e);return n.a=A(F(t)?D(t):t),n}function _(e){return e.length===1?`0${e}`:e.toString()}function N(e){return e.charAt(0)===e.charAt(1)}function Tt(e){return Math.round(parseFloat(e)*255).toString(16)}function _e(e){return parseInt(e,16)/255}function p(e,t,n){return Math.max(t,Math.min(n,parseFloat(e)))}function ee(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function F(e){return e.toString().trim().includes("%")}function D(e){const t=parseFloat(e)/100;return Number.isNaN(t)?0:t}function h(){return this.a&&this.a>=0&&this.a<1?`rgba(${this.r}, ${this.g}, ${this.b}, ${this.a})`:`rgb(${this.r}, ${this.g}, ${this.b})`}function P(){return this.a&&this.a>=0&&this.a<1?`hsla(${this.h}, ${this.s}, ${this.l}, ${this.a})`:`hsl(${this.h}, ${this.s}, ${this.l})`}function v(){return this.a&&this.a>=0&&this.a<1?`hsva(${this.h}, ${this.s}, ${this.v}, ${this.a})`:`hsv(${this.h}, ${this.s}, ${this.v})`}const z=typeof window<"u";var Oe;const wt=z&&((Oe=window==null?void 0:window.navigator)==null?void 0:Oe.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent),Ft=Object.prototype.toString,Dt=Object.prototype.hasOwnProperty;function k(e,t){return Ft.call(e)===`[object ${t}]`}function Ht(e,t){return Dt.call(e,t)}function R(e){return e!=null}function kt(e){return e==null}function Ct(e){return typeof e=="number"}function $t(e){return Number.isNaN(e)}function xt(e){return typeof e=="string"}function It(e){return typeof e=="boolean"}function Lt(e){return e===!0}function Ut(e){return e===!1}function Yt(e){return typeof e=="symbol"}function Bt(e){return typeof e=="bigint"}function Gt(e){return Array.isArray(e)}function Y(e){return k(e,"Object")}function Pt(e){return!!e&&typeof e.then=="function"&&typeof e.catch=="function"}function $e(e){return typeof e=="function"}function vt(e){return k(e,"Set")}function Wt(e){return k(e,"Map")}function qt(e){return k(e,"Date")}function zt(e){return k(e,"RegExp")}function jt(e){return Array.isArray(e)||typeof e=="string"?e.length===0:e instanceof Map||e instanceof Set?e.size===0:Y(e)?Object.keys(e).length===0:!1}function Kt(e){return z?!!(e&&"nodeType"in e):!1}function Qt(){}function Xt(e,t=1,n=1){const r=[];for(let o=0;o<e;++o)r.push(t+o*n);return r}function Vt(e){return Object.prototype.toString.call(e).slice(8,-1)}function Zt(e=16){const t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890",n=t.length;let r="";for(;e--;)r+=t.charAt(Math.floor(Math.random()*n));return r}function Ne(e){return e&-e}function Jt(e,t=0){const n=new Array(e+1).fill(0);function r(a,c){if(!(!c||a>=e))for(a+=1;a<=e;)n[a]+=c,a+=Ne(a)}function o(a=e){if(a<=0)return 0;a>e&&(a=e);let c=a*t;for(;a>0;)c+=n[a],a-=Ne(a);return c}function i(a){return o(a+1)-o(a)}function s(a){let c=0,u=e;for(;u>c;){const f=Math.floor((c+u)/2),d=o(f);if(d>a){u=f;continue}else if(d<a){if(c===f)return o(c+1)<=a?c+1:c;c=f}else return f}return c}return{add:r,sum:o,get:i,boundIndex:s}}function en(e){const t=parseFloat(e);return Number.isNaN(t)?0:t}function E(e){return e<10?`0${e}`:e.toString()}function tn(e,t=3,n=","){if(typeof e!="number"&&(e=parseFloat(e)),Number.isNaN(e))return"0";let[r,o]=String(e).split(".");const i=new RegExp(`(\\d+)(\\d{${t}})`);for(;i.test(r);)r=r.replace(i,`$1${n}$2`);return o=o?`.${o}`:"",`${r}${o}`}function xe(e,t){if(t===0)return Math.round(e);let n=String(e);const r=n.indexOf(".");if(r===-1)return e;const o=n.replace(".","").split(""),i=r+t;return o[i]?(n.charAt(i+1)==="5"?n=n.substring(0,i+1)+"6":n=n.substring(0,i+2),parseFloat(Number(n).toFixed(t))):e}function nn(e,t,n){return xe(e*t,n)}function rn(e,t){if(t<0||t>1)return Math.round(e);const n=Math.ceil(e);return e+t>=n?n:Math.floor(e)}function on(e,t,n){return Math.max(t,Math.min(n,parseFloat(e)))}const sn=Object.freeze(["B","KB","MB","GB","TB","AUTO"]);function an(e,t="AUTO"){let n=t.toUpperCase();n=sn.includes(n)?n:"AUTO";let r;switch(n){case"AUTO":r=0;break;case"KB":r=1;break;case"MB":r=2;break;case"GB":r=3;break;case"TB":r=4;break;default:return e}let o;if(r)o=e/1024**r;else for(o=e;o>1024&&!(r>4);++r)o=o/1024;return o}function m(e){const t=e.toString().split(/[eE]/),n=(t[0].split(".")[1]||"").length-+(t[1]||0);return n>0?n:0}function be(e,t=15){return+parseFloat(Number(e).toPrecision(t))}function W(e){const t=String(e);if(!t.includes("e"))return Number(t.replace(".",""));const n=m(e);return n>0?be(Number(e)*10**n):Number(e)}function j(e){return(...t)=>{let n=t[0];for(let r=1,o=t.length;r<o;++r)n=e(n,t[r]);return n}}const H=j((e,t)=>{const n=W(e),r=W(t),o=m(e)+m(t);return n*r/10**o}),cn=j((e,t)=>{const n=10**Math.max(m(e),m(t));return(H(e,n)+H(t,n))/n}),fn=j((e,t)=>{const n=10**Math.max(m(e),m(t));return(H(e,n)-H(t,n))/n}),un=j((e,t)=>{const n=W(e),r=W(t);return H(n/r,be(10**(m(t)-m(e))))}),w=1e3,C=60,Ie=C*w,G=60,Le=G*C,Ue=Le*w,ye=24,Ye=ye*G,Be=Ye*C,Ge=Be*w,K=7,Pe=K*ye,ve=Pe*G,We=ve*C,qe=We*w,Ee=3,ze=4,je=ze*Ee,ln={y(e,t){const n=e.getFullYear();return t.length===4?n:n%1e3%100},M(e,t){const n=e.getMonth()+1;return t.length===2?E(n):n},d(e,t){const n=e.getDate();return t.length===2?E(n):n},H(e,t){const n=e.getHours();return t.length===2?E(n):n},m(e,t){const n=e.getMinutes();return t.length===2?E(n):n},s(e,t){const n=e.getSeconds();return t.length===2?E(n):n},q(e,t){const n=Math.ceil((e.getMonth()+1)/3);return t.length===2?E(n):n}},dn=/[yMdHmsq](\w)*|./g,gn=/'(.+?)'/g;function l(e,t=!1){const n=new Date(e);if(t&&Number.isNaN(+n))throw new RangeError("Invalid date value");return n}function hn(e,t="yyyy-MM-dd HH:mm:ss"){e=l(e);const n=t.match(dn),r=n==null?void 0:n.length;if(!r)return t;let o=0,i="";for(;o<r;){const s=n[o],a=s[0],c=ln[a];c?i+=c(e,s):i+=s,++o}return i.replace(gn,"$1")}function q(e){return e=l(e),Math.floor(e.getMonth()/3)+1}const pn=["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"];function mn(e){return pn[e.getDay()]}function Ke(e,t){return e=l(e),e.setTime(e.getTime()+t),e}function Qe(e,t){return t*=w,Ke(e,t)}function Xe(e,t){return t*=C,Qe(e,t)}function Ve(e,t){return t*=G,Xe(e,t)}function bn(e,t){return t*=12,Ve(e,t)}function Q(e,t){return e=l(e),t=~~t,e.setDate(e.getDate()+t),e}function yn(e,t){return t*=K,Q(e,t)}function X(e,t){return e=l(e),t=~~t,e.setMonth(e.getMonth()+t),e}function En(e,t){return t*=Ee,X(e,t)}function Sn(e,t){return t*=je,X(e,t)}function Mn(e,t=42,n=1){e=l(e);const r=[];for(let o=0;o<t;++o)r.push(Q(e,o*n));return r}function _n(e,t=12,n=1){e=l(e);const r=[];for(let o=0;o<t;++o)r.push(X(e,o*n));return r}function Nn(e){var n;const t=(n=e.getDay())!=null?n:7;return Q(e,-t)}function ne(e){return e=l(e),e.setMilliseconds(0),e}function re(e){return e=l(e),e.setSeconds(0,0),e}function oe(e){return e=l(e),e.setMinutes(0,0,0),e}function ie(e){return e=l(e),e.setHours(0,0,0,0),e}function An(e){return e=l(e),e.setHours(23,59,59,999),e}function se(e,t=0){t=t%7,t<0&&(t+=7),e=l(e);const n=e.getDay(),r=(n<t?7:0)+n-t;return e.setDate(e.getDate()-r),e.setHours(0,0,0,0),e}function On(e){return e%4===0&&e%100!==0||e%400===0}function Rn(e,t=1){e=l(e);const n=e.getFullYear(),r=e.getMonth()+1,o=e.getDate(),i=n%4===0&&n%100!==0||n%400===0;let s;return r<7?r!==2?s=30+r%2:i?s=29:s=28:s=31-r%2,t=t%s,t<0&&(t+=s),o<t&&e.setMonth(r-1),e.setDate(t),e.setHours(0,0,0,0),e}function Tn(e){e=l(e);const t=q(e);return e.setDate(1),e.setHours(0,0,0,0),e.setMonth((t-1)*3),e}function wn(e,t=0){t=t%11,t<0&&(t+=11),e=l(e);const n=e.getMonth(),r=(n<t?11:0)+n-t;return e.setMonth(e.getMonth()-r),e.setDate(1),e.setHours(0,0,0,0),e}function V(e,t){return e=l(e),t=l(t),t.getTime()-e.getTime()}function Ze(e,t){const n=V(e,t)/w;return n>0?Math.floor(n):Math.ceil(n)}function Je(e,t){const n=V(e,t)/Ie;return n>0?Math.floor(n):Math.ceil(n)}function et(e,t){const n=V(e,t)/Ue;return n>0?Math.floor(n):Math.ceil(n)}function tt(e,t){return e=ie(e),t=ie(t),(t.getTime()-e.getTime())/Ge}function Fn(e,t,n=0){return e=se(e,n),t=se(t,n),(t.getTime()-e.getTime())/qe}function nt(e,t){e=l(e),t=l(t);const n=t.getFullYear()-e.getFullYear(),r=t.getMonth()-e.getMonth();return n*12+r}function Dn(e,t){e=l(e),t=l(t);const n=t.getFullYear()-e.getFullYear(),r=q(t)-q(e);return n*4+r}function rt(e,t){return e=l(e),t=l(t),t.getFullYear()-e.getFullYear()}function ot(e,t){e=l(e),t=l(t);const n=e.getTime()-t.getTime();return n<0?-1:n>0?1:n}function T(e,t){return-ot(e,t)}function Hn(e,t){return e=ne(e),t=ne(t),Ze(e,t)}function kn(e,t){return e=re(e),t=re(t),Je(e,t)}function Cn(e,t){return e=oe(e),t=oe(t),et(e,t)}function it(e,t){const n=T(e,t),r=Math.abs(tt(e,t));e=l(e),e.setDate(e.getDate()+n*r);const o=T(e,t)===-n;return n*(r-(o?1:0))}function $n(e,t){const n=it(e,t)/K;return n>0?Math.floor(n):Math.ceil(n)}function st(e,t){const n=T(e,t),r=Math.abs(nt(e,t));e=l(e),e.setMonth(e.getMonth()+n*r);const o=T(e,t)===-n;return n*(r-(o?1:0))}function xn(e,t){const n=st(e,t)/3;return n>0?Math.floor(n):Math.ceil(n)}function In(e,t){const n=T(e,t),r=Math.abs(rt(e,t));e=l(e),e.setFullYear(e.getFullYear()+n*r);const o=T(e,t)===-n;return n*(r-(o?1:0))}function at(e){if(e===null||typeof e!="object")return e;const t=Array.isArray(e)?[]:{},n=[{parent:t,key:void 0,data:e}];for(;n.length;){const r=n.pop(),{parent:o,key:i,data:s}=r,a=Array.isArray(s)?"array":"object";if(!o)continue;let c=o;typeof i<"u"&&(c=o[i]=a==="array"?[]:{}),Object.keys(s).forEach(u=>{const f=s[u];f===s?c[u]=c:f!==null&&typeof f=="object"?n.push({parent:c,key:u,data:f}):c[u]=f})}return t}const Ln="This object was destroyed, do not use it anywhere",Un=()=>!0;function Yn(e,t=Ln){const n=()=>{throw new Error(t)};Object.keys(e).forEach(r=>{typeof e[r]=="function"?e[r]=n.bind(e):e[r]=null}),Object.getOwnPropertyNames(e.constructor.prototype).forEach(r=>{r!=="constructor"&&typeof e[r]=="function"&&(e[r]=n.bind(e))}),e.isDestroyed=Un}const ct=typeof window<"u"&&("ontouchstart"in window||Gn()>0),Bn=ct?"touchstart":"click";function Gn(){return typeof navigator<"u"&&(navigator.maxTouchPoints||navigator.msMaxTouchPoints)||0}const b=new Map;function Pn(e){b.has(e)||b.set(e,new Set)}function vn(e){var t;return(t=b.get(e))!=null?t:b.set(e,new Set).get(e)}function Wn(e,t){if(typeof t=="string"&&(t=[t]),Array.isArray(t))for(let n=0,r=t.length;n<r;++n){const o=t[n];b.has(o)||b.set(o,new Set),b.get(o).add(e)}}function qn(e,t){var n;if(typeof t=="string"&&(t=[t]),Array.isArray(t))for(let r=0,o=t.length;r<o;++r){const i=t[r];b.has(i)&&((n=b.get(i))==null||n.delete(e))}}function zn(e,t,n=window.Event){const{type:r,bubbles:o=!1,cancelable:i=!1,...s}=t;if(!R(r)||r==="")return!1;let a;return R(n)?a=new n(r,{bubbles:o,cancelable:i}):(a=document.createEvent("HTMLEvents"),a.initEvent(r,o,i)),Object.assign(a,s),e.dispatchEvent(a)}const jn=["button","[href]:not(.disabled)","input","select","textarea","[tabindex]","[contenteditable]"].map(e=>`${e}:not(:disabled):not([disabled])`).join(", ");function Z(e){return!!e&&e.nodeType===Node.ELEMENT_NODE}function Kn(e){return Z(e)?e:document.body}function ft(e,t){return e?Array.from(Kn(t).querySelectorAll(e)):[]}function Qn(e){const t=document.activeElement;return!Z(e)||!t?!1:e===t||Se(t,e)}function Se(e,t){if(!e||!t)return!1;const n=t.__transferElement;return t.contains(e)||!!n&&(n===e||n.contains(e))}function ut(e){if(!Z(e)||!e.parentNode||!Se(e,document.body)||e.style.display==="none")return!0;const t=e.getBoundingClientRect();return!(t&&t.width>0&&t.height>0)}function lt(e){return!ut(e)}function dt(e){return!Z(e)||e.hasAttribute("disabled")&&e.getAttribute("disabled")!=="false"||e.disabled}function Xn(e,t=!1){const n=t?()=>!1:dt;return ft(jn,e).filter(r=>lt(r)&&r.tabIndex>-1&&!n(r))}function gt(e){if(!e)return 0;const t=getComputedStyle(e);return parseFloat(t.paddingLeft)+parseFloat(t.paddingRight)||0}function Vn(e){if(!e)return 0;const t=getComputedStyle(e);return parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)||0}function Zn(e){if(!e)return 0;const t=getComputedStyle(e);return parseFloat(t.marginLeft)+parseFloat(t.marginRight)||0}function Jn(e){if(!e)return 0;const t=getComputedStyle(e);return parseFloat(t.marginTop)+parseFloat(t.marginBottom)||0}function er(e){if(!e)return 0;const t=document.createRange();t.setStart(e,0),t.setEnd(e,e.childNodes.length);const n=t.getBoundingClientRect().width,r=gt(e);return n+r}const tr=/["'&<>]/;function nr(e){const t=""+e,n=tr.exec(t);if(!n)return t;let r="",o,i,s=0;for(i=n.index;i<t.length;i++){switch(t.charCodeAt(i)){case 34:o=""";break;case 38:o="&";break;case 39:o="'";break;case 60:o="<";break;case 62:o=">";break;default:continue}s!==i&&(r+=t.substring(s,i)),s=i+1,r+=o}return s!==i?r+t.substring(s,i):r}function rr(){const e=new Map;return{on(t,n){const r=e.get(t);(r==null?void 0:r.add(n))||e.set(t,new Set([n]))},off(t,n){const r=e.get(t);r&&r.delete(n)},clear(t){const n=e.get(t);n&&n.clear()},clearAll(){e.clear()},emit(t,...n){const r=e.get(t);r&&r.forEach(o=>{o(...n)})}}}function or(e,t=16){if(typeof e!="function")return e;let n=Date.now(),r;return function(...o){const i=Date.now(),s=n+t-i;clearTimeout(r),s<=0?(e(...o),n=Date.now()):r=setTimeout(()=>{e(...o)},t)}}function ir(e,t=100){if(typeof e!="function")return e;let n;return function(...r){clearTimeout(n),n=setTimeout(()=>{e(...r)},t)}}function sr(e){if(typeof e!="function")return e;let t=!1,n;return function(...r){n=r,t||(t=!0,Promise.resolve().then(()=>{e(...n),t=!1}))}}function ar(e){if(typeof e!="function")return e;let t=!1,n;return function(...r){n=r,t||(t=!0,requestAnimationFrame(()=>{e(...n),t=!1}))}}const $=new Set,ht=new WeakMap;function cr(){$.forEach(e=>{e(...ht.get(e))}),$.clear()}function fr(e,...t){if(typeof e!="function")return e;ht.set(e,t),!$.has(e)&&($.add(e),$.size===1&&Promise.resolve().then(cr))}const x=new Set,pt=new WeakMap;function ur(){x.forEach(e=>{e(...pt.get(e))}),x.clear()}function lr(e,...t){if(typeof e!="function")return e;pt.set(e,t),!x.has(e)&&(x.add(e),x.size===1&&requestAnimationFrame(ur))}let te=null;function dr(){if(!z)return!0;if(te===null){const e=document.createElement("div");e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e),te=e.scrollHeight===1,document.body.removeChild(e)}return te}function gr(e,t,n=r=>r){const r={};if(!R(t))return r;const o=$e(t)?t:i=>i[t];return e.forEach(i=>{const s=o(i);R(s)&&(r[s]=n(i))}),r}function hr(e,t,n=!1){let r=-1;return n||typeof t!="function"?r=e.findIndex(o=>o===t):r=e.findIndex(t),~r?e.splice(r,1)[0]:null}function pr(e,t=[]){(typeof t=="string"||typeof t=="function")&&(t=[t]);const n=t.length,r={};for(const o of e){let i;for(let s=0;s<n;++s){const a=s===n-1,c=t[s],u=typeof c=="function"?c(o):o[c];i?(i[u]||(i[u]=a?[]:{}),i=i[u]):(r[u]||(r[u]=a?[]:{}),i=r[u])}i.push(o)}return r}function mr(e,t={}){const{keyField:n="id",childField:r="children",parentField:o="parent",rootId:i=null}=t,s=R(i)&&i!=="",a=[],c=new Map;for(let u=0,f=e.length;u<f;++u){const d=e[u],g=d[n];if(!(s?g===i:!g))if(c.has(g)?d[r]=c.get(g):(d[r]=[],c.set(g,d[r])),d[o]&&(!s||d[o]!==i)){const y=d[o];c.has(y)||c.set(y,[]),c.get(y).push(d)}else a.push(d)}return a}function br(e,t={}){const{keyField:n="id",childField:r="children",parentField:o="parent",rootId:i=null}=t,s=R(i)&&i!=="",a=[],c=[...e];let u=1;for(;c.length;){const f=c.shift();let d=[];const g=f[r];Array.isArray(g)&&g.length&&(d=g),f[n]||(f[n]=u++);const y=f[n];(s?f[o]===i:!f[o])&&(f[o]=i);for(let J=0,bt=d.length;J<bt;++J){const Me=d[J];Me[o]=y,c.push(Me)}a.push(f)}return a}const Ae=(e,t)=>Number.isNaN(Number(e)-Number(t))?String(e).localeCompare(t):e-t;function yr(e,t){if(!e.sort||Y(t)&&!t.key||!t.length)return e;const n=Array.from(e);Array.isArray(t)||(t=[t]);const r=t.map(o=>typeof o=="string"?{key:o,method:Ae,type:"asc"}:o).map(o=>(typeof o.accessor!="function"&&(o.accessor=i=>i[o.key]),typeof o.method!="function"&&(o.method=Ae),o.params=Array.isArray(o.params)?o.params:[],o));return n.sort((o,i)=>{let s=0;for(const a of r){const{method:c,type:u,accessor:f,params:d}=a,g=u==="desc",y=c(f(o,...d),f(i,...d));if(s=g?-y:y,s)break}return s}),n}function Er(e,t,n=!0){e=n?at(e):e;const r=[{source:e,target:t}];for(;r.length;){const{source:o,target:i}=r.pop();Object.keys(i).forEach(s=>{Y(i[s])?(Y(o[s])||(o[s]={}),r.push({source:o[s],target:i[s]})):Array.isArray(i[s])?(Array.isArray(o[s])||(o[s]=[]),r.push({source:o[s],target:i[s]})):o[s]=i[s]})}return e}function Sr(e){return e.charAt(0).toLowerCase()+e.slice(1).replace(/([A-Z])/g,"-$1").toLowerCase()}function mt(e){return e.charAt(0).toUpperCase()+e.slice(1).replace(/-(\w)/g,(t,n)=>n?n.toUpperCase():"")}function Mr(e){const t=mt(e);return t.charAt(0).toLowerCase()+t.slice(1)}exports.CLICK_TYPE=Bn;exports.COLOR_NAMES=Re;exports.DAY_ON_HOURS=ye;exports.DAY_ON_MILLIS=Ge;exports.DAY_ON_MINUTES=Ye;exports.DAY_ON_SECONDS=Be;exports.HEX_REG_3=ge;exports.HEX_REG_4=he;exports.HEX_REG_6=pe;exports.HEX_REG_8=me;exports.HOUR_ON_MILLS=Ue;exports.HOUR_ON_MINUTES=G;exports.HOUR_ON_SECONDS=Le;exports.HSLA_REG=ue;exports.HSL_REG=fe;exports.HSVA_REG=de;exports.HSV_REG=le;exports.MINUTE_ON_MILLS=Ie;exports.MINUTE_ON_SECONDS=C;exports.NAMED_COLORS=I;exports.QUARTER_ON_MONTHS=Ee;exports.RGBA_REG=ce;exports.RGB_REG=ae;exports.SECOND_ON_MILLS=w;exports.USE_TOUCH=ct;exports.WEEK_ON_DAYS=K;exports.WEEK_ON_HOURS=Pe;exports.WEEK_ON_MILLIS=qe;exports.WEEK_ON_MINUTES=ve;exports.WEEK_ON_SECONDS=We;exports.YEAR_ON_MONTHS=je;exports.YEAR_ON_QUARTERS=ze;exports.addDays=Q;exports.addHalfDays=bn;exports.addHours=Ve;exports.addMilliseconds=Ke;exports.addMinutes=Xe;exports.addMonths=X;exports.addQuarters=En;exports.addSeconds=Qe;exports.addWeeks=yn;exports.addYears=Sn;exports.adjustAlpha=Rt;exports.boundRange=on;exports.compareAsc=ot;exports.compareDesc=T;exports.contains=Se;exports.createBITree=Jt;exports.createEvent=Pn;exports.createEventEmitter=rr;exports.debounce=ir;exports.debounceFrame=ar;exports.debounceMinor=sr;exports.deepClone=at;exports.destroyObject=Yn;exports.differenceDays=tt;exports.differenceFullDays=it;exports.differenceFullHours=Cn;exports.differenceFullMinutes=kn;exports.differenceFullMonths=st;exports.differenceFullQuarters=xn;exports.differenceFullSeconds=Hn;exports.differenceFullWeeks=$n;exports.differenceFullYears=In;exports.differenceHours=et;exports.differenceMilliseconds=V;exports.differenceMinutes=Je;exports.differenceMonths=nt;exports.differenceQuarters=Dn;exports.differenceSeconds=Ze;exports.differenceWeeks=Fn;exports.differenceYears=rt;exports.digitLength=m;exports.disconnect=qn;exports.dispatchEvent=zn;exports.divide=un;exports.doubleDigits=E;exports.endOfDay=An;exports.escapeHtml=nr;exports.flatTree=br;exports.format=hn;exports.formatByteSize=an;exports.getChineseWeek=mn;exports.getLastSunday=Nn;exports.getObservers=vn;exports.getQuarter=q;exports.getRangeWidth=er;exports.getType=Vt;exports.getXMargin=Zn;exports.getXPadding=gt;exports.getYMargin=Jn;exports.getYPadding=Vn;exports.groupByProps=pr;exports.has=Ht;exports.hslToHsv=Nt;exports.hslToRgb=we;exports.hsvToHsl=At;exports.hsvToRgb=De;exports.is=k;exports.isArray=Gt;exports.isBigInt=Bt;exports.isBoolean=It;exports.isClient=z;exports.isColor=Mt;exports.isDate=qt;exports.isDefined=R;exports.isDisabled=dt;exports.isElement=Kt;exports.isEmpty=jt;exports.isFalse=Ut;exports.isFocusIn=Qn;exports.isFunction=$e;exports.isHidden=ut;exports.isIOS=wt;exports.isLeepYear=On;exports.isMap=Wt;exports.isNaN=$t;exports.isNull=kt;exports.isNumber=Ct;exports.isObject=Y;exports.isPromise=Pt;exports.isRegExp=zt;exports.isSet=vt;exports.isString=xt;exports.isSymbol=Yt;exports.isTrue=Lt;exports.isVisible=lt;exports.mergeObjects=Er;exports.minus=fn;exports.mixColor=Ot;exports.multipleFixed=nn;exports.nextFrameOnce=lr;exports.nextTickOnce=fr;exports.noop=Qt;exports.normalizeAlpha=A;exports.normalizeHsl=L;exports.normalizeHsv=U;exports.normalizeRgb=O;exports.observe=Wn;exports.parseColor=_t;exports.parseColorToRgba=M;exports.parseStringColor=Te;exports.plus=cn;exports.queryAll=ft;exports.queryTabables=Xn;exports.randomString=Zt;exports.range=Xt;exports.rangeDate=Mn;exports.rangeMonth=_n;exports.removeArrayItem=hr;exports.rgbToHex=ke;exports.rgbToHsl=Fe;exports.rgbToHsv=He;exports.rgbaToHex=Ce;exports.round=rn;exports.segmentNumber=tn;exports.sortByProps=yr;exports.startOfDay=ie;exports.startOfHour=oe;exports.startOfMinute=re;exports.startOfMonth=Rn;exports.startOfQuarter=Tn;exports.startOfSecond=ne;exports.startOfWeek=se;exports.startOfYear=wn;exports.supportFlexGap=dr;exports.throttle=or;exports.times=H;exports.toCamelCase=Mr;exports.toCapitalCase=mt;exports.toDate=l;exports.toFixed=xe;exports.toKebabCase=Sr;exports.toNumber=en;exports.toPrecision=be;exports.transformListToMap=gr;exports.transformTree=mr; |
{ | ||
"name": "@vexip-ui/utils", | ||
"version": "1.6.0", | ||
"version": "1.7.0", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "author": "qmhc", |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
103507
2578
0