Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@vue/composition-api

Package Overview
Dependencies
Maintainers
4
Versions
106
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vue/composition-api - npm Package Compare versions

Comparing version 1.0.0-beta.20 to 1.0.0-beta.21

15

CHANGELOG.md

@@ -0,1 +1,16 @@

<a name="1.0.0-beta.21"></a>
# [1.0.0-beta.21](https://github.com/vuejs/composition-api/compare/v1.0.0-beta.20...v1.0.0-beta.21) (2020-12-07)
### Bug Fixes
* destructure `attrs` from context keep reactive, close [#264](https://github.com/vuejs/composition-api/issues/264) ([#594](https://github.com/vuejs/composition-api/issues/594)) ([4eecd66](https://github.com/vuejs/composition-api/commit/4eecd66))
### Features
* add type-level `readonly()` api ([#593](https://github.com/vuejs/composition-api/issues/593)) ([3b726d4](https://github.com/vuejs/composition-api/commit/3b726d4))
<a name="1.0.0-beta.20"></a>

@@ -2,0 +17,0 @@ # [1.0.0-beta.20](https://github.com/vuejs/composition-api/compare/v1.0.0-beta.19...v1.0.0-beta.20) (2020-11-24)

26

dist/index.d.ts

@@ -70,4 +70,4 @@ import Vue$1, { VueConstructor, ComponentOptions, VNode, CreateElement } from 'vue';

} & Readonly<P> & ShallowUnwrapRef<B> & D & M & ExtractComputedReturns<C> & Omit<Vue$1, '$data' | '$props' | '$attrs'>;
declare type VueConstructorProxy<PropsOptions, RawBindings> = VueConstructor & {
new (...args: any[]): ComponentRenderProxy<ExtractPropTypes<PropsOptions>, ShallowUnwrapRef<RawBindings>, ExtractPropTypes<PropsOptions>, {}, {}, ExtractPropTypes<PropsOptions>, ExtractDefaultPropTypes<PropsOptions>, true>;
declare type VueConstructorProxy<PropsOptions, RawBindings, Data, Computed extends ComputedOptions, Methods extends MethodOptions> = VueConstructor & {
new (...args: any[]): ComponentRenderProxy<ExtractPropTypes<PropsOptions>, ShallowUnwrapRef<RawBindings>, Data, Computed, Methods, ExtractPropTypes<PropsOptions>, ExtractDefaultPropTypes<PropsOptions>, true>;
};

@@ -81,3 +81,3 @@ declare type DefaultData<V> = object | ((this: V) => object);

};
declare type VueProxy<PropsOptions, RawBindings, Data = DefaultData<Vue$1>, Computed = DefaultComputed, Methods = DefaultMethods<Vue$1>> = ComponentOptions<Vue$1, ShallowUnwrapRef<RawBindings> & Data, Methods, Computed, PropsOptions, ExtractPropTypes<PropsOptions>> & VueConstructorProxy<PropsOptions, RawBindings>;
declare type VueProxy<PropsOptions, RawBindings, Data = DefaultData<Vue$1>, Computed extends ComputedOptions = DefaultComputed, Methods extends MethodOptions = DefaultMethods<Vue$1>> = ComponentOptions<Vue$1, ShallowUnwrapRef<RawBindings> & Data, Methods, Computed, PropsOptions, ExtractPropTypes<PropsOptions>> & VueConstructorProxy<PropsOptions, RawBindings, Data, Computed, Methods>;

@@ -252,3 +252,2 @@ interface SetupContext {

declare function isRaw(obj: any): boolean;
declare function isReadonly(obj: any): boolean;
declare function isReactive(obj: any): boolean;

@@ -260,3 +259,2 @@ declare function shallowReactive<T extends object = any>(obj: T): T;

declare function reactive<T extends object>(obj: T): UnwrapRef<T>;
declare function shallowReadonly<T extends object>(obj: T): Readonly<T>;
/**

@@ -268,3 +266,19 @@ * Make sure obj can't be a reactive

declare function isReadonly(obj: any): boolean;
declare type Primitive = string | number | boolean | bigint | symbol | undefined | null;
declare type Builtin = Primitive | Function | Date | Error | RegExp;
declare type DeepReadonly<T> = T extends Builtin ? T : T extends Map<infer K, infer V> ? ReadonlyMap<DeepReadonly<K>, DeepReadonly<V>> : T extends ReadonlyMap<infer K, infer V> ? ReadonlyMap<DeepReadonly<K>, DeepReadonly<V>> : T extends WeakMap<infer K, infer V> ? WeakMap<DeepReadonly<K>, DeepReadonly<V>> : T extends Set<infer U> ? ReadonlySet<DeepReadonly<U>> : T extends ReadonlySet<infer U> ? ReadonlySet<DeepReadonly<U>> : T extends WeakSet<infer U> ? WeakSet<DeepReadonly<U>> : T extends Promise<infer U> ? Promise<DeepReadonly<U>> : T extends {} ? {
readonly [K in keyof T]: DeepReadonly<T[K]>;
} : Readonly<T>;
declare type UnwrapNestedRefs<T> = T extends Ref ? T : UnwrapRef<T>;
/**
* **In @vue/composition-api, `reactive` only provides type-level readonly check**
*
* Creates a readonly copy of the original object. Note the returned copy is not
* made reactive, but `readonly` can be called on an already reactive object.
*/
declare function readonly<T extends object>(target: T): DeepReadonly<UnwrapNestedRefs<T>>;
declare function shallowReadonly<T extends object>(obj: T): Readonly<T>;
/**
* Set a property on an object. Adds the new property, triggers change

@@ -377,2 +391,2 @@ * notification and intercept it's subsequent access if the property doesn't

export default Plugin;
export { ComponentRenderProxy, ComputedRef, FlushMode, InjectionKey, PropOptions, PropType, Ref, SetupContext, ShallowUnwrapRef, UnwrapRef, VueWatcher, WatchCallback, WatchEffect, WatchOptions, WatchOptionsBase, WatchSource, WatchStopHandle, WritableComputedRef, computed, createApp, customRef, defineComponent, del, getCurrentInstance, createElement as h, inject, isRaw, isReactive, isReadonly, isRef, markRaw, nextTick, onActivated, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactivated, onErrorCaptured, onMounted, onServerPrefetch, onUnmounted, onUpdated, provide, proxyRefs, reactive, ref, set, shallowReactive, shallowReadonly, shallowRef, toRaw, toRef, toRefs, triggerRef, unref, useCSSModule, version, warn, watch, watchEffect };
export { ComponentRenderProxy, ComputedRef, DeepReadonly, FlushMode, InjectionKey, PropOptions, PropType, Ref, SetupContext, ShallowUnwrapRef, UnwrapRef, VueWatcher, WatchCallback, WatchEffect, WatchOptions, WatchOptionsBase, WatchSource, WatchStopHandle, WritableComputedRef, computed, createApp, customRef, defineComponent, del, getCurrentInstance, createElement as h, inject, isRaw, isReactive, isReadonly, isRef, markRaw, nextTick, onActivated, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactivated, onErrorCaptured, onMounted, onServerPrefetch, onUnmounted, onUpdated, provide, proxyRefs, reactive, readonly, ref, set, shallowReactive, shallowReadonly, shallowRef, toRaw, toRef, toRefs, triggerRef, unref, useCSSModule, version, warn, watch, watchEffect };

@@ -420,5 +420,2 @@ 'use strict';

}
function isReadonly(obj) {
return readonlySet.has(obj);
}
function isReactive(obj) {

@@ -624,4 +621,39 @@ var _a;

}
/**
* Make sure obj can't be a reactive
*/
function markRaw(obj) {
if (!(isPlainObject(obj) || isArray(obj)) || !Object.isExtensible(obj)) {
return obj;
}
// set the vue observable flag at obj
var ob = createObserver();
ob.__raw__ = true;
def(obj, '__ob__', ob);
// mark as Raw
rawSet.set(obj, true);
return obj;
}
function toRaw(observed) {
var _a, _b;
if (isRaw(observed) || !Object.isExtensible(observed)) {
return observed;
}
return ((_b = (_a = observed) === null || _a === void 0 ? void 0 : _a.__ob__) === null || _b === void 0 ? void 0 : _b.value) || observed;
}
function isReadonly(obj) {
return readonlySet.has(obj);
}
/**
* **In @vue/composition-api, `reactive` only provides type-level readonly check**
*
* Creates a readonly copy of the original object. Note the returned copy is not
* made reactive, but `readonly` can be called on an already reactive object.
*/
function readonly(target) {
return target;
}
function shallowReadonly(obj) {
var e_2, _a;
var e_1, _a;
if (!(isPlainObject(obj) || isArray(obj)) || !Object.isExtensible(obj)) {

@@ -633,3 +665,3 @@ return obj;

var ob = source.__ob__;
var _loop_2 = function (key) {
var _loop_1 = function (key) {
var val = obj[key];

@@ -646,3 +678,3 @@ var getter;

if ((!getter || setter) /* not only have getter */ &&
arguments_2.length === 2) {
arguments_1.length === 2) {
val = obj[key];

@@ -666,10 +698,10 @@ }

};
var arguments_2 = arguments;
var arguments_1 = arguments;
try {
for (var _b = __values(Object.keys(obj)), _c = _b.next(); !_c.done; _c = _b.next()) {
var key = _c.value;
_loop_2(key);
_loop_1(key);
}
}
catch (e_2_1) { e_2 = { error: e_2_1 }; }
catch (e_1_1) { e_1 = { error: e_1_1 }; }
finally {

@@ -679,3 +711,3 @@ try {

}
finally { if (e_2) throw e_2.error; }
finally { if (e_1) throw e_1.error; }
}

@@ -685,24 +717,2 @@ readonlySet.set(readonlyObj, true);

}
/**
* Make sure obj can't be a reactive
*/
function markRaw(obj) {
if (!(isPlainObject(obj) || isArray(obj)) || !Object.isExtensible(obj)) {
return obj;
}
// set the vue observable flag at obj
var ob = createObserver();
ob.__raw__ = true;
def(obj, '__ob__', ob);
// mark as Raw
rawSet.set(obj, true);
return obj;
}
function toRaw(observed) {
var _a, _b;
if (isRaw(observed) || !Object.isExtensible(observed)) {
return observed;
}
return ((_b = (_a = observed) === null || _a === void 0 ? void 0 : _a.__ob__) === null || _b === void 0 ? void 0 : _b.value) || observed;
}

@@ -1548,10 +1558,7 @@ /**

function createSetupContext(vm) {
var ctx = {
slots: {},
};
var props = [
var ctx = { slots: {} };
var propsPlain = [
'root',
'parent',
'refs',
'attrs',
'listeners',

@@ -1561,21 +1568,48 @@ 'isServer',

];
var propsReactiveProxy = ['attrs'];
var methodReturnVoid = ['emit'];
props.forEach(function (key) {
var _a;
var targetKey;
var srcKey;
if (Array.isArray(key)) {
_a = __read(key, 2), targetKey = _a[0], srcKey = _a[1];
}
else {
targetKey = srcKey = key;
}
srcKey = "$" + srcKey;
proxy(ctx, targetKey, {
propsPlain.forEach(function (key) {
var srcKey = "$" + key;
proxy(ctx, key, {
get: function () { return vm[srcKey]; },
set: function () {
warn("Cannot assign to '" + targetKey + "' because it is a read-only property", vm);
warn("Cannot assign to '" + key + "' because it is a read-only property", vm);
},
});
});
propsReactiveProxy.forEach(function (key) {
var srcKey = "$" + key;
proxy(ctx, key, {
get: function () {
var e_1, _a;
var data = reactive({});
var source = vm[srcKey];
var _loop_1 = function (attr) {
proxy(data, attr, {
get: function () {
// to ensure it always return the latest value
return vm[srcKey][attr];
},
});
};
try {
for (var _b = __values(Object.keys(source)), _c = _b.next(); !_c.done; _c = _b.next()) {
var attr = _c.value;
_loop_1(attr);
}
}
catch (e_1_1) { e_1 = { error: e_1_1 }; }
finally {
try {
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
}
finally { if (e_1) throw e_1.error; }
}
return data;
},
set: function () {
warn("Cannot assign to '" + key + "' because it is a read-only property", vm);
},
});
});
methodReturnVoid.forEach(function (key) {

@@ -1666,3 +1700,3 @@ var srcKey = "$" + key;

var version = "1.0.0-beta.20";
var version = "1.0.0-beta.21";
// auto install when using CDN

@@ -1701,2 +1735,3 @@ if (typeof window !== 'undefined' && window.Vue) {

exports.reactive = reactive;
exports.readonly = readonly;
exports.ref = ref;

@@ -1703,0 +1738,0 @@ exports.set = set;

@@ -1,2 +0,2 @@

"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}Object.defineProperty(exports,"__esModule",{value:!0});var t=e(require("vue"));function n(e){return"function"==typeof e&&/native code/.test(e.toString())}var r="undefined"!=typeof Symbol&&n(Symbol)&&"undefined"!=typeof Reflect&&n(Reflect.ownKeys),o=function(e){return e},i={enumerable:!0,configurable:!0,get:o,set:o};function u(e,t,n){var r=n.get,u=n.set;i.get=r||o,i.set=u||o,Object.defineProperty(e,t,i)}function a(e,t,n,r){Object.defineProperty(e,t,{value:n,enumerable:!!r,writable:!0,configurable:!0})}function f(e,t){return Object.hasOwnProperty.call(e,t)}function c(e){return Array.isArray(e)}function s(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function l(e){return"[object Object]"===function(e){return Object.prototype.toString.call(e)}(e)}function v(e){return"function"==typeof e}function p(e,n){t.default.util.warn(e,n)}var d=void 0;try{var _=require("vue");_&&g(_)?d=_:_&&"default"in _&&g(_.default)&&(d=_.default)}catch(e){}var y,b=null,h=null;function g(e){return e&&"function"==typeof e&&"Vue"===e.name}function m(){return b}function x(){return h}function w(e){h=e}function j(e){return x()}function O(e,t){void 0===t&&(t={});var n=e.config.silent;e.config.silent=!0;var r=new e(t);return e.config.silent=n,r}function $(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e.$scopedSlots[t]?e.$scopedSlots[t].apply(e,n):p("slots."+t+'() got called outside of the "render()" scope',e)}}var k=function(){return(k=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};
"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}Object.defineProperty(exports,"__esModule",{value:!0});var t=e(require("vue"));function n(e){return"function"==typeof e&&/native code/.test(e.toString())}var r="undefined"!=typeof Symbol&&n(Symbol)&&"undefined"!=typeof Reflect&&n(Reflect.ownKeys),o=function(e){return e},i={enumerable:!0,configurable:!0,get:o,set:o};function u(e,t,n){var r=n.get,u=n.set;i.get=r||o,i.set=u||o,Object.defineProperty(e,t,i)}function a(e,t,n,r){Object.defineProperty(e,t,{value:n,enumerable:!!r,writable:!0,configurable:!0})}function f(e,t){return Object.hasOwnProperty.call(e,t)}function c(e){return Array.isArray(e)}function s(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function l(e){return"[object Object]"===function(e){return Object.prototype.toString.call(e)}(e)}function v(e){return"function"==typeof e}function p(e,n){t.default.util.warn(e,n)}var d=void 0;try{var y=require("vue");y&&g(y)?d=y:y&&"default"in y&&g(y.default)&&(d=y.default)}catch(e){}var _,b=null,h=null;function g(e){return e&&"function"==typeof e&&"Vue"===e.name}function m(){return b}function x(){return h}function w(e){h=e}function j(e){return x()}function O(e,t){void 0===t&&(t={});var n=e.config.silent;e.config.silent=!0;var r=new e(t);return e.config.silent=n,r}function $(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e.$scopedSlots[t]?e.$scopedSlots[t].apply(e,n):p("slots."+t+'() got called outside of the "render()" scope',e)}}var k=function(){return(k=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};
/*! *****************************************************************************

@@ -15,2 +15,2 @@ Copyright (c) Microsoft Corporation.

PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */function S(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function R(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),u=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)u.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return u}function E(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(R(arguments[t]));return e}function A(e){return r?Symbol.for(e):e}var P=A("composition-api.preFlushQueue"),M=A("composition-api.postFlushQueue"),C="composition-api.refKey",D=new WeakMap,B=new WeakMap,U=new WeakMap,V=function(e){u(this,"value",{get:e.get,set:e.set})};function W(e,t){var n=new V(e),r=Object.seal(n);return U.set(r,!0),r}function z(e){var t;if(F(e))return e;var n=X(((t={})[C]=e,t));return W({get:function(){return n[C]},set:function(e){return n[C]=e}})}function F(e){return e instanceof V}function T(e){return F(e)?e.value:e}function I(e){if(!l(e))return e;var t={};for(var n in e)t[n]=K(e,n);return t}function K(e,t){var n=e[t];return F(n)?n:W({get:function(){return e[t]},set:function(n){return e[t]=n}})}function q(e){var t;return Boolean((null==e?void 0:e.__ob__)&&(null===(t=e.__ob__)||void 0===t?void 0:t.__raw__))}function Q(e){var t;return Boolean((null==e?void 0:e.__ob__)&&!(null===(t=e.__ob__)||void 0===t?void 0:t.__raw__))}function J(e){if(!(!l(e)||q(e)||Array.isArray(e)||F(e)||function(e){var t=m();return t&&e instanceof t}(e)||D.has(e))){D.set(e,!0);for(var t=Object.keys(e),n=0;n<t.length;n++)N(e,t[n])}}function N(e,t,n){if("__ob__"!==t&&!q(e[t])){var r,o,i=Object.getOwnPropertyDescriptor(e,t);if(i){if(!1===i.configurable)return;r=i.get,o=i.set,r&&!o||2!==arguments.length||(n=e[t])}J(n),Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){var o=r?r.call(e):n;return t!==C&&F(o)?o.value:o},set:function(i){if(!r||o){var u=r?r.call(e):n;t!==C&&F(u)&&!F(i)?u.value=i:o?o.call(e,i):n=i,J(i)}}})}}function G(e){var t,n=b||d;n.observable?t=n.observable(e):t=O(n,{data:{$$state:e}})._data.$$state;return f(t,"__ob__")||a(t,"__ob__",function(e){void 0===e&&(e={});return{value:e,dep:{notify:o,depend:o,addSub:o,removeSub:o}}}(t)),t}function H(){return G({}).__ob__}function L(e){var t,n;if(!l(e)&&!c(e)||q(e)||!Object.isExtensible(e))return e;var r=G({});J(r);var o=r.__ob__,i=function(t){var n,i,a=e[t],f=Object.getOwnPropertyDescriptor(e,t);if(f){if(!1===f.configurable)return"continue";n=f.get,i=f.set,n&&!i||2!==u.length||(a=e[t])}Object.defineProperty(r,t,{enumerable:!0,configurable:!0,get:function(){var t,r=n?n.call(e):a;return null===(t=o.dep)||void 0===t||t.depend(),r},set:function(t){var r;n&&!i||(i?i.call(e,t):a=t,null===(r=o.dep)||void 0===r||r.notify())}})},u=arguments;try{for(var a=S(Object.keys(e)),f=a.next();!f.done;f=a.next()){var s=f.value;i(s)}}catch(e){t={error:e}}finally{try{f&&!f.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return r}function X(e){if(!l(e)&&!c(e)||q(e)||!Object.isExtensible(e))return e;var t=G(e);return J(t),t}function Y(e){return function(t){var n,r=j(((n=e)[0].toUpperCase(),n.slice(1)));r&&function(e,t,n,r){var o=t.$options,i=e.config.optionMergeStrategies[n];o[n]=i(o[n],function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=x();w(e);try{return t.apply(void 0,E(n))}finally{w(o)}}}(t,r))}(m(),r,e,t)}}var Z,ee=Y("beforeMount"),te=Y("mounted"),ne=Y("beforeUpdate"),re=Y("updated"),oe=Y("beforeDestroy"),ie=Y("destroyed"),ue=Y("errorCaptured"),ae=Y("activated"),fe=Y("deactivated"),ce=Y("serverPrefetch");function se(){pe(this,P)}function le(){pe(this,M)}function ve(){var e=x();return e?function(e){return void 0!==e[P]}(e)||function(e){e[P]=[],e[M]=[],e.$on("hook:beforeUpdate",se),e.$on("hook:updated",le)}(e):(Z||(Z=O(m())),e=Z),e}function pe(e,t){for(var n=e[t],r=0;r<n.length;r++)n[r]();n.length=0}function de(e,t,n){var r=function(){e.$nextTick((function(){e[P].length&&pe(e,P),e[M].length&&pe(e,M)}))};switch(n){case"pre":r(),e[P].push(t);break;case"post":r(),e[M].push(t);break;default:!function(e,t){if(!e)throw new Error("[vue-composition-api] "+t)}(!1,'flush must be one of ["post", "pre", "sync"], but got '+n)}}function _e(e,t){var n=e.teardown;e.teardown=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];n.apply(e,r),t()}}function ye(e,t,n,r){var i,u,a=r.flush,f="sync"===a,c=function(e){u=function(){try{e()}catch(e){!function(e,t,n){if("undefined"==typeof window||"undefined"==typeof console)throw e;console.error(e)}(e)}}},s=function(){u&&(u(),u=null)},l=function(t){return f||e===Z?t:function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return de(e,(function(){t.apply(void 0,E(n))}),a)}};if(null===n){var d=!1,_=function(e,t,n,r){var o=e._watchers.length;return e.$watch(t,n,{immediate:r.immediateInvokeCallback,deep:r.deep,lazy:r.noRun,sync:r.sync,before:r.before}),e._watchers[o]}(e,(function(){if(!d)try{d=!0,t(c)}finally{d=!1}}),o,{deep:r.deep||!1,sync:f,before:s});_e(_,s),_.lazy=!1;var y=_.get.bind(_);return _.get=l(y),function(){_.teardown()}}var b,h=r.deep;Array.isArray(t)?b=function(){return t.map((function(e){return F(e)?e.value:e()}))}:F(t)?b=function(){return t.value}:Q(t)?(b=function(){return t},h=!0):v(t)?b=t:(b=o,p("Invalid watch source: "+JSON.stringify(t)+".\n A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.",e));var g=function(e,t){s(),n(e,t,c)},m=l(g);if(r.immediate){var x=m,w=function(e,t){w=x,g(e,t)};m=function(e,t){w(e,t)}}var j=e.$watch(b,m,{immediate:r.immediate,deep:h,sync:f}),O=e._watchers[e._watchers.length-1];return Q(O.value)&&(null===(i=O.value.__ob__)||void 0===i?void 0:i.dep)&&h&&O.value.__ob__.dep.addSub({update:function(){O.run()}}),_e(O,s),function(){j()}}var be={};var he={};var ge;var me={set:function(e,t,n){(e.__composition_api_state__=e.__composition_api_state__||{})[t]=n},get:function(e,t){return(e.__composition_api_state__||{})[t]}};function xe(e){var t=me.get(e,"rawBindings")||{};if(t&&Object.keys(t).length){for(var n=e.$refs,r=me.get(e,"refs")||[],o=0;o<r.length;o++){var i=t[f=r[o]];!n[f]&&i&&F(i)&&(i.value=null)}var u=Object.keys(n),a=[];for(o=0;o<u.length;o++){var f;i=t[f=u[o]];n[f]&&i&&F(i)&&(i.value=n[f],a.push(f))}me.set(e,"refs",a)}}function we(e,t){var n=e.$options._parentVnode;if(n){for(var r=me.get(e,"slots")||[],o=function(e,t){var n;if(e){if(e._normalized)return e._normalized;for(var r in n={},e)e[r]&&"$"!==r[0]&&(n[r]=!0)}else n={};for(var r in t)r in n||(n[r]=!0);return n}(n.data.scopedSlots,e.$slots),i=0;i<r.length;i++){o[a=r[i]]||delete t[a]}var u=Object.keys(o);for(i=0;i<u.length;i++){var a;t[a=u[i]]||(t[a]=$(e,a))}me.set(e,"slots",u)}}function je(e,t,n){var r=x();w(e);try{return t(e)}catch(e){if(!n)throw e;n(e)}finally{w(r)}}function Oe(e){function t(e){if(l(e)&&!F(e)&&!Q(e)&&!q(e)){var n=m().util.defineReactive;Object.keys(e).forEach((function(r){var o=e[r];n(e,r,o),o&&t(o)}))}}function n(e,t){return void 0===t&&(t=new Map),t.has(e)?t.get(e):(t.set(e,!1),Array.isArray(e)&&Q(e)?(t.set(e,!0),!0):!(!l(e)||q(e))&&Object.keys(e).some((function(r){return n(e[r],t)})))}e.mixin({beforeCreate:function(){var e=this,r=e.$options,o=r.setup,i=r.render;i&&(r.render=function(){for(var t=this,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return je(e,(function(){return i.apply(t,n)}))});if(!o)return;if("function"!=typeof o)return;var s=r.data;r.data=function(){return function(e,r){void 0===r&&(r={});var o,i=e.$options.setup,s=function(e){var t={slots:{}},n=["emit"];return["root","parent","refs","attrs","listeners","isServer","ssrContext"].forEach((function(n){var r,o,i;Array.isArray(n)?(r=R(n,2),o=r[0],i=r[1]):o=i=n,i="$"+i,u(t,o,{get:function(){return e[i]},set:function(){p("Cannot assign to '"+o+"' because it is a read-only property",e)}})})),n.forEach((function(n){var r="$"+n;u(t,n,{get:function(){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e[r].apply(e,t)}}})})),t}(e);if(a(r,"__ob__",H()),we(e,s.slots),je(e,(function(){o=i(r,s)})),!o)return;if(v(o)){var d=o;return void(e.$options.render=function(){return we(e,s.slots),je(e,(function(){return d()}))})}if(l(o)){Q(o)&&(o=I(o)),me.set(e,"rawBindings",o);var _=o;Object.keys(_).forEach((function(r){var o,i=_[r];F(i)||(Q(i)?c(i)&&(i=z(i)):v(i)?i=i.bind(e):null===(o=i)||"object"!=typeof o?i=z(i):n(i)&&t(i)),function(e,t,n){var r=e.$options.props;t in e||r&&f(r,t)||(F(n)?u(e,t,{get:function(){return n.value},set:function(e){n.value=e}}):e[t]=n)}(e,r,i)}))}}(e,e.$props),"function"==typeof s?s.call(e,e):s||{}}},mounted:function(){xe(this)},updated:function(){xe(this)}})}function $e(e,t){if(!e)return t;if(!t)return e;for(var n,o,i,u=r?Reflect.ownKeys(e):Object.keys(e),a=0;a<u.length;a++)"__ob__"!==(n=u[a])&&(o=t[n],i=e[n],f(t,n)?o!==i&&l(o)&&!F(o)&&l(i)&&!F(i)&&$e(i,o):t[n]=i);return t}function ke(e){(function(e){return f(e,"__composition_api_installed__")})(e)||(e.config.optionMergeStrategies.setup=function(e,t){return function(n,r){return $e("function"==typeof e?e(n,r)||{}:void 0,"function"==typeof t?t(n,r)||{}:void 0)}},function(e){b=e,Object.defineProperty(e,"__composition_api_installed__",{configurable:!0,writable:!0,value:!0})}(e),Oe(e))}var Se={install:function(e){return ke(e)}};"undefined"!=typeof window&&window.Vue&&window.Vue.use(Se),exports.computed=function(e){var t,n,r,i,u=x();if("function"==typeof e?t=e:(t=e.get,n=e.set),u&&!u.$isServer){var a,f=function(){if(!y){var e=O(m(),{computed:{value:function(){return 0}}}),t=e._computedWatchers.value.constructor,n=e._data.__ob__.dep.constructor;y={Watcher:t,Dep:n},e.$destroy()}return y}(),c=f.Watcher,s=f.Dep;i=function(){return a||(a=new c(u,t,o,{lazy:!0})),a.dirty&&a.evaluate(),s.target&&a.depend(),a.value},r=function(e){n&&n(e)}}else{var l=O(m(),{computed:{$$state:{get:t,set:n}}});u&&u.$on("hook:destroyed",(function(){return l.$destroy()})),i=function(){return l.$$state},r=function(e){l.$$state=e}}return W({get:i,set:r})},exports.createApp=function(e,t){void 0===t&&(t=void 0);var n=m(),r=void 0;return{config:n.config,use:n.use.bind(n),mixin:n.mixin.bind(n),component:n.component.bind(n),directive:n.directive.bind(n),mount:function(o,i){return r||((r=new n(k({propsData:t},e))).$mount(o,i),r)},unmount:function(){r&&(r.$destroy(),r=void 0)}}},exports.customRef=function(e){var t=z(0);return W(e((function(){t.value}),(function(){++t.value})))},exports.default=Se,exports.defineComponent=function(e){return e},exports.del=function(e,t){if(m().util.warn,Array.isArray(e)&&s(t))e.splice(t,1);else{var n=e.__ob__;e._isVue||n&&n.vmCount||f(e,t)&&(delete e[t],n&&n.dep.notify())}},exports.getCurrentInstance=x,exports.h=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=x();return n?n.$createElement.apply(n,e):(p("`createElement()` has been called outside of render function."),ge||(ge=O(m()).$createElement),ge.apply(ge,e))},exports.inject=function(e,t,n){if(void 0===n&&(n=!1),!e)return t;var r=x();if(r){var o=function(e,t){for(var n=t;n;){if(n._provided&&f(n._provided,e))return n._provided[e];n=n.$parent}return be}(e,r);return o!==be?o:n&&v(t)?t():t}p("inject() can only be used inside setup() or functional components.")},exports.isRaw=q,exports.isReactive=Q,exports.isReadonly=function(e){return U.has(e)},exports.isRef=F,exports.markRaw=function(e){if(!l(e)&&!c(e)||!Object.isExtensible(e))return e;var t=H();return t.__raw__=!0,a(e,"__ob__",t),B.set(e,!0),e},exports.nextTick=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return null===(e=m())||void 0===e?void 0:e.nextTick.apply(this,t)},exports.onActivated=ae,exports.onBeforeMount=ee,exports.onBeforeUnmount=oe,exports.onBeforeUpdate=ne,exports.onDeactivated=fe,exports.onErrorCaptured=ue,exports.onMounted=te,exports.onServerPrefetch=ce,exports.onUnmounted=ie,exports.onUpdated=re,exports.provide=function(e,t){var n=j();if(n){if(!n._provided){var r={};Object.defineProperty(n,"_provided",{get:function(){return r},set:function(e){return Object.assign(r,e)}})}n._provided[e]=t}},exports.proxyRefs=function(e){var t,n,r;if(Q(e))return e;var o=X(((t={})[C]=e,t)),i=function(e){u(o,e,{get:function(){return F(o[e])?o[e].value:o[e]},set:function(t){if(F(o[e]))return o[e].value=T(t);o[e]=T(t)}})};try{for(var a=S(Object.keys(e)),f=a.next();!f.done;f=a.next()){i(f.value)}}catch(e){n={error:e}}finally{try{f&&!f.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return o},exports.reactive=X,exports.ref=z,exports.set=function(e,t,n){var r=m().util,o=(r.warn,r.defineReactive);if(c(e)&&s(t))return e.length=Math.max(e.length,t),e.splice(t,1,n),n;if(t in e&&!(t in Object.prototype))return e[t]=n,n;var i=e.__ob__;return e._isVue||i&&i.vmCount?n:i?(o(i.value,t,n),N(e,t,n),i.dep.notify(),n):(e[t]=n,n)},exports.shallowReactive=L,exports.shallowReadonly=function(e){var t,n;if(!l(e)&&!c(e)||!Object.isExtensible(e))return e;var r={},o=X({}),i=o.__ob__,u=function(t){var n,o=e[t],u=void 0,f=Object.getOwnPropertyDescriptor(e,t);if(f){if(!1===f.configurable)return"continue";n=f.get,u=f.set,n&&!u||2!==a.length||(o=e[t])}Object.defineProperty(r,t,{enumerable:!0,configurable:!0,get:function(){var t=n?n.call(e):o;return i.dep.depend(),t},set:function(e){}})},a=arguments;try{for(var f=S(Object.keys(e)),s=f.next();!s.done;s=f.next()){var v=s.value;u(v)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=f.return)&&n.call(f)}finally{if(t)throw t.error}}return U.set(r,!0),r},exports.shallowRef=function(e){var t;if(F(e))return e;var n=L(((t={})[C]=e,t));return W({get:function(){return n[C]},set:function(e){return n[C]=e}})},exports.toRaw=function(e){var t,n;return q(e)||!Object.isExtensible(e)?e:(null===(n=null===(t=e)||void 0===t?void 0:t.__ob__)||void 0===n?void 0:n.value)||e},exports.toRef=K,exports.toRefs=I,exports.triggerRef=function(e){F(e)&&(e.value=e.value)},exports.unref=T,exports.useCSSModule=function(e){void 0===e&&(e="$style");var t=x();if(!t)return he;var n=t[e];return n||he},exports.version="1.0.0-beta.20",exports.warn=function(e){p(e,x())},exports.watch=function(e,t,n){var r=null;"function"==typeof t?r=t:(n=t,r=null);var o=function(e){return k({immediate:!1,deep:!1,flush:"pre"},e)}(n);return ye(ve(),e,r,o)},exports.watchEffect=function(e,t){var n=function(e){return k({immediate:!0,deep:!1,flush:"pre"},e)}(t);return ye(ve(),e,null,n)};
***************************************************************************** */function S(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function R(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),u=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)u.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return u}function E(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(R(arguments[t]));return e}function P(e){return r?Symbol.for(e):e}var A=P("composition-api.preFlushQueue"),C=P("composition-api.postFlushQueue"),M="composition-api.refKey",D=new WeakMap,B=new WeakMap,U=new WeakMap,V=function(e){u(this,"value",{get:e.get,set:e.set})};function W(e,t){var n=new V(e),r=Object.seal(n);return U.set(r,!0),r}function z(e){var t;if(F(e))return e;var n=X(((t={})[M]=e,t));return W({get:function(){return n[M]},set:function(e){return n[M]=e}})}function F(e){return e instanceof V}function T(e){return F(e)?e.value:e}function I(e){if(!l(e))return e;var t={};for(var n in e)t[n]=K(e,n);return t}function K(e,t){var n=e[t];return F(n)?n:W({get:function(){return e[t]},set:function(n){return e[t]=n}})}function q(e){var t;return Boolean((null==e?void 0:e.__ob__)&&(null===(t=e.__ob__)||void 0===t?void 0:t.__raw__))}function Q(e){var t;return Boolean((null==e?void 0:e.__ob__)&&!(null===(t=e.__ob__)||void 0===t?void 0:t.__raw__))}function J(e){if(!(!l(e)||q(e)||Array.isArray(e)||F(e)||function(e){var t=m();return t&&e instanceof t}(e)||D.has(e))){D.set(e,!0);for(var t=Object.keys(e),n=0;n<t.length;n++)N(e,t[n])}}function N(e,t,n){if("__ob__"!==t&&!q(e[t])){var r,o,i=Object.getOwnPropertyDescriptor(e,t);if(i){if(!1===i.configurable)return;r=i.get,o=i.set,r&&!o||2!==arguments.length||(n=e[t])}J(n),Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){var o=r?r.call(e):n;return t!==M&&F(o)?o.value:o},set:function(i){if(!r||o){var u=r?r.call(e):n;t!==M&&F(u)&&!F(i)?u.value=i:o?o.call(e,i):n=i,J(i)}}})}}function G(e){var t,n=b||d;n.observable?t=n.observable(e):t=O(n,{data:{$$state:e}})._data.$$state;return f(t,"__ob__")||a(t,"__ob__",function(e){void 0===e&&(e={});return{value:e,dep:{notify:o,depend:o,addSub:o,removeSub:o}}}(t)),t}function H(){return G({}).__ob__}function L(e){var t,n;if(!l(e)&&!c(e)||q(e)||!Object.isExtensible(e))return e;var r=G({});J(r);var o=r.__ob__,i=function(t){var n,i,a=e[t],f=Object.getOwnPropertyDescriptor(e,t);if(f){if(!1===f.configurable)return"continue";n=f.get,i=f.set,n&&!i||2!==u.length||(a=e[t])}Object.defineProperty(r,t,{enumerable:!0,configurable:!0,get:function(){var t,r=n?n.call(e):a;return null===(t=o.dep)||void 0===t||t.depend(),r},set:function(t){var r;n&&!i||(i?i.call(e,t):a=t,null===(r=o.dep)||void 0===r||r.notify())}})},u=arguments;try{for(var a=S(Object.keys(e)),f=a.next();!f.done;f=a.next()){var s=f.value;i(s)}}catch(e){t={error:e}}finally{try{f&&!f.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return r}function X(e){if(!l(e)&&!c(e)||q(e)||!Object.isExtensible(e))return e;var t=G(e);return J(t),t}function Y(e){return function(t){var n,r=j(((n=e)[0].toUpperCase(),n.slice(1)));r&&function(e,t,n,r){var o=t.$options,i=e.config.optionMergeStrategies[n];o[n]=i(o[n],function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=x();w(e);try{return t.apply(void 0,E(n))}finally{w(o)}}}(t,r))}(m(),r,e,t)}}var Z,ee=Y("beforeMount"),te=Y("mounted"),ne=Y("beforeUpdate"),re=Y("updated"),oe=Y("beforeDestroy"),ie=Y("destroyed"),ue=Y("errorCaptured"),ae=Y("activated"),fe=Y("deactivated"),ce=Y("serverPrefetch");function se(){pe(this,A)}function le(){pe(this,C)}function ve(){var e=x();return e?function(e){return void 0!==e[A]}(e)||function(e){e[A]=[],e[C]=[],e.$on("hook:beforeUpdate",se),e.$on("hook:updated",le)}(e):(Z||(Z=O(m())),e=Z),e}function pe(e,t){for(var n=e[t],r=0;r<n.length;r++)n[r]();n.length=0}function de(e,t,n){var r=function(){e.$nextTick((function(){e[A].length&&pe(e,A),e[C].length&&pe(e,C)}))};switch(n){case"pre":r(),e[A].push(t);break;case"post":r(),e[C].push(t);break;default:!function(e,t){if(!e)throw new Error("[vue-composition-api] "+t)}(!1,'flush must be one of ["post", "pre", "sync"], but got '+n)}}function ye(e,t){var n=e.teardown;e.teardown=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];n.apply(e,r),t()}}function _e(e,t,n,r){var i,u,a=r.flush,f="sync"===a,c=function(e){u=function(){try{e()}catch(e){!function(e,t,n){if("undefined"==typeof window||"undefined"==typeof console)throw e;console.error(e)}(e)}}},s=function(){u&&(u(),u=null)},l=function(t){return f||e===Z?t:function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return de(e,(function(){t.apply(void 0,E(n))}),a)}};if(null===n){var d=!1,y=function(e,t,n,r){var o=e._watchers.length;return e.$watch(t,n,{immediate:r.immediateInvokeCallback,deep:r.deep,lazy:r.noRun,sync:r.sync,before:r.before}),e._watchers[o]}(e,(function(){if(!d)try{d=!0,t(c)}finally{d=!1}}),o,{deep:r.deep||!1,sync:f,before:s});ye(y,s),y.lazy=!1;var _=y.get.bind(y);return y.get=l(_),function(){y.teardown()}}var b,h=r.deep;Array.isArray(t)?b=function(){return t.map((function(e){return F(e)?e.value:e()}))}:F(t)?b=function(){return t.value}:Q(t)?(b=function(){return t},h=!0):v(t)?b=t:(b=o,p("Invalid watch source: "+JSON.stringify(t)+".\n A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.",e));var g=function(e,t){s(),n(e,t,c)},m=l(g);if(r.immediate){var x=m,w=function(e,t){w=x,g(e,t)};m=function(e,t){w(e,t)}}var j=e.$watch(b,m,{immediate:r.immediate,deep:h,sync:f}),O=e._watchers[e._watchers.length-1];return Q(O.value)&&(null===(i=O.value.__ob__)||void 0===i?void 0:i.dep)&&h&&O.value.__ob__.dep.addSub({update:function(){O.run()}}),ye(O,s),function(){j()}}var be={};var he={};var ge;var me={set:function(e,t,n){(e.__composition_api_state__=e.__composition_api_state__||{})[t]=n},get:function(e,t){return(e.__composition_api_state__||{})[t]}};function xe(e){var t=me.get(e,"rawBindings")||{};if(t&&Object.keys(t).length){for(var n=e.$refs,r=me.get(e,"refs")||[],o=0;o<r.length;o++){var i=t[f=r[o]];!n[f]&&i&&F(i)&&(i.value=null)}var u=Object.keys(n),a=[];for(o=0;o<u.length;o++){var f;i=t[f=u[o]];n[f]&&i&&F(i)&&(i.value=n[f],a.push(f))}me.set(e,"refs",a)}}function we(e,t){var n=e.$options._parentVnode;if(n){for(var r=me.get(e,"slots")||[],o=function(e,t){var n;if(e){if(e._normalized)return e._normalized;for(var r in n={},e)e[r]&&"$"!==r[0]&&(n[r]=!0)}else n={};for(var r in t)r in n||(n[r]=!0);return n}(n.data.scopedSlots,e.$slots),i=0;i<r.length;i++){o[a=r[i]]||delete t[a]}var u=Object.keys(o);for(i=0;i<u.length;i++){var a;t[a=u[i]]||(t[a]=$(e,a))}me.set(e,"slots",u)}}function je(e,t,n){var r=x();w(e);try{return t(e)}catch(e){if(!n)throw e;n(e)}finally{w(r)}}function Oe(e){function t(e){if(l(e)&&!F(e)&&!Q(e)&&!q(e)){var n=m().util.defineReactive;Object.keys(e).forEach((function(r){var o=e[r];n(e,r,o),o&&t(o)}))}}function n(e,t){return void 0===t&&(t=new Map),t.has(e)?t.get(e):(t.set(e,!1),Array.isArray(e)&&Q(e)?(t.set(e,!0),!0):!(!l(e)||q(e))&&Object.keys(e).some((function(r){return n(e[r],t)})))}e.mixin({beforeCreate:function(){var e=this,r=e.$options,o=r.setup,i=r.render;i&&(r.render=function(){for(var t=this,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return je(e,(function(){return i.apply(t,n)}))});if(!o)return;if("function"!=typeof o)return;var s=r.data;r.data=function(){return function(e,r){void 0===r&&(r={});var o,i=e.$options.setup,s=function(e){var t={slots:{}},n=["attrs"],r=["emit"];return["root","parent","refs","listeners","isServer","ssrContext"].forEach((function(n){var r="$"+n;u(t,n,{get:function(){return e[r]},set:function(){p("Cannot assign to '"+n+"' because it is a read-only property",e)}})})),n.forEach((function(n){var r="$"+n;u(t,n,{get:function(){var t,n,o=X({}),i=e[r],a=function(t){u(o,t,{get:function(){return e[r][t]}})};try{for(var f=S(Object.keys(i)),c=f.next();!c.done;c=f.next()){a(c.value)}}catch(e){t={error:e}}finally{try{c&&!c.done&&(n=f.return)&&n.call(f)}finally{if(t)throw t.error}}return o},set:function(){p("Cannot assign to '"+n+"' because it is a read-only property",e)}})})),r.forEach((function(n){var r="$"+n;u(t,n,{get:function(){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e[r].apply(e,t)}}})})),t}(e);if(a(r,"__ob__",H()),we(e,s.slots),je(e,(function(){o=i(r,s)})),!o)return;if(v(o)){var d=o;return void(e.$options.render=function(){return we(e,s.slots),je(e,(function(){return d()}))})}if(l(o)){Q(o)&&(o=I(o)),me.set(e,"rawBindings",o);var y=o;Object.keys(y).forEach((function(r){var o,i=y[r];F(i)||(Q(i)?c(i)&&(i=z(i)):v(i)?i=i.bind(e):null===(o=i)||"object"!=typeof o?i=z(i):n(i)&&t(i)),function(e,t,n){var r=e.$options.props;t in e||r&&f(r,t)||(F(n)?u(e,t,{get:function(){return n.value},set:function(e){n.value=e}}):e[t]=n)}(e,r,i)}))}}(e,e.$props),"function"==typeof s?s.call(e,e):s||{}}},mounted:function(){xe(this)},updated:function(){xe(this)}})}function $e(e,t){if(!e)return t;if(!t)return e;for(var n,o,i,u=r?Reflect.ownKeys(e):Object.keys(e),a=0;a<u.length;a++)"__ob__"!==(n=u[a])&&(o=t[n],i=e[n],f(t,n)?o!==i&&l(o)&&!F(o)&&l(i)&&!F(i)&&$e(i,o):t[n]=i);return t}function ke(e){(function(e){return f(e,"__composition_api_installed__")})(e)||(e.config.optionMergeStrategies.setup=function(e,t){return function(n,r){return $e("function"==typeof e?e(n,r)||{}:void 0,"function"==typeof t?t(n,r)||{}:void 0)}},function(e){b=e,Object.defineProperty(e,"__composition_api_installed__",{configurable:!0,writable:!0,value:!0})}(e),Oe(e))}var Se={install:function(e){return ke(e)}};"undefined"!=typeof window&&window.Vue&&window.Vue.use(Se),exports.computed=function(e){var t,n,r,i,u=x();if("function"==typeof e?t=e:(t=e.get,n=e.set),u&&!u.$isServer){var a,f=function(){if(!_){var e=O(m(),{computed:{value:function(){return 0}}}),t=e._computedWatchers.value.constructor,n=e._data.__ob__.dep.constructor;_={Watcher:t,Dep:n},e.$destroy()}return _}(),c=f.Watcher,s=f.Dep;i=function(){return a||(a=new c(u,t,o,{lazy:!0})),a.dirty&&a.evaluate(),s.target&&a.depend(),a.value},r=function(e){n&&n(e)}}else{var l=O(m(),{computed:{$$state:{get:t,set:n}}});u&&u.$on("hook:destroyed",(function(){return l.$destroy()})),i=function(){return l.$$state},r=function(e){l.$$state=e}}return W({get:i,set:r})},exports.createApp=function(e,t){void 0===t&&(t=void 0);var n=m(),r=void 0;return{config:n.config,use:n.use.bind(n),mixin:n.mixin.bind(n),component:n.component.bind(n),directive:n.directive.bind(n),mount:function(o,i){return r||((r=new n(k({propsData:t},e))).$mount(o,i),r)},unmount:function(){r&&(r.$destroy(),r=void 0)}}},exports.customRef=function(e){var t=z(0);return W(e((function(){t.value}),(function(){++t.value})))},exports.default=Se,exports.defineComponent=function(e){return e},exports.del=function(e,t){if(m().util.warn,Array.isArray(e)&&s(t))e.splice(t,1);else{var n=e.__ob__;e._isVue||n&&n.vmCount||f(e,t)&&(delete e[t],n&&n.dep.notify())}},exports.getCurrentInstance=x,exports.h=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=x();return n?n.$createElement.apply(n,e):(p("`createElement()` has been called outside of render function."),ge||(ge=O(m()).$createElement),ge.apply(ge,e))},exports.inject=function(e,t,n){if(void 0===n&&(n=!1),!e)return t;var r=x();if(r){var o=function(e,t){for(var n=t;n;){if(n._provided&&f(n._provided,e))return n._provided[e];n=n.$parent}return be}(e,r);return o!==be?o:n&&v(t)?t():t}p("inject() can only be used inside setup() or functional components.")},exports.isRaw=q,exports.isReactive=Q,exports.isReadonly=function(e){return U.has(e)},exports.isRef=F,exports.markRaw=function(e){if(!l(e)&&!c(e)||!Object.isExtensible(e))return e;var t=H();return t.__raw__=!0,a(e,"__ob__",t),B.set(e,!0),e},exports.nextTick=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return null===(e=m())||void 0===e?void 0:e.nextTick.apply(this,t)},exports.onActivated=ae,exports.onBeforeMount=ee,exports.onBeforeUnmount=oe,exports.onBeforeUpdate=ne,exports.onDeactivated=fe,exports.onErrorCaptured=ue,exports.onMounted=te,exports.onServerPrefetch=ce,exports.onUnmounted=ie,exports.onUpdated=re,exports.provide=function(e,t){var n=j();if(n){if(!n._provided){var r={};Object.defineProperty(n,"_provided",{get:function(){return r},set:function(e){return Object.assign(r,e)}})}n._provided[e]=t}},exports.proxyRefs=function(e){var t,n,r;if(Q(e))return e;var o=X(((t={})[M]=e,t)),i=function(e){u(o,e,{get:function(){return F(o[e])?o[e].value:o[e]},set:function(t){if(F(o[e]))return o[e].value=T(t);o[e]=T(t)}})};try{for(var a=S(Object.keys(e)),f=a.next();!f.done;f=a.next()){i(f.value)}}catch(e){n={error:e}}finally{try{f&&!f.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return o},exports.reactive=X,exports.readonly=function(e){return e},exports.ref=z,exports.set=function(e,t,n){var r=m().util,o=(r.warn,r.defineReactive);if(c(e)&&s(t))return e.length=Math.max(e.length,t),e.splice(t,1,n),n;if(t in e&&!(t in Object.prototype))return e[t]=n,n;var i=e.__ob__;return e._isVue||i&&i.vmCount?n:i?(o(i.value,t,n),N(e,t,n),i.dep.notify(),n):(e[t]=n,n)},exports.shallowReactive=L,exports.shallowReadonly=function(e){var t,n;if(!l(e)&&!c(e)||!Object.isExtensible(e))return e;var r={},o=X({}),i=o.__ob__,u=function(t){var n,o=e[t],u=void 0,f=Object.getOwnPropertyDescriptor(e,t);if(f){if(!1===f.configurable)return"continue";n=f.get,u=f.set,n&&!u||2!==a.length||(o=e[t])}Object.defineProperty(r,t,{enumerable:!0,configurable:!0,get:function(){var t=n?n.call(e):o;return i.dep.depend(),t},set:function(e){}})},a=arguments;try{for(var f=S(Object.keys(e)),s=f.next();!s.done;s=f.next()){var v=s.value;u(v)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=f.return)&&n.call(f)}finally{if(t)throw t.error}}return U.set(r,!0),r},exports.shallowRef=function(e){var t;if(F(e))return e;var n=L(((t={})[M]=e,t));return W({get:function(){return n[M]},set:function(e){return n[M]=e}})},exports.toRaw=function(e){var t,n;return q(e)||!Object.isExtensible(e)?e:(null===(n=null===(t=e)||void 0===t?void 0:t.__ob__)||void 0===n?void 0:n.value)||e},exports.toRef=K,exports.toRefs=I,exports.triggerRef=function(e){F(e)&&(e.value=e.value)},exports.unref=T,exports.useCSSModule=function(e){void 0===e&&(e="$style");var t=x();if(!t)return he;var n=t[e];return n||he},exports.version="1.0.0-beta.21",exports.warn=function(e){p(e,x())},exports.watch=function(e,t,n){var r=null;"function"==typeof t?r=t:(n=t,r=null);var o=function(e){return k({immediate:!1,deep:!1,flush:"pre"},e)}(n);return _e(ve(),e,r,o)},exports.watchEffect=function(e,t){var n=function(e){return k({immediate:!0,deep:!1,flush:"pre"},e)}(t);return _e(ve(),e,null,n)};

@@ -412,5 +412,2 @@ import Vue from 'vue';

}
function isReadonly(obj) {
return readonlySet.has(obj);
}
function isReactive(obj) {

@@ -616,4 +613,39 @@ var _a;

}
/**
* Make sure obj can't be a reactive
*/
function markRaw(obj) {
if (!(isPlainObject(obj) || isArray(obj)) || !Object.isExtensible(obj)) {
return obj;
}
// set the vue observable flag at obj
var ob = createObserver();
ob.__raw__ = true;
def(obj, '__ob__', ob);
// mark as Raw
rawSet.set(obj, true);
return obj;
}
function toRaw(observed) {
var _a, _b;
if (isRaw(observed) || !Object.isExtensible(observed)) {
return observed;
}
return ((_b = (_a = observed) === null || _a === void 0 ? void 0 : _a.__ob__) === null || _b === void 0 ? void 0 : _b.value) || observed;
}
function isReadonly(obj) {
return readonlySet.has(obj);
}
/**
* **In @vue/composition-api, `reactive` only provides type-level readonly check**
*
* Creates a readonly copy of the original object. Note the returned copy is not
* made reactive, but `readonly` can be called on an already reactive object.
*/
function readonly(target) {
return target;
}
function shallowReadonly(obj) {
var e_2, _a;
var e_1, _a;
if (!(isPlainObject(obj) || isArray(obj)) || !Object.isExtensible(obj)) {

@@ -625,3 +657,3 @@ return obj;

var ob = source.__ob__;
var _loop_2 = function (key) {
var _loop_1 = function (key) {
var val = obj[key];

@@ -638,3 +670,3 @@ var getter;

if ((!getter || setter) /* not only have getter */ &&
arguments_2.length === 2) {
arguments_1.length === 2) {
val = obj[key];

@@ -658,10 +690,10 @@ }

};
var arguments_2 = arguments;
var arguments_1 = arguments;
try {
for (var _b = __values(Object.keys(obj)), _c = _b.next(); !_c.done; _c = _b.next()) {
var key = _c.value;
_loop_2(key);
_loop_1(key);
}
}
catch (e_2_1) { e_2 = { error: e_2_1 }; }
catch (e_1_1) { e_1 = { error: e_1_1 }; }
finally {

@@ -671,3 +703,3 @@ try {

}
finally { if (e_2) throw e_2.error; }
finally { if (e_1) throw e_1.error; }
}

@@ -677,24 +709,2 @@ readonlySet.set(readonlyObj, true);

}
/**
* Make sure obj can't be a reactive
*/
function markRaw(obj) {
if (!(isPlainObject(obj) || isArray(obj)) || !Object.isExtensible(obj)) {
return obj;
}
// set the vue observable flag at obj
var ob = createObserver();
ob.__raw__ = true;
def(obj, '__ob__', ob);
// mark as Raw
rawSet.set(obj, true);
return obj;
}
function toRaw(observed) {
var _a, _b;
if (isRaw(observed) || !Object.isExtensible(observed)) {
return observed;
}
return ((_b = (_a = observed) === null || _a === void 0 ? void 0 : _a.__ob__) === null || _b === void 0 ? void 0 : _b.value) || observed;
}

@@ -1541,10 +1551,7 @@ /**

function createSetupContext(vm) {
var ctx = {
slots: {},
};
var props = [
var ctx = { slots: {} };
var propsPlain = [
'root',
'parent',
'refs',
'attrs',
'listeners',

@@ -1554,21 +1561,48 @@ 'isServer',

];
var propsReactiveProxy = ['attrs'];
var methodReturnVoid = ['emit'];
props.forEach(function (key) {
var _a;
var targetKey;
var srcKey;
if (Array.isArray(key)) {
_a = __read(key, 2), targetKey = _a[0], srcKey = _a[1];
}
else {
targetKey = srcKey = key;
}
srcKey = "$" + srcKey;
proxy(ctx, targetKey, {
propsPlain.forEach(function (key) {
var srcKey = "$" + key;
proxy(ctx, key, {
get: function () { return vm[srcKey]; },
set: function () {
warn("Cannot assign to '" + targetKey + "' because it is a read-only property", vm);
warn("Cannot assign to '" + key + "' because it is a read-only property", vm);
},
});
});
propsReactiveProxy.forEach(function (key) {
var srcKey = "$" + key;
proxy(ctx, key, {
get: function () {
var e_1, _a;
var data = reactive({});
var source = vm[srcKey];
var _loop_1 = function (attr) {
proxy(data, attr, {
get: function () {
// to ensure it always return the latest value
return vm[srcKey][attr];
},
});
};
try {
for (var _b = __values(Object.keys(source)), _c = _b.next(); !_c.done; _c = _b.next()) {
var attr = _c.value;
_loop_1(attr);
}
}
catch (e_1_1) { e_1 = { error: e_1_1 }; }
finally {
try {
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
}
finally { if (e_1) throw e_1.error; }
}
return data;
},
set: function () {
warn("Cannot assign to '" + key + "' because it is a read-only property", vm);
},
});
});
methodReturnVoid.forEach(function (key) {

@@ -1662,3 +1696,3 @@ var srcKey = "$" + key;

var version = "1.0.0-beta.20";
var version = "1.0.0-beta.21";
// auto install when using CDN

@@ -1670,2 +1704,2 @@ if (typeof window !== 'undefined' && window.Vue) {

export default Plugin;
export { computed, createApp, customRef, defineComponent, del, getCurrentInstance, createElement as h, inject, isRaw, isReactive, isReadonly, isRef, markRaw, nextTick, onActivated, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactivated, onErrorCaptured, onMounted, onServerPrefetch, onUnmounted, onUpdated, provide, proxyRefs, reactive, ref, set, shallowReactive, shallowReadonly, shallowRef, toRaw, toRef, toRefs, triggerRef, unref, useCSSModule, version, warn$1 as warn, watch, watchEffect };
export { computed, createApp, customRef, defineComponent, del, getCurrentInstance, createElement as h, inject, isRaw, isReactive, isReadonly, isRef, markRaw, nextTick, onActivated, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactivated, onErrorCaptured, onMounted, onServerPrefetch, onUnmounted, onUpdated, provide, proxyRefs, reactive, readonly, ref, set, shallowReactive, shallowReadonly, shallowRef, toRaw, toRef, toRefs, triggerRef, unref, useCSSModule, version, warn$1 as warn, watch, watchEffect };

@@ -420,5 +420,2 @@ (function (global, factory) {

}
function isReadonly(obj) {
return readonlySet.has(obj);
}
function isReactive(obj) {

@@ -624,4 +621,39 @@ var _a;

}
/**
* Make sure obj can't be a reactive
*/
function markRaw(obj) {
if (!(isPlainObject(obj) || isArray(obj)) || !Object.isExtensible(obj)) {
return obj;
}
// set the vue observable flag at obj
var ob = createObserver();
ob.__raw__ = true;
def(obj, '__ob__', ob);
// mark as Raw
rawSet.set(obj, true);
return obj;
}
function toRaw(observed) {
var _a, _b;
if (isRaw(observed) || !Object.isExtensible(observed)) {
return observed;
}
return ((_b = (_a = observed) === null || _a === void 0 ? void 0 : _a.__ob__) === null || _b === void 0 ? void 0 : _b.value) || observed;
}
function isReadonly(obj) {
return readonlySet.has(obj);
}
/**
* **In @vue/composition-api, `reactive` only provides type-level readonly check**
*
* Creates a readonly copy of the original object. Note the returned copy is not
* made reactive, but `readonly` can be called on an already reactive object.
*/
function readonly(target) {
return target;
}
function shallowReadonly(obj) {
var e_2, _a;
var e_1, _a;
if (!(isPlainObject(obj) || isArray(obj)) || !Object.isExtensible(obj)) {

@@ -633,3 +665,3 @@ return obj;

var ob = source.__ob__;
var _loop_2 = function (key) {
var _loop_1 = function (key) {
var val = obj[key];

@@ -646,3 +678,3 @@ var getter;

if ((!getter || setter) /* not only have getter */ &&
arguments_2.length === 2) {
arguments_1.length === 2) {
val = obj[key];

@@ -666,10 +698,10 @@ }

};
var arguments_2 = arguments;
var arguments_1 = arguments;
try {
for (var _b = __values(Object.keys(obj)), _c = _b.next(); !_c.done; _c = _b.next()) {
var key = _c.value;
_loop_2(key);
_loop_1(key);
}
}
catch (e_2_1) { e_2 = { error: e_2_1 }; }
catch (e_1_1) { e_1 = { error: e_1_1 }; }
finally {

@@ -679,3 +711,3 @@ try {

}
finally { if (e_2) throw e_2.error; }
finally { if (e_1) throw e_1.error; }
}

@@ -685,24 +717,2 @@ readonlySet.set(readonlyObj, true);

}
/**
* Make sure obj can't be a reactive
*/
function markRaw(obj) {
if (!(isPlainObject(obj) || isArray(obj)) || !Object.isExtensible(obj)) {
return obj;
}
// set the vue observable flag at obj
var ob = createObserver();
ob.__raw__ = true;
def(obj, '__ob__', ob);
// mark as Raw
rawSet.set(obj, true);
return obj;
}
function toRaw(observed) {
var _a, _b;
if (isRaw(observed) || !Object.isExtensible(observed)) {
return observed;
}
return ((_b = (_a = observed) === null || _a === void 0 ? void 0 : _a.__ob__) === null || _b === void 0 ? void 0 : _b.value) || observed;
}

@@ -1548,10 +1558,7 @@ /**

function createSetupContext(vm) {
var ctx = {
slots: {},
};
var props = [
var ctx = { slots: {} };
var propsPlain = [
'root',
'parent',
'refs',
'attrs',
'listeners',

@@ -1561,21 +1568,48 @@ 'isServer',

];
var propsReactiveProxy = ['attrs'];
var methodReturnVoid = ['emit'];
props.forEach(function (key) {
var _a;
var targetKey;
var srcKey;
if (Array.isArray(key)) {
_a = __read(key, 2), targetKey = _a[0], srcKey = _a[1];
}
else {
targetKey = srcKey = key;
}
srcKey = "$" + srcKey;
proxy(ctx, targetKey, {
propsPlain.forEach(function (key) {
var srcKey = "$" + key;
proxy(ctx, key, {
get: function () { return vm[srcKey]; },
set: function () {
warn("Cannot assign to '" + targetKey + "' because it is a read-only property", vm);
warn("Cannot assign to '" + key + "' because it is a read-only property", vm);
},
});
});
propsReactiveProxy.forEach(function (key) {
var srcKey = "$" + key;
proxy(ctx, key, {
get: function () {
var e_1, _a;
var data = reactive({});
var source = vm[srcKey];
var _loop_1 = function (attr) {
proxy(data, attr, {
get: function () {
// to ensure it always return the latest value
return vm[srcKey][attr];
},
});
};
try {
for (var _b = __values(Object.keys(source)), _c = _b.next(); !_c.done; _c = _b.next()) {
var attr = _c.value;
_loop_1(attr);
}
}
catch (e_1_1) { e_1 = { error: e_1_1 }; }
finally {
try {
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
}
finally { if (e_1) throw e_1.error; }
}
return data;
},
set: function () {
warn("Cannot assign to '" + key + "' because it is a read-only property", vm);
},
});
});
methodReturnVoid.forEach(function (key) {

@@ -1666,3 +1700,3 @@ var srcKey = "$" + key;

var version = "1.0.0-beta.20";
var version = "1.0.0-beta.21";
// auto install when using CDN

@@ -1701,2 +1735,3 @@ if (typeof window !== 'undefined' && window.Vue) {

exports.reactive = reactive;
exports.readonly = readonly;
exports.ref = ref;

@@ -1703,0 +1738,0 @@ exports.set = set;

@@ -1,2 +0,2 @@

!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],n):n((e="undefined"!=typeof globalThis?globalThis:e||self).VueCompositionAPI={},e.Vue)}(this,(function(e,n){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=t(n);function o(e){return"function"==typeof e&&/native code/.test(e.toString())}var i="undefined"!=typeof Symbol&&o(Symbol)&&"undefined"!=typeof Reflect&&o(Reflect.ownKeys),u=function(e){return e},a={enumerable:!0,configurable:!0,get:u,set:u};function f(e,n,t){var r=t.get,o=t.set;a.get=r||u,a.set=o||u,Object.defineProperty(e,n,a)}function c(e,n,t,r){Object.defineProperty(e,n,{value:t,enumerable:!!r,writable:!0,configurable:!0})}function l(e,n){return Object.hasOwnProperty.call(e,n)}function s(e){return Array.isArray(e)}function v(e){var n=parseFloat(String(e));return n>=0&&Math.floor(n)===n&&isFinite(e)}function d(e){return"[object Object]"===function(e){return Object.prototype.toString.call(e)}(e)}function p(e){return"function"==typeof e}function y(e,n){r.default.util.warn(e,n)}var _=void 0;try{var b=require("vue");b&&j(b)?_=b:b&&"default"in b&&j(b.default)&&(_=b.default)}catch(e){}var h,g=null,m=null,w="__composition_api_installed__";function j(e){return e&&"function"==typeof e&&"Vue"===e.name}function O(){return g}function $(){return m}function k(e){m=e}function x(e){return $()}function S(e,n){void 0===n&&(n={});var t=e.config.silent;e.config.silent=!0;var r=new e(n);return e.config.silent=t,r}function R(e,n){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.$scopedSlots[n]?e.$scopedSlots[n].apply(e,t):y("slots."+n+'() got called outside of the "render()" scope',e)}}var A=function(){return(A=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e}).apply(this,arguments)};
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],n):n((e="undefined"!=typeof globalThis?globalThis:e||self).VueCompositionAPI={},e.Vue)}(this,(function(e,n){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=t(n);function o(e){return"function"==typeof e&&/native code/.test(e.toString())}var i="undefined"!=typeof Symbol&&o(Symbol)&&"undefined"!=typeof Reflect&&o(Reflect.ownKeys),u=function(e){return e},a={enumerable:!0,configurable:!0,get:u,set:u};function f(e,n,t){var r=t.get,o=t.set;a.get=r||u,a.set=o||u,Object.defineProperty(e,n,a)}function c(e,n,t,r){Object.defineProperty(e,n,{value:t,enumerable:!!r,writable:!0,configurable:!0})}function l(e,n){return Object.hasOwnProperty.call(e,n)}function s(e){return Array.isArray(e)}function v(e){var n=parseFloat(String(e));return n>=0&&Math.floor(n)===n&&isFinite(e)}function d(e){return"[object Object]"===function(e){return Object.prototype.toString.call(e)}(e)}function p(e){return"function"==typeof e}function y(e,n){r.default.util.warn(e,n)}var _=void 0;try{var b=require("vue");b&&j(b)?_=b:b&&"default"in b&&j(b.default)&&(_=b.default)}catch(e){}var h,g=null,m=null,w="__composition_api_installed__";function j(e){return e&&"function"==typeof e&&"Vue"===e.name}function O(){return g}function $(){return m}function x(e){m=e}function k(e){return $()}function S(e,n){void 0===n&&(n={});var t=e.config.silent;e.config.silent=!0;var r=new e(n);return e.config.silent=t,r}function R(e,n){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.$scopedSlots[n]?e.$scopedSlots[n].apply(e,t):y("slots."+n+'() got called outside of the "render()" scope',e)}}var E=function(){return(E=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e}).apply(this,arguments)};
/*! *****************************************************************************

@@ -15,2 +15,2 @@ Copyright (c) Microsoft Corporation.

PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */function E(e){var n="function"==typeof Symbol&&Symbol.iterator,t=n&&e[n],r=0;if(t)return t.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function P(e,n){var t="function"==typeof Symbol&&e[Symbol.iterator];if(!t)return e;var r,o,i=t.call(e),u=[];try{for(;(void 0===n||n-- >0)&&!(r=i.next()).done;)u.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(t=i.return)&&t.call(i)}finally{if(o)throw o.error}}return u}function C(){for(var e=[],n=0;n<arguments.length;n++)e=e.concat(P(arguments[n]));return e}function M(e){return i?Symbol.for(e):e}var D=M("composition-api.preFlushQueue"),V=M("composition-api.postFlushQueue"),B="composition-api.refKey",U=new WeakMap,T=new WeakMap,W=new WeakMap,z=function(e){f(this,"value",{get:e.get,set:e.set})};function F(e,n){var t=new z(e),r=Object.seal(t);return W.set(r,!0),r}function I(e){var n;if(K(e))return e;var t=ee(((n={})[B]=e,n));return F({get:function(){return t[B]},set:function(e){return t[B]=e}})}function K(e){return e instanceof z}function q(e){return K(e)?e.value:e}function Q(e){if(!d(e))return e;var n={};for(var t in e)n[t]=J(e,t);return n}function J(e,n){var t=e[n];return K(t)?t:F({get:function(){return e[n]},set:function(t){return e[n]=t}})}function N(e){var n;return Boolean((null==e?void 0:e.__ob__)&&(null===(n=e.__ob__)||void 0===n?void 0:n.__raw__))}function G(e){var n;return Boolean((null==e?void 0:e.__ob__)&&!(null===(n=e.__ob__)||void 0===n?void 0:n.__raw__))}function H(e){if(!(!d(e)||N(e)||Array.isArray(e)||K(e)||function(e){var n=O();return n&&e instanceof n}(e)||U.has(e))){U.set(e,!0);for(var n=Object.keys(e),t=0;t<n.length;t++)L(e,n[t])}}function L(e,n,t){if("__ob__"!==n&&!N(e[n])){var r,o,i=Object.getOwnPropertyDescriptor(e,n);if(i){if(!1===i.configurable)return;r=i.get,o=i.set,r&&!o||2!==arguments.length||(t=e[n])}H(t),Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:function(){var o=r?r.call(e):t;return n!==B&&K(o)?o.value:o},set:function(i){if(!r||o){var u=r?r.call(e):t;n!==B&&K(u)&&!K(i)?u.value=i:o?o.call(e,i):t=i,H(i)}}})}}function X(e){var n,t=g||_;t.observable?n=t.observable(e):n=S(t,{data:{$$state:e}})._data.$$state;return l(n,"__ob__")||c(n,"__ob__",function(e){void 0===e&&(e={});return{value:e,dep:{notify:u,depend:u,addSub:u,removeSub:u}}}(n)),n}function Y(){return X({}).__ob__}function Z(e){var n,t;if(!d(e)&&!s(e)||N(e)||!Object.isExtensible(e))return e;var r=X({});H(r);var o=r.__ob__,i=function(n){var t,i,a=e[n],f=Object.getOwnPropertyDescriptor(e,n);if(f){if(!1===f.configurable)return"continue";t=f.get,i=f.set,t&&!i||2!==u.length||(a=e[n])}Object.defineProperty(r,n,{enumerable:!0,configurable:!0,get:function(){var n,r=t?t.call(e):a;return null===(n=o.dep)||void 0===n||n.depend(),r},set:function(n){var r;t&&!i||(i?i.call(e,n):a=n,null===(r=o.dep)||void 0===r||r.notify())}})},u=arguments;try{for(var a=E(Object.keys(e)),f=a.next();!f.done;f=a.next()){var c=f.value;i(c)}}catch(e){n={error:e}}finally{try{f&&!f.done&&(t=a.return)&&t.call(a)}finally{if(n)throw n.error}}return r}function ee(e){if(!d(e)&&!s(e)||N(e)||!Object.isExtensible(e))return e;var n=X(e);return H(n),n}function ne(e){return function(n){var t,r=x(((t=e)[0].toUpperCase(),t.slice(1)));r&&function(e,n,t,r){var o=n.$options,i=e.config.optionMergeStrategies[t];o[t]=i(o[t],function(e,n){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var o=$();k(e);try{return n.apply(void 0,C(t))}finally{k(o)}}}(n,r))}(O(),r,e,n)}}var te,re=ne("beforeMount"),oe=ne("mounted"),ie=ne("beforeUpdate"),ue=ne("updated"),ae=ne("beforeDestroy"),fe=ne("destroyed"),ce=ne("errorCaptured"),le=ne("activated"),se=ne("deactivated"),ve=ne("serverPrefetch");function de(){_e(this,D)}function pe(){_e(this,V)}function ye(){var e=$();return e?function(e){return void 0!==e[D]}(e)||function(e){e[D]=[],e[V]=[],e.$on("hook:beforeUpdate",de),e.$on("hook:updated",pe)}(e):(te||(te=S(O())),e=te),e}function _e(e,n){for(var t=e[n],r=0;r<t.length;r++)t[r]();t.length=0}function be(e,n,t){var r=function(){e.$nextTick((function(){e[D].length&&_e(e,D),e[V].length&&_e(e,V)}))};switch(t){case"pre":r(),e[D].push(n);break;case"post":r(),e[V].push(n);break;default:!function(e,n){if(!e)throw new Error("[vue-composition-api] "+n)}(!1,'flush must be one of ["post", "pre", "sync"], but got '+t)}}function he(e,n){var t=e.teardown;e.teardown=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];t.apply(e,r),n()}}function ge(e,n,t,r){var o,i,a=r.flush,f="sync"===a,c=function(e){i=function(){try{e()}catch(e){!function(e,n,t){if("undefined"==typeof window||"undefined"==typeof console)throw e;console.error(e)}(e)}}},l=function(){i&&(i(),i=null)},s=function(n){return f||e===te?n:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return be(e,(function(){n.apply(void 0,C(t))}),a)}};if(null===t){var v=!1,d=function(e,n,t,r){var o=e._watchers.length;return e.$watch(n,t,{immediate:r.immediateInvokeCallback,deep:r.deep,lazy:r.noRun,sync:r.sync,before:r.before}),e._watchers[o]}(e,(function(){if(!v)try{v=!0,n(c)}finally{v=!1}}),u,{deep:r.deep||!1,sync:f,before:l});he(d,l),d.lazy=!1;var _=d.get.bind(d);return d.get=s(_),function(){d.teardown()}}var b,h=r.deep;Array.isArray(n)?b=function(){return n.map((function(e){return K(e)?e.value:e()}))}:K(n)?b=function(){return n.value}:G(n)?(b=function(){return n},h=!0):p(n)?b=n:(b=u,y("Invalid watch source: "+JSON.stringify(n)+".\n A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.",e));var g=function(e,n){l(),t(e,n,c)},m=s(g);if(r.immediate){var w=m,j=function(e,n){j=w,g(e,n)};m=function(e,n){j(e,n)}}var O=e.$watch(b,m,{immediate:r.immediate,deep:h,sync:f}),$=e._watchers[e._watchers.length-1];return G($.value)&&(null===(o=$.value.__ob__)||void 0===o?void 0:o.dep)&&h&&$.value.__ob__.dep.addSub({update:function(){$.run()}}),he($,l),function(){O()}}var me={};var we={};var je;var Oe={set:function(e,n,t){(e.__composition_api_state__=e.__composition_api_state__||{})[n]=t},get:function(e,n){return(e.__composition_api_state__||{})[n]}};function $e(e){var n=Oe.get(e,"rawBindings")||{};if(n&&Object.keys(n).length){for(var t=e.$refs,r=Oe.get(e,"refs")||[],o=0;o<r.length;o++){var i=n[f=r[o]];!t[f]&&i&&K(i)&&(i.value=null)}var u=Object.keys(t),a=[];for(o=0;o<u.length;o++){var f;i=n[f=u[o]];t[f]&&i&&K(i)&&(i.value=t[f],a.push(f))}Oe.set(e,"refs",a)}}function ke(e,n){var t=e.$options._parentVnode;if(t){for(var r=Oe.get(e,"slots")||[],o=function(e,n){var t;if(e){if(e._normalized)return e._normalized;for(var r in t={},e)e[r]&&"$"!==r[0]&&(t[r]=!0)}else t={};for(var r in n)r in t||(t[r]=!0);return t}(t.data.scopedSlots,e.$slots),i=0;i<r.length;i++){o[a=r[i]]||delete n[a]}var u=Object.keys(o);for(i=0;i<u.length;i++){var a;n[a=u[i]]||(n[a]=R(e,a))}Oe.set(e,"slots",u)}}function xe(e,n,t){var r=$();k(e);try{return n(e)}catch(e){if(!t)throw e;t(e)}finally{k(r)}}function Se(e){function n(e){if(d(e)&&!K(e)&&!G(e)&&!N(e)){var t=O().util.defineReactive;Object.keys(e).forEach((function(r){var o=e[r];t(e,r,o),o&&n(o)}))}}function t(e,n){return void 0===n&&(n=new Map),n.has(e)?n.get(e):(n.set(e,!1),Array.isArray(e)&&G(e)?(n.set(e,!0),!0):!(!d(e)||N(e))&&Object.keys(e).some((function(r){return t(e[r],n)})))}e.mixin({beforeCreate:function(){var e=this,r=e.$options,o=r.setup,i=r.render;i&&(r.render=function(){for(var n=this,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return xe(e,(function(){return i.apply(n,t)}))});if(!o)return;if("function"!=typeof o)return;var u=r.data;r.data=function(){return function(e,r){void 0===r&&(r={});var o,i=e.$options.setup,u=function(e){var n={slots:{}},t=["emit"];return["root","parent","refs","attrs","listeners","isServer","ssrContext"].forEach((function(t){var r,o,i;Array.isArray(t)?(r=P(t,2),o=r[0],i=r[1]):o=i=t,i="$"+i,f(n,o,{get:function(){return e[i]},set:function(){y("Cannot assign to '"+o+"' because it is a read-only property",e)}})})),t.forEach((function(t){var r="$"+t;f(n,t,{get:function(){return function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];e[r].apply(e,n)}}})})),n}(e);if(c(r,"__ob__",Y()),ke(e,u.slots),xe(e,(function(){o=i(r,u)})),!o)return;if(p(o)){var a=o;return void(e.$options.render=function(){return ke(e,u.slots),xe(e,(function(){return a()}))})}if(d(o)){G(o)&&(o=Q(o)),Oe.set(e,"rawBindings",o);var v=o;Object.keys(v).forEach((function(r){var o,i=v[r];K(i)||(G(i)?s(i)&&(i=I(i)):p(i)?i=i.bind(e):null===(o=i)||"object"!=typeof o?i=I(i):t(i)&&n(i)),function(e,n,t){var r=e.$options.props;n in e||r&&l(r,n)||(K(t)?f(e,n,{get:function(){return t.value},set:function(e){t.value=e}}):e[n]=t)}(e,r,i)}))}}(e,e.$props),"function"==typeof u?u.call(e,e):u||{}}},mounted:function(){$e(this)},updated:function(){$e(this)}})}function Re(e,n){if(!e)return n;if(!n)return e;for(var t,r,o,u=i?Reflect.ownKeys(e):Object.keys(e),a=0;a<u.length;a++)"__ob__"!==(t=u[a])&&(r=n[t],o=e[t],l(n,t)?r!==o&&d(r)&&!K(r)&&d(o)&&!K(o)&&Re(o,r):n[t]=o);return n}function Ae(e){(function(e){return l(e,w)})(e)||(e.config.optionMergeStrategies.setup=function(e,n){return function(t,r){return Re("function"==typeof e?e(t,r)||{}:void 0,"function"==typeof n?n(t,r)||{}:void 0)}},function(e){g=e,Object.defineProperty(e,w,{configurable:!0,writable:!0,value:!0})}(e),Se(e))}var Ee={install:function(e){return Ae(e)}};"undefined"!=typeof window&&window.Vue&&window.Vue.use(Ee),e.computed=function(e){var n,t,r,o,i=$();if("function"==typeof e?n=e:(n=e.get,t=e.set),i&&!i.$isServer){var a,f=function(){if(!h){var e=S(O(),{computed:{value:function(){return 0}}}),n=e._computedWatchers.value.constructor,t=e._data.__ob__.dep.constructor;h={Watcher:n,Dep:t},e.$destroy()}return h}(),c=f.Watcher,l=f.Dep;o=function(){return a||(a=new c(i,n,u,{lazy:!0})),a.dirty&&a.evaluate(),l.target&&a.depend(),a.value},r=function(e){t&&t(e)}}else{var s=S(O(),{computed:{$$state:{get:n,set:t}}});i&&i.$on("hook:destroyed",(function(){return s.$destroy()})),o=function(){return s.$$state},r=function(e){s.$$state=e}}return F({get:o,set:r})},e.createApp=function(e,n){void 0===n&&(n=void 0);var t=O(),r=void 0;return{config:t.config,use:t.use.bind(t),mixin:t.mixin.bind(t),component:t.component.bind(t),directive:t.directive.bind(t),mount:function(o,i){return r||((r=new t(A({propsData:n},e))).$mount(o,i),r)},unmount:function(){r&&(r.$destroy(),r=void 0)}}},e.customRef=function(e){var n=I(0);return F(e((function(){n.value}),(function(){++n.value})))},e.default=Ee,e.defineComponent=function(e){return e},e.del=function(e,n){if(O().util.warn,Array.isArray(e)&&v(n))e.splice(n,1);else{var t=e.__ob__;e._isVue||t&&t.vmCount||l(e,n)&&(delete e[n],t&&t.dep.notify())}},e.getCurrentInstance=$,e.h=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var t=$();return t?t.$createElement.apply(t,e):(y("`createElement()` has been called outside of render function."),je||(je=S(O()).$createElement),je.apply(je,e))},e.inject=function(e,n,t){if(void 0===t&&(t=!1),!e)return n;var r=$();if(r){var o=function(e,n){for(var t=n;t;){if(t._provided&&l(t._provided,e))return t._provided[e];t=t.$parent}return me}(e,r);return o!==me?o:t&&p(n)?n():n}y("inject() can only be used inside setup() or functional components.")},e.isRaw=N,e.isReactive=G,e.isReadonly=function(e){return W.has(e)},e.isRef=K,e.markRaw=function(e){if(!d(e)&&!s(e)||!Object.isExtensible(e))return e;var n=Y();return n.__raw__=!0,c(e,"__ob__",n),T.set(e,!0),e},e.nextTick=function(){for(var e,n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return null===(e=O())||void 0===e?void 0:e.nextTick.apply(this,n)},e.onActivated=le,e.onBeforeMount=re,e.onBeforeUnmount=ae,e.onBeforeUpdate=ie,e.onDeactivated=se,e.onErrorCaptured=ce,e.onMounted=oe,e.onServerPrefetch=ve,e.onUnmounted=fe,e.onUpdated=ue,e.provide=function(e,n){var t=x();if(t){if(!t._provided){var r={};Object.defineProperty(t,"_provided",{get:function(){return r},set:function(e){return Object.assign(r,e)}})}t._provided[e]=n}},e.proxyRefs=function(e){var n,t,r;if(G(e))return e;var o=ee(((n={})[B]=e,n)),i=function(e){f(o,e,{get:function(){return K(o[e])?o[e].value:o[e]},set:function(n){if(K(o[e]))return o[e].value=q(n);o[e]=q(n)}})};try{for(var u=E(Object.keys(e)),a=u.next();!a.done;a=u.next()){i(a.value)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=u.return)&&r.call(u)}finally{if(t)throw t.error}}return o},e.reactive=ee,e.ref=I,e.set=function(e,n,t){var r=O().util,o=(r.warn,r.defineReactive);if(s(e)&&v(n))return e.length=Math.max(e.length,n),e.splice(n,1,t),t;if(n in e&&!(n in Object.prototype))return e[n]=t,t;var i=e.__ob__;return e._isVue||i&&i.vmCount?t:i?(o(i.value,n,t),L(e,n,t),i.dep.notify(),t):(e[n]=t,t)},e.shallowReactive=Z,e.shallowReadonly=function(e){var n,t;if(!d(e)&&!s(e)||!Object.isExtensible(e))return e;var r={},o=ee({}),i=o.__ob__,u=function(n){var t,o=e[n],u=void 0,f=Object.getOwnPropertyDescriptor(e,n);if(f){if(!1===f.configurable)return"continue";t=f.get,u=f.set,t&&!u||2!==a.length||(o=e[n])}Object.defineProperty(r,n,{enumerable:!0,configurable:!0,get:function(){var n=t?t.call(e):o;return i.dep.depend(),n},set:function(e){}})},a=arguments;try{for(var f=E(Object.keys(e)),c=f.next();!c.done;c=f.next()){var l=c.value;u(l)}}catch(e){n={error:e}}finally{try{c&&!c.done&&(t=f.return)&&t.call(f)}finally{if(n)throw n.error}}return W.set(r,!0),r},e.shallowRef=function(e){var n;if(K(e))return e;var t=Z(((n={})[B]=e,n));return F({get:function(){return t[B]},set:function(e){return t[B]=e}})},e.toRaw=function(e){var n,t;return N(e)||!Object.isExtensible(e)?e:(null===(t=null===(n=e)||void 0===n?void 0:n.__ob__)||void 0===t?void 0:t.value)||e},e.toRef=J,e.toRefs=Q,e.triggerRef=function(e){K(e)&&(e.value=e.value)},e.unref=q,e.useCSSModule=function(e){void 0===e&&(e="$style");var n=$();if(!n)return we;var t=n[e];return t||we},e.version="1.0.0-beta.20",e.warn=function(e){y(e,$())},e.watch=function(e,n,t){var r=null;"function"==typeof n?r=n:(t=n,r=null);var o=function(e){return A({immediate:!1,deep:!1,flush:"pre"},e)}(t);return ge(ye(),e,r,o)},e.watchEffect=function(e,n){var t=function(e){return A({immediate:!0,deep:!1,flush:"pre"},e)}(n);return ge(ye(),e,null,t)},Object.defineProperty(e,"__esModule",{value:!0})}));
***************************************************************************** */function P(e){var n="function"==typeof Symbol&&Symbol.iterator,t=n&&e[n],r=0;if(t)return t.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function A(e,n){var t="function"==typeof Symbol&&e[Symbol.iterator];if(!t)return e;var r,o,i=t.call(e),u=[];try{for(;(void 0===n||n-- >0)&&!(r=i.next()).done;)u.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(t=i.return)&&t.call(i)}finally{if(o)throw o.error}}return u}function C(){for(var e=[],n=0;n<arguments.length;n++)e=e.concat(A(arguments[n]));return e}function M(e){return i?Symbol.for(e):e}var D=M("composition-api.preFlushQueue"),V=M("composition-api.postFlushQueue"),B="composition-api.refKey",U=new WeakMap,T=new WeakMap,W=new WeakMap,z=function(e){f(this,"value",{get:e.get,set:e.set})};function F(e,n){var t=new z(e),r=Object.seal(t);return W.set(r,!0),r}function I(e){var n;if(K(e))return e;var t=ee(((n={})[B]=e,n));return F({get:function(){return t[B]},set:function(e){return t[B]=e}})}function K(e){return e instanceof z}function q(e){return K(e)?e.value:e}function Q(e){if(!d(e))return e;var n={};for(var t in e)n[t]=J(e,t);return n}function J(e,n){var t=e[n];return K(t)?t:F({get:function(){return e[n]},set:function(t){return e[n]=t}})}function N(e){var n;return Boolean((null==e?void 0:e.__ob__)&&(null===(n=e.__ob__)||void 0===n?void 0:n.__raw__))}function G(e){var n;return Boolean((null==e?void 0:e.__ob__)&&!(null===(n=e.__ob__)||void 0===n?void 0:n.__raw__))}function H(e){if(!(!d(e)||N(e)||Array.isArray(e)||K(e)||function(e){var n=O();return n&&e instanceof n}(e)||U.has(e))){U.set(e,!0);for(var n=Object.keys(e),t=0;t<n.length;t++)L(e,n[t])}}function L(e,n,t){if("__ob__"!==n&&!N(e[n])){var r,o,i=Object.getOwnPropertyDescriptor(e,n);if(i){if(!1===i.configurable)return;r=i.get,o=i.set,r&&!o||2!==arguments.length||(t=e[n])}H(t),Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:function(){var o=r?r.call(e):t;return n!==B&&K(o)?o.value:o},set:function(i){if(!r||o){var u=r?r.call(e):t;n!==B&&K(u)&&!K(i)?u.value=i:o?o.call(e,i):t=i,H(i)}}})}}function X(e){var n,t=g||_;t.observable?n=t.observable(e):n=S(t,{data:{$$state:e}})._data.$$state;return l(n,"__ob__")||c(n,"__ob__",function(e){void 0===e&&(e={});return{value:e,dep:{notify:u,depend:u,addSub:u,removeSub:u}}}(n)),n}function Y(){return X({}).__ob__}function Z(e){var n,t;if(!d(e)&&!s(e)||N(e)||!Object.isExtensible(e))return e;var r=X({});H(r);var o=r.__ob__,i=function(n){var t,i,a=e[n],f=Object.getOwnPropertyDescriptor(e,n);if(f){if(!1===f.configurable)return"continue";t=f.get,i=f.set,t&&!i||2!==u.length||(a=e[n])}Object.defineProperty(r,n,{enumerable:!0,configurable:!0,get:function(){var n,r=t?t.call(e):a;return null===(n=o.dep)||void 0===n||n.depend(),r},set:function(n){var r;t&&!i||(i?i.call(e,n):a=n,null===(r=o.dep)||void 0===r||r.notify())}})},u=arguments;try{for(var a=P(Object.keys(e)),f=a.next();!f.done;f=a.next()){var c=f.value;i(c)}}catch(e){n={error:e}}finally{try{f&&!f.done&&(t=a.return)&&t.call(a)}finally{if(n)throw n.error}}return r}function ee(e){if(!d(e)&&!s(e)||N(e)||!Object.isExtensible(e))return e;var n=X(e);return H(n),n}function ne(e){return function(n){var t,r=k(((t=e)[0].toUpperCase(),t.slice(1)));r&&function(e,n,t,r){var o=n.$options,i=e.config.optionMergeStrategies[t];o[t]=i(o[t],function(e,n){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var o=$();x(e);try{return n.apply(void 0,C(t))}finally{x(o)}}}(n,r))}(O(),r,e,n)}}var te,re=ne("beforeMount"),oe=ne("mounted"),ie=ne("beforeUpdate"),ue=ne("updated"),ae=ne("beforeDestroy"),fe=ne("destroyed"),ce=ne("errorCaptured"),le=ne("activated"),se=ne("deactivated"),ve=ne("serverPrefetch");function de(){_e(this,D)}function pe(){_e(this,V)}function ye(){var e=$();return e?function(e){return void 0!==e[D]}(e)||function(e){e[D]=[],e[V]=[],e.$on("hook:beforeUpdate",de),e.$on("hook:updated",pe)}(e):(te||(te=S(O())),e=te),e}function _e(e,n){for(var t=e[n],r=0;r<t.length;r++)t[r]();t.length=0}function be(e,n,t){var r=function(){e.$nextTick((function(){e[D].length&&_e(e,D),e[V].length&&_e(e,V)}))};switch(t){case"pre":r(),e[D].push(n);break;case"post":r(),e[V].push(n);break;default:!function(e,n){if(!e)throw new Error("[vue-composition-api] "+n)}(!1,'flush must be one of ["post", "pre", "sync"], but got '+t)}}function he(e,n){var t=e.teardown;e.teardown=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];t.apply(e,r),n()}}function ge(e,n,t,r){var o,i,a=r.flush,f="sync"===a,c=function(e){i=function(){try{e()}catch(e){!function(e,n,t){if("undefined"==typeof window||"undefined"==typeof console)throw e;console.error(e)}(e)}}},l=function(){i&&(i(),i=null)},s=function(n){return f||e===te?n:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return be(e,(function(){n.apply(void 0,C(t))}),a)}};if(null===t){var v=!1,d=function(e,n,t,r){var o=e._watchers.length;return e.$watch(n,t,{immediate:r.immediateInvokeCallback,deep:r.deep,lazy:r.noRun,sync:r.sync,before:r.before}),e._watchers[o]}(e,(function(){if(!v)try{v=!0,n(c)}finally{v=!1}}),u,{deep:r.deep||!1,sync:f,before:l});he(d,l),d.lazy=!1;var _=d.get.bind(d);return d.get=s(_),function(){d.teardown()}}var b,h=r.deep;Array.isArray(n)?b=function(){return n.map((function(e){return K(e)?e.value:e()}))}:K(n)?b=function(){return n.value}:G(n)?(b=function(){return n},h=!0):p(n)?b=n:(b=u,y("Invalid watch source: "+JSON.stringify(n)+".\n A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.",e));var g=function(e,n){l(),t(e,n,c)},m=s(g);if(r.immediate){var w=m,j=function(e,n){j=w,g(e,n)};m=function(e,n){j(e,n)}}var O=e.$watch(b,m,{immediate:r.immediate,deep:h,sync:f}),$=e._watchers[e._watchers.length-1];return G($.value)&&(null===(o=$.value.__ob__)||void 0===o?void 0:o.dep)&&h&&$.value.__ob__.dep.addSub({update:function(){$.run()}}),he($,l),function(){O()}}var me={};var we={};var je;var Oe={set:function(e,n,t){(e.__composition_api_state__=e.__composition_api_state__||{})[n]=t},get:function(e,n){return(e.__composition_api_state__||{})[n]}};function $e(e){var n=Oe.get(e,"rawBindings")||{};if(n&&Object.keys(n).length){for(var t=e.$refs,r=Oe.get(e,"refs")||[],o=0;o<r.length;o++){var i=n[f=r[o]];!t[f]&&i&&K(i)&&(i.value=null)}var u=Object.keys(t),a=[];for(o=0;o<u.length;o++){var f;i=n[f=u[o]];t[f]&&i&&K(i)&&(i.value=t[f],a.push(f))}Oe.set(e,"refs",a)}}function xe(e,n){var t=e.$options._parentVnode;if(t){for(var r=Oe.get(e,"slots")||[],o=function(e,n){var t;if(e){if(e._normalized)return e._normalized;for(var r in t={},e)e[r]&&"$"!==r[0]&&(t[r]=!0)}else t={};for(var r in n)r in t||(t[r]=!0);return t}(t.data.scopedSlots,e.$slots),i=0;i<r.length;i++){o[a=r[i]]||delete n[a]}var u=Object.keys(o);for(i=0;i<u.length;i++){var a;n[a=u[i]]||(n[a]=R(e,a))}Oe.set(e,"slots",u)}}function ke(e,n,t){var r=$();x(e);try{return n(e)}catch(e){if(!t)throw e;t(e)}finally{x(r)}}function Se(e){function n(e){if(d(e)&&!K(e)&&!G(e)&&!N(e)){var t=O().util.defineReactive;Object.keys(e).forEach((function(r){var o=e[r];t(e,r,o),o&&n(o)}))}}function t(e,n){return void 0===n&&(n=new Map),n.has(e)?n.get(e):(n.set(e,!1),Array.isArray(e)&&G(e)?(n.set(e,!0),!0):!(!d(e)||N(e))&&Object.keys(e).some((function(r){return t(e[r],n)})))}e.mixin({beforeCreate:function(){var e=this,r=e.$options,o=r.setup,i=r.render;i&&(r.render=function(){for(var n=this,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return ke(e,(function(){return i.apply(n,t)}))});if(!o)return;if("function"!=typeof o)return;var u=r.data;r.data=function(){return function(e,r){void 0===r&&(r={});var o,i=e.$options.setup,u=function(e){var n={slots:{}},t=["attrs"],r=["emit"];return["root","parent","refs","listeners","isServer","ssrContext"].forEach((function(t){var r="$"+t;f(n,t,{get:function(){return e[r]},set:function(){y("Cannot assign to '"+t+"' because it is a read-only property",e)}})})),t.forEach((function(t){var r="$"+t;f(n,t,{get:function(){var n,t,o=ee({}),i=e[r],u=function(n){f(o,n,{get:function(){return e[r][n]}})};try{for(var a=P(Object.keys(i)),c=a.next();!c.done;c=a.next()){u(c.value)}}catch(e){n={error:e}}finally{try{c&&!c.done&&(t=a.return)&&t.call(a)}finally{if(n)throw n.error}}return o},set:function(){y("Cannot assign to '"+t+"' because it is a read-only property",e)}})})),r.forEach((function(t){var r="$"+t;f(n,t,{get:function(){return function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];e[r].apply(e,n)}}})})),n}(e);if(c(r,"__ob__",Y()),xe(e,u.slots),ke(e,(function(){o=i(r,u)})),!o)return;if(p(o)){var a=o;return void(e.$options.render=function(){return xe(e,u.slots),ke(e,(function(){return a()}))})}if(d(o)){G(o)&&(o=Q(o)),Oe.set(e,"rawBindings",o);var v=o;Object.keys(v).forEach((function(r){var o,i=v[r];K(i)||(G(i)?s(i)&&(i=I(i)):p(i)?i=i.bind(e):null===(o=i)||"object"!=typeof o?i=I(i):t(i)&&n(i)),function(e,n,t){var r=e.$options.props;n in e||r&&l(r,n)||(K(t)?f(e,n,{get:function(){return t.value},set:function(e){t.value=e}}):e[n]=t)}(e,r,i)}))}}(e,e.$props),"function"==typeof u?u.call(e,e):u||{}}},mounted:function(){$e(this)},updated:function(){$e(this)}})}function Re(e,n){if(!e)return n;if(!n)return e;for(var t,r,o,u=i?Reflect.ownKeys(e):Object.keys(e),a=0;a<u.length;a++)"__ob__"!==(t=u[a])&&(r=n[t],o=e[t],l(n,t)?r!==o&&d(r)&&!K(r)&&d(o)&&!K(o)&&Re(o,r):n[t]=o);return n}function Ee(e){(function(e){return l(e,w)})(e)||(e.config.optionMergeStrategies.setup=function(e,n){return function(t,r){return Re("function"==typeof e?e(t,r)||{}:void 0,"function"==typeof n?n(t,r)||{}:void 0)}},function(e){g=e,Object.defineProperty(e,w,{configurable:!0,writable:!0,value:!0})}(e),Se(e))}var Pe={install:function(e){return Ee(e)}};"undefined"!=typeof window&&window.Vue&&window.Vue.use(Pe),e.computed=function(e){var n,t,r,o,i=$();if("function"==typeof e?n=e:(n=e.get,t=e.set),i&&!i.$isServer){var a,f=function(){if(!h){var e=S(O(),{computed:{value:function(){return 0}}}),n=e._computedWatchers.value.constructor,t=e._data.__ob__.dep.constructor;h={Watcher:n,Dep:t},e.$destroy()}return h}(),c=f.Watcher,l=f.Dep;o=function(){return a||(a=new c(i,n,u,{lazy:!0})),a.dirty&&a.evaluate(),l.target&&a.depend(),a.value},r=function(e){t&&t(e)}}else{var s=S(O(),{computed:{$$state:{get:n,set:t}}});i&&i.$on("hook:destroyed",(function(){return s.$destroy()})),o=function(){return s.$$state},r=function(e){s.$$state=e}}return F({get:o,set:r})},e.createApp=function(e,n){void 0===n&&(n=void 0);var t=O(),r=void 0;return{config:t.config,use:t.use.bind(t),mixin:t.mixin.bind(t),component:t.component.bind(t),directive:t.directive.bind(t),mount:function(o,i){return r||((r=new t(E({propsData:n},e))).$mount(o,i),r)},unmount:function(){r&&(r.$destroy(),r=void 0)}}},e.customRef=function(e){var n=I(0);return F(e((function(){n.value}),(function(){++n.value})))},e.default=Pe,e.defineComponent=function(e){return e},e.del=function(e,n){if(O().util.warn,Array.isArray(e)&&v(n))e.splice(n,1);else{var t=e.__ob__;e._isVue||t&&t.vmCount||l(e,n)&&(delete e[n],t&&t.dep.notify())}},e.getCurrentInstance=$,e.h=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var t=$();return t?t.$createElement.apply(t,e):(y("`createElement()` has been called outside of render function."),je||(je=S(O()).$createElement),je.apply(je,e))},e.inject=function(e,n,t){if(void 0===t&&(t=!1),!e)return n;var r=$();if(r){var o=function(e,n){for(var t=n;t;){if(t._provided&&l(t._provided,e))return t._provided[e];t=t.$parent}return me}(e,r);return o!==me?o:t&&p(n)?n():n}y("inject() can only be used inside setup() or functional components.")},e.isRaw=N,e.isReactive=G,e.isReadonly=function(e){return W.has(e)},e.isRef=K,e.markRaw=function(e){if(!d(e)&&!s(e)||!Object.isExtensible(e))return e;var n=Y();return n.__raw__=!0,c(e,"__ob__",n),T.set(e,!0),e},e.nextTick=function(){for(var e,n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return null===(e=O())||void 0===e?void 0:e.nextTick.apply(this,n)},e.onActivated=le,e.onBeforeMount=re,e.onBeforeUnmount=ae,e.onBeforeUpdate=ie,e.onDeactivated=se,e.onErrorCaptured=ce,e.onMounted=oe,e.onServerPrefetch=ve,e.onUnmounted=fe,e.onUpdated=ue,e.provide=function(e,n){var t=k();if(t){if(!t._provided){var r={};Object.defineProperty(t,"_provided",{get:function(){return r},set:function(e){return Object.assign(r,e)}})}t._provided[e]=n}},e.proxyRefs=function(e){var n,t,r;if(G(e))return e;var o=ee(((n={})[B]=e,n)),i=function(e){f(o,e,{get:function(){return K(o[e])?o[e].value:o[e]},set:function(n){if(K(o[e]))return o[e].value=q(n);o[e]=q(n)}})};try{for(var u=P(Object.keys(e)),a=u.next();!a.done;a=u.next()){i(a.value)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=u.return)&&r.call(u)}finally{if(t)throw t.error}}return o},e.reactive=ee,e.readonly=function(e){return e},e.ref=I,e.set=function(e,n,t){var r=O().util,o=(r.warn,r.defineReactive);if(s(e)&&v(n))return e.length=Math.max(e.length,n),e.splice(n,1,t),t;if(n in e&&!(n in Object.prototype))return e[n]=t,t;var i=e.__ob__;return e._isVue||i&&i.vmCount?t:i?(o(i.value,n,t),L(e,n,t),i.dep.notify(),t):(e[n]=t,t)},e.shallowReactive=Z,e.shallowReadonly=function(e){var n,t;if(!d(e)&&!s(e)||!Object.isExtensible(e))return e;var r={},o=ee({}),i=o.__ob__,u=function(n){var t,o=e[n],u=void 0,f=Object.getOwnPropertyDescriptor(e,n);if(f){if(!1===f.configurable)return"continue";t=f.get,u=f.set,t&&!u||2!==a.length||(o=e[n])}Object.defineProperty(r,n,{enumerable:!0,configurable:!0,get:function(){var n=t?t.call(e):o;return i.dep.depend(),n},set:function(e){}})},a=arguments;try{for(var f=P(Object.keys(e)),c=f.next();!c.done;c=f.next()){var l=c.value;u(l)}}catch(e){n={error:e}}finally{try{c&&!c.done&&(t=f.return)&&t.call(f)}finally{if(n)throw n.error}}return W.set(r,!0),r},e.shallowRef=function(e){var n;if(K(e))return e;var t=Z(((n={})[B]=e,n));return F({get:function(){return t[B]},set:function(e){return t[B]=e}})},e.toRaw=function(e){var n,t;return N(e)||!Object.isExtensible(e)?e:(null===(t=null===(n=e)||void 0===n?void 0:n.__ob__)||void 0===t?void 0:t.value)||e},e.toRef=J,e.toRefs=Q,e.triggerRef=function(e){K(e)&&(e.value=e.value)},e.unref=q,e.useCSSModule=function(e){void 0===e&&(e="$style");var n=$();if(!n)return we;var t=n[e];return t||we},e.version="1.0.0-beta.21",e.warn=function(e){y(e,$())},e.watch=function(e,n,t){var r=null;"function"==typeof n?r=n:(t=n,r=null);var o=function(e){return E({immediate:!1,deep:!1,flush:"pre"},e)}(t);return ge(ye(),e,r,o)},e.watchEffect=function(e,n){var t=function(e){return E({immediate:!0,deep:!1,flush:"pre"},e)}(n);return ge(ye(),e,null,t)},Object.defineProperty(e,"__esModule",{value:!0})}));
{
"name": "@vue/composition-api",
"version": "1.0.0-beta.20",
"version": "1.0.0-beta.21",
"description": "Provide logic composition capabilities for Vue.",

@@ -5,0 +5,0 @@ "keywords": [

@@ -44,3 +44,3 @@ # @vue/composition-api

<script src="https://cdn.jsdelivr.net/npm/vue@2.6"></script>
<script src="https://cdn.jsdelivr.net/npm/@vue/composition-api@1.0.0-beta.20"></script>
<script src="https://cdn.jsdelivr.net/npm/@vue/composition-api@1.0.0-beta.21"></script>
```

@@ -116,2 +116,6 @@ <!--cdn-links-end-->

## Browser Compatibility
`@vue/composition-api` supports all modern browsers and IE11+. For lower versions IE you should install `WeakMap` polyfill (for example from `core-js` package).
## Limitations

@@ -446,2 +450,13 @@

### `readonly`
<details>
<summary>
⚠️ <code>readonly()</code> provides **only type-level** readonly check.
</summary>
`readonly()` is provided as API alignment with Vue 3 on type-level only. Use <code>isReadonly()</code> on it or it's properties can not be guaranteed.
</details>
### `props`

@@ -473,3 +488,2 @@

- `readonly`
- `defineAsyncComponent`

@@ -527,4 +541,4 @@ - `onRenderTracked`

Due the the limitation of Vue2's public API. `@vue/composition-api` inevitably introduced some extract costs. It shouldn't bother you unless in extreme environments.
Due the the limitation of Vue2's public API. `@vue/composition-api` inevitably introduces some performance overhead. Note that in most scenarios, this shouldn't be the source of performance issues.
You can check the [benchmark results](https://antfu.github.io/vue-composition-api-benchmark-results/) for more details.

@@ -43,3 +43,3 @@ # @vue/composition-api

<script src="https://cdn.jsdelivr.net/npm/vue@2.6"></script>
<script src="https://cdn.jsdelivr.net/npm/@vue/composition-api@1.0.0-beta.20"></script>
<script src="https://cdn.jsdelivr.net/npm/@vue/composition-api@1.0.0-beta.21"></script>
```

@@ -409,3 +409,3 @@ <!--cdn-links-end-->

### shallowReadonly
### `shallowReadonly`

@@ -421,2 +421,13 @@ <details>

### `readonly`
<details>
<summary>
⚠️ <code>readonly()</code> **只提供类型层面**的只读。
</summary>
`readonly()` 只在类型层面提供和 Vue 3 的对齐。在其返回值或其属性上使用 <code>isReadonly()</code> 检查的结果将无法保证。
</details>
### `props`

@@ -448,3 +459,2 @@

- `readonly`
- `defineAsyncComponent`

@@ -451,0 +461,0 @@ - `onRenderTracked`

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc