Files
cattleData/admin-system/node_modules/@vue/reactivity/dist/reactivity.esm-browser.prod.js

6 lines
19 KiB
JavaScript

/**
* @vue/reactivity v3.5.25
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let e,t,i,s,r;let n={},l=()=>{},o=Object.assign,a=Object.prototype.hasOwnProperty,u=Array.isArray,c=e=>"symbol"==typeof e,h=e=>null!==e&&"object"==typeof e,f=Object.prototype.toString,p=e=>"string"==typeof e&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e;class _{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=e,!t&&e&&(this.index=(e.scopes||(e.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){let e,t;if(this._isPaused=!0,this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].pause();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){let e,t;if(this._isPaused=!1,this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].resume();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].resume()}}run(t){if(this._active){let i=e;try{return e=this,t()}finally{e=i}}}on(){1==++this._on&&(this.prevScope=e,e=this)}off(){this._on>0&&0==--this._on&&(e=this.prevScope,this.prevScope=void 0)}stop(e){if(this._active){let t,i;for(t=0,this._active=!1,i=this.effects.length;t<i;t++)this.effects[t].stop();for(t=0,this.effects.length=0,i=this.cleanups.length;t<i;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){for(t=0,i=this.scopes.length;t<i;t++)this.scopes[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){let e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0}}}function d(e){return new _(e)}function v(){return e}function g(t,i=!1){e&&e.cleanups.push(t)}let y={ACTIVE:1,1:"ACTIVE",RUNNING:2,2:"RUNNING",TRACKING:4,4:"TRACKING",NOTIFIED:8,8:"NOTIFIED",DIRTY:16,16:"DIRTY",ALLOW_RECURSE:32,32:"ALLOW_RECURSE",PAUSED:64,64:"PAUSED",EVALUATED:128,128:"EVALUATED"},b=new WeakSet;class w{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,e&&e.active&&e.effects.push(this)}pause(){this.flags|=64}resume(){64&this.flags&&(this.flags&=-65,b.has(this)&&(b.delete(this),this.trigger()))}notify(){(!(2&this.flags)||32&this.flags)&&(8&this.flags||S(this))}run(){if(!(1&this.flags))return this.fn();this.flags|=2,N(this),x(this);let e=t,i=j;t=this,j=!0;try{return this.fn()}finally{k(this),t=e,j=i,this.flags&=-3}}stop(){if(1&this.flags){for(let e=this.deps;e;e=e.nextDep)A(e);this.deps=this.depsTail=void 0,N(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){64&this.flags?b.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){T(this)&&this.run()}get dirty(){return T(this)}}let R=0;function S(e,t=!1){if(e.flags|=8,t){e.next=s,s=e;return}e.next=i,i=e}function E(){let e;if(!(--R>0)){if(s){let e=s;for(s=void 0;e;){let t=e.next;e.next=void 0,e.flags&=-9,e=t}}for(;i;){let t=i;for(i=void 0;t;){let i=t.next;if(t.next=void 0,t.flags&=-9,1&t.flags)try{t.trigger()}catch(t){e||(e=t)}t=i}}if(e)throw e}}function x(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function k(e){let t,i=e.depsTail,s=i;for(;s;){let e=s.prevDep;-1===s.version?(s===i&&(i=e),A(s),function(e){let{prevDep:t,nextDep:i}=e;t&&(t.nextDep=i,e.prevDep=void 0),i&&(i.prevDep=t,e.nextDep=void 0)}(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=e}e.deps=t,e.depsTail=i}function T(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(m(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function m(e){if(4&e.flags&&!(16&e.flags)||(e.flags&=-17,e.globalVersion===M)||(e.globalVersion=M,!e.isSSR&&128&e.flags&&(!e.deps&&!e._dirty||!T(e))))return;e.flags|=2;let i=e.dep,s=t,r=j;t=e,j=!0;try{let t;x(e);let s=e.fn(e._value);(0===i.version||(t=e._value,!Object.is(s,t)))&&(e.flags|=128,e._value=s,i.version++)}catch(e){throw i.version++,e}finally{t=s,j=r,k(e),e.flags&=-3}}function A(e,t=!1){let{dep:i,prevSub:s,nextSub:r}=e;if(s&&(s.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=s,e.nextSub=void 0),i.subs===e&&(i.subs=s,!s&&i.computed)){i.computed.flags&=-5;for(let e=i.computed.deps;e;e=e.nextDep)A(e,!0)}t||--i.sc||!i.map||i.map.delete(i.key)}function O(e,t){e.effect instanceof w&&(e=e.effect.fn);let i=new w(e);t&&o(i,t);try{i.run()}catch(e){throw i.stop(),e}let s=i.run.bind(i);return s.effect=i,s}function D(e){e.effect.stop()}let j=!0,I=[];function L(){I.push(j),j=!1}function P(){I.push(j),j=!0}function C(){let e=I.pop();j=void 0===e||e}function W(e,i=!1){t instanceof w&&(t.cleanup=e)}function N(e){let{cleanup:i}=e;if(e.cleanup=void 0,i){let e=t;t=void 0;try{i()}finally{t=e}}}let M=0;class V{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class K{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!t||!j||t===this.computed)return;let i=this.activeLink;if(void 0===i||i.sub!==t)i=this.activeLink=new V(t,this),t.deps?(i.prevDep=t.depsTail,t.depsTail.nextDep=i,t.depsTail=i):t.deps=t.depsTail=i,function e(t){if(t.dep.sc++,4&t.sub.flags){let i=t.dep.computed;if(i&&!t.dep.subs){i.flags|=20;for(let t=i.deps;t;t=t.nextDep)e(t)}let s=t.dep.subs;s!==t&&(t.prevSub=s,s&&(s.nextSub=t)),t.dep.subs=t}}(i);else if(-1===i.version&&(i.version=this.version,i.nextDep)){let e=i.nextDep;e.prevDep=i.prevDep,i.prevDep&&(i.prevDep.nextDep=e),i.prevDep=t.depsTail,i.nextDep=void 0,t.depsTail.nextDep=i,t.depsTail=i,t.deps===i&&(t.deps=e)}return i}trigger(e){this.version++,M++,this.notify(e)}notify(e){R++;try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{E()}}}let U=new WeakMap,H=Symbol(""),Y=Symbol(""),G=Symbol("");function F(e,i,s){if(j&&t){let t=U.get(e);t||U.set(e,t=new Map);let i=t.get(s);i||(t.set(s,i=new K),i.map=t,i.key=s),i.track()}}function z(e,t,i,s,r,n){let l=U.get(e);if(!l)return void M++;let o=e=>{e&&e.trigger()};if(R++,"clear"===t)l.forEach(o);else{let r=u(e),n=r&&p(i);if(r&&"length"===i){let e=Number(s);l.forEach((t,i)=>{("length"===i||i===G||!c(i)&&i>=e)&&o(t)})}else switch((void 0!==i||l.has(void 0))&&o(l.get(i)),n&&o(l.get(G)),t){case"add":if(r)n&&o(l.get("length"));else{let t;o(l.get(H));"[object Map]"===(t=e,f.call(t))&&o(l.get(Y))}break;case"delete":if(!r){let t;o(l.get(H));"[object Map]"===(t=e,f.call(t))&&o(l.get(Y))}break;case"set":let a;"[object Map]"===(a=e,f.call(a))&&o(l.get(H))}}E()}function B(e){let t=eL(e);return t===e?t:(F(t,"iterate",G),ej(e)?t:t.map(eC))}function q(e){return F(e=eL(e),"iterate",G),e}function J(e,t){return eD(e)?eO(e)?eW(eC(t)):eW(t):eC(t)}let Q={__proto__:null,[Symbol.iterator](){return X(this,Symbol.iterator,e=>J(this,e))},concat(...e){return B(this).concat(...e.map(e=>u(e)?B(e):e))},entries(){return X(this,"entries",e=>(e[1]=J(this,e[1]),e))},every(e,t){return $(this,"every",e,t,void 0,arguments)},filter(e,t){return $(this,"filter",e,t,e=>e.map(e=>J(this,e)),arguments)},find(e,t){return $(this,"find",e,t,e=>J(this,e),arguments)},findIndex(e,t){return $(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return $(this,"findLast",e,t,e=>J(this,e),arguments)},findLastIndex(e,t){return $(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return $(this,"forEach",e,t,void 0,arguments)},includes(...e){return et(this,"includes",e)},indexOf(...e){return et(this,"indexOf",e)},join(e){return B(this).join(e)},lastIndexOf(...e){return et(this,"lastIndexOf",e)},map(e,t){return $(this,"map",e,t,void 0,arguments)},pop(){return ei(this,"pop")},push(...e){return ei(this,"push",e)},reduce(e,...t){return ee(this,"reduce",e,t)},reduceRight(e,...t){return ee(this,"reduceRight",e,t)},shift(){return ei(this,"shift")},some(e,t){return $(this,"some",e,t,void 0,arguments)},splice(...e){return ei(this,"splice",e)},toReversed(){return B(this).toReversed()},toSorted(e){return B(this).toSorted(e)},toSpliced(...e){return B(this).toSpliced(...e)},unshift(...e){return ei(this,"unshift",e)},values(){return X(this,"values",e=>J(this,e))}};function X(e,t,i){let s=q(e),r=s[t]();return s===e||ej(e)||(r._next=r.next,r.next=()=>{let e=r._next();return e.done||(e.value=i(e.value)),e}),r}let Z=Array.prototype;function $(e,t,i,s,r,n){let l=q(e),o=l!==e&&!ej(e),a=l[t];if(a!==Z[t]){let t=a.apply(e,n);return o?eC(t):t}let u=i;l!==e&&(o?u=function(t,s){return i.call(this,J(e,t),s,e)}:i.length>2&&(u=function(t,s){return i.call(this,t,s,e)}));let c=a.call(l,u,s);return o&&r?r(c):c}function ee(e,t,i,s){let r=q(e),n=i;return r!==e&&(ej(e)?i.length>3&&(n=function(t,s,r){return i.call(this,t,s,r,e)}):n=function(t,s,r){return i.call(this,t,J(e,s),r,e)}),r[t](n,...s)}function et(e,t,i){let s=eL(e);F(s,"iterate",G);let r=s[t](...i);return(-1===r||!1===r)&&eI(i[0])?(i[0]=eL(i[0]),s[t](...i)):r}function ei(e,t,i=[]){L(),R++;let s=eL(e)[t].apply(e,i);return E(),C(),s}let es=function(e){let t=Object.create(null);for(let i of e.split(","))t[i]=1;return e=>e in t}("__proto__,__v_isRef,__isVue"),er=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(c));function en(e){c(e)||(e=String(e));let t=eL(this);return F(t,"has",e),t.hasOwnProperty(e)}class el{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,i){if("__v_skip"===t)return e.__v_skip;let s=this._isReadonly,r=this._isShallow;if("__v_isReactive"===t)return!s;if("__v_isReadonly"===t)return s;if("__v_isShallow"===t)return r;if("__v_raw"===t)return i===(s?r?eE:eS:r?eR:ew).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(i)?e:void 0;let n=u(e);if(!s){let e;if(n&&(e=Q[t]))return e;if("hasOwnProperty"===t)return en}let l=Reflect.get(e,t,eN(e)?e:i);if((c(t)?er.has(t):es(t))||(s||F(e,"get",t),r))return l;if(eN(l)){let e=n&&p(t)?l:l.value;return s&&h(e)?eT(e):e}return h(l)?s?eT(l):ex(l):l}}class eo extends el{constructor(e=!1){super(!1,e)}set(e,t,i,s){let r=e[t],n=u(e)&&p(t);if(!this._isShallow){let e=eD(r);if(ej(i)||eD(i)||(r=eL(r),i=eL(i)),!n&&eN(r)&&!eN(i))if(e)return!0;else return r.value=i,!0}let l=n?Number(t)<e.length:a.call(e,t),o=Reflect.set(e,t,i,eN(e)?e:s);return e===eL(s)&&(l?Object.is(i,r)||z(e,"set",t,i):z(e,"add",t,i)),o}deleteProperty(e,t){let i=a.call(e,t);e[t];let s=Reflect.deleteProperty(e,t);return s&&i&&z(e,"delete",t,void 0),s}has(e,t){let i=Reflect.has(e,t);return c(t)&&er.has(t)||F(e,"has",t),i}ownKeys(e){return F(e,"iterate",u(e)?"length":H),Reflect.ownKeys(e)}}class ea extends el{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}let eu=new eo,ec=new ea,eh=new eo(!0),ef=new ea(!0),ep=e=>e;function e_(e){return function(){return"delete"!==e&&("clear"===e?void 0:this)}}function ed(e,t){let i,s=(o(i={get(i){let s=this.__v_raw,r=eL(s),n=eL(i);e||(Object.is(i,n)||F(r,"get",i),F(r,"get",n));let{has:l}=Reflect.getPrototypeOf(r),o=t?ep:e?eW:eC;return l.call(r,i)?o(s.get(i)):l.call(r,n)?o(s.get(n)):void(s!==r&&s.get(i))},get size(){let t=this.__v_raw;return e||F(eL(t),"iterate",H),t.size},has(t){let i=this.__v_raw,s=eL(i),r=eL(t);return e||(Object.is(t,r)||F(s,"has",t),F(s,"has",r)),t===r?i.has(t):i.has(t)||i.has(r)},forEach(i,s){let r=this,n=r.__v_raw,l=eL(n),o=t?ep:e?eW:eC;return e||F(l,"iterate",H),n.forEach((e,t)=>i.call(s,o(e),o(t),r))}},e?{add:e_("add"),set:e_("set"),delete:e_("delete"),clear:e_("clear")}:{add(e){t||ej(e)||eD(e)||(e=eL(e));let i=eL(this);return Reflect.getPrototypeOf(i).has.call(i,e)||(i.add(e),z(i,"add",e,e)),this},set(e,i){t||ej(i)||eD(i)||(i=eL(i));let s=eL(this),{has:r,get:n}=Reflect.getPrototypeOf(s),l=r.call(s,e);l||(e=eL(e),l=r.call(s,e));let o=n.call(s,e);return(s.set(e,i),l)?Object.is(i,o)||z(s,"set",e,i):z(s,"add",e,i),this},delete(e){let t=eL(this),{has:i,get:s}=Reflect.getPrototypeOf(t),r=i.call(t,e);r||(e=eL(e),r=i.call(t,e)),s&&s.call(t,e);let n=t.delete(e);return r&&z(t,"delete",e,void 0),n},clear(){let e=eL(this),t=0!==e.size,i=e.clear();return t&&z(e,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(s=>{i[s]=function(...i){let r,n=this.__v_raw,l=eL(n),o="[object Map]"===(r=l,f.call(r)),a="entries"===s||s===Symbol.iterator&&o,u=n[s](...i),c=t?ep:e?eW:eC;return e||F(l,"iterate","keys"===s&&o?Y:H),{next(){let{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:a?[c(e[0]),c(e[1])]:c(e),done:t}},[Symbol.iterator](){return this}}}}),i);return(t,i,r)=>"__v_isReactive"===i?!e:"__v_isReadonly"===i?e:"__v_raw"===i?t:Reflect.get(a.call(s,i)&&i in t?s:t,i,r)}let ev={get:ed(!1,!1)},eg={get:ed(!1,!0)},ey={get:ed(!0,!1)},eb={get:ed(!0,!0)},ew=new WeakMap,eR=new WeakMap,eS=new WeakMap,eE=new WeakMap;function ex(e){return eD(e)?e:eA(e,!1,eu,ev,ew)}function ek(e){return eA(e,!1,eh,eg,eR)}function eT(e){return eA(e,!0,ec,ey,eS)}function em(e){return eA(e,!0,ef,eb,eE)}function eA(e,t,i,s,r){var n;let l;if(!h(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;let o=(n=e).__v_skip||!Object.isExtensible(n)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((l=n,f.call(l)).slice(8,-1));if(0===o)return e;let a=r.get(e);if(a)return a;let u=new Proxy(e,2===o?s:i);return r.set(e,u),u}function eO(e){return eD(e)?eO(e.__v_raw):!!(e&&e.__v_isReactive)}function eD(e){return!!(e&&e.__v_isReadonly)}function ej(e){return!!(e&&e.__v_isShallow)}function eI(e){return!!e&&!!e.__v_raw}function eL(e){let t=e&&e.__v_raw;return t?eL(t):e}function eP(e){return!a.call(e,"__v_skip")&&Object.isExtensible(e)&&((e,t,i,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:i})})(e,"__v_skip",!0),e}let eC=e=>h(e)?ex(e):e,eW=e=>h(e)?eT(e):e;function eN(e){return!!e&&!0===e.__v_isRef}function eM(e){return eK(e,!1)}function eV(e){return eK(e,!0)}function eK(e,t){return eN(e)?e:new eU(e,t)}class eU{constructor(e,t){this.dep=new K,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:eL(e),this._value=t?e:eC(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){let t=this._rawValue,i=this.__v_isShallow||ej(e)||eD(e);Object.is(e=i?e:eL(e),t)||(this._rawValue=e,this._value=i?e:eC(e),this.dep.trigger())}}function eH(e){e.dep&&e.dep.trigger()}function eY(e){return eN(e)?e.value:e}function eG(e){return"function"==typeof e?e():eY(e)}let eF={get:(e,t,i)=>"__v_raw"===t?e:eY(Reflect.get(e,t,i)),set:(e,t,i,s)=>{let r=e[t];return eN(r)&&!eN(i)?(r.value=i,!0):Reflect.set(e,t,i,s)}};function ez(e){return eO(e)?e:new Proxy(e,eF)}class eB{constructor(e){this.__v_isRef=!0,this._value=void 0;let t=this.dep=new K,{get:i,set:s}=e(t.track.bind(t),t.trigger.bind(t));this._get=i,this._set=s}get value(){return this._value=this._get()}set value(e){this._set(e)}}function eq(e){return new eB(e)}function eJ(e){let t=u(e)?Array(e.length):{};for(let i in e)t[i]=new eQ(e,i,void 0);return t}class eQ{constructor(e,t,i){this._object=e,this._key=t,this._defaultValue=i,this.__v_isRef=!0,this._value=void 0,this._raw=eL(e);let s=!0,r=e;if(!u(e)||!p(String(t)))do s=!eI(r)||ej(r);while(s&&(r=r.__v_raw));this._shallow=s}get value(){let e=this._object[this._key];return this._shallow&&(e=eY(e)),this._value=void 0===e?this._defaultValue:e}set value(e){if(this._shallow&&eN(this._raw[this._key])){let t=this._object[this._key];if(eN(t)){t.value=e;return}}this._object[this._key]=e}get dep(){var e,t;let i;return e=this._raw,t=this._key,(i=U.get(e))&&i.get(t)}}class eX{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function eZ(e,t,i){if(eN(e))return e;if("function"==typeof e)return new eX(e);if(!h(e)||!(arguments.length>1))return eM(e);return new eQ(e,t,i)}class e${constructor(e,t,i){this.fn=e,this.setter=t,this._value=void 0,this.dep=new K(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=M-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=i}notify(){if(this.flags|=16,!(8&this.flags)&&t!==this)return S(this,!0),!0}get value(){let e=this.dep.track();return m(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function e0(e,t,i=!1){let s,r;return"function"==typeof e?s=e:(s=e.get,r=e.set),new e$(s,r,i)}let e1={GET:"get",HAS:"has",ITERATE:"iterate"},e2={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},e4={SKIP:"__v_skip",IS_REACTIVE:"__v_isReactive",IS_READONLY:"__v_isReadonly",IS_SHALLOW:"__v_isShallow",RAW:"__v_raw",IS_REF:"__v_isRef"},e6={WATCH_GETTER:2,2:"WATCH_GETTER",WATCH_CALLBACK:3,3:"WATCH_CALLBACK",WATCH_CLEANUP:4,4:"WATCH_CLEANUP"},e3={},e8=new WeakMap;function e5(){return r}function e9(e,t=!1,i=r){if(i){let t=e8.get(i);t||e8.set(i,t=[]),t.push(e)}}function e7(e,t,i=n){let s,o,a,c,{immediate:h,deep:f,once:p,scheduler:_,augmentJob:d,call:g}=i,y=e=>f?e:ej(e)||!1===f||0===f?te(e,1):te(e),b=!1,R=!1;if(eN(e)?(o=()=>e.value,b=ej(e)):eO(e)?(o=()=>y(e),b=!0):u(e)?(R=!0,b=e.some(e=>eO(e)||ej(e)),o=()=>e.map(e=>eN(e)?e.value:eO(e)?y(e):"function"==typeof e?g?g(e,2):e():void 0)):o="function"==typeof e?t?g?()=>g(e,2):e:()=>{if(a){L();try{a()}finally{C()}}let t=r;r=s;try{return g?g(e,3,[c]):e(c)}finally{r=t}}:l,t&&f){let e=o,t=!0===f?1/0:f;o=()=>te(e(),t)}let S=v(),E=()=>{var e,t;let i;s.stop(),S&&S.active&&(e=S.effects,t=s,(i=e.indexOf(t))>-1&&e.splice(i,1))};if(p&&t){let e=t;t=(...t)=>{e(...t),E()}}let x=R?Array(e.length).fill(e3):e3,k=e=>{if(1&s.flags&&(s.dirty||e))if(t){let e=s.run();if(f||b||(R?e.some((e,t)=>!Object.is(e,x[t])):!Object.is(e,x))){a&&a();let i=r;r=s;try{let i=[e,x===e3?void 0:R&&x[0]===e3?[]:x,c];x=e,g?g(t,3,i):t(...i)}finally{r=i}}}else s.run()};return d&&d(k),(s=new w(o)).scheduler=_?()=>_(k,!1):k,c=e=>e9(e,!1,s),a=s.onStop=()=>{let e=e8.get(s);if(e){if(g)g(e,4);else for(let t of e)t();e8.delete(s)}},t?h?k(!0):x=s.run():_?_(k.bind(null,!0),!0):s.run(),E.pause=s.pause.bind(s),E.resume=s.resume.bind(s),E.stop=E,E}function te(e,t=1/0,i){if(t<=0||!h(e)||e.__v_skip||((i=i||new Map).get(e)||0)>=t)return e;if(i.set(e,t),t--,eN(e))te(e.value,t,i);else if(u(e))for(let s=0;s<e.length;s++)te(e[s],t,i);else{let s,r;if("[object Set]"===(s=e,f.call(s))||"[object Map]"===(r=e,f.call(r)))e.forEach(e=>{te(e,t,i)});else{let s;if("[object Object]"===(s=e,f.call(s))){for(let s in e)te(e[s],t,i);for(let s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&te(e[s],t,i)}}}return e}export{G as ARRAY_ITERATE_KEY,y as EffectFlags,_ as EffectScope,H as ITERATE_KEY,Y as MAP_KEY_ITERATE_KEY,w as ReactiveEffect,e4 as ReactiveFlags,e1 as TrackOpTypes,e2 as TriggerOpTypes,e6 as WatchErrorCodes,e0 as computed,eq as customRef,O as effect,d as effectScope,P as enableTracking,v as getCurrentScope,e5 as getCurrentWatcher,eI as isProxy,eO as isReactive,eD as isReadonly,eN as isRef,ej as isShallow,eP as markRaw,W as onEffectCleanup,g as onScopeDispose,e9 as onWatcherCleanup,L as pauseTracking,ez as proxyRefs,ex as reactive,B as reactiveReadArray,eT as readonly,eM as ref,C as resetTracking,ek as shallowReactive,q as shallowReadArray,em as shallowReadonly,eV as shallowRef,D as stop,eL as toRaw,eC as toReactive,eW as toReadonly,eZ as toRef,eJ as toRefs,eG as toValue,F as track,te as traverse,z as trigger,eH as triggerRef,eY as unref,e7 as watch};