ray-template/js/@vue_reactivity@3.5.12-Bs6EYLxJ.js

6 lines
16 KiB
JavaScript

import{i as B,a as j,h as I,b as Z,e as Yt,t as zt,c as y,E as Bt,d as ht,f as $,g as Ft,j as C,N as Gt,k as Jt,l as Ut,m as qt,r as Qt}from"./@vue_shared@3.5.12--5_uv9t5.js";/**
* @vue/reactivity v3.5.12
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let v;class Xt{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=v,!e&&v&&(this.index=(v.scopes||(v.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,s;if(this.scopes)for(e=0,s=this.scopes.length;e<s;e++)this.scopes[e].pause();for(e=0,s=this.effects.length;e<s;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,s;if(this.scopes)for(e=0,s=this.scopes.length;e<s;e++)this.scopes[e].resume();for(e=0,s=this.effects.length;e<s;e++)this.effects[e].resume()}}run(e){if(this._active){const s=v;try{return v=this,e()}finally{v=s}}}on(){v=this}off(){v=this.parent}stop(e){if(this._active){let s,n;for(s=0,n=this.effects.length;s<n;s++)this.effects[s].stop();for(s=0,n=this.cleanups.length;s<n;s++)this.cleanups[s]();if(this.scopes)for(s=0,n=this.scopes.length;s<n;s++)this.scopes[s].stop(!0);if(!this.detached&&this.parent&&!e){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0,this._active=!1}}}function Me(t){return new Xt(t)}function Zt(){return v}function Pe(t,e=!1){v&&v.cleanups.push(t)}let h;const rt=new WeakSet;class $t{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,v&&v.active&&v.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,rt.has(this)&&(rt.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||St(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,wt(this),mt(this);const e=h,s=b;h=this,b=!0;try{return this.fn()}finally{xt(this),h=e,b=s,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)_t(e);this.deps=this.depsTail=void 0,wt(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?rt.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){ft(this)&&this.run()}get dirty(){return ft(this)}}let bt=0,W,V;function St(t,e=!1){if(t.flags|=8,e){t.next=V,V=t;return}t.next=W,W=t}function pt(){bt++}function dt(){if(--bt>0)return;if(V){let e=V;for(V=void 0;e;){const s=e.next;e.next=void 0,e.flags&=-9,e=s}}let t;for(;W;){let e=W;for(W=void 0;e;){const s=e.next;if(e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(n){t||(t=n)}e=s}}if(t)throw t}function mt(t){for(let e=t.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function xt(t){let e,s=t.depsTail,n=s;for(;n;){const i=n.prevDep;n.version===-1?(n===s&&(s=i),_t(n),kt(n)):e=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=i}t.deps=e,t.depsTail=s}function ft(t){for(let e=t.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(yt(e.dep.computed)||e.dep.version!==e.version))return!0;return!!t._dirty}function yt(t){if(t.flags&4&&!(t.flags&16)||(t.flags&=-17,t.globalVersion===Y))return;t.globalVersion=Y;const e=t.dep;if(t.flags|=2,e.version>0&&!t.isSSR&&t.deps&&!ft(t)){t.flags&=-3;return}const s=h,n=b;h=t,b=!0;try{mt(t);const i=t.fn(t._value);(e.version===0||I(i,t._value))&&(t._value=i,e.version++)}catch(i){throw e.version++,i}finally{h=s,b=n,xt(t),t.flags&=-3}}function _t(t,e=!1){const{dep:s,prevSub:n,nextSub:i}=t;if(n&&(n.nextSub=i,t.prevSub=void 0),i&&(i.prevSub=n,t.nextSub=void 0),s.subs===t&&(s.subs=n,!n&&s.computed)){s.computed.flags&=-5;for(let r=s.computed.deps;r;r=r.nextDep)_t(r,!0)}!e&&!--s.sc&&s.map&&s.map.delete(s.key)}function kt(t){const{prevDep:e,nextDep:s}=t;e&&(e.nextDep=s,t.prevDep=void 0),s&&(s.prevDep=e,t.nextDep=void 0)}let b=!0;const Tt=[];function Dt(){Tt.push(b),b=!1}function It(){const t=Tt.pop();b=t===void 0?!0:t}function wt(t){const{cleanup:e}=t;if(t.cleanup=void 0,e){const s=h;h=void 0;try{e()}finally{h=s}}}let Y=0;class te{constructor(e,s){this.sub=e,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class et{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}track(e){if(!h||!b||h===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==h)s=this.activeLink=new te(h,this),h.deps?(s.prevDep=h.depsTail,h.depsTail.nextDep=s,h.depsTail=s):h.deps=h.depsTail=s,Et(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const n=s.nextDep;n.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=n),s.prevDep=h.depsTail,s.nextDep=void 0,h.depsTail.nextDep=s,h.depsTail=s,h.deps===s&&(h.deps=n)}return s}trigger(e){this.version++,Y++,this.notify(e)}notify(e){pt();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{dt()}}}function Et(t){if(t.dep.sc++,t.sub.flags&4){const e=t.dep.computed;if(e&&!t.dep.subs){e.flags|=20;for(let n=e.deps;n;n=n.nextDep)Et(n)}const s=t.dep.subs;s!==t&&(t.prevSub=s,s&&(s.nextSub=t)),t.dep.subs=t}}const k=new WeakMap,P=Symbol(""),ct=Symbol(""),z=Symbol("");function w(t,e,s){if(b&&h){let n=k.get(t);n||k.set(t,n=new Map);let i=n.get(s);i||(n.set(s,i=new et),i.map=n,i.key=s),i.track()}}function T(t,e,s,n,i,r){const o=k.get(t);if(!o){Y++;return}const a=f=>{f&&f.trigger()};if(pt(),e==="clear")o.forEach(a);else{const f=y(t),d=f&&ht(s);if(f&&s==="length"){const c=Number(n);o.forEach((p,_)=>{(_==="length"||_===z||!B(_)&&_>=c)&&a(p)})}else switch((s!==void 0||o.has(void 0))&&a(o.get(s)),d&&a(o.get(z)),e){case"add":f?d&&a(o.get("length")):(a(o.get(P)),C(t)&&a(o.get(ct)));break;case"delete":f||(a(o.get(P)),C(t)&&a(o.get(ct)));break;case"set":C(t)&&a(o.get(P));break}}dt()}function ee(t,e){const s=k.get(t);return s&&s.get(e)}function L(t){const e=u(t);return e===t?e:(w(e,"iterate",z),S(t)?e:e.map(g))}function vt(t){return w(t=u(t),"iterate",z),t}const se={__proto__:null,[Symbol.iterator](){return ot(this,Symbol.iterator,g)},concat(...t){return L(this).concat(...t.map(e=>y(e)?L(e):e))},entries(){return ot(this,"entries",t=>(t[1]=g(t[1]),t))},every(t,e){return x(this,"every",t,e,void 0,arguments)},filter(t,e){return x(this,"filter",t,e,s=>s.map(g),arguments)},find(t,e){return x(this,"find",t,e,g,arguments)},findIndex(t,e){return x(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return x(this,"findLast",t,e,g,arguments)},findLastIndex(t,e){return x(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return x(this,"forEach",t,e,void 0,arguments)},includes(...t){return at(this,"includes",t)},indexOf(...t){return at(this,"indexOf",t)},join(t){return L(this).join(t)},lastIndexOf(...t){return at(this,"lastIndexOf",t)},map(t,e){return x(this,"map",t,e,void 0,arguments)},pop(){return H(this,"pop")},push(...t){return H(this,"push",t)},reduce(t,...e){return Rt(this,"reduce",t,e)},reduceRight(t,...e){return Rt(this,"reduceRight",t,e)},shift(){return H(this,"shift")},some(t,e){return x(this,"some",t,e,void 0,arguments)},splice(...t){return H(this,"splice",t)},toReversed(){return L(this).toReversed()},toSorted(t){return L(this).toSorted(t)},toSpliced(...t){return L(this).toSpliced(...t)},unshift(...t){return H(this,"unshift",t)},values(){return ot(this,"values",g)}};function ot(t,e,s){const n=vt(t),i=n[e]();return n!==t&&!S(t)&&(i._next=i.next,i.next=()=>{const r=i._next();return r.value&&(r.value=s(r.value)),r}),i}const ie=Array.prototype;function x(t,e,s,n,i,r){const o=vt(t),a=o!==t&&!S(t),f=o[e];if(f!==ie[e]){const p=f.apply(t,r);return a?g(p):p}let d=s;o!==t&&(a?d=function(p,_){return s.call(this,g(p),_,t)}:s.length>2&&(d=function(p,_){return s.call(this,p,_,t)}));const c=f.call(o,d,n);return a&&i?i(c):c}function Rt(t,e,s,n){const i=vt(t);let r=s;return i!==t&&(S(t)?s.length>3&&(r=function(o,a,f){return s.call(this,o,a,f,t)}):r=function(o,a,f){return s.call(this,o,g(a),f,t)}),i[e](r,...n)}function at(t,e,s){const n=u(t);w(n,"iterate",z);const i=n[e](...s);return(i===-1||i===!1)&&we(s[0])?(s[0]=u(s[0]),n[e](...s)):i}function H(t,e,s=[]){Dt(),pt();const n=u(t)[e].apply(t,s);return dt(),It(),n}const ne=qt("__proto__,__v_isRef,__isVue"),Mt=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(B));function re(t){B(t)||(t=String(t));const e=u(this);return w(e,"has",t),e.hasOwnProperty(t)}class Pt{constructor(e=!1,s=!1){this._isReadonly=e,this._isShallow=s}get(e,s,n){const i=this._isReadonly,r=this._isShallow;if(s==="__v_isReactive")return!i;if(s==="__v_isReadonly")return i;if(s==="__v_isShallow")return r;if(s==="__v_raw")return n===(i?r?Ht:Kt:r?jt:Lt).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const o=y(e);if(!i){let f;if(o&&(f=se[s]))return f;if(s==="hasOwnProperty")return re}const a=Reflect.get(e,s,R(e)?e:n);return(B(s)?Mt.has(s):ne(s))||(i||w(e,"get",s),r)?a:R(a)?o&&ht(s)?a:a.value:j(a)?i?Wt(a):Ct(a):a}}class Ot extends Pt{constructor(e=!1){super(!1,e)}set(e,s,n,i){let r=e[s];if(!this._isShallow){const f=O(r);if(!S(n)&&!O(n)&&(r=u(r),n=u(n)),!y(e)&&R(r)&&!R(n))return f?!1:(r.value=n,!0)}const o=y(e)&&ht(s)?Number(s)<e.length:$(e,s),a=Reflect.set(e,s,n,R(e)?e:i);return e===u(i)&&(o?I(n,r)&&T(e,"set",s,n):T(e,"add",s,n)),a}deleteProperty(e,s){const n=$(e,s);e[s];const i=Reflect.deleteProperty(e,s);return i&&n&&T(e,"delete",s,void 0),i}has(e,s){const n=Reflect.has(e,s);return(!B(s)||!Mt.has(s))&&w(e,"has",s),n}ownKeys(e){return w(e,"iterate",y(e)?"length":P),Reflect.ownKeys(e)}}class At extends Pt{constructor(e=!1){super(!0,e)}set(e,s){return!0}deleteProperty(e,s){return!0}}const oe=new Ot,ae=new At,fe=new Ot(!0),ce=new At(!0),lt=t=>t,q=t=>Reflect.getPrototypeOf(t);function le(t,e,s){return function(...n){const i=this.__v_raw,r=u(i),o=C(r),a=t==="entries"||t===Symbol.iterator&&o,f=t==="keys"&&o,d=i[t](...n),c=s?lt:e?ut:g;return!e&&w(r,"iterate",f?ct:P),{next(){const{value:p,done:_}=d.next();return _?{value:p,done:_}:{value:a?[c(p[0]),c(p[1])]:c(p),done:_}},[Symbol.iterator](){return this}}}}function Q(t){return function(...e){return t==="delete"?!1:t==="clear"?void 0:this}}function ue(t,e){const s={get(i){const r=this.__v_raw,o=u(r),a=u(i);t||(I(i,a)&&w(o,"get",i),w(o,"get",a));const{has:f}=q(o),d=e?lt:t?ut:g;if(f.call(o,i))return d(r.get(i));if(f.call(o,a))return d(r.get(a));r!==o&&r.get(i)},get size(){const i=this.__v_raw;return!t&&w(u(i),"iterate",P),Reflect.get(i,"size",i)},has(i){const r=this.__v_raw,o=u(r),a=u(i);return t||(I(i,a)&&w(o,"has",i),w(o,"has",a)),i===a?r.has(i):r.has(i)||r.has(a)},forEach(i,r){const o=this,a=o.__v_raw,f=u(a),d=e?lt:t?ut:g;return!t&&w(f,"iterate",P),a.forEach((c,p)=>i.call(r,d(c),d(p),o))}};return Yt(s,t?{add:Q("add"),set:Q("set"),delete:Q("delete"),clear:Q("clear")}:{add(i){!e&&!S(i)&&!O(i)&&(i=u(i));const r=u(this);return q(r).has.call(r,i)||(r.add(i),T(r,"add",i,i)),this},set(i,r){!e&&!S(r)&&!O(r)&&(r=u(r));const o=u(this),{has:a,get:f}=q(o);let d=a.call(o,i);d||(i=u(i),d=a.call(o,i));const c=f.call(o,i);return o.set(i,r),d?I(r,c)&&T(o,"set",i,r):T(o,"add",i,r),this},delete(i){const r=u(this),{has:o,get:a}=q(r);let f=o.call(r,i);f||(i=u(i),f=o.call(r,i)),a&&a.call(r,i);const d=r.delete(i);return f&&T(r,"delete",i,void 0),d},clear(){const i=u(this),r=i.size!==0,o=i.clear();return r&&T(i,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(i=>{s[i]=le(i,t,e)}),s}function st(t,e){const s=ue(t,e);return(n,i,r)=>i==="__v_isReactive"?!t:i==="__v_isReadonly"?t:i==="__v_raw"?n:Reflect.get($(s,i)&&i in n?s:n,i,r)}const he={get:st(!1,!1)},pe={get:st(!1,!0)},de={get:st(!0,!1)},_e={get:st(!0,!0)},Lt=new WeakMap,jt=new WeakMap,Kt=new WeakMap,Ht=new WeakMap;function ve(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ge(t){return t.__v_skip||!Object.isExtensible(t)?0:ve(zt(t))}function Ct(t){return O(t)?t:it(t,!1,oe,he,Lt)}function Oe(t){return it(t,!1,fe,pe,jt)}function Wt(t){return it(t,!0,ae,de,Kt)}function Ae(t){return it(t,!0,ce,_e,Ht)}function it(t,e,s,n,i){if(!j(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const r=i.get(t);if(r)return r;const o=ge(t);if(o===0)return t;const a=new Proxy(t,o===2?n:s);return i.set(t,a),a}function N(t){return O(t)?N(t.__v_raw):!!(t&&t.__v_isReactive)}function O(t){return!!(t&&t.__v_isReadonly)}function S(t){return!!(t&&t.__v_isShallow)}function we(t){return t?!!t.__v_raw:!1}function u(t){const e=t&&t.__v_raw;return e?u(e):t}function Le(t){return!$(t,"__v_skip")&&Object.isExtensible(t)&&Ft(t,"__v_skip",!0),t}const g=t=>j(t)?Ct(t):t,ut=t=>j(t)?Wt(t):t;function R(t){return t?t.__v_isRef===!0:!1}function Re(t){return Vt(t,!1)}function je(t){return Vt(t,!0)}function Vt(t,e){return R(t)?t:new be(t,e)}class be{constructor(e,s){this.dep=new et,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?e:u(e),this._value=s?e:g(e),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(e){const s=this._rawValue,n=this.__v_isShallow||S(e)||O(e);e=n?e:u(e),I(e,s)&&(this._rawValue=e,this._value=n?e:g(e),this.dep.trigger())}}function Se(t){return R(t)?t.value:t}const me={get:(t,e,s)=>e==="__v_raw"?t:Se(Reflect.get(t,e,s)),set:(t,e,s,n)=>{const i=t[e];return R(i)&&!R(s)?(i.value=s,!0):Reflect.set(t,e,s,n)}};function Ke(t){return N(t)?t:new Proxy(t,me)}class xe{constructor(e){this.__v_isRef=!0,this._value=void 0;const s=this.dep=new et,{get:n,set:i}=e(s.track.bind(s),s.trigger.bind(s));this._get=n,this._set=i}get value(){return this._value=this._get()}set value(e){this._set(e)}}function He(t){return new xe(t)}function Ce(t){const e=y(t)?new Array(t.length):{};for(const s in t)e[s]=Nt(t,s);return e}class ye{constructor(e,s,n){this._object=e,this._key=s,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0}get value(){const e=this._object[this._key];return this._value=e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return ee(u(this._object),this._key)}}class Te{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 We(t,e,s){return R(t)?t:Z(t)?new Te(t):j(t)&&arguments.length>1?Nt(t,e,s):Re(t)}function Nt(t,e,s){const n=t[e];return R(n)?n:new ye(t,e,s)}class De{constructor(e,s,n){this.fn=e,this.setter=s,this._value=void 0,this.dep=new et(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Y-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&h!==this)return St(this,!0),!0}get value(){const e=this.dep.track();return yt(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function Ve(t,e,s=!1){let n,i;return Z(t)?n=t:(n=t.get,i=t.set),new De(n,i,s)}const X={},tt=new WeakMap;let M;function Ie(t,e=!1,s=M){if(s){let n=tt.get(s);n||tt.set(s,n=[]),n.push(t)}}function Ne(t,e,s=Bt){const{immediate:n,deep:i,once:r,scheduler:o,augmentJob:a,call:f}=s,d=l=>i?l:S(l)||i===!1||i===0?D(l,1):D(l);let c,p,_,F,G=!1,J=!1;if(R(t)?(p=()=>t.value,G=S(t)):N(t)?(p=()=>d(t),G=!0):y(t)?(J=!0,G=t.some(l=>N(l)||S(l)),p=()=>t.map(l=>{if(R(l))return l.value;if(N(l))return d(l);if(Z(l))return f?f(l,2):l()})):Z(t)?e?p=f?()=>f(t,2):t:p=()=>{if(_){Dt();try{_()}finally{It()}}const l=M;M=c;try{return f?f(t,3,[F]):t(F)}finally{M=l}}:p=Gt,e&&i){const l=p,m=i===!0?1/0:i;p=()=>D(l(),m)}const gt=Zt(),A=()=>{c.stop(),gt&&Qt(gt.effects,c)};if(r&&e){const l=e;e=(...m)=>{l(...m),A()}}let E=J?new Array(t.length).fill(X):X;const K=l=>{if(!(!(c.flags&1)||!c.dirty&&!l))if(e){const m=c.run();if(i||G||(J?m.some((nt,U)=>I(nt,E[U])):I(m,E))){_&&_();const nt=M;M=c;try{const U=[m,E===X?void 0:J&&E[0]===X?[]:E,F];f?f(e,3,U):e(...U),E=m}finally{M=nt}}}else c.run()};return a&&a(K),c=new $t(p),c.scheduler=o?()=>o(K,!1):K,F=l=>Ie(l,!1,c),_=c.onStop=()=>{const l=tt.get(c);if(l){if(f)f(l,4);else for(const m of l)m();tt.delete(c)}},e?n?K(!0):E=c.run():o?o(K.bind(null,!0),!0):c.run(),A.pause=c.pause.bind(c),A.resume=c.resume.bind(c),A.stop=A,A}function D(t,e=1/0,s){if(e<=0||!j(t)||t.__v_skip||(s=s||new Set,s.has(t)))return t;if(s.add(t),e--,R(t))D(t.value,e,s);else if(y(t))for(let n=0;n<t.length;n++)D(t[n],e,s);else if(Jt(t)||C(t))t.forEach(n=>{D(n,e,s)});else if(Ut(t)){for(const n in t)D(t[n],e,s);for(const n of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,n)&&D(t[n],e,s)}return t}export{Xt as E,$t as R,R as a,Dt as b,Ve as c,u as d,Ct as e,w as f,Oe as g,T as h,we as i,Ae as j,Re as k,Wt as l,Le as m,We as n,He as o,Ke as p,Zt as q,It as r,je as s,D as t,Se as u,Pe as v,Ne as w,Ce as x,Me as y,N as z};