@admin-core/design 0.1.0 → 0.2.0
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.
- package/README.md +212 -302
- package/dist/index.cjs +5 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2351 -1
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +5 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/theme/composables.d.ts +89 -0
- package/dist/theme/composables.d.ts.map +1 -0
- package/dist/theme/constants.d.ts +51 -0
- package/dist/theme/constants.d.ts.map +1 -0
- package/dist/theme/index.d.ts +50 -0
- package/dist/theme/index.d.ts.map +1 -0
- package/dist/theme/types.d.ts +135 -0
- package/dist/theme/types.d.ts.map +1 -0
- package/dist/theme/utils.d.ts +230 -0
- package/dist/theme/utils.d.ts.map +1 -0
- package/package.json +23 -2
package/dist/index.umd.js
CHANGED
|
@@ -1,2 +1,6 @@
|
|
|
1
|
-
(function(n){typeof define=="function"&&define.amd?define(n):n()})((function(){"use strict"}));
|
|
1
|
+
(function(f,P){typeof exports=="object"&&typeof module<"u"?P(exports):typeof define=="function"&&define.amd?define(["exports"],P):(f=typeof globalThis<"u"?globalThis:f||self,P(f.AdminKitDesign={}))})(this,(function(f){"use strict";const P="light",fe="default",z={MODE:"theme-mode",VARIANT:"theme-variant"},q={DARK:"dark",LIGHT:"light"},de={THEME:"data-theme",MODE:"data-mode"},Ne=300,Q=[{id:"default",name:"经典蓝",icon:"🔵",description:"经典的蓝色主题,适合大多数场景",primaryColor:"hsl(212, 100%, 48%)",category:"colorful",isDefault:!0},{id:"slate",name:"石板灰",icon:"🔘",description:"石板色主题,沉稳内敛",primaryColor:"hsl(215, 20%, 40%)",category:"neutral"},{id:"burnished-lilac",name:"烟熏薰衣草",icon:"🪻",description:"2026流行色 - 优雅的薰衣草紫,展现高贵气质",primaryColor:"hsl(280, 35%, 65%)",category:"colorful"},{id:"teaberry",name:"茶莓红",icon:"🌹",description:"2026流行色 - 浪漫的茶莓色,充满活力",primaryColor:"hsl(345, 75%, 55%)",category:"colorful"},{id:"amaranth",name:"苋菜紫",icon:"💜",description:"2026流行色 - 神秘的苋菜紫,时尚前卫",primaryColor:"hsl(310, 60%, 45%)",category:"colorful"},{id:"pulse-blue",name:"脉冲蓝",icon:"💙",description:"2026流行色 - 充满活力的脉冲蓝,现代时尚",primaryColor:"hsl(200, 85%, 50%)",category:"colorful"},{id:"deep-teal",name:"深邃青",icon:"🩵",description:"2026流行色 - 深邃的青色,沉稳大气",primaryColor:"hsl(180, 65%, 35%)",category:"colorful"},{id:"mermaid-aqua",name:"美人鱼蓝",icon:"🧜♀️",description:"2026流行色 - 梦幻的美人鱼蓝,清新可爱",primaryColor:"hsl(185, 70%, 55%)",category:"colorful"},{id:"pearl-purple",name:"珍珠紫",icon:"🔮",description:"2026流行色 - 柔和的珍珠紫,优雅迷人",primaryColor:"hsl(270, 45%, 70%)",category:"colorful"},{id:"burgundy",name:"勃艮第",icon:"🍷",description:"2026流行色 - 高端奢华的勃艮第红,尊贵典雅",primaryColor:"hsl(345, 65%, 40%)",category:"colorful"},{id:"burnt-sienna",name:"焦赭石",icon:"🍂",description:"2026流行色 - 温暖的焦赭石色,自然大地",primaryColor:"hsl(15, 60%, 50%)",category:"colorful"},{id:"olive-sage",name:"橄榄绿",icon:"🫒",description:"2026流行色 - 沉稳的橄榄绿,自然和谐",primaryColor:"hsl(80, 30%, 45%)",category:"colorful"},{id:"champagne-gold",name:"香槟金",icon:"🥂",description:"2026流行色 - 奢华的香槟金,高贵优雅",primaryColor:"hsl(45, 55%, 60%)",category:"colorful"},{id:"dusty-rose",name:"灰玫瑰",icon:"🌸",description:"2026流行色 - 柔和的灰玫瑰色,温柔可爱",primaryColor:"hsl(350, 40%, 65%)",category:"colorful"},{id:"citrus-green",name:"柑橘绿",icon:"🍋",description:"2026流行色 - 清新的柑橘绿,充满生机",primaryColor:"hsl(75, 70%, 50%)",category:"colorful"}],On={colorful:Q.filter(e=>e.category==="colorful"),neutral:Q.filter(e=>e.category==="neutral"),monochrome:Q.filter(e=>e.category==="monochrome")},Me=new Map(Q.map(e=>[e.id,e]));function $(){return document.documentElement}function bt(){if(typeof window>"u")return null;const e=localStorage.getItem(z.MODE);return e==="dark"||e==="light"?e:null}function wt(){if(typeof window>"u")return null;const e=localStorage.getItem(z.VARIANT);return Me.has(e)?e:null}function Tt(e){typeof window>"u"||localStorage.setItem(z.MODE,e)}function Nt(e){typeof window>"u"||localStorage.setItem(z.VARIANT,e)}function Dn(){typeof window>"u"||(localStorage.removeItem(z.MODE),localStorage.removeItem(z.VARIANT))}function Mt(e){const t=$();e==="dark"?(t.classList.add(q.DARK),t.classList.remove(q.LIGHT)):(t.classList.remove(q.DARK),t.classList.add(q.LIGHT)),t.setAttribute(de.MODE,e);const n=localStorage.getItem("custom-theme-primary"),r=localStorage.getItem("custom-theme-active")==="true";n&&r&&setTimeout(()=>{const o=Be(n,e);Oe(o,!1)},0)}function Ot(e){const t=$();e==="default"||e===fe?t.removeAttribute(de.THEME):t.setAttribute(de.THEME,e),localStorage.getItem("custom-theme-primary")&&(localStorage.setItem("custom-theme-active","false"),["primary","primary-foreground","secondary","secondary-foreground","accent","accent-foreground","muted","muted-foreground","background","background-deep","foreground","card","card-foreground","border","input","ring","sidebar","sidebar-deep","header","menu"].forEach(o=>{t.style.removeProperty(`--${o}`)}))}function ze(){return typeof window>"u"?P:$().classList.contains(q.DARK)?"dark":"light"}function $n(){return typeof window>"u"?fe:$().getAttribute(de.THEME)||fe}function Z(e,t={}){const{mode:n,variant:r,persist:o=!0}=e,{transition:s=!0}=t;s&&Dt(),n&&(Mt(n),o&&Tt(n)),r&&(Ot(r),o&&Nt(r)),s&&setTimeout(()=>{$t()},Ne)}function Dt(){$().style.setProperty("transition",`background-color ${Ne}ms ease, color ${Ne}ms ease`)}function $t(){$().style.removeProperty("transition")}function Ct(e={}){const n=ze()==="dark"?"light":"dark";return Z({mode:n},e),n}function Vt(){const e=bt(),t=wt(),n={mode:e||P,variant:t||fe,persist:!0,enableTransition:!1};return Z(n,{transition:!1}),n}function Cn(){return typeof window>"u"?P:window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function It(e){if(typeof window>"u")return()=>{};const t=window.matchMedia("(prefers-color-scheme: dark)"),n=r=>{e(r.matches?"dark":"light")};return t.addEventListener("change",n),()=>{t.removeEventListener("change",n)}}function Rt(){return Q}function At(e){return Me.get(e)}function Ye(e){const n=e.replace(/hsl\(|\)|%/g,"").trim().split(/[\s,]+/).map(Number);if(n.length<3||n[0]===void 0||n[1]===void 0||n[2]===void 0)return null;const r={h:n[0],s:n[1],l:n[2]};return n[3]!==void 0&&(r.a=n[3]),r}function Vn(e){const{h:t,s:n,l:r,a:o}=e;return o!==void 0&&o!==1?`hsla(${t}, ${n}%, ${r}%, ${o})`:`hsl(${t}, ${n}%, ${r}%)`}function xt(e){if(typeof window>"u")return"";const t=$();return getComputedStyle(t).getPropertyValue(`--${e}`).trim()}function In(e,t){if(typeof window>"u")return;$().style.setProperty(`--${e}`,t)}function Rn(e){const t=xt(e);return t&&!t.startsWith("hsl")?`hsl(${t})`:t}function An(e){return Me.has(e)}function xn(e){return e==="light"||e==="dark"}function Oe(e,t=!1){if(typeof window>"u")return;const n=$(),r=o=>o.replace(/hsl\(|\)|%/g,"").trim();Object.entries(e).forEach(([o,s])=>{if(s){const i=o.replace(/([A-Z])/g,"-$1").toLowerCase(),c=r(s);n.style.setProperty(`--${i}`,c)}}),t&&localStorage.setItem("custom-theme-colors",JSON.stringify(e))}function Ht(){if(typeof window>"u")return null;const e=localStorage.getItem("custom-theme-colors");if(!e)return null;try{return JSON.parse(e)}catch{return null}}function Hn(){if(typeof window>"u")return;const e=$();["primary","primaryForeground","secondary","secondaryForeground","accent","accentForeground","muted","mutedForeground","background","backgroundDeep","foreground","card","cardForeground","border","input","ring","sidebar","sidebarDeep","header","menu"].forEach(n=>{const r=n.replace(/([A-Z])/g,"-$1").toLowerCase();e.style.removeProperty(`--${r}`)}),localStorage.removeItem("custom-theme-colors"),localStorage.removeItem("custom-theme-primary"),localStorage.removeItem("custom-theme-active")}function kn(){const e=Ht();return e?(Oe(e,!1),!0):!1}function kt(e){e=e.replace("#","");const t=Number.parseInt(e.substring(0,2),16)/255,n=Number.parseInt(e.substring(2,4),16)/255,r=Number.parseInt(e.substring(4,6),16)/255,o=Math.max(t,n,r),s=Math.min(t,n,r);let i=0,c=0;const l=(o+s)/2;if(o!==s){const h=o-s;switch(c=l>.5?h/(2-o-s):h/(o+s),o){case t:i=((n-r)/h+(n<r?6:0))/6;break;case n:i=((r-t)/h+2)/6;break;case r:i=((t-n)/h+4)/6;break}}i=Math.round(i*360),c=Math.round(c*100);const u=Math.round(l*100);return`${i} ${c}% ${u}%`}function Pn(e,t,n){e/=255,t/=255,n/=255;const r=Math.max(e,t,n),o=Math.min(e,t,n);let s=0,i=0;const c=(r+o)/2;if(r!==o){const u=r-o;switch(i=c>.5?u/(2-r-o):u/(r+o),r){case e:s=((t-n)/u+(t<n?6:0))/6;break;case t:s=((n-e)/u+2)/6;break;case n:s=((e-t)/u+4)/6;break}}s=Math.round(s*360),i=Math.round(i*100);const l=Math.round(c*100);return`${s} ${i}% ${l}%`}function Be(e,t="light"){let n;if(e.startsWith("#"))n=kt(e);else if(e.startsWith("hsl")){const o=Ye(e);n=o?`${o.h} ${o.s}% ${o.l}%`:e}else n=e;const r=Ye(n);if(!r)throw new Error("Invalid color format");return t==="light"?{primary:n,primaryForeground:r.l>50?"0 0% 10%":"0 0% 98%",secondary:`${r.h} ${Math.max(5,r.s-30)}% ${Math.min(96,r.l+40)}%`,secondaryForeground:`${r.h} ${Math.min(100,r.s+20)}% ${Math.max(10,r.l-40)}%`,accent:`${r.h} ${Math.max(5,r.s-25)}% ${Math.min(96,r.l+35)}%`,accentForeground:`${r.h} ${Math.min(100,r.s+15)}% ${Math.max(10,r.l-35)}%`,muted:`${r.h} ${Math.max(5,r.s-40)}% 96%`,mutedForeground:`${r.h} ${Math.max(5,r.s-35)}% 46%`,background:"0 0% 100%",backgroundDeep:`${r.h} ${Math.max(5,r.s-45)}% 95%`,foreground:`${r.h} ${Math.max(5,r.s-40)}% 15%`,card:"0 0% 100%",cardForeground:`${r.h} ${Math.max(5,r.s-40)}% 15%`,border:`${r.h} ${Math.max(5,r.s-40)}% 90%`,input:`${r.h} ${Math.max(5,r.s-40)}% 90%`,ring:n,sidebar:"0 0% 100%",sidebarDeep:"0 0% 100%",header:"0 0% 100%",menu:"0 0% 100%"}:{primary:`${r.h} ${r.s}% ${Math.min(65,r.l+10)}%`,primaryForeground:"0 0% 98%",secondary:`${r.h} ${Math.max(5,r.s-30)}% 17%`,secondaryForeground:"0 0% 98%",accent:`${r.h} ${Math.max(5,r.s-25)}% 19%`,accentForeground:"0 0% 98%",muted:`${r.h} ${Math.max(5,r.s-35)}% 16%`,mutedForeground:`${r.h} ${Math.max(5,r.s-30)}% 65%`,background:`${r.h} ${Math.max(5,r.s-30)}% 12%`,backgroundDeep:`${r.h} ${Math.max(5,r.s-35)}% 9%`,foreground:"0 0% 95%",card:`${r.h} ${Math.max(5,r.s-30)}% 12%`,cardForeground:"0 0% 95%",border:`${r.h} ${Math.max(5,r.s-35)}% 22%`,input:`${r.h} ${Math.max(5,r.s-35)}% 22%`,ring:`${r.h} ${r.s}% ${Math.min(65,r.l+10)}%`,sidebar:`${r.h} ${Math.max(5,r.s-30)}% 12%`,sidebarDeep:`${r.h} ${Math.max(5,r.s-35)}% 9%`,header:`${r.h} ${Math.max(5,r.s-30)}% 12%`,menu:`${r.h} ${Math.max(5,r.s-30)}% 12%`}}function Fn(e,t,n=!1){const r=t||ze(),o=Be(e,r);Oe(o,n),localStorage.setItem("custom-theme-primary",e),localStorage.setItem("custom-theme-active","true")}function Ln(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const he=process.env.NODE_ENV!=="production"?Object.freeze({}):{};process.env.NODE_ENV!=="production"&&Object.freeze([]);const X=()=>{},Kn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),F=Object.assign,jn=Object.prototype.hasOwnProperty,Je=(e,t)=>jn.call(e,t),y=Array.isArray,ee=e=>De(e)==="[object Map]",Wn=e=>De(e)==="[object Set]",S=e=>typeof e=="function",A=e=>typeof e=="string",pe=e=>typeof e=="symbol",w=e=>e!==null&&typeof e=="object",Un=e=>(w(e)||S(e))&&S(e.then)&&S(e.catch),zn=Object.prototype.toString,De=e=>zn.call(e),Pt=e=>De(e).slice(8,-1),Yn=e=>De(e)==="[object Object]",Ge=e=>A(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ft=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},Lt=Ft(e=>e.charAt(0).toUpperCase()+e.slice(1)),Bn=Ft(e=>e?`on${Lt(e)}`:""),L=(e,t)=>!Object.is(e,t);let Kt;const $e=()=>Kt||(Kt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function qe(e){if(y(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],o=A(r)?Qn(r):qe(r);if(o)for(const s in o)t[s]=o[s]}return t}else if(A(e)||w(e))return e}const Jn=/;(?![^(]*\))/g,Gn=/:([^]+)/,qn=/\/\*[^]*?\*\//g;function Qn(e){const t={};return e.replace(qn,"").split(Jn).forEach(n=>{if(n){const r=n.split(Gn);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Qe(e){let t="";if(A(e))t=e;else if(y(e))for(let n=0;n<e.length;n++){const r=Qe(e[n]);r&&(t+=r+" ")}else if(w(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function V(e,...t){console.warn(`[Vue warn] ${e}`,...t)}let _;const Ze=new WeakSet;class Zn{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Ze.has(this)&&(Ze.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Wt(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Jt(this),Ut(this);const t=_,n=C;_=this,C=!0;try{return this.fn()}finally{process.env.NODE_ENV!=="production"&&_!==this&&V("Active effect was not restored correctly - this is likely a Vue internal bug."),zt(this),_=t,C=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)nt(t);this.deps=this.depsTail=void 0,Jt(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Ze.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){tt(this)&&this.run()}get dirty(){return tt(this)}}let jt=0,me,ge;function Wt(e,t=!1){if(e.flags|=8,t){e.next=ge,ge=e;return}e.next=me,me=e}function Xe(){jt++}function et(){if(--jt>0)return;if(ge){let t=ge;for(ge=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;me;){let t=me;for(me=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function Ut(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function zt(e){let t,n=e.depsTail,r=n;for(;r;){const o=r.prevDep;r.version===-1?(r===n&&(n=o),nt(r),Xn(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=o}e.deps=t,e.depsTail=n}function tt(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Yt(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Yt(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===_e)||(e.globalVersion=_e,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!tt(e))))return;e.flags|=2;const t=e.dep,n=_,r=C;_=e,C=!0;try{Ut(e);const o=e.fn(e._value);(t.version===0||L(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{_=n,C=r,zt(e),e.flags&=-3}}function nt(e,t=!1){const{dep:n,prevSub:r,nextSub:o}=e;if(r&&(r.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=r,e.nextSub=void 0),process.env.NODE_ENV!=="production"&&n.subsHead===e&&(n.subsHead=o),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let s=n.computed.deps;s;s=s.nextDep)nt(s,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Xn(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let C=!0;const Bt=[];function te(){Bt.push(C),C=!1}function ne(){const e=Bt.pop();C=e===void 0?!0:e}function Jt(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=_;_=void 0;try{t()}finally{_=n}}}let _e=0;class er{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class rt{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0,process.env.NODE_ENV!=="production"&&(this.subsHead=void 0)}track(t){if(!_||!C||_===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==_)n=this.activeLink=new er(_,this),_.deps?(n.prevDep=_.depsTail,_.depsTail.nextDep=n,_.depsTail=n):_.deps=_.depsTail=n,Gt(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=_.depsTail,n.nextDep=void 0,_.depsTail.nextDep=n,_.depsTail=n,_.deps===n&&(_.deps=r)}return process.env.NODE_ENV!=="production"&&_.onTrack&&_.onTrack(F({effect:_},t)),n}trigger(t){this.version++,_e++,this.notify(t)}notify(t){Xe();try{if(process.env.NODE_ENV!=="production")for(let n=this.subsHead;n;n=n.nextSub)n.sub.onTrigger&&!(n.sub.flags&8)&&n.sub.onTrigger(F({effect:n.sub},t));for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{et()}}}function Gt(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)Gt(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),process.env.NODE_ENV!=="production"&&e.dep.subsHead===void 0&&(e.dep.subsHead=e),e.dep.subs=e}}const ot=new WeakMap,Y=Symbol(process.env.NODE_ENV!=="production"?"Object iterate":""),st=Symbol(process.env.NODE_ENV!=="production"?"Map keys iterate":""),ye=Symbol(process.env.NODE_ENV!=="production"?"Array iterate":"");function T(e,t,n){if(C&&_){let r=ot.get(e);r||ot.set(e,r=new Map);let o=r.get(n);o||(r.set(n,o=new rt),o.map=r,o.key=n),process.env.NODE_ENV!=="production"?o.track({target:e,type:t,key:n}):o.track()}}function K(e,t,n,r,o,s){const i=ot.get(e);if(!i){_e++;return}const c=l=>{l&&(process.env.NODE_ENV!=="production"?l.trigger({target:e,type:t,key:n,newValue:r,oldValue:o,oldTarget:s}):l.trigger())};if(Xe(),t==="clear")i.forEach(c);else{const l=y(e),u=l&&Ge(n);if(l&&n==="length"){const h=Number(r);i.forEach((a,d)=>{(d==="length"||d===ye||!pe(d)&&d>=h)&&c(a)})}else switch((n!==void 0||i.has(void 0))&&c(i.get(n)),u&&c(i.get(ye)),t){case"add":l?u&&c(i.get("length")):(c(i.get(Y)),ee(e)&&c(i.get(st)));break;case"delete":l||(c(i.get(Y)),ee(e)&&c(i.get(st)));break;case"set":ee(e)&&c(i.get(Y));break}}et()}function re(e){const t=m(e);return t===e?t:(T(t,"iterate",ye),N(e)?t:t.map(H))}function it(e){return T(e=m(e),"iterate",ye),e}function j(e,t){return I(e)?oe(e)?Ee(H(t)):Ee(t):H(t)}const tr={__proto__:null,[Symbol.iterator](){return ct(this,Symbol.iterator,e=>j(this,e))},concat(...e){return re(this).concat(...e.map(t=>y(t)?re(t):t))},entries(){return ct(this,"entries",e=>(e[1]=j(this,e[1]),e))},every(e,t){return x(this,"every",e,t,void 0,arguments)},filter(e,t){return x(this,"filter",e,t,n=>n.map(r=>j(this,r)),arguments)},find(e,t){return x(this,"find",e,t,n=>j(this,n),arguments)},findIndex(e,t){return x(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return x(this,"findLast",e,t,n=>j(this,n),arguments)},findLastIndex(e,t){return x(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return x(this,"forEach",e,t,void 0,arguments)},includes(...e){return at(this,"includes",e)},indexOf(...e){return at(this,"indexOf",e)},join(e){return re(this).join(e)},lastIndexOf(...e){return at(this,"lastIndexOf",e)},map(e,t){return x(this,"map",e,t,void 0,arguments)},pop(){return ve(this,"pop")},push(...e){return ve(this,"push",e)},reduce(e,...t){return qt(this,"reduce",e,t)},reduceRight(e,...t){return qt(this,"reduceRight",e,t)},shift(){return ve(this,"shift")},some(e,t){return x(this,"some",e,t,void 0,arguments)},splice(...e){return ve(this,"splice",e)},toReversed(){return re(this).toReversed()},toSorted(e){return re(this).toSorted(e)},toSpliced(...e){return re(this).toSpliced(...e)},unshift(...e){return ve(this,"unshift",e)},values(){return ct(this,"values",e=>j(this,e))}};function ct(e,t,n){const r=it(e),o=r[t]();return r!==e&&!N(e)&&(o._next=o.next,o.next=()=>{const s=o._next();return s.done||(s.value=n(s.value)),s}),o}const nr=Array.prototype;function x(e,t,n,r,o,s){const i=it(e),c=i!==e&&!N(e),l=i[t];if(l!==nr[t]){const a=l.apply(e,s);return c?H(a):a}let u=n;i!==e&&(c?u=function(a,d){return n.call(this,j(e,a),d,e)}:n.length>2&&(u=function(a,d){return n.call(this,a,d,e)}));const h=l.call(i,u,r);return c&&o?o(h):h}function qt(e,t,n,r){const o=it(e);let s=n;return o!==e&&(N(e)?n.length>3&&(s=function(i,c,l){return n.call(this,i,c,l,e)}):s=function(i,c,l){return n.call(this,i,j(e,c),l,e)}),o[t](s,...r)}function at(e,t,n){const r=m(e);T(r,"iterate",ye);const o=r[t](...n);return(o===-1||o===!1)&&Re(n[0])?(n[0]=m(n[0]),r[t](...n)):o}function ve(e,t,n=[]){te(),Xe();const r=m(e)[t].apply(e,n);return et(),ne(),r}const rr=Ln("__proto__,__v_isRef,__isVue"),Qt=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(pe));function or(e){pe(e)||(e=String(e));const t=m(this);return T(t,"has",e),t.hasOwnProperty(e)}class Zt{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const o=this._isReadonly,s=this._isShallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return s;if(n==="__v_raw")return r===(o?s?pr:nn:s?hr:tn).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const i=y(t);if(!o){let l;if(i&&(l=tr[n]))return l;if(n==="hasOwnProperty")return or}const c=Reflect.get(t,n,M(t)?t:r);if((pe(n)?Qt.has(n):rr(n))||(o||T(t,"get",n),s))return c;if(M(c)){const l=i&&Ge(n)?c:c.value;return o&&w(l)?Ie(l):l}return w(c)?o?Ie(c):rn(c):c}}class sr extends Zt{constructor(t=!1){super(!1,t)}set(t,n,r,o){let s=t[n];const i=y(t)&&Ge(n);if(!this._isShallow){const u=I(s);if(!N(r)&&!I(r)&&(s=m(s),r=m(r)),!i&&M(s)&&!M(r))return u?(process.env.NODE_ENV!=="production"&&V(`Set operation on key "${String(n)}" failed: target is readonly.`,t[n]),!0):(s.value=r,!0)}const c=i?Number(n)<t.length:Je(t,n),l=Reflect.set(t,n,r,M(t)?t:o);return t===m(o)&&(c?L(r,s)&&K(t,"set",n,r,s):K(t,"add",n,r)),l}deleteProperty(t,n){const r=Je(t,n),o=t[n],s=Reflect.deleteProperty(t,n);return s&&r&&K(t,"delete",n,void 0,o),s}has(t,n){const r=Reflect.has(t,n);return(!pe(n)||!Qt.has(n))&&T(t,"has",n),r}ownKeys(t){return T(t,"iterate",y(t)?"length":Y),Reflect.ownKeys(t)}}class ir extends Zt{constructor(t=!1){super(!0,t)}set(t,n){return process.env.NODE_ENV!=="production"&&V(`Set operation on key "${String(n)}" failed: target is readonly.`,t),!0}deleteProperty(t,n){return process.env.NODE_ENV!=="production"&&V(`Delete operation on key "${String(n)}" failed: target is readonly.`,t),!0}}const cr=new sr,ar=new ir,lt=e=>e,Ce=e=>Reflect.getPrototypeOf(e);function lr(e,t,n){return function(...r){const o=this.__v_raw,s=m(o),i=ee(s),c=e==="entries"||e===Symbol.iterator&&i,l=e==="keys"&&i,u=o[e](...r),h=n?lt:t?Ee:H;return!t&&T(s,"iterate",l?st:Y),{next(){const{value:a,done:d}=u.next();return d?{value:a,done:d}:{value:c?[h(a[0]),h(a[1])]:h(a),done:d}},[Symbol.iterator](){return this}}}}function Ve(e){return function(...t){if(process.env.NODE_ENV!=="production"){const n=t[0]?`on key "${t[0]}" `:"";V(`${Lt(e)} operation ${n}failed: target is readonly.`,m(this))}return e==="delete"?!1:e==="clear"?void 0:this}}function ur(e,t){const n={get(o){const s=this.__v_raw,i=m(s),c=m(o);e||(L(o,c)&&T(i,"get",o),T(i,"get",c));const{has:l}=Ce(i),u=t?lt:e?Ee:H;if(l.call(i,o))return u(s.get(o));if(l.call(i,c))return u(s.get(c));s!==i&&s.get(o)},get size(){const o=this.__v_raw;return!e&&T(m(o),"iterate",Y),o.size},has(o){const s=this.__v_raw,i=m(s),c=m(o);return e||(L(o,c)&&T(i,"has",o),T(i,"has",c)),o===c?s.has(o):s.has(o)||s.has(c)},forEach(o,s){const i=this,c=i.__v_raw,l=m(c),u=t?lt:e?Ee:H;return!e&&T(l,"iterate",Y),c.forEach((h,a)=>o.call(s,u(h),u(a),i))}};return F(n,e?{add:Ve("add"),set:Ve("set"),delete:Ve("delete"),clear:Ve("clear")}:{add(o){!t&&!N(o)&&!I(o)&&(o=m(o));const s=m(this);return Ce(s).has.call(s,o)||(s.add(o),K(s,"add",o,o)),this},set(o,s){!t&&!N(s)&&!I(s)&&(s=m(s));const i=m(this),{has:c,get:l}=Ce(i);let u=c.call(i,o);u?process.env.NODE_ENV!=="production"&&en(i,c,o):(o=m(o),u=c.call(i,o));const h=l.call(i,o);return i.set(o,s),u?L(s,h)&&K(i,"set",o,s,h):K(i,"add",o,s),this},delete(o){const s=m(this),{has:i,get:c}=Ce(s);let l=i.call(s,o);l?process.env.NODE_ENV!=="production"&&en(s,i,o):(o=m(o),l=i.call(s,o));const u=c?c.call(s,o):void 0,h=s.delete(o);return l&&K(s,"delete",o,void 0,u),h},clear(){const o=m(this),s=o.size!==0,i=process.env.NODE_ENV!=="production"?ee(o)?new Map(o):new Set(o):void 0,c=o.clear();return s&&K(o,"clear",void 0,void 0,i),c}}),["keys","values","entries",Symbol.iterator].forEach(o=>{n[o]=lr(o,e,t)}),n}function Xt(e,t){const n=ur(e,t);return(r,o,s)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?r:Reflect.get(Je(n,o)&&o in r?n:r,o,s)}const fr={get:Xt(!1,!1)},dr={get:Xt(!0,!1)};function en(e,t,n){const r=m(n);if(r!==n&&t.call(e,r)){const o=Pt(e);V(`Reactive ${o} contains both the raw and reactive versions of the same object${o==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}const tn=new WeakMap,hr=new WeakMap,nn=new WeakMap,pr=new WeakMap;function mr(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function gr(e){return e.__v_skip||!Object.isExtensible(e)?0:mr(Pt(e))}function rn(e){return I(e)?e:on(e,!1,cr,fr,tn)}function Ie(e){return on(e,!0,ar,dr,nn)}function on(e,t,n,r,o){if(!w(e))return process.env.NODE_ENV!=="production"&&V(`value cannot be made ${t?"readonly":"reactive"}: ${String(e)}`),e;if(e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=gr(e);if(s===0)return e;const i=o.get(e);if(i)return i;const c=new Proxy(e,s===2?r:n);return o.set(e,c),c}function oe(e){return I(e)?oe(e.__v_raw):!!(e&&e.__v_isReactive)}function I(e){return!!(e&&e.__v_isReadonly)}function N(e){return!!(e&&e.__v_isShallow)}function Re(e){return e?!!e.__v_raw:!1}function m(e){const t=e&&e.__v_raw;return t?m(t):e}const H=e=>w(e)?rn(e):e,Ee=e=>w(e)?Ie(e):e;function M(e){return e?e.__v_isRef===!0:!1}function ut(e){return _r(e,!1)}function _r(e,t){return M(e)?e:new yr(e,t)}class yr{constructor(t,n){this.dep=new rt,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:m(t),this._value=n?t:H(t),this.__v_isShallow=n}get value(){return process.env.NODE_ENV!=="production"?this.dep.track({target:this,type:"get",key:"value"}):this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||N(t)||I(t);t=r?t:m(t),L(t,n)&&(this._rawValue=t,this._value=r?t:H(t),process.env.NODE_ENV!=="production"?this.dep.trigger({target:this,type:"set",key:"value",newValue:t,oldValue:n}):this.dep.trigger())}}class vr{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new rt(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=_e-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&_!==this)return Wt(this,!0),!0;process.env.NODE_ENV}get value(){const t=process.env.NODE_ENV!=="production"?this.dep.track({target:this,type:"get",key:"value"}):this.dep.track();return Yt(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter?this.setter(t):process.env.NODE_ENV!=="production"&&V("Write operation failed: computed value is readonly")}}function Er(e,t,n=!1){let r,o;S(e)?r=e:(r=e.get,o=e.set);const s=new vr(r,o,n);return process.env.NODE_ENV,s}const Ae={},xe=new WeakMap;let B;function Sr(e,t=!1,n=B){if(n){let r=xe.get(n);r||xe.set(n,r=[]),r.push(e)}else process.env.NODE_ENV!=="production"&&!t&&V("onWatcherCleanup() was called when there was no active watcher to associate with.")}function br(e,t,n=he){const{immediate:r,deep:o,once:s,scheduler:i,augmentJob:c,call:l}=n,u=g=>{(n.onWarn||V)("Invalid watch source: ",g,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},h=g=>o?g:N(g)||o===!1||o===0?W(g,1):W(g);let a,d,p,v,D=!1,We=!1;if(M(e)?(d=()=>e.value,D=N(e)):oe(e)?(d=()=>h(e),D=!0):y(e)?(We=!0,D=e.some(g=>oe(g)||N(g)),d=()=>e.map(g=>{if(M(g))return g.value;if(oe(g))return h(g);if(S(g))return l?l(g,2):g();process.env.NODE_ENV!=="production"&&u(g)})):S(e)?t?d=l?()=>l(e,2):e:d=()=>{if(p){te();try{p()}finally{ne()}}const g=B;B=a;try{return l?l(e,3,[v]):e(v)}finally{B=g}}:(d=X,process.env.NODE_ENV!=="production"&&u(e)),t&&o){const g=d,R=o===!0?1/0:o;d=()=>W(g(),R)}const ue=()=>{a.stop()};if(s&&t){const g=t;t=(...R)=>{g(...R),ue()}}let G=We?new Array(e.length).fill(Ae):Ae;const Te=g=>{if(!(!(a.flags&1)||!a.dirty&&!g))if(t){const R=a.run();if(o||D||(We?R.some((St,Ue)=>L(St,G[Ue])):L(R,G))){p&&p();const St=B;B=a;try{const Ue=[R,G===Ae?void 0:We&&G[0]===Ae?[]:G,v];G=R,l?l(t,3,Ue):t(...Ue)}finally{B=St}}}else a.run()};return c&&c(Te),a=new Zn(d),a.scheduler=i?()=>i(Te,!1):Te,v=g=>Sr(g,!1,a),p=a.onStop=()=>{const g=xe.get(a);if(g){if(l)l(g,4);else for(const R of g)R();xe.delete(a)}},process.env.NODE_ENV!=="production"&&(a.onTrack=n.onTrack,a.onTrigger=n.onTrigger),t?r?Te(!0):G=a.run():i?i(Te.bind(null,!0),!0):a.run(),ue.pause=a.pause.bind(a),ue.resume=a.resume.bind(a),ue.stop=ue,ue}function W(e,t=1/0,n){if(t<=0||!w(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,M(e))W(e.value,t,n);else if(y(e))for(let r=0;r<e.length;r++)W(e[r],t,n);else if(Wn(e)||ee(e))e.forEach(r=>{W(r,t,n)});else if(Yn(e)){for(const r in e)W(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&W(e[r],t,n)}return e}const J=[];function wr(e){J.push(e)}function Tr(){J.pop()}let ft=!1;function b(e,...t){if(ft)return;ft=!0,te();const n=J.length?J[J.length-1].component:null,r=n&&n.appContext.config.warnHandler,o=Nr();if(r)He(r,n,11,[e+t.map(s=>{var i,c;return(c=(i=s.toString)==null?void 0:i.call(s))!=null?c:JSON.stringify(s)}).join(""),n&&n.proxy,o.map(({vnode:s})=>`at <${Tn(n,s.type)}>`).join(`
|
|
2
|
+
`),o]);else{const s=[`[Vue warn]: ${e}`,...t];o.length&&s.push(`
|
|
3
|
+
`,...Mr(o)),console.warn(...s)}ne(),ft=!1}function Nr(){let e=J[J.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const r=e.component&&e.component.parent;e=r&&r.vnode}return t}function Mr(e){const t=[];return e.forEach((n,r)=>{t.push(...r===0?[]:[`
|
|
4
|
+
`],...Or(n))}),t}function Or({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",r=e.component?e.component.parent==null:!1,o=` at <${Tn(e.component,e.type,r)}`,s=">"+n;return e.props?[o,...Dr(e.props),s]:[o+s]}function Dr(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(r=>{t.push(...sn(r,e[r]))}),n.length>3&&t.push(" ..."),t}function sn(e,t,n){return A(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:M(t)?(t=sn(e,m(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):S(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=m(t),n?t:[`${e}=`,t])}const dt={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"};function He(e,t,n,r){try{return r?e(...r):e()}catch(o){pt(o,t,n)}}function ht(e,t,n,r){if(S(e)){const o=He(e,t,n,r);return o&&Un(o)&&o.catch(s=>{pt(s,t,n)}),o}if(y(e)){const o=[];for(let s=0;s<e.length;s++)o.push(ht(e[s],t,n,r));return o}else process.env.NODE_ENV!=="production"&&b(`Invalid value type passed to callWithAsyncErrorHandling(): ${typeof e}`)}function pt(e,t,n,r=!0){const o=t?t.vnode:null,{errorHandler:s,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||he;if(t){let c=t.parent;const l=t.proxy,u=process.env.NODE_ENV!=="production"?dt[n]:`https://vuejs.org/error-reference/#runtime-${n}`;for(;c;){const h=c.ec;if(h){for(let a=0;a<h.length;a++)if(h[a](e,l,u)===!1)return}c=c.parent}if(s){te(),He(s,null,10,[e,l,u]),ne();return}}$r(e,n,o,r,i)}function $r(e,t,n,r=!0,o=!1){if(process.env.NODE_ENV!=="production"){const s=dt[t];if(n&&wr(n),b(`Unhandled error${s?` during execution of ${s}`:""}`),n&&Tr(),r)throw e;console.error(e)}else{if(o)throw e;console.error(e)}}const O=[];let k=-1;const se=[];let U=null,ie=0;const Cr=Promise.resolve();let mt=null;const Vr=100;function Ir(e){let t=k+1,n=O.length;for(;t<n;){const r=t+n>>>1,o=O[r],s=Se(o);s<e||s===e&&o.flags&2?t=r+1:n=r}return t}function cn(e){if(!(e.flags&1)){const t=Se(e),n=O[O.length-1];!n||!(e.flags&2)&&t>=Se(n)?O.push(e):O.splice(Ir(t),0,e),e.flags|=1,an()}}function an(){mt||(mt=Cr.then(un))}function ln(e){y(e)?se.push(...e):U&&e.id===-1?U.splice(ie+1,0,e):e.flags&1||(se.push(e),e.flags|=1),an()}function Rr(e){if(se.length){const t=[...new Set(se)].sort((n,r)=>Se(n)-Se(r));if(se.length=0,U){U.push(...t);return}for(U=t,process.env.NODE_ENV!=="production"&&(e=e||new Map),ie=0;ie<U.length;ie++){const n=U[ie];process.env.NODE_ENV!=="production"&&fn(e,n)||(n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2)}U=null,ie=0}}const Se=e=>e.id==null?e.flags&2?-1:1/0:e.id;function un(e){process.env.NODE_ENV!=="production"&&(e=e||new Map);const t=process.env.NODE_ENV!=="production"?n=>fn(e,n):X;try{for(k=0;k<O.length;k++){const n=O[k];if(n&&!(n.flags&8)){if(process.env.NODE_ENV!=="production"&&t(n))continue;n.flags&4&&(n.flags&=-2),He(n,n.i,n.i?15:14),n.flags&4||(n.flags&=-2)}}}finally{for(;k<O.length;k++){const n=O[k];n&&(n.flags&=-2)}k=-1,O.length=0,Rr(e),mt=null,(O.length||se.length)&&un(e)}}function fn(e,t){const n=e.get(t)||0;if(n>Vr){const r=t.i,o=r&&wn(r.type);return pt(`Maximum recursive updates exceeded${o?` in component <${o}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,null,10),!0}return e.set(t,n+1),!1}const gt=new Map;process.env.NODE_ENV!=="production"&&($e().__VUE_HMR_RUNTIME__={createRecord:_t(Ar),rerender:_t(xr),reload:_t(Hr)});const ke=new Map;function Ar(e,t){return ke.has(e)?!1:(ke.set(e,{initialDef:Pe(t),instances:new Set}),!0)}function Pe(e){return Nn(e)?e.__vccOpts:e}function xr(e,t){const n=ke.get(e);n&&(n.initialDef.render=t,[...n.instances].forEach(r=>{t&&(r.render=t,Pe(r.type).render=t),r.renderCache=[],r.job.flags&8||r.update()}))}function Hr(e,t){const n=ke.get(e);if(!n)return;t=Pe(t),dn(n.initialDef,t);const r=[...n.instances];for(let o=0;o<r.length;o++){const s=r[o],i=Pe(s.type);let c=gt.get(i);c||(i!==n.initialDef&&dn(i,t),gt.set(i,c=new Set)),c.add(s),s.appContext.propsCache.delete(s.type),s.appContext.emitsCache.delete(s.type),s.appContext.optionsCache.delete(s.type),s.ceReload?(c.add(s),s.ceReload(t.styles),c.delete(s)):s.parent?cn(()=>{s.job.flags&8||(s.parent.update(),c.delete(s))}):s.appContext.reload?s.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required."),s.root.ce&&s!==s.root&&s.root.ce._removeChildStyle(i)}ln(()=>{gt.clear()})}function dn(e,t){F(e,t);for(const n in e)n!=="__file"&&!(n in t)&&delete e[n]}function _t(e){return(t,n)=>{try{return e(t,n)}catch(r){console.error(r),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let ce,Fe=[];function hn(e,t){var n,r;ce=e,ce?(ce.enabled=!0,Fe.forEach(({event:o,args:s})=>ce.emit(o,...s)),Fe=[]):typeof window<"u"&&window.HTMLElement&&!((r=(n=window.navigator)==null?void 0:n.userAgent)!=null&&r.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(s=>{hn(s,t)}),setTimeout(()=>{ce||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Fe=[])},3e3)):Fe=[]}let be=null,kr=null;function Pr(e,t,n=!1){const r=bn();if(r||Jr){let o=r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(o&&e in o)return o[e];if(arguments.length>1)return n&&S(t)?t.call(r&&r.proxy):t;process.env.NODE_ENV!=="production"&&b(`injection "${String(e)}" not found.`)}else process.env.NODE_ENV!=="production"&&b("inject() can only be used inside setup() or functional components.")}const Fr=Symbol.for("v-scx"),Lr=()=>{{const e=Pr(Fr);return e||process.env.NODE_ENV!=="production"&&b("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),e}};function Kr(e,t,n){return process.env.NODE_ENV!=="production"&&!S(t)&&b("`watch(fn, options?)` signature has been moved to a separate API. Use `watchEffect(fn, options?)` instead. `watch` now only supports `watch(source, cb, options?) signature."),jr(e,t,n)}function jr(e,t,n=he){const{immediate:r,deep:o,flush:s,once:i}=n;process.env.NODE_ENV!=="production"&&!t&&(r!==void 0&&b('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),o!==void 0&&b('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'),i!==void 0&&b('watch() "once" option is only respected when using the watch(source, callback, options?) signature.'));const c=F({},n);process.env.NODE_ENV!=="production"&&(c.onWarn=b);const l=t&&r||!t&&s!=="post";let u;if(we){if(s==="sync"){const p=Lr();u=p.__watcherHandles||(p.__watcherHandles=[])}else if(!l){const p=()=>{};return p.stop=X,p.resume=X,p.pause=X,p}}const h=ae;c.call=(p,v,D)=>ht(p,h,v,D);let a=!1;s==="post"?c.scheduler=p=>{qr(p,h&&h.suspense)}:s!=="sync"&&(a=!0,c.scheduler=(p,v)=>{v?p():cn(p)}),c.augmentJob=p=>{t&&(p.flags|=4),a&&(p.flags|=2,h&&(p.id=h.uid,p.i=h))};const d=br(e,t,c);return we&&(u?u.push(d):l&&d()),d}const Wr=e=>e.__isTeleport;function pn(e,t){e.shapeFlag&6&&e.component?(e.transition=t,pn(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}$e().requestIdleCallback,$e().cancelIdleCallback;function Ur(e,t,n=ae,r=!1){if(n){const o=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...i)=>{te();const c=ao(n),l=ht(t,n,e,i);return c(),ne(),l});return r?o.unshift(s):o.push(s),s}else if(process.env.NODE_ENV!=="production"){const o=Bn(dt[e].replace(/ hook$/,""));b(`${o} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.`)}}const mn=e=>(t,n=ae)=>{(!we||e==="sp")&&Ur(e,(...r)=>t(...r),n)},zr=mn("m"),gn=mn("um"),Yr=Symbol.for("v-ndc"),Br={};process.env.NODE_ENV!=="production"&&(Br.ownKeys=e=>(b("Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."),Reflect.ownKeys(e)));let Jr=null;const Gr={},_n=e=>Object.getPrototypeOf(e)===Gr,qr=Zr,Qr=e=>e.__isSuspense;function Zr(e,t){t&&t.pendingBranch?y(e)?t.effects.push(...e):t.effects.push(e):ln(e)}const yn=Symbol.for("v-fgt"),Xr=Symbol.for("v-txt"),eo=Symbol.for("v-cmt");function to(e){return e?e.__v_isVNode===!0:!1}const no=(...e)=>En(...e),vn=({key:e})=>e??null,Le=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?A(e)||M(e)||S(e)?{i:be,r:e,k:t,f:!!n}:e:null);function ro(e,t=null,n=null,r=0,o=null,s=e===yn?0:1,i=!1,c=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&vn(t),ref:t&&Le(t),scopeId:kr,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:be};return c?(yt(l,n),s&128&&e.normalize(l)):n&&(l.shapeFlag|=A(n)?8:16),process.env.NODE_ENV!=="production"&&l.key!==l.key&&b("VNode created with invalid key (NaN). VNode type:",l.type),l}const oo=process.env.NODE_ENV!=="production"?no:En;function En(e,t=null,n=null,r=0,o=null,s=!1){if((!e||e===Yr)&&(process.env.NODE_ENV!=="production"&&!e&&b(`Invalid vnode type when creating vnode: ${e}.`),e=eo),to(e)){const c=Ke(e,t,!0);return n&&yt(c,n),c.patchFlag=-2,c}if(Nn(e)&&(e=e.__vccOpts),t){t=so(t);let{class:c,style:l}=t;c&&!A(c)&&(t.class=Qe(c)),w(l)&&(Re(l)&&!y(l)&&(l=F({},l)),t.style=qe(l))}const i=A(e)?1:Qr(e)?128:Wr(e)?64:w(e)?4:S(e)?2:0;return process.env.NODE_ENV!=="production"&&i&4&&Re(e)&&(e=m(e),b("Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",`
|
|
5
|
+
Component that was made reactive: `,e)),ro(e,t,n,r,o,i,s,!0)}function so(e){return e?Re(e)||_n(e)?F({},e):e:null}function Ke(e,t,n=!1,r=!1){const{props:o,ref:s,patchFlag:i,children:c,transition:l}=e,u=t?co(o||{},t):o,h={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&vn(u),ref:t&&t.ref?n&&s?y(s)?s.concat(Le(t)):[s,Le(t)]:Le(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:process.env.NODE_ENV!=="production"&&i===-1&&y(c)?c.map(Sn):c,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==yn?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ke(e.ssContent),ssFallback:e.ssFallback&&Ke(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&pn(h,l.clone(h)),h}function Sn(e){const t=Ke(e);return y(e.children)&&(t.children=e.children.map(Sn)),t}function io(e=" ",t=0){return oo(Xr,null,e,t)}function yt(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(y(t))n=16;else if(typeof t=="object")if(r&65){const o=t.default;o&&(o._c&&(o._d=!1),yt(e,o()),o._c&&(o._d=!0));return}else n=32,!t._&&!_n(t)&&(t._ctx=be);else S(t)?(t={default:t,_ctx:be},n=32):(t=String(t),r&64?(n=16,t=[io(t)]):n=8);e.children=t,e.shapeFlag|=n}function co(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const o in r)if(o==="class")t.class!==r.class&&(t.class=Qe([t.class,r.class]));else if(o==="style")t.style=qe([t.style,r.style]);else if(Kn(o)){const s=t[o],i=r[o];i&&s!==i&&!(y(s)&&s.includes(i))&&(t[o]=s?[].concat(s,i):i)}else o!==""&&(t[o]=r[o])}return t}let ae=null;const bn=()=>ae||be;let vt;{const e=$e(),t=(n,r)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(r),s=>{o.length>1?o.forEach(i=>i(s)):o[0](s)}};vt=t("__VUE_INSTANCE_SETTERS__",n=>ae=n),t("__VUE_SSR_SETTERS__",n=>we=n)}const ao=e=>{const t=ae;return vt(e),e.scope.on(),()=>{e.scope.off(),vt(t)}};let we=!1;process.env.NODE_ENV;const lo=/(?:^|[-_])\w/g,uo=e=>e.replace(lo,t=>t.toUpperCase()).replace(/[-_]/g,"");function wn(e,t=!0){return S(e)?e.displayName||e.name:e.name||t&&e.__name}function Tn(e,t,n=!1){let r=wn(t);if(!r&&t.__file){const o=t.__file.match(/([^/\\]+)\.\w+$/);o&&(r=o[1])}if(!r&&e){const o=s=>{for(const i in s)if(s[i]===t)return i};r=o(e.components)||e.parent&&o(e.parent.type.components)||o(e.appContext.components)}return r?uo(r):n?"App":"Anonymous"}function Nn(e){return S(e)&&"__vccOpts"in e}const je=(e,t)=>{const n=Er(e,t,we);if(process.env.NODE_ENV!=="production"){const r=bn();r&&r.appContext.config.warnRecursiveComputed&&(n._warnRecursive=!0)}return n};function fo(){if(process.env.NODE_ENV==="production"||typeof window>"u")return;const e={style:"color:#3ba776"},t={style:"color:#1677ff"},n={style:"color:#f5222d"},r={style:"color:#eb2f96"},o={__vue_custom_formatter:!0,header(a){if(!w(a))return null;if(a.__isVue)return["div",e,"VueInstance"];if(M(a)){te();const d=a.value;return ne(),["div",{},["span",e,h(a)],"<",c(d),">"]}else{if(oe(a))return["div",{},["span",e,N(a)?"ShallowReactive":"Reactive"],"<",c(a),`>${I(a)?" (readonly)":""}`];if(I(a))return["div",{},["span",e,N(a)?"ShallowReadonly":"Readonly"],"<",c(a),">"]}return null},hasBody(a){return a&&a.__isVue},body(a){if(a&&a.__isVue)return["div",{},...s(a.$)]}};function s(a){const d=[];a.type.props&&a.props&&d.push(i("props",m(a.props))),a.setupState!==he&&d.push(i("setup",a.setupState)),a.data!==he&&d.push(i("data",m(a.data)));const p=l(a,"computed");p&&d.push(i("computed",p));const v=l(a,"inject");return v&&d.push(i("injected",v)),d.push(["div",{},["span",{style:r.style+";opacity:0.66"},"$ (internal): "],["object",{object:a}]]),d}function i(a,d){return d=F({},d),Object.keys(d).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},a],["div",{style:"padding-left:1.25em"},...Object.keys(d).map(p=>["div",{},["span",r,p+": "],c(d[p],!1)])]]:["span",{}]}function c(a,d=!0){return typeof a=="number"?["span",t,a]:typeof a=="string"?["span",n,JSON.stringify(a)]:typeof a=="boolean"?["span",r,a]:w(a)?["object",{object:d?m(a):a}]:["span",n,String(a)]}function l(a,d){const p=a.type;if(S(p))return;const v={};for(const D in a.ctx)u(p,D,d)&&(v[D]=a.ctx[D]);return v}function u(a,d,p){const v=a[p];if(y(v)&&v.includes(d)||w(v)&&d in v||a.extends&&u(a.extends,d,p)||a.mixins&&a.mixins.some(D=>u(D,d,p)))return!0}function h(a){return N(a)?"ShallowRef":a.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(o):window.devtoolsFormatters=[o]}process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV;function ho(){fo()}process.env.NODE_ENV!=="production"&&ho();const E=ut({mode:"light",variant:"default",isChanging:!1});let Mn=!1,le=null;function Et(){if(!Mn&&typeof window<"u"){const u=Vt();E.value={mode:u.mode,variant:u.variant,isChanging:!1},Mn=!0}const e=je(()=>E.value.mode),t=je(()=>E.value.variant),n=je(()=>E.value.mode==="dark"),r=je(()=>E.value.isChanging),o=(u,h={})=>{E.value.isChanging=!0,Z({mode:u},h),E.value.mode=u,setTimeout(()=>{E.value.isChanging=!1},300)},s=(u,h={})=>{E.value.isChanging=!0,Z({variant:u},h),E.value.variant=u,setTimeout(()=>{E.value.isChanging=!1},300)},i=(u={})=>{const h=Ct(u);E.value.mode=h},c=(u,h={})=>{E.value.isChanging=!0,Z(u,h),u.mode&&(E.value.mode=u.mode),u.variant&&(E.value.variant=u.variant),setTimeout(()=>{E.value.isChanging=!1},300)},l=()=>At(E.value.variant);return{theme:E.value,mode:e.value,variant:t.value,isDark:n.value,isChanging:r.value,setMode:o,setVariant:s,toggleDarkMode:i,setTheme:c,getAvailableThemes:Rt,getCurrentThemeMetadata:l}}function po(e=ut(!0)){const{setMode:t}=Et(),n=()=>{le&&le(),le=It(o=>{e.value&&t(o,{transition:!0,persist:!1})})},r=()=>{le&&(le(),le=null)};Kr(e,o=>{o?n():r()},{immediate:!0}),gn(()=>{r()})}function mo(e){const t=ut(""),n=()=>{if(typeof window>"u")return;const r=document.documentElement,o=getComputedStyle(r).getPropertyValue(`--${e}`).trim();o&&!o.startsWith("hsl")?t.value=`hsl(${o})`:t.value=o};return zr(()=>{n();const r=new MutationObserver(()=>{n()});r.observe(document.documentElement,{attributes:!0,attributeFilter:["class","data-theme"]}),gn(()=>{r.disconnect()})}),Ie(t)}function go(){const{isChanging:e}=Et();return{isTransitioning:e}}f.CSS_CLASSES=q,f.DEFAULT_THEME_MODE=P,f.DEFAULT_THEME_VARIANT=fe,f.HTML_ATTRIBUTES=de,f.STORAGE_KEYS=z,f.THEMES_BY_CATEGORY=On,f.THEME_MAP=Me,f.THEME_METADATA=Q,f.THEME_TRANSITION_DURATION=Ne,f.applyCustomTheme=Oe,f.applyMode=Mt,f.applyTheme=Z,f.applyThemeFromPrimary=Fn,f.applyVariant=Ot,f.clearCustomTheme=Hn,f.clearStoredTheme=Dn,f.detectSystemTheme=Cn,f.disableTransition=$t,f.enableTransition=Dt,f.generateThemeFromPrimary=Be,f.getAvailableThemes=Rt,f.getCSSVariable=xt,f.getCurrentMode=ze,f.getCurrentVariant=$n,f.getHtmlElement=$,f.getStoredCustomTheme=Ht,f.getStoredMode=bt,f.getStoredVariant=wt,f.getThemeColor=Rn,f.getThemeMetadata=At,f.hexToHSL=kt,f.initTheme=Vt,f.isValidMode=xn,f.isValidVariant=An,f.parseHSL=Ye,f.restoreCustomTheme=kn,f.rgbToHSL=Pn,f.setCSSVariable=In,f.storeMode=Tt,f.storeVariant=Nt,f.toHSLString=Vn,f.toggleDarkMode=Ct,f.useSystemTheme=po,f.useTheme=Et,f.useThemeColor=mo,f.useThemeTransition=go,f.watchSystemTheme=It,Object.defineProperty(f,Symbol.toStringTag,{value:"Module"})}));
|
|
2
6
|
//# sourceMappingURL=index.umd.js.map
|