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.16 to 1.0.0-beta.17

28

CHANGELOG.md

@@ -0,1 +1,29 @@

<a name="1.0.0-beta.17"></a>
# [1.0.0-beta.17](https://github.com/vuejs/composition-api/compare/v1.0.0-beta.16...v1.0.0-beta.17) (2020-10-17)
### Bug Fixes
* **types:** prop type infer, fix [#555](https://github.com/vuejs/composition-api/issues/555) ([#561](https://github.com/vuejs/composition-api/issues/561)) ([35f8fec](https://github.com/vuejs/composition-api/commit/35f8fec))
### Code Refactoring
* watch APIs default to trigger pre-flush ([#566](https://github.com/vuejs/composition-api/issues/566)) ([ded5ab7](https://github.com/vuejs/composition-api/commit/ded5ab7)), closes [#1706](https://github.com/vuejs/composition-api/issues/1706)
### BREAKING CHANGES
* watch APIs now default to use `flush: 'pre'` instead of
`flush: 'post'`.
- Check https://github.com/vuejs/vue-next/commit/49bb44756fda0a7019c69f2fa6b880d9e41125aa
- This change affects `watch`, `watchEffect`, the `watch` component
option, and `this.$watch`.
- As pointed out by @skirtles-code in
<a name="1.0.0-beta.16"></a>

@@ -2,0 +30,0 @@ # [1.0.0-beta.16](https://github.com/vuejs/composition-api/compare/v1.0.0-beta.15...v1.0.0-beta.16) (2020-10-10)

30

dist/index.d.ts

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

};
declare type Prop<T> = PropOptions<T> | PropType<T>;
declare type Prop<T, D = T> = PropOptions<T, D> | PropType<T>;
declare type DefaultFactory<T> = () => T | null | undefined;
interface PropOptions<T = any> {
interface PropOptions<T = any, D = T> {
type?: PropType<T> | true | null;
required?: boolean;
default?: T | DefaultFactory<T> | null | undefined;
default?: D | DefaultFactory<D> | null | undefined | object;
validator?(value: unknown): boolean;

@@ -29,10 +29,10 @@ }

};
declare type RequiredKeys<T, MakeDefaultRequired> = {
declare type RequiredKeys<T> = {
[K in keyof T]: T[K] extends {
required: true;
} | (MakeDefaultRequired extends true ? {
} | {
default: any;
} : never) ? K : never;
} ? K : never;
}[keyof T];
declare type OptionalKeys<T, MakeDefaultRequired> = Exclude<keyof T, RequiredKeys<T, MakeDefaultRequired>>;
declare type OptionalKeys<T> = Exclude<keyof T, RequiredKeys<T>>;
declare type ExtractFunctionPropType<T extends Function, TArgs extends Array<any> = any[], TResult = any> = T extends (...args: TArgs) => TResult ? T : never;

@@ -44,11 +44,9 @@ declare type ExtractCorrectPropType<T> = T extends Function ? ExtractFunctionPropType<T> : Exclude<T, Function>;

type: ObjectConstructor;
} ? {
[key: string]: any;
} : T extends BooleanConstructor | {
} ? Record<string, any> : T extends BooleanConstructor | {
type: BooleanConstructor;
} ? boolean : T extends FunctionConstructor ? Function : T extends Prop<infer V> ? ExtractCorrectPropType<V> : T;
declare type ExtractPropTypes<O, MakeDefaultRequired extends boolean = true> = O extends object ? {
[K in RequiredKeys<O, MakeDefaultRequired>]: InferPropType<O[K]>;
} ? boolean : T extends FunctionConstructor ? Function : T extends Prop<infer V, infer D> ? unknown extends V ? D : ExtractCorrectPropType<V> : T;
declare type ExtractPropTypes<O> = O extends object ? {
[K in RequiredKeys<O>]: InferPropType<O[K]>;
} & {
[K in OptionalKeys<O, MakeDefaultRequired>]?: InferPropType<O[K]>;
[K in OptionalKeys<O>]?: InferPropType<O[K]>;
} : {

@@ -68,3 +66,3 @@ [K in string]: any;

declare type VueConstructorProxy<PropsOptions, RawBindings> = VueConstructor & {
new (...args: any[]): ComponentRenderProxy<ExtractPropTypes<PropsOptions>, ShallowUnwrapRef<RawBindings>, ExtractPropTypes<PropsOptions, false>>;
new (...args: any[]): ComponentRenderProxy<ExtractPropTypes<PropsOptions>, ShallowUnwrapRef<RawBindings>, ExtractPropTypes<PropsOptions>>;
};

@@ -78,3 +76,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, false>> & VueConstructorProxy<PropsOptions, RawBindings>;
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>;

@@ -81,0 +79,0 @@ interface SetupContext {

@@ -791,3 +791,3 @@ 'use strict';

deep: false,
flush: 'post',
flush: 'pre',
}, options);

@@ -799,3 +799,3 @@ }

deep: false,
flush: 'post',
flush: 'pre',
}, options);

@@ -1606,3 +1606,3 @@ }

var version = "1.0.0-beta.16";
var version = "1.0.0-beta.17";
// auto install when using CDN

@@ -1609,0 +1609,0 @@ if (typeof window !== 'undefined' && window.Vue) {

@@ -15,2 +15,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){return"[object Object]"===function(e){return Object.prototype.toString.call(e)}(e)}function l(e){return"function"==typeof e}function v(e,n){t.default.util.warn(e,n)}var p=void 0;try{p=require("vue")}catch(e){}var d,_=null,y=null;function b(){return _}function h(){return y}function g(e){y=e}function m(e){return h()}function x(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 w(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):v("slots."+t+'() got called outside of the "render()" scope',e)}}var j=function(){return(j=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)};

PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */function O(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 $(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 k(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat($(arguments[t]));return e}function S(e){return r?Symbol.for(e):e}var R=S("composition-api.preFlushQueue"),E=S("composition-api.postFlushQueue"),P="composition-api.refKey",A=new WeakMap,M=new WeakMap,C=new WeakMap,D=function(e){u(this,"value",{get:e.get,set:e.set})};function B(e,t){var n=new D(e),r=Object.seal(n);return C.set(r,!0),r}function U(e){var t;if(W(e))return e;var n=G(((t={})[P]=e,t));return B({get:function(){return n[P]},set:function(e){return n[P]=e}})}function W(e){return e instanceof D}function z(e){return W(e)?e.value:e}function F(e){if(!s(e))return e;var t={};for(var n in e)t[n]=T(e,n);return t}function T(e,t){var n=e[t];return W(n)?n:B({get:function(){return e[t]},set:function(n){return e[t]=n}})}function V(e){var t;return Boolean((null==e?void 0:e.__ob__)&&(null===(t=e.__ob__)||void 0===t?void 0:t.__raw__))}function I(e){var t;return Boolean((null==e?void 0:e.__ob__)&&!(null===(t=e.__ob__)||void 0===t?void 0:t.__raw__))}function K(e){if(!(!s(e)||V(e)||Array.isArray(e)||W(e)||function(e){var t=b();return t&&e instanceof t}(e)||A.has(e))){A.set(e,!0);for(var t=Object.keys(e),n=0;n<t.length;n++)q(e,t[n])}}function q(e,t,n){if("__ob__"!==t&&!V(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])}K(n),Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){var o=r?r.call(e):n;return t!==P&&W(o)?o.value:o},set:function(i){if(!r||o){var u=r?r.call(e):n;t!==P&&W(u)&&!W(i)?u.value=i:o?o.call(e,i):n=i,K(i)}}})}}function Q(e){var t,n=_||p;n.observable?t=n.observable(e):t=x(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 J(){return Q({}).__ob__}function N(e){var t,n;if(!s(e)&&!c(e)||V(e)||!Object.isExtensible(e))return e;var r=Q({});K(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=O(Object.keys(e)),f=a.next();!f.done;f=a.next()){var l=f.value;i(l)}}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 G(e){if(!s(e)&&!c(e)||V(e)||!Object.isExtensible(e))return e;var t=Q(e);return K(t),t}function H(e){return function(t){var n,r=m(((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=h();g(e);try{return t.apply(void 0,k(n))}finally{g(o)}}}(t,r))}(b(),r,e,t)}}var L,X=H("beforeMount"),Y=H("mounted"),Z=H("beforeUpdate"),ee=H("updated"),te=H("beforeDestroy"),ne=H("destroyed"),re=H("errorCaptured"),oe=H("activated"),ie=H("deactivated"),ue=H("serverPrefetch");function ae(){se(this,R)}function fe(){se(this,E)}function ce(){var e=h();return e?function(e){return void 0!==e[R]}(e)||function(e){e[R]=[],e[E]=[],e.$on("hook:beforeUpdate",ae),e.$on("hook:updated",fe)}(e):(L||(L=x(b())),e=L),e}function se(e,t){for(var n=e[t],r=0;r<n.length;r++)n[r]();n.length=0}function le(e,t,n){var r=function(){e.$nextTick((function(){e[R].length&&se(e,R),e[E].length&&se(e,E)}))};switch(n){case"pre":r(),e[R].push(t);break;case"post":r(),e[E].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 ve(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 pe(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)},p=function(t){return f||e===L?t:function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return le(e,(function(){t.apply(void 0,k(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});ve(_,s),_.lazy=!1;var y=_.get.bind(_);return _.get=p(y),function(){_.teardown()}}var b,h=r.deep;Array.isArray(t)?b=function(){return t.map((function(e){return W(e)?e.value:e()}))}:W(t)?b=function(){return t.value}:I(t)?(b=function(){return t},h=!0):l(t)?b=t:(b=o,v("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=p(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 I(O.value)&&(null===(i=O.value.__ob__)||void 0===i?void 0:i.dep)&&h&&O.value.__ob__.dep.addSub({update:function(){O.run()}}),ve(O,s),function(){j()}}var de={};var _e={};var ye;var be={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 he(e){var t=be.get(e,"rawBindings")||{};if(t&&Object.keys(t).length){for(var n=e.$refs,r=be.get(e,"refs")||[],o=0;o<r.length;o++){var i=t[f=r[o]];!n[f]&&i&&W(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&&W(i)&&(i.value=n[f],a.push(f))}be.set(e,"refs",a)}}function ge(e,t){var n=e.$options._parentVnode;if(n){for(var r=be.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]=w(e,a))}be.set(e,"slots",u)}}function me(e,t,n){var r=h();g(e);try{return t(e)}catch(e){if(!n)throw e;n(e)}finally{g(r)}}function xe(e){function t(e){if(s(e)&&!W(e)&&!I(e)&&!V(e)){var n=b().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)&&I(e)?(t.set(e,!0),!0):!(!s(e)||V(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 me(e,(function(){return i.apply(t,n)}))});if(!o)return;if("function"!=typeof o)return;var p=r.data;r.data=function(){return function(e,r){void 0===r&&(r={});var o,i=e.$options.setup,p=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=$(n,2),o=r[0],i=r[1]):o=i=n,i="$"+i,u(t,o,{get:function(){return e[i]},set:function(){v("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__",J()),ge(e,p.slots),me(e,(function(){o=i(r,p)})),!o)return;if(l(o)){var d=o;return void(e.$options.render=function(){return ge(e,p.slots),me(e,(function(){return d()}))})}if(s(o)){I(o)&&(o=F(o)),be.set(e,"rawBindings",o);var _=o;Object.keys(_).forEach((function(r){var o,i=_[r];W(i)||(I(i)?c(i)&&(i=U(i)):l(i)?i=i.bind(e):null===(o=i)||"object"!=typeof o?i=U(i):n(i)&&t(i)),function(e,t,n){var r=e.$options.props;t in e||r&&f(r,t)||(W(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 p?p.call(e,e):p||{}}},mounted:function(){he(this)},updated:function(){he(this)}})}function we(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&&s(o)&&!W(o)&&s(i)&&!W(i)&&we(i,o):t[n]=i);return t}function je(e){(function(e){return f(e,"__composition_api_installed__")})(e)||(e.config.optionMergeStrategies.setup=function(e,t){return function(n,r){return we("function"==typeof e?e(n,r)||{}:void 0,"function"==typeof t?t(n,r)||{}:void 0)}},function(e){_=e,Object.defineProperty(e,"__composition_api_installed__",{configurable:!0,writable:!0,value:!0})}(e),xe(e))}var Oe={install:function(e){return je(e)}};"undefined"!=typeof window&&window.Vue&&window.Vue.use(Oe),exports.computed=function(e){var t,n,r,i,u=h();if("function"==typeof e?t=e:(t=e.get,n=e.set),u&&!u.$isServer){var a,f=function(){if(!d){var e=x(b(),{computed:{value:function(){return 0}}}),t=e._computedWatchers.value.constructor,n=e._data.__ob__.dep.constructor;d={Watcher:t,Dep:n},e.$destroy()}return d}(),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=x(b(),{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 B({get:i,set:r})},exports.createApp=function(e,t){void 0===t&&(t=void 0);var n=b(),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(j({propsData:t},e))).$mount(o,i),r)},unmount:function(){r&&(r.$destroy(),r=void 0)}}},exports.customRef=function(e){var t=U(0);return B(e((function(){t.value}),(function(){++t.value})))},exports.default=Oe,exports.defineComponent=function(e){return e},exports.getCurrentInstance=h,exports.h=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=h();return n?n.$createElement.apply(n,e):(v("`createElement()` has been called outside of render function."),ye||(ye=x(b()).$createElement),ye.apply(ye,e))},exports.inject=function(e,t,n){if(void 0===n&&(n=!1),!e)return t;var r=h();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 de}(e,r);return o!==de?o:n&&l(t)?t():t}v("inject() can only be used inside setup() or functional components.")},exports.isRaw=V,exports.isReactive=I,exports.isReadonly=function(e){return C.has(e)},exports.isRef=W,exports.markRaw=function(e){if(!s(e)&&!c(e)||!Object.isExtensible(e))return e;var t=J();return t.__raw__=!0,a(e,"__ob__",t),M.set(e,!0),e},exports.nextTick=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return null===(e=b())||void 0===e?void 0:e.nextTick.apply(this,t)},exports.onActivated=oe,exports.onBeforeMount=X,exports.onBeforeUnmount=te,exports.onBeforeUpdate=Z,exports.onDeactivated=ie,exports.onErrorCaptured=re,exports.onMounted=Y,exports.onServerPrefetch=ue,exports.onUnmounted=ne,exports.onUpdated=ee,exports.provide=function(e,t){var n=m();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(I(e))return e;var o=G(((t={})[P]=e,t)),i=function(e){u(o,e,{get:function(){return W(o[e])?o[e].value:o[e]},set:function(t){if(W(o[e]))return o[e].value=z(t);o[e]=z(t)}})};try{for(var a=O(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=G,exports.ref=U,exports.set=function(e,t,n){var r=b().util,o=(r.warn,r.defineReactive);if(c(e)&&function(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}(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),q(e,t,n),i.dep.notify(),n):(e[t]=n,n)},exports.shallowReactive=N,exports.shallowReadonly=function(e){var t,n;if(!s(e)&&!c(e)||!Object.isExtensible(e))return e;var r={},o=G({}),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=O(Object.keys(e)),l=f.next();!l.done;l=f.next()){var v=l.value;u(v)}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=f.return)&&n.call(f)}finally{if(t)throw t.error}}return C.set(r,!0),r},exports.shallowRef=function(e){var t;if(W(e))return e;var n=N(((t={})[P]=e,t));return B({get:function(){return n[P]},set:function(e){return n[P]=e}})},exports.toRaw=function(e){var t,n;return V(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=T,exports.toRefs=F,exports.triggerRef=function(e){W(e)&&(e.value=e.value)},exports.unref=z,exports.useCSSModule=function(e){void 0===e&&(e="$style");var t=h();if(!t)return _e;var n=t[e];return n||_e},exports.version="1.0.0-beta.16",exports.watch=function(e,t,n){var r=null;"function"==typeof t?r=t:(n=t,r=null);var o=function(e){return j({immediate:!1,deep:!1,flush:"post"},e)}(n);return pe(ce(),e,r,o)},exports.watchEffect=function(e,t){var n=function(e){return j({immediate:!0,deep:!1,flush:"post"},e)}(t);return pe(ce(),e,null,n)};
***************************************************************************** */function O(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 $(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 k(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat($(arguments[t]));return e}function S(e){return r?Symbol.for(e):e}var R=S("composition-api.preFlushQueue"),E=S("composition-api.postFlushQueue"),P="composition-api.refKey",A=new WeakMap,M=new WeakMap,C=new WeakMap,D=function(e){u(this,"value",{get:e.get,set:e.set})};function B(e,t){var n=new D(e),r=Object.seal(n);return C.set(r,!0),r}function U(e){var t;if(W(e))return e;var n=G(((t={})[P]=e,t));return B({get:function(){return n[P]},set:function(e){return n[P]=e}})}function W(e){return e instanceof D}function z(e){return W(e)?e.value:e}function F(e){if(!s(e))return e;var t={};for(var n in e)t[n]=T(e,n);return t}function T(e,t){var n=e[t];return W(n)?n:B({get:function(){return e[t]},set:function(n){return e[t]=n}})}function V(e){var t;return Boolean((null==e?void 0:e.__ob__)&&(null===(t=e.__ob__)||void 0===t?void 0:t.__raw__))}function I(e){var t;return Boolean((null==e?void 0:e.__ob__)&&!(null===(t=e.__ob__)||void 0===t?void 0:t.__raw__))}function K(e){if(!(!s(e)||V(e)||Array.isArray(e)||W(e)||function(e){var t=b();return t&&e instanceof t}(e)||A.has(e))){A.set(e,!0);for(var t=Object.keys(e),n=0;n<t.length;n++)q(e,t[n])}}function q(e,t,n){if("__ob__"!==t&&!V(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])}K(n),Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){var o=r?r.call(e):n;return t!==P&&W(o)?o.value:o},set:function(i){if(!r||o){var u=r?r.call(e):n;t!==P&&W(u)&&!W(i)?u.value=i:o?o.call(e,i):n=i,K(i)}}})}}function Q(e){var t,n=_||p;n.observable?t=n.observable(e):t=x(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 J(){return Q({}).__ob__}function N(e){var t,n;if(!s(e)&&!c(e)||V(e)||!Object.isExtensible(e))return e;var r=Q({});K(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=O(Object.keys(e)),f=a.next();!f.done;f=a.next()){var l=f.value;i(l)}}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 G(e){if(!s(e)&&!c(e)||V(e)||!Object.isExtensible(e))return e;var t=Q(e);return K(t),t}function H(e){return function(t){var n,r=m(((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=h();g(e);try{return t.apply(void 0,k(n))}finally{g(o)}}}(t,r))}(b(),r,e,t)}}var L,X=H("beforeMount"),Y=H("mounted"),Z=H("beforeUpdate"),ee=H("updated"),te=H("beforeDestroy"),ne=H("destroyed"),re=H("errorCaptured"),oe=H("activated"),ie=H("deactivated"),ue=H("serverPrefetch");function ae(){se(this,R)}function fe(){se(this,E)}function ce(){var e=h();return e?function(e){return void 0!==e[R]}(e)||function(e){e[R]=[],e[E]=[],e.$on("hook:beforeUpdate",ae),e.$on("hook:updated",fe)}(e):(L||(L=x(b())),e=L),e}function se(e,t){for(var n=e[t],r=0;r<n.length;r++)n[r]();n.length=0}function le(e,t,n){var r=function(){e.$nextTick((function(){e[R].length&&se(e,R),e[E].length&&se(e,E)}))};switch(n){case"pre":r(),e[R].push(t);break;case"post":r(),e[E].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 ve(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 pe(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)},p=function(t){return f||e===L?t:function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return le(e,(function(){t.apply(void 0,k(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});ve(_,s),_.lazy=!1;var y=_.get.bind(_);return _.get=p(y),function(){_.teardown()}}var b,h=r.deep;Array.isArray(t)?b=function(){return t.map((function(e){return W(e)?e.value:e()}))}:W(t)?b=function(){return t.value}:I(t)?(b=function(){return t},h=!0):l(t)?b=t:(b=o,v("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=p(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 I(O.value)&&(null===(i=O.value.__ob__)||void 0===i?void 0:i.dep)&&h&&O.value.__ob__.dep.addSub({update:function(){O.run()}}),ve(O,s),function(){j()}}var de={};var _e={};var ye;var be={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 he(e){var t=be.get(e,"rawBindings")||{};if(t&&Object.keys(t).length){for(var n=e.$refs,r=be.get(e,"refs")||[],o=0;o<r.length;o++){var i=t[f=r[o]];!n[f]&&i&&W(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&&W(i)&&(i.value=n[f],a.push(f))}be.set(e,"refs",a)}}function ge(e,t){var n=e.$options._parentVnode;if(n){for(var r=be.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]=w(e,a))}be.set(e,"slots",u)}}function me(e,t,n){var r=h();g(e);try{return t(e)}catch(e){if(!n)throw e;n(e)}finally{g(r)}}function xe(e){function t(e){if(s(e)&&!W(e)&&!I(e)&&!V(e)){var n=b().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)&&I(e)?(t.set(e,!0),!0):!(!s(e)||V(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 me(e,(function(){return i.apply(t,n)}))});if(!o)return;if("function"!=typeof o)return;var p=r.data;r.data=function(){return function(e,r){void 0===r&&(r={});var o,i=e.$options.setup,p=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=$(n,2),o=r[0],i=r[1]):o=i=n,i="$"+i,u(t,o,{get:function(){return e[i]},set:function(){v("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__",J()),ge(e,p.slots),me(e,(function(){o=i(r,p)})),!o)return;if(l(o)){var d=o;return void(e.$options.render=function(){return ge(e,p.slots),me(e,(function(){return d()}))})}if(s(o)){I(o)&&(o=F(o)),be.set(e,"rawBindings",o);var _=o;Object.keys(_).forEach((function(r){var o,i=_[r];W(i)||(I(i)?c(i)&&(i=U(i)):l(i)?i=i.bind(e):null===(o=i)||"object"!=typeof o?i=U(i):n(i)&&t(i)),function(e,t,n){var r=e.$options.props;t in e||r&&f(r,t)||(W(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 p?p.call(e,e):p||{}}},mounted:function(){he(this)},updated:function(){he(this)}})}function we(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&&s(o)&&!W(o)&&s(i)&&!W(i)&&we(i,o):t[n]=i);return t}function je(e){(function(e){return f(e,"__composition_api_installed__")})(e)||(e.config.optionMergeStrategies.setup=function(e,t){return function(n,r){return we("function"==typeof e?e(n,r)||{}:void 0,"function"==typeof t?t(n,r)||{}:void 0)}},function(e){_=e,Object.defineProperty(e,"__composition_api_installed__",{configurable:!0,writable:!0,value:!0})}(e),xe(e))}var Oe={install:function(e){return je(e)}};"undefined"!=typeof window&&window.Vue&&window.Vue.use(Oe),exports.computed=function(e){var t,n,r,i,u=h();if("function"==typeof e?t=e:(t=e.get,n=e.set),u&&!u.$isServer){var a,f=function(){if(!d){var e=x(b(),{computed:{value:function(){return 0}}}),t=e._computedWatchers.value.constructor,n=e._data.__ob__.dep.constructor;d={Watcher:t,Dep:n},e.$destroy()}return d}(),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=x(b(),{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 B({get:i,set:r})},exports.createApp=function(e,t){void 0===t&&(t=void 0);var n=b(),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(j({propsData:t},e))).$mount(o,i),r)},unmount:function(){r&&(r.$destroy(),r=void 0)}}},exports.customRef=function(e){var t=U(0);return B(e((function(){t.value}),(function(){++t.value})))},exports.default=Oe,exports.defineComponent=function(e){return e},exports.getCurrentInstance=h,exports.h=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=h();return n?n.$createElement.apply(n,e):(v("`createElement()` has been called outside of render function."),ye||(ye=x(b()).$createElement),ye.apply(ye,e))},exports.inject=function(e,t,n){if(void 0===n&&(n=!1),!e)return t;var r=h();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 de}(e,r);return o!==de?o:n&&l(t)?t():t}v("inject() can only be used inside setup() or functional components.")},exports.isRaw=V,exports.isReactive=I,exports.isReadonly=function(e){return C.has(e)},exports.isRef=W,exports.markRaw=function(e){if(!s(e)&&!c(e)||!Object.isExtensible(e))return e;var t=J();return t.__raw__=!0,a(e,"__ob__",t),M.set(e,!0),e},exports.nextTick=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return null===(e=b())||void 0===e?void 0:e.nextTick.apply(this,t)},exports.onActivated=oe,exports.onBeforeMount=X,exports.onBeforeUnmount=te,exports.onBeforeUpdate=Z,exports.onDeactivated=ie,exports.onErrorCaptured=re,exports.onMounted=Y,exports.onServerPrefetch=ue,exports.onUnmounted=ne,exports.onUpdated=ee,exports.provide=function(e,t){var n=m();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(I(e))return e;var o=G(((t={})[P]=e,t)),i=function(e){u(o,e,{get:function(){return W(o[e])?o[e].value:o[e]},set:function(t){if(W(o[e]))return o[e].value=z(t);o[e]=z(t)}})};try{for(var a=O(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=G,exports.ref=U,exports.set=function(e,t,n){var r=b().util,o=(r.warn,r.defineReactive);if(c(e)&&function(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}(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),q(e,t,n),i.dep.notify(),n):(e[t]=n,n)},exports.shallowReactive=N,exports.shallowReadonly=function(e){var t,n;if(!s(e)&&!c(e)||!Object.isExtensible(e))return e;var r={},o=G({}),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=O(Object.keys(e)),l=f.next();!l.done;l=f.next()){var v=l.value;u(v)}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=f.return)&&n.call(f)}finally{if(t)throw t.error}}return C.set(r,!0),r},exports.shallowRef=function(e){var t;if(W(e))return e;var n=N(((t={})[P]=e,t));return B({get:function(){return n[P]},set:function(e){return n[P]=e}})},exports.toRaw=function(e){var t,n;return V(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=T,exports.toRefs=F,exports.triggerRef=function(e){W(e)&&(e.value=e.value)},exports.unref=z,exports.useCSSModule=function(e){void 0===e&&(e="$style");var t=h();if(!t)return _e;var n=t[e];return n||_e},exports.version="1.0.0-beta.17",exports.watch=function(e,t,n){var r=null;"function"==typeof t?r=t:(n=t,r=null);var o=function(e){return j({immediate:!1,deep:!1,flush:"pre"},e)}(n);return pe(ce(),e,r,o)},exports.watchEffect=function(e,t){var n=function(e){return j({immediate:!0,deep:!1,flush:"pre"},e)}(t);return pe(ce(),e,null,n)};

@@ -783,3 +783,3 @@ import Vue from 'vue';

deep: false,
flush: 'post',
flush: 'pre',
}, options);

@@ -791,3 +791,3 @@ }

deep: false,
flush: 'post',
flush: 'pre',
}, options);

@@ -1602,3 +1602,3 @@ }

var version = "1.0.0-beta.16";
var version = "1.0.0-beta.17";
// auto install when using CDN

@@ -1605,0 +1605,0 @@ if (typeof window !== 'undefined' && window.Vue) {

@@ -791,3 +791,3 @@ (function (global, factory) {

deep: false,
flush: 'post',
flush: 'pre',
}, options);

@@ -799,3 +799,3 @@ }

deep: false,
flush: 'post',
flush: 'pre',
}, options);

@@ -1606,3 +1606,3 @@ }

var version = "1.0.0-beta.16";
var version = "1.0.0-beta.17";
// auto install when using CDN

@@ -1609,0 +1609,0 @@ if (typeof window !== 'undefined' && window.Vue) {

@@ -15,2 +15,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){return"[object Object]"===function(e){return Object.prototype.toString.call(e)}(e)}function d(e){return"function"==typeof e}function p(e,n){r.default.util.warn(e,n)}var y=void 0;try{y=require("vue")}catch(e){}var _,b=null,h=null,g="__composition_api_installed__";function m(){return b}function w(){return h}function j(e){h=e}function O(e){return w()}function $(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 k(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):p("slots."+n+'() got called outside of the "render()" scope',e)}}var x=function(){return(x=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)};

PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */function S(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 R(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 E(){for(var e=[],n=0;n<arguments.length;n++)e=e.concat(R(arguments[n]));return e}function P(e){return i?Symbol.for(e):e}var A=P("composition-api.preFlushQueue"),M=P("composition-api.postFlushQueue"),C="composition-api.refKey",D=new WeakMap,B=new WeakMap,U=new WeakMap,T=function(e){f(this,"value",{get:e.get,set:e.set})};function V(e,n){var t=new T(e),r=Object.seal(t);return U.set(r,!0),r}function W(e){var n;if(z(e))return e;var t=X(((n={})[C]=e,n));return V({get:function(){return t[C]},set:function(e){return t[C]=e}})}function z(e){return e instanceof T}function F(e){return z(e)?e.value:e}function I(e){if(!v(e))return e;var n={};for(var t in e)n[t]=K(e,t);return n}function K(e,n){var t=e[n];return z(t)?t:V({get:function(){return e[n]},set:function(t){return e[n]=t}})}function q(e){var n;return Boolean((null==e?void 0:e.__ob__)&&(null===(n=e.__ob__)||void 0===n?void 0:n.__raw__))}function Q(e){var n;return Boolean((null==e?void 0:e.__ob__)&&!(null===(n=e.__ob__)||void 0===n?void 0:n.__raw__))}function J(e){if(!(!v(e)||q(e)||Array.isArray(e)||z(e)||function(e){var n=m();return n&&e instanceof n}(e)||D.has(e))){D.set(e,!0);for(var n=Object.keys(e),t=0;t<n.length;t++)N(e,n[t])}}function N(e,n,t){if("__ob__"!==n&&!q(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])}J(t),Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:function(){var o=r?r.call(e):t;return n!==C&&z(o)?o.value:o},set:function(i){if(!r||o){var u=r?r.call(e):t;n!==C&&z(u)&&!z(i)?u.value=i:o?o.call(e,i):t=i,J(i)}}})}}function G(e){var n,t=b||y;t.observable?n=t.observable(e):n=$(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 H(){return G({}).__ob__}function L(e){var n,t;if(!v(e)&&!s(e)||q(e)||!Object.isExtensible(e))return e;var r=G({});J(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=S(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 X(e){if(!v(e)&&!s(e)||q(e)||!Object.isExtensible(e))return e;var n=G(e);return J(n),n}function Y(e){return function(n){var t,r=O(((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=w();j(e);try{return n.apply(void 0,E(t))}finally{j(o)}}}(n,r))}(m(),r,e,n)}}var Z,ee=Y("beforeMount"),ne=Y("mounted"),te=Y("beforeUpdate"),re=Y("updated"),oe=Y("beforeDestroy"),ie=Y("destroyed"),ue=Y("errorCaptured"),ae=Y("activated"),fe=Y("deactivated"),ce=Y("serverPrefetch");function le(){de(this,A)}function se(){de(this,M)}function ve(){var e=w();return e?function(e){return void 0!==e[A]}(e)||function(e){e[A]=[],e[M]=[],e.$on("hook:beforeUpdate",le),e.$on("hook:updated",se)}(e):(Z||(Z=$(m())),e=Z),e}function de(e,n){for(var t=e[n],r=0;r<t.length;r++)t[r]();t.length=0}function pe(e,n,t){var r=function(){e.$nextTick((function(){e[A].length&&de(e,A),e[M].length&&de(e,M)}))};switch(t){case"pre":r(),e[A].push(n);break;case"post":r(),e[M].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 ye(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 _e(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===Z?n:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return pe(e,(function(){n.apply(void 0,E(t))}),a)}};if(null===t){var v=!1,y=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});ye(y,l),y.lazy=!1;var _=y.get.bind(y);return y.get=s(_),function(){y.teardown()}}var b,h=r.deep;Array.isArray(n)?b=function(){return n.map((function(e){return z(e)?e.value:e()}))}:z(n)?b=function(){return n.value}:Q(n)?(b=function(){return n},h=!0):d(n)?b=n:(b=u,p("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 Q($.value)&&(null===(o=$.value.__ob__)||void 0===o?void 0:o.dep)&&h&&$.value.__ob__.dep.addSub({update:function(){$.run()}}),ye($,l),function(){O()}}var be={};var he={};var ge;var me={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 we(e){var n=me.get(e,"rawBindings")||{};if(n&&Object.keys(n).length){for(var t=e.$refs,r=me.get(e,"refs")||[],o=0;o<r.length;o++){var i=n[f=r[o]];!t[f]&&i&&z(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&&z(i)&&(i.value=t[f],a.push(f))}me.set(e,"refs",a)}}function je(e,n){var t=e.$options._parentVnode;if(t){for(var r=me.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]=k(e,a))}me.set(e,"slots",u)}}function Oe(e,n,t){var r=w();j(e);try{return n(e)}catch(e){if(!t)throw e;t(e)}finally{j(r)}}function $e(e){function n(e){if(v(e)&&!z(e)&&!Q(e)&&!q(e)){var t=m().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)&&Q(e)?(n.set(e,!0),!0):!(!v(e)||q(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 Oe(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=R(t,2),o=r[0],i=r[1]):o=i=t,i="$"+i,f(n,o,{get:function(){return e[i]},set:function(){p("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__",H()),je(e,u.slots),Oe(e,(function(){o=i(r,u)})),!o)return;if(d(o)){var a=o;return void(e.$options.render=function(){return je(e,u.slots),Oe(e,(function(){return a()}))})}if(v(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];z(i)||(Q(i)?s(i)&&(i=W(i)):d(i)?i=i.bind(e):null===(o=i)||"object"!=typeof o?i=W(i):t(i)&&n(i)),function(e,n,t){var r=e.$options.props;n in e||r&&l(r,n)||(z(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(){we(this)},updated:function(){we(this)}})}function ke(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&&v(r)&&!z(r)&&v(o)&&!z(o)&&ke(o,r):n[t]=o);return n}function xe(e){(function(e){return l(e,g)})(e)||(e.config.optionMergeStrategies.setup=function(e,n){return function(t,r){return ke("function"==typeof e?e(t,r)||{}:void 0,"function"==typeof n?n(t,r)||{}:void 0)}},function(e){b=e,Object.defineProperty(e,g,{configurable:!0,writable:!0,value:!0})}(e),$e(e))}var Se={install:function(e){return xe(e)}};"undefined"!=typeof window&&window.Vue&&window.Vue.use(Se),e.computed=function(e){var n,t,r,o,i=w();if("function"==typeof e?n=e:(n=e.get,t=e.set),i&&!i.$isServer){var a,f=function(){if(!_){var e=$(m(),{computed:{value:function(){return 0}}}),n=e._computedWatchers.value.constructor,t=e._data.__ob__.dep.constructor;_={Watcher:n,Dep:t},e.$destroy()}return _}(),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=$(m(),{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 V({get:o,set:r})},e.createApp=function(e,n){void 0===n&&(n=void 0);var t=m(),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(x({propsData:n},e))).$mount(o,i),r)},unmount:function(){r&&(r.$destroy(),r=void 0)}}},e.customRef=function(e){var n=W(0);return V(e((function(){n.value}),(function(){++n.value})))},e.default=Se,e.defineComponent=function(e){return e},e.getCurrentInstance=w,e.h=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var t=w();return t?t.$createElement.apply(t,e):(p("`createElement()` has been called outside of render function."),ge||(ge=$(m()).$createElement),ge.apply(ge,e))},e.inject=function(e,n,t){if(void 0===t&&(t=!1),!e)return n;var r=w();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 be}(e,r);return o!==be?o:t&&d(n)?n():n}p("inject() can only be used inside setup() or functional components.")},e.isRaw=q,e.isReactive=Q,e.isReadonly=function(e){return U.has(e)},e.isRef=z,e.markRaw=function(e){if(!v(e)&&!s(e)||!Object.isExtensible(e))return e;var n=H();return n.__raw__=!0,c(e,"__ob__",n),B.set(e,!0),e},e.nextTick=function(){for(var e,n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return null===(e=m())||void 0===e?void 0:e.nextTick.apply(this,n)},e.onActivated=ae,e.onBeforeMount=ee,e.onBeforeUnmount=oe,e.onBeforeUpdate=te,e.onDeactivated=fe,e.onErrorCaptured=ue,e.onMounted=ne,e.onServerPrefetch=ce,e.onUnmounted=ie,e.onUpdated=re,e.provide=function(e,n){var t=O();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(Q(e))return e;var o=X(((n={})[C]=e,n)),i=function(e){f(o,e,{get:function(){return z(o[e])?o[e].value:o[e]},set:function(n){if(z(o[e]))return o[e].value=F(n);o[e]=F(n)}})};try{for(var u=S(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=X,e.ref=W,e.set=function(e,n,t){var r=m().util,o=(r.warn,r.defineReactive);if(s(e)&&function(e){var n=parseFloat(String(e));return n>=0&&Math.floor(n)===n&&isFinite(e)}(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),N(e,n,t),i.dep.notify(),t):(e[n]=t,t)},e.shallowReactive=L,e.shallowReadonly=function(e){var n,t;if(!v(e)&&!s(e)||!Object.isExtensible(e))return e;var r={},o=X({}),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=S(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 U.set(r,!0),r},e.shallowRef=function(e){var n;if(z(e))return e;var t=L(((n={})[C]=e,n));return V({get:function(){return t[C]},set:function(e){return t[C]=e}})},e.toRaw=function(e){var n,t;return q(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=K,e.toRefs=I,e.triggerRef=function(e){z(e)&&(e.value=e.value)},e.unref=F,e.useCSSModule=function(e){void 0===e&&(e="$style");var n=w();if(!n)return he;var t=n[e];return t||he},e.version="1.0.0-beta.16",e.watch=function(e,n,t){var r=null;"function"==typeof n?r=n:(t=n,r=null);var o=function(e){return x({immediate:!1,deep:!1,flush:"post"},e)}(t);return _e(ve(),e,r,o)},e.watchEffect=function(e,n){var t=function(e){return x({immediate:!0,deep:!1,flush:"post"},e)}(n);return _e(ve(),e,null,t)},Object.defineProperty(e,"__esModule",{value:!0})}));
***************************************************************************** */function S(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 R(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 E(){for(var e=[],n=0;n<arguments.length;n++)e=e.concat(R(arguments[n]));return e}function P(e){return i?Symbol.for(e):e}var A=P("composition-api.preFlushQueue"),M=P("composition-api.postFlushQueue"),C="composition-api.refKey",D=new WeakMap,B=new WeakMap,U=new WeakMap,T=function(e){f(this,"value",{get:e.get,set:e.set})};function V(e,n){var t=new T(e),r=Object.seal(t);return U.set(r,!0),r}function W(e){var n;if(z(e))return e;var t=X(((n={})[C]=e,n));return V({get:function(){return t[C]},set:function(e){return t[C]=e}})}function z(e){return e instanceof T}function F(e){return z(e)?e.value:e}function I(e){if(!v(e))return e;var n={};for(var t in e)n[t]=K(e,t);return n}function K(e,n){var t=e[n];return z(t)?t:V({get:function(){return e[n]},set:function(t){return e[n]=t}})}function q(e){var n;return Boolean((null==e?void 0:e.__ob__)&&(null===(n=e.__ob__)||void 0===n?void 0:n.__raw__))}function Q(e){var n;return Boolean((null==e?void 0:e.__ob__)&&!(null===(n=e.__ob__)||void 0===n?void 0:n.__raw__))}function J(e){if(!(!v(e)||q(e)||Array.isArray(e)||z(e)||function(e){var n=m();return n&&e instanceof n}(e)||D.has(e))){D.set(e,!0);for(var n=Object.keys(e),t=0;t<n.length;t++)N(e,n[t])}}function N(e,n,t){if("__ob__"!==n&&!q(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])}J(t),Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:function(){var o=r?r.call(e):t;return n!==C&&z(o)?o.value:o},set:function(i){if(!r||o){var u=r?r.call(e):t;n!==C&&z(u)&&!z(i)?u.value=i:o?o.call(e,i):t=i,J(i)}}})}}function G(e){var n,t=b||y;t.observable?n=t.observable(e):n=$(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 H(){return G({}).__ob__}function L(e){var n,t;if(!v(e)&&!s(e)||q(e)||!Object.isExtensible(e))return e;var r=G({});J(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=S(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 X(e){if(!v(e)&&!s(e)||q(e)||!Object.isExtensible(e))return e;var n=G(e);return J(n),n}function Y(e){return function(n){var t,r=O(((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=w();j(e);try{return n.apply(void 0,E(t))}finally{j(o)}}}(n,r))}(m(),r,e,n)}}var Z,ee=Y("beforeMount"),ne=Y("mounted"),te=Y("beforeUpdate"),re=Y("updated"),oe=Y("beforeDestroy"),ie=Y("destroyed"),ue=Y("errorCaptured"),ae=Y("activated"),fe=Y("deactivated"),ce=Y("serverPrefetch");function le(){de(this,A)}function se(){de(this,M)}function ve(){var e=w();return e?function(e){return void 0!==e[A]}(e)||function(e){e[A]=[],e[M]=[],e.$on("hook:beforeUpdate",le),e.$on("hook:updated",se)}(e):(Z||(Z=$(m())),e=Z),e}function de(e,n){for(var t=e[n],r=0;r<t.length;r++)t[r]();t.length=0}function pe(e,n,t){var r=function(){e.$nextTick((function(){e[A].length&&de(e,A),e[M].length&&de(e,M)}))};switch(t){case"pre":r(),e[A].push(n);break;case"post":r(),e[M].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 ye(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 _e(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===Z?n:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return pe(e,(function(){n.apply(void 0,E(t))}),a)}};if(null===t){var v=!1,y=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});ye(y,l),y.lazy=!1;var _=y.get.bind(y);return y.get=s(_),function(){y.teardown()}}var b,h=r.deep;Array.isArray(n)?b=function(){return n.map((function(e){return z(e)?e.value:e()}))}:z(n)?b=function(){return n.value}:Q(n)?(b=function(){return n},h=!0):d(n)?b=n:(b=u,p("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 Q($.value)&&(null===(o=$.value.__ob__)||void 0===o?void 0:o.dep)&&h&&$.value.__ob__.dep.addSub({update:function(){$.run()}}),ye($,l),function(){O()}}var be={};var he={};var ge;var me={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 we(e){var n=me.get(e,"rawBindings")||{};if(n&&Object.keys(n).length){for(var t=e.$refs,r=me.get(e,"refs")||[],o=0;o<r.length;o++){var i=n[f=r[o]];!t[f]&&i&&z(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&&z(i)&&(i.value=t[f],a.push(f))}me.set(e,"refs",a)}}function je(e,n){var t=e.$options._parentVnode;if(t){for(var r=me.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]=k(e,a))}me.set(e,"slots",u)}}function Oe(e,n,t){var r=w();j(e);try{return n(e)}catch(e){if(!t)throw e;t(e)}finally{j(r)}}function $e(e){function n(e){if(v(e)&&!z(e)&&!Q(e)&&!q(e)){var t=m().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)&&Q(e)?(n.set(e,!0),!0):!(!v(e)||q(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 Oe(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=R(t,2),o=r[0],i=r[1]):o=i=t,i="$"+i,f(n,o,{get:function(){return e[i]},set:function(){p("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__",H()),je(e,u.slots),Oe(e,(function(){o=i(r,u)})),!o)return;if(d(o)){var a=o;return void(e.$options.render=function(){return je(e,u.slots),Oe(e,(function(){return a()}))})}if(v(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];z(i)||(Q(i)?s(i)&&(i=W(i)):d(i)?i=i.bind(e):null===(o=i)||"object"!=typeof o?i=W(i):t(i)&&n(i)),function(e,n,t){var r=e.$options.props;n in e||r&&l(r,n)||(z(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(){we(this)},updated:function(){we(this)}})}function ke(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&&v(r)&&!z(r)&&v(o)&&!z(o)&&ke(o,r):n[t]=o);return n}function xe(e){(function(e){return l(e,g)})(e)||(e.config.optionMergeStrategies.setup=function(e,n){return function(t,r){return ke("function"==typeof e?e(t,r)||{}:void 0,"function"==typeof n?n(t,r)||{}:void 0)}},function(e){b=e,Object.defineProperty(e,g,{configurable:!0,writable:!0,value:!0})}(e),$e(e))}var Se={install:function(e){return xe(e)}};"undefined"!=typeof window&&window.Vue&&window.Vue.use(Se),e.computed=function(e){var n,t,r,o,i=w();if("function"==typeof e?n=e:(n=e.get,t=e.set),i&&!i.$isServer){var a,f=function(){if(!_){var e=$(m(),{computed:{value:function(){return 0}}}),n=e._computedWatchers.value.constructor,t=e._data.__ob__.dep.constructor;_={Watcher:n,Dep:t},e.$destroy()}return _}(),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=$(m(),{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 V({get:o,set:r})},e.createApp=function(e,n){void 0===n&&(n=void 0);var t=m(),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(x({propsData:n},e))).$mount(o,i),r)},unmount:function(){r&&(r.$destroy(),r=void 0)}}},e.customRef=function(e){var n=W(0);return V(e((function(){n.value}),(function(){++n.value})))},e.default=Se,e.defineComponent=function(e){return e},e.getCurrentInstance=w,e.h=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var t=w();return t?t.$createElement.apply(t,e):(p("`createElement()` has been called outside of render function."),ge||(ge=$(m()).$createElement),ge.apply(ge,e))},e.inject=function(e,n,t){if(void 0===t&&(t=!1),!e)return n;var r=w();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 be}(e,r);return o!==be?o:t&&d(n)?n():n}p("inject() can only be used inside setup() or functional components.")},e.isRaw=q,e.isReactive=Q,e.isReadonly=function(e){return U.has(e)},e.isRef=z,e.markRaw=function(e){if(!v(e)&&!s(e)||!Object.isExtensible(e))return e;var n=H();return n.__raw__=!0,c(e,"__ob__",n),B.set(e,!0),e},e.nextTick=function(){for(var e,n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return null===(e=m())||void 0===e?void 0:e.nextTick.apply(this,n)},e.onActivated=ae,e.onBeforeMount=ee,e.onBeforeUnmount=oe,e.onBeforeUpdate=te,e.onDeactivated=fe,e.onErrorCaptured=ue,e.onMounted=ne,e.onServerPrefetch=ce,e.onUnmounted=ie,e.onUpdated=re,e.provide=function(e,n){var t=O();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(Q(e))return e;var o=X(((n={})[C]=e,n)),i=function(e){f(o,e,{get:function(){return z(o[e])?o[e].value:o[e]},set:function(n){if(z(o[e]))return o[e].value=F(n);o[e]=F(n)}})};try{for(var u=S(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=X,e.ref=W,e.set=function(e,n,t){var r=m().util,o=(r.warn,r.defineReactive);if(s(e)&&function(e){var n=parseFloat(String(e));return n>=0&&Math.floor(n)===n&&isFinite(e)}(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),N(e,n,t),i.dep.notify(),t):(e[n]=t,t)},e.shallowReactive=L,e.shallowReadonly=function(e){var n,t;if(!v(e)&&!s(e)||!Object.isExtensible(e))return e;var r={},o=X({}),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=S(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 U.set(r,!0),r},e.shallowRef=function(e){var n;if(z(e))return e;var t=L(((n={})[C]=e,n));return V({get:function(){return t[C]},set:function(e){return t[C]=e}})},e.toRaw=function(e){var n,t;return q(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=K,e.toRefs=I,e.triggerRef=function(e){z(e)&&(e.value=e.value)},e.unref=F,e.useCSSModule=function(e){void 0===e&&(e="$style");var n=w();if(!n)return he;var t=n[e];return t||he},e.version="1.0.0-beta.17",e.watch=function(e,n,t){var r=null;"function"==typeof n?r=n:(t=n,r=null);var o=function(e){return x({immediate:!1,deep:!1,flush:"pre"},e)}(t);return _e(ve(),e,r,o)},e.watchEffect=function(e,n){var t=function(e){return x({immediate:!0,deep:!1,flush:"pre"},e)}(n);return _e(ve(),e,null,t)},Object.defineProperty(e,"__esModule",{value:!0})}));
{
"name": "@vue/composition-api",
"version": "1.0.0-beta.16",
"version": "1.0.0-beta.17",
"description": "Provide logic composition capabilities for Vue.",

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

@@ -9,4 +9,2 @@ # @vue/composition-api

English | [中文](./README.zh-CN.md) ・ [**Composition API Docs**](https://composition-api.vuejs.org/)

@@ -47,3 +45,3 @@

<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.16"></script>
<script src="https://cdn.jsdelivr.net/npm/@vue/composition-api@1.0.0-beta.17"></script>
```

@@ -186,3 +184,3 @@ <!--cdn-links-end-->

<summary>
⚠️ `set` workaround for adding new reactive properties
⚠️ <code>set</code> workaround for adding new reactive properties
</summary>

@@ -203,3 +201,2 @@

</details>

@@ -424,2 +421,3 @@

### `props`
<details>

@@ -435,4 +433,4 @@ <summary>

const { bar } = toRefs(props.foo) // it will `warn`
// use this instead
// use this instead
const { foo } = toRefs(props)

@@ -446,4 +444,2 @@ const a = foo.value.bar

### Missing APIs

@@ -479,2 +475,27 @@

### `emit` Options
<details>
<summary>
❌ <code>emit</code> option is provided in type-level only, in order to align with Vue 3's type interface. Does NOT have actual effects on the code.
</summary>
```ts
defineComponent({
emit: {
// has no effects
submit: (eventOption) => {
if (...) {
return true
} else {
console.warn('Invalid submit event payload!')
return false
}
}
}
})
```
</details>
### Performance Impact

@@ -481,0 +502,0 @@

@@ -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.16"></script>
<script src="https://cdn.jsdelivr.net/npm/@vue/composition-api@1.0.0-beta.17"></script>
```

@@ -179,6 +179,5 @@ <!--cdn-links-end-->

<details>
<summary>
⚠️ `set` 添加响应式属性变通方案
⚠️ <code>set</code> 添加响应式属性变通方案
</summary>

@@ -398,2 +397,24 @@

### `props`
<details>
<summary>
⚠️ 当使用 <code>toRefs</code> 访问深层属性对象 (如 <code>toRefs(props.foo.bar)</code> 时将会得到不正确的警告。
⚠️ <code>isReactive(props.foo.bar)</code> 将会返回 false。
</summary>
```ts
defineComponent({
setup(props) {
const { bar } = toRefs(props.foo) // it will `warn`
// use this instead
const { foo } = toRefs(props)
const a = foo.value.bar
}
})
```
</details>
### 缺失的 API

@@ -429,2 +450,27 @@

### `emit` 选项
<details>
<summary>
❌ <code>emit</code> 仅因在类型定义中对齐 Vue3 的选项而提供,<b>不会</b>有任何效果。
</summary>
```ts
defineComponent({
emit: {
// 无效
submit: (eventOption) => {
if (...) {
return true
} else {
console.warn('Invalid submit event payload!')
return false
}
}
}
})
```
</details>
### 性能影响

@@ -431,0 +477,0 @@

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