@phoenix-cg/v-tabs 0.2.0-beta.1 → 0.2.0-beta.2

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.
@@ -1,21 +1 @@
1
- (function(le,O){typeof exports=="object"&&typeof module<"u"?module.exports=O():typeof define=="function"&&define.amd?define(O):(le=typeof globalThis<"u"?globalThis:le||self,le.VTabs=O())})(this,function(){"use strict";/**
2
- * @vue/shared v3.5.13
3
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
- * @license MIT
5
- **//*! #__NO_SIDE_EFFECTS__ */function le(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const O=process.env.NODE_ENV!=="production"?Object.freeze({}):{},_n=process.env.NODE_ENV!=="production"?Object.freeze([]):[],te=()=>{},gn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),$=Object.assign,mn=Object.prototype.hasOwnProperty,je=(e,t)=>mn.call(e,t),v=Array.isArray,J=e=>me(e)==="[object Map]",_t=e=>me(e)==="[object Set]",w=e=>typeof e=="function",T=e=>typeof e=="string",L=e=>typeof e=="symbol",b=e=>e!==null&&typeof e=="object",yn=e=>(b(e)||w(e))&&w(e.then)&&w(e.catch),gt=Object.prototype.toString,me=e=>gt.call(e),mt=e=>me(e).slice(8,-1),yt=e=>me(e)==="[object Object]",Le=e=>T(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ye=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},vn=/-(\w)/g,vt=ye(e=>e.replace(vn,(t,n)=>n?n.toUpperCase():"")),En=/\B([A-Z])/g,Et=ye(e=>e.replace(En,"-$1").toLowerCase()),wt=ye(e=>e.charAt(0).toUpperCase()+e.slice(1)),wn=ye(e=>e?`on${wt(e)}`:""),D=(e,t)=>!Object.is(e,t);let bt;const ve=()=>bt||(bt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ee(e){if(v(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=T(s)?On(s):Ee(s);if(r)for(const i in r)t[i]=r[i]}return t}else if(T(e)||b(e))return e}const bn=/;(?![^(]*\))/g,Sn=/:([^]+)/,Nn=/\/\*[^]*?\*\//g;function On(e){const t={};return e.replace(Nn,"").split(bn).forEach(n=>{if(n){const s=n.split(Sn);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function ae(e){let t="";if(T(e))t=e;else if(v(e))for(let n=0;n<e.length;n++){const s=ae(e[n]);s&&(t+=s+" ")}else if(b(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const St=e=>!!(e&&e.__v_isRef===!0),We=e=>T(e)?e:e==null?"":v(e)||b(e)&&(e.toString===gt||!w(e.toString))?St(e)?We(e.value):JSON.stringify(e,Nt,2):String(e),Nt=(e,t)=>St(t)?Nt(e,t.value):J(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],i)=>(n[Ke(s,i)+" =>"]=r,n),{})}:_t(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Ke(n))}:L(t)?Ke(t):b(t)&&!v(t)&&!yt(t)?String(t):t,Ke=(e,t="")=>{var n;return L(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
6
- * @vue/reactivity v3.5.13
7
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
8
- * @license MIT
9
- **/function W(e,...t){console.warn(`[Vue warn] ${e}`,...t)}let y;const Be=new WeakSet;class Dn{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,Be.has(this)&&(Be.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Rn(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,xt(this),Dt(this);const t=y,n=I;y=this,I=!0;try{return this.fn()}finally{process.env.NODE_ENV!=="production"&&y!==this&&W("Active effect was not restored correctly - this is likely a Vue internal bug."),Rt(this),y=t,I=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Ye(t);this.deps=this.depsTail=void 0,xt(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Be.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Je(this)&&this.run()}get dirty(){return Je(this)}}let Ot=0,ue,fe;function Rn(e,t=!1){if(e.flags|=8,t){e.next=fe,fe=e;return}e.next=ue,ue=e}function ze(){Ot++}function Ue(){if(--Ot>0)return;if(fe){let t=fe;for(fe=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;ue;){let t=ue;for(ue=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(s){e||(e=s)}t=n}}if(e)throw e}function Dt(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Rt(e){let t,n=e.depsTail,s=n;for(;s;){const r=s.prevDep;s.version===-1?(s===n&&(n=r),Ye(s),xn(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=r}e.deps=t,e.depsTail=n}function Je(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Vn(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Vn(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===we))return;e.globalVersion=we;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!Je(e)){e.flags&=-3;return}const n=y,s=I;y=e,I=!0;try{Dt(e);const r=e.fn(e._value);(t.version===0||D(r,e._value))&&(e._value=r,t.version++)}catch(r){throw t.version++,r}finally{y=n,I=s,Rt(e),e.flags&=-3}}function Ye(e,t=!1){const{dep:n,prevSub:s,nextSub:r}=e;if(s&&(s.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=s,e.nextSub=void 0),process.env.NODE_ENV!=="production"&&n.subsHead===e&&(n.subsHead=r),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)Ye(i,!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 I=!0;const Vt=[];function de(){Vt.push(I),I=!1}function pe(){const e=Vt.pop();I=e===void 0?!0:e}function xt(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=y;y=void 0;try{t()}finally{y=n}}}let we=0;class Tn{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 qe{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,process.env.NODE_ENV!=="production"&&(this.subsHead=void 0)}track(t){if(!y||!I||y===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==y)n=this.activeLink=new Tn(y,this),y.deps?(n.prevDep=y.depsTail,y.depsTail.nextDep=n,y.depsTail=n):y.deps=y.depsTail=n,Tt(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const s=n.nextDep;s.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=s),n.prevDep=y.depsTail,n.nextDep=void 0,y.depsTail.nextDep=n,y.depsTail=n,y.deps===n&&(y.deps=s)}return process.env.NODE_ENV!=="production"&&y.onTrack&&y.onTrack($({effect:y},t)),n}trigger(t){this.version++,we++,this.notify(t)}notify(t){ze();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($({effect:n.sub},t));for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Ue()}}}function Tt(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let s=t.deps;s;s=s.nextDep)Tt(s)}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 Ge=new WeakMap,Y=Symbol(process.env.NODE_ENV!=="production"?"Object iterate":""),Qe=Symbol(process.env.NODE_ENV!=="production"?"Map keys iterate":""),he=Symbol(process.env.NODE_ENV!=="production"?"Array iterate":"");function R(e,t,n){if(I&&y){let s=Ge.get(e);s||Ge.set(e,s=new Map);let r=s.get(n);r||(s.set(n,r=new qe),r.map=s,r.key=n),process.env.NODE_ENV!=="production"?r.track({target:e,type:t,key:n}):r.track()}}function K(e,t,n,s,r,i){const c=Ge.get(e);if(!c){we++;return}const o=a=>{a&&(process.env.NODE_ENV!=="production"?a.trigger({target:e,type:t,key:n,newValue:s,oldValue:r,oldTarget:i}):a.trigger())};if(ze(),t==="clear")c.forEach(o);else{const a=v(e),d=a&&Le(n);if(a&&n==="length"){const p=Number(s);c.forEach((l,f)=>{(f==="length"||f===he||!L(f)&&f>=p)&&o(l)})}else switch((n!==void 0||c.has(void 0))&&o(c.get(n)),d&&o(c.get(he)),t){case"add":a?d&&o(c.get("length")):(o(c.get(Y)),J(e)&&o(c.get(Qe)));break;case"delete":a||(o(c.get(Y)),J(e)&&o(c.get(Qe)));break;case"set":J(e)&&o(c.get(Y));break}}Ue()}function ne(e){const t=h(e);return t===e?t:(R(t,"iterate",he),N(e)?t:t.map(S))}function be(e){return R(e=h(e),"iterate",he),e}const In={__proto__:null,[Symbol.iterator](){return Xe(this,Symbol.iterator,S)},concat(...e){return ne(this).concat(...e.map(t=>v(t)?ne(t):t))},entries(){return Xe(this,"entries",e=>(e[1]=S(e[1]),e))},every(e,t){return P(this,"every",e,t,void 0,arguments)},filter(e,t){return P(this,"filter",e,t,n=>n.map(S),arguments)},find(e,t){return P(this,"find",e,t,S,arguments)},findIndex(e,t){return P(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return P(this,"findLast",e,t,S,arguments)},findLastIndex(e,t){return P(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return P(this,"forEach",e,t,void 0,arguments)},includes(...e){return Ze(this,"includes",e)},indexOf(...e){return Ze(this,"indexOf",e)},join(e){return ne(this).join(e)},lastIndexOf(...e){return Ze(this,"lastIndexOf",e)},map(e,t){return P(this,"map",e,t,void 0,arguments)},pop(){return _e(this,"pop")},push(...e){return _e(this,"push",e)},reduce(e,...t){return It(this,"reduce",e,t)},reduceRight(e,...t){return It(this,"reduceRight",e,t)},shift(){return _e(this,"shift")},some(e,t){return P(this,"some",e,t,void 0,arguments)},splice(...e){return _e(this,"splice",e)},toReversed(){return ne(this).toReversed()},toSorted(e){return ne(this).toSorted(e)},toSpliced(...e){return ne(this).toSpliced(...e)},unshift(...e){return _e(this,"unshift",e)},values(){return Xe(this,"values",S)}};function Xe(e,t,n){const s=be(e),r=s[t]();return s!==e&&!N(e)&&(r._next=r.next,r.next=()=>{const i=r._next();return i.value&&(i.value=n(i.value)),i}),r}const Cn=Array.prototype;function P(e,t,n,s,r,i){const c=be(e),o=c!==e&&!N(e),a=c[t];if(a!==Cn[t]){const l=a.apply(e,i);return o?S(l):l}let d=n;c!==e&&(o?d=function(l,f){return n.call(this,S(l),f,e)}:n.length>2&&(d=function(l,f){return n.call(this,l,f,e)}));const p=a.call(c,d,s);return o&&r?r(p):p}function It(e,t,n,s){const r=be(e);let i=n;return r!==e&&(N(e)?n.length>3&&(i=function(c,o,a){return n.call(this,c,o,a,e)}):i=function(c,o,a){return n.call(this,c,S(o),a,e)}),r[t](i,...s)}function Ze(e,t,n){const s=h(e);R(s,"iterate",he);const r=s[t](...n);return(r===-1||r===!1)&&Oe(n[0])?(n[0]=h(n[0]),s[t](...n)):r}function _e(e,t,n=[]){de(),ze();const s=h(e)[t].apply(e,n);return Ue(),pe(),s}const $n=le("__proto__,__v_isRef,__isVue"),Ct=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(L));function An(e){L(e)||(e=String(e));const t=h(this);return R(t,"has",e),t.hasOwnProperty(e)}class $t{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){if(n==="__v_skip")return t.__v_skip;const r=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return i;if(n==="__v_raw")return s===(r?i?Bn:kt:i?Kn:Pt).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const c=v(t);if(!r){let a;if(c&&(a=In[n]))return a;if(n==="hasOwnProperty")return An}const o=Reflect.get(t,n,V(t)?t:s);return(L(n)?Ct.has(n):$n(n))||(r||R(t,"get",n),i)?o:V(o)?c&&Le(n)?o:o.value:b(o)?r?tt(o):Ft(o):o}}class Mn extends $t{constructor(t=!1){super(!1,t)}set(t,n,s,r){let i=t[n];if(!this._isShallow){const a=k(i);if(!N(s)&&!k(s)&&(i=h(i),s=h(s)),!v(t)&&V(i)&&!V(s))return a?!1:(i.value=s,!0)}const c=v(t)&&Le(n)?Number(n)<t.length:je(t,n),o=Reflect.set(t,n,s,V(t)?t:r);return t===h(r)&&(c?D(s,i)&&K(t,"set",n,s,i):K(t,"add",n,s)),o}deleteProperty(t,n){const s=je(t,n),r=t[n],i=Reflect.deleteProperty(t,n);return i&&s&&K(t,"delete",n,void 0,r),i}has(t,n){const s=Reflect.has(t,n);return(!L(n)||!Ct.has(n))&&R(t,"has",n),s}ownKeys(t){return R(t,"iterate",v(t)?"length":Y),Reflect.ownKeys(t)}}class Pn extends $t{constructor(t=!1){super(!0,t)}set(t,n){return process.env.NODE_ENV!=="production"&&W(`Set operation on key "${String(n)}" failed: target is readonly.`,t),!0}deleteProperty(t,n){return process.env.NODE_ENV!=="production"&&W(`Delete operation on key "${String(n)}" failed: target is readonly.`,t),!0}}const kn=new Mn,Fn=new Pn,et=e=>e,Se=e=>Reflect.getPrototypeOf(e);function Hn(e,t,n){return function(...s){const r=this.__v_raw,i=h(r),c=J(i),o=e==="entries"||e===Symbol.iterator&&c,a=e==="keys"&&c,d=r[e](...s),p=n?et:t?nt:S;return!t&&R(i,"iterate",a?Qe:Y),{next(){const{value:l,done:f}=d.next();return f?{value:l,done:f}:{value:o?[p(l[0]),p(l[1])]:p(l),done:f}},[Symbol.iterator](){return this}}}}function Ne(e){return function(...t){if(process.env.NODE_ENV!=="production"){const n=t[0]?`on key "${t[0]}" `:"";W(`${wt(e)} operation ${n}failed: target is readonly.`,h(this))}return e==="delete"?!1:e==="clear"?void 0:this}}function jn(e,t){const n={get(r){const i=this.__v_raw,c=h(i),o=h(r);e||(D(r,o)&&R(c,"get",r),R(c,"get",o));const{has:a}=Se(c),d=t?et:e?nt:S;if(a.call(c,r))return d(i.get(r));if(a.call(c,o))return d(i.get(o));i!==c&&i.get(r)},get size(){const r=this.__v_raw;return!e&&R(h(r),"iterate",Y),Reflect.get(r,"size",r)},has(r){const i=this.__v_raw,c=h(i),o=h(r);return e||(D(r,o)&&R(c,"has",r),R(c,"has",o)),r===o?i.has(r):i.has(r)||i.has(o)},forEach(r,i){const c=this,o=c.__v_raw,a=h(o),d=t?et:e?nt:S;return!e&&R(a,"iterate",Y),o.forEach((p,l)=>r.call(i,d(p),d(l),c))}};return $(n,e?{add:Ne("add"),set:Ne("set"),delete:Ne("delete"),clear:Ne("clear")}:{add(r){!t&&!N(r)&&!k(r)&&(r=h(r));const i=h(this);return Se(i).has.call(i,r)||(i.add(r),K(i,"add",r,r)),this},set(r,i){!t&&!N(i)&&!k(i)&&(i=h(i));const c=h(this),{has:o,get:a}=Se(c);let d=o.call(c,r);d?process.env.NODE_ENV!=="production"&&Mt(c,o,r):(r=h(r),d=o.call(c,r));const p=a.call(c,r);return c.set(r,i),d?D(i,p)&&K(c,"set",r,i,p):K(c,"add",r,i),this},delete(r){const i=h(this),{has:c,get:o}=Se(i);let a=c.call(i,r);a?process.env.NODE_ENV!=="production"&&Mt(i,c,r):(r=h(r),a=c.call(i,r));const d=o?o.call(i,r):void 0,p=i.delete(r);return a&&K(i,"delete",r,void 0,d),p},clear(){const r=h(this),i=r.size!==0,c=process.env.NODE_ENV!=="production"?J(r)?new Map(r):new Set(r):void 0,o=r.clear();return i&&K(r,"clear",void 0,void 0,c),o}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=Hn(r,e,t)}),n}function At(e,t){const n=jn(e,t);return(s,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(je(n,r)&&r in s?n:s,r,i)}const Ln={get:At(!1,!1)},Wn={get:At(!0,!1)};function Mt(e,t,n){const s=h(n);if(s!==n&&t.call(e,s)){const r=mt(e);W(`Reactive ${r} contains both the raw and reactive versions of the same object${r==="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 Pt=new WeakMap,Kn=new WeakMap,kt=new WeakMap,Bn=new WeakMap;function zn(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Un(e){return e.__v_skip||!Object.isExtensible(e)?0:zn(mt(e))}function Ft(e){return k(e)?e:Ht(e,!1,kn,Ln,Pt)}function tt(e){return Ht(e,!0,Fn,Wn,kt)}function Ht(e,t,n,s,r){if(!b(e))return process.env.NODE_ENV!=="production"&&W(`value cannot be made ${t?"readonly":"reactive"}: ${String(e)}`),e;if(e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const c=Un(e);if(c===0)return e;const o=new Proxy(e,c===2?s:n);return r.set(e,o),o}function re(e){return k(e)?re(e.__v_raw):!!(e&&e.__v_isReactive)}function k(e){return!!(e&&e.__v_isReadonly)}function N(e){return!!(e&&e.__v_isShallow)}function Oe(e){return e?!!e.__v_raw:!1}function h(e){const t=e&&e.__v_raw;return t?h(t):e}const S=e=>b(e)?Ft(e):e,nt=e=>b(e)?tt(e):e;function V(e){return e?e.__v_isRef===!0:!1}function rt(e){return jt(e,!1)}function Jn(e){return jt(e,!0)}function jt(e,t){return V(e)?e:new Yn(e,t)}class Yn{constructor(t,n){this.dep=new qe,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:h(t),this._value=n?t:S(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,s=this.__v_isShallow||N(t)||k(t);t=s?t:h(t),D(t,n)&&(this._rawValue=t,this._value=s?t:S(t),process.env.NODE_ENV!=="production"?this.dep.trigger({target:this,type:"set",key:"value",newValue:t,oldValue:n}):this.dep.trigger())}}class qn{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new qe,{get:s,set:r}=t(n.track.bind(n),n.trigger.bind(n));this._get=s,this._set=r}get value(){return this._value=this._get()}set value(t){this._set(t)}}function Gn(e){return new qn(e)}const De={},Re=new WeakMap;let q;function Qn(e,t=!1,n=q){if(n){let s=Re.get(n);s||Re.set(n,s=[]),s.push(e)}else process.env.NODE_ENV!=="production"&&!t&&W("onWatcherCleanup() was called when there was no active watcher to associate with.")}function Xn(e,t,n=O){const{immediate:s,deep:r,once:i,scheduler:c,augmentJob:o,call:a}=n,d=g=>{(n.onWarn||W)("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.")},p=g=>r?g:N(g)||r===!1||r===0?B(g,1):B(g);let l,f,u,m,_=!1,Z=!1;if(V(e)?(f=()=>e.value,_=N(e)):re(e)?(f=()=>p(e),_=!0):v(e)?(Z=!0,_=e.some(g=>re(g)||N(g)),f=()=>e.map(g=>{if(V(g))return g.value;if(re(g))return p(g);if(w(g))return a?a(g,2):g();process.env.NODE_ENV!=="production"&&d(g)})):w(e)?t?f=a?()=>a(e,2):e:f=()=>{if(u){de();try{u()}finally{pe()}}const g=q;q=l;try{return a?a(e,3,[m]):e(m)}finally{q=g}}:(f=te,process.env.NODE_ENV!=="production"&&d(e)),t&&r){const g=f,M=r===!0?1/0:r;f=()=>B(g(),M)}const U=()=>{l.stop()};if(i&&t){const g=t;t=(...M)=>{g(...M),U()}}let j=Z?new Array(e.length).fill(De):De;const ee=g=>{if(!(!(l.flags&1)||!l.dirty&&!g))if(t){const M=l.run();if(r||_||(Z?M.some((ht,He)=>D(ht,j[He])):D(M,j))){u&&u();const ht=q;q=l;try{const He=[M,j===De?void 0:Z&&j[0]===De?[]:j,m];a?a(t,3,He):t(...He),j=M}finally{q=ht}}}else l.run()};return o&&o(ee),l=new Dn(f),l.scheduler=c?()=>c(ee,!1):ee,m=g=>Qn(g,!1,l),u=l.onStop=()=>{const g=Re.get(l);if(g){if(a)a(g,4);else for(const M of g)M();Re.delete(l)}},process.env.NODE_ENV!=="production"&&(l.onTrack=n.onTrack,l.onTrigger=n.onTrigger),t?s?ee(!0):j=l.run():c?c(ee.bind(null,!0),!0):l.run(),U.pause=l.pause.bind(l),U.resume=l.resume.bind(l),U.stop=U,U}function B(e,t=1/0,n){if(t<=0||!b(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,V(e))B(e.value,t,n);else if(v(e))for(let s=0;s<e.length;s++)B(e[s],t,n);else if(_t(e)||J(e))e.forEach(s=>{B(s,t,n)});else if(yt(e)){for(const s in e)B(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&B(e[s],t,n)}return e}/**
10
- * @vue/runtime-core v3.5.13
11
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
12
- * @license MIT
13
- **/const G=[];function Zn(e){G.push(e)}function er(){G.pop()}let st=!1;function E(e,...t){if(st)return;st=!0,de();const n=G.length?G[G.length-1].component:null,s=n&&n.appContext.config.warnHandler,r=tr();if(s)Ve(s,n,11,[e+t.map(i=>{var c,o;return(o=(c=i.toString)==null?void 0:c.call(i))!=null?o:JSON.stringify(i)}).join(""),n&&n.proxy,r.map(({vnode:i})=>`at <${pn(n,i.type)}>`).join(`
14
- `),r]);else{const i=[`[Vue warn]: ${e}`,...t];r.length&&i.push(`
15
- `,...nr(r)),console.warn(...i)}pe(),st=!1}function tr(){let e=G[G.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 s=e.component&&e.component.parent;e=s&&s.vnode}return t}function nr(e){const t=[];return e.forEach((n,s)=>{t.push(...s===0?[]:[`
16
- `],...rr(n))}),t}function rr({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",s=e.component?e.component.parent==null:!1,r=` at <${pn(e.component,e.type,s)}`,i=">"+n;return e.props?[r,...sr(e.props),i]:[r+i]}function sr(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(s=>{t.push(...Lt(s,e[s]))}),n.length>3&&t.push(" ..."),t}function Lt(e,t,n){return T(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:V(t)?(t=Lt(e,h(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):w(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=h(t),n?t:[`${e}=`,t])}const it={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 Ve(e,t,n,s){try{return s?e(...s):e()}catch(r){ct(r,t,n)}}function ot(e,t,n,s){if(w(e)){const r=Ve(e,t,n,s);return r&&yn(r)&&r.catch(i=>{ct(i,t,n)}),r}if(v(e)){const r=[];for(let i=0;i<e.length;i++)r.push(ot(e[i],t,n,s));return r}else process.env.NODE_ENV!=="production"&&E(`Invalid value type passed to callWithAsyncErrorHandling(): ${typeof e}`)}function ct(e,t,n,s=!0){const r=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:c}=t&&t.appContext.config||O;if(t){let o=t.parent;const a=t.proxy,d=process.env.NODE_ENV!=="production"?it[n]:`https://vuejs.org/error-reference/#runtime-${n}`;for(;o;){const p=o.ec;if(p){for(let l=0;l<p.length;l++)if(p[l](e,a,d)===!1)return}o=o.parent}if(i){de(),Ve(i,null,10,[e,a,d]),pe();return}}ir(e,n,r,s,c)}function ir(e,t,n,s=!0,r=!1){if(process.env.NODE_ENV!=="production"){const i=it[t];if(n&&Zn(n),E(`Unhandled error${i?` during execution of ${i}`:""}`),n&&er(),s)throw e;console.error(e)}else{if(r)throw e;console.error(e)}}const x=[];let F=-1;const se=[];let z=null,ie=0;const Wt=Promise.resolve();let xe=null;const or=100;function cr(e){const t=xe||Wt;return e?t.then(this?e.bind(this):e):t}function lr(e){let t=F+1,n=x.length;for(;t<n;){const s=t+n>>>1,r=x[s],i=ge(r);i<e||i===e&&r.flags&2?t=s+1:n=s}return t}function Kt(e){if(!(e.flags&1)){const t=ge(e),n=x[x.length-1];!n||!(e.flags&2)&&t>=ge(n)?x.push(e):x.splice(lr(t),0,e),e.flags|=1,Bt()}}function Bt(){xe||(xe=Wt.then(Ut))}function zt(e){v(e)?se.push(...e):z&&e.id===-1?z.splice(ie+1,0,e):e.flags&1||(se.push(e),e.flags|=1),Bt()}function ar(e){if(se.length){const t=[...new Set(se)].sort((n,s)=>ge(n)-ge(s));if(se.length=0,z){z.push(...t);return}for(z=t,process.env.NODE_ENV!=="production"&&(e=e||new Map),ie=0;ie<z.length;ie++){const n=z[ie];process.env.NODE_ENV!=="production"&&Jt(e,n)||(n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2)}z=null,ie=0}}const ge=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Ut(e){process.env.NODE_ENV!=="production"&&(e=e||new Map);const t=process.env.NODE_ENV!=="production"?n=>Jt(e,n):te;try{for(F=0;F<x.length;F++){const n=x[F];if(n&&!(n.flags&8)){if(process.env.NODE_ENV!=="production"&&t(n))continue;n.flags&4&&(n.flags&=-2),Ve(n,n.i,n.i?15:14),n.flags&4||(n.flags&=-2)}}}finally{for(;F<x.length;F++){const n=x[F];n&&(n.flags&=-2)}F=-1,x.length=0,ar(e),xe=null,(x.length||se.length)&&Ut(e)}}function Jt(e,t){const n=e.get(t)||0;if(n>or){const s=t.i,r=s&&dn(s.type);return ct(`Maximum recursive updates exceeded${r?` in component <${r}>`:""}. 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 lt=new Map;process.env.NODE_ENV!=="production"&&(ve().__VUE_HMR_RUNTIME__={createRecord:at(ur),rerender:at(fr),reload:at(dr)});const Te=new Map;function ur(e,t){return Te.has(e)?!1:(Te.set(e,{initialDef:Ie(t),instances:new Set}),!0)}function Ie(e){return hn(e)?e.__vccOpts:e}function fr(e,t){const n=Te.get(e);n&&(n.initialDef.render=t,[...n.instances].forEach(s=>{t&&(s.render=t,Ie(s.type).render=t),s.renderCache=[],s.update()}))}function dr(e,t){const n=Te.get(e);if(!n)return;t=Ie(t),Yt(n.initialDef,t);const s=[...n.instances];for(let r=0;r<s.length;r++){const i=s[r],c=Ie(i.type);let o=lt.get(c);o||(c!==n.initialDef&&Yt(c,t),lt.set(c,o=new Set)),o.add(i),i.appContext.propsCache.delete(i.type),i.appContext.emitsCache.delete(i.type),i.appContext.optionsCache.delete(i.type),i.ceReload?(o.add(i),i.ceReload(t.styles),o.delete(i)):i.parent?Kt(()=>{i.parent.update(),o.delete(i)}):i.appContext.reload?i.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required."),i.root.ce&&i!==i.root&&i.root.ce._removeChildStyle(c)}zt(()=>{lt.clear()})}function Yt(e,t){$(e,t);for(const n in e)n!=="__file"&&!(n in t)&&delete e[n]}function at(e){return(t,n)=>{try{return e(t,n)}catch(s){console.error(s),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let oe,Ce=[];function qt(e,t){var n,s;oe=e,oe?(oe.enabled=!0,Ce.forEach(({event:r,args:i})=>oe.emit(r,...i)),Ce=[]):typeof window<"u"&&window.HTMLElement&&!((s=(n=window.navigator)==null?void 0:n.userAgent)!=null&&s.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(i=>{qt(i,t)}),setTimeout(()=>{oe||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Ce=[])},3e3)):Ce=[]}let A=null,pr=null;const hr=e=>e.__isTeleport;function Gt(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Gt(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}const _r=new WeakSet;function Qt(e){const t=fn(),n=Jn(null);if(t){const r=t.refs===O?t.refs={}:t.refs;let i;process.env.NODE_ENV!=="production"&&(i=Object.getOwnPropertyDescriptor(r,e))&&!i.configurable?E(`useTemplateRef('${e}') already exists.`):Object.defineProperty(r,e,{enumerable:!0,get:()=>n.value,set:c=>n.value=c})}else process.env.NODE_ENV!=="production"&&E("useTemplateRef() is called when there is no active component instance to be associated with.");const s=process.env.NODE_ENV!=="production"?tt(n):n;return process.env.NODE_ENV!=="production"&&_r.add(s),s}ve().requestIdleCallback,ve().cancelIdleCallback;const gr=e=>!!e.type.__asyncLoader;function mr(e,t,n=X,s=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...c)=>{de();const o=Wr(n),a=ot(t,n,e,c);return o(),pe(),a});return s?r.unshift(i):r.push(i),i}else if(process.env.NODE_ENV!=="production"){const r=wn(it[e].replace(/ hook$/,""));E(`${r} 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 Xt=e=>(t,n=X)=>{(!Fe||e==="sp")&&mr(e,(...s)=>t(...s),n)},yr=Xt("m"),vr=Xt("bum"),Er=Symbol.for("v-ndc");function wr(e,t,n,s){let r;const i=n,c=v(e);if(c||T(e)){const o=c&&re(e);let a=!1;o&&(a=!N(e),e=be(e)),r=new Array(e.length);for(let d=0,p=e.length;d<p;d++)r[d]=t(a?S(e[d]):e[d],d,void 0,i)}else if(typeof e=="number"){process.env.NODE_ENV!=="production"&&!Number.isInteger(e)&&E(`The v-for range expect an integer value but got ${e}.`),r=new Array(e);for(let o=0;o<e;o++)r[o]=t(o+1,o,void 0,i)}else if(b(e))if(e[Symbol.iterator])r=Array.from(e,(o,a)=>t(o,a,void 0,i));else{const o=Object.keys(e);r=new Array(o.length);for(let a=0,d=o.length;a<d;a++){const p=o[a];r[a]=t(e[p],p,a,i)}}else r=[];return r}function br(e,t,n={},s,r){if(A.ce||A.parent&&gr(A.parent)&&A.parent.ce)return n.name=t,H(),ut(Q,null,[Pe("slot",n,s&&s())],64);let i=e[t];process.env.NODE_ENV!=="production"&&i&&i.length>1&&(E("SSR-optimized slot function detected in a non-SSR-optimized render function. You need to mark this component with $dynamic-slots in the parent template."),i=()=>[]),i&&i._c&&(i._d=!1),H();const c=i&&Zt(i(n)),o=n.key||c&&c.key,a=ut(Q,{key:(o&&!L(o)?o:`_${t}`)+(!c&&s?"_fb":"")},c||(s?s():[]),c&&e._===1?64:-2);return a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),i&&i._c&&(i._d=!0),a}function Zt(e){return e.some(t=>on(t)?!(t.type===$e||t.type===Q&&!Zt(t.children)):!0)?e:null}const Sr={};process.env.NODE_ENV!=="production"&&(Sr.ownKeys=e=>(E("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)));function en(e){return v(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function tn(e,t){return!e||!t?e||t:v(e)&&v(t)?e.concat(t):$({},en(e),en(t))}let Nr=null;function Or(e,t,n=!1){const s=X||A;if(s||Nr){const r=s?s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return n&&w(t)?t.call(s&&s.proxy):t;process.env.NODE_ENV!=="production"&&E(`injection "${String(e)}" not found.`)}else process.env.NODE_ENV!=="production"&&E("inject() can only be used inside setup() or functional components.")}const Dr={},nn=e=>Object.getPrototypeOf(e)===Dr,Rr=Mr,Vr=Symbol.for("v-scx"),xr=()=>{{const e=Or(Vr);return e||process.env.NODE_ENV!=="production"&&E("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),e}};function Tr(e,t){return rn(e,null,process.env.NODE_ENV!=="production"?$({},t,{flush:"sync"}):{flush:"sync"})}function Ir(e,t,n){return process.env.NODE_ENV!=="production"&&!w(t)&&E("`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."),rn(e,t,n)}function rn(e,t,n=O){const{immediate:s,deep:r,flush:i,once:c}=n;process.env.NODE_ENV!=="production"&&!t&&(s!==void 0&&E('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),r!==void 0&&E('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'),c!==void 0&&E('watch() "once" option is only respected when using the watch(source, callback, options?) signature.'));const o=$({},n);process.env.NODE_ENV!=="production"&&(o.onWarn=E);const a=t&&s||!t&&i!=="post";let d;if(Fe){if(i==="sync"){const u=xr();d=u.__watcherHandles||(u.__watcherHandles=[])}else if(!a){const u=()=>{};return u.stop=te,u.resume=te,u.pause=te,u}}const p=X;o.call=(u,m,_)=>ot(u,p,m,_);let l=!1;i==="post"?o.scheduler=u=>{Rr(u,p&&p.suspense)}:i!=="sync"&&(l=!0,o.scheduler=(u,m)=>{m?u():Kt(u)}),o.augmentJob=u=>{t&&(u.flags|=4),l&&(u.flags|=2,p&&(u.id=p.uid,u.i=p))};const f=Xn(e,t,o);return Fe&&(d?d.push(f):a&&f()),f}function Cr(e,t,n=O){const s=fn();if(process.env.NODE_ENV!=="production"&&!s)return E("useModel() called without active instance."),rt();const r=vt(t);if(process.env.NODE_ENV!=="production"&&!s.propsOptions[0][r])return E(`useModel() called with prop "${t}" which is not declared.`),rt();const i=Et(t),c=$r(e,r),o=Gn((a,d)=>{let p,l=O,f;return Tr(()=>{const u=e[r];D(p,u)&&(p=u,d())}),{get(){return a(),n.get?n.get(p):p},set(u){const m=n.set?n.set(u):u;if(!D(m,p)&&!(l!==O&&D(u,l)))return;const _=s.vnode.props;_&&(t in _||r in _||i in _)&&(`onUpdate:${t}`in _||`onUpdate:${r}`in _||`onUpdate:${i}`in _)||(p=u,d()),s.emit(`update:${t}`,m),D(u,m)&&D(u,l)&&!D(m,f)&&d(),l=u,f=m}}});return o[Symbol.iterator]=()=>{let a=0;return{next(){return a<2?{value:a++?c||O:o,done:!1}:{done:!0}}}},o}const $r=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${vt(t)}Modifiers`]||e[`${Et(t)}Modifiers`],Ar=e=>e.__isSuspense;function Mr(e,t){t&&t.pendingBranch?v(e)?t.effects.push(...e):t.effects.push(e):zt(e)}const Q=Symbol.for("v-fgt"),Pr=Symbol.for("v-txt"),$e=Symbol.for("v-cmt"),Ae=[];let C=null;function H(e=!1){Ae.push(C=e?null:[])}function kr(){Ae.pop(),C=Ae[Ae.length-1]||null}function sn(e){return e.dynamicChildren=C||_n,kr(),C&&C.push(e),e}function ce(e,t,n,s,r,i){return sn(ft(e,t,n,s,r,i,!0))}function ut(e,t,n,s,r){return sn(Pe(e,t,n,s,r,!0))}function on(e){return e?e.__v_isVNode===!0:!1}const Fr=(...e)=>ln(...e),cn=({key:e})=>e??null,Me=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?T(e)||V(e)||w(e)?{i:A,r:e,k:t,f:!!n}:e:null);function ft(e,t=null,n=null,s=0,r=null,i=e===Q?0:1,c=!1,o=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&cn(t),ref:t&&Me(t),scopeId:pr,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:i,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:A};return o?(dt(a,n),i&128&&e.normalize(a)):n&&(a.shapeFlag|=T(n)?8:16),process.env.NODE_ENV!=="production"&&a.key!==a.key&&E("VNode created with invalid key (NaN). VNode type:",a.type),!c&&C&&(a.patchFlag>0||i&6)&&a.patchFlag!==32&&C.push(a),a}const Pe=process.env.NODE_ENV!=="production"?Fr:ln;function ln(e,t=null,n=null,s=0,r=null,i=!1){if((!e||e===Er)&&(process.env.NODE_ENV!=="production"&&!e&&E(`Invalid vnode type when creating vnode: ${e}.`),e=$e),on(e)){const o=ke(e,t,!0);return n&&dt(o,n),!i&&C&&(o.shapeFlag&6?C[C.indexOf(e)]=o:C.push(o)),o.patchFlag=-2,o}if(hn(e)&&(e=e.__vccOpts),t){t=Hr(t);let{class:o,style:a}=t;o&&!T(o)&&(t.class=ae(o)),b(a)&&(Oe(a)&&!v(a)&&(a=$({},a)),t.style=Ee(a))}const c=T(e)?1:Ar(e)?128:hr(e)?64:b(e)?4:w(e)?2:0;return process.env.NODE_ENV!=="production"&&c&4&&Oe(e)&&(e=h(e),E("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`.",`
17
- Component that was made reactive: `,e)),ft(e,t,n,s,r,c,i,!0)}function Hr(e){return e?Oe(e)||nn(e)?$({},e):e:null}function ke(e,t,n=!1,s=!1){const{props:r,ref:i,patchFlag:c,children:o,transition:a}=e,d=t?Lr(r||{},t):r,p={__v_isVNode:!0,__v_skip:!0,type:e.type,props:d,key:d&&cn(d),ref:t&&t.ref?n&&i?v(i)?i.concat(Me(t)):[i,Me(t)]:Me(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:process.env.NODE_ENV!=="production"&&c===-1&&v(o)?o.map(an):o,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Q?c===-1?16:c|16:c,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ke(e.ssContent),ssFallback:e.ssFallback&&ke(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&s&&Gt(p,a.clone(p)),p}function an(e){const t=ke(e);return v(e.children)&&(t.children=e.children.map(an)),t}function un(e=" ",t=0){return Pe(Pr,null,e,t)}function jr(e="",t=!1){return t?(H(),ut($e,null,e)):Pe($e,null,e)}function dt(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(v(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),dt(e,r()),r._c&&(r._d=!0));return}else n=32,!t._&&!nn(t)&&(t._ctx=A);else w(t)?(t={default:t,_ctx:A},n=32):(t=String(t),s&64?(n=16,t=[un(t)]):n=8);e.children=t,e.shapeFlag|=n}function Lr(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const r in s)if(r==="class")t.class!==s.class&&(t.class=ae([t.class,s.class]));else if(r==="style")t.style=Ee([t.style,s.style]);else if(gn(r)){const i=t[r],c=s[r];c&&i!==c&&!(v(i)&&i.includes(c))&&(t[r]=i?[].concat(i,c):c)}else r!==""&&(t[r]=s[r])}return t}let X=null;const fn=()=>X||A;let pt;{const e=ve(),t=(n,s)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(s),i=>{r.length>1?r.forEach(c=>c(i)):r[0](i)}};pt=t("__VUE_INSTANCE_SETTERS__",n=>X=n),t("__VUE_SSR_SETTERS__",n=>Fe=n)}const Wr=e=>{const t=X;return pt(e),e.scope.on(),()=>{e.scope.off(),pt(t)}};let Fe=!1;process.env.NODE_ENV;const Kr=/(?:^|[-_])(\w)/g,Br=e=>e.replace(Kr,t=>t.toUpperCase()).replace(/[-_]/g,"");function dn(e,t=!0){return w(e)?e.displayName||e.name:e.name||t&&e.__name}function pn(e,t,n=!1){let s=dn(t);if(!s&&t.__file){const r=t.__file.match(/([^/\\]+)\.\w+$/);r&&(s=r[1])}if(!s&&e&&e.parent){const r=i=>{for(const c in i)if(i[c]===t)return c};s=r(e.components||e.parent.type.components)||r(e.appContext.components)}return s?Br(s):n?"App":"Anonymous"}function hn(e){return w(e)&&"__vccOpts"in e}function zr(){if(process.env.NODE_ENV==="production"||typeof window>"u")return;const e={style:"color:#3ba776"},t={style:"color:#1677ff"},n={style:"color:#f5222d"},s={style:"color:#eb2f96"},r={__vue_custom_formatter:!0,header(l){return b(l)?l.__isVue?["div",e,"VueInstance"]:V(l)?["div",{},["span",e,p(l)],"<",o("_value"in l?l._value:l),">"]:re(l)?["div",{},["span",e,N(l)?"ShallowReactive":"Reactive"],"<",o(l),`>${k(l)?" (readonly)":""}`]:k(l)?["div",{},["span",e,N(l)?"ShallowReadonly":"Readonly"],"<",o(l),">"]:null:null},hasBody(l){return l&&l.__isVue},body(l){if(l&&l.__isVue)return["div",{},...i(l.$)]}};function i(l){const f=[];l.type.props&&l.props&&f.push(c("props",h(l.props))),l.setupState!==O&&f.push(c("setup",l.setupState)),l.data!==O&&f.push(c("data",h(l.data)));const u=a(l,"computed");u&&f.push(c("computed",u));const m=a(l,"inject");return m&&f.push(c("injected",m)),f.push(["div",{},["span",{style:s.style+";opacity:0.66"},"$ (internal): "],["object",{object:l}]]),f}function c(l,f){return f=$({},f),Object.keys(f).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},l],["div",{style:"padding-left:1.25em"},...Object.keys(f).map(u=>["div",{},["span",s,u+": "],o(f[u],!1)])]]:["span",{}]}function o(l,f=!0){return typeof l=="number"?["span",t,l]:typeof l=="string"?["span",n,JSON.stringify(l)]:typeof l=="boolean"?["span",s,l]:b(l)?["object",{object:f?h(l):l}]:["span",n,String(l)]}function a(l,f){const u=l.type;if(w(u))return;const m={};for(const _ in l.ctx)d(u,_,f)&&(m[_]=l.ctx[_]);return m}function d(l,f,u){const m=l[u];if(v(m)&&m.includes(f)||b(m)&&f in m||l.extends&&d(l.extends,f,u)||l.mixins&&l.mixins.some(_=>d(_,f,u)))return!0}function p(l){return N(l)?"ShallowRef":l.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(r):window.devtoolsFormatters=[r]}process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV;/**
18
- * vue v3.5.13
19
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
20
- * @license MIT
21
- **/function Ur(){zr()}process.env.NODE_ENV!=="production"&&Ur();const Jr={class:"v-tabs_inner"},Yr=["data-id","onClick"],qr={key:0,class:"v-tabs_tab_title"};return{__name:"VTabs",props:tn({direction:{type:String,default:"horizontal"},trackBy:{type:String,default:"_id"},label:{type:String,default:"title"},list:{type:Array,required:!0},selectFirst:{type:Boolean,default:!0},withSlider:{type:Boolean,default:!1},initialTab:{type:[Number,String],default:null},wrapTitle:{type:Boolean,default:!1}},{modelValue:{},modelModifiers:{}}),emits:tn(["update:modelValue"],["update:modelValue"]),setup(e,{emit:t}){const n=e,s=Cr(e,"modelValue"),r=t,i=rt({});let c=null;const o=Qt("tabs"),a=Qt("elRef");function d(){n.withSlider&&(c=new ResizeObserver(()=>{f()}),o.value.forEach(u=>{c.observe(u)}))}function p(){c==null||c.disconnect(),c=null}function l(u){r("update:modelValue",u),f()}async function f(){if(!n.withSlider||!a.value)return;const u=a.value;await cr();const{left:m}=u.getBoundingClientRect(),[_]=u.getElementsByClassName("__active");if(_){const{left:Z,width:U}=_.getBoundingClientRect(),j=u.scrollLeft,ee=Z+j-m;i.value={transform:`translateX(${ee}px)`,width:`${U}px`}}}return yr(()=>{if(n.selectFirst&&n.list.length&&!s.value&&l(n.list[0]),n.initialTab&&n.list.length&&!s.value){const u=n.list.find(m=>m[n.trackBy]===n.initialTab);u&&l(u)}d()}),vr(()=>{p()}),Ir(s,()=>{n.withSlider&&f()}),(u,m)=>(H(),ce("div",{class:ae(["v-tabs",[`__${n.direction}`]]),ref_key:"elRef",ref:a},[ft("div",Jr,[(H(!0),ce(Q,null,wr(n.list,_=>(H(),ce("div",{key:_[e.trackBy],ref_for:!0,ref:"tabs",class:ae(["v-tabs_tab",{__active:s.value&&s.value[e.trackBy]===_[e.trackBy],_disabled:_&&_._disabled}]),"data-id":_[e.trackBy],onClick:Z=>l(_)},[br(u.$slots,"single-tab",{tab:_},()=>[e.wrapTitle?(H(),ce("div",qr,We(_[e.label]||""),1)):(H(),ce(Q,{key:1},[un(We(_[e.label]||""),1)],64))])],10,Yr))),128))]),n.withSlider?(H(),ce("div",{key:0,style:Ee(i.value),class:"v-tabs_slider"},null,4)):jr("",!0)],2))}}});
1
+ (function(e,s){typeof exports=="object"&&typeof module<"u"?module.exports=s(require("vue")):typeof define=="function"&&define.amd?define(["vue"],s):(e=typeof globalThis<"u"?globalThis:e||self,e.VTabs=s(e.Vue))})(this,function(e){"use strict";const s={class:"v-tabs_inner"},y=["data-id","onClick"],k={key:0,class:"v-tabs_tab_title"};return{__name:"VTabs",props:e.mergeModels({direction:{type:String,default:"horizontal"},trackBy:{type:String,default:"_id"},label:{type:String,default:"title"},list:{type:Array,required:!0},selectFirst:{type:Boolean,default:!0},withSlider:{type:Boolean,default:!1},initialTab:{type:[Number,String],default:null},wrapTitle:{type:Boolean,default:!1}},{modelValue:{},modelModifiers:{}}),emits:e.mergeModels(["update:modelValue"],["update:modelValue"]),setup(i,{emit:B}){const t=i,o=e.useModel(i,"modelValue"),b=B,m=e.ref({});let a=null;const h=e.useTemplateRef("tabs"),c=e.useTemplateRef("elRef");function p(){t.withSlider&&(a=new ResizeObserver(()=>{f()}),h.value.forEach(l=>{a.observe(l)}))}function g(){a==null||a.disconnect(),a=null}function d(l){b("update:modelValue",l),f()}async function f(){if(!t.withSlider||!c.value)return;const l=c.value;await e.nextTick();const{left:r}=l.getBoundingClientRect(),[n]=l.getElementsByClassName("__active");if(n){const{left:u,width:S}=n.getBoundingClientRect(),T=l.scrollLeft,_=u+T-r;m.value={transform:`translateX(${_}px)`,width:`${S}px`}}}return e.onMounted(()=>{if(t.selectFirst&&t.list.length&&!o.value&&d(t.list[0]),t.initialTab&&t.list.length&&!o.value){const l=t.list.find(r=>r[t.trackBy]===t.initialTab);l&&d(l)}p()}),e.onBeforeUnmount(()=>{g()}),e.watch(o,()=>{t.withSlider&&f()}),(l,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["v-tabs",[`__${t.direction}`]]),ref_key:"elRef",ref:c},[e.createElementVNode("div",s,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.list,n=>(e.openBlock(),e.createElementBlock("div",{key:n[i.trackBy],ref_for:!0,ref:"tabs",class:e.normalizeClass(["v-tabs_tab",{__active:o.value&&o.value[i.trackBy]===n[i.trackBy],_disabled:n&&n._disabled}]),"data-id":n[i.trackBy],onClick:u=>d(n)},[e.renderSlot(l.$slots,"single-tab",{tab:n},()=>[i.wrapTitle?(e.openBlock(),e.createElementBlock("div",k,e.toDisplayString(n[i.label]||""),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(n[i.label]||""),1)],64))])],10,y))),128))]),t.withSlider?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(m.value),class:"v-tabs_slider"},null,4)):e.createCommentVNode("",!0)],2))}}});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phoenix-cg/v-tabs",
3
- "version": "0.2.0-beta.1",
3
+ "version": "0.2.0-beta.2",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "module": "./dist/v-tabs.es.js",
package/vite.config.js CHANGED
@@ -11,6 +11,14 @@ export default defineConfig({
11
11
  entry: path.resolve(__dirname, 'src/export.js'),
12
12
  name: 'VTabs',
13
13
  fileName: (format) => `v-tabs.${format}.js`
14
+ },
15
+ rollupOptions: {
16
+ external: ['vue'],
17
+ output: {
18
+ globals: {
19
+ vue: 'Vue',
20
+ }
21
+ }
14
22
  }
15
23
  },
16
24
  plugins: [