ray-template/js/@vue_runtime-dom@3.5.12-BKraWVUW.js

6 lines
11 KiB
JavaScript

import{h as _t,B as Dt,a as It,c as yt,u as $t,o as Ot,F as Rt,g as Ht,s as U,r as j,b as Bt,d as xt,e as Ft}from"./@vue_runtime-core@3.5.12-rIgKm_Vg.js";import{e as D,a as Gt,b as ft,o as N,c as I,A as zt,s as Wt,H as qt,v as ut,D as dt,w as Kt,I as pt,i as Ut,J as jt}from"./@vue_shared@3.5.12--5_uv9t5.js";import{d as Vt}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";/**
* @vue/runtime-dom v3.5.12
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let H;const V=typeof window<"u"&&window.trustedTypes;if(V)try{H=V.createPolicy("vue",{createHTML:t=>t})}catch{}const mt=H?t=>H.createHTML(t):t=>t,Xt="http://www.w3.org/2000/svg",Jt="http://www.w3.org/1998/Math/MathML",g=typeof document<"u"?document:null,X=g&&g.createElement("template"),Zt={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,s)=>{const o=e==="svg"?g.createElementNS(Xt,t):e==="mathml"?g.createElementNS(Jt,t):n?g.createElement(t,{is:n}):g.createElement(t);return t==="select"&&s&&s.multiple!=null&&o.setAttribute("multiple",s.multiple),o},createText:t=>g.createTextNode(t),createComment:t=>g.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>g.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,n,s,o,i){const r=n?n.previousSibling:e.lastChild;if(o&&(o===i||o.nextSibling))for(;e.insertBefore(o.cloneNode(!0),n),!(o===i||!(o=o.nextSibling)););else{X.innerHTML=mt(s==="svg"?`<svg>${t}</svg>`:s==="mathml"?`<math>${t}</math>`:t);const c=X.content;if(s==="svg"||s==="mathml"){const u=c.firstChild;for(;u.firstChild;)c.appendChild(u.firstChild);c.removeChild(u)}e.insertBefore(c,n)}return[r?r.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}},v="transition",w="animation",A=Symbol("_vtc"),ht={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},gt=D({},It,ht),Qt=t=>(t.displayName="Transition",t.props=gt,t),Pe=Qt((t,{slots:e})=>_t(Dt,vt(t),e)),T=(t,e=[])=>{I(t)?t.forEach(n=>n(...e)):t&&t(...e)},J=t=>t?I(t)?t.some(e=>e.length>1):t.length>1:!1;function vt(t){const e={};for(const a in t)a in ht||(e[a]=t[a]);if(t.css===!1)return e;const{name:n="v",type:s,duration:o,enterFromClass:i=`${n}-enter-from`,enterActiveClass:r=`${n}-enter-active`,enterToClass:c=`${n}-enter-to`,appearFromClass:u=i,appearActiveClass:l=r,appearToClass:f=c,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:b=`${n}-leave-to`}=t,E=Yt(o),At=E&&E[0],wt=E&&E[1],{onBeforeEnter:B,onEnter:x,onEnterCancelled:F,onLeave:G,onLeaveCancelled:Lt,onBeforeAppear:Nt=B,onAppear:Mt=x,onAppearCancelled:Pt=F}=e,y=(a,m,S)=>{C(a,m?f:c),C(a,m?l:r),S&&S()},z=(a,m)=>{a._isLeaving=!1,C(a,d),C(a,b),C(a,p),m&&m()},W=a=>(m,S)=>{const q=a?Mt:x,K=()=>y(m,a,S);T(q,[m,K]),Z(()=>{C(m,a?u:i),h(m,a?f:c),J(q)||Q(m,s,At,K)})};return D(e,{onBeforeEnter(a){T(B,[a]),h(a,i),h(a,r)},onBeforeAppear(a){T(Nt,[a]),h(a,u),h(a,l)},onEnter:W(!1),onAppear:W(!0),onLeave(a,m){a._isLeaving=!0;const S=()=>z(a,m);h(a,d),h(a,p),St(),Z(()=>{a._isLeaving&&(C(a,d),h(a,b),J(G)||Q(a,s,wt,S))}),T(G,[a,S])},onEnterCancelled(a){y(a,!1),T(F,[a])},onAppearCancelled(a){y(a,!0),T(Pt,[a])},onLeaveCancelled(a){z(a),T(Lt,[a])}})}function Yt(t){if(t==null)return null;if(Gt(t))return[$(t.enter),$(t.leave)];{const e=$(t);return[e,e]}}function $(t){return zt(t)}function h(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.add(n)),(t[A]||(t[A]=new Set)).add(e)}function C(t,e){e.split(/\s+/).forEach(s=>s&&t.classList.remove(s));const n=t[A];n&&(n.delete(e),n.size||(t[A]=void 0))}function Z(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let kt=0;function Q(t,e,n,s){const o=t._endId=++kt,i=()=>{o===t._endId&&s()};if(n!=null)return setTimeout(i,n);const{type:r,timeout:c,propCount:u}=Ct(t,e);if(!r)return s();const l=r+"end";let f=0;const d=()=>{t.removeEventListener(l,p),i()},p=b=>{b.target===t&&++f>=u&&d()};setTimeout(()=>{f<u&&d()},c+1),t.addEventListener(l,p)}function Ct(t,e){const n=window.getComputedStyle(t),s=E=>(n[E]||"").split(", "),o=s(`${v}Delay`),i=s(`${v}Duration`),r=Y(o,i),c=s(`${w}Delay`),u=s(`${w}Duration`),l=Y(c,u);let f=null,d=0,p=0;e===v?r>0&&(f=v,d=r,p=i.length):e===w?l>0&&(f=w,d=l,p=u.length):(d=Math.max(r,l),f=d>0?r>l?v:w:null,p=f?f===v?i.length:u.length:0);const b=f===v&&/\b(transform|all)(,|$)/.test(s(`${v}Property`).toString());return{type:f,timeout:d,propCount:p,hasTransform:b}}function Y(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max(...e.map((n,s)=>k(n)+k(t[s])))}function k(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3}function St(){return document.body.offsetHeight}function te(t,e,n){const s=t[A];s&&(e=(e?[e,...s]:[...s]).join(" ")),e==null?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}const P=Symbol("_vod"),Tt=Symbol("_vsh"),_e={beforeMount(t,{value:e},{transition:n}){t[P]=t.style.display==="none"?"":t.style.display,n&&e?n.beforeEnter(t):L(t,e)},mounted(t,{value:e},{transition:n}){n&&e&&n.enter(t)},updated(t,{value:e,oldValue:n},{transition:s}){!e!=!n&&(s?e?(s.beforeEnter(t),L(t,!0),s.enter(t)):s.leave(t,()=>{L(t,!1)}):L(t,e))},beforeUnmount(t,{value:e}){L(t,e)}};function L(t,e){t.style.display=e?t[P]:"none",t[Tt]=!e}const ee=Symbol(""),ne=/(^|;)\s*display\s*:/;function se(t,e,n){const s=t.style,o=N(n);let i=!1;if(n&&!o){if(e)if(N(e))for(const r of e.split(";")){const c=r.slice(0,r.indexOf(":")).trim();n[c]==null&&M(s,c,"")}else for(const r in e)n[r]==null&&M(s,r,"");for(const r in n)r==="display"&&(i=!0),M(s,r,n[r])}else if(o){if(e!==n){const r=s[ee];r&&(n+=";"+r),s.cssText=n,i=ne.test(n)}}else e&&t.removeAttribute("style");P in t&&(t[P]=i?s.display:"",t[Tt]&&(s.display="none"))}const tt=/\s*!important$/;function M(t,e,n){if(I(n))n.forEach(s=>M(t,e,s));else if(n==null&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{const s=oe(t,e);tt.test(n)?t.setProperty(dt(s),n.replace(tt,""),"important"):t[s]=n}}const et=["Webkit","Moz","ms"],O={};function oe(t,e){const n=O[e];if(n)return n;let s=ut(e);if(s!=="filter"&&s in t)return O[e]=s;s=Kt(s);for(let o=0;o<et.length;o++){const i=et[o]+s;if(i in t)return O[e]=i}return e}const nt="http://www.w3.org/1999/xlink";function st(t,e,n,s,o,i=jt(e)){s&&e.startsWith("xlink:")?n==null?t.removeAttributeNS(nt,e.slice(6,e.length)):t.setAttributeNS(nt,e,n):n==null||i&&!pt(n)?t.removeAttribute(e):t.setAttribute(e,i?"":Ut(n)?String(n):n)}function ot(t,e,n,s,o){if(e==="innerHTML"||e==="textContent"){n!=null&&(t[e]=e==="innerHTML"?mt(n):n);return}const i=t.tagName;if(e==="value"&&i!=="PROGRESS"&&!i.includes("-")){const c=i==="OPTION"?t.getAttribute("value")||"":t.value,u=n==null?t.type==="checkbox"?"on":"":String(n);(c!==u||!("_value"in t))&&(t.value=u),n==null&&t.removeAttribute(e),t._value=n;return}let r=!1;if(n===""||n==null){const c=typeof t[e];c==="boolean"?n=pt(n):n==null&&c==="string"?(n="",r=!0):c==="number"&&(n=0,r=!0)}try{t[e]=n}catch{}r&&t.removeAttribute(o||e)}function ie(t,e,n,s){t.addEventListener(e,n,s)}function re(t,e,n,s){t.removeEventListener(e,n,s)}const it=Symbol("_vei");function ae(t,e,n,s,o=null){const i=t[it]||(t[it]={}),r=i[e];if(s&&r)r.value=s;else{const[c,u]=ce(e);if(s){const l=i[e]=ue(s,o);ie(t,c,l,u)}else r&&(re(t,c,r,u),i[e]=void 0)}}const rt=/(?:Once|Passive|Capture)$/;function ce(t){let e;if(rt.test(t)){e={};let s;for(;s=t.match(rt);)t=t.slice(0,t.length-s[0].length),e[s[0].toLowerCase()]=!0}return[t[2]===":"?t.slice(3):dt(t.slice(2)),e]}let R=0;const le=Promise.resolve(),fe=()=>R||(le.then(()=>R=0),R=Date.now());function ue(t,e){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;Ft(de(s,n.value),e,5,[s])};return n.value=t,n.attached=fe(),n}function de(t,e){if(I(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map(s=>o=>!o._stopped&&s&&s(o))}else return e}const at=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,pe=(t,e,n,s,o,i)=>{const r=o==="svg";e==="class"?te(t,s,r):e==="style"?se(t,n,s):Wt(e)?qt(e)||ae(t,e,n,s,i):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):me(t,e,s,r))?(ot(t,e,s),!t.tagName.includes("-")&&(e==="value"||e==="checked"||e==="selected")&&st(t,e,s,r,i,e!=="value")):t._isVueCE&&(/[A-Z]/.test(e)||!N(s))?ot(t,ut(e),s,i,e):(e==="true-value"?t._trueValue=s:e==="false-value"&&(t._falseValue=s),st(t,e,s,r))};function me(t,e,n,s){if(s)return!!(e==="innerHTML"||e==="textContent"||e in t&&at(e)&&ft(n));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const o=t.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return at(e)&&N(n)?!1:e in t}const bt=new WeakMap,Et=new WeakMap,_=Symbol("_moveCb"),ct=Symbol("_enterCb"),he=t=>(delete t.props.mode,t),ge=he({name:"TransitionGroup",props:D({},gt,{tag:String,moveClass:String}),setup(t,{slots:e}){const n=xt(),s=$t();let o,i;return Ot(()=>{if(!o.length)return;const r=t.moveClass||`${t.name||"v"}-move`;if(!Te(o[0].el,n.vnode.el,r))return;o.forEach(ve),o.forEach(Ce);const c=o.filter(Se);St(),c.forEach(u=>{const l=u.el,f=l.style;h(l,r),f.transform=f.webkitTransform=f.transitionDuration="";const d=l[_]=p=>{p&&p.target!==l||(!p||/transform$/.test(p.propertyName))&&(l.removeEventListener("transitionend",d),l[_]=null,C(l,r))};l.addEventListener("transitionend",d)})}),()=>{const r=Vt(t),c=vt(r);let u=r.tag||Rt;if(o=[],i)for(let l=0;l<i.length;l++){const f=i[l];f.el&&f.el instanceof Element&&(o.push(f),U(f,j(f,c,s,n)),bt.set(f,f.el.getBoundingClientRect()))}i=e.default?Ht(e.default()):[];for(let l=0;l<i.length;l++){const f=i[l];f.key!=null&&U(f,j(f,c,s,n))}return Bt(u,null,i)}}}),De=ge;function ve(t){const e=t.el;e[_]&&e[_](),e[ct]&&e[ct]()}function Ce(t){Et.set(t,t.el.getBoundingClientRect())}function Se(t){const e=bt.get(t),n=Et.get(t),s=e.left-n.left,o=e.top-n.top;if(s||o){const i=t.el.style;return i.transform=i.webkitTransform=`translate(${s}px,${o}px)`,i.transitionDuration="0s",t}}function Te(t,e,n){const s=t.cloneNode(),o=t[A];o&&o.forEach(c=>{c.split(/\s+/).forEach(u=>u&&s.classList.remove(u))}),n.split(/\s+/).forEach(c=>c&&s.classList.add(c)),s.style.display="none";const i=e.nodeType===1?e:e.parentNode;i.appendChild(s);const{hasTransform:r}=Ct(s);return i.removeChild(s),r}const be=D({patchProp:pe},Zt);let lt;function Ee(){return lt||(lt=yt(be))}const Ie=(...t)=>{const e=Ee().createApp(...t),{mount:n}=e;return e.mount=s=>{const o=we(s);if(!o)return;const i=e._component;!ft(i)&&!i.render&&!i.template&&(i.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const r=n(o,!1,Ae(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),r},e};function Ae(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function we(t){return N(t)?document.querySelector(t):t}export{Pe as T,De as a,Ie as c,_e as v};