@aevantec/litevue 0.5.10 → 0.5.11
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 +1 -1
- package/dist/litevue-devtools.iife.js +1 -1
- package/dist/litevue-devtools.mjs +1 -1
- package/dist/litevue-devtools.umd.js +1 -1
- package/dist/litevue-plugins.dev.iife.js +13 -3
- package/dist/litevue-plugins.dev.mjs +13 -3
- package/dist/litevue-plugins.iife.js +1 -1
- package/dist/litevue-plugins.mjs +1 -1
- package/dist/litevue-plugins.umd.js +1 -1
- package/dist/litevue.dev.iife.js +32 -1
- package/dist/litevue.dev.mjs +32 -1
- package/dist/litevue.iife.js +1 -1
- package/dist/litevue.mjs +1 -1
- package/dist/litevue.umd.js +1 -1
- package/dist/plugins/popover.iife.js +1 -0
- package/dist/plugins/popover.mjs +1 -0
- package/dist/plugins/popover.umd.js +1 -0
- package/dist/plugins/resize.iife.js +1 -1
- package/dist/plugins/resize.mjs +1 -1
- package/dist/plugins/resize.umd.js +1 -1
- package/dist/types/devtools-panel/plugins.d.mts +10 -0
- package/dist/types/devtools-panel/plugins.d.ts +10 -0
- package/dist/types/devtools-panel/styles.d.mts +4 -1
- package/dist/types/devtools-panel/styles.d.ts +4 -1
- package/dist/types/devtools.d.mts +28 -1
- package/dist/types/devtools.d.ts +28 -1
- package/dist/types/plugins/popover/index.d.mts +2 -0
- package/dist/types/plugins/popover/index.d.ts +2 -0
- package/dist/types/plugins/resize/index.d.mts +5 -2
- package/dist/types/plugins/resize/index.d.ts +5 -2
- package/package.json +14 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@aevantec/litevue")):"function"==typeof define&&define.amd?define(["exports","@aevantec/litevue"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).LiteVuePlugins={},e.LiteVue)}(this,function(e,t){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});var n={9:/\d/,a:/[a-zA-Z]/,"*":/[a-zA-Z0-9]/},r=e=>(parseFloat(e)||0)*(e.includes("ms")?1:1e3),o=(e,t)=>{const n=e.split(","),o=t.split(",");let i=0;for(let s=0;s<n.length;s++)i=Math.max(i,r(n[s])+r(o[s%o.length]));return i},i="litevue:",s=Object.create(null),c="local",a=e=>{const t=e??c;return"string"!=typeof t?t:s[t]??(e=>{try{if("local"===e||"localStorage"===e)return localStorage;if("session"===e||"sessionStorage"===e)return sessionStorage}catch{}})(t)},l=(e,t,n,r,o)=>{if(!r)return o(()=>{});const i=((e,t)=>(t??Object.keys(e)).filter(t=>{if("$"===t[0])return!1;const n=Object.getOwnPropertyDescriptor(e,t);if(n&&n.get&&!n.set)return!1;const r=n&&n.value;return(!r||!0!==r.__v_isRef||!0!==r.__v_isReadonly)&&"function"!=typeof e[t]}))(e,n);try{const n=JSON.parse(r.getItem(t)||"null");if(n)for(const t of i)t in n&&(e[t]=n[t])}catch{}return o(()=>{const n={};for(const t of i)n[t]=e[t];try{r.setItem(t,JSON.stringify(n))}catch{}})},f=(e,t)=>1===e.nodeType&&(e.hasAttribute("data-morph-preserve")||!!t.preserve?.(e)),d=/^(?:v-|:|@)/,u=/^(?::|v-bind:)/,p=/^v-(?!scope|on:)/,m=["id","data-key","data-id"],v=e=>{for(const t of m){const n=e.getAttribute(t);if(null!=n)return t+"="+n}return null},h=e=>{for(let t=e;t;t=t.parentElement)if(t.__ctx)return t.__ctx},b=e=>e.hasAttribute("v-for")||e.hasAttribute("v-if")||e.hasAttribute("v-else")||e.hasAttribute("v-else-if"),g=(e,t)=>{const n=(e=>{const t=new Set;for(const{name:n}of e.attributes)u.test(n)?t.add(n.replace(u,"").split(".")[0]):"v-model"===n?(t.add("value"),t.add("checked")):"v-bind"===n?t.add("*"):p.test(n)&&t.add("style");return t})(t);for(const{name:r,value:o}of[...t.attributes])d.test(r)||n.has(r)||e.getAttribute(r)!==o&&e.setAttribute(r,o);for(const{name:r}of[...e.attributes])n.has("*")||n.has(r)||t.hasAttribute(r)||e.removeAttribute(r)},y=(e,t,n,r)=>{if(e.nodeType!==t.nodeType)return k(e,t,n,r);if(3===e.nodeType||8===e.nodeType){const r=t.data;if(((e,t)=>e.includes(t?t.delimiters[0]:"{{"))(r,n))return;return void(e.data!==r&&(e.data=r))}if(1!==e.nodeType)return;const o=e,i=t;if(o.tagName!==i.tagName)return k(e,t,n,r);r.skip?.(o,i)||o.hasAttribute("data-morph-skip")||(g(o,i),(e=>{if(e.hasAttribute("v-text")||e.hasAttribute("v-html")||e.hasAttribute("v-pre")||e.hasAttribute("v-once")||b(e))return!0;for(let t=e.firstElementChild;t;t=t.nextElementSibling)if(b(t))return!0;return!1})(i)||w(o,i,o.__ctx||n,r))},k=(e,t,n,r)=>{if(f(e,r))return;const o=t.cloneNode(!0);!1!==r.beforeNodeAdded?.(o)&&(n?.dispose?.(e),e.parentNode.replaceChild(o,e),r.afterNodeRemoved?.(e),x(o,n))},x=(e,t)=>{const n=t||h(e.parentNode);n?.walk?.(e,n)},w=(e,t,n,r)=>{const o=r.key||v,i=new Map;for(let f=e.firstChild;f;f=f.nextSibling)if(1===f.nodeType){const e=o(f);if(null==e)continue;i.set(e,f)}const s=e=>e&&1===e.nodeType?o(e):null;let c=e.firstChild,a=t.firstChild;const l=t=>{const o=t.cloneNode(!0);!1!==r.beforeNodeAdded?.(o)&&(e.insertBefore(o,c),x(o,n))};for(;a;){const t=a.nextSibling,o=s(a);if(null!=o){const t=i.get(o);t?(t===c?c=c.nextSibling:e.insertBefore(t,c),i.delete(o),y(t,a,n,r)):l(a)}else if(c&&null==s(c)){const e=c.nextSibling;y(c,a,n,r),c=e}else l(a);a=t}for(;c;){const t=c.nextSibling;f(c,r)||(n?.dispose?.(c),e.removeChild(c),r.afterNodeRemoved?.(c)),c=t}},S=(e,t,n={})=>{let r;if("string"==typeof t){const n=document.createElement("template");n.innerHTML=t.trim();const o=n.content;r=1===o.childElementCount?o.firstElementChild:(()=>{const t=e.cloneNode(!1);return t.appendChild(o),t})()}else r=t;if(r){const t=()=>{const t=E();y(e,r,h(e),n),t()};n.transition&&document.startViewTransition?document.startViewTransition(t):t()}return e},E=()=>{const e=document.activeElement;if(!e||e===document.body)return()=>{};const t=e;let n=null,r=null;try{n=t.selectionStart,r=t.selectionEnd}catch{}return()=>{if(e!==document.activeElement&&e.isConnected&&(e.focus(),null!==n))try{t.setSelectionRange(n,r)}catch{}}},A={sm:640,md:768,lg:1024,xl:1280,"2xl":1536},T=Object.freeze({...A}),O={mobile:"base",tablet:"md",desktop:"lg"},L=/^\d+$/,$=(0,t.reactive)({bp:"base",tick:0}),j={...A},_=["base"],N=!1,q=[],P=new Map,C=()=>"undefined"!=typeof window&&"function"==typeof window.matchMedia,D=(e,t)=>e.addEventListener?(e.addEventListener("change",t),{mql:e,off:()=>e.removeEventListener("change",t)}):(e.addListener(t),{mql:e,off:()=>e.removeListener(t)}),M=()=>{for(let e=q.length-1;e>=0;e--)if(q[e].mql.matches)return _[e+1];return"base"},R=()=>{q.forEach(e=>e.off()),q=[];const e=Object.keys(j).filter(e=>j[e]>0).sort((e,t)=>j[e]-j[t]);_=["base",...e],C()&&(q=e.map(e=>{const t=window.matchMedia(`(min-width: ${j[e]}px)`);return D(t,()=>{$.bp=M()})}),$.bp=M())},z=()=>{N||(N=!0,R()),$.tick},I=e=>{if(!C())return!1;let t=P.get(e);if(!t){const n=window.matchMedia(e);t=D(n,()=>$.tick++),P.set(e,t)}return t.mql.matches},B=e=>{if("number"==typeof e)return e;if("base"===e)return 0;if(L.test(e))return Number(e);const t=O[e];return void 0!==t?"base"===t?0:j[t]:j[e]},H=e=>{if(e<=0)return!0;const t=_.findIndex(t=>"base"!==t&&j[t]===e);return-1!==t?_.indexOf($.bp)>=t:($.tick,I(`(min-width: ${e}px)`))},V=new Set,J=(e,t)=>{if(z(),!e||"object"!=typeof e)return t;let n,r=-1;for(const o of Object.keys(e)){const t=B(o);void 0!==t?t>=r&&H(t)&&(r=t,n=e[o]):(_.join(", "),Object.keys(O).join(", "))}return void 0!==n?n:t},K=e=>{const t=O[e],n=j[t];return void 0!==n?n:A[t]},Z=Object.defineProperties((e,t)=>J(e,t),{props:{value:e=>{z();const t={};for(const n of Object.keys(e))t[n]=J(e[n]);return t}},breakpoint:{get:()=>(z(),$.bp),enumerable:!0},device:{get:()=>(z(),H(K("tablet"))?H(K("desktop"))?"desktop":"tablet":"mobile"),enumerable:!0},atLeast:{value:e=>{z();const t=B(e);return void 0!==t&&H(t)}},match:{value:e=>(z(),I(e))},configure:{value:({breakpoints:e})=>{e&&(j={...e},N&&(R(),$.tick++))}}}),F=()=>{q.forEach(e=>e.off()),P.forEach(e=>e.off()),q=[],P.clear(),N=!1};e.collapse=e=>{e.directive("collapse",({el:e,get:t,effect:n,modifiers:r})=>{const o=e;let i=250;for(const u in r||{}){const e=/^duration-(\d+)$/.exec(u);e&&(i=+e[1])}const s=["overflow","height","transition"],c=s.map(e=>o.style[e]);o.style.overflow="hidden";let a=!0,l=0;const f=new Set,d=(e,t)=>{const n=setTimeout(()=>{f.delete(n),e()},t);f.add(n)};return n(()=>{const e=!!t(),n=++l;if(a)return a=!1,e||(o.style.height="0px"),void d(()=>{o.style.transition=`height ${i}ms ease`});e?(o.style.height=o.scrollHeight+"px",d(()=>{n===l&&(o.style.height="")},i)):(o.style.height=o.scrollHeight+"px",o.offsetHeight,o.style.height="0px")}),()=>{f.forEach(clearTimeout),s.forEach((e,t)=>o.style[e]=c[t])}})},e.defaultBreakpoints=T,e.focus=e=>{e.directive("focus",({el:e,get:t,effect:n,modifiers:r})=>{let o=!0;return n(()=>{const n=!!t();Promise.resolve().then(()=>{o&&n&&(e.focus(),r?.select&&e.select&&e.select())})}),()=>{o=!1}}),e.directive("trap",({el:e,get:t,effect:n})=>{let r=!1,o=null;const i=()=>[...e.querySelectorAll('a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"])')].filter(e=>!e.hasAttribute("disabled")),s=t=>{if("Tab"!==t.key)return;const n=i();if(!n.length)return void t.preventDefault();const r=n[0],o=n[n.length-1],s=document.activeElement;e.contains(s)?t.shiftKey&&s===r?(t.preventDefault(),o.focus()):t.shiftKey||s!==o||(t.preventDefault(),r.focus()):(t.preventDefault(),r.focus())},c=()=>{r=!1,document.removeEventListener("keydown",s,!0),o&&o.focus&&o.focus()};return n(()=>{const n=!!t();n&&!r?(r=!0,o=document.activeElement,document.addEventListener("keydown",s,!0),Promise.resolve().then(()=>{r&&(i()[0]||e).focus()})):!n&&r&&c()}),()=>{r&&c()}})},e.intersect=e=>{e.directive("intersect",({el:e,get:t,modifiers:n})=>{const r=new IntersectionObserver(e=>{for(const o of e)(n?.leave?!o.isIntersecting:o.isIntersecting)&&(t(),n?.once&&r.disconnect())},{threshold:n?.full?1:0});return r.observe(e),()=>r.disconnect()})},e.mask=e=>{e.directive("mask",({el:e,exp:t})=>{const r=e,o=()=>{const e=((e,t)=>{let r="",o="",i=0;for(let s=0;s<t.length;s++){const c=n[t[s]];if(c){for(;i<e.length&&!c.test(e[i]);)i++;if(i>=e.length)break;r+=o+e[i++],o=""}else o+=t[s],e[i]===t[s]&&i++}return r})(r.value,t);e!==r.value&&(r.value=e)};return e.addEventListener("input",o),o(),()=>e.removeEventListener("input",o)})},e.media=(e,t)=>(t?.breakpoints&&JSON.stringify(t.breakpoints),t&&Z.configure(t),e.scope.$mq=Z,e.scope.$mqProps=Z.props,e.scope.$mqAtLeast=Z.atLeast,e.scope.$mqMatch=Z.match,Object.defineProperty(e.scope,"$mqBreakpoint",{get:()=>Z.breakpoint,enumerable:!0,configurable:!0}),Object.defineProperty(e.scope,"$mqDevice",{get:()=>Z.device,enumerable:!0,configurable:!0}),F),e.morph=S,e.morphPlugin=e=>{e.scope.$morph=S},e.mq=Z,e.persist=e=>{e.directive("persist",({ctx:e,el:t,exp:n,arg:r,modifiers:o,effect:s})=>{const c=i+(n||t.id);let f;for(const i in o||{})if(a(i)){f=i;break}const d=r?r.split(",").map(e=>e.trim()).filter(Boolean):void 0;l(e.scope,c,d,a(f),s)})},e.persistStore=(e,n={})=>{const r=(0,t.store)(e);if(!r)return()=>{};const o=a(n.storage);return l(r,i+(n.key??e),n.keys,o,t.watchEffect)},e.registerStorage=(e,t)=>{s[e]=t},e.resetMedia=()=>{F(),j={...A},_=["base",...Object.keys(j).sort((e,t)=>j[e]-j[t])],N=!1,V.clear(),$.bp="base",$.tick=0},e.resize=e=>{e.directive("resize",({el:e,get:t,exp:n})=>{const r=t(`(($width, $height) => { ${n} })`),o=new ResizeObserver(e=>{for(const t of e){const e=t.contentRect;r(e.width,e.height)}});return o.observe(e),()=>o.disconnect()})},e.setDefaultStorage=e=>{c=e},e.transition=e=>{e.directive("transition",({el:e,get:t,effect:n,arg:r,modifiers:i,exp:s})=>{const c=e,a=r||"v",l=e=>`${a}-${e}`;let f,d=0,u=!0;const p=()=>{c.classList.remove(l("enter-from"),l("enter-active"),l("enter-to"),l("leave-from"),l("leave-active"),l("leave-to"))},m=(e,t)=>{const n=++d;p(),c.classList.add(l(e+"-from"),l(e+"-active")),c.offsetWidth,c.classList.remove(l(e+"-from")),c.classList.add(l(e+"-to")),clearTimeout(f),f=setTimeout(()=>{n===d&&(p(),t&&t())},(e=>{const t=getComputedStyle(e);return Math.max(o(t.transitionDuration,t.transitionDelay),o(t.animationDuration,t.animationDelay))})(c))};if(!s){let e=!0;return Promise.resolve().then(()=>{e&&m("enter")}),c.__leave=()=>new Promise(e=>m("leave",e)),()=>{e=!1,clearTimeout(f),delete c.__leave}}return n(()=>{const e=!!t();if(u)return u=!1,c.style.display=e?"":"none",void(e&&i?.appear&&m("enter"));e?(c.style.display="",m("enter")):m("leave",()=>{c.style.display="none"})}),()=>clearTimeout(f)})}});
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@aevantec/litevue")):"function"==typeof define&&define.amd?define(["exports","@aevantec/litevue"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).LiteVuePlugins={},e.LiteVue)}(this,function(e,t){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});var n={9:/\d/,a:/[a-zA-Z]/,"*":/[a-zA-Z0-9]/},r=e=>(parseFloat(e)||0)*(e.includes("ms")?1:1e3),o=(e,t)=>{const n=e.split(","),o=t.split(",");let i=0;for(let s=0;s<n.length;s++)i=Math.max(i,r(n[s])+r(o[s%o.length]));return i},i="litevue:",s=Object.create(null),c="local",a=e=>{const t=e??c;return"string"!=typeof t?t:s[t]??(e=>{try{if("local"===e||"localStorage"===e)return localStorage;if("session"===e||"sessionStorage"===e)return sessionStorage}catch{}})(t)},l=(e,t,n,r,o)=>{if(!r)return o(()=>{});const i=((e,t)=>(t??Object.keys(e)).filter(t=>{if("$"===t[0])return!1;const n=Object.getOwnPropertyDescriptor(e,t);if(n&&n.get&&!n.set)return!1;const r=n&&n.value;return(!r||!0!==r.__v_isRef||!0!==r.__v_isReadonly)&&"function"!=typeof e[t]}))(e,n);try{const n=JSON.parse(r.getItem(t)||"null");if(n)for(const t of i)t in n&&(e[t]=n[t])}catch{}return o(()=>{const n={};for(const t of i)n[t]=e[t];try{r.setItem(t,JSON.stringify(n))}catch{}})},f=(e,t)=>1===e.nodeType&&(e.hasAttribute("data-morph-preserve")||!!t.preserve?.(e)),d=/^(?:v-|:|@)/,u=/^(?::|v-bind:)/,p=/^v-(?!scope|on:)/,m=["id","data-key","data-id"],v=e=>{for(const t of m){const n=e.getAttribute(t);if(null!=n)return t+"="+n}return null},h=e=>{for(let t=e;t;t=t.parentElement)if(t.__ctx)return t.__ctx},b=e=>e.hasAttribute("v-for")||e.hasAttribute("v-if")||e.hasAttribute("v-else")||e.hasAttribute("v-else-if"),g=(e,t)=>{const n=(e=>{const t=new Set;for(const{name:n}of e.attributes)u.test(n)?t.add(n.replace(u,"").split(".")[0]):"v-model"===n?(t.add("value"),t.add("checked")):"v-bind"===n?t.add("*"):p.test(n)&&t.add("style");return t})(t);for(const{name:r,value:o}of[...t.attributes])d.test(r)||n.has(r)||e.getAttribute(r)!==o&&e.setAttribute(r,o);for(const{name:r}of[...e.attributes])n.has("*")||n.has(r)||t.hasAttribute(r)||e.removeAttribute(r)},y=(e,t,n,r)=>{if(e.nodeType!==t.nodeType)return k(e,t,n,r);if(3===e.nodeType||8===e.nodeType){const r=t.data;if(((e,t)=>e.includes(t?t.delimiters[0]:"{{"))(r,n))return;return void(e.data!==r&&(e.data=r))}if(1!==e.nodeType)return;const o=e,i=t;if(o.tagName!==i.tagName)return k(e,t,n,r);r.skip?.(o,i)||o.hasAttribute("data-morph-skip")||(g(o,i),(e=>{if(e.hasAttribute("v-text")||e.hasAttribute("v-html")||e.hasAttribute("v-pre")||e.hasAttribute("v-once")||b(e))return!0;for(let t=e.firstElementChild;t;t=t.nextElementSibling)if(b(t))return!0;return!1})(i)||x(o,i,o.__ctx||n,r))},k=(e,t,n,r)=>{if(f(e,r))return;const o=t.cloneNode(!0);!1!==r.beforeNodeAdded?.(o)&&(n?.dispose?.(e),e.parentNode.replaceChild(o,e),r.afterNodeRemoved?.(e),w(o,n))},w=(e,t)=>{const n=t||h(e.parentNode);n?.walk?.(e,n)},x=(e,t,n,r)=>{const o=r.key||v,i=new Map;for(let f=e.firstChild;f;f=f.nextSibling)if(1===f.nodeType){const e=o(f);if(null==e)continue;i.set(e,f)}const s=e=>e&&1===e.nodeType?o(e):null;let c=e.firstChild,a=t.firstChild;const l=t=>{const o=t.cloneNode(!0);!1!==r.beforeNodeAdded?.(o)&&(e.insertBefore(o,c),w(o,n))};for(;a;){const t=a.nextSibling,o=s(a);if(null!=o){const t=i.get(o);t?(t===c?c=c.nextSibling:e.insertBefore(t,c),i.delete(o),y(t,a,n,r)):l(a)}else if(c&&null==s(c)){const e=c.nextSibling;y(c,a,n,r),c=e}else l(a);a=t}for(;c;){const t=c.nextSibling;f(c,r)||(n?.dispose?.(c),e.removeChild(c),r.afterNodeRemoved?.(c)),c=t}},E=(e,t,n={})=>{let r;if("string"==typeof t){const n=document.createElement("template");n.innerHTML=t.trim();const o=n.content;r=1===o.childElementCount?o.firstElementChild:(()=>{const t=e.cloneNode(!1);return t.appendChild(o),t})()}else r=t;if(r){const t=()=>{const t=S();y(e,r,h(e),n),t()};n.transition&&document.startViewTransition?document.startViewTransition(t):t()}return e},S=()=>{const e=document.activeElement;if(!e||e===document.body)return()=>{};const t=e;let n=null,r=null;try{n=t.selectionStart,r=t.selectionEnd}catch{}return()=>{if(e!==document.activeElement&&e.isConnected&&(e.focus(),null!==n))try{t.setSelectionRange(n,r)}catch{}}},A={sm:640,md:768,lg:1024,xl:1280,"2xl":1536},L=Object.freeze({...A}),T={mobile:"base",tablet:"md",desktop:"lg"},O=/^\d+$/,$=(0,t.reactive)({bp:"base",tick:0}),j={...A},_=["base"],N=!1,q=[],P=new Map,C=()=>"undefined"!=typeof window&&"function"==typeof window.matchMedia,D=(e,t)=>e.addEventListener?(e.addEventListener("change",t),{mql:e,off:()=>e.removeEventListener("change",t)}):(e.addListener(t),{mql:e,off:()=>e.removeListener(t)}),M=()=>{for(let e=q.length-1;e>=0;e--)if(q[e].mql.matches)return _[e+1];return"base"},z=()=>{q.forEach(e=>e.off()),q=[];const e=Object.keys(j).filter(e=>j[e]>0).sort((e,t)=>j[e]-j[t]);_=["base",...e],C()&&(q=e.map(e=>{const t=window.matchMedia(`(min-width: ${j[e]}px)`);return D(t,()=>{$.bp=M()})}),$.bp=M())},R=()=>{N||(N=!0,z()),$.tick},I=e=>{if(!C())return!1;let t=P.get(e);if(!t){const n=window.matchMedia(e);t=D(n,()=>$.tick++),P.set(e,t)}return t.mql.matches},B=e=>{if("number"==typeof e)return e;if("base"===e)return 0;if(O.test(e))return Number(e);const t=T[e];return void 0!==t?"base"===t?0:j[t]:j[e]},H=e=>{if(e<=0)return!0;const t=_.findIndex(t=>"base"!==t&&j[t]===e);return-1!==t?_.indexOf($.bp)>=t:($.tick,I(`(min-width: ${e}px)`))},V=new Set,J=(e,t)=>{if(R(),!e||"object"!=typeof e)return t;let n,r=-1;for(const o of Object.keys(e)){const t=B(o);void 0!==t?t>=r&&H(t)&&(r=t,n=e[o]):(_.join(", "),Object.keys(T).join(", "))}return void 0!==n?n:t},K=e=>{const t=T[e],n=j[t];return void 0!==n?n:A[t]},W=Object.defineProperties((e,t)=>J(e,t),{props:{value:e=>{R();const t={};for(const n of Object.keys(e))t[n]=J(e[n]);return t}},breakpoint:{get:()=>(R(),$.bp),enumerable:!0},device:{get:()=>(R(),H(K("tablet"))?H(K("desktop"))?"desktop":"tablet":"mobile"),enumerable:!0},atLeast:{value:e=>{R();const t=B(e);return void 0!==t&&H(t)}},match:{value:e=>(R(),I(e))},configure:{value:({breakpoints:e})=>{e&&(j={...e},N&&(z(),$.tick++))}}}),Z=()=>{q.forEach(e=>e.off()),P.forEach(e=>e.off()),q=[],P.clear(),N=!1};e.collapse=e=>{e.directive("collapse",({el:e,get:t,effect:n,modifiers:r})=>{const o=e;let i=250;for(const u in r||{}){const e=/^duration-(\d+)$/.exec(u);e&&(i=+e[1])}const s=["overflow","height","transition"],c=s.map(e=>o.style[e]);o.style.overflow="hidden";let a=!0,l=0;const f=new Set,d=(e,t)=>{const n=setTimeout(()=>{f.delete(n),e()},t);f.add(n)};return n(()=>{const e=!!t(),n=++l;if(a)return a=!1,e||(o.style.height="0px"),void d(()=>{o.style.transition=`height ${i}ms ease`});e?(o.style.height=o.scrollHeight+"px",d(()=>{n===l&&(o.style.height="")},i)):(o.style.height=o.scrollHeight+"px",o.offsetHeight,o.style.height="0px")}),()=>{f.forEach(clearTimeout),s.forEach((e,t)=>o.style[e]=c[t])}})},e.defaultBreakpoints=L,e.focus=e=>{e.directive("focus",({el:e,get:t,effect:n,modifiers:r})=>{let o=!0;return n(()=>{const n=!!t();Promise.resolve().then(()=>{o&&n&&(e.focus(),r?.select&&e.select&&e.select())})}),()=>{o=!1}}),e.directive("trap",({el:e,get:t,effect:n})=>{let r=!1,o=null;const i=()=>[...e.querySelectorAll('a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"])')].filter(e=>!e.hasAttribute("disabled")),s=t=>{if("Tab"!==t.key)return;const n=i();if(!n.length)return void t.preventDefault();const r=n[0],o=n[n.length-1],s=document.activeElement;e.contains(s)?t.shiftKey&&s===r?(t.preventDefault(),o.focus()):t.shiftKey||s!==o||(t.preventDefault(),r.focus()):(t.preventDefault(),r.focus())},c=()=>{r=!1,document.removeEventListener("keydown",s,!0),o&&o.focus&&o.focus()};return n(()=>{const n=!!t();n&&!r?(r=!0,o=document.activeElement,document.addEventListener("keydown",s,!0),Promise.resolve().then(()=>{r&&(i()[0]||e).focus()})):!n&&r&&c()}),()=>{r&&c()}})},e.intersect=e=>{e.directive("intersect",({el:e,get:t,modifiers:n})=>{const r=new IntersectionObserver(e=>{for(const o of e)(n?.leave?!o.isIntersecting:o.isIntersecting)&&(t(),n?.once&&r.disconnect())},{threshold:n?.full?1:0});return r.observe(e),()=>r.disconnect()})},e.mask=e=>{e.directive("mask",({el:e,exp:t})=>{const r=e,o=()=>{const e=((e,t)=>{let r="",o="",i=0;for(let s=0;s<t.length;s++){const c=n[t[s]];if(c){for(;i<e.length&&!c.test(e[i]);)i++;if(i>=e.length)break;r+=o+e[i++],o=""}else o+=t[s],e[i]===t[s]&&i++}return r})(r.value,t);e!==r.value&&(r.value=e)};return e.addEventListener("input",o),o(),()=>e.removeEventListener("input",o)})},e.media=(e,t)=>(t?.breakpoints&&JSON.stringify(t.breakpoints),t&&W.configure(t),e.scope.$mq=W,e.scope.$mqProps=W.props,e.scope.$mqAtLeast=W.atLeast,e.scope.$mqMatch=W.match,Object.defineProperty(e.scope,"$mqBreakpoint",{get:()=>W.breakpoint,enumerable:!0,configurable:!0}),Object.defineProperty(e.scope,"$mqDevice",{get:()=>W.device,enumerable:!0,configurable:!0}),Z),e.morph=E,e.morphPlugin=e=>{e.scope.$morph=E},e.mq=W,e.persist=e=>{e.directive("persist",({ctx:e,el:t,exp:n,arg:r,modifiers:o,effect:s})=>{const c=i+(n||t.id);let f;for(const i in o||{})if(a(i)){f=i;break}const d=r?r.split(",").map(e=>e.trim()).filter(Boolean):void 0;l(e.scope,c,d,a(f),s)})},e.persistStore=(e,n={})=>{const r=(0,t.store)(e);if(!r)return()=>{};const o=a(n.storage);return l(r,i+(n.key??e),n.keys,o,t.watchEffect)},e.registerStorage=(e,t)=>{s[e]=t},e.resetMedia=()=>{Z(),j={...A},_=["base",...Object.keys(j).sort((e,t)=>j[e]-j[t])],N=!1,V.clear(),$.bp="base",$.tick=0},e.resize=e=>{e.directive("resize",({el:e,get:t,exp:n,modifiers:r})=>{const o=t(`(($width, $height) => { ${n} })`);if(r?.window||r?.visual){const e=r.visual&&window.visualViewport||window,t=()=>o(e.width||innerWidth,e.height||innerHeight);return e.addEventListener("resize",t),t(),()=>e.removeEventListener("resize",t)}const i=new ResizeObserver(e=>{for(const t of e){const e=t.contentRect;o(e.width,e.height)}});return i.observe(e),()=>i.disconnect()})},e.setDefaultStorage=e=>{c=e},e.transition=e=>{e.directive("transition",({el:e,get:t,effect:n,arg:r,modifiers:i,exp:s})=>{const c=e,a=r||"v",l=e=>`${a}-${e}`;let f,d=0,u=!0;const p=()=>{c.classList.remove(l("enter-from"),l("enter-active"),l("enter-to"),l("leave-from"),l("leave-active"),l("leave-to"))},m=(e,t)=>{const n=++d;p(),c.classList.add(l(e+"-from"),l(e+"-active")),c.offsetWidth,c.classList.remove(l(e+"-from")),c.classList.add(l(e+"-to")),clearTimeout(f),f=setTimeout(()=>{n===d&&(p(),t&&t())},(e=>{const t=getComputedStyle(e);return Math.max(o(t.transitionDuration,t.transitionDelay),o(t.animationDuration,t.animationDelay))})(c))};if(!s){let e=!0;return Promise.resolve().then(()=>{e&&m("enter")}),c.__leave=()=>new Promise(e=>m("leave",e)),()=>{e=!1,clearTimeout(f),delete c.__leave}}return n(()=>{const e=!!t();if(u)return u=!1,c.style.display=e?"":"none",void(e&&i?.appear&&m("enter"));e?(c.style.display="",m("enter")):m("leave",()=>{c.style.display="none"})}),()=>clearTimeout(f)})}});
|
package/dist/litevue.dev.iife.js
CHANGED
|
@@ -623,12 +623,14 @@ getter: `, this.getter);
|
|
|
623
623
|
var names = /* @__PURE__ */ new Map();
|
|
624
624
|
var storeMap = /* @__PURE__ */ new Map();
|
|
625
625
|
var componentNames = /* @__PURE__ */ new Set();
|
|
626
|
+
var pluginList = [];
|
|
626
627
|
var disabled = false;
|
|
627
628
|
var isDisabled = () => disabled || typeof window !== "undefined" && window.__LITE_VUE_DEVTOOLS__ === false;
|
|
628
629
|
var listeners = {
|
|
629
630
|
"scope:mount": /* @__PURE__ */ new Set(),
|
|
630
631
|
"scope:unmount": /* @__PURE__ */ new Set(),
|
|
631
632
|
"store:register": /* @__PURE__ */ new Set(),
|
|
633
|
+
"plugin:install": /* @__PURE__ */ new Set(),
|
|
632
634
|
flush: /* @__PURE__ */ new Set()
|
|
633
635
|
};
|
|
634
636
|
var emit = (event, ...args) => {
|
|
@@ -657,6 +659,18 @@ getter: `, this.getter);
|
|
|
657
659
|
var registerComponent = (name) => {
|
|
658
660
|
if (!isDisabled()) componentNames.add(name);
|
|
659
661
|
};
|
|
662
|
+
/** Registers a plugin and returns a deregister, as registerScope does. */
|
|
663
|
+
var registerPlugin = (info) => {
|
|
664
|
+
if (isDisabled()) return;
|
|
665
|
+
pluginList.push(info);
|
|
666
|
+
emit("plugin:install", info);
|
|
667
|
+
return () => {
|
|
668
|
+
const i = pluginList.indexOf(info);
|
|
669
|
+
if (i > -1) pluginList.splice(i, 1);
|
|
670
|
+
};
|
|
671
|
+
};
|
|
672
|
+
/** True when something is listening, so app.use() can skip the diff. */
|
|
673
|
+
var pluginsWatched = () => !isDisabled();
|
|
660
674
|
var emitFlush = () => {
|
|
661
675
|
if (listeners.flush.size && !isDisabled()) emit("flush");
|
|
662
676
|
};
|
|
@@ -666,6 +680,7 @@ getter: `, this.getter);
|
|
|
666
680
|
names,
|
|
667
681
|
stores: storeMap,
|
|
668
682
|
components: componentNames,
|
|
683
|
+
plugins: pluginList,
|
|
669
684
|
getScopeByName(name) {
|
|
670
685
|
for (const [el, n] of names) if (n === name) return scopes.get(el);
|
|
671
686
|
},
|
|
@@ -698,6 +713,7 @@ getter: `, this.getter);
|
|
|
698
713
|
names.clear();
|
|
699
714
|
storeMap.clear();
|
|
700
715
|
componentNames.clear();
|
|
716
|
+
pluginList.length = 0;
|
|
701
717
|
for (const event in listeners) listeners[event].clear();
|
|
702
718
|
if (typeof window !== "undefined" && window.__LITE_VUE__ === devtools) delete window.__LITE_VUE__;
|
|
703
719
|
};
|
|
@@ -1003,7 +1019,8 @@ getter: `, this.getter);
|
|
|
1003
1019
|
console.error(`v-on="obj" syntax is not supported in LiteVue.`);
|
|
1004
1020
|
return;
|
|
1005
1021
|
}
|
|
1006
|
-
const
|
|
1022
|
+
const a = /\bawait\b/.test(exp) ? "async " : "";
|
|
1023
|
+
const raw = simplePathRE.test(exp) ? get(`(e => ${exp}(e))`) : isExpression(exp) ? get(`(${a}$event => (${exp}))`) : get(`(${a}$event => { ${exp} })`);
|
|
1007
1024
|
let handler = (...args) => {
|
|
1008
1025
|
try {
|
|
1009
1026
|
const result = raw(...args);
|
|
@@ -2066,6 +2083,7 @@ getter: `, this.getter);
|
|
|
2066
2083
|
});
|
|
2067
2084
|
const components = Object.create(null);
|
|
2068
2085
|
let rootBlocks = [];
|
|
2086
|
+
const pluginDeregisters = [];
|
|
2069
2087
|
const installedPlugins = /* @__PURE__ */ new Set();
|
|
2070
2088
|
const pluginTeardowns = [];
|
|
2071
2089
|
const ownErrorHandlers = [];
|
|
@@ -2101,8 +2119,20 @@ getter: `, this.getter);
|
|
|
2101
2119
|
use(plugin, options) {
|
|
2102
2120
|
if (!installedPlugins.has(plugin)) {
|
|
2103
2121
|
installedPlugins.add(plugin);
|
|
2122
|
+
const watched = pluginsWatched();
|
|
2123
|
+
const dirsBefore = watched ? Object.keys(ctx.dirs) : [];
|
|
2124
|
+
const scopeBefore = watched ? Object.keys(ctx.scope) : [];
|
|
2104
2125
|
const teardown = (typeof plugin === "function" ? plugin : plugin.install)(app, options);
|
|
2105
2126
|
if (typeof teardown === "function") pluginTeardowns.push(teardown);
|
|
2127
|
+
if (watched) {
|
|
2128
|
+
const off = registerPlugin({
|
|
2129
|
+
name: typeof plugin === "function" && plugin.name || `plugin ${installedPlugins.size}`,
|
|
2130
|
+
directives: Object.keys(ctx.dirs).filter((d) => !dirsBefore.includes(d)),
|
|
2131
|
+
magics: Object.keys(ctx.scope).filter((k) => k[0] === "$" && !scopeBefore.includes(k)),
|
|
2132
|
+
teardown: typeof teardown === "function"
|
|
2133
|
+
});
|
|
2134
|
+
if (off) pluginDeregisters.push(off);
|
|
2135
|
+
}
|
|
2106
2136
|
}
|
|
2107
2137
|
return app;
|
|
2108
2138
|
},
|
|
@@ -2144,6 +2174,7 @@ getter: `, this.getter);
|
|
|
2144
2174
|
if (el == null) {
|
|
2145
2175
|
rootBlocks.forEach((block) => block.teardown());
|
|
2146
2176
|
rootBlocks = [];
|
|
2177
|
+
pluginDeregisters.splice(0).forEach((fn) => fn());
|
|
2147
2178
|
pluginTeardowns.splice(0).forEach((fn) => {
|
|
2148
2179
|
try {
|
|
2149
2180
|
fn();
|
package/dist/litevue.dev.mjs
CHANGED
|
@@ -621,12 +621,14 @@ var exps = /* @__PURE__ */ new Map();
|
|
|
621
621
|
var names = /* @__PURE__ */ new Map();
|
|
622
622
|
var storeMap = /* @__PURE__ */ new Map();
|
|
623
623
|
var componentNames = /* @__PURE__ */ new Set();
|
|
624
|
+
var pluginList = [];
|
|
624
625
|
var disabled = false;
|
|
625
626
|
var isDisabled = () => disabled || typeof window !== "undefined" && window.__LITE_VUE_DEVTOOLS__ === false;
|
|
626
627
|
var listeners = {
|
|
627
628
|
"scope:mount": /* @__PURE__ */ new Set(),
|
|
628
629
|
"scope:unmount": /* @__PURE__ */ new Set(),
|
|
629
630
|
"store:register": /* @__PURE__ */ new Set(),
|
|
631
|
+
"plugin:install": /* @__PURE__ */ new Set(),
|
|
630
632
|
flush: /* @__PURE__ */ new Set()
|
|
631
633
|
};
|
|
632
634
|
var emit = (event, ...args) => {
|
|
@@ -655,6 +657,18 @@ var registerStore = (name, store) => {
|
|
|
655
657
|
var registerComponent = (name) => {
|
|
656
658
|
if (!isDisabled()) componentNames.add(name);
|
|
657
659
|
};
|
|
660
|
+
/** Registers a plugin and returns a deregister, as registerScope does. */
|
|
661
|
+
var registerPlugin = (info) => {
|
|
662
|
+
if (isDisabled()) return;
|
|
663
|
+
pluginList.push(info);
|
|
664
|
+
emit("plugin:install", info);
|
|
665
|
+
return () => {
|
|
666
|
+
const i = pluginList.indexOf(info);
|
|
667
|
+
if (i > -1) pluginList.splice(i, 1);
|
|
668
|
+
};
|
|
669
|
+
};
|
|
670
|
+
/** True when something is listening, so app.use() can skip the diff. */
|
|
671
|
+
var pluginsWatched = () => !isDisabled();
|
|
658
672
|
var emitFlush = () => {
|
|
659
673
|
if (listeners.flush.size && !isDisabled()) emit("flush");
|
|
660
674
|
};
|
|
@@ -664,6 +678,7 @@ var devtools = {
|
|
|
664
678
|
names,
|
|
665
679
|
stores: storeMap,
|
|
666
680
|
components: componentNames,
|
|
681
|
+
plugins: pluginList,
|
|
667
682
|
getScopeByName(name) {
|
|
668
683
|
for (const [el, n] of names) if (n === name) return scopes.get(el);
|
|
669
684
|
},
|
|
@@ -696,6 +711,7 @@ var disableDevtools = () => {
|
|
|
696
711
|
names.clear();
|
|
697
712
|
storeMap.clear();
|
|
698
713
|
componentNames.clear();
|
|
714
|
+
pluginList.length = 0;
|
|
699
715
|
for (const event in listeners) listeners[event].clear();
|
|
700
716
|
if (typeof window !== "undefined" && window.__LITE_VUE__ === devtools) delete window.__LITE_VUE__;
|
|
701
717
|
};
|
|
@@ -1001,7 +1017,8 @@ var on = ({ el, get, ctx, exp, arg, modifiers }) => {
|
|
|
1001
1017
|
console.error(`v-on="obj" syntax is not supported in LiteVue.`);
|
|
1002
1018
|
return;
|
|
1003
1019
|
}
|
|
1004
|
-
const
|
|
1020
|
+
const a = /\bawait\b/.test(exp) ? "async " : "";
|
|
1021
|
+
const raw = simplePathRE.test(exp) ? get(`(e => ${exp}(e))`) : isExpression(exp) ? get(`(${a}$event => (${exp}))`) : get(`(${a}$event => { ${exp} })`);
|
|
1005
1022
|
let handler = (...args) => {
|
|
1006
1023
|
try {
|
|
1007
1024
|
const result = raw(...args);
|
|
@@ -2064,6 +2081,7 @@ var createApp = (initialData) => {
|
|
|
2064
2081
|
});
|
|
2065
2082
|
const components = Object.create(null);
|
|
2066
2083
|
let rootBlocks = [];
|
|
2084
|
+
const pluginDeregisters = [];
|
|
2067
2085
|
const installedPlugins = /* @__PURE__ */ new Set();
|
|
2068
2086
|
const pluginTeardowns = [];
|
|
2069
2087
|
const ownErrorHandlers = [];
|
|
@@ -2099,8 +2117,20 @@ var createApp = (initialData) => {
|
|
|
2099
2117
|
use(plugin, options) {
|
|
2100
2118
|
if (!installedPlugins.has(plugin)) {
|
|
2101
2119
|
installedPlugins.add(plugin);
|
|
2120
|
+
const watched = pluginsWatched();
|
|
2121
|
+
const dirsBefore = watched ? Object.keys(ctx.dirs) : [];
|
|
2122
|
+
const scopeBefore = watched ? Object.keys(ctx.scope) : [];
|
|
2102
2123
|
const teardown = (typeof plugin === "function" ? plugin : plugin.install)(app, options);
|
|
2103
2124
|
if (typeof teardown === "function") pluginTeardowns.push(teardown);
|
|
2125
|
+
if (watched) {
|
|
2126
|
+
const off = registerPlugin({
|
|
2127
|
+
name: typeof plugin === "function" && plugin.name || `plugin ${installedPlugins.size}`,
|
|
2128
|
+
directives: Object.keys(ctx.dirs).filter((d) => !dirsBefore.includes(d)),
|
|
2129
|
+
magics: Object.keys(ctx.scope).filter((k) => k[0] === "$" && !scopeBefore.includes(k)),
|
|
2130
|
+
teardown: typeof teardown === "function"
|
|
2131
|
+
});
|
|
2132
|
+
if (off) pluginDeregisters.push(off);
|
|
2133
|
+
}
|
|
2104
2134
|
}
|
|
2105
2135
|
return app;
|
|
2106
2136
|
},
|
|
@@ -2142,6 +2172,7 @@ var createApp = (initialData) => {
|
|
|
2142
2172
|
if (el == null) {
|
|
2143
2173
|
rootBlocks.forEach((block) => block.teardown());
|
|
2144
2174
|
rootBlocks = [];
|
|
2175
|
+
pluginDeregisters.splice(0).forEach((fn) => fn());
|
|
2145
2176
|
pluginTeardowns.splice(0).forEach((fn) => {
|
|
2146
2177
|
try {
|
|
2147
2178
|
fn();
|
package/dist/litevue.iife.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var LiteVue=function(e){function t(e,t){const n=new Set(e.split(","));return t?e=>n.has(e.toLowerCase()):e=>n.has(e)}Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});var n=()=>{},s=Object.assign,r=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},i=Object.prototype.hasOwnProperty,o=(e,t)=>i.call(e,t),c=Array.isArray,l=e=>"[object Map]"===d(e),u=e=>"[object Date]"===d(e),a=e=>"string"==typeof e,f=e=>"symbol"==typeof e,p=e=>null!==e&&"object"==typeof e,h=Object.prototype.toString,d=e=>h.call(e),m=e=>a(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,v=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},g=/-(\w)/g,y=v(e=>e.replace(g,(e,t)=>t?t.toUpperCase():"")),_=/\B([A-Z])/g,b=v(e=>e.replace(_,"-$1").toLowerCase()),w=v(e=>e.charAt(0).toUpperCase()+e.slice(1)),x=(v(e=>e?`on${w(e)}`:""),(e,t)=>!Object.is(e,t)),$=e=>{const t=a(e)?Number(e):NaN;return isNaN(t)?e:t};function k(e){if(c(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=a(s)?L(s):k(s);if(r)for(const e in r)t[e]=r[e]}return t}if(a(e)||p(e))return e}var O=/;(?![^(]*\))/g,S=/:([^]+)/,E=/\/\*[^]*?\*\//g;function L(e){const t={};return e.replace(E,"").split(O).forEach(e=>{if(e){const n=e.split(S);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function j(e){let t="";if(a(e))t=e;else if(c(e))for(let n=0;n<e.length;n++){const s=j(e[n]);s&&(t+=s+" ")}else if(p(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}var A;function T(e,t){if(e===t)return!0;let n=u(e),s=u(t);if(n||s)return!(!n||!s)&&e.getTime()===t.getTime();if(n=f(e),s=f(t),n||s)return e===t;if(n=c(e),s=c(t),n||s)return!(!n||!s)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=T(e[s],t[s]);return n}(e,t);if(n=p(e),s=p(t),n||s){if(!n||!s)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){const s=e.hasOwnProperty(n),r=t.hasOwnProperty(n);if(s&&!r||!s&&r||!T(e[n],t[n]))return!1}}return String(e)===String(t)}function N(e,t){return e.findIndex(e=>T(e,t))}function P(e,t=void 0){t&&t.active&&t.effects.push(e)}var R=class{constructor(e,t,n,s){this.fn=e,this.trigger=t,this.scheduler=n,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,P(this,s)}get dirty(){if(2===this._dirtyLevel||3===this._dirtyLevel){this._dirtyLevel=1,K();for(let e=0;e<this._depsLength;e++){const t=this.deps[e];if(t.computed&&(I(t.computed),this._dirtyLevel>=4))break}1===this._dirtyLevel&&(this._dirtyLevel=0),q()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=z,t=A;try{return z=!0,A=this,this._runnings++,C(this),this.fn()}finally{M(this),this._runnings--,A=t,z=e}}stop(){this.active&&(C(this),M(this),this.onStop&&this.onStop(),this.active=!1)}};function I(e){return e.value}function C(e){e._trackId++,e._depsLength=0}function M(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)V(e.deps[t],e);e.deps.length=e._depsLength}}function V(e,t){const n=e.get(t);void 0!==n&&t._trackId!==n&&(e.delete(t),0===e.size&&e.cleanup())}function W(e,t){e.effect instanceof R&&(e=e.effect.fn);const r=new R(e,n,()=>{r.dirty&&r.run()});t&&(s(r,t),t.scope&&P(r,t.scope)),t&&t.lazy||r.run();const i=r.run.bind(r);return i.effect=r,i}var z=!0,B=0,D=[];function K(){D.push(z),z=!1}function q(){const e=D.pop();z=void 0===e||e}function F(){B++}function U(){for(B--;!B&&Z.length;)Z.shift()()}function J(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const n=e.deps[e._depsLength];n!==t?(n&&V(n,e),e.deps[e._depsLength++]=t):e._depsLength++}}var Z=[];function H(e,t,n){F();for(const s of e.keys()){let n;s._dirtyLevel<t&&(null!=n?n:n=e.get(s)===s._trackId)&&(s._shouldSchedule||(s._shouldSchedule=0===s._dirtyLevel),s._dirtyLevel=t),s._shouldSchedule&&(null!=n?n:n=e.get(s)===s._trackId)&&(s.trigger(),s._runnings&&!s.allowRecurse||2===s._dirtyLevel||(s._shouldSchedule=!1,s.scheduler&&Z.push(s.scheduler)))}U()}var G=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},Q=new WeakMap,X=Symbol(""),Y=Symbol("");function ee(e,t,n){if(z&&A){let t=Q.get(e);t||Q.set(e,t=new Map);let s=t.get(n);s||t.set(n,s=G(()=>t.delete(n))),J(A,s)}}function te(e,t,n,s,r,i){const o=Q.get(e);if(!o)return;let u=[];if("clear"===t)u=[...o.values()];else if("length"===n&&c(e)){const e=Number(s);o.forEach((t,n)=>{("length"===n||!f(n)&&n>=e)&&u.push(t)})}else switch(void 0!==n&&u.push(o.get(n)),t){case"add":c(e)?m(n)&&u.push(o.get("length")):(u.push(o.get(X)),l(e)&&u.push(o.get(Y)));break;case"delete":c(e)||(u.push(o.get(X)),l(e)&&u.push(o.get(Y)));break;case"set":l(e)&&u.push(o.get(X))}F();for(const c of u)c&&H(c,4);U()}var ne=t("__proto__,__v_isRef,__isVue"),se=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(f)),re=ie();function ie(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...e){const n=be(this);for(let t=0,r=this.length;t<r;t++)ee(n,0,t+"");const s=n[t](...e);return-1===s||!1===s?n[t](...e.map(be)):s}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...e){K(),F();const n=be(this)[t].apply(this,e);return U(),q(),n}}),e}function oe(e){f(e)||(e=String(e));const t=be(this);return ee(t,0,e),t.hasOwnProperty(e)}var ce=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){const s=this._isReadonly,r=this._isShallow;if("__v_isReactive"===t)return!s;if("__v_isReadonly"===t)return s;if("__v_isShallow"===t)return r;if("__v_raw"===t)return n===(s?r?me:de:r?he:pe).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const i=c(e);if(!s){if(i&&o(re,t))return Reflect.get(re,t,n);if("hasOwnProperty"===t)return oe}const l=Reflect.get(e,t,n);return(f(t)?se.has(t):ne(t))?l:(s||ee(e,0,t),r?l:$e(l)?i&&m(t)?l:l.value:p(l)?s?function(e){return ye(e,!0,fe,null,de)}(l):ge(l):l)}},le=class extends ce{constructor(e=!1){super(!1,e)}set(e,t,n,s){let r=e[t];if(!this._isShallow){const t=_e(r);if(function(e){return!(!e||!e.__v_isShallow)}(n)||_e(n)||(r=be(r),n=be(n)),!c(e)&&$e(r)&&!$e(n))return!t&&(r.value=n,!0)}const i=c(e)&&m(t)?Number(t)<e.length:o(e,t),l=Reflect.set(e,t,n,s);return e===be(s)&&(i?x(n,r)&&te(e,"set",t,n):te(e,"add",t,n)),l}deleteProperty(e,t){const n=o(e,t),s=(e[t],Reflect.deleteProperty(e,t));return s&&n&&te(e,"delete",t,void 0),s}has(e,t){const n=Reflect.has(e,t);return f(t)&&se.has(t)||ee(e,0,t),n}ownKeys(e){return ee(e,0,c(e)?"length":X),Reflect.ownKeys(e)}},ue=class extends ce{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}},ae=new le,fe=new ue,pe=new WeakMap,he=new WeakMap,de=new WeakMap,me=new WeakMap;function ve(e){return e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;default:return 0}}((e=>d(e).slice(8,-1))(e))}function ge(e){return _e(e)?e:ye(e,!1,ae,null,pe)}function ye(e,t,n,s,r){if(!p(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const o=ve(e);if(0===o)return e;const c=new Proxy(e,2===o?s:n);return r.set(e,c),c}function _e(e){return!(!e||!e.__v_isReadonly)}function be(e){const t=e&&e.__v_raw;return t?be(t):e}var we=class{constructor(e,t,n,s){this.getter=e,this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new R(()=>e(this._value),()=>xe(this,2===this.effect._dirtyLevel?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=n}get value(){const e=be(this);var t,n;return e._cacheable&&!e.effect.dirty||!x(e._value,e._value=e.effect.run())||xe(e,4),t=e,z&&A&&(t=be(t),J(A,null!=(n=t.dep)?n:t.dep=G(()=>t.dep=void 0,t instanceof we?t:void 0))),e.effect._dirtyLevel>=2&&xe(e,2),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}};function xe(e,t=4,n,s){const r=(e=be(e)).dep;r&&H(r,t)}function $e(e){return!(!e||!0!==e.__v_isRef)}var ke=new Map,Oe=new Map,Se=new Map,Ee=new Map,Le=new Set,je=!1,Ae=()=>je||"undefined"!=typeof window&&!1===window.__LITE_VUE_DEVTOOLS__,Te={"scope:mount":new Set,"scope:unmount":new Set,"store:register":new Set,flush:new Set},Ne=(e,...t)=>{Te[e].forEach(e=>e(...t))},Pe=()=>{},Re=(e,t,n,s)=>Ae()?Pe:(ke.set(e,t),n&&Oe.set(e,n),s&&Se.set(e,s),Ne("scope:mount",e,t),()=>{ke.delete(e)&&(Oe.delete(e),Se.delete(e),Ne("scope:unmount",e))}),Ie={scopes:ke,exps:Oe,names:Se,stores:Ee,components:Le,getScopeByName(e){for(const[t,n]of Se)if(n===e)return ke.get(t)},getScope(e){let t=1===e.nodeType?e:e.parentElement;for(;t;){const e=ke.get(t);if(e)return e;t=t.parentElement}},on:(e,t)=>(Te[e].add(t),()=>Te[e].delete(t)),off(e,t){Te[e].delete(t)}};"undefined"==typeof window||Ae()||(window.__LITE_VUE__=Ie);var Ce,Me=[],Ve=(e,t)=>{for(const s of Me)try{s(e,t)}catch(n){}Me.length||console.error(e)},We=new WeakSet,ze=e=>{We.add(e),function(e){e.effect.stop()}(e)},Be=!1,De=[],Ke=Promise.resolve(),qe=-1,Fe=e=>Ke.then(e),Ue=e=>{De.includes(e,qe+1)||De.push(e),Be||(Be=!0,Fe(Je))},Je=()=>{const e=new Map;for(qe=0;qe<De.length;qe++){const n=De[qe];if(We.has(n))continue;const s=(e.get(n)||0)+1;if(e.set(n,s),s>100)Ve(Error("update loop"),{phase:"effect"});else try{n()}catch(t){Ve(t,{phase:"effect"})}}De.length=0,qe=-1,Be=!1,Te.flush.size&&!Ae()&&Ne("flush")},Ze=0,He=()=>{const e=Object.create(null);return(t="id")=>e[t]||(e[t]=`${t}-${++Ze}`)},Ge=e=>(t,n,s)=>{const r="function"==typeof t?t:()=>t.split(".").reduce((e,t)=>null==e?e:e[t],e.scope);let i,o=!1;const c=e.effect(()=>{const e=r(),t=i;if(i=e,o?e!==t:s?.immediate){K();try{n(e,t)}finally{q()}}o=!0});return()=>c.effect&&ze(c)},Qe=/^(spellcheck|draggable|form|list|type)$/,Xe=({el:e,get:t,effect:n,arg:s,modifiers:r})=>{let i;"class"===s&&(e._class=e.getAttribute("class")),n(()=>{let n=t();if(s)r?.camel&&(s=y(s)),Ye(e,s,n,i);else{for(const t in n)Ye(e,t,n[t],i&&i[t]);for(const t in i)n&&t in n||Ye(e,t,null)}i="[object Object]"===d(n)?{...n}:n})},Ye=(e,t,n,s)=>{if("class"===t)e.setAttribute("class",j(e._class?[e._class,n]:n)||"");else if("style"===t){n=k(n);const{style:t}=e;if(n)if(a(n))n!==s&&(t.cssText=n);else{for(const e in n)tt(t,e,n[e]);if(s&&!a(s))for(const e in s)null==n[e]&&tt(t,e,"")}else e.removeAttribute("style")}else e instanceof SVGElement||!(t in e)||Qe.test(t)?"true-value"===t?e._trueValue=n:"false-value"===t?e._falseValue=n:null!=n?e.setAttribute(t,n):e.removeAttribute(t):(e[t]=null==n&&"string"==typeof e[t]?"":n,null==n&&e.removeAttribute(t),"value"===t&&(e._value=n))},et=/\s*!important$/,tt=(e,t,n)=>{c(n)?n.forEach(n=>tt(e,t,n)):t.startsWith("--")?e.setProperty(t,n):et.test(n)?e.setProperty(b(t),n.replace(et,""),"important"):e[t]=n},nt=Object.create(null),st=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,rt=["ctrl","shift","alt","meta"],it={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>rt.some(n=>e[`${n}Key`]&&!t[n])},ot={esc:"escape",space:" ",up:"arrow-up",down:"arrow-down",left:"arrow-left",right:"arrow-right",delete:"backspace"},ct=/^(stop|prevent|self|ctrl|shift|alt|meta|left|middle|right|exact|once|capture|passive|window|document|outside|debounce(-\d+)?|throttle(-\d+)?|prop-.+|name-.+)$/,lt=({el:e,get:t,ctx:n,exp:s,arg:r,modifiers:i})=>{if(!r)return;const o=st.test(s)?t(`(e => ${s}(e))`):(e=>{const t=nt[e];if(void 0!==t)return t;try{return new Function(`return (${e})`),nt[e]=!0}catch{return nt[e]=!1}})(s)?t(`($event => (${s}))`):t(`($event => { ${s} })`);let c,l=(...e)=>{try{const t=o(...e);return t instanceof Promise&&t.catch(u),t}catch(t){u(t)}};function u(t){Ve(t,{phase:"handler",source:`@${r}`,expression:s,el:e,scope:n.scope})}if("mounted"===r||"vue:mounted"===r){let e=!0;return Fe(()=>{e&&l()}),()=>{e=!1}}if("unmounted"===r||"vue:unmounted"===r)return()=>l();if(i){"click"===r&&(i.right&&(r="contextmenu"),i.middle&&(r="mouseup"));let t=l;for(const e in i){let n=/^debounce(?:-(\d+))?$/.exec(e);if(n){const e=t,s=n[1]?+n[1]:250;t=t=>{clearTimeout(c),c=setTimeout(e,s,t)};continue}if(n=/^throttle(?:-(\d+))?$/.exec(e),n){const e=t,s=n[1]?+n[1]:250;let r=0;t=t=>{const n=Date.now();n-r>=s&&(r=n,e(t))}}}const n=Object.keys(i).filter(e=>!ct.test(e)||e in ot);l=s=>{if(!i.outside||!e.contains(s.target)){if("key"in s&&n.length){const e=b(s.key);if(!n.some(t=>t===e||ot[t]===e))return}for(const e in i){const t=it[e];if(t&&t(s,i))return;if(e.startsWith("prop-")&&"propertyName"in s&&s.propertyName!==e.slice(5))return;if(e.startsWith("name-")&&"animationName"in s&&s.animationName!==e.slice(5))return}return t(s)}}}const a=i?.window?window:i?.document||i?.outside?document:e,f=r;return a.addEventListener(f,l,i),()=>{clearTimeout(c),a.removeEventListener(f,l,i)}},ut=({el:e,get:t,effect:n})=>{n(()=>{e.textContent=at(t())})},at=e=>null==e?"":p(e)?JSON.stringify(e,null,2):String(e),ft=(e,t)=>{const n=e.getAttribute(t);return null!=n&&e.removeAttribute(t),n},pt=e=>"_value"in e?e._value:e.value,ht=(e,t)=>{const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t},dt=e=>{e.target.composing=!0},mt=e=>{const t=e.target;t.composing&&(t.composing=!1,vt(t,"input"))},vt=(e,t)=>{e.dispatchEvent(new Event(t,{bubbles:!0,cancelable:!0}))},gt=Object.create(null),yt=0,_t=e=>e.replace(/^return\(([^]*)\)$/,"$1"),bt=(e,t,n,s)=>wt(e,`return(${t})`,n,s),wt=(e,t,n,s)=>{let r=gt[t];r||(++yt>1e3&&(gt=Object.create(null),yt=1),r=gt[t]=xt(t,n,s));try{return r(e,n,n&&(e=>(t,n)=>e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0})))(n))}catch(i){Ve(i,{phase:"expression",expression:s?.expression??_t(t),source:s?.source,el:s?.el??n,scope:e})}},xt=(e,t,n)=>{try{return new Function("$data","$el","$dispatch",`with($data){${e}}`)}catch(s){return Ve(s,{phase:"compile",expression:n?.expression??_t(e),source:n?.source,el:n?.el??t}),()=>{}}},$t=new WeakMap,kt=e=>{const t=Ce;return Ce=e,t},Ot=(e,t=Ce)=>{if(!t)return;const n=$t.get(t);n?n.push(e):$t.set(t,[e])},St=e=>{const t=$t.get(e);if(t){$t.delete(e);for(const e of t)e()}let n=e.firstChild;for(;n;){const e=n.nextSibling;St(n),n=e}},Et={bind:Xe,on:lt,show:({el:e,get:t,effect:n})=>{const s=e.style.display;n(()=>{e.style.display=t()?s:"none"})},text:ut,html:({el:e,get:t,effect:n})=>{n(()=>{e.innerHTML=t()??""})},model:({el:e,exp:t,get:n,effect:s,modifiers:r})=>{const i=e.type,o=n(`(val) => { ${t} = val }`),{trim:l,number:u="number"===i,lazy:a,fill:f}=r||{},p=[],h=(t,n)=>p.push(((e,t,n,s)=>(e.addEventListener(t,n,s),()=>e.removeEventListener(t,n,s)))(e,t,n));if("SELECT"===e.tagName){const t=e;h("change",()=>{const e=Array.prototype.filter.call(t.options,e=>e.selected).map(e=>u?$(pt(e)):pt(e));o(t.multiple?e:e[0])}),s(()=>{const e=n(),s=t.multiple;for(let n=0,r=t.options.length;n<r;n++){const r=t.options[n],i=pt(r);if(s)r.selected=c(e)&&N(e,i)>-1;else if(T(pt(r),e))return void(t.selectedIndex!==n&&(t.selectedIndex=n))}s||-1===t.selectedIndex||(t.selectedIndex=-1)})}else if("checkbox"===i)h("change",()=>{const t=n(),s=e.checked;if(c(t)){const n=pt(e),r=N(t,n),i=-1!==r;if(s&&!i)o(t.concat(n));else if(!s&&i){const e=[...t];e.splice(r,1),o(e)}}else o(ht(e,s))}),s(()=>{const t=n();c(t)?e.checked=N(t,pt(e))>-1:e.checked=T(t,ht(e,!0))});else if("radio"===i)h("change",()=>{o(pt(e))}),s(()=>{e.checked=T(n(),pt(e))});else{const t=e=>(l&&(e=e.trim()),u?$(e):e);let i,c=o;for(const e in r||{}){const t=/^debounce(?:-(\d+))?$/.exec(e);if(t){const e=t[1]?+t[1]:250;c=t=>{clearTimeout(i),i=setTimeout(o,e,t)},p.push(()=>clearTimeout(i))}}if(h("compositionstart",dt),h("compositionend",mt),h(a?"change":"input",()=>{e.composing||c(t(e.value))}),l&&h("change",()=>{e.value=e.value.trim()}),f){const s=n();null!=s&&""!==s||!e.value||o(t(e.value))}s(()=>{if(e.composing)return;const s=e.value,r=n();document.activeElement===e&&t(s)===r||s!==r&&(e.value=r)})}return()=>p.forEach(e=>e())},effect:({el:e,ctx:t,exp:n,effect:s})=>{let r=!0;return Fe(()=>{if(!r)return;const i=kt(e);try{s(()=>wt(t.scope,n,e,{source:"v-effect",el:e}))}finally{kt(i)}}),()=>{r=!1}}},Lt=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,jt=/,([^,}\]]*)(?:,([^,}\]]*))?$/,At=/^\(|\)$/g,Tt=/^[{[]\s*((?:[\w_$]+\s*,?\s*)+)[\]}]$/,Nt=(e,t,n)=>{const s=t.match(Lt);if(!s)return;const r=e.nextSibling,i=new Text("");e.replaceWith(i);const o=()=>i.parentNode;kt(i);const l=s[2].trim();let u,a,f,h,d=s[1].trim().replace(At,"").trim(),m=!1,v="key",g=e.getAttribute(v)||e.getAttribute(v=":key")||e.getAttribute(v="v-bind:key");g&&(e.removeAttribute(v),"key"===v&&(g=JSON.stringify(g))),(h=d.match(jt))&&(d=d.replace(jt,"").trim(),a=h[1].trim(),h[2]&&(f=h[2].trim())),(h=d.match(Tt))&&(u=h[1].split(",").map(e=>e.trim()),m="["===d[0]);let y,_,b,w=!1;const x=(t,s,r,i)=>{const o={};u?u.forEach((e,t)=>o[e]=s[m?t:e]):o[d]=s,i?(a&&(o[a]=i),f&&(o[f]=r)):a&&(o[a]=r);const c=g?bt(Object.setPrototypeOf(o,n.scope),g,e,{source:":key",el:e}):r;return t.set(c,r),{data:o,key:c}},$=(t,s)=>{const r=new Yt(e,Qt(n,t.data));return r.key=t.key,r.insert(o(),s),r};return n.effect(()=>{const t=bt(n.scope,l,e,{source:"v-for",el:e}),s=b;if([_,b]=(e=>{const t=new Map,n=[];if(c(e))for(let s=0;s<e.length;s++)n.push(x(t,e[s],s));else if("number"==typeof e)for(let s=0;s<e;s++)n.push(x(t,s+1,s));else if(p(e)){let s=0;for(const r in e)n.push(x(t,e[r],s++,r))}return[n,t]})(t),w){for(let s=0;s<y.length;s++)b.has(y[s].key)||y[s].remove();const e=[];let t,n,r=_.length;for(;r--;){const c=_[r],l=s.get(c.key);let u;null==l?u=$(c,t?t.el:i):(u=y[l],Object.assign(u.ctx.scope,c.data),l!==r&&(y[l+1]===t&&n!==t||(n=u,u.insert(o(),t?t.el:i)))),e.unshift(t=u)}y=e}else y=_.map(e=>$(e,i)),w=!0}),r},Pt=({el:e,ctx:{scope:{$refs:t}},get:n,effect:s})=>{let r;return s(()=>{const s=n();t[s]=e,r&&s!==r&&delete t[r],r=s}),()=>{r&&delete t[r]}},Rt=["visible","idle","interaction"],It=["[v-scope]",...Rt.map(e=>`[v-scope\\.${e}]`)].join(","),Ct=["pointerdown","keydown","focusin"],Mt=(e,t,n,s)=>{const r=Rt.find(t=>e.hasAttribute(`v-scope.${t}`));if(!r)return!1;const i=`v-scope.${r}`,o=((e,t,n)=>{let s=!1;const r=()=>{s||(s=!0,i(),n())};let i=()=>{};if("visible"===t&&"function"==typeof IntersectionObserver){const t=new IntersectionObserver(e=>{e.some(e=>e.isIntersecting)&&r()});t.observe(e),i=()=>t.disconnect()}else if("interaction"!==t){const e=window.requestIdleCallback,t=e?e(r):setTimeout(r);i=()=>e?window.cancelIdleCallback(t):clearTimeout(t)}else{for(const t of Ct)e.addEventListener(t,r);i=()=>{for(const t of Ct)e.removeEventListener(t,r)}}return()=>{s=!0,i()}})(e,r,()=>{e.hasAttribute(i)&&(e.setAttribute("v-scope",e.getAttribute(i)),e.removeAttribute(i),n(e,t,s))});return t.cleanups.push(o),Ot(o),!0},Vt=/^(?:v-|:|@)/,Wt=/\.([\w-]+)/g,zt=!1,Bt=(e,t)=>{e.cleanups.push(t),Ot(()=>{const n=e.cleanups.indexOf(t);n>-1&&(e.cleanups.splice(n,1),t())})},Dt=(e,t,n)=>{const s=zt;zt=n;try{Kt(e,t)}finally{zt=s}},Kt=(e,t)=>{const n=kt(e);try{return qt(e,t)}finally{kt(n)}},qt=(e,t)=>{const n=e.nodeType;if(1===n){const n=e;if(n.hasAttribute("v-pre"))return;if(Mt(n,t,Dt,zt))return;let s;if(ft(n,"v-cloak"),null!=(s=ft(n,"v-if")))return((e,t,n)=>{const s=new Comment("v-if");e.before(s);const r=[{exp:t.trim()||"0",el:e}];let i,o;for(;(i=e.nextElementSibling)&&(o=null,""===ft(i,"v-else")||(o=ft(i,"v-else-if")));)i.remove(),r.push({exp:o,el:i});const c=e.nextSibling;let l;e.remove(),kt(s);let u=-1;const a=()=>{l&&(s.parentNode||l.el.before(s),l.remove(),l=void 0)};let f;const p=()=>ze(f);return f=n.effect(()=>{for(let e=0;e<r.length;e++){const{exp:t,el:i}=r[e];if(!t||bt(n.scope,t,i,{source:"v-if",el:i})){if(e!==u){a();const t=s.parentNode;l=new Yt(i,n),l.insert(t,s),Ot(p,l.el),l.el.parentNode===t&&s.remove(),u=e}return}}u=-1,a()}),Ot(p,s),c})(n,s,t);if(s=ft(n,"v-for"))return Nt(n,s,t);const r=ft(n,"v-name");let i;if(s=ft(n,"v-teleport")){const e=document.querySelector(s);e&&(i=n.nextSibling,n.__teleported=!0,e.appendChild(n),t.cleanups.push(()=>n.remove()))}if((s=ft(n,"v-scope"))||""===s){const e=(s?bt(t.scope,s,n,{source:"v-scope",el:n}):{})||{};t=Qt(t,e),n.__ctx=t,Bt(t,Re(n,t.scope,s||void 0,r||void 0)),e.$template&&Zt(n,e.$template)}const o=null!=ft(n,"v-once");o&&(zt=!0),(s=ft(n,"ref"))&&Jt(n,Pt,`"${s}"`,t),Ft(n,t);const c=[];for(const{name:e,value:l}of[...n.attributes])Vt.test(e)&&"v-cloak"!==e&&("v-model"===e||e.startsWith("v-model.")?c.unshift([e,l]):"@"===e[0]||/^v-on\b/.test(e)?c.push([e,l]):Ut(n,e,l,t));for(const[e,l]of c)Ut(n,e,l,t);return o&&(zt=!1),i}if(3===n){const n=e.data;if(n.includes(t.delimiters[0])){let s,r=[],i=0;for(;s=t.delimitersRE.exec(n);){const e=n.slice(i,s.index);e&&r.push(JSON.stringify(e)),r.push(`$s(${s[1]})`),i=s.index+s[0].length}i<n.length&&r.push(JSON.stringify(n.slice(i))),Jt(e,ut,r.join("+"),t,void 0,void 0,"{{ }}",n.trim())}}else 11===n&&Ft(e,t)},Ft=(e,t)=>{let n=e.firstChild;for(;n;)n=Kt(n,t)||n.nextSibling},Ut=(e,t,n,s)=>{let r,i,o;const c=t;if(":"===(t=t.replace(Wt,(e,t)=>((o||(o={}))[t]=!0,"")))[0])r=Xe,i=t.slice(1);else if("@"===t[0])r=lt,i=t.slice(1);else{const e=t.indexOf(":"),n=e>0?t.slice(2,e):t.slice(2);r=Et[n]||s.dirs[n],i=e>0?t.slice(e+1):void 0}r&&(r===Xe&&"ref"===i&&(r=Pt),Jt(e,r,n,s,i,o,c),e.removeAttribute(c))},Jt=(e,t,n,s,r,i,o,c)=>{const l={source:o,el:e,expression:c},u=(t=n)=>bt(s.scope,t,e,l);let a;try{a=t({el:e,get:u,effect:s.effect,ctx:s,exp:n,arg:r,modifiers:i})}catch(f){return void Ve(f,{phase:"directive",source:o,el:e,expression:n})}a&&Bt(s,a)},Zt=(e,t)=>{if("#"===t[0]){const n=document.querySelector(t);if(!n)return;return void e.appendChild(n.content.cloneNode(!0))}e.innerHTML=t},Ht=e=>{const t={delimiters:["{{","}}"],delimitersRE:/\{\{([^]+?)\}\}/g,...e,scope:e?e.scope:ge({}),dirs:e?e.dirs:{},effects:[],blocks:[],cleanups:[],effect:e=>{if(zt)return Ue(e),e;const n=W(e,{scheduler:()=>Ue(n)});return t.effects.push(n),Ot(()=>{ze(n),r(t.effects,n)}),n}};return t},Gt=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Qt=(e,t={})=>{const n=e.scope,s=Object.create(n);Object.defineProperties(s,Object.getOwnPropertyDescriptors(t)),Gt(s,"$refs",Object.create(n.$refs));const r=ge(new Proxy(s,{set:(e,t,s,i)=>i!==r||o(e,t)?Reflect.set(e,t,s,i):Reflect.set(n,t,s)})),i={...e,scope:r};return Gt(s,"$watch",Ge(i)),Gt(s,"$id",He()),Xt(r),i},Xt=e=>{for(const t of Object.keys(e)){const n=Object.getOwnPropertyDescriptor(e,t).value;"function"==typeof n&&(e[t]=n.bind(e))}},Yt=class{template;ctx;key;parentCtx;isFragment;start;end;owned=!1;get el(){return this.start||this.template}constructor(e,t,n=!1){this.isFragment=e instanceof HTMLTemplateElement,n?this.template=e:this.isFragment?this.template=e.content.cloneNode(!0):this.template=e.cloneNode(!0),n||(this.parentCtx=t,t.blocks.push(this)),this.ctx=Ht(t),Kt(this.template,this.ctx)}insert(e,t=null){if(this.isFragment)if(this.start){let n,s=this.start;for(;s&&(n=s.nextSibling,e.insertBefore(s,t),s!==this.end);)s=n}else this.start=new Text(""),this.end=new Text(""),e.insertBefore(this.end,t),e.insertBefore(this.start,this.end),e.insertBefore(this.template,this.end);else this.template.__teleported||e.insertBefore(this.template,t);this.owned||(this.owned=!0,Ot(()=>this.discard(),this.el))}remove(){this.parentCtx&&r(this.parentCtx.blocks,this);const e=()=>{const e=this.start?this.start.parentNode:this.template.parentNode;if(e)if(this.start){let t,n=this.start;for(;n&&(t=n.nextSibling,e.removeChild(n),n!==this.end);)n=t}else e.removeChild(this.template);this.teardown()},t=[];let n=this.start||this.template;for(;n;){const e=n.__leave;if(e&&t.push(e()),!this.start||n===this.end)break;n=n.nextSibling}t.length?Promise.all(t).then(e):e()}discard(){this.parentCtx&&r(this.parentCtx.blocks,this),this.teardown()}teardown(){this.ctx.blocks.splice(0).forEach(e=>{e.teardown()}),this.ctx.effects.splice(0).forEach(ze),this.ctx.cleanups.splice(0).forEach(e=>e())}},en=ge(Object.create(null)),tn=e=>e.replace(/[-.*+?^${}()|[\]/\\]/g,"\\$&"),nn=e=>{const t=Ht();if("function"==typeof e&&(e=e()),e&&(t.scope=ge(e),Xt(t.scope),e.$delimiters)){const[n,s]=t.delimiters=e.$delimiters;t.delimitersRE=new RegExp(tn(n)+"([^]+?)"+tn(s),"g")}t.scope.$s=at,t.scope.$nextTick=Fe,t.scope.$refs=Object.create(null),t.scope.$store=en,t.scope.$watch=Ge(t),t.scope.$id=He(),Object.defineProperty(t.scope,"$root",{value:t.scope,enumerable:!1});const n=Object.create(null);let s=[];const r=new Set,i=[],o=[],c={get scope(){return t.scope},directive(e,n){return n?(t.dirs[e]=n,this):t.dirs[e]},component(e,s){return s?(!(e in n)&&e in t.scope||(n[e]=s,(e=>{Ae()||Le.add(e)})(e),t.scope[e]=s),this):n[e]},onError(e){const t=(n=e,Me.push(n),()=>{const e=Me.indexOf(n);e>-1&&Me.splice(e,1)});var n;return o.push(t),()=>{const e=o.indexOf(t);e>-1&&o.splice(e,1),t()}},use(e,t){if(!r.has(e)){r.add(e);const n=("function"==typeof e?e:e.install)(c,t);"function"==typeof n&&i.push(n)}return c},mount(e){if("string"==typeof e){const t=document.querySelector(e);if(!t)return;e=t}let n;n=(e=e||document.documentElement).matches(It)?[e]:[...e.querySelectorAll(It)].filter(e=>!e.matches(`:where(${It}) *`)),n.length||(n=[e]),t.walk??=Kt,t.dispose??=St;for(const r of n){const e=r.getAttribute("v-name"),n=new Yt(r,t,!0);r.__ctx??=n.ctx,Ie.scopes.has(r)||r.matches(It)||n.ctx.cleanups.push(Re(r,n.ctx.scope,void 0,e||void 0)),s.push(n)}return this},unmount(e){if(null==e)return s.forEach(e=>e.teardown()),s=[],i.splice(0).forEach(e=>{try{e()}catch(t){Ve(t,{phase:"teardown",source:"plugin"})}}),r.clear(),void o.splice(0).forEach(e=>e());const t="string"==typeof e?document.querySelector(e):e;if(!t)return;const n=[];for(const r of s){const e=r.template;t.contains(e)?r.teardown():n.push(r)}s=n}};return c},sn=document.currentScript;return sn&&sn.hasAttribute("init")&&nn().mount(),e.computed=function(e,t,s=!1){let r,i;const o="function"==typeof e;return o?(r=e,i=n):(r=e.get,i=e.set),new we(r,i,o||!i,s)},e.createApp=nn,e.devtools=Ie,e.disableDevtools=()=>{je=!0,ke.clear(),Oe.clear(),Se.clear(),Ee.clear(),Le.clear();for(const e in Te)Te[e].clear();"undefined"!=typeof window&&window.__LITE_VUE__===Ie&&delete window.__LITE_VUE__},e.nextTick=Fe,e.reactive=ge,e.store=(e,t)=>(void 0!==t&&(en[e]=t,"function"==typeof en[e].init&&en[e].init(),((e,t)=>{Ae()||(Ee.set(e,t),Ne("store:register",e,t))})(e,en[e])),en[e]),e.watchEffect=e=>{let t;return t=W(e,{scheduler:()=>Ue(t)}),()=>ze(t)},e}({});
|
|
1
|
+
var LiteVue=function(e){function t(e,t){const n=new Set(e.split(","));return t?e=>n.has(e.toLowerCase()):e=>n.has(e)}Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});var n=()=>{},s=Object.assign,r=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},i=Object.prototype.hasOwnProperty,o=(e,t)=>i.call(e,t),c=Array.isArray,l=e=>"[object Map]"===d(e),u=e=>"[object Date]"===d(e),a=e=>"string"==typeof e,f=e=>"symbol"==typeof e,p=e=>null!==e&&"object"==typeof e,h=Object.prototype.toString,d=e=>h.call(e),m=e=>a(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,v=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},g=/-(\w)/g,y=v(e=>e.replace(g,(e,t)=>t?t.toUpperCase():"")),_=/\B([A-Z])/g,b=v(e=>e.replace(_,"-$1").toLowerCase()),w=v(e=>e.charAt(0).toUpperCase()+e.slice(1)),x=(v(e=>e?`on${w(e)}`:""),(e,t)=>!Object.is(e,t)),$=e=>{const t=a(e)?Number(e):NaN;return isNaN(t)?e:t};function S(e){if(c(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=a(s)?L(s):S(s);if(r)for(const e in r)t[e]=r[e]}return t}if(a(e)||p(e))return e}var k=/;(?![^(]*\))/g,O=/:([^]+)/,E=/\/\*[^]*?\*\//g;function L(e){const t={};return e.replace(E,"").split(k).forEach(e=>{if(e){const n=e.split(O);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function j(e){let t="";if(a(e))t=e;else if(c(e))for(let n=0;n<e.length;n++){const s=j(e[n]);s&&(t+=s+" ")}else if(p(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}var A;function T(e,t){if(e===t)return!0;let n=u(e),s=u(t);if(n||s)return!(!n||!s)&&e.getTime()===t.getTime();if(n=f(e),s=f(t),n||s)return e===t;if(n=c(e),s=c(t),n||s)return!(!n||!s)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=T(e[s],t[s]);return n}(e,t);if(n=p(e),s=p(t),n||s){if(!n||!s)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){const s=e.hasOwnProperty(n),r=t.hasOwnProperty(n);if(s&&!r||!s&&r||!T(e[n],t[n]))return!1}}return String(e)===String(t)}function N(e,t){return e.findIndex(e=>T(e,t))}function P(e,t=void 0){t&&t.active&&t.effects.push(e)}var R=class{constructor(e,t,n,s){this.fn=e,this.trigger=t,this.scheduler=n,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,P(this,s)}get dirty(){if(2===this._dirtyLevel||3===this._dirtyLevel){this._dirtyLevel=1,K();for(let e=0;e<this._depsLength;e++){const t=this.deps[e];if(t.computed&&(I(t.computed),this._dirtyLevel>=4))break}1===this._dirtyLevel&&(this._dirtyLevel=0),q()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=z,t=A;try{return z=!0,A=this,this._runnings++,C(this),this.fn()}finally{M(this),this._runnings--,A=t,z=e}}stop(){this.active&&(C(this),M(this),this.onStop&&this.onStop(),this.active=!1)}};function I(e){return e.value}function C(e){e._trackId++,e._depsLength=0}function M(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)V(e.deps[t],e);e.deps.length=e._depsLength}}function V(e,t){const n=e.get(t);void 0!==n&&t._trackId!==n&&(e.delete(t),0===e.size&&e.cleanup())}function W(e,t){e.effect instanceof R&&(e=e.effect.fn);const r=new R(e,n,()=>{r.dirty&&r.run()});t&&(s(r,t),t.scope&&P(r,t.scope)),t&&t.lazy||r.run();const i=r.run.bind(r);return i.effect=r,i}var z=!0,B=0,D=[];function K(){D.push(z),z=!1}function q(){const e=D.pop();z=void 0===e||e}function F(){B++}function U(){for(B--;!B&&Z.length;)Z.shift()()}function J(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const n=e.deps[e._depsLength];n!==t?(n&&V(n,e),e.deps[e._depsLength++]=t):e._depsLength++}}var Z=[];function H(e,t,n){F();for(const s of e.keys()){let n;s._dirtyLevel<t&&(null!=n?n:n=e.get(s)===s._trackId)&&(s._shouldSchedule||(s._shouldSchedule=0===s._dirtyLevel),s._dirtyLevel=t),s._shouldSchedule&&(null!=n?n:n=e.get(s)===s._trackId)&&(s.trigger(),s._runnings&&!s.allowRecurse||2===s._dirtyLevel||(s._shouldSchedule=!1,s.scheduler&&Z.push(s.scheduler)))}U()}var G=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},Q=new WeakMap,X=Symbol(""),Y=Symbol("");function ee(e,t,n){if(z&&A){let t=Q.get(e);t||Q.set(e,t=new Map);let s=t.get(n);s||t.set(n,s=G(()=>t.delete(n))),J(A,s)}}function te(e,t,n,s,r,i){const o=Q.get(e);if(!o)return;let u=[];if("clear"===t)u=[...o.values()];else if("length"===n&&c(e)){const e=Number(s);o.forEach((t,n)=>{("length"===n||!f(n)&&n>=e)&&u.push(t)})}else switch(void 0!==n&&u.push(o.get(n)),t){case"add":c(e)?m(n)&&u.push(o.get("length")):(u.push(o.get(X)),l(e)&&u.push(o.get(Y)));break;case"delete":c(e)||(u.push(o.get(X)),l(e)&&u.push(o.get(Y)));break;case"set":l(e)&&u.push(o.get(X))}F();for(const c of u)c&&H(c,4);U()}var ne=t("__proto__,__v_isRef,__isVue"),se=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(f)),re=ie();function ie(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...e){const n=be(this);for(let t=0,r=this.length;t<r;t++)ee(n,0,t+"");const s=n[t](...e);return-1===s||!1===s?n[t](...e.map(be)):s}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...e){K(),F();const n=be(this)[t].apply(this,e);return U(),q(),n}}),e}function oe(e){f(e)||(e=String(e));const t=be(this);return ee(t,0,e),t.hasOwnProperty(e)}var ce=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){const s=this._isReadonly,r=this._isShallow;if("__v_isReactive"===t)return!s;if("__v_isReadonly"===t)return s;if("__v_isShallow"===t)return r;if("__v_raw"===t)return n===(s?r?me:de:r?he:pe).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const i=c(e);if(!s){if(i&&o(re,t))return Reflect.get(re,t,n);if("hasOwnProperty"===t)return oe}const l=Reflect.get(e,t,n);return(f(t)?se.has(t):ne(t))?l:(s||ee(e,0,t),r?l:$e(l)?i&&m(t)?l:l.value:p(l)?s?function(e){return ye(e,!0,fe,null,de)}(l):ge(l):l)}},le=class extends ce{constructor(e=!1){super(!1,e)}set(e,t,n,s){let r=e[t];if(!this._isShallow){const t=_e(r);if(function(e){return!(!e||!e.__v_isShallow)}(n)||_e(n)||(r=be(r),n=be(n)),!c(e)&&$e(r)&&!$e(n))return!t&&(r.value=n,!0)}const i=c(e)&&m(t)?Number(t)<e.length:o(e,t),l=Reflect.set(e,t,n,s);return e===be(s)&&(i?x(n,r)&&te(e,"set",t,n):te(e,"add",t,n)),l}deleteProperty(e,t){const n=o(e,t),s=(e[t],Reflect.deleteProperty(e,t));return s&&n&&te(e,"delete",t,void 0),s}has(e,t){const n=Reflect.has(e,t);return f(t)&&se.has(t)||ee(e,0,t),n}ownKeys(e){return ee(e,0,c(e)?"length":X),Reflect.ownKeys(e)}},ue=class extends ce{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}},ae=new le,fe=new ue,pe=new WeakMap,he=new WeakMap,de=new WeakMap,me=new WeakMap;function ve(e){return e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;default:return 0}}((e=>d(e).slice(8,-1))(e))}function ge(e){return _e(e)?e:ye(e,!1,ae,null,pe)}function ye(e,t,n,s,r){if(!p(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const o=ve(e);if(0===o)return e;const c=new Proxy(e,2===o?s:n);return r.set(e,c),c}function _e(e){return!(!e||!e.__v_isReadonly)}function be(e){const t=e&&e.__v_raw;return t?be(t):e}var we=class{constructor(e,t,n,s){this.getter=e,this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new R(()=>e(this._value),()=>xe(this,2===this.effect._dirtyLevel?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=n}get value(){const e=be(this);var t,n;return e._cacheable&&!e.effect.dirty||!x(e._value,e._value=e.effect.run())||xe(e,4),t=e,z&&A&&(t=be(t),J(A,null!=(n=t.dep)?n:t.dep=G(()=>t.dep=void 0,t instanceof we?t:void 0))),e.effect._dirtyLevel>=2&&xe(e,2),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}};function xe(e,t=4,n,s){const r=(e=be(e)).dep;r&&H(r,t)}function $e(e){return!(!e||!0!==e.__v_isRef)}var Se=new Map,ke=new Map,Oe=new Map,Ee=new Map,Le=new Set,je=[],Ae=!1,Te=()=>Ae||"undefined"!=typeof window&&!1===window.__LITE_VUE_DEVTOOLS__,Ne={"scope:mount":new Set,"scope:unmount":new Set,"store:register":new Set,"plugin:install":new Set,flush:new Set},Pe=(e,...t)=>{Ne[e].forEach(e=>e(...t))},Re=()=>{},Ie=(e,t,n,s)=>Te()?Re:(Se.set(e,t),n&&ke.set(e,n),s&&Oe.set(e,s),Pe("scope:mount",e,t),()=>{Se.delete(e)&&(ke.delete(e),Oe.delete(e),Pe("scope:unmount",e))}),Ce={scopes:Se,exps:ke,names:Oe,stores:Ee,components:Le,plugins:je,getScopeByName(e){for(const[t,n]of Oe)if(n===e)return Se.get(t)},getScope(e){let t=1===e.nodeType?e:e.parentElement;for(;t;){const e=Se.get(t);if(e)return e;t=t.parentElement}},on:(e,t)=>(Ne[e].add(t),()=>Ne[e].delete(t)),off(e,t){Ne[e].delete(t)}};"undefined"==typeof window||Te()||(window.__LITE_VUE__=Ce);var Me,Ve=[],We=(e,t)=>{for(const s of Ve)try{s(e,t)}catch(n){}Ve.length||console.error(e)},ze=new WeakSet,Be=e=>{ze.add(e),function(e){e.effect.stop()}(e)},De=!1,Ke=[],qe=Promise.resolve(),Fe=-1,Ue=e=>qe.then(e),Je=e=>{Ke.includes(e,Fe+1)||Ke.push(e),De||(De=!0,Ue(Ze))},Ze=()=>{const e=new Map;for(Fe=0;Fe<Ke.length;Fe++){const n=Ke[Fe];if(ze.has(n))continue;const s=(e.get(n)||0)+1;if(e.set(n,s),s>100)We(Error("update loop"),{phase:"effect"});else try{n()}catch(t){We(t,{phase:"effect"})}}Ke.length=0,Fe=-1,De=!1,Ne.flush.size&&!Te()&&Pe("flush")},He=0,Ge=()=>{const e=Object.create(null);return(t="id")=>e[t]||(e[t]=`${t}-${++He}`)},Qe=e=>(t,n,s)=>{const r="function"==typeof t?t:()=>t.split(".").reduce((e,t)=>null==e?e:e[t],e.scope);let i,o=!1;const c=e.effect(()=>{const e=r(),t=i;if(i=e,o?e!==t:s?.immediate){K();try{n(e,t)}finally{q()}}o=!0});return()=>c.effect&&Be(c)},Xe=/^(spellcheck|draggable|form|list|type)$/,Ye=({el:e,get:t,effect:n,arg:s,modifiers:r})=>{let i;"class"===s&&(e._class=e.getAttribute("class")),n(()=>{let n=t();if(s)r?.camel&&(s=y(s)),et(e,s,n,i);else{for(const t in n)et(e,t,n[t],i&&i[t]);for(const t in i)n&&t in n||et(e,t,null)}i="[object Object]"===d(n)?{...n}:n})},et=(e,t,n,s)=>{if("class"===t)e.setAttribute("class",j(e._class?[e._class,n]:n)||"");else if("style"===t){n=S(n);const{style:t}=e;if(n)if(a(n))n!==s&&(t.cssText=n);else{for(const e in n)nt(t,e,n[e]);if(s&&!a(s))for(const e in s)null==n[e]&&nt(t,e,"")}else e.removeAttribute("style")}else e instanceof SVGElement||!(t in e)||Xe.test(t)?"true-value"===t?e._trueValue=n:"false-value"===t?e._falseValue=n:null!=n?e.setAttribute(t,n):e.removeAttribute(t):(e[t]=null==n&&"string"==typeof e[t]?"":n,null==n&&e.removeAttribute(t),"value"===t&&(e._value=n))},tt=/\s*!important$/,nt=(e,t,n)=>{c(n)?n.forEach(n=>nt(e,t,n)):t.startsWith("--")?e.setProperty(t,n):tt.test(n)?e.setProperty(b(t),n.replace(tt,""),"important"):e[t]=n},st=Object.create(null),rt=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,it=["ctrl","shift","alt","meta"],ot={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>it.some(n=>e[`${n}Key`]&&!t[n])},ct={esc:"escape",space:" ",up:"arrow-up",down:"arrow-down",left:"arrow-left",right:"arrow-right",delete:"backspace"},lt=/^(stop|prevent|self|ctrl|shift|alt|meta|left|middle|right|exact|once|capture|passive|window|document|outside|debounce(-\d+)?|throttle(-\d+)?|prop-.+|name-.+)$/,ut=({el:e,get:t,ctx:n,exp:s,arg:r,modifiers:i})=>{if(!r)return;const o=/\bawait\b/.test(s)?"async ":"",c=rt.test(s)?t(`(e => ${s}(e))`):(e=>{const t=st[e];if(void 0!==t)return t;try{return new Function(`return (${e})`),st[e]=!0}catch{return st[e]=!1}})(s)?t(`(${o}$event => (${s}))`):t(`(${o}$event => { ${s} })`);let l,u=(...e)=>{try{const t=c(...e);return t instanceof Promise&&t.catch(a),t}catch(t){a(t)}};function a(t){We(t,{phase:"handler",source:`@${r}`,expression:s,el:e,scope:n.scope})}if("mounted"===r||"vue:mounted"===r){let e=!0;return Ue(()=>{e&&u()}),()=>{e=!1}}if("unmounted"===r||"vue:unmounted"===r)return()=>u();if(i){"click"===r&&(i.right&&(r="contextmenu"),i.middle&&(r="mouseup"));let t=u;for(const e in i){let n=/^debounce(?:-(\d+))?$/.exec(e);if(n){const e=t,s=n[1]?+n[1]:250;t=t=>{clearTimeout(l),l=setTimeout(e,s,t)};continue}if(n=/^throttle(?:-(\d+))?$/.exec(e),n){const e=t,s=n[1]?+n[1]:250;let r=0;t=t=>{const n=Date.now();n-r>=s&&(r=n,e(t))}}}const n=Object.keys(i).filter(e=>!lt.test(e)||e in ct);u=s=>{if(!i.outside||!e.contains(s.target)){if("key"in s&&n.length){const e=b(s.key);if(!n.some(t=>t===e||ct[t]===e))return}for(const e in i){const t=ot[e];if(t&&t(s,i))return;if(e.startsWith("prop-")&&"propertyName"in s&&s.propertyName!==e.slice(5))return;if(e.startsWith("name-")&&"animationName"in s&&s.animationName!==e.slice(5))return}return t(s)}}}const f=i?.window?window:i?.document||i?.outside?document:e,p=r;return f.addEventListener(p,u,i),()=>{clearTimeout(l),f.removeEventListener(p,u,i)}},at=({el:e,get:t,effect:n})=>{n(()=>{e.textContent=ft(t())})},ft=e=>null==e?"":p(e)?JSON.stringify(e,null,2):String(e),pt=(e,t)=>{const n=e.getAttribute(t);return null!=n&&e.removeAttribute(t),n},ht=e=>"_value"in e?e._value:e.value,dt=(e,t)=>{const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t},mt=e=>{e.target.composing=!0},vt=e=>{const t=e.target;t.composing&&(t.composing=!1,gt(t,"input"))},gt=(e,t)=>{e.dispatchEvent(new Event(t,{bubbles:!0,cancelable:!0}))},yt=Object.create(null),_t=0,bt=e=>e.replace(/^return\(([^]*)\)$/,"$1"),wt=(e,t,n,s)=>xt(e,`return(${t})`,n,s),xt=(e,t,n,s)=>{let r=yt[t];r||(++_t>1e3&&(yt=Object.create(null),_t=1),r=yt[t]=$t(t,n,s));try{return r(e,n,n&&(e=>(t,n)=>e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0})))(n))}catch(i){We(i,{phase:"expression",expression:s?.expression??bt(t),source:s?.source,el:s?.el??n,scope:e})}},$t=(e,t,n)=>{try{return new Function("$data","$el","$dispatch",`with($data){${e}}`)}catch(s){return We(s,{phase:"compile",expression:n?.expression??bt(e),source:n?.source,el:n?.el??t}),()=>{}}},St=new WeakMap,kt=e=>{const t=Me;return Me=e,t},Ot=(e,t=Me)=>{if(!t)return;const n=St.get(t);n?n.push(e):St.set(t,[e])},Et=e=>{const t=St.get(e);if(t){St.delete(e);for(const e of t)e()}let n=e.firstChild;for(;n;){const e=n.nextSibling;Et(n),n=e}},Lt={bind:Ye,on:ut,show:({el:e,get:t,effect:n})=>{const s=e.style.display;n(()=>{e.style.display=t()?s:"none"})},text:at,html:({el:e,get:t,effect:n})=>{n(()=>{e.innerHTML=t()??""})},model:({el:e,exp:t,get:n,effect:s,modifiers:r})=>{const i=e.type,o=n(`(val) => { ${t} = val }`),{trim:l,number:u="number"===i,lazy:a,fill:f}=r||{},p=[],h=(t,n)=>p.push(((e,t,n,s)=>(e.addEventListener(t,n,s),()=>e.removeEventListener(t,n,s)))(e,t,n));if("SELECT"===e.tagName){const t=e;h("change",()=>{const e=Array.prototype.filter.call(t.options,e=>e.selected).map(e=>u?$(ht(e)):ht(e));o(t.multiple?e:e[0])}),s(()=>{const e=n(),s=t.multiple;for(let n=0,r=t.options.length;n<r;n++){const r=t.options[n],i=ht(r);if(s)r.selected=c(e)&&N(e,i)>-1;else if(T(ht(r),e))return void(t.selectedIndex!==n&&(t.selectedIndex=n))}s||-1===t.selectedIndex||(t.selectedIndex=-1)})}else if("checkbox"===i)h("change",()=>{const t=n(),s=e.checked;if(c(t)){const n=ht(e),r=N(t,n),i=-1!==r;if(s&&!i)o(t.concat(n));else if(!s&&i){const e=[...t];e.splice(r,1),o(e)}}else o(dt(e,s))}),s(()=>{const t=n();c(t)?e.checked=N(t,ht(e))>-1:e.checked=T(t,dt(e,!0))});else if("radio"===i)h("change",()=>{o(ht(e))}),s(()=>{e.checked=T(n(),ht(e))});else{const t=e=>(l&&(e=e.trim()),u?$(e):e);let i,c=o;for(const e in r||{}){const t=/^debounce(?:-(\d+))?$/.exec(e);if(t){const e=t[1]?+t[1]:250;c=t=>{clearTimeout(i),i=setTimeout(o,e,t)},p.push(()=>clearTimeout(i))}}if(h("compositionstart",mt),h("compositionend",vt),h(a?"change":"input",()=>{e.composing||c(t(e.value))}),l&&h("change",()=>{e.value=e.value.trim()}),f){const s=n();null!=s&&""!==s||!e.value||o(t(e.value))}s(()=>{if(e.composing)return;const s=e.value,r=n();document.activeElement===e&&t(s)===r||s!==r&&(e.value=r)})}return()=>p.forEach(e=>e())},effect:({el:e,ctx:t,exp:n,effect:s})=>{let r=!0;return Ue(()=>{if(!r)return;const i=kt(e);try{s(()=>xt(t.scope,n,e,{source:"v-effect",el:e}))}finally{kt(i)}}),()=>{r=!1}}},jt=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,At=/,([^,}\]]*)(?:,([^,}\]]*))?$/,Tt=/^\(|\)$/g,Nt=/^[{[]\s*((?:[\w_$]+\s*,?\s*)+)[\]}]$/,Pt=(e,t,n)=>{const s=t.match(jt);if(!s)return;const r=e.nextSibling,i=new Text("");e.replaceWith(i);const o=()=>i.parentNode;kt(i);const l=s[2].trim();let u,a,f,h,d=s[1].trim().replace(Tt,"").trim(),m=!1,v="key",g=e.getAttribute(v)||e.getAttribute(v=":key")||e.getAttribute(v="v-bind:key");g&&(e.removeAttribute(v),"key"===v&&(g=JSON.stringify(g))),(h=d.match(At))&&(d=d.replace(At,"").trim(),a=h[1].trim(),h[2]&&(f=h[2].trim())),(h=d.match(Nt))&&(u=h[1].split(",").map(e=>e.trim()),m="["===d[0]);let y,_,b,w=!1;const x=(t,s,r,i)=>{const o={};u?u.forEach((e,t)=>o[e]=s[m?t:e]):o[d]=s,i?(a&&(o[a]=i),f&&(o[f]=r)):a&&(o[a]=r);const c=g?wt(Object.setPrototypeOf(o,n.scope),g,e,{source:":key",el:e}):r;return t.set(c,r),{data:o,key:c}},$=(t,s)=>{const r=new en(e,Xt(n,t.data));return r.key=t.key,r.insert(o(),s),r};return n.effect(()=>{const t=wt(n.scope,l,e,{source:"v-for",el:e}),s=b;if([_,b]=(e=>{const t=new Map,n=[];if(c(e))for(let s=0;s<e.length;s++)n.push(x(t,e[s],s));else if("number"==typeof e)for(let s=0;s<e;s++)n.push(x(t,s+1,s));else if(p(e)){let s=0;for(const r in e)n.push(x(t,e[r],s++,r))}return[n,t]})(t),w){for(let s=0;s<y.length;s++)b.has(y[s].key)||y[s].remove();const e=[];let t,n,r=_.length;for(;r--;){const c=_[r],l=s.get(c.key);let u;null==l?u=$(c,t?t.el:i):(u=y[l],Object.assign(u.ctx.scope,c.data),l!==r&&(y[l+1]===t&&n!==t||(n=u,u.insert(o(),t?t.el:i)))),e.unshift(t=u)}y=e}else y=_.map(e=>$(e,i)),w=!0}),r},Rt=({el:e,ctx:{scope:{$refs:t}},get:n,effect:s})=>{let r;return s(()=>{const s=n();t[s]=e,r&&s!==r&&delete t[r],r=s}),()=>{r&&delete t[r]}},It=["visible","idle","interaction"],Ct=["[v-scope]",...It.map(e=>`[v-scope\\.${e}]`)].join(","),Mt=["pointerdown","keydown","focusin"],Vt=(e,t,n,s)=>{const r=It.find(t=>e.hasAttribute(`v-scope.${t}`));if(!r)return!1;const i=`v-scope.${r}`,o=((e,t,n)=>{let s=!1;const r=()=>{s||(s=!0,i(),n())};let i=()=>{};if("visible"===t&&"function"==typeof IntersectionObserver){const t=new IntersectionObserver(e=>{e.some(e=>e.isIntersecting)&&r()});t.observe(e),i=()=>t.disconnect()}else if("interaction"!==t){const e=window.requestIdleCallback,t=e?e(r):setTimeout(r);i=()=>e?window.cancelIdleCallback(t):clearTimeout(t)}else{for(const t of Mt)e.addEventListener(t,r);i=()=>{for(const t of Mt)e.removeEventListener(t,r)}}return()=>{s=!0,i()}})(e,r,()=>{e.hasAttribute(i)&&(e.setAttribute("v-scope",e.getAttribute(i)),e.removeAttribute(i),n(e,t,s))});return t.cleanups.push(o),Ot(o),!0},Wt=/^(?:v-|:|@)/,zt=/\.([\w-]+)/g,Bt=!1,Dt=(e,t)=>{e.cleanups.push(t),Ot(()=>{const n=e.cleanups.indexOf(t);n>-1&&(e.cleanups.splice(n,1),t())})},Kt=(e,t,n)=>{const s=Bt;Bt=n;try{qt(e,t)}finally{Bt=s}},qt=(e,t)=>{const n=kt(e);try{return Ft(e,t)}finally{kt(n)}},Ft=(e,t)=>{const n=e.nodeType;if(1===n){const n=e;if(n.hasAttribute("v-pre"))return;if(Vt(n,t,Kt,Bt))return;let s;if(pt(n,"v-cloak"),null!=(s=pt(n,"v-if")))return((e,t,n)=>{const s=new Comment("v-if");e.before(s);const r=[{exp:t.trim()||"0",el:e}];let i,o;for(;(i=e.nextElementSibling)&&(o=null,""===pt(i,"v-else")||(o=pt(i,"v-else-if")));)i.remove(),r.push({exp:o,el:i});const c=e.nextSibling;let l;e.remove(),kt(s);let u=-1;const a=()=>{l&&(s.parentNode||l.el.before(s),l.remove(),l=void 0)};let f;const p=()=>Be(f);return f=n.effect(()=>{for(let e=0;e<r.length;e++){const{exp:t,el:i}=r[e];if(!t||wt(n.scope,t,i,{source:"v-if",el:i})){if(e!==u){a();const t=s.parentNode;l=new en(i,n),l.insert(t,s),Ot(p,l.el),l.el.parentNode===t&&s.remove(),u=e}return}}u=-1,a()}),Ot(p,s),c})(n,s,t);if(s=pt(n,"v-for"))return Pt(n,s,t);const r=pt(n,"v-name");let i;if(s=pt(n,"v-teleport")){const e=document.querySelector(s);e&&(i=n.nextSibling,n.__teleported=!0,e.appendChild(n),t.cleanups.push(()=>n.remove()))}if((s=pt(n,"v-scope"))||""===s){const e=(s?wt(t.scope,s,n,{source:"v-scope",el:n}):{})||{};t=Xt(t,e),n.__ctx=t,Dt(t,Ie(n,t.scope,s||void 0,r||void 0)),e.$template&&Ht(n,e.$template)}const o=null!=pt(n,"v-once");o&&(Bt=!0),(s=pt(n,"ref"))&&Zt(n,Rt,`"${s}"`,t),Ut(n,t);const c=[];for(const{name:e,value:l}of[...n.attributes])Wt.test(e)&&"v-cloak"!==e&&("v-model"===e||e.startsWith("v-model.")?c.unshift([e,l]):"@"===e[0]||/^v-on\b/.test(e)?c.push([e,l]):Jt(n,e,l,t));for(const[e,l]of c)Jt(n,e,l,t);return o&&(Bt=!1),i}if(3===n){const n=e.data;if(n.includes(t.delimiters[0])){let s,r=[],i=0;for(;s=t.delimitersRE.exec(n);){const e=n.slice(i,s.index);e&&r.push(JSON.stringify(e)),r.push(`$s(${s[1]})`),i=s.index+s[0].length}i<n.length&&r.push(JSON.stringify(n.slice(i))),Zt(e,at,r.join("+"),t,void 0,void 0,"{{ }}",n.trim())}}else 11===n&&Ut(e,t)},Ut=(e,t)=>{let n=e.firstChild;for(;n;)n=qt(n,t)||n.nextSibling},Jt=(e,t,n,s)=>{let r,i,o;const c=t;if(":"===(t=t.replace(zt,(e,t)=>((o||(o={}))[t]=!0,"")))[0])r=Ye,i=t.slice(1);else if("@"===t[0])r=ut,i=t.slice(1);else{const e=t.indexOf(":"),n=e>0?t.slice(2,e):t.slice(2);r=Lt[n]||s.dirs[n],i=e>0?t.slice(e+1):void 0}r&&(r===Ye&&"ref"===i&&(r=Rt),Zt(e,r,n,s,i,o,c),e.removeAttribute(c))},Zt=(e,t,n,s,r,i,o,c)=>{const l={source:o,el:e,expression:c},u=(t=n)=>wt(s.scope,t,e,l);let a;try{a=t({el:e,get:u,effect:s.effect,ctx:s,exp:n,arg:r,modifiers:i})}catch(f){return void We(f,{phase:"directive",source:o,el:e,expression:n})}a&&Dt(s,a)},Ht=(e,t)=>{if("#"===t[0]){const n=document.querySelector(t);if(!n)return;return void e.appendChild(n.content.cloneNode(!0))}e.innerHTML=t},Gt=e=>{const t={delimiters:["{{","}}"],delimitersRE:/\{\{([^]+?)\}\}/g,...e,scope:e?e.scope:ge({}),dirs:e?e.dirs:{},effects:[],blocks:[],cleanups:[],effect:e=>{if(Bt)return Je(e),e;const n=W(e,{scheduler:()=>Je(n)});return t.effects.push(n),Ot(()=>{Be(n),r(t.effects,n)}),n}};return t},Qt=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Xt=(e,t={})=>{const n=e.scope,s=Object.create(n);Object.defineProperties(s,Object.getOwnPropertyDescriptors(t)),Qt(s,"$refs",Object.create(n.$refs));const r=ge(new Proxy(s,{set:(e,t,s,i)=>i!==r||o(e,t)?Reflect.set(e,t,s,i):Reflect.set(n,t,s)})),i={...e,scope:r};return Qt(s,"$watch",Qe(i)),Qt(s,"$id",Ge()),Yt(r),i},Yt=e=>{for(const t of Object.keys(e)){const n=Object.getOwnPropertyDescriptor(e,t).value;"function"==typeof n&&(e[t]=n.bind(e))}},en=class{template;ctx;key;parentCtx;isFragment;start;end;owned=!1;get el(){return this.start||this.template}constructor(e,t,n=!1){this.isFragment=e instanceof HTMLTemplateElement,n?this.template=e:this.isFragment?this.template=e.content.cloneNode(!0):this.template=e.cloneNode(!0),n||(this.parentCtx=t,t.blocks.push(this)),this.ctx=Gt(t),qt(this.template,this.ctx)}insert(e,t=null){if(this.isFragment)if(this.start){let n,s=this.start;for(;s&&(n=s.nextSibling,e.insertBefore(s,t),s!==this.end);)s=n}else this.start=new Text(""),this.end=new Text(""),e.insertBefore(this.end,t),e.insertBefore(this.start,this.end),e.insertBefore(this.template,this.end);else this.template.__teleported||e.insertBefore(this.template,t);this.owned||(this.owned=!0,Ot(()=>this.discard(),this.el))}remove(){this.parentCtx&&r(this.parentCtx.blocks,this);const e=()=>{const e=this.start?this.start.parentNode:this.template.parentNode;if(e)if(this.start){let t,n=this.start;for(;n&&(t=n.nextSibling,e.removeChild(n),n!==this.end);)n=t}else e.removeChild(this.template);this.teardown()},t=[];let n=this.start||this.template;for(;n;){const e=n.__leave;if(e&&t.push(e()),!this.start||n===this.end)break;n=n.nextSibling}t.length?Promise.all(t).then(e):e()}discard(){this.parentCtx&&r(this.parentCtx.blocks,this),this.teardown()}teardown(){this.ctx.blocks.splice(0).forEach(e=>{e.teardown()}),this.ctx.effects.splice(0).forEach(Be),this.ctx.cleanups.splice(0).forEach(e=>e())}},tn=ge(Object.create(null)),nn=e=>e.replace(/[-.*+?^${}()|[\]/\\]/g,"\\$&"),sn=e=>{const t=Gt();if("function"==typeof e&&(e=e()),e&&(t.scope=ge(e),Yt(t.scope),e.$delimiters)){const[n,s]=t.delimiters=e.$delimiters;t.delimitersRE=new RegExp(nn(n)+"([^]+?)"+nn(s),"g")}t.scope.$s=ft,t.scope.$nextTick=Ue,t.scope.$refs=Object.create(null),t.scope.$store=tn,t.scope.$watch=Qe(t),t.scope.$id=Ge(),Object.defineProperty(t.scope,"$root",{value:t.scope,enumerable:!1});const n=Object.create(null);let s=[];const r=[],i=new Set,o=[],c=[],l={get scope(){return t.scope},directive(e,n){return n?(t.dirs[e]=n,this):t.dirs[e]},component(e,s){return s?(!(e in n)&&e in t.scope||(n[e]=s,(e=>{Te()||Le.add(e)})(e),t.scope[e]=s),this):n[e]},onError(e){const t=(n=e,Ve.push(n),()=>{const e=Ve.indexOf(n);e>-1&&Ve.splice(e,1)});var n;return c.push(t),()=>{const e=c.indexOf(t);e>-1&&c.splice(e,1),t()}},use(e,t){if(!i.has(e)){i.add(e);const n=("function"==typeof e?e:e.install)(l,t);"function"==typeof n&&o.push(n)}return l},mount(e){if("string"==typeof e){const t=document.querySelector(e);if(!t)return;e=t}let n;n=(e=e||document.documentElement).matches(Ct)?[e]:[...e.querySelectorAll(Ct)].filter(e=>!e.matches(`:where(${Ct}) *`)),n.length||(n=[e]),t.walk??=qt,t.dispose??=Et;for(const r of n){const e=r.getAttribute("v-name"),n=new en(r,t,!0);r.__ctx??=n.ctx,Ce.scopes.has(r)||r.matches(Ct)||n.ctx.cleanups.push(Ie(r,n.ctx.scope,void 0,e||void 0)),s.push(n)}return this},unmount(e){if(null==e)return s.forEach(e=>e.teardown()),s=[],r.splice(0).forEach(e=>e()),o.splice(0).forEach(e=>{try{e()}catch(t){We(t,{phase:"teardown",source:"plugin"})}}),i.clear(),void c.splice(0).forEach(e=>e());const t="string"==typeof e?document.querySelector(e):e;if(!t)return;const n=[];for(const r of s){const e=r.template;t.contains(e)?r.teardown():n.push(r)}s=n}};return l},rn=document.currentScript;return rn&&rn.hasAttribute("init")&&sn().mount(),e.computed=function(e,t,s=!1){let r,i;const o="function"==typeof e;return o?(r=e,i=n):(r=e.get,i=e.set),new we(r,i,o||!i,s)},e.createApp=sn,e.devtools=Ce,e.disableDevtools=()=>{Ae=!0,Se.clear(),ke.clear(),Oe.clear(),Ee.clear(),Le.clear(),je.length=0;for(const e in Ne)Ne[e].clear();"undefined"!=typeof window&&window.__LITE_VUE__===Ce&&delete window.__LITE_VUE__},e.nextTick=Ue,e.reactive=ge,e.store=(e,t)=>(void 0!==t&&(tn[e]=t,"function"==typeof tn[e].init&&tn[e].init(),((e,t)=>{Te()||(Ee.set(e,t),Pe("store:register",e,t))})(e,tn[e])),tn[e]),e.watchEffect=e=>{let t;return t=W(e,{scheduler:()=>Je(t)}),()=>Be(t)},e}({});
|
package/dist/litevue.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function e(e,t){const n=new Set(e.split(","));return t?e=>n.has(e.toLowerCase()):e=>n.has(e)}var t=()=>{},n=Object.assign,s=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},r=Object.prototype.hasOwnProperty,i=(e,t)=>r.call(e,t),o=Array.isArray,c=e=>"[object Map]"===h(e),l=e=>"[object Date]"===h(e),u=e=>"string"==typeof e,a=e=>"symbol"==typeof e,f=e=>null!==e&&"object"==typeof e,p=Object.prototype.toString,h=e=>p.call(e),d=e=>u(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,m=e=>{const t=/* @__PURE__ */Object.create(null);return n=>t[n]||(t[n]=e(n))},v=/-(\w)/g,g=m(e=>e.replace(v,(e,t)=>t?t.toUpperCase():"")),_=/\B([A-Z])/g,y=m(e=>e.replace(_,"-$1").toLowerCase()),b=m(e=>e.charAt(0).toUpperCase()+e.slice(1)),w=(m(e=>e?`on${b(e)}`:""),(e,t)=>!Object.is(e,t)),x=e=>{const t=u(e)?Number(e):NaN;return isNaN(t)?e:t};function $(e){if(o(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=u(s)?E(s):$(s);if(r)for(const e in r)t[e]=r[e]}return t}if(u(e)||f(e))return e}var k=/;(?![^(]*\))/g,O=/:([^]+)/,S=/\/\*[^]*?\*\//g;function E(e){const t={};return e.replace(S,"").split(k).forEach(e=>{if(e){const n=e.split(O);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function L(e){let t="";if(u(e))t=e;else if(o(e))for(let n=0;n<e.length;n++){const s=L(e[n]);s&&(t+=s+" ")}else if(f(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}var j;function A(e,t){if(e===t)return!0;let n=l(e),s=l(t);if(n||s)return!(!n||!s)&&e.getTime()===t.getTime();if(n=a(e),s=a(t),n||s)return e===t;if(n=o(e),s=o(t),n||s)return!(!n||!s)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=A(e[s],t[s]);return n}(e,t);if(n=f(e),s=f(t),n||s){if(!n||!s)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){const s=e.hasOwnProperty(n),r=t.hasOwnProperty(n);if(s&&!r||!s&&r||!A(e[n],t[n]))return!1}}return String(e)===String(t)}function N(e,t){return e.findIndex(e=>A(e,t))}function T(e,t=void 0){t&&t.active&&t.effects.push(e)}var P=class{constructor(e,t,n,s){this.fn=e,this.trigger=t,this.scheduler=n,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,T(this,s)}get dirty(){if(2===this._dirtyLevel||3===this._dirtyLevel){this._dirtyLevel=1,K();for(let e=0;e<this._depsLength;e++){const t=this.deps[e];if(t.computed&&(R(t.computed),this._dirtyLevel>=4))break}1===this._dirtyLevel&&(this._dirtyLevel=0),q()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=V,t=j;try{return V=!0,j=this,this._runnings++,I(this),this.fn()}finally{C(this),this._runnings--,j=t,V=e}}stop(){this.active&&(I(this),C(this),this.onStop&&this.onStop(),this.active=!1)}};function R(e){return e.value}function I(e){e._trackId++,e._depsLength=0}function C(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)M(e.deps[t],e);e.deps.length=e._depsLength}}function M(e,t){const n=e.get(t);void 0!==n&&t._trackId!==n&&(e.delete(t),0===e.size&&e.cleanup())}function W(e,s){e.effect instanceof P&&(e=e.effect.fn);const r=new P(e,t,()=>{r.dirty&&r.run()});s&&(n(r,s),s.scope&&T(r,s.scope)),s&&s.lazy||r.run();const i=r.run.bind(r);return i.effect=r,i}var V=!0,z=0,B=[];function K(){B.push(V),V=!1}function q(){const e=B.pop();V=void 0===e||e}function D(){z++}function F(){for(z--;!z&&J.length;)J.shift()()}function U(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const n=e.deps[e._depsLength];n!==t?(n&&M(n,e),e.deps[e._depsLength++]=t):e._depsLength++}}var J=[];function Z(e,t,n){D();for(const s of e.keys()){let n;s._dirtyLevel<t&&(null!=n?n:n=e.get(s)===s._trackId)&&(s._shouldSchedule||(s._shouldSchedule=0===s._dirtyLevel),s._dirtyLevel=t),s._shouldSchedule&&(null!=n?n:n=e.get(s)===s._trackId)&&(s.trigger(),s._runnings&&!s.allowRecurse||2===s._dirtyLevel||(s._shouldSchedule=!1,s.scheduler&&J.push(s.scheduler)))}F()}var H=(e,t)=>{const n=/* @__PURE__ */new Map;return n.cleanup=e,n.computed=t,n},G=/* @__PURE__ */new WeakMap,Q=Symbol(""),X=Symbol("");function Y(e,t,n){if(V&&j){let t=G.get(e);t||G.set(e,t=/* @__PURE__ */new Map);let s=t.get(n);s||t.set(n,s=H(()=>t.delete(n))),U(j,s)}}function ee(e,t,n,s,r,i){const l=G.get(e);if(!l)return;let u=[];if("clear"===t)u=[...l.values()];else if("length"===n&&o(e)){const e=Number(s);l.forEach((t,n)=>{("length"===n||!a(n)&&n>=e)&&u.push(t)})}else switch(void 0!==n&&u.push(l.get(n)),t){case"add":o(e)?d(n)&&u.push(l.get("length")):(u.push(l.get(Q)),c(e)&&u.push(l.get(X)));break;case"delete":o(e)||(u.push(l.get(Q)),c(e)&&u.push(l.get(X)));break;case"set":c(e)&&u.push(l.get(Q))}D();for(const o of u)o&&Z(o,4);F()}var te=/* @__PURE__ */e("__proto__,__v_isRef,__isVue"),ne=new Set(/* @__PURE__ */Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(a)),se=/* @__PURE__ */re();function re(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...e){const n=ye(this);for(let t=0,r=this.length;t<r;t++)Y(n,0,t+"");const s=n[t](...e);return-1===s||!1===s?n[t](...e.map(ye)):s}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...e){K(),D();const n=ye(this)[t].apply(this,e);return F(),q(),n}}),e}function ie(e){a(e)||(e=String(e));const t=ye(this);return Y(t,0,e),t.hasOwnProperty(e)}var oe=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){const s=this._isReadonly,r=this._isShallow;if("__v_isReactive"===t)return!s;if("__v_isReadonly"===t)return s;if("__v_isShallow"===t)return r;if("__v_raw"===t)return n===(s?r?de:he:r?pe:fe).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const c=o(e);if(!s){if(c&&i(se,t))return Reflect.get(se,t,n);if("hasOwnProperty"===t)return ie}const l=Reflect.get(e,t,n);return(a(t)?ne.has(t):te(t))?l:(s||Y(e,0,t),r?l:$e(l)?c&&d(t)?l:l.value:f(l)?s?function(e){return ge(e,!0,ae,null,he)}(l):ve(l):l)}},ce=class extends oe{constructor(e=!1){super(!1,e)}set(e,t,n,s){let r=e[t];if(!this._isShallow){const t=_e(r);if(function(e){return!(!e||!e.__v_isShallow)}(n)||_e(n)||(r=ye(r),n=ye(n)),!o(e)&&$e(r)&&!$e(n))return!t&&(r.value=n,!0)}const c=o(e)&&d(t)?Number(t)<e.length:i(e,t),l=Reflect.set(e,t,n,s);return e===ye(s)&&(c?w(n,r)&&ee(e,"set",t,n):ee(e,"add",t,n)),l}deleteProperty(e,t){const n=i(e,t),s=(e[t],Reflect.deleteProperty(e,t));return s&&n&&ee(e,"delete",t,void 0),s}has(e,t){const n=Reflect.has(e,t);return a(t)&&ne.has(t)||Y(e,0,t),n}ownKeys(e){return Y(e,0,o(e)?"length":Q),Reflect.ownKeys(e)}},le=class extends oe{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}},ue=/* @__PURE__ */new ce,ae=/* @__PURE__ */new le,fe=/* @__PURE__ */new WeakMap,pe=/* @__PURE__ */new WeakMap,he=/* @__PURE__ */new WeakMap,de=/* @__PURE__ */new WeakMap;function me(e){return e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;default:return 0}}((e=>h(e).slice(8,-1))(e))}function ve(e){return _e(e)?e:ge(e,!1,ue,null,fe)}function ge(e,t,n,s,r){if(!f(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const o=me(e);if(0===o)return e;const c=new Proxy(e,2===o?s:n);return r.set(e,c),c}function _e(e){return!(!e||!e.__v_isReadonly)}function ye(e){const t=e&&e.__v_raw;return t?ye(t):e}var be=class{constructor(e,t,n,s){this.getter=e,this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new P(()=>e(this._value),()=>xe(this,2===this.effect._dirtyLevel?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=n}get value(){const e=ye(this);var t,n;return e._cacheable&&!e.effect.dirty||!w(e._value,e._value=e.effect.run())||xe(e,4),t=e,V&&j&&(t=ye(t),U(j,null!=(n=t.dep)?n:t.dep=H(()=>t.dep=void 0,t instanceof be?t:void 0))),e.effect._dirtyLevel>=2&&xe(e,2),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}};function we(e,n,s=!1){let r,i;const o="function"==typeof e;return o?(r=e,i=t):(r=e.get,i=e.set),new be(r,i,o||!i,s)}function xe(e,t=4,n,s){const r=(e=ye(e)).dep;r&&Z(r,t)}function $e(e){return!(!e||!0!==e.__v_isRef)}var ke=/* @__PURE__ */new Map,Oe=/* @__PURE__ */new Map,Se=/* @__PURE__ */new Map,Ee=/* @__PURE__ */new Map,Le=/* @__PURE__ */new Set,je=!1,Ae=()=>je||"undefined"!=typeof window&&!1===window.__LITE_VUE_DEVTOOLS__,Ne={"scope:mount":/* @__PURE__ */new Set,"scope:unmount":/* @__PURE__ */new Set,"store:register":/* @__PURE__ */new Set,flush:/* @__PURE__ */new Set},Te=(e,...t)=>{Ne[e].forEach(e=>e(...t))},Pe=()=>{},Re=(e,t,n,s)=>Ae()?Pe:(ke.set(e,t),n&&Oe.set(e,n),s&&Se.set(e,s),Te("scope:mount",e,t),()=>{ke.delete(e)&&(Oe.delete(e),Se.delete(e),Te("scope:unmount",e))}),Ie={scopes:ke,exps:Oe,names:Se,stores:Ee,components:Le,getScopeByName(e){for(const[t,n]of Se)if(n===e)return ke.get(t)},getScope(e){let t=1===e.nodeType?e:e.parentElement;for(;t;){const e=ke.get(t);if(e)return e;t=t.parentElement}},on:(e,t)=>(Ne[e].add(t),()=>Ne[e].delete(t)),off(e,t){Ne[e].delete(t)}},Ce=()=>{je=!0,ke.clear(),Oe.clear(),Se.clear(),Ee.clear(),Le.clear();for(const e in Ne)Ne[e].clear();"undefined"!=typeof window&&window.__LITE_VUE__===Ie&&delete window.__LITE_VUE__};"undefined"==typeof window||Ae()||(window.__LITE_VUE__=Ie);var Me,We=[],Ve=(e,t)=>{for(const s of We)try{s(e,t)}catch(n){}We.length||console.error(e)},ze=/* @__PURE__ */new WeakSet,Be=e=>{ze.add(e),function(e){e.effect.stop()}(e)},Ke=!1,qe=[],De=Promise.resolve(),Fe=-1,Ue=e=>De.then(e),Je=e=>{qe.includes(e,Fe+1)||qe.push(e),Ke||(Ke=!0,Ue(Ze))},Ze=()=>{const e=/* @__PURE__ */new Map;for(Fe=0;Fe<qe.length;Fe++){const n=qe[Fe];if(ze.has(n))continue;const s=(e.get(n)||0)+1;if(e.set(n,s),s>100)Ve(Error("update loop"),{phase:"effect"});else try{n()}catch(t){Ve(t,{phase:"effect"})}}qe.length=0,Fe=-1,Ke=!1,Ne.flush.size&&!Ae()&&Te("flush")},He=0,Ge=()=>{const e=Object.create(null);return(t="id")=>e[t]||(e[t]=`${t}-${++He}`)},Qe=e=>(t,n,s)=>{const r="function"==typeof t?t:()=>t.split(".").reduce((e,t)=>null==e?e:e[t],e.scope);let i,o=!1;const c=e.effect(()=>{const e=r(),t=i;if(i=e,o?e!==t:s?.immediate){K();try{n(e,t)}finally{q()}}o=!0});return()=>c.effect&&Be(c)},Xe=/^(spellcheck|draggable|form|list|type)$/,Ye=({el:e,get:t,effect:n,arg:s,modifiers:r})=>{let i;"class"===s&&(e._class=e.getAttribute("class")),n(()=>{let n=t();if(s)r?.camel&&(s=g(s)),et(e,s,n,i);else{for(const t in n)et(e,t,n[t],i&&i[t]);for(const t in i)n&&t in n||et(e,t,null)}i="[object Object]"===h(n)?{...n}:n})},et=(e,t,n,s)=>{if("class"===t)e.setAttribute("class",L(e._class?[e._class,n]:n)||"");else if("style"===t){n=$(n);const{style:t}=e;if(n)if(u(n))n!==s&&(t.cssText=n);else{for(const e in n)nt(t,e,n[e]);if(s&&!u(s))for(const e in s)null==n[e]&&nt(t,e,"")}else e.removeAttribute("style")}else e instanceof SVGElement||!(t in e)||Xe.test(t)?"true-value"===t?e._trueValue=n:"false-value"===t?e._falseValue=n:null!=n?e.setAttribute(t,n):e.removeAttribute(t):(e[t]=null==n&&"string"==typeof e[t]?"":n,null==n&&e.removeAttribute(t),"value"===t&&(e._value=n))},tt=/\s*!important$/,nt=(e,t,n)=>{o(n)?n.forEach(n=>nt(e,t,n)):t.startsWith("--")?e.setProperty(t,n):tt.test(n)?e.setProperty(y(t),n.replace(tt,""),"important"):e[t]=n},st=Object.create(null),rt=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,it=["ctrl","shift","alt","meta"],ot={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>it.some(n=>e[`${n}Key`]&&!t[n])},ct={esc:"escape",space:" ",up:"arrow-up",down:"arrow-down",left:"arrow-left",right:"arrow-right",delete:"backspace"},lt=/^(stop|prevent|self|ctrl|shift|alt|meta|left|middle|right|exact|once|capture|passive|window|document|outside|debounce(-\d+)?|throttle(-\d+)?|prop-.+|name-.+)$/,ut=({el:e,get:t,ctx:n,exp:s,arg:r,modifiers:i})=>{if(!r)return;const o=rt.test(s)?t(`(e => ${s}(e))`):(e=>{const t=st[e];if(void 0!==t)return t;try{return new Function(`return (${e})`),st[e]=!0}catch{return st[e]=!1}})(s)?t(`($event => (${s}))`):t(`($event => { ${s} })`);let c,l=(...e)=>{try{const t=o(...e);return t instanceof Promise&&t.catch(u),t}catch(t){u(t)}};function u(t){Ve(t,{phase:"handler",source:`@${r}`,expression:s,el:e,scope:n.scope})}if("mounted"===r||"vue:mounted"===r){let e=!0;return Ue(()=>{e&&l()}),()=>{e=!1}}if("unmounted"===r||"vue:unmounted"===r)return()=>l();if(i){"click"===r&&(i.right&&(r="contextmenu"),i.middle&&(r="mouseup"));let t=l;for(const e in i){let n=/^debounce(?:-(\d+))?$/.exec(e);if(n){const e=t,s=n[1]?+n[1]:250;t=t=>{clearTimeout(c),c=setTimeout(e,s,t)};continue}if(n=/^throttle(?:-(\d+))?$/.exec(e),n){const e=t,s=n[1]?+n[1]:250;let r=0;t=t=>{const n=Date.now();n-r>=s&&(r=n,e(t))}}}const n=Object.keys(i).filter(e=>!lt.test(e)||e in ct);l=s=>{if(!i.outside||!e.contains(s.target)){if("key"in s&&n.length){const e=y(s.key);if(!n.some(t=>t===e||ct[t]===e))return}for(const e in i){const t=ot[e];if(t&&t(s,i))return;if(e.startsWith("prop-")&&"propertyName"in s&&s.propertyName!==e.slice(5))return;if(e.startsWith("name-")&&"animationName"in s&&s.animationName!==e.slice(5))return}return t(s)}}}const a=i?.window?window:i?.document||i?.outside?document:e,f=r;return a.addEventListener(f,l,i),()=>{clearTimeout(c),a.removeEventListener(f,l,i)}},at=({el:e,get:t,effect:n})=>{n(()=>{e.textContent=ft(t())})},ft=e=>null==e?"":f(e)?JSON.stringify(e,null,2):String(e),pt=(e,t)=>{const n=e.getAttribute(t);return null!=n&&e.removeAttribute(t),n},ht=e=>"_value"in e?e._value:e.value,dt=(e,t)=>{const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t},mt=e=>{e.target.composing=!0},vt=e=>{const t=e.target;t.composing&&(t.composing=!1,gt(t,"input"))},gt=(e,t)=>{e.dispatchEvent(new Event(t,{bubbles:!0,cancelable:!0}))},_t=Object.create(null),yt=0,bt=e=>e.replace(/^return\(([^]*)\)$/,"$1"),wt=(e,t,n,s)=>xt(e,`return(${t})`,n,s),xt=(e,t,n,s)=>{let r=_t[t];r||(++yt>1e3&&(_t=Object.create(null),yt=1),r=_t[t]=$t(t,n,s));try{return r(e,n,n&&(e=>(t,n)=>e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0})))(n))}catch(i){Ve(i,{phase:"expression",expression:s?.expression??bt(t),source:s?.source,el:s?.el??n,scope:e})}},$t=(e,t,n)=>{try{return new Function("$data","$el","$dispatch",`with($data){${e}}`)}catch(s){return Ve(s,{phase:"compile",expression:n?.expression??bt(e),source:n?.source,el:n?.el??t}),()=>{}}},kt=/* @__PURE__ */new WeakMap,Ot=e=>{const t=Me;return Me=e,t},St=(e,t=Me)=>{if(!t)return;const n=kt.get(t);n?n.push(e):kt.set(t,[e])},Et=e=>{const t=kt.get(e);if(t){kt.delete(e);for(const e of t)e()}let n=e.firstChild;for(;n;){const e=n.nextSibling;Et(n),n=e}},Lt={bind:Ye,on:ut,show:({el:e,get:t,effect:n})=>{const s=e.style.display;n(()=>{e.style.display=t()?s:"none"})},text:at,html:({el:e,get:t,effect:n})=>{n(()=>{e.innerHTML=t()??""})},model:({el:e,exp:t,get:n,effect:s,modifiers:r})=>{const i=e.type,c=n(`(val) => { ${t} = val }`),{trim:l,number:u="number"===i,lazy:a,fill:f}=r||{},p=[],h=(t,n)=>p.push(((e,t,n,s)=>(e.addEventListener(t,n,s),()=>e.removeEventListener(t,n,s)))(e,t,n));if("SELECT"===e.tagName){const t=e;h("change",()=>{const e=Array.prototype.filter.call(t.options,e=>e.selected).map(e=>u?x(ht(e)):ht(e));c(t.multiple?e:e[0])}),s(()=>{const e=n(),s=t.multiple;for(let n=0,r=t.options.length;n<r;n++){const r=t.options[n],i=ht(r);if(s)r.selected=o(e)&&N(e,i)>-1;else if(A(ht(r),e))return void(t.selectedIndex!==n&&(t.selectedIndex=n))}s||-1===t.selectedIndex||(t.selectedIndex=-1)})}else if("checkbox"===i)h("change",()=>{const t=n(),s=e.checked;if(o(t)){const n=ht(e),r=N(t,n),i=-1!==r;if(s&&!i)c(t.concat(n));else if(!s&&i){const e=[...t];e.splice(r,1),c(e)}}else c(dt(e,s))}),s(()=>{const t=n();o(t)?e.checked=N(t,ht(e))>-1:e.checked=A(t,dt(e,!0))});else if("radio"===i)h("change",()=>{c(ht(e))}),s(()=>{e.checked=A(n(),ht(e))});else{const t=e=>(l&&(e=e.trim()),u?x(e):e);let i,o=c;for(const e in r||{}){const t=/^debounce(?:-(\d+))?$/.exec(e);if(t){const e=t[1]?+t[1]:250;o=t=>{clearTimeout(i),i=setTimeout(c,e,t)},p.push(()=>clearTimeout(i))}}if(h("compositionstart",mt),h("compositionend",vt),h(a?"change":"input",()=>{e.composing||o(t(e.value))}),l&&h("change",()=>{e.value=e.value.trim()}),f){const s=n();null!=s&&""!==s||!e.value||c(t(e.value))}s(()=>{if(e.composing)return;const s=e.value,r=n();document.activeElement===e&&t(s)===r||s!==r&&(e.value=r)})}return()=>p.forEach(e=>e())},effect:({el:e,ctx:t,exp:n,effect:s})=>{let r=!0;return Ue(()=>{if(!r)return;const i=Ot(e);try{s(()=>xt(t.scope,n,e,{source:"v-effect",el:e}))}finally{Ot(i)}}),()=>{r=!1}}},jt=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,At=/,([^,}\]]*)(?:,([^,}\]]*))?$/,Nt=/^\(|\)$/g,Tt=/^[{[]\s*((?:[\w_$]+\s*,?\s*)+)[\]}]$/,Pt=(e,t,n)=>{const s=t.match(jt);if(!s)return;const r=e.nextSibling,i=new Text("");e.replaceWith(i);const c=()=>i.parentNode;Ot(i);const l=s[2].trim();let u,a,p,h,d=s[1].trim().replace(Nt,"").trim(),m=!1,v="key",g=e.getAttribute(v)||e.getAttribute(v=":key")||e.getAttribute(v="v-bind:key");g&&(e.removeAttribute(v),"key"===v&&(g=JSON.stringify(g))),(h=d.match(At))&&(d=d.replace(At,"").trim(),a=h[1].trim(),h[2]&&(p=h[2].trim())),(h=d.match(Tt))&&(u=h[1].split(",").map(e=>e.trim()),m="["===d[0]);let _,y,b,w=!1;const x=(t,s,r,i)=>{const o={};u?u.forEach((e,t)=>o[e]=s[m?t:e]):o[d]=s,i?(a&&(o[a]=i),p&&(o[p]=r)):a&&(o[a]=r);const c=g?wt(Object.setPrototypeOf(o,n.scope),g,e,{source:":key",el:e}):r;return t.set(c,r),{data:o,key:c}},$=(t,s)=>{const r=new en(e,Xt(n,t.data));return r.key=t.key,r.insert(c(),s),r};return n.effect(()=>{const t=wt(n.scope,l,e,{source:"v-for",el:e}),s=b;if([y,b]=(e=>{const t=/* @__PURE__ */new Map,n=[];if(o(e))for(let s=0;s<e.length;s++)n.push(x(t,e[s],s));else if("number"==typeof e)for(let s=0;s<e;s++)n.push(x(t,s+1,s));else if(f(e)){let s=0;for(const r in e)n.push(x(t,e[r],s++,r))}return[n,t]})(t),w){for(let s=0;s<_.length;s++)b.has(_[s].key)||_[s].remove();const e=[];let t,n,r=y.length;for(;r--;){const o=y[r],l=s.get(o.key);let u;null==l?u=$(o,t?t.el:i):(u=_[l],Object.assign(u.ctx.scope,o.data),l!==r&&(_[l+1]===t&&n!==t||(n=u,u.insert(c(),t?t.el:i)))),e.unshift(t=u)}_=e}else _=y.map(e=>$(e,i)),w=!0}),r},Rt=({el:e,ctx:{scope:{$refs:t}},get:n,effect:s})=>{let r;return s(()=>{const s=n();t[s]=e,r&&s!==r&&delete t[r],r=s}),()=>{r&&delete t[r]}},It=["visible","idle","interaction"],Ct=["[v-scope]",...It.map(e=>`[v-scope\\.${e}]`)].join(","),Mt=["pointerdown","keydown","focusin"],Wt=(e,t,n,s)=>{const r=It.find(t=>e.hasAttribute(`v-scope.${t}`));if(!r)return!1;const i=`v-scope.${r}`,o=((e,t,n)=>{let s=!1;const r=()=>{s||(s=!0,i(),n())};let i=()=>{};if("visible"===t&&"function"==typeof IntersectionObserver){const t=new IntersectionObserver(e=>{e.some(e=>e.isIntersecting)&&r()});t.observe(e),i=()=>t.disconnect()}else if("interaction"!==t){const e=window.requestIdleCallback,t=e?e(r):setTimeout(r);i=()=>e?window.cancelIdleCallback(t):clearTimeout(t)}else{for(const t of Mt)e.addEventListener(t,r);i=()=>{for(const t of Mt)e.removeEventListener(t,r)}}return()=>{s=!0,i()}})(e,r,()=>{e.hasAttribute(i)&&(e.setAttribute("v-scope",e.getAttribute(i)),e.removeAttribute(i),n(e,t,s))});return t.cleanups.push(o),St(o),!0},Vt=/^(?:v-|:|@)/,zt=/\.([\w-]+)/g,Bt=!1,Kt=(e,t)=>{e.cleanups.push(t),St(()=>{const n=e.cleanups.indexOf(t);n>-1&&(e.cleanups.splice(n,1),t())})},qt=(e,t,n)=>{const s=Bt;Bt=n;try{Dt(e,t)}finally{Bt=s}},Dt=(e,t)=>{const n=Ot(e);try{return Ft(e,t)}finally{Ot(n)}},Ft=(e,t)=>{const n=e.nodeType;if(1===n){const n=e;if(n.hasAttribute("v-pre"))return;if(Wt(n,t,qt,Bt))return;let s;if(pt(n,"v-cloak"),null!=(s=pt(n,"v-if")))return((e,t,n)=>{const s=new Comment("v-if");e.before(s);const r=[{exp:t.trim()||"0",el:e}];let i,o;for(;(i=e.nextElementSibling)&&(o=null,""===pt(i,"v-else")||(o=pt(i,"v-else-if")));)i.remove(),r.push({exp:o,el:i});const c=e.nextSibling;let l;e.remove(),Ot(s);let u=-1;const a=()=>{l&&(s.parentNode||l.el.before(s),l.remove(),l=void 0)};let f;const p=()=>Be(f);return f=n.effect(()=>{for(let e=0;e<r.length;e++){const{exp:t,el:i}=r[e];if(!t||wt(n.scope,t,i,{source:"v-if",el:i})){if(e!==u){a();const t=s.parentNode;l=new en(i,n),l.insert(t,s),St(p,l.el),l.el.parentNode===t&&s.remove(),u=e}return}}u=-1,a()}),St(p,s),c})(n,s,t);if(s=pt(n,"v-for"))return Pt(n,s,t);const r=pt(n,"v-name");let i;if(s=pt(n,"v-teleport")){const e=document.querySelector(s);e&&(i=n.nextSibling,n.__teleported=!0,e.appendChild(n),t.cleanups.push(()=>n.remove()))}if((s=pt(n,"v-scope"))||""===s){const e=(s?wt(t.scope,s,n,{source:"v-scope",el:n}):{})||{};t=Xt(t,e),n.__ctx=t,Kt(t,Re(n,t.scope,s||void 0,r||void 0)),e.$template&&Ht(n,e.$template)}const o=null!=pt(n,"v-once");o&&(Bt=!0),(s=pt(n,"ref"))&&Zt(n,Rt,`"${s}"`,t),Ut(n,t);const c=[];for(const{name:e,value:l}of[...n.attributes])Vt.test(e)&&"v-cloak"!==e&&("v-model"===e||e.startsWith("v-model.")?c.unshift([e,l]):"@"===e[0]||/^v-on\b/.test(e)?c.push([e,l]):Jt(n,e,l,t));for(const[e,l]of c)Jt(n,e,l,t);return o&&(Bt=!1),i}if(3===n){const n=e.data;if(n.includes(t.delimiters[0])){let s,r=[],i=0;for(;s=t.delimitersRE.exec(n);){const e=n.slice(i,s.index);e&&r.push(JSON.stringify(e)),r.push(`$s(${s[1]})`),i=s.index+s[0].length}i<n.length&&r.push(JSON.stringify(n.slice(i))),Zt(e,at,r.join("+"),t,void 0,void 0,"{{ }}",n.trim())}}else 11===n&&Ut(e,t)},Ut=(e,t)=>{let n=e.firstChild;for(;n;)n=Dt(n,t)||n.nextSibling},Jt=(e,t,n,s)=>{let r,i,o;const c=t;if(":"===(t=t.replace(zt,(e,t)=>((o||(o={}))[t]=!0,"")))[0])r=Ye,i=t.slice(1);else if("@"===t[0])r=ut,i=t.slice(1);else{const e=t.indexOf(":"),n=e>0?t.slice(2,e):t.slice(2);r=Lt[n]||s.dirs[n],i=e>0?t.slice(e+1):void 0}r&&(r===Ye&&"ref"===i&&(r=Rt),Zt(e,r,n,s,i,o,c),e.removeAttribute(c))},Zt=(e,t,n,s,r,i,o,c)=>{const l={source:o,el:e,expression:c},u=(t=n)=>wt(s.scope,t,e,l);let a;try{a=t({el:e,get:u,effect:s.effect,ctx:s,exp:n,arg:r,modifiers:i})}catch(f){return void Ve(f,{phase:"directive",source:o,el:e,expression:n})}a&&Kt(s,a)},Ht=(e,t)=>{if("#"===t[0]){const n=document.querySelector(t);if(!n)return;return void e.appendChild(n.content.cloneNode(!0))}e.innerHTML=t},Gt=e=>{const t={delimiters:["{{","}}"],delimitersRE:/\{\{([^]+?)\}\}/g,...e,scope:e?e.scope:ve({}),dirs:e?e.dirs:{},effects:[],blocks:[],cleanups:[],effect:e=>{if(Bt)return Je(e),e;const n=W(e,{scheduler:()=>Je(n)});return t.effects.push(n),St(()=>{Be(n),s(t.effects,n)}),n}};return t},Qt=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Xt=(e,t={})=>{const n=e.scope,s=Object.create(n);Object.defineProperties(s,Object.getOwnPropertyDescriptors(t)),Qt(s,"$refs",Object.create(n.$refs));const r=ve(new Proxy(s,{set:(e,t,s,o)=>o!==r||i(e,t)?Reflect.set(e,t,s,o):Reflect.set(n,t,s)})),o={...e,scope:r};return Qt(s,"$watch",Qe(o)),Qt(s,"$id",Ge()),Yt(r),o},Yt=e=>{for(const t of Object.keys(e)){const n=Object.getOwnPropertyDescriptor(e,t).value;"function"==typeof n&&(e[t]=n.bind(e))}},en=class{template;ctx;key;parentCtx;isFragment;start;end;owned=!1;get el(){return this.start||this.template}constructor(e,t,n=!1){this.isFragment=e instanceof HTMLTemplateElement,n?this.template=e:this.isFragment?this.template=e.content.cloneNode(!0):this.template=e.cloneNode(!0),n||(this.parentCtx=t,t.blocks.push(this)),this.ctx=Gt(t),Dt(this.template,this.ctx)}insert(e,t=null){if(this.isFragment)if(this.start){let n,s=this.start;for(;s&&(n=s.nextSibling,e.insertBefore(s,t),s!==this.end);)s=n}else this.start=new Text(""),this.end=new Text(""),e.insertBefore(this.end,t),e.insertBefore(this.start,this.end),e.insertBefore(this.template,this.end);else this.template.__teleported||e.insertBefore(this.template,t);this.owned||(this.owned=!0,St(()=>this.discard(),this.el))}remove(){this.parentCtx&&s(this.parentCtx.blocks,this);const e=()=>{const e=this.start?this.start.parentNode:this.template.parentNode;if(e)if(this.start){let t,n=this.start;for(;n&&(t=n.nextSibling,e.removeChild(n),n!==this.end);)n=t}else e.removeChild(this.template);this.teardown()},t=[];let n=this.start||this.template;for(;n;){const e=n.__leave;if(e&&t.push(e()),!this.start||n===this.end)break;n=n.nextSibling}t.length?Promise.all(t).then(e):e()}discard(){this.parentCtx&&s(this.parentCtx.blocks,this),this.teardown()}teardown(){this.ctx.blocks.splice(0).forEach(e=>{e.teardown()}),this.ctx.effects.splice(0).forEach(Be),this.ctx.cleanups.splice(0).forEach(e=>e())}},tn=ve(Object.create(null)),nn=(e,t)=>(void 0!==t&&(tn[e]=t,"function"==typeof tn[e].init&&tn[e].init(),((e,t)=>{Ae()||(Ee.set(e,t),Te("store:register",e,t))})(e,tn[e])),tn[e]),sn=e=>e.replace(/[-.*+?^${}()|[\]/\\]/g,"\\$&"),rn=e=>{const t=Gt();if("function"==typeof e&&(e=e()),e&&(t.scope=ve(e),Yt(t.scope),e.$delimiters)){const[n,s]=t.delimiters=e.$delimiters;t.delimitersRE=new RegExp(sn(n)+"([^]+?)"+sn(s),"g")}t.scope.$s=ft,t.scope.$nextTick=Ue,t.scope.$refs=Object.create(null),t.scope.$store=tn,t.scope.$watch=Qe(t),t.scope.$id=Ge(),Object.defineProperty(t.scope,"$root",{value:t.scope,enumerable:!1});const n=Object.create(null);let s=[];const r=/* @__PURE__ */new Set,i=[],o=[],c={get scope(){return t.scope},directive(e,n){return n?(t.dirs[e]=n,this):t.dirs[e]},component(e,s){return s?(!(e in n)&&e in t.scope||(n[e]=s,(e=>{Ae()||Le.add(e)})(e),t.scope[e]=s),this):n[e]},onError(e){const t=(n=e,We.push(n),()=>{const e=We.indexOf(n);e>-1&&We.splice(e,1)});var n;return o.push(t),()=>{const e=o.indexOf(t);e>-1&&o.splice(e,1),t()}},use(e,t){if(!r.has(e)){r.add(e);const n=("function"==typeof e?e:e.install)(c,t);"function"==typeof n&&i.push(n)}return c},mount(e){if("string"==typeof e){const t=document.querySelector(e);if(!t)return;e=t}let n;n=(e=e||document.documentElement).matches(Ct)?[e]:[...e.querySelectorAll(Ct)].filter(e=>!e.matches(`:where(${Ct}) *`)),n.length||(n=[e]),t.walk??=Dt,t.dispose??=Et;for(const r of n){const e=r.getAttribute("v-name"),n=new en(r,t,!0);r.__ctx??=n.ctx,Ie.scopes.has(r)||r.matches(Ct)||n.ctx.cleanups.push(Re(r,n.ctx.scope,void 0,e||void 0)),s.push(n)}return this},unmount(e){if(null==e)return s.forEach(e=>e.teardown()),s=[],i.splice(0).forEach(e=>{try{e()}catch(t){Ve(t,{phase:"teardown",source:"plugin"})}}),r.clear(),void o.splice(0).forEach(e=>e());const t="string"==typeof e?document.querySelector(e):e;if(!t)return;const n=[];for(const r of s){const e=r.template;t.contains(e)?r.teardown():n.push(r)}s=n}};return c},on=e=>{let t;return t=W(e,{scheduler:()=>Je(t)}),()=>Be(t)},cn=document.currentScript;cn&&cn.hasAttribute("init")&&rn().mount();export{we as computed,rn as createApp,Ie as devtools,Ce as disableDevtools,Ue as nextTick,ve as reactive,nn as store,on as watchEffect};
|
|
1
|
+
function e(e,t){const n=new Set(e.split(","));return t?e=>n.has(e.toLowerCase()):e=>n.has(e)}var t=()=>{},n=Object.assign,s=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},r=Object.prototype.hasOwnProperty,i=(e,t)=>r.call(e,t),o=Array.isArray,c=e=>"[object Map]"===h(e),l=e=>"[object Date]"===h(e),u=e=>"string"==typeof e,a=e=>"symbol"==typeof e,f=e=>null!==e&&"object"==typeof e,p=Object.prototype.toString,h=e=>p.call(e),d=e=>u(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,m=e=>{const t=/* @__PURE__ */Object.create(null);return n=>t[n]||(t[n]=e(n))},v=/-(\w)/g,g=m(e=>e.replace(v,(e,t)=>t?t.toUpperCase():"")),_=/\B([A-Z])/g,y=m(e=>e.replace(_,"-$1").toLowerCase()),b=m(e=>e.charAt(0).toUpperCase()+e.slice(1)),w=(m(e=>e?`on${b(e)}`:""),(e,t)=>!Object.is(e,t)),x=e=>{const t=u(e)?Number(e):NaN;return isNaN(t)?e:t};function $(e){if(o(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=u(s)?E(s):$(s);if(r)for(const e in r)t[e]=r[e]}return t}if(u(e)||f(e))return e}var k=/;(?![^(]*\))/g,O=/:([^]+)/,S=/\/\*[^]*?\*\//g;function E(e){const t={};return e.replace(S,"").split(k).forEach(e=>{if(e){const n=e.split(O);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function L(e){let t="";if(u(e))t=e;else if(o(e))for(let n=0;n<e.length;n++){const s=L(e[n]);s&&(t+=s+" ")}else if(f(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}var j;function A(e,t){if(e===t)return!0;let n=l(e),s=l(t);if(n||s)return!(!n||!s)&&e.getTime()===t.getTime();if(n=a(e),s=a(t),n||s)return e===t;if(n=o(e),s=o(t),n||s)return!(!n||!s)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=A(e[s],t[s]);return n}(e,t);if(n=f(e),s=f(t),n||s){if(!n||!s)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){const s=e.hasOwnProperty(n),r=t.hasOwnProperty(n);if(s&&!r||!s&&r||!A(e[n],t[n]))return!1}}return String(e)===String(t)}function N(e,t){return e.findIndex(e=>A(e,t))}function T(e,t=void 0){t&&t.active&&t.effects.push(e)}var P=class{constructor(e,t,n,s){this.fn=e,this.trigger=t,this.scheduler=n,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,T(this,s)}get dirty(){if(2===this._dirtyLevel||3===this._dirtyLevel){this._dirtyLevel=1,K();for(let e=0;e<this._depsLength;e++){const t=this.deps[e];if(t.computed&&(R(t.computed),this._dirtyLevel>=4))break}1===this._dirtyLevel&&(this._dirtyLevel=0),q()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=V,t=j;try{return V=!0,j=this,this._runnings++,I(this),this.fn()}finally{C(this),this._runnings--,j=t,V=e}}stop(){this.active&&(I(this),C(this),this.onStop&&this.onStop(),this.active=!1)}};function R(e){return e.value}function I(e){e._trackId++,e._depsLength=0}function C(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)M(e.deps[t],e);e.deps.length=e._depsLength}}function M(e,t){const n=e.get(t);void 0!==n&&t._trackId!==n&&(e.delete(t),0===e.size&&e.cleanup())}function W(e,s){e.effect instanceof P&&(e=e.effect.fn);const r=new P(e,t,()=>{r.dirty&&r.run()});s&&(n(r,s),s.scope&&T(r,s.scope)),s&&s.lazy||r.run();const i=r.run.bind(r);return i.effect=r,i}var V=!0,z=0,B=[];function K(){B.push(V),V=!1}function q(){const e=B.pop();V=void 0===e||e}function D(){z++}function F(){for(z--;!z&&J.length;)J.shift()()}function U(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const n=e.deps[e._depsLength];n!==t?(n&&M(n,e),e.deps[e._depsLength++]=t):e._depsLength++}}var J=[];function Z(e,t,n){D();for(const s of e.keys()){let n;s._dirtyLevel<t&&(null!=n?n:n=e.get(s)===s._trackId)&&(s._shouldSchedule||(s._shouldSchedule=0===s._dirtyLevel),s._dirtyLevel=t),s._shouldSchedule&&(null!=n?n:n=e.get(s)===s._trackId)&&(s.trigger(),s._runnings&&!s.allowRecurse||2===s._dirtyLevel||(s._shouldSchedule=!1,s.scheduler&&J.push(s.scheduler)))}F()}var H=(e,t)=>{const n=/* @__PURE__ */new Map;return n.cleanup=e,n.computed=t,n},G=/* @__PURE__ */new WeakMap,Q=Symbol(""),X=Symbol("");function Y(e,t,n){if(V&&j){let t=G.get(e);t||G.set(e,t=/* @__PURE__ */new Map);let s=t.get(n);s||t.set(n,s=H(()=>t.delete(n))),U(j,s)}}function ee(e,t,n,s,r,i){const l=G.get(e);if(!l)return;let u=[];if("clear"===t)u=[...l.values()];else if("length"===n&&o(e)){const e=Number(s);l.forEach((t,n)=>{("length"===n||!a(n)&&n>=e)&&u.push(t)})}else switch(void 0!==n&&u.push(l.get(n)),t){case"add":o(e)?d(n)&&u.push(l.get("length")):(u.push(l.get(Q)),c(e)&&u.push(l.get(X)));break;case"delete":o(e)||(u.push(l.get(Q)),c(e)&&u.push(l.get(X)));break;case"set":c(e)&&u.push(l.get(Q))}D();for(const o of u)o&&Z(o,4);F()}var te=/* @__PURE__ */e("__proto__,__v_isRef,__isVue"),ne=new Set(/* @__PURE__ */Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(a)),se=/* @__PURE__ */re();function re(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...e){const n=ye(this);for(let t=0,r=this.length;t<r;t++)Y(n,0,t+"");const s=n[t](...e);return-1===s||!1===s?n[t](...e.map(ye)):s}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...e){K(),D();const n=ye(this)[t].apply(this,e);return F(),q(),n}}),e}function ie(e){a(e)||(e=String(e));const t=ye(this);return Y(t,0,e),t.hasOwnProperty(e)}var oe=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){const s=this._isReadonly,r=this._isShallow;if("__v_isReactive"===t)return!s;if("__v_isReadonly"===t)return s;if("__v_isShallow"===t)return r;if("__v_raw"===t)return n===(s?r?de:he:r?pe:fe).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const c=o(e);if(!s){if(c&&i(se,t))return Reflect.get(se,t,n);if("hasOwnProperty"===t)return ie}const l=Reflect.get(e,t,n);return(a(t)?ne.has(t):te(t))?l:(s||Y(e,0,t),r?l:$e(l)?c&&d(t)?l:l.value:f(l)?s?function(e){return ge(e,!0,ae,null,he)}(l):ve(l):l)}},ce=class extends oe{constructor(e=!1){super(!1,e)}set(e,t,n,s){let r=e[t];if(!this._isShallow){const t=_e(r);if(function(e){return!(!e||!e.__v_isShallow)}(n)||_e(n)||(r=ye(r),n=ye(n)),!o(e)&&$e(r)&&!$e(n))return!t&&(r.value=n,!0)}const c=o(e)&&d(t)?Number(t)<e.length:i(e,t),l=Reflect.set(e,t,n,s);return e===ye(s)&&(c?w(n,r)&&ee(e,"set",t,n):ee(e,"add",t,n)),l}deleteProperty(e,t){const n=i(e,t),s=(e[t],Reflect.deleteProperty(e,t));return s&&n&&ee(e,"delete",t,void 0),s}has(e,t){const n=Reflect.has(e,t);return a(t)&&ne.has(t)||Y(e,0,t),n}ownKeys(e){return Y(e,0,o(e)?"length":Q),Reflect.ownKeys(e)}},le=class extends oe{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}},ue=/* @__PURE__ */new ce,ae=/* @__PURE__ */new le,fe=/* @__PURE__ */new WeakMap,pe=/* @__PURE__ */new WeakMap,he=/* @__PURE__ */new WeakMap,de=/* @__PURE__ */new WeakMap;function me(e){return e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;default:return 0}}((e=>h(e).slice(8,-1))(e))}function ve(e){return _e(e)?e:ge(e,!1,ue,null,fe)}function ge(e,t,n,s,r){if(!f(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const o=me(e);if(0===o)return e;const c=new Proxy(e,2===o?s:n);return r.set(e,c),c}function _e(e){return!(!e||!e.__v_isReadonly)}function ye(e){const t=e&&e.__v_raw;return t?ye(t):e}var be=class{constructor(e,t,n,s){this.getter=e,this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new P(()=>e(this._value),()=>xe(this,2===this.effect._dirtyLevel?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=n}get value(){const e=ye(this);var t,n;return e._cacheable&&!e.effect.dirty||!w(e._value,e._value=e.effect.run())||xe(e,4),t=e,V&&j&&(t=ye(t),U(j,null!=(n=t.dep)?n:t.dep=H(()=>t.dep=void 0,t instanceof be?t:void 0))),e.effect._dirtyLevel>=2&&xe(e,2),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}};function we(e,n,s=!1){let r,i;const o="function"==typeof e;return o?(r=e,i=t):(r=e.get,i=e.set),new be(r,i,o||!i,s)}function xe(e,t=4,n,s){const r=(e=ye(e)).dep;r&&Z(r,t)}function $e(e){return!(!e||!0!==e.__v_isRef)}var ke=/* @__PURE__ */new Map,Oe=/* @__PURE__ */new Map,Se=/* @__PURE__ */new Map,Ee=/* @__PURE__ */new Map,Le=/* @__PURE__ */new Set,je=[],Ae=!1,Ne=()=>Ae||"undefined"!=typeof window&&!1===window.__LITE_VUE_DEVTOOLS__,Te={"scope:mount":/* @__PURE__ */new Set,"scope:unmount":/* @__PURE__ */new Set,"store:register":/* @__PURE__ */new Set,"plugin:install":/* @__PURE__ */new Set,flush:/* @__PURE__ */new Set},Pe=(e,...t)=>{Te[e].forEach(e=>e(...t))},Re=()=>{},Ie=(e,t,n,s)=>Ne()?Re:(ke.set(e,t),n&&Oe.set(e,n),s&&Se.set(e,s),Pe("scope:mount",e,t),()=>{ke.delete(e)&&(Oe.delete(e),Se.delete(e),Pe("scope:unmount",e))}),Ce={scopes:ke,exps:Oe,names:Se,stores:Ee,components:Le,plugins:je,getScopeByName(e){for(const[t,n]of Se)if(n===e)return ke.get(t)},getScope(e){let t=1===e.nodeType?e:e.parentElement;for(;t;){const e=ke.get(t);if(e)return e;t=t.parentElement}},on:(e,t)=>(Te[e].add(t),()=>Te[e].delete(t)),off(e,t){Te[e].delete(t)}},Me=()=>{Ae=!0,ke.clear(),Oe.clear(),Se.clear(),Ee.clear(),Le.clear(),je.length=0;for(const e in Te)Te[e].clear();"undefined"!=typeof window&&window.__LITE_VUE__===Ce&&delete window.__LITE_VUE__};"undefined"==typeof window||Ne()||(window.__LITE_VUE__=Ce);var We,Ve=[],ze=(e,t)=>{for(const s of Ve)try{s(e,t)}catch(n){}Ve.length||console.error(e)},Be=/* @__PURE__ */new WeakSet,Ke=e=>{Be.add(e),function(e){e.effect.stop()}(e)},qe=!1,De=[],Fe=Promise.resolve(),Ue=-1,Je=e=>Fe.then(e),Ze=e=>{De.includes(e,Ue+1)||De.push(e),qe||(qe=!0,Je(He))},He=()=>{const e=/* @__PURE__ */new Map;for(Ue=0;Ue<De.length;Ue++){const n=De[Ue];if(Be.has(n))continue;const s=(e.get(n)||0)+1;if(e.set(n,s),s>100)ze(Error("update loop"),{phase:"effect"});else try{n()}catch(t){ze(t,{phase:"effect"})}}De.length=0,Ue=-1,qe=!1,Te.flush.size&&!Ne()&&Pe("flush")},Ge=0,Qe=()=>{const e=Object.create(null);return(t="id")=>e[t]||(e[t]=`${t}-${++Ge}`)},Xe=e=>(t,n,s)=>{const r="function"==typeof t?t:()=>t.split(".").reduce((e,t)=>null==e?e:e[t],e.scope);let i,o=!1;const c=e.effect(()=>{const e=r(),t=i;if(i=e,o?e!==t:s?.immediate){K();try{n(e,t)}finally{q()}}o=!0});return()=>c.effect&&Ke(c)},Ye=/^(spellcheck|draggable|form|list|type)$/,et=({el:e,get:t,effect:n,arg:s,modifiers:r})=>{let i;"class"===s&&(e._class=e.getAttribute("class")),n(()=>{let n=t();if(s)r?.camel&&(s=g(s)),tt(e,s,n,i);else{for(const t in n)tt(e,t,n[t],i&&i[t]);for(const t in i)n&&t in n||tt(e,t,null)}i="[object Object]"===h(n)?{...n}:n})},tt=(e,t,n,s)=>{if("class"===t)e.setAttribute("class",L(e._class?[e._class,n]:n)||"");else if("style"===t){n=$(n);const{style:t}=e;if(n)if(u(n))n!==s&&(t.cssText=n);else{for(const e in n)st(t,e,n[e]);if(s&&!u(s))for(const e in s)null==n[e]&&st(t,e,"")}else e.removeAttribute("style")}else e instanceof SVGElement||!(t in e)||Ye.test(t)?"true-value"===t?e._trueValue=n:"false-value"===t?e._falseValue=n:null!=n?e.setAttribute(t,n):e.removeAttribute(t):(e[t]=null==n&&"string"==typeof e[t]?"":n,null==n&&e.removeAttribute(t),"value"===t&&(e._value=n))},nt=/\s*!important$/,st=(e,t,n)=>{o(n)?n.forEach(n=>st(e,t,n)):t.startsWith("--")?e.setProperty(t,n):nt.test(n)?e.setProperty(y(t),n.replace(nt,""),"important"):e[t]=n},rt=Object.create(null),it=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,ot=["ctrl","shift","alt","meta"],ct={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>ot.some(n=>e[`${n}Key`]&&!t[n])},lt={esc:"escape",space:" ",up:"arrow-up",down:"arrow-down",left:"arrow-left",right:"arrow-right",delete:"backspace"},ut=/^(stop|prevent|self|ctrl|shift|alt|meta|left|middle|right|exact|once|capture|passive|window|document|outside|debounce(-\d+)?|throttle(-\d+)?|prop-.+|name-.+)$/,at=({el:e,get:t,ctx:n,exp:s,arg:r,modifiers:i})=>{if(!r)return;const o=/\bawait\b/.test(s)?"async ":"",c=it.test(s)?t(`(e => ${s}(e))`):(e=>{const t=rt[e];if(void 0!==t)return t;try{return new Function(`return (${e})`),rt[e]=!0}catch{return rt[e]=!1}})(s)?t(`(${o}$event => (${s}))`):t(`(${o}$event => { ${s} })`);let l,u=(...e)=>{try{const t=c(...e);return t instanceof Promise&&t.catch(a),t}catch(t){a(t)}};function a(t){ze(t,{phase:"handler",source:`@${r}`,expression:s,el:e,scope:n.scope})}if("mounted"===r||"vue:mounted"===r){let e=!0;return Je(()=>{e&&u()}),()=>{e=!1}}if("unmounted"===r||"vue:unmounted"===r)return()=>u();if(i){"click"===r&&(i.right&&(r="contextmenu"),i.middle&&(r="mouseup"));let t=u;for(const e in i){let n=/^debounce(?:-(\d+))?$/.exec(e);if(n){const e=t,s=n[1]?+n[1]:250;t=t=>{clearTimeout(l),l=setTimeout(e,s,t)};continue}if(n=/^throttle(?:-(\d+))?$/.exec(e),n){const e=t,s=n[1]?+n[1]:250;let r=0;t=t=>{const n=Date.now();n-r>=s&&(r=n,e(t))}}}const n=Object.keys(i).filter(e=>!ut.test(e)||e in lt);u=s=>{if(!i.outside||!e.contains(s.target)){if("key"in s&&n.length){const e=y(s.key);if(!n.some(t=>t===e||lt[t]===e))return}for(const e in i){const t=ct[e];if(t&&t(s,i))return;if(e.startsWith("prop-")&&"propertyName"in s&&s.propertyName!==e.slice(5))return;if(e.startsWith("name-")&&"animationName"in s&&s.animationName!==e.slice(5))return}return t(s)}}}const f=i?.window?window:i?.document||i?.outside?document:e,p=r;return f.addEventListener(p,u,i),()=>{clearTimeout(l),f.removeEventListener(p,u,i)}},ft=({el:e,get:t,effect:n})=>{n(()=>{e.textContent=pt(t())})},pt=e=>null==e?"":f(e)?JSON.stringify(e,null,2):String(e),ht=(e,t)=>{const n=e.getAttribute(t);return null!=n&&e.removeAttribute(t),n},dt=e=>"_value"in e?e._value:e.value,mt=(e,t)=>{const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t},vt=e=>{e.target.composing=!0},gt=e=>{const t=e.target;t.composing&&(t.composing=!1,_t(t,"input"))},_t=(e,t)=>{e.dispatchEvent(new Event(t,{bubbles:!0,cancelable:!0}))},yt=Object.create(null),bt=0,wt=e=>e.replace(/^return\(([^]*)\)$/,"$1"),xt=(e,t,n,s)=>$t(e,`return(${t})`,n,s),$t=(e,t,n,s)=>{let r=yt[t];r||(++bt>1e3&&(yt=Object.create(null),bt=1),r=yt[t]=kt(t,n,s));try{return r(e,n,n&&(e=>(t,n)=>e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0})))(n))}catch(i){ze(i,{phase:"expression",expression:s?.expression??wt(t),source:s?.source,el:s?.el??n,scope:e})}},kt=(e,t,n)=>{try{return new Function("$data","$el","$dispatch",`with($data){${e}}`)}catch(s){return ze(s,{phase:"compile",expression:n?.expression??wt(e),source:n?.source,el:n?.el??t}),()=>{}}},Ot=/* @__PURE__ */new WeakMap,St=e=>{const t=We;return We=e,t},Et=(e,t=We)=>{if(!t)return;const n=Ot.get(t);n?n.push(e):Ot.set(t,[e])},Lt=e=>{const t=Ot.get(e);if(t){Ot.delete(e);for(const e of t)e()}let n=e.firstChild;for(;n;){const e=n.nextSibling;Lt(n),n=e}},jt={bind:et,on:at,show:({el:e,get:t,effect:n})=>{const s=e.style.display;n(()=>{e.style.display=t()?s:"none"})},text:ft,html:({el:e,get:t,effect:n})=>{n(()=>{e.innerHTML=t()??""})},model:({el:e,exp:t,get:n,effect:s,modifiers:r})=>{const i=e.type,c=n(`(val) => { ${t} = val }`),{trim:l,number:u="number"===i,lazy:a,fill:f}=r||{},p=[],h=(t,n)=>p.push(((e,t,n,s)=>(e.addEventListener(t,n,s),()=>e.removeEventListener(t,n,s)))(e,t,n));if("SELECT"===e.tagName){const t=e;h("change",()=>{const e=Array.prototype.filter.call(t.options,e=>e.selected).map(e=>u?x(dt(e)):dt(e));c(t.multiple?e:e[0])}),s(()=>{const e=n(),s=t.multiple;for(let n=0,r=t.options.length;n<r;n++){const r=t.options[n],i=dt(r);if(s)r.selected=o(e)&&N(e,i)>-1;else if(A(dt(r),e))return void(t.selectedIndex!==n&&(t.selectedIndex=n))}s||-1===t.selectedIndex||(t.selectedIndex=-1)})}else if("checkbox"===i)h("change",()=>{const t=n(),s=e.checked;if(o(t)){const n=dt(e),r=N(t,n),i=-1!==r;if(s&&!i)c(t.concat(n));else if(!s&&i){const e=[...t];e.splice(r,1),c(e)}}else c(mt(e,s))}),s(()=>{const t=n();o(t)?e.checked=N(t,dt(e))>-1:e.checked=A(t,mt(e,!0))});else if("radio"===i)h("change",()=>{c(dt(e))}),s(()=>{e.checked=A(n(),dt(e))});else{const t=e=>(l&&(e=e.trim()),u?x(e):e);let i,o=c;for(const e in r||{}){const t=/^debounce(?:-(\d+))?$/.exec(e);if(t){const e=t[1]?+t[1]:250;o=t=>{clearTimeout(i),i=setTimeout(c,e,t)},p.push(()=>clearTimeout(i))}}if(h("compositionstart",vt),h("compositionend",gt),h(a?"change":"input",()=>{e.composing||o(t(e.value))}),l&&h("change",()=>{e.value=e.value.trim()}),f){const s=n();null!=s&&""!==s||!e.value||c(t(e.value))}s(()=>{if(e.composing)return;const s=e.value,r=n();document.activeElement===e&&t(s)===r||s!==r&&(e.value=r)})}return()=>p.forEach(e=>e())},effect:({el:e,ctx:t,exp:n,effect:s})=>{let r=!0;return Je(()=>{if(!r)return;const i=St(e);try{s(()=>$t(t.scope,n,e,{source:"v-effect",el:e}))}finally{St(i)}}),()=>{r=!1}}},At=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Nt=/,([^,}\]]*)(?:,([^,}\]]*))?$/,Tt=/^\(|\)$/g,Pt=/^[{[]\s*((?:[\w_$]+\s*,?\s*)+)[\]}]$/,Rt=(e,t,n)=>{const s=t.match(At);if(!s)return;const r=e.nextSibling,i=new Text("");e.replaceWith(i);const c=()=>i.parentNode;St(i);const l=s[2].trim();let u,a,p,h,d=s[1].trim().replace(Tt,"").trim(),m=!1,v="key",g=e.getAttribute(v)||e.getAttribute(v=":key")||e.getAttribute(v="v-bind:key");g&&(e.removeAttribute(v),"key"===v&&(g=JSON.stringify(g))),(h=d.match(Nt))&&(d=d.replace(Nt,"").trim(),a=h[1].trim(),h[2]&&(p=h[2].trim())),(h=d.match(Pt))&&(u=h[1].split(",").map(e=>e.trim()),m="["===d[0]);let _,y,b,w=!1;const x=(t,s,r,i)=>{const o={};u?u.forEach((e,t)=>o[e]=s[m?t:e]):o[d]=s,i?(a&&(o[a]=i),p&&(o[p]=r)):a&&(o[a]=r);const c=g?xt(Object.setPrototypeOf(o,n.scope),g,e,{source:":key",el:e}):r;return t.set(c,r),{data:o,key:c}},$=(t,s)=>{const r=new tn(e,Yt(n,t.data));return r.key=t.key,r.insert(c(),s),r};return n.effect(()=>{const t=xt(n.scope,l,e,{source:"v-for",el:e}),s=b;if([y,b]=(e=>{const t=/* @__PURE__ */new Map,n=[];if(o(e))for(let s=0;s<e.length;s++)n.push(x(t,e[s],s));else if("number"==typeof e)for(let s=0;s<e;s++)n.push(x(t,s+1,s));else if(f(e)){let s=0;for(const r in e)n.push(x(t,e[r],s++,r))}return[n,t]})(t),w){for(let s=0;s<_.length;s++)b.has(_[s].key)||_[s].remove();const e=[];let t,n,r=y.length;for(;r--;){const o=y[r],l=s.get(o.key);let u;null==l?u=$(o,t?t.el:i):(u=_[l],Object.assign(u.ctx.scope,o.data),l!==r&&(_[l+1]===t&&n!==t||(n=u,u.insert(c(),t?t.el:i)))),e.unshift(t=u)}_=e}else _=y.map(e=>$(e,i)),w=!0}),r},It=({el:e,ctx:{scope:{$refs:t}},get:n,effect:s})=>{let r;return s(()=>{const s=n();t[s]=e,r&&s!==r&&delete t[r],r=s}),()=>{r&&delete t[r]}},Ct=["visible","idle","interaction"],Mt=["[v-scope]",...Ct.map(e=>`[v-scope\\.${e}]`)].join(","),Wt=["pointerdown","keydown","focusin"],Vt=(e,t,n,s)=>{const r=Ct.find(t=>e.hasAttribute(`v-scope.${t}`));if(!r)return!1;const i=`v-scope.${r}`,o=((e,t,n)=>{let s=!1;const r=()=>{s||(s=!0,i(),n())};let i=()=>{};if("visible"===t&&"function"==typeof IntersectionObserver){const t=new IntersectionObserver(e=>{e.some(e=>e.isIntersecting)&&r()});t.observe(e),i=()=>t.disconnect()}else if("interaction"!==t){const e=window.requestIdleCallback,t=e?e(r):setTimeout(r);i=()=>e?window.cancelIdleCallback(t):clearTimeout(t)}else{for(const t of Wt)e.addEventListener(t,r);i=()=>{for(const t of Wt)e.removeEventListener(t,r)}}return()=>{s=!0,i()}})(e,r,()=>{e.hasAttribute(i)&&(e.setAttribute("v-scope",e.getAttribute(i)),e.removeAttribute(i),n(e,t,s))});return t.cleanups.push(o),Et(o),!0},zt=/^(?:v-|:|@)/,Bt=/\.([\w-]+)/g,Kt=!1,qt=(e,t)=>{e.cleanups.push(t),Et(()=>{const n=e.cleanups.indexOf(t);n>-1&&(e.cleanups.splice(n,1),t())})},Dt=(e,t,n)=>{const s=Kt;Kt=n;try{Ft(e,t)}finally{Kt=s}},Ft=(e,t)=>{const n=St(e);try{return Ut(e,t)}finally{St(n)}},Ut=(e,t)=>{const n=e.nodeType;if(1===n){const n=e;if(n.hasAttribute("v-pre"))return;if(Vt(n,t,Dt,Kt))return;let s;if(ht(n,"v-cloak"),null!=(s=ht(n,"v-if")))return((e,t,n)=>{const s=new Comment("v-if");e.before(s);const r=[{exp:t.trim()||"0",el:e}];let i,o;for(;(i=e.nextElementSibling)&&(o=null,""===ht(i,"v-else")||(o=ht(i,"v-else-if")));)i.remove(),r.push({exp:o,el:i});const c=e.nextSibling;let l;e.remove(),St(s);let u=-1;const a=()=>{l&&(s.parentNode||l.el.before(s),l.remove(),l=void 0)};let f;const p=()=>Ke(f);return f=n.effect(()=>{for(let e=0;e<r.length;e++){const{exp:t,el:i}=r[e];if(!t||xt(n.scope,t,i,{source:"v-if",el:i})){if(e!==u){a();const t=s.parentNode;l=new tn(i,n),l.insert(t,s),Et(p,l.el),l.el.parentNode===t&&s.remove(),u=e}return}}u=-1,a()}),Et(p,s),c})(n,s,t);if(s=ht(n,"v-for"))return Rt(n,s,t);const r=ht(n,"v-name");let i;if(s=ht(n,"v-teleport")){const e=document.querySelector(s);e&&(i=n.nextSibling,n.__teleported=!0,e.appendChild(n),t.cleanups.push(()=>n.remove()))}if((s=ht(n,"v-scope"))||""===s){const e=(s?xt(t.scope,s,n,{source:"v-scope",el:n}):{})||{};t=Yt(t,e),n.__ctx=t,qt(t,Ie(n,t.scope,s||void 0,r||void 0)),e.$template&&Gt(n,e.$template)}const o=null!=ht(n,"v-once");o&&(Kt=!0),(s=ht(n,"ref"))&&Ht(n,It,`"${s}"`,t),Jt(n,t);const c=[];for(const{name:e,value:l}of[...n.attributes])zt.test(e)&&"v-cloak"!==e&&("v-model"===e||e.startsWith("v-model.")?c.unshift([e,l]):"@"===e[0]||/^v-on\b/.test(e)?c.push([e,l]):Zt(n,e,l,t));for(const[e,l]of c)Zt(n,e,l,t);return o&&(Kt=!1),i}if(3===n){const n=e.data;if(n.includes(t.delimiters[0])){let s,r=[],i=0;for(;s=t.delimitersRE.exec(n);){const e=n.slice(i,s.index);e&&r.push(JSON.stringify(e)),r.push(`$s(${s[1]})`),i=s.index+s[0].length}i<n.length&&r.push(JSON.stringify(n.slice(i))),Ht(e,ft,r.join("+"),t,void 0,void 0,"{{ }}",n.trim())}}else 11===n&&Jt(e,t)},Jt=(e,t)=>{let n=e.firstChild;for(;n;)n=Ft(n,t)||n.nextSibling},Zt=(e,t,n,s)=>{let r,i,o;const c=t;if(":"===(t=t.replace(Bt,(e,t)=>((o||(o={}))[t]=!0,"")))[0])r=et,i=t.slice(1);else if("@"===t[0])r=at,i=t.slice(1);else{const e=t.indexOf(":"),n=e>0?t.slice(2,e):t.slice(2);r=jt[n]||s.dirs[n],i=e>0?t.slice(e+1):void 0}r&&(r===et&&"ref"===i&&(r=It),Ht(e,r,n,s,i,o,c),e.removeAttribute(c))},Ht=(e,t,n,s,r,i,o,c)=>{const l={source:o,el:e,expression:c},u=(t=n)=>xt(s.scope,t,e,l);let a;try{a=t({el:e,get:u,effect:s.effect,ctx:s,exp:n,arg:r,modifiers:i})}catch(f){return void ze(f,{phase:"directive",source:o,el:e,expression:n})}a&&qt(s,a)},Gt=(e,t)=>{if("#"===t[0]){const n=document.querySelector(t);if(!n)return;return void e.appendChild(n.content.cloneNode(!0))}e.innerHTML=t},Qt=e=>{const t={delimiters:["{{","}}"],delimitersRE:/\{\{([^]+?)\}\}/g,...e,scope:e?e.scope:ve({}),dirs:e?e.dirs:{},effects:[],blocks:[],cleanups:[],effect:e=>{if(Kt)return Ze(e),e;const n=W(e,{scheduler:()=>Ze(n)});return t.effects.push(n),Et(()=>{Ke(n),s(t.effects,n)}),n}};return t},Xt=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Yt=(e,t={})=>{const n=e.scope,s=Object.create(n);Object.defineProperties(s,Object.getOwnPropertyDescriptors(t)),Xt(s,"$refs",Object.create(n.$refs));const r=ve(new Proxy(s,{set:(e,t,s,o)=>o!==r||i(e,t)?Reflect.set(e,t,s,o):Reflect.set(n,t,s)})),o={...e,scope:r};return Xt(s,"$watch",Xe(o)),Xt(s,"$id",Qe()),en(r),o},en=e=>{for(const t of Object.keys(e)){const n=Object.getOwnPropertyDescriptor(e,t).value;"function"==typeof n&&(e[t]=n.bind(e))}},tn=class{template;ctx;key;parentCtx;isFragment;start;end;owned=!1;get el(){return this.start||this.template}constructor(e,t,n=!1){this.isFragment=e instanceof HTMLTemplateElement,n?this.template=e:this.isFragment?this.template=e.content.cloneNode(!0):this.template=e.cloneNode(!0),n||(this.parentCtx=t,t.blocks.push(this)),this.ctx=Qt(t),Ft(this.template,this.ctx)}insert(e,t=null){if(this.isFragment)if(this.start){let n,s=this.start;for(;s&&(n=s.nextSibling,e.insertBefore(s,t),s!==this.end);)s=n}else this.start=new Text(""),this.end=new Text(""),e.insertBefore(this.end,t),e.insertBefore(this.start,this.end),e.insertBefore(this.template,this.end);else this.template.__teleported||e.insertBefore(this.template,t);this.owned||(this.owned=!0,Et(()=>this.discard(),this.el))}remove(){this.parentCtx&&s(this.parentCtx.blocks,this);const e=()=>{const e=this.start?this.start.parentNode:this.template.parentNode;if(e)if(this.start){let t,n=this.start;for(;n&&(t=n.nextSibling,e.removeChild(n),n!==this.end);)n=t}else e.removeChild(this.template);this.teardown()},t=[];let n=this.start||this.template;for(;n;){const e=n.__leave;if(e&&t.push(e()),!this.start||n===this.end)break;n=n.nextSibling}t.length?Promise.all(t).then(e):e()}discard(){this.parentCtx&&s(this.parentCtx.blocks,this),this.teardown()}teardown(){this.ctx.blocks.splice(0).forEach(e=>{e.teardown()}),this.ctx.effects.splice(0).forEach(Ke),this.ctx.cleanups.splice(0).forEach(e=>e())}},nn=ve(Object.create(null)),sn=(e,t)=>(void 0!==t&&(nn[e]=t,"function"==typeof nn[e].init&&nn[e].init(),((e,t)=>{Ne()||(Ee.set(e,t),Pe("store:register",e,t))})(e,nn[e])),nn[e]),rn=e=>e.replace(/[-.*+?^${}()|[\]/\\]/g,"\\$&"),on=e=>{const t=Qt();if("function"==typeof e&&(e=e()),e&&(t.scope=ve(e),en(t.scope),e.$delimiters)){const[n,s]=t.delimiters=e.$delimiters;t.delimitersRE=new RegExp(rn(n)+"([^]+?)"+rn(s),"g")}t.scope.$s=pt,t.scope.$nextTick=Je,t.scope.$refs=Object.create(null),t.scope.$store=nn,t.scope.$watch=Xe(t),t.scope.$id=Qe(),Object.defineProperty(t.scope,"$root",{value:t.scope,enumerable:!1});const n=Object.create(null);let s=[];const r=[],i=/* @__PURE__ */new Set,o=[],c=[],l={get scope(){return t.scope},directive(e,n){return n?(t.dirs[e]=n,this):t.dirs[e]},component(e,s){return s?(!(e in n)&&e in t.scope||(n[e]=s,(e=>{Ne()||Le.add(e)})(e),t.scope[e]=s),this):n[e]},onError(e){const t=(n=e,Ve.push(n),()=>{const e=Ve.indexOf(n);e>-1&&Ve.splice(e,1)});var n;return c.push(t),()=>{const e=c.indexOf(t);e>-1&&c.splice(e,1),t()}},use(e,t){if(!i.has(e)){i.add(e);const n=("function"==typeof e?e:e.install)(l,t);"function"==typeof n&&o.push(n)}return l},mount(e){if("string"==typeof e){const t=document.querySelector(e);if(!t)return;e=t}let n;n=(e=e||document.documentElement).matches(Mt)?[e]:[...e.querySelectorAll(Mt)].filter(e=>!e.matches(`:where(${Mt}) *`)),n.length||(n=[e]),t.walk??=Ft,t.dispose??=Lt;for(const r of n){const e=r.getAttribute("v-name"),n=new tn(r,t,!0);r.__ctx??=n.ctx,Ce.scopes.has(r)||r.matches(Mt)||n.ctx.cleanups.push(Ie(r,n.ctx.scope,void 0,e||void 0)),s.push(n)}return this},unmount(e){if(null==e)return s.forEach(e=>e.teardown()),s=[],r.splice(0).forEach(e=>e()),o.splice(0).forEach(e=>{try{e()}catch(t){ze(t,{phase:"teardown",source:"plugin"})}}),i.clear(),void c.splice(0).forEach(e=>e());const t="string"==typeof e?document.querySelector(e):e;if(!t)return;const n=[];for(const r of s){const e=r.template;t.contains(e)?r.teardown():n.push(r)}s=n}};return l},cn=e=>{let t;return t=W(e,{scheduler:()=>Ze(t)}),()=>Ke(t)},ln=document.currentScript;ln&&ln.hasAttribute("init")&&on().mount();export{we as computed,on as createApp,Ce as devtools,Me as disableDevtools,Je as nextTick,ve as reactive,sn as store,cn as watchEffect};
|