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

vuse-rx

Package Overview
Dependencies
Maintainers
1
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vuse-rx - npm Package Compare versions

Comparing version 0.10.0-rc.10 to 0.10.0-rc.11

6

dist/es/use-rx.js
import { isObservable, merge, of, Subject } from 'rxjs';
import { map, mergeScan } from 'rxjs/operators';
import { reactive, readonly } from 'vue';
import { isObject } from '@vue/shared';
import { untilUnmounted } from "./hooks/until.js";
export const deepMergeKeys = (prev) => (curr) => {
for (const key in curr) {
prev[key] = isObject(curr[key]) && isObject(prev[key])
? deepMergeKeys(prev[key])(curr[key])
prev[key] = (typeof curr[key] === 'object'
&& curr !== null
&& typeof prev[key] === 'object') ? deepMergeKeys(prev[key])(curr[key])
: curr[key];

@@ -11,0 +11,0 @@ }

import { isObservable, merge, of, Subject } from 'rxjs';
import { map, mergeScan } from 'rxjs/operators';
import { reactive, readonly } from 'vue';
import { isObject } from '@vue/shared';
import { untilUnmounted } from "./hooks/until.js";
export const deepMergeKeys = (prev) => (curr) => {
for (const key in curr) {
prev[key] = isObject(curr[key]) && isObject(prev[key])
? deepMergeKeys(prev[key])(curr[key])
prev[key] = (typeof curr[key] === 'object'
&& curr !== null
&& typeof prev[key] === 'object') ? deepMergeKeys(prev[key])(curr[key])
: curr[key];

@@ -11,0 +11,0 @@ }

@@ -7,8 +7,8 @@ "use strict";

const vue_1 = require("vue");
const shared_1 = require("@vue/shared");
const until_1 = require("./hooks/until");
const deepMergeKeys = (prev) => (curr) => {
for (const key in curr) {
prev[key] = shared_1.isObject(curr[key]) && shared_1.isObject(prev[key])
? exports.deepMergeKeys(prev[key])(curr[key])
prev[key] = (typeof curr[key] === 'object'
&& curr !== null
&& typeof prev[key] === 'object') ? exports.deepMergeKeys(prev[key])(curr[key])
: curr[key];

@@ -15,0 +15,0 @@ }

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

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self)["vuse-rx"]={})}(this,(function(t){"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function n(t){return function(t){if(Array.isArray(t))return r(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function i(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function s(t){return"function"==typeof t}var u=!1,c={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){t&&(new Error).stack;u=t},get useDeprecatedSynchronousErrorHandling(){return u}};function a(t){setTimeout((function(){throw t}),0)}var f={closed:!0,next:function(t){},error:function(t){if(c.useDeprecatedSynchronousErrorHandling)throw t;a(t)},complete:function(){}},l=function(){return Array.isArray||function(t){return t&&"number"==typeof t.length}}();function h(t){return null!==t&&"object"==typeof t}var p=function(){function t(t){return Error.call(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(t,e){return e+1+") "+t.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t}(),d=function(){function t(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}return t.prototype.unsubscribe=function(){var e;if(!this.closed){var n=this._parentOrParents,r=this._ctorUnsubscribe,o=this._unsubscribe,i=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(var u=0;u<n.length;++u){n[u].remove(this)}if(s(o)){r&&(this._unsubscribe=void 0);try{o.call(this)}catch(t){e=t instanceof p?b(t.errors):[t]}}if(l(i)){u=-1;for(var c=i.length;++u<c;){var a=i[u];if(h(a))try{a.unsubscribe()}catch(t){e=e||[],t instanceof p?e=e.concat(b(t.errors)):e.push(t)}}}if(e)throw new p(e)}},t.prototype.add=function(e){var n=e;if(!e)return t.EMPTY;switch(typeof e){case"function":n=new t(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof t)){var r=n;(n=new t)._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}var o=n._parentOrParents;if(null===o)n._parentOrParents=this;else if(o instanceof t){if(o===this)return n;n._parentOrParents=[o,this]}else{if(-1!==o.indexOf(this))return n;o.push(this)}var i=this._subscriptions;return null===i?this._subscriptions=[n]:i.push(n),n},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}},t.EMPTY=function(t){return t.closed=!0,t}(new t),t}();function b(t){return t.reduce((function(t,e){return t.concat(e instanceof p?e.errors:e)}),[])}var y=function(){return"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}(),v=function(t){function e(n,r,o){var i=t.call(this)||this;switch(i.syncErrorValue=null,i.syncErrorThrown=!1,i.syncErrorThrowable=!1,i.isStopped=!1,arguments.length){case 0:i.destination=f;break;case 1:if(!n){i.destination=f;break}if("object"==typeof n){n instanceof e?(i.syncErrorThrowable=n.syncErrorThrowable,i.destination=n,n.add(i)):(i.syncErrorThrowable=!0,i.destination=new _(i,n));break}default:i.syncErrorThrowable=!0,i.destination=new _(i,n,r,o)}return i}return i(e,t),e.prototype[y]=function(){return this},e.create=function(t,n,r){var o=new e(t,n,r);return o.syncErrorThrowable=!1,o},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this},e}(d),_=function(t){function e(e,n,r,o){var i,u=t.call(this)||this;u._parentSubscriber=e;var c=u;return s(n)?i=n:n&&(i=n.next,r=n.error,o=n.complete,n!==f&&(s((c=Object.create(n)).unsubscribe)&&u.add(c.unsubscribe.bind(c)),c.unsubscribe=u.unsubscribe.bind(u))),u._context=c,u._next=i,u._error=r,u._complete=o,u}return i(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;c.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber,n=c.useDeprecatedSynchronousErrorHandling;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):a(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;a(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};c.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){if(this.unsubscribe(),c.useDeprecatedSynchronousErrorHandling)throw t;a(t)}},e.prototype.__tryOrSetError=function(t,e,n){if(!c.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(e){return c.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=e,t.syncErrorThrown=!0,!0):(a(e),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(v);var m=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}();function g(t){return t}function w(t){return 0===t.length?g:1===t.length?t[0]:function(e){return t.reduce((function(t,e){return e(t)}),e)}}var S=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var r=this.operator,o=function(t,e,n){if(t){if(t instanceof v)return t;if(t[y])return t[y]()}return t||e||n?new v(t,e,n):new v(f)}(t,e,n);if(r?o.add(r.call(o,this.source)):o.add(this.source||c.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),c.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){c.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),!function(t){for(;t;){var e=t,n=e.closed,r=e.destination,o=e.isStopped;if(n||o)return!1;t=r&&r instanceof v?r:null}return!0}(t)?console.warn(e):t.error(e)}},t.prototype.forEach=function(t,e){var n=this;return new(e=x(e))((function(e,r){var o;o=n.subscribe((function(e){try{t(e)}catch(t){r(t),o&&o.unsubscribe()}}),r,e)}))},t.prototype._subscribe=function(t){var e=this.source;return e&&e.subscribe(t)},t.prototype[m]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 0===t.length?this:w(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=x(t))((function(t,n){var r;e.subscribe((function(t){return r=t}),(function(t){return n(t)}),(function(){return t(r)}))}))},t.create=function(e){return new t(e)},t}();function x(t){if(t||(t=Promise),!t)throw new Error("no Promise impl found");return t}var E=function(){function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t}(),O=function(t){function e(e,n){var r=t.call(this)||this;return r.subject=e,r.subscriber=n,r.closed=!1,r}return i(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},e}(d),T=function(t){function e(e){var n=t.call(this,e)||this;return n.destination=e,n}return i(e,t),e}(v),P=function(t){function e(){var e=t.call(this)||this;return e.observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return i(e,t),e.prototype[y]=function(){return new T(this)},e.prototype.lift=function(t){var e=new I(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new E;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),o=0;o<n;o++)r[o].next(t)},e.prototype.error=function(t){if(this.closed)throw new E;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,n=e.length,r=e.slice(),o=0;o<n;o++)r[o].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new E;this.isStopped=!0;for(var t=this.observers,e=t.length,n=t.slice(),r=0;r<e;r++)n[r].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(e){if(this.closed)throw new E;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){if(this.closed)throw new E;return this.hasError?(t.error(this.thrownError),d.EMPTY):this.isStopped?(t.complete(),d.EMPTY):(this.observers.push(t),new O(this,t))},e.prototype.asObservable=function(){var t=new S;return t.source=this,t},e.create=function(t,e){return new I(t,e)},e}(S),I=function(t){function e(e,n){var r=t.call(this)||this;return r.destination=e,r.source=n,r}return i(e,t),e.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},e.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},e.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},e.prototype._subscribe=function(t){return this.source?this.source.subscribe(t):d.EMPTY},e}(P);function N(t){return t&&"function"==typeof t.schedule}var j=function(t){return function(e){for(var n=0,r=t.length;n<r&&!e.closed;n++)e.next(t[n]);e.complete()}};function R(t,e){return new S((function(n){var r=new d,o=0;return r.add(e.schedule((function(){o!==t.length?(n.next(t[o++]),n.closed||r.add(this.schedule())):n.complete()}))),r}))}function A(t,e){return e?R(t,e):new S(j(t))}function C(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];return N(n)?(t.pop(),R(t,n)):A(t)}function k(t){return!!t&&(t instanceof S||"function"==typeof t.lift&&"function"==typeof t.subscribe)}function V(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new M(t,e))}}var M=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new $(t,this.project,this.thisArg))},t}(),$=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.project=n,o.count=0,o.thisArg=r||o,o}return i(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(v);function U(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}var H=U(),D=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t};function Y(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}var z=function(t){if(t&&"function"==typeof t[m])return r=t,function(t){var e=r[m]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(D(t))return j(t);if(Y(t))return n=t,function(t){return n.then((function(e){t.closed||(t.next(e),t.complete())}),(function(e){return t.error(e)})).then(null,a),t};if(t&&"function"==typeof t[H])return e=t,function(t){for(var n=e[H]();;){var r=void 0;try{r=n.next()}catch(e){return t.error(e),t}if(r.done){t.complete();break}if(t.next(r.value),t.closed)break}return"function"==typeof n.return&&t.add((function(){n.return&&n.return()})),t};var e,n,r,o=h(t)?"an invalid object":"'"+t+"'";throw new TypeError("You provided "+o+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")};function F(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[m]}(t))return function(t,e){return new S((function(n){var r=new d;return r.add(e.schedule((function(){var o=t[m]();r.add(o.subscribe({next:function(t){r.add(e.schedule((function(){return n.next(t)})))},error:function(t){r.add(e.schedule((function(){return n.error(t)})))},complete:function(){r.add(e.schedule((function(){return n.complete()})))}}))}))),r}))}(t,e);if(Y(t))return function(t,e){return new S((function(n){var r=new d;return r.add(e.schedule((function(){return t.then((function(t){r.add(e.schedule((function(){n.next(t),r.add(e.schedule((function(){return n.complete()})))})))}),(function(t){r.add(e.schedule((function(){return n.error(t)})))}))}))),r}))}(t,e);if(D(t))return R(t,e);if(function(t){return t&&"function"==typeof t[H]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new S((function(n){var r,o=new d;return o.add((function(){r&&"function"==typeof r.return&&r.return()})),o.add(e.schedule((function(){r=t[H](),o.add(e.schedule((function(){if(!n.closed){var t,e;try{var o=r.next();t=o.value,e=o.done}catch(t){return void n.error(t)}e?n.complete():(n.next(t),this.schedule())}})))}))),o}))}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}function L(t,e){return e?F(t,e):t instanceof S?t:new S(z(t))}var W=function(t){function e(e){var n=t.call(this)||this;return n.parent=e,n}return i(e,t),e.prototype._next=function(t){this.parent.notifyNext(t)},e.prototype._error=function(t){this.parent.notifyError(t),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(),this.unsubscribe()},e}(v),B=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.notifyNext=function(t){this.destination.next(t)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(){this.destination.complete()},e}(v);function K(t,e){if(!e.closed)return t instanceof S?t.subscribe(e):z(t)(e)}var q=function(){function t(t,e){void 0===e&&(e=Number.POSITIVE_INFINITY),this.project=t,this.concurrent=e}return t.prototype.call=function(t,e){return e.subscribe(new G(t,this.project,this.concurrent))},t}(),G=function(t){function e(e,n,r){void 0===r&&(r=Number.POSITIVE_INFINITY);var o=t.call(this,e)||this;return o.project=n,o.concurrent=r,o.hasCompleted=!1,o.buffer=[],o.active=0,o.index=0,o}return i(e,t),e.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this.active++,this._innerSub(e)},e.prototype._innerSub=function(t){var e=new W(this),n=this.destination;n.add(e);var r=K(t,e);r!==e&&n.add(r)},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t){this.destination.next(t)},e.prototype.notifyComplete=function(){var t=this.buffer;this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(B);function J(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),function t(e,n,r){return void 0===r&&(r=Number.POSITIVE_INFINITY),"function"==typeof n?function(o){return o.pipe(t((function(t,r){return L(e(t,r)).pipe(V((function(e,o){return n(t,e,r,o)})))}),r))}:("number"==typeof n&&(r=n),function(t){return t.lift(new q(e,r))})}(g,t)}function Z(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Number.POSITIVE_INFINITY,r=null,o=t[t.length-1];return N(o)?(r=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof o&&(n=t.pop()),null===r&&1===t.length&&t[0]instanceof S?t[0]:J(n)(A(t,r))}function Q(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),function(r){return r.lift(new X(t,e,n))}}var X=function(){function t(t,e,n){this.accumulator=t,this.seed=e,this.concurrent=n}return t.prototype.call=function(t,e){return e.subscribe(new tt(t,this.accumulator,this.seed,this.concurrent))},t}(),tt=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.accumulator=n,i.acc=r,i.concurrent=o,i.hasValue=!1,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return i(e,t),e.prototype._next=function(t){if(this.active<this.concurrent){var e=this.index++,n=this.destination,r=void 0;try{r=(0,this.accumulator)(this.acc,t,e)}catch(t){return n.error(t)}this.active++,this._innerSub(r)}else this.buffer.push(t)},e.prototype._innerSub=function(t){var e=new W(this),n=this.destination;n.add(e);var r=K(t,e);r!==e&&n.add(r)},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete()),this.unsubscribe()},e.prototype.notifyNext=function(t){var e=this.destination;this.acc=t,this.hasValue=!0,e.next(t)},e.prototype.notifyComplete=function(){var t=this.buffer;this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())},e}(B);var et=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var n=new nt(t),r=K(this.notifier,new W(n));return r&&!n.seenValue?(n.add(r),e.subscribe(n)):n},t}(),nt=function(t){function e(e){var n=t.call(this,e)||this;return n.seenValue=!1,n}return i(e,t),e.prototype.notifyNext=function(){this.seenValue=!0,this.complete()},e.prototype.notifyComplete=function(){},e}(B);function rt(t,e){const n=Object.create(null),r=t.split(",");for(let t=0;t<r.length;t++)n[r[t]]=!0;return e?t=>!!n[t.toLowerCase()]:t=>!!n[t]}const ot=rt("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl"),it=rt("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly"),st={},ut=()=>{},ct=/^on[^a-z]/,at=Object.assign,ft=Object.prototype.hasOwnProperty,lt=(t,e)=>ft.call(t,e),ht=Array.isArray,pt=t=>"[object Map]"===mt(t),dt=t=>"function"==typeof t,bt=t=>"string"==typeof t,yt=t=>"symbol"==typeof t,vt=t=>null!==t&&"object"==typeof t,_t=Object.prototype.toString,mt=t=>_t.call(t),gt=t=>bt(t)&&"NaN"!==t&&"-"!==t[0]&&""+parseInt(t,10)===t,wt=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},St=/-(\w)/g,xt=wt(t=>t.replace(St,(t,e)=>e?e.toUpperCase():"")),Et=/\B([A-Z])/g,Ot=wt(t=>t.replace(Et,"-$1").toLowerCase()),Tt=wt(t=>t.charAt(0).toUpperCase()+t.slice(1)),Pt=(t,e)=>t!==e&&(t==t||e==e),It=new WeakMap,Nt=[];let jt;const Rt=Symbol(""),At=Symbol("");function Ct(t,e=st){(function(t){return t&&!0===t._isEffect})(t)&&(t=t.raw);const n=function(t,e){const n=function(){if(!n.active)return e.scheduler?void 0:t();if(!Nt.includes(n)){Mt(n);try{return Ut.push($t),$t=!0,Nt.push(n),jt=n,t()}finally{Nt.pop(),Ht(),jt=Nt[Nt.length-1]}}};return n.id=Vt++,n.allowRecurse=!!e.allowRecurse,n._isEffect=!0,n.active=!0,n.raw=t,n.deps=[],n.options=e,n}(t,e);return e.lazy||n(),n}function kt(t){t.active&&(Mt(t),t.options.onStop&&t.options.onStop(),t.active=!1)}let Vt=0;function Mt(t){const{deps:e}=t;if(e.length){for(let n=0;n<e.length;n++)e[n].delete(t);e.length=0}}let $t=!0;const Ut=[];function Ht(){const t=Ut.pop();$t=void 0===t||t}function Dt(t,e,n){if(!$t||void 0===jt)return;let r=It.get(t);r||It.set(t,r=new Map);let o=r.get(n);o||r.set(n,o=new Set),o.has(jt)||(o.add(jt),jt.deps.push(o))}function Yt(t,e,n,r,o,i){const s=It.get(t);if(!s)return;const u=new Set,c=t=>{t&&t.forEach(t=>{(t!==jt||t.allowRecurse)&&u.add(t)})};if("clear"===e)s.forEach(c);else if("length"===n&&ht(t))s.forEach((t,e)=>{("length"===e||e>=r)&&c(t)});else switch(void 0!==n&&c(s.get(n)),e){case"add":ht(t)?gt(n)&&c(s.get("length")):(c(s.get(Rt)),pt(t)&&c(s.get(At)));break;case"delete":ht(t)||(c(s.get(Rt)),pt(t)&&c(s.get(At)));break;case"set":pt(t)&&c(s.get(Rt))}u.forEach(t=>{t.options.scheduler?t.options.scheduler(t):t()})}const zt=new Set(Object.getOwnPropertyNames(Symbol).map(t=>Symbol[t]).filter(yt)),Ft=qt(),Lt=qt(!1,!0),Wt=qt(!0),Bt=qt(!0,!0),Kt={};function qt(t=!1,e=!1){return function(n,r,o){if("__v_isReactive"===r)return!t;if("__v_isReadonly"===r)return t;if("__v_raw"===r&&o===(t?me:_e).get(n))return n;const i=ht(n);if(!t&&i&&lt(Kt,r))return Reflect.get(Kt,r,o);const s=Reflect.get(n,r,o);if(yt(r)?zt.has(r):"__proto__"===r||"__v_isRef"===r)return s;if(t||Dt(n,0,r),e)return s;if(Ie(s)){return!i||!gt(r)?s.value:s}return vt(s)?t?Se(s):we(s):s}}["includes","indexOf","lastIndexOf"].forEach(t=>{const e=Array.prototype[t];Kt[t]=function(...t){const n=Te(this);for(let t=0,e=this.length;t<e;t++)Dt(n,0,t+"");const r=e.apply(n,t);return-1===r||!1===r?e.apply(n,t.map(Te)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{const e=Array.prototype[t];Kt[t]=function(...t){Ut.push($t),$t=!1;const n=e.apply(this,t);return Ht(),n}});function Gt(t=!1){return function(e,n,r,o){const i=e[n];if(!t&&(r=Te(r),!ht(e)&&Ie(i)&&!Ie(r)))return i.value=r,!0;const s=ht(e)&&gt(n)?Number(n)<e.length:lt(e,n),u=Reflect.set(e,n,r,o);return e===Te(o)&&(s?Pt(r,i)&&Yt(e,"set",n,r):Yt(e,"add",n,r)),u}}const Jt={get:Ft,set:Gt(),deleteProperty:function(t,e){const n=lt(t,e);t[e];const r=Reflect.deleteProperty(t,e);return r&&n&&Yt(t,"delete",e,void 0),r},has:function(t,e){const n=Reflect.has(t,e);return yt(e)&&zt.has(e)||Dt(t,0,e),n},ownKeys:function(t){return Dt(t,0,ht(t)?"length":Rt),Reflect.ownKeys(t)}},Zt={get:Wt,set:(t,e)=>!0,deleteProperty:(t,e)=>!0};at({},Jt,{get:Lt,set:Gt(!0)}),at({},Zt,{get:Bt});const Qt=t=>vt(t)?we(t):t,Xt=t=>vt(t)?Se(t):t,te=t=>t,ee=t=>Reflect.getPrototypeOf(t);function ne(t,e,n=!1,r=!1){const o=Te(t=t.__v_raw),i=Te(e);e!==i&&!n&&Dt(o,0,e),!n&&Dt(o,0,i);const{has:s}=ee(o),u=n?Xt:r?te:Qt;return s.call(o,e)?u(t.get(e)):s.call(o,i)?u(t.get(i)):void 0}function re(t,e=!1){const n=this.__v_raw,r=Te(n),o=Te(t);return t!==o&&!e&&Dt(r,0,t),!e&&Dt(r,0,o),t===o?n.has(t):n.has(t)||n.has(o)}function oe(t,e=!1){return t=t.__v_raw,!e&&Dt(Te(t),0,Rt),Reflect.get(t,"size",t)}function ie(t){t=Te(t);const e=Te(this),n=ee(e).has.call(e,t);return e.add(t),n||Yt(e,"add",t,t),this}function se(t,e){e=Te(e);const n=Te(this),{has:r,get:o}=ee(n);let i=r.call(n,t);i||(t=Te(t),i=r.call(n,t));const s=o.call(n,t);return n.set(t,e),i?Pt(e,s)&&Yt(n,"set",t,e):Yt(n,"add",t,e),this}function ue(t){const e=Te(this),{has:n,get:r}=ee(e);let o=n.call(e,t);o||(t=Te(t),o=n.call(e,t)),r&&r.call(e,t);const i=e.delete(t);return o&&Yt(e,"delete",t,void 0),i}function ce(){const t=Te(this),e=0!==t.size,n=t.clear();return e&&Yt(t,"clear",void 0,void 0),n}function ae(t,e){return function(n,r){const o=this,i=o.__v_raw,s=Te(i),u=t?Xt:e?te:Qt;return!t&&Dt(s,0,Rt),i.forEach((t,e)=>n.call(r,u(t),u(e),o))}}function fe(t,e,n){return function(...r){const o=this.__v_raw,i=Te(o),s=pt(i),u="entries"===t||t===Symbol.iterator&&s,c="keys"===t&&s,a=o[t](...r),f=e?Xt:n?te:Qt;return!e&&Dt(i,0,c?At:Rt),{next(){const{value:t,done:e}=a.next();return e?{value:t,done:e}:{value:u?[f(t[0]),f(t[1])]:f(t),done:e}},[Symbol.iterator](){return this}}}}function le(t){return function(...e){return"delete"!==t&&this}}const he={get(t){return ne(this,t)},get size(){return oe(this)},has:re,add:ie,set:se,delete:ue,clear:ce,forEach:ae(!1,!1)},pe={get(t){return ne(this,t,!1,!0)},get size(){return oe(this)},has:re,add:ie,set:se,delete:ue,clear:ce,forEach:ae(!1,!0)},de={get(t){return ne(this,t,!0)},get size(){return oe(this,!0)},has(t){return re.call(this,t,!0)},add:le("add"),set:le("set"),delete:le("delete"),clear:le("clear"),forEach:ae(!0,!1)};function be(t,e){const n=e?pe:t?de:he;return(e,r,o)=>"__v_isReactive"===r?!t:"__v_isReadonly"===r?t:"__v_raw"===r?e:Reflect.get(lt(n,r)&&r in e?n:e,r,o)}["keys","values","entries",Symbol.iterator].forEach(t=>{he[t]=fe(t,!1,!1),de[t]=fe(t,!0,!1),pe[t]=fe(t,!1,!0)});const ye={get:be(!1,!1)},ve={get:be(!0,!1)},_e=new WeakMap,me=new WeakMap;function ge(t){return t.__v_skip||!Object.isExtensible(t)?0:function(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((t=>mt(t).slice(8,-1))(t))}function we(t){return t&&t.__v_isReadonly?t:xe(t,!1,Jt,ye)}function Se(t){return xe(t,!0,Zt,ve)}function xe(t,e,n,r){if(!vt(t))return t;if(t.__v_raw&&(!e||!t.__v_isReactive))return t;const o=e?me:_e,i=o.get(t);if(i)return i;const s=ge(t);if(0===s)return t;const u=new Proxy(t,2===s?r:n);return o.set(t,u),u}function Ee(t){return Oe(t)?Ee(t.__v_raw):!(!t||!t.__v_isReactive)}function Oe(t){return!(!t||!t.__v_isReadonly)}function Te(t){return t&&Te(t.__v_raw)||t}const Pe=t=>vt(t)?we(t):t;function Ie(t){return Boolean(t&&!0===t.__v_isRef)}function Ne(t){return function(t,e=!1){if(Ie(t))return t;return new je(t,e)}(t)}class je{constructor(t,e=!1){this._rawValue=t,this._shallow=e,this.__v_isRef=!0,this._value=e?t:Pe(t)}get value(){return Dt(Te(this),0,"value"),this._value}set value(t){Pt(Te(t),this._rawValue)&&(this._rawValue=t,this._value=this._shallow?t:Pe(t),Yt(Te(this),"set","value",t))}}class Re{constructor(t,e){this._object=t,this._key=e,this.__v_isRef=!0}get value(){return this._object[this._key]}set value(t){this._object[this._key]=t}}class Ae{constructor(t,e,n){this._setter=e,this._dirty=!0,this.__v_isRef=!0,this.effect=Ct(t,{lazy:!0,scheduler:()=>{this._dirty||(this._dirty=!0,Yt(Te(this),"set","value"))}}),this.__v_isReadonly=n}get value(){return this._dirty&&(this._value=this.effect(),this._dirty=!1),Dt(Te(this),0,"value"),this._value}set value(t){this._setter(t)}}function Ce(t,e,n,r){let o;try{o=r?t(...r):t()}catch(t){Ve(t,e,n)}return o}function ke(t,e,n,r){if(dt(t)){const i=Ce(t,e,n,r);return i&&(vt(o=i)&&dt(o.then)&&dt(o.catch))&&i.catch(t=>{Ve(t,e,n)}),i}var o;const i=[];for(let o=0;o<t.length;o++)i.push(ke(t[o],e,n,r));return i}function Ve(t,e,n,r=!0){e&&e.vnode;if(e){let r=e.parent;const o=e.proxy,i=n;for(;r;){const e=r.ec;if(e)for(let n=0;n<e.length;n++)if(!1===e[n](t,o,i))return;r=r.parent}const s=e.appContext.config.errorHandler;if(s)return void Ce(s,null,10,[t,o,i])}!function(t,e,n,r=!0){console.error(t)}(t,0,0,r)}let Me=!1,$e=!1;const Ue=[];let He=0;const De=[];let Ye=null,ze=0;const Fe=[];let Le=null,We=0;const Be=Promise.resolve();let Ke=null,qe=null;function Ge(t){const e=Ke||Be;return t?e.then(this?t.bind(this):t):e}function Je(){Me||$e||($e=!0,Ke=Be.then(Xe))}function Ze(t,e,n,r){ht(t)?n.push(...t):e&&e.includes(t,t.allowRecurse?r+1:r)||n.push(t),Je()}const Qe=t=>null==t.id?1/0:t.id;function Xe(t){$e=!1,Me=!0,function t(e,n=null){if(De.length){for(qe=n,Ye=[...new Set(De)],De.length=0,ze=0;ze<Ye.length;ze++)Ye[ze]();Ye=null,ze=0,qe=null,t(e,n)}}(t),Ue.sort((t,e)=>Qe(t)-Qe(e));try{for(He=0;He<Ue.length;He++){const t=Ue[He];t&&Ce(t,null,14)}}finally{He=0,Ue.length=0,function(t){if(Fe.length){const t=[...new Set(Fe)];if(Fe.length=0,Le)return void Le.push(...t);for(Le=t,Le.sort((t,e)=>Qe(t)-Qe(e)),We=0;We<Le.length;We++)Le[We]();Le=null,We=0}}(),Me=!1,Ke=null,(Ue.length||Fe.length)&&Xe(t)}}const tn={};function en(t,e,n){return nn(t,e,n)}function nn(t,e,{immediate:n,deep:r,flush:o,onTrack:i,onTrigger:s}=st,u=ln){let c,a,f=!1;if(Ie(t)?(c=()=>t.value,f=!!t._shallow):Ee(t)?(c=()=>t,r=!0):c=ht(t)?()=>t.map(t=>Ie(t)?t.value:Ee(t)?on(t):dt(t)?Ce(t,u,2):void 0):dt(t)?e?()=>Ce(t,u,2):()=>{if(!u||!u.isUnmounted)return a&&a(),Ce(t,u,3,[l])}:ut,e&&r){const t=c;c=()=>on(t())}const l=t=>{a=b.options.onStop=()=>{Ce(t,u,4)}};let h=ht(t)?[]:tn;const p=()=>{if(b.active)if(e){const t=b();(r||f||Pt(t,h))&&(a&&a(),ke(e,u,3,[t,h===tn?void 0:h,l]),h=t)}else b()};let d;p.allowRecurse=!!e,d="sync"===o?p:"post"===o?()=>sn(p,u&&u.suspense):()=>{!u||u.isMounted?function(t){Ze(t,Ye,De,ze)}(p):p()};const b=Ct(c,{lazy:!0,onTrack:i,onTrigger:s,scheduler:d});return hn(b,u),e?n?p():h=b():"post"===o?sn(b,u&&u.suspense):b(),()=>{kt(b),u&&((t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)})(u.effects,b)}}function rn(t,e,n){const r=this.proxy;return nn(bt(t)?()=>r[t]:t.bind(r),e.bind(r),n,this)}function on(t,e=new Set){if(!vt(t)||e.has(t))return t;if(e.add(t),Ie(t))on(t.value,e);else if(ht(t))for(let n=0;n<t.length;n++)on(t[n],e);else if("[object Set]"===mt(t)||pt(t))t.forEach(t=>{on(t,e)});else for(const n in t)on(t[n],e);return t}const sn=function(t,e){e&&e.pendingBranch?ht(t)?e.effects.push(...t):e.effects.push(t):Ze(t,Le,Fe,We)};function un(t,e,n){const r=n.appContext.config.optionMergeStrategies,{mixins:o,extends:i}=e;i&&un(t,i,n),o&&o.forEach(e=>un(t,e,n));for(const o in e)r&&lt(r,o)?t[o]=r[o](t[o],e[o],n.proxy,o):t[o]=e[o]}const cn=t=>t&&(t.proxy?t.proxy:cn(t.parent)),an=at(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>cn(t.parent),$root:t=>t.root&&t.root.proxy,$emit:t=>t.emit,$options:t=>__VUE_OPTIONS_API__?function(t){const e=t.type,{__merged:n,mixins:r,extends:o}=e;if(n)return n;const i=t.appContext.mixins;if(!i.length&&!r&&!o)return e;const s={};return i.forEach(e=>un(s,e,t)),un(s,e,t),e.__merged=s}(t):t.type,$forceUpdate:t=>()=>{return e=t.update,void(Ue.length&&Ue.includes(e,Me&&e.allowRecurse?He+1:He)||e===qe||(Ue.push(e),Je()));var e},$nextTick:t=>Ge.bind(t.proxy),$watch:t=>__VUE_OPTIONS_API__?rn.bind(t):ut}),fn={get({_:t},e){const{ctx:n,setupState:r,data:o,props:i,accessCache:s,type:u,appContext:c}=t;if("__v_skip"===e)return!0;let a;if("$"!==e[0]){const u=s[e];if(void 0!==u)switch(u){case 0:return r[e];case 1:return o[e];case 3:return n[e];case 2:return i[e]}else{if(r!==st&&lt(r,e))return s[e]=0,r[e];if(o!==st&&lt(o,e))return s[e]=1,o[e];if((a=t.propsOptions[0])&&lt(a,e))return s[e]=2,i[e];if(n!==st&&lt(n,e))return s[e]=3,n[e];__VUE_OPTIONS_API__,s[e]=4}}const f=an[e];let l,h;return f?("$attrs"===e&&Dt(t,0,e),f(t)):(l=u.__cssModules)&&(l=l[e])?l:n!==st&&lt(n,e)?(s[e]=3,n[e]):(h=c.config.globalProperties,lt(h,e)?h[e]:void 0)},set({_:t},e,n){const{data:r,setupState:o,ctx:i}=t;if(o!==st&&lt(o,e))o[e]=n;else if(r!==st&&lt(r,e))r[e]=n;else if(e in t.props)return!1;return("$"!==e[0]||!(e.slice(1)in t))&&(i[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:r,appContext:o,propsOptions:i}},s){let u;return void 0!==n[s]||t!==st&&lt(t,s)||e!==st&&lt(e,s)||(u=i[0])&&lt(u,s)||lt(r,s)||lt(an,s)||lt(o.config.globalProperties,s)}};at({},fn,{get(t,e){if(e!==Symbol.unscopables)return fn.get(t,e,t)},has:(t,e)=>"_"!==e[0]&&!ot(e)});let ln=null;function hn(t,e=ln){e&&(e.effects||(e.effects=[])).push(t)}function pn(t){const e=function(t){let e,n;return dt(t)?(e=t,n=ut):(e=t.get,n=t.set),new Ae(e,n,dt(t)||!t.set)}(t);return hn(e.effect),e}const dn="http://www.w3.org/2000/svg",bn="undefined"!=typeof document?document:null;let yn,vn;const _n={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n)=>e?bn.createElementNS(dn,t):bn.createElement(t,n?{is:n}:void 0),createText:t=>bn.createTextNode(t),createComment:t=>bn.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>bn.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},cloneNode:t=>t.cloneNode(!0),insertStaticContent(t,e,n,r){const o=r?vn||(vn=bn.createElementNS(dn,"svg")):yn||(yn=bn.createElement("div"));o.innerHTML=t;const i=o.firstChild;let s=i,u=s;for(;s;)u=s,_n.insert(s,e,n),s=o.firstChild;return[i,u]}};const mn=/\s*!important$/;function gn(t,e,n){if(ht(n))n.forEach(n=>gn(t,e,n));else if(e.startsWith("--"))t.setProperty(e,n);else{const r=function(t,e){const n=Sn[e];if(n)return n;let r=xt(e);if("filter"!==r&&r in t)return Sn[e]=r;r=Tt(r);for(let n=0;n<wn.length;n++){const o=wn[n]+r;if(o in t)return Sn[e]=o}return e}(t,e);mn.test(n)?t.setProperty(Ot(r),n.replace(mn,""),"important"):t[r]=n}}const wn=["Webkit","Moz","ms"],Sn={};const xn="http://www.w3.org/1999/xlink";let En=Date.now;"undefined"!=typeof document&&En()>document.createEvent("Event").timeStamp&&(En=()=>performance.now());let On=0;const Tn=Promise.resolve(),Pn=()=>{On=0};function In(t,e,n,r,o=null){const i=t._vei||(t._vei={}),s=i[e];if(r&&s)s.value=r;else{const[n,u]=function(t){let e;if(Nn.test(t)){let n;for(e={};n=t.match(Nn);)t=t.slice(0,t.length-n[0].length),e[n[0].toLowerCase()]=!0}return[t.slice(2).toLowerCase(),e]}(e);if(r){!function(t,e,n,r){t.addEventListener(e,n,r)}(t,n,i[e]=function(t,e){const n=t=>{(t.timeStamp||En())>=n.attached-1&&ke(function(t,e){if(ht(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map(t=>e=>!e._stopped&&t(e))}return e}(t,n.value),e,5,[t])};return n.value=t,n.attached=(()=>On||(Tn.then(Pn),On=En()))(),n}(r,o),u)}else s&&(!function(t,e,n,r){t.removeEventListener(e,n,r)}(t,n,s,u),i[e]=void 0)}}const Nn=/(?:Once|Passive|Capture)$/;const jn=/^on[a-z]/;at({patchProp:(t,e,n,r,o=!1,i,s,u,c)=>{switch(e){case"class":!function(t,e,n){if(null==e&&(e=""),n)t.setAttribute("class",e);else{const n=t._vtc;n&&(e=(e?[e,...n]:[...n]).join(" ")),t.className=e}}(t,r,o);break;case"style":!function(t,e,n){const r=t.style;if(n)if(bt(n))e!==n&&(r.cssText=n);else{for(const t in n)gn(r,t,n[t]);if(e&&!bt(e))for(const t in e)null==n[t]&&gn(r,t,"")}else t.removeAttribute("style")}(t,n,r);break;default:(t=>ct.test(t))(e)?(t=>t.startsWith("onUpdate:"))(e)||In(t,e,0,r,s):function(t,e,n,r){if(r)return"innerHTML"===e||!!(e in t&&jn.test(e)&&dt(n));if("spellcheck"===e||"draggable"===e)return!1;if("form"===e&&"string"==typeof n)return!1;if("list"===e&&"INPUT"===t.tagName)return!1;if(jn.test(e)&&bt(n))return!1;return e in t}(t,e,r,o)?function(t,e,n,r,o,i,s){if("innerHTML"===e||"textContent"===e)return r&&s(r,o,i),void(t[e]=null==n?"":n);if("value"!==e||"PROGRESS"===t.tagName){if(""===n||null==n){const r=typeof t[e];if(""===n&&"boolean"===r)return void(t[e]=!0);if(null==n&&"string"===r)return t[e]="",void t.removeAttribute(e);if("number"===r)return t[e]=0,void t.removeAttribute(e)}try{t[e]=n}catch(t){}}else{t._value=n;const e=null==n?"":n;t.value!==e&&(t.value=e)}}(t,e,r,i,s,u,c):("true-value"===e?t._trueValue=r:"false-value"===e&&(t._falseValue=r),function(t,e,n,r){if(r&&e.startsWith("xlink:"))null==n?t.removeAttributeNS(xn,e.slice(6,e.length)):t.setAttributeNS(xn,e,n);else{const r=it(e);null==n||r&&!1===n?t.removeAttribute(e):t.setAttribute(e,r?"":n)}}(t,e,r,o))}},forcePatchProp:(t,e)=>"value"===e},_n);var Rn=function(t){return new S((function(t){}))},An=function(t){return e=Rn(),function(t){return t.lift(new et(e))};var e},Cn=function(t){return t.pipe(An())},kn=function t(e){return function(n){for(var r in n)e[r]=vt(n[r])&&vt(e[r])?t(e[r])(n[r]):n[r];return e}};var Vn=function(t){return"".concat(t,"$")},Mn=function(t){return Object.assign({},t,{subscribe:function(){var e;return Object.assign({},t,{subscription:(e=t.state$).subscribe.apply(e,arguments)})}})},$n=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return"function"==typeof t?t.apply(void 0,n):t};t.deepMergeKeys=kn,t.fromHook=Rn,t.fromRef=function(t){return Cn(new S((function(e){return en(t,(function(t){return e.next(t)}))})))},t.pipeUntil=An,t.refFrom=function(t,n){if("object"===e(t))try{var r=Ne(n);return L(t).subscribe((function(t){return r.value=t})),r}catch(t){}return Ee(s=t)||Oe(s)?Ie((o=t)[i=n])?o[i]:new Re(o,i):Ne(t);var o,i,s},t.refsFrom=function(t,e){var n=Ne(null==e?void 0:e.next),r=Ne(null==e?void 0:e.error);return L(t).subscribe({next:function(t){return n.value=t},error:function(t){return r.value=t}}),{next:n,error:r}},t.syncRef=function(t,e,n){var r=e.to,o=e.from;if(r&&o)return pn({get:function(){return r(t.value)},set:function(e){return t.value=o(e)}});var i=Ne(null!=n?n:t.value);return r?en(t,(function(t){return i.value=r(t)})):o&&en(i,(function(e){return t.value=o(e)})),i},t.untilUnmounted=Cn,t.useRxState=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:kn;return function(r,o){var i,s=we($n(t)),u=Q((function(t,n){var r=$n(n,t);return(k(r)?r:C(r)).pipe(V(e(t)))}),s),c={},a={},f=function(t){var e=new P;c[t]=function(){return e.next(r[t].apply(r,arguments))},a[Vn(t)]=e.pipe(u)};for(var l in r)f(l);var h=Z.apply(void 0,n(Object.values(a)));return Mn({actions:c,state:Se(s),state$:Cn(null!==(i=null==o?void 0:o(h,r,s,a).pipe(u))&&void 0!==i?i:h),actions$:a})}},Object.defineProperty(t,"__esModule",{value:!0})}));
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self)["vuse-rx"]={})}(this,(function(t){"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function n(t){return function(t){if(Array.isArray(t))return r(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function i(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function s(t){return"function"==typeof t}var u=!1,c={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){t&&(new Error).stack;u=t},get useDeprecatedSynchronousErrorHandling(){return u}};function a(t){setTimeout((function(){throw t}),0)}var f={closed:!0,next:function(t){},error:function(t){if(c.useDeprecatedSynchronousErrorHandling)throw t;a(t)},complete:function(){}},l=function(){return Array.isArray||function(t){return t&&"number"==typeof t.length}}();function h(t){return null!==t&&"object"==typeof t}var p=function(){function t(t){return Error.call(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(t,e){return e+1+") "+t.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t}(),d=function(){function t(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}return t.prototype.unsubscribe=function(){var e;if(!this.closed){var n=this._parentOrParents,r=this._ctorUnsubscribe,o=this._unsubscribe,i=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(var u=0;u<n.length;++u){n[u].remove(this)}if(s(o)){r&&(this._unsubscribe=void 0);try{o.call(this)}catch(t){e=t instanceof p?b(t.errors):[t]}}if(l(i)){u=-1;for(var c=i.length;++u<c;){var a=i[u];if(h(a))try{a.unsubscribe()}catch(t){e=e||[],t instanceof p?e=e.concat(b(t.errors)):e.push(t)}}}if(e)throw new p(e)}},t.prototype.add=function(e){var n=e;if(!e)return t.EMPTY;switch(typeof e){case"function":n=new t(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof t)){var r=n;(n=new t)._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}var o=n._parentOrParents;if(null===o)n._parentOrParents=this;else if(o instanceof t){if(o===this)return n;n._parentOrParents=[o,this]}else{if(-1!==o.indexOf(this))return n;o.push(this)}var i=this._subscriptions;return null===i?this._subscriptions=[n]:i.push(n),n},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}},t.EMPTY=function(t){return t.closed=!0,t}(new t),t}();function b(t){return t.reduce((function(t,e){return t.concat(e instanceof p?e.errors:e)}),[])}var y=function(){return"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}(),v=function(t){function e(n,r,o){var i=t.call(this)||this;switch(i.syncErrorValue=null,i.syncErrorThrown=!1,i.syncErrorThrowable=!1,i.isStopped=!1,arguments.length){case 0:i.destination=f;break;case 1:if(!n){i.destination=f;break}if("object"==typeof n){n instanceof e?(i.syncErrorThrowable=n.syncErrorThrowable,i.destination=n,n.add(i)):(i.syncErrorThrowable=!0,i.destination=new _(i,n));break}default:i.syncErrorThrowable=!0,i.destination=new _(i,n,r,o)}return i}return i(e,t),e.prototype[y]=function(){return this},e.create=function(t,n,r){var o=new e(t,n,r);return o.syncErrorThrowable=!1,o},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this},e}(d),_=function(t){function e(e,n,r,o){var i,u=t.call(this)||this;u._parentSubscriber=e;var c=u;return s(n)?i=n:n&&(i=n.next,r=n.error,o=n.complete,n!==f&&(s((c=Object.create(n)).unsubscribe)&&u.add(c.unsubscribe.bind(c)),c.unsubscribe=u.unsubscribe.bind(u))),u._context=c,u._next=i,u._error=r,u._complete=o,u}return i(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;c.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber,n=c.useDeprecatedSynchronousErrorHandling;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):a(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;a(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};c.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){if(this.unsubscribe(),c.useDeprecatedSynchronousErrorHandling)throw t;a(t)}},e.prototype.__tryOrSetError=function(t,e,n){if(!c.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(e){return c.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=e,t.syncErrorThrown=!0,!0):(a(e),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(v);var m=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}();function g(t){return t}function w(t){return 0===t.length?g:1===t.length?t[0]:function(e){return t.reduce((function(t,e){return e(t)}),e)}}var S=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var r=this.operator,o=function(t,e,n){if(t){if(t instanceof v)return t;if(t[y])return t[y]()}return t||e||n?new v(t,e,n):new v(f)}(t,e,n);if(r?o.add(r.call(o,this.source)):o.add(this.source||c.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),c.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){c.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),!function(t){for(;t;){var e=t,n=e.closed,r=e.destination,o=e.isStopped;if(n||o)return!1;t=r&&r instanceof v?r:null}return!0}(t)?console.warn(e):t.error(e)}},t.prototype.forEach=function(t,e){var n=this;return new(e=x(e))((function(e,r){var o;o=n.subscribe((function(e){try{t(e)}catch(t){r(t),o&&o.unsubscribe()}}),r,e)}))},t.prototype._subscribe=function(t){var e=this.source;return e&&e.subscribe(t)},t.prototype[m]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 0===t.length?this:w(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=x(t))((function(t,n){var r;e.subscribe((function(t){return r=t}),(function(t){return n(t)}),(function(){return t(r)}))}))},t.create=function(e){return new t(e)},t}();function x(t){if(t||(t=Promise),!t)throw new Error("no Promise impl found");return t}var E=function(){function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t}(),O=function(t){function e(e,n){var r=t.call(this)||this;return r.subject=e,r.subscriber=n,r.closed=!1,r}return i(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},e}(d),T=function(t){function e(e){var n=t.call(this,e)||this;return n.destination=e,n}return i(e,t),e}(v),P=function(t){function e(){var e=t.call(this)||this;return e.observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return i(e,t),e.prototype[y]=function(){return new T(this)},e.prototype.lift=function(t){var e=new I(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new E;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),o=0;o<n;o++)r[o].next(t)},e.prototype.error=function(t){if(this.closed)throw new E;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,n=e.length,r=e.slice(),o=0;o<n;o++)r[o].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new E;this.isStopped=!0;for(var t=this.observers,e=t.length,n=t.slice(),r=0;r<e;r++)n[r].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(e){if(this.closed)throw new E;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){if(this.closed)throw new E;return this.hasError?(t.error(this.thrownError),d.EMPTY):this.isStopped?(t.complete(),d.EMPTY):(this.observers.push(t),new O(this,t))},e.prototype.asObservable=function(){var t=new S;return t.source=this,t},e.create=function(t,e){return new I(t,e)},e}(S),I=function(t){function e(e,n){var r=t.call(this)||this;return r.destination=e,r.source=n,r}return i(e,t),e.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},e.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},e.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},e.prototype._subscribe=function(t){return this.source?this.source.subscribe(t):d.EMPTY},e}(P);function j(t){return t&&"function"==typeof t.schedule}var N=function(t){return function(e){for(var n=0,r=t.length;n<r&&!e.closed;n++)e.next(t[n]);e.complete()}};function R(t,e){return new S((function(n){var r=new d,o=0;return r.add(e.schedule((function(){o!==t.length?(n.next(t[o++]),n.closed||r.add(this.schedule())):n.complete()}))),r}))}function A(t,e){return e?R(t,e):new S(N(t))}function C(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];return j(n)?(t.pop(),R(t,n)):A(t)}function k(t){return!!t&&(t instanceof S||"function"==typeof t.lift&&"function"==typeof t.subscribe)}function V(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new M(t,e))}}var M=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new $(t,this.project,this.thisArg))},t}(),$=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.project=n,o.count=0,o.thisArg=r||o,o}return i(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(v);function U(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}var H=U(),D=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t};function Y(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}var z=function(t){if(t&&"function"==typeof t[m])return r=t,function(t){var e=r[m]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(D(t))return N(t);if(Y(t))return n=t,function(t){return n.then((function(e){t.closed||(t.next(e),t.complete())}),(function(e){return t.error(e)})).then(null,a),t};if(t&&"function"==typeof t[H])return e=t,function(t){for(var n=e[H]();;){var r=void 0;try{r=n.next()}catch(e){return t.error(e),t}if(r.done){t.complete();break}if(t.next(r.value),t.closed)break}return"function"==typeof n.return&&t.add((function(){n.return&&n.return()})),t};var e,n,r,o=h(t)?"an invalid object":"'"+t+"'";throw new TypeError("You provided "+o+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")};function F(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[m]}(t))return function(t,e){return new S((function(n){var r=new d;return r.add(e.schedule((function(){var o=t[m]();r.add(o.subscribe({next:function(t){r.add(e.schedule((function(){return n.next(t)})))},error:function(t){r.add(e.schedule((function(){return n.error(t)})))},complete:function(){r.add(e.schedule((function(){return n.complete()})))}}))}))),r}))}(t,e);if(Y(t))return function(t,e){return new S((function(n){var r=new d;return r.add(e.schedule((function(){return t.then((function(t){r.add(e.schedule((function(){n.next(t),r.add(e.schedule((function(){return n.complete()})))})))}),(function(t){r.add(e.schedule((function(){return n.error(t)})))}))}))),r}))}(t,e);if(D(t))return R(t,e);if(function(t){return t&&"function"==typeof t[H]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new S((function(n){var r,o=new d;return o.add((function(){r&&"function"==typeof r.return&&r.return()})),o.add(e.schedule((function(){r=t[H](),o.add(e.schedule((function(){if(!n.closed){var t,e;try{var o=r.next();t=o.value,e=o.done}catch(t){return void n.error(t)}e?n.complete():(n.next(t),this.schedule())}})))}))),o}))}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}function L(t,e){return e?F(t,e):t instanceof S?t:new S(z(t))}var W=function(t){function e(e){var n=t.call(this)||this;return n.parent=e,n}return i(e,t),e.prototype._next=function(t){this.parent.notifyNext(t)},e.prototype._error=function(t){this.parent.notifyError(t),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(),this.unsubscribe()},e}(v),B=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.notifyNext=function(t){this.destination.next(t)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(){this.destination.complete()},e}(v);function K(t,e){if(!e.closed)return t instanceof S?t.subscribe(e):z(t)(e)}var q=function(){function t(t,e){void 0===e&&(e=Number.POSITIVE_INFINITY),this.project=t,this.concurrent=e}return t.prototype.call=function(t,e){return e.subscribe(new G(t,this.project,this.concurrent))},t}(),G=function(t){function e(e,n,r){void 0===r&&(r=Number.POSITIVE_INFINITY);var o=t.call(this,e)||this;return o.project=n,o.concurrent=r,o.hasCompleted=!1,o.buffer=[],o.active=0,o.index=0,o}return i(e,t),e.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this.active++,this._innerSub(e)},e.prototype._innerSub=function(t){var e=new W(this),n=this.destination;n.add(e);var r=K(t,e);r!==e&&n.add(r)},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t){this.destination.next(t)},e.prototype.notifyComplete=function(){var t=this.buffer;this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(B);function J(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),function t(e,n,r){return void 0===r&&(r=Number.POSITIVE_INFINITY),"function"==typeof n?function(o){return o.pipe(t((function(t,r){return L(e(t,r)).pipe(V((function(e,o){return n(t,e,r,o)})))}),r))}:("number"==typeof n&&(r=n),function(t){return t.lift(new q(e,r))})}(g,t)}function Z(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Number.POSITIVE_INFINITY,r=null,o=t[t.length-1];return j(o)?(r=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof o&&(n=t.pop()),null===r&&1===t.length&&t[0]instanceof S?t[0]:J(n)(A(t,r))}function Q(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),function(r){return r.lift(new X(t,e,n))}}var X=function(){function t(t,e,n){this.accumulator=t,this.seed=e,this.concurrent=n}return t.prototype.call=function(t,e){return e.subscribe(new tt(t,this.accumulator,this.seed,this.concurrent))},t}(),tt=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.accumulator=n,i.acc=r,i.concurrent=o,i.hasValue=!1,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return i(e,t),e.prototype._next=function(t){if(this.active<this.concurrent){var e=this.index++,n=this.destination,r=void 0;try{r=(0,this.accumulator)(this.acc,t,e)}catch(t){return n.error(t)}this.active++,this._innerSub(r)}else this.buffer.push(t)},e.prototype._innerSub=function(t){var e=new W(this),n=this.destination;n.add(e);var r=K(t,e);r!==e&&n.add(r)},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete()),this.unsubscribe()},e.prototype.notifyNext=function(t){var e=this.destination;this.acc=t,this.hasValue=!0,e.next(t)},e.prototype.notifyComplete=function(){var t=this.buffer;this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())},e}(B);var et=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var n=new nt(t),r=K(this.notifier,new W(n));return r&&!n.seenValue?(n.add(r),e.subscribe(n)):n},t}(),nt=function(t){function e(e){var n=t.call(this,e)||this;return n.seenValue=!1,n}return i(e,t),e.prototype.notifyNext=function(){this.seenValue=!0,this.complete()},e.prototype.notifyComplete=function(){},e}(B);function rt(t,e){const n=Object.create(null),r=t.split(",");for(let t=0;t<r.length;t++)n[r[t]]=!0;return e?t=>!!n[t.toLowerCase()]:t=>!!n[t]}const ot=rt("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl"),it=rt("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly"),st={},ut=()=>{},ct=/^on[^a-z]/,at=Object.assign,ft=Object.prototype.hasOwnProperty,lt=(t,e)=>ft.call(t,e),ht=Array.isArray,pt=t=>"[object Map]"===mt(t),dt=t=>"function"==typeof t,bt=t=>"string"==typeof t,yt=t=>"symbol"==typeof t,vt=t=>null!==t&&"object"==typeof t,_t=Object.prototype.toString,mt=t=>_t.call(t),gt=t=>bt(t)&&"NaN"!==t&&"-"!==t[0]&&""+parseInt(t,10)===t,wt=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},St=/-(\w)/g,xt=wt(t=>t.replace(St,(t,e)=>e?e.toUpperCase():"")),Et=/\B([A-Z])/g,Ot=wt(t=>t.replace(Et,"-$1").toLowerCase()),Tt=wt(t=>t.charAt(0).toUpperCase()+t.slice(1)),Pt=(t,e)=>t!==e&&(t==t||e==e),It=new WeakMap,jt=[];let Nt;const Rt=Symbol(""),At=Symbol("");function Ct(t,e=st){(function(t){return t&&!0===t._isEffect})(t)&&(t=t.raw);const n=function(t,e){const n=function(){if(!n.active)return e.scheduler?void 0:t();if(!jt.includes(n)){Mt(n);try{return Ut.push($t),$t=!0,jt.push(n),Nt=n,t()}finally{jt.pop(),Ht(),Nt=jt[jt.length-1]}}};return n.id=Vt++,n.allowRecurse=!!e.allowRecurse,n._isEffect=!0,n.active=!0,n.raw=t,n.deps=[],n.options=e,n}(t,e);return e.lazy||n(),n}function kt(t){t.active&&(Mt(t),t.options.onStop&&t.options.onStop(),t.active=!1)}let Vt=0;function Mt(t){const{deps:e}=t;if(e.length){for(let n=0;n<e.length;n++)e[n].delete(t);e.length=0}}let $t=!0;const Ut=[];function Ht(){const t=Ut.pop();$t=void 0===t||t}function Dt(t,e,n){if(!$t||void 0===Nt)return;let r=It.get(t);r||It.set(t,r=new Map);let o=r.get(n);o||r.set(n,o=new Set),o.has(Nt)||(o.add(Nt),Nt.deps.push(o))}function Yt(t,e,n,r,o,i){const s=It.get(t);if(!s)return;const u=new Set,c=t=>{t&&t.forEach(t=>{(t!==Nt||t.allowRecurse)&&u.add(t)})};if("clear"===e)s.forEach(c);else if("length"===n&&ht(t))s.forEach((t,e)=>{("length"===e||e>=r)&&c(t)});else switch(void 0!==n&&c(s.get(n)),e){case"add":ht(t)?gt(n)&&c(s.get("length")):(c(s.get(Rt)),pt(t)&&c(s.get(At)));break;case"delete":ht(t)||(c(s.get(Rt)),pt(t)&&c(s.get(At)));break;case"set":pt(t)&&c(s.get(Rt))}u.forEach(t=>{t.options.scheduler?t.options.scheduler(t):t()})}const zt=new Set(Object.getOwnPropertyNames(Symbol).map(t=>Symbol[t]).filter(yt)),Ft=qt(),Lt=qt(!1,!0),Wt=qt(!0),Bt=qt(!0,!0),Kt={};function qt(t=!1,e=!1){return function(n,r,o){if("__v_isReactive"===r)return!t;if("__v_isReadonly"===r)return t;if("__v_raw"===r&&o===(t?me:_e).get(n))return n;const i=ht(n);if(!t&&i&&lt(Kt,r))return Reflect.get(Kt,r,o);const s=Reflect.get(n,r,o);if(yt(r)?zt.has(r):"__proto__"===r||"__v_isRef"===r)return s;if(t||Dt(n,0,r),e)return s;if(Ie(s)){return!i||!gt(r)?s.value:s}return vt(s)?t?Se(s):we(s):s}}["includes","indexOf","lastIndexOf"].forEach(t=>{const e=Array.prototype[t];Kt[t]=function(...t){const n=Te(this);for(let t=0,e=this.length;t<e;t++)Dt(n,0,t+"");const r=e.apply(n,t);return-1===r||!1===r?e.apply(n,t.map(Te)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{const e=Array.prototype[t];Kt[t]=function(...t){Ut.push($t),$t=!1;const n=e.apply(this,t);return Ht(),n}});function Gt(t=!1){return function(e,n,r,o){const i=e[n];if(!t&&(r=Te(r),!ht(e)&&Ie(i)&&!Ie(r)))return i.value=r,!0;const s=ht(e)&&gt(n)?Number(n)<e.length:lt(e,n),u=Reflect.set(e,n,r,o);return e===Te(o)&&(s?Pt(r,i)&&Yt(e,"set",n,r):Yt(e,"add",n,r)),u}}const Jt={get:Ft,set:Gt(),deleteProperty:function(t,e){const n=lt(t,e);t[e];const r=Reflect.deleteProperty(t,e);return r&&n&&Yt(t,"delete",e,void 0),r},has:function(t,e){const n=Reflect.has(t,e);return yt(e)&&zt.has(e)||Dt(t,0,e),n},ownKeys:function(t){return Dt(t,0,ht(t)?"length":Rt),Reflect.ownKeys(t)}},Zt={get:Wt,set:(t,e)=>!0,deleteProperty:(t,e)=>!0};at({},Jt,{get:Lt,set:Gt(!0)}),at({},Zt,{get:Bt});const Qt=t=>vt(t)?we(t):t,Xt=t=>vt(t)?Se(t):t,te=t=>t,ee=t=>Reflect.getPrototypeOf(t);function ne(t,e,n=!1,r=!1){const o=Te(t=t.__v_raw),i=Te(e);e!==i&&!n&&Dt(o,0,e),!n&&Dt(o,0,i);const{has:s}=ee(o),u=n?Xt:r?te:Qt;return s.call(o,e)?u(t.get(e)):s.call(o,i)?u(t.get(i)):void 0}function re(t,e=!1){const n=this.__v_raw,r=Te(n),o=Te(t);return t!==o&&!e&&Dt(r,0,t),!e&&Dt(r,0,o),t===o?n.has(t):n.has(t)||n.has(o)}function oe(t,e=!1){return t=t.__v_raw,!e&&Dt(Te(t),0,Rt),Reflect.get(t,"size",t)}function ie(t){t=Te(t);const e=Te(this),n=ee(e).has.call(e,t);return e.add(t),n||Yt(e,"add",t,t),this}function se(t,e){e=Te(e);const n=Te(this),{has:r,get:o}=ee(n);let i=r.call(n,t);i||(t=Te(t),i=r.call(n,t));const s=o.call(n,t);return n.set(t,e),i?Pt(e,s)&&Yt(n,"set",t,e):Yt(n,"add",t,e),this}function ue(t){const e=Te(this),{has:n,get:r}=ee(e);let o=n.call(e,t);o||(t=Te(t),o=n.call(e,t)),r&&r.call(e,t);const i=e.delete(t);return o&&Yt(e,"delete",t,void 0),i}function ce(){const t=Te(this),e=0!==t.size,n=t.clear();return e&&Yt(t,"clear",void 0,void 0),n}function ae(t,e){return function(n,r){const o=this,i=o.__v_raw,s=Te(i),u=t?Xt:e?te:Qt;return!t&&Dt(s,0,Rt),i.forEach((t,e)=>n.call(r,u(t),u(e),o))}}function fe(t,e,n){return function(...r){const o=this.__v_raw,i=Te(o),s=pt(i),u="entries"===t||t===Symbol.iterator&&s,c="keys"===t&&s,a=o[t](...r),f=e?Xt:n?te:Qt;return!e&&Dt(i,0,c?At:Rt),{next(){const{value:t,done:e}=a.next();return e?{value:t,done:e}:{value:u?[f(t[0]),f(t[1])]:f(t),done:e}},[Symbol.iterator](){return this}}}}function le(t){return function(...e){return"delete"!==t&&this}}const he={get(t){return ne(this,t)},get size(){return oe(this)},has:re,add:ie,set:se,delete:ue,clear:ce,forEach:ae(!1,!1)},pe={get(t){return ne(this,t,!1,!0)},get size(){return oe(this)},has:re,add:ie,set:se,delete:ue,clear:ce,forEach:ae(!1,!0)},de={get(t){return ne(this,t,!0)},get size(){return oe(this,!0)},has(t){return re.call(this,t,!0)},add:le("add"),set:le("set"),delete:le("delete"),clear:le("clear"),forEach:ae(!0,!1)};function be(t,e){const n=e?pe:t?de:he;return(e,r,o)=>"__v_isReactive"===r?!t:"__v_isReadonly"===r?t:"__v_raw"===r?e:Reflect.get(lt(n,r)&&r in e?n:e,r,o)}["keys","values","entries",Symbol.iterator].forEach(t=>{he[t]=fe(t,!1,!1),de[t]=fe(t,!0,!1),pe[t]=fe(t,!1,!0)});const ye={get:be(!1,!1)},ve={get:be(!0,!1)},_e=new WeakMap,me=new WeakMap;function ge(t){return t.__v_skip||!Object.isExtensible(t)?0:function(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((t=>mt(t).slice(8,-1))(t))}function we(t){return t&&t.__v_isReadonly?t:xe(t,!1,Jt,ye)}function Se(t){return xe(t,!0,Zt,ve)}function xe(t,e,n,r){if(!vt(t))return t;if(t.__v_raw&&(!e||!t.__v_isReactive))return t;const o=e?me:_e,i=o.get(t);if(i)return i;const s=ge(t);if(0===s)return t;const u=new Proxy(t,2===s?r:n);return o.set(t,u),u}function Ee(t){return Oe(t)?Ee(t.__v_raw):!(!t||!t.__v_isReactive)}function Oe(t){return!(!t||!t.__v_isReadonly)}function Te(t){return t&&Te(t.__v_raw)||t}const Pe=t=>vt(t)?we(t):t;function Ie(t){return Boolean(t&&!0===t.__v_isRef)}function je(t){return function(t,e=!1){if(Ie(t))return t;return new Ne(t,e)}(t)}class Ne{constructor(t,e=!1){this._rawValue=t,this._shallow=e,this.__v_isRef=!0,this._value=e?t:Pe(t)}get value(){return Dt(Te(this),0,"value"),this._value}set value(t){Pt(Te(t),this._rawValue)&&(this._rawValue=t,this._value=this._shallow?t:Pe(t),Yt(Te(this),"set","value",t))}}class Re{constructor(t,e){this._object=t,this._key=e,this.__v_isRef=!0}get value(){return this._object[this._key]}set value(t){this._object[this._key]=t}}class Ae{constructor(t,e,n){this._setter=e,this._dirty=!0,this.__v_isRef=!0,this.effect=Ct(t,{lazy:!0,scheduler:()=>{this._dirty||(this._dirty=!0,Yt(Te(this),"set","value"))}}),this.__v_isReadonly=n}get value(){return this._dirty&&(this._value=this.effect(),this._dirty=!1),Dt(Te(this),0,"value"),this._value}set value(t){this._setter(t)}}function Ce(t,e,n,r){let o;try{o=r?t(...r):t()}catch(t){Ve(t,e,n)}return o}function ke(t,e,n,r){if(dt(t)){const i=Ce(t,e,n,r);return i&&(vt(o=i)&&dt(o.then)&&dt(o.catch))&&i.catch(t=>{Ve(t,e,n)}),i}var o;const i=[];for(let o=0;o<t.length;o++)i.push(ke(t[o],e,n,r));return i}function Ve(t,e,n,r=!0){e&&e.vnode;if(e){let r=e.parent;const o=e.proxy,i=n;for(;r;){const e=r.ec;if(e)for(let n=0;n<e.length;n++)if(!1===e[n](t,o,i))return;r=r.parent}const s=e.appContext.config.errorHandler;if(s)return void Ce(s,null,10,[t,o,i])}!function(t,e,n,r=!0){console.error(t)}(t,0,0,r)}let Me=!1,$e=!1;const Ue=[];let He=0;const De=[];let Ye=null,ze=0;const Fe=[];let Le=null,We=0;const Be=Promise.resolve();let Ke=null,qe=null;function Ge(t){const e=Ke||Be;return t?e.then(this?t.bind(this):t):e}function Je(){Me||$e||($e=!0,Ke=Be.then(Xe))}function Ze(t,e,n,r){ht(t)?n.push(...t):e&&e.includes(t,t.allowRecurse?r+1:r)||n.push(t),Je()}const Qe=t=>null==t.id?1/0:t.id;function Xe(t){$e=!1,Me=!0,function t(e,n=null){if(De.length){for(qe=n,Ye=[...new Set(De)],De.length=0,ze=0;ze<Ye.length;ze++)Ye[ze]();Ye=null,ze=0,qe=null,t(e,n)}}(t),Ue.sort((t,e)=>Qe(t)-Qe(e));try{for(He=0;He<Ue.length;He++){const t=Ue[He];t&&Ce(t,null,14)}}finally{He=0,Ue.length=0,function(t){if(Fe.length){const t=[...new Set(Fe)];if(Fe.length=0,Le)return void Le.push(...t);for(Le=t,Le.sort((t,e)=>Qe(t)-Qe(e)),We=0;We<Le.length;We++)Le[We]();Le=null,We=0}}(),Me=!1,Ke=null,(Ue.length||Fe.length)&&Xe(t)}}const tn={};function en(t,e,n){return nn(t,e,n)}function nn(t,e,{immediate:n,deep:r,flush:o,onTrack:i,onTrigger:s}=st,u=ln){let c,a,f=!1;if(Ie(t)?(c=()=>t.value,f=!!t._shallow):Ee(t)?(c=()=>t,r=!0):c=ht(t)?()=>t.map(t=>Ie(t)?t.value:Ee(t)?on(t):dt(t)?Ce(t,u,2):void 0):dt(t)?e?()=>Ce(t,u,2):()=>{if(!u||!u.isUnmounted)return a&&a(),Ce(t,u,3,[l])}:ut,e&&r){const t=c;c=()=>on(t())}const l=t=>{a=b.options.onStop=()=>{Ce(t,u,4)}};let h=ht(t)?[]:tn;const p=()=>{if(b.active)if(e){const t=b();(r||f||Pt(t,h))&&(a&&a(),ke(e,u,3,[t,h===tn?void 0:h,l]),h=t)}else b()};let d;p.allowRecurse=!!e,d="sync"===o?p:"post"===o?()=>sn(p,u&&u.suspense):()=>{!u||u.isMounted?function(t){Ze(t,Ye,De,ze)}(p):p()};const b=Ct(c,{lazy:!0,onTrack:i,onTrigger:s,scheduler:d});return hn(b,u),e?n?p():h=b():"post"===o?sn(b,u&&u.suspense):b(),()=>{kt(b),u&&((t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)})(u.effects,b)}}function rn(t,e,n){const r=this.proxy;return nn(bt(t)?()=>r[t]:t.bind(r),e.bind(r),n,this)}function on(t,e=new Set){if(!vt(t)||e.has(t))return t;if(e.add(t),Ie(t))on(t.value,e);else if(ht(t))for(let n=0;n<t.length;n++)on(t[n],e);else if("[object Set]"===mt(t)||pt(t))t.forEach(t=>{on(t,e)});else for(const n in t)on(t[n],e);return t}const sn=function(t,e){e&&e.pendingBranch?ht(t)?e.effects.push(...t):e.effects.push(t):Ze(t,Le,Fe,We)};function un(t,e,n){const r=n.appContext.config.optionMergeStrategies,{mixins:o,extends:i}=e;i&&un(t,i,n),o&&o.forEach(e=>un(t,e,n));for(const o in e)r&&lt(r,o)?t[o]=r[o](t[o],e[o],n.proxy,o):t[o]=e[o]}const cn=t=>t&&(t.proxy?t.proxy:cn(t.parent)),an=at(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>cn(t.parent),$root:t=>t.root&&t.root.proxy,$emit:t=>t.emit,$options:t=>__VUE_OPTIONS_API__?function(t){const e=t.type,{__merged:n,mixins:r,extends:o}=e;if(n)return n;const i=t.appContext.mixins;if(!i.length&&!r&&!o)return e;const s={};return i.forEach(e=>un(s,e,t)),un(s,e,t),e.__merged=s}(t):t.type,$forceUpdate:t=>()=>{return e=t.update,void(Ue.length&&Ue.includes(e,Me&&e.allowRecurse?He+1:He)||e===qe||(Ue.push(e),Je()));var e},$nextTick:t=>Ge.bind(t.proxy),$watch:t=>__VUE_OPTIONS_API__?rn.bind(t):ut}),fn={get({_:t},e){const{ctx:n,setupState:r,data:o,props:i,accessCache:s,type:u,appContext:c}=t;if("__v_skip"===e)return!0;let a;if("$"!==e[0]){const u=s[e];if(void 0!==u)switch(u){case 0:return r[e];case 1:return o[e];case 3:return n[e];case 2:return i[e]}else{if(r!==st&&lt(r,e))return s[e]=0,r[e];if(o!==st&&lt(o,e))return s[e]=1,o[e];if((a=t.propsOptions[0])&&lt(a,e))return s[e]=2,i[e];if(n!==st&&lt(n,e))return s[e]=3,n[e];__VUE_OPTIONS_API__,s[e]=4}}const f=an[e];let l,h;return f?("$attrs"===e&&Dt(t,0,e),f(t)):(l=u.__cssModules)&&(l=l[e])?l:n!==st&&lt(n,e)?(s[e]=3,n[e]):(h=c.config.globalProperties,lt(h,e)?h[e]:void 0)},set({_:t},e,n){const{data:r,setupState:o,ctx:i}=t;if(o!==st&&lt(o,e))o[e]=n;else if(r!==st&&lt(r,e))r[e]=n;else if(e in t.props)return!1;return("$"!==e[0]||!(e.slice(1)in t))&&(i[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:r,appContext:o,propsOptions:i}},s){let u;return void 0!==n[s]||t!==st&&lt(t,s)||e!==st&&lt(e,s)||(u=i[0])&&lt(u,s)||lt(r,s)||lt(an,s)||lt(o.config.globalProperties,s)}};at({},fn,{get(t,e){if(e!==Symbol.unscopables)return fn.get(t,e,t)},has:(t,e)=>"_"!==e[0]&&!ot(e)});let ln=null;function hn(t,e=ln){e&&(e.effects||(e.effects=[])).push(t)}function pn(t){const e=function(t){let e,n;return dt(t)?(e=t,n=ut):(e=t.get,n=t.set),new Ae(e,n,dt(t)||!t.set)}(t);return hn(e.effect),e}const dn="http://www.w3.org/2000/svg",bn="undefined"!=typeof document?document:null;let yn,vn;const _n={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n)=>e?bn.createElementNS(dn,t):bn.createElement(t,n?{is:n}:void 0),createText:t=>bn.createTextNode(t),createComment:t=>bn.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>bn.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},cloneNode:t=>t.cloneNode(!0),insertStaticContent(t,e,n,r){const o=r?vn||(vn=bn.createElementNS(dn,"svg")):yn||(yn=bn.createElement("div"));o.innerHTML=t;const i=o.firstChild;let s=i,u=s;for(;s;)u=s,_n.insert(s,e,n),s=o.firstChild;return[i,u]}};const mn=/\s*!important$/;function gn(t,e,n){if(ht(n))n.forEach(n=>gn(t,e,n));else if(e.startsWith("--"))t.setProperty(e,n);else{const r=function(t,e){const n=Sn[e];if(n)return n;let r=xt(e);if("filter"!==r&&r in t)return Sn[e]=r;r=Tt(r);for(let n=0;n<wn.length;n++){const o=wn[n]+r;if(o in t)return Sn[e]=o}return e}(t,e);mn.test(n)?t.setProperty(Ot(r),n.replace(mn,""),"important"):t[r]=n}}const wn=["Webkit","Moz","ms"],Sn={};const xn="http://www.w3.org/1999/xlink";let En=Date.now;"undefined"!=typeof document&&En()>document.createEvent("Event").timeStamp&&(En=()=>performance.now());let On=0;const Tn=Promise.resolve(),Pn=()=>{On=0};function In(t,e,n,r,o=null){const i=t._vei||(t._vei={}),s=i[e];if(r&&s)s.value=r;else{const[n,u]=function(t){let e;if(jn.test(t)){let n;for(e={};n=t.match(jn);)t=t.slice(0,t.length-n[0].length),e[n[0].toLowerCase()]=!0}return[t.slice(2).toLowerCase(),e]}(e);if(r){!function(t,e,n,r){t.addEventListener(e,n,r)}(t,n,i[e]=function(t,e){const n=t=>{(t.timeStamp||En())>=n.attached-1&&ke(function(t,e){if(ht(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map(t=>e=>!e._stopped&&t(e))}return e}(t,n.value),e,5,[t])};return n.value=t,n.attached=(()=>On||(Tn.then(Pn),On=En()))(),n}(r,o),u)}else s&&(!function(t,e,n,r){t.removeEventListener(e,n,r)}(t,n,s,u),i[e]=void 0)}}const jn=/(?:Once|Passive|Capture)$/;const Nn=/^on[a-z]/;at({patchProp:(t,e,n,r,o=!1,i,s,u,c)=>{switch(e){case"class":!function(t,e,n){if(null==e&&(e=""),n)t.setAttribute("class",e);else{const n=t._vtc;n&&(e=(e?[e,...n]:[...n]).join(" ")),t.className=e}}(t,r,o);break;case"style":!function(t,e,n){const r=t.style;if(n)if(bt(n))e!==n&&(r.cssText=n);else{for(const t in n)gn(r,t,n[t]);if(e&&!bt(e))for(const t in e)null==n[t]&&gn(r,t,"")}else t.removeAttribute("style")}(t,n,r);break;default:(t=>ct.test(t))(e)?(t=>t.startsWith("onUpdate:"))(e)||In(t,e,0,r,s):function(t,e,n,r){if(r)return"innerHTML"===e||!!(e in t&&Nn.test(e)&&dt(n));if("spellcheck"===e||"draggable"===e)return!1;if("form"===e&&"string"==typeof n)return!1;if("list"===e&&"INPUT"===t.tagName)return!1;if(Nn.test(e)&&bt(n))return!1;return e in t}(t,e,r,o)?function(t,e,n,r,o,i,s){if("innerHTML"===e||"textContent"===e)return r&&s(r,o,i),void(t[e]=null==n?"":n);if("value"!==e||"PROGRESS"===t.tagName){if(""===n||null==n){const r=typeof t[e];if(""===n&&"boolean"===r)return void(t[e]=!0);if(null==n&&"string"===r)return t[e]="",void t.removeAttribute(e);if("number"===r)return t[e]=0,void t.removeAttribute(e)}try{t[e]=n}catch(t){}}else{t._value=n;const e=null==n?"":n;t.value!==e&&(t.value=e)}}(t,e,r,i,s,u,c):("true-value"===e?t._trueValue=r:"false-value"===e&&(t._falseValue=r),function(t,e,n,r){if(r&&e.startsWith("xlink:"))null==n?t.removeAttributeNS(xn,e.slice(6,e.length)):t.setAttributeNS(xn,e,n);else{const r=it(e);null==n||r&&!1===n?t.removeAttribute(e):t.setAttribute(e,r?"":n)}}(t,e,r,o))}},forcePatchProp:(t,e)=>"value"===e},_n);var Rn=function(t){return new S((function(t){}))},An=function(t){return e=Rn(),function(t){return t.lift(new et(e))};var e},Cn=function(t){return t.pipe(An())},kn=function t(n){return function(r){for(var o in r)n[o]="object"===e(r[o])&&null!==r&&"object"===e(n[o])?t(n[o])(r[o]):r[o];return n}};var Vn=function(t){return"".concat(t,"$")},Mn=function(t){return Object.assign({},t,{subscribe:function(){var e;return Object.assign({},t,{subscription:(e=t.state$).subscribe.apply(e,arguments)})}})},$n=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return"function"==typeof t?t.apply(void 0,n):t};t.deepMergeKeys=kn,t.fromHook=Rn,t.fromRef=function(t){return Cn(new S((function(e){return en(t,(function(t){return e.next(t)}))})))},t.pipeUntil=An,t.refFrom=function(t,n){if("object"===e(t))try{var r=je(n);return L(t).subscribe((function(t){return r.value=t})),r}catch(t){}return Ee(s=t)||Oe(s)?Ie((o=t)[i=n])?o[i]:new Re(o,i):je(t);var o,i,s},t.refsFrom=function(t,e){var n=je(null==e?void 0:e.next),r=je(null==e?void 0:e.error);return L(t).subscribe({next:function(t){return n.value=t},error:function(t){return r.value=t}}),{next:n,error:r}},t.syncRef=function(t,e,n){var r=e.to,o=e.from;if(r&&o)return pn({get:function(){return r(t.value)},set:function(e){return t.value=o(e)}});var i=je(null!=n?n:t.value);return r?en(t,(function(t){return i.value=r(t)})):o&&en(i,(function(e){return t.value=o(e)})),i},t.untilUnmounted=Cn,t.useRxState=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:kn;return function(r,o){var i,s=we($n(t)),u=Q((function(t,n){var r=$n(n,t);return(k(r)?r:C(r)).pipe(V(e(t)))}),s),c={},a={},f=function(t){var e=new P;c[t]=function(){return e.next(r[t].apply(r,arguments))},a[Vn(t)]=e.pipe(u)};for(var l in r)f(l);var h=Z.apply(void 0,n(Object.values(a)));return Mn({actions:c,state:Se(s),state$:Cn(null!==(i=null==o?void 0:o(h,r,s,a).pipe(u))&&void 0!==i?i:h),actions$:a})}},Object.defineProperty(t,"__esModule",{value:!0})}));
//# sourceMappingURL=umd.js.map
{
"name": "vuse-rx",
"version": "0.10.0-rc.10",
"version": "0.10.0-rc.11",
"sideEffects": false,

@@ -5,0 +5,0 @@ "description": "First-class rxjs support for Vue 3",

@@ -7,3 +7,2 @@ import type { Observable } from 'rxjs';

import { reactive, readonly } from 'vue';
import { isObject } from '@vue/shared';
import { untilUnmounted } from './hooks/until';

@@ -23,4 +22,7 @@

for (const key in curr) {
prev[key] = isObject(curr[key]) && isObject(prev[key])
? deepMergeKeys(prev[key])(curr[key])
prev[key] = (
typeof curr[key] === 'object'
&& curr !== null
&& typeof prev[key] === 'object'
) ? deepMergeKeys(prev[key])(curr[key])
: curr[key] as any;

@@ -27,0 +29,0 @@ }

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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