mirror of
https://github.com/XiaoDaiGua-Ray/ray-template.git
synced 2025-04-06 03:57:49 +08:00
6 lines
3.5 KiB
JavaScript
6 lines
3.5 KiB
JavaScript
import{i as x,a as k}from"./@vue_reactivity@3.4.21-8_tu8c_o.js";import{a as g,b as m,c as S,g as R,E as O,n as N,d as b,e as h,f as p,h as A}from"./@vue_shared@3.4.21-DCcVmNGw.js";/**
|
|
* @vue/runtime-core v3.4.21
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
* @license MIT
|
|
**/let f=null,z=null;const B=Symbol.for("v-ndc"),M=t=>t.__isSuspense,j=t=>t.__isTeleport,y=Symbol.for("v-fgt"),U=Symbol.for("v-txt"),G=Symbol.for("v-cmt"),K=Symbol.for("v-stc"),r=[];let u=null;function X(t=!1){r.push(u=t?null:[])}function L(){r.pop(),u=r[r.length-1]||null}function Y(t){return t.dynamicChildren=u||O,L(),u&&u.push(t),t}function Z(t,s,n,c,l,e){return Y(T(t,s,n,c,l,e,!0))}function D(t){return t?t.__v_isVNode===!0:!1}const E="__vInternal",I=({key:t})=>t??null,_=({ref:t,ref_key:s,ref_for:n})=>(typeof t=="number"&&(t=""+t),t!=null?g(t)||x(t)||S(t)?{i:f,r:t,k:s,f:!!n}:t:null);function T(t,s=null,n=null,c=0,l=null,e=t===y?0:1,i=!1,a=!1){const o={__v_isVNode:!0,__v_skip:!0,type:t,props:s,key:s&&I(s),ref:s&&_(s),scopeId:z,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:e,patchFlag:c,dynamicProps:l,dynamicChildren:null,appContext:null,ctx:f};return a?(F(o,n),e&128&&t.normalize(o)):n&&(o.shapeFlag|=g(n)?8:16),!i&&u&&(o.patchFlag>0||e&6)&&o.patchFlag!==32&&u.push(o),o}const V=P;function P(t,s=null,n=null,c=0,l=null,e=!1){if((!t||t===B)&&(t=G),D(t)){const a=C(t,s,!0);return n&&F(a,n),!e&&u&&(a.shapeFlag&6?u[u.indexOf(t)]=a:u.push(a)),a.patchFlag|=-2,a}if(J(t)&&(t=t.__vccOpts),s){s=q(s);let{class:a,style:o}=s;a&&!g(a)&&(s.class=N(a)),b(o)&&(k(o)&&!m(o)&&(o=h({},o)),s.style=p(o))}const i=g(t)?1:M(t)?128:j(t)?64:b(t)?4:S(t)?2:0;return T(t,s,n,c,l,i,e,!0)}function q(t){return t?k(t)||E in t?h({},t):t:null}function C(t,s,n=!1){const{props:c,ref:l,patchFlag:e,children:i}=t,a=s?H(c||{},s):c;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:a,key:a&&I(a),ref:s&&s.ref?n&&l?m(l)?l.concat(_(s)):[l,_(s)]:_(s):l,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:i,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:s&&t.type!==y?e===-1?16:e|16:e,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&C(t.ssContent),ssFallback:t.ssFallback&&C(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce}}function w(t=" ",s=0){return V(U,null,t,s)}function $(t,s){const n=V(K,null,t);return n.staticCount=s,n}function F(t,s){let n=0;const{shapeFlag:c}=t;if(s==null)s=null;else if(m(s))n=16;else if(typeof s=="object")if(c&65){const l=s.default;l&&(l._c&&(l._d=!1),F(t,l()),l._c&&(l._d=!0));return}else{n=32;const l=s._;!l&&!(E in s)?s._ctx=f:l===3&&f&&(f.slots._===1?s._=1:(s._=2,t.patchFlag|=1024))}else S(s)?(s={default:s,_ctx:f},n=32):(s=String(s),c&64?(n=16,s=[w(s)]):n=8);t.children=s,t.shapeFlag|=n}function H(...t){const s={};for(let n=0;n<t.length;n++){const c=t[n];for(const l in c)if(l==="class")s.class!==c.class&&(s.class=N([s.class,c.class]));else if(l==="style")s.style=p([s.style,c.style]);else if(A(l)){const e=s[l],i=c[l];i&&e!==i&&!(m(e)&&e.includes(i))&&(s[l]=e?[].concat(e,i):i)}else l!==""&&(s[l]=c[l])}return s}{const t=R(),s=(n,c)=>{let l;return(l=t[n])||(l=t[n]=[]),l.push(c),e=>{l.length>1?l.forEach(i=>i(e)):l[0](e)}};s("__VUE_INSTANCE_SETTERS__",n=>n),s("__VUE_SSR_SETTERS__",n=>n)}function J(t){return S(t)&&"__vccOpts"in t}export{$ as a,Z as c,X as o};
|