1
0
mirror of https://gitee.com/coder-xiaomo/notes synced 2025-01-12 04:28:15 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee
notes/docs/.vuepress/dist/assets/js/567.6fcf9384.js

2 lines
120 KiB
JavaScript
Raw Normal View History

2021-12-26 20:44:44 +08:00
/*! For license information please see 567.6fcf9384.js.LICENSE.txt */
(self.webpackChunkvuepress=self.webpackChunkvuepress||[]).push([[567],{2262:(e,t,n)=>{"use strict";n.d(t,{Bj:()=>i,qq:()=>b,Fl:()=>Ne,nZ:()=>l,X3:()=>Oe,PG:()=>be,dq:()=>Pe,Xl:()=>ke,EB:()=>a,Jd:()=>k,WL:()=>Fe,qj:()=>me,OT:()=>ge,iH:()=>xe,lk:()=>S,Um:()=>ve,XI:()=>Ie,IU:()=>_e,BK:()=>ze,j:()=>E,X$:()=>P,SU:()=>Te});var o=n(3577);let r;const s=[];class i{constructor(e=!1){this.active=!0,this.effects=[],this.cleanups=[],!e&&r&&(this.parent=r,this.index=(r.scopes||(r.scopes=[])).push(this)-1)}run(e){if(this.active)try{return this.on(),e()}finally{this.off()}}on(){this.active&&(s.push(this),r=this)}off(){this.active&&(s.pop(),r=s[s.length-1])}stop(e){if(this.active){if(this.effects.forEach((e=>e.stop())),this.cleanups.forEach((e=>e())),this.scopes&&this.scopes.forEach((e=>e.stop(!0))),this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.active=!1}}}function l(){return r}function a(e){r&&r.cleanups.push(e)}const c=e=>{const t=new Set(e);return t.w=0,t.n=0,t},u=e=>(e.w&h)>0,p=e=>(e.n&h)>0,d=new WeakMap;let f=0,h=1;const m=[];let v;const g=Symbol(""),y=Symbol("");class b{constructor(e,t=null,n){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],function(e,t){(t=t||r)&&t.active&&t.effects.push(e)}(this,n)}run(){if(!this.active)return this.fn();if(!m.includes(this))try{return m.push(v=this),_.push(O),O=!0,h=1<<++f,f<=30?(({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=h})(this):w(this),this.fn()}finally{f<=30&&(e=>{const{deps:t}=e;if(t.length){let n=0;for(let o=0;o<t.length;o++){const r=t[o];u(r)&&!p(r)?r.delete(e):t[n++]=r,r.w&=~h,r.n&=~h}t.length=n}})(this),h=1<<--f,S(),m.pop();const e=m.length;v=e>0?m[e-1]:void 0}}stop(){this.active&&(w(this),this.onStop&&this.onStop(),this.active=!1)}}function w(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let O=!0;const _=[];function k(){_.push(O),O=!1}function S(){const e=_.pop();O=void 0===e||e}function E(e,t,n){if(!C())return;let o=d.get(e);o||d.set(e,o=new Map);let r=o.get(n);r||o.set(n,r=c()),j(r)}function C(){return O&&void 0!==v}function j(e,t){let n=!1;f<=30?p(e)||(e.n|=h,n=!u(e)):n=!e.has(v),n&&(e.add(v),v.deps.push(e))}function P(e,t,n,r,s,i){const l=d.get(e);if(!l)return;let a=[];if("clear"===t)a=[...l.values()];else if("length"===n&&(0,o.kJ)(e))l.forEach(((e,t)=>{("length"===t||t>=r)&&a.push(e)}));else switch(void 0!==n&&a.push(l.get(n)),t){case"add":(0,o.kJ)(e)?(0,o.S0)(n)&&a.push(l.get("length")):(a.push(l.get(g)),(0,o._N)(e)&&a.push(l.get(y)));break;case"delete":(0,o.kJ)(e)||(a.push(l.get(g)),(0,o._N)(e)&&a.push(l.get(y)));break;case"set":(0,o._N)(e)&&a.push(l.get(g))}if(1===a.length)a[0]&&x(a[0]);else{const e=[];for(const t of a)t&&e.push(...t);x(c(e))}}function x(e,t){for(const t of(0,o.kJ)(e)?e:[...e])(t!==v||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}const I=(0,o.fY)("__proto__,__v_isRef,__isVue"),A=new Set(Object.getOwnPropertyNames(Symbol).map((e=>Symbol[e])).filter(o.yk)),R=H(),T=H(!1,!0),L=H(!0),F=z();function z(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=_e(this);for(let e=0,t=this.length;e<t;e++)E(n,0,e+"");const o=n[t](...e);return-1===o||!1===o?n[t](...e.map(_e)):o}})),["push","pop","shift","unshift","splice"].forEach((t=>{e[t]=function(...e){k();const n=_e(this)[t].apply(this,e);return S(),n}})),e}function H(e=!1,t=!1){return function(n,r,s){if("__v_isReactive"===r)return!e;if("__v_isReadonly"===r)return e;if("__v_raw"===r&&s===(e?t?he:fe:t?de:pe).get(n))return n;const i=(0,o.kJ)(n);if(!e&&i&&(0,o.RI)(F,r))return Reflect.get(F,r,s);const l=Reflect.get(n,r,s);return((0,o.yk)(r)?A.has(r):I(r))?l:(e||E(n,0,r),t?l:Pe(l)?i&&(0,o.S0)(r)?l:l.value:(0,o.Kn)(l)?e?ge(l):me(l):l)}}const $=N(),M=N(!0);function N(e=!1){return function(t,n,r,s){let i=t[n];if(!e&&!we(r)&&(r=_e(r),i=_e(i),!(0,o.kJ)(t)&&Pe(i)&&!Pe(r)))return i.value=r,!0;const l=(0,o.kJ)(t)&&(0,o.S0)(n)?Number(n)<t.length:(0,o.RI)(t,n),a=Reflect.set(t,n,r,s);return t===_e(s)&&(l?(0,o.aU)(r,i)&&P(t,"set",n,r):P(t,"add",n,r)),a