LocalCDN-Firefox-Chrome-Brave/resources/vue/3.4.15/vue.min.jsm

12 lines
144 KiB
JavaScript
Raw Normal View History

2024-02-04 07:36:04 +01:00
/**
* vue v3.4.15
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/
var Vue=function(e){"use strict";function t(e,t){const n=new Set(e.split(","));return t?e=>n.has(e.toLowerCase()):e=>n.has(e)}const n={},s=[],o=()=>{},r=()=>!1,i=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),l=e=>e.startsWith("onUpdate:"),c=Object.assign,a=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},u=Object.prototype.hasOwnProperty,d=(e,t)=>u.call(e,t),p=Array.isArray,h=e=>"[object Map]"===x(e),f=e=>"[object Set]"===x(e),m=e=>"[object Date]"===x(e),g=e=>"function"==typeof e,v=e=>"string"==typeof e,y=e=>"symbol"==typeof e,b=e=>null!==e&&"object"==typeof e,_=e=>(b(e)||g(e))&&g(e.then)&&g(e.catch),S=Object.prototype.toString,x=e=>S.call(e),C=e=>x(e).slice(8,-1),k=e=>"[object Object]"===x(e),T=e=>v(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,w=t(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),N=t("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),A=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},E=/-(\w)/g,I=A((e=>e.replace(E,((e,t)=>t?t.toUpperCase():"")))),R=/\B([A-Z])/g,O=A((e=>e.replace(R,"-$1").toLowerCase())),F=A((e=>e.charAt(0).toUpperCase()+e.slice(1))),L=A((e=>e?`on${F(e)}`:"")),M=(e,t)=>!Object.is(e,t),P=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},$=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},B=e=>{const t=parseFloat(e);return isNaN(t)?e:t},V=e=>{const t=v(e)?Number(e):NaN;return isNaN(t)?e:t};let D;const U=()=>D||(D="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{}),j=t("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error");function H(e){if(p(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],o=v(s)?z(s):H(s);if(o)for(const e in o)t[e]=o[e]}return t}if(v(e)||b(e))return e}const q=/;(?![^(]*\))/g,W=/:([^]+)/,K=/\/\*[^]*?\*\//g;function z(e){const t={};return e.replace(K,"").split(q).forEach((e=>{if(e){const n=e.split(W);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function G(e){let t="";if(v(e))t=e;else if(p(e))for(let n=0;n<e.length;n++){const s=G(e[n]);s&&(t+=s+" ")}else if(b(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const J=t("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot"),X=t("svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view"),Q=t("annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics"),Z=t("area,base,br,col,embed,hr,img,inp
/*! #__NO_SIDE_EFFECTS__ */function ss(e,t){return g(e)?(()=>c({name:e.name},t,{setup:e}))():e}const os=e=>!!e.type.__asyncLoader
/*! #__NO_SIDE_EFFECTS__ */;function rs(e,t){const{ref:n,props:s,children:o,ce:r}=t.vnode,i=Yo(e,s,o);return i.ref=n,i.ce=r,delete t.vnode.ce,i}const is=e=>e.type.__isKeepAlive,ls={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=dr(),s=n.ctx,o=new Map,r=new Set;let i=null;const l=n.suspense,{renderer:{p:c,m:a,um:u,o:{createElement:d}}}=s,p=d("div");function h(e){hs(e),u(e,n,l,!0)}function f(e){o.forEach(((t,n)=>{const s=Tr(t.type);!s||e&&e(s)||m(n)}))}function m(e){const t=o.get(e);i&&Go(t,i)?i&&hs(i):h(t),o.delete(e),r.delete(e)}s.activate=(e,t,n,s,o)=>{const r=e.component;a(e,t,n,0,l),c(r.vnode,e,t,n,r,l,s,e.slotScopeIds,o),bo((()=>{r.isDeactivated=!1,r.a&&P(r.a);const t=e.props&&e.props.onVnodeMounted;t&&lr(t,r.parent,e)}),l)},s.deactivate=e=>{const t=e.component;a(e,p,null,1,l),bo((()=>{t.da&&P(t.da);const n=e.props&&e.props.onVnodeUnmounted;n&&lr(n,t.parent,e),t.isDeactivated=!0}),l)},Vn((()=>[e.include,e.exclude]),(([e,t])=>{e&&f((t=>cs(e,t))),t&&f((e=>!cs(t,e)))}),{flush:"post",deep:!0});let g=null;const v=()=>{null!=g&&o.set(g,fs(n.subTree))};return ys(v),_s(v),Ss((()=>{o.forEach((e=>{const{subTree:t,suspense:s}=n,o=fs(t);if(e.type!==o.type||e.key!==o.key)h(e);else{hs(o);const e=o.component.da;e&&bo(e,s)}}))})),()=>{if(g=null,!t.default)return null;const n=t.default(),s=n[0];if(n.length>1)return i=null,n;if(!(zo(s)&&(4&s.shapeFlag||128&s.shapeFlag)))return i=null,s;let l=fs(s);const c=l.type,a=Tr(os(l)?l.type.__asyncResolved||{}:c),{include:u,exclude:d,max:p}=e;if(u&&(!a||!cs(u,a))||d&&a&&cs(d,a))return i=l,s;const h=null==l.key?c:l.key,f=o.get(h);return l.el&&(l=tr(l),128&s.shapeFlag&&(s.ssContent=l)),g=h,f?(l.el=f.el,l.component=f.component,l.transition&&ts(l,l.transition),l.shapeFlag|=512,r.delete(h),r.add(h)):(r.add(h),p&&r.size>parseInt(p,10)&&m(r.values().next().value)),l.shapeFlag|=256,i=l,Nn(s.type)?s:l}}};function cs(e,t){return p(e)?e.some((e=>cs(e,t))):v(e)?e.split(",").includes(t):"[object RegExp]"===x(e)&&e.test(t)}function as(e,t){ds(e,"a",t)}function us(e,t){ds(e,"da",t)}function ds(e,t,n=ur){const s=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(ms(t,s,n),n){let e=n.parent;for(;e&&e.parent;)is(e.parent.vnode)&&ps(s,t,n,e),e=e.parent}}function ps(e,t,n,s){const o=ms(t,e,s,!0);xs((()=>{a(s[t],o)}),n)}function hs(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function fs(e){return 128&e.shapeFlag?e.ssContent:e}function ms(e,t,n=ur,s=!1){if(n){const o=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...s)=>{if(n.isUnmounted)return;ye();const o=fr(n),r=qt(t,n,e,s);return o(),be(),r});return s?o.unshift(r):o.push(r),r}}const gs=e=>(t,n=ur)=>(!br||"sp"===e)&&ms(e,((...e)=>t(...e)),n),vs=gs("bm"),ys=gs("m"),bs=gs("bu"),_s=gs("u"),Ss=gs("bum"),xs=gs("um"),Cs=gs("sp"),ks=gs("rtg"),Ts=gs("rtc");function ws(e,t=ur){ms("ec",e,t)}function Ns(e){return e.some((e=>!zo(e)||e.type!==$o&&!(e.type===Mo&&!Ns(e.children))))?e:null}const As=e=>e?gr(e)?kr(e)||e.proxy:As(e.parent):null,Es=c(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>As(e.parent),$root:e=>As(e.root),$emit:e=>e.emit,$options:e=>Vs(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,nn(e.update)}),$nextTick:e=>e.n||(e.n=tn.bind(e.proxy)),$watch:e=>Un.bind(e)}),Is=(e,t)=>e!==n&&!e.__isScriptSetup&&d(e,t),Rs={get({_:e},t){const{ctx:s,setupState:o,data:r,props:i,accessCache:l,type:c,appContext:a}=e;let u;if("$"!==t[0]){const c=l[t];if(void 0!==c)switch(c){case 1:return o[t];case 2:return r[t];case 4:return s[t];case 3:return i[t]}else{if(Is(o,t))return l[t]=1,o[t];if(r!==n&&d(r,t))return l[t]=2,r[t];if((u=e.propsOptions[0])&&d(u,t))return l[t]=3,i[t];if(s!==n&&d(s,t))return l[t]=4,s[t];Ms&&(l[t]=0)}}const p=Es[t];let h,f;return p?("$attrs"===t&&Ie(e,0,t),p(e)):(h=c.__cssModules)&&(h=h[t])?h:s!==n&&d(s,t)?(l[t]=4,s[t]):(f=a.config.globalProperties,d(f,t)?f[t]:void 0)},set({_:e},t,s){const{data:o,setupState:r,ctx:i}=e;return Is(r,t)?(r[t]=
/*! #__NO_SIDE_EFFECTS__ */
function bi(e,t){const n=ss(e);class s extends Si{constructor(e){super(n,e,t)}}return s.def=n,s}
/*! #__NO_SIDE_EFFECTS__ */const _i="undefined"!=typeof HTMLElement?HTMLElement:class{};class Si extends _i{constructor(e,t={},n){super(),this._def=e,this._props=t,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&n?n(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,this._ob&&(this._ob.disconnect(),this._ob=null),tn((()=>{this._connected||(Yi(null,this.shadowRoot),this._instance=null)}))}_resolveDef(){this._resolved=!0;for(let n=0;n<this.attributes.length;n++)this._setAttr(this.attributes[n].name);this._ob=new MutationObserver((e=>{for(const t of e)this._setAttr(t.attributeName)})),this._ob.observe(this,{attributes:!0});const e=(e,t=!1)=>{const{props:n,styles:s}=e;let o;if(n&&!p(n))for(const r in n){const e=n[r];(e===Number||e&&e.type===Number)&&(r in this._props&&(this._props[r]=V(this._props[r])),(o||(o=Object.create(null)))[I(r)]=!0)}this._numberProps=o,t&&this._resolveProps(e),this._applyStyles(s),this._update()},t=this._def.__asyncLoader;t?t().then((t=>e(t,!0))):e(this._def)}_resolveProps(e){const{props:t}=e,n=p(t)?t:Object.keys(t||{});for(const s of Object.keys(this))"_"!==s[0]&&n.includes(s)&&this._setProp(s,this[s],!0,!1);for(const s of n.map(I))Object.defineProperty(this,s,{get(){return this._getProp(s)},set(e){this._setProp(s,e)}})}_setAttr(e){let t=this.getAttribute(e);const n=I(e);this._numberProps&&this._numberProps[n]&&(t=V(t)),this._setProp(n,t,!1)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,s=!0){t!==this._props[e]&&(this._props[e]=t,s&&this._instance&&this._update(),n&&(!0===t?this.setAttribute(O(e),""):"string"==typeof t||"number"==typeof t?this.setAttribute(O(e),t+""):t||this.removeAttribute(O(e))))}_update(){Yi(this._createVNode(),this.shadowRoot)}_createVNode(){const e=Yo(this._def,c({},this._props));return this._instance||(e.ce=e=>{this._instance=e,e.isCE=!0;const t=(e,t)=>{this.dispatchEvent(new CustomEvent(e,{detail:t}))};e.emit=(e,...n)=>{t(e,n),O(e)!==e&&t(O(e),n)};let n=this;for(;n=n&&(n.parentNode||n.host);)if(n instanceof Si){e.parent=n._instance,e.provides=n._instance.provides;break}}),e}_applyStyles(e){e&&e.forEach((e=>{const t=document.createElement("style");t.textContent=e,this.shadowRoot.appendChild(t)}))}}const xi=new WeakMap,Ci=new WeakMap,ki=Symbol("_moveCb"),Ti=Symbol("_enterCb"),wi={name:"TransitionGroup",props:c({},Dr,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=dr(),s=zn();let o,r;return _s((()=>{if(!o.length)return;const t=e.moveClass||`${e.name||"v"}-move`;if(!function(e,t,n){const s=e.cloneNode(),o=e[$r];o&&o.forEach((e=>{e.split(/\s+/).forEach((e=>e&&s.classList.remove(e)))}));n.split(/\s+/).forEach((e=>e&&s.classList.add(e))),s.style.display="none";const r=1===t.nodeType?t:t.parentNode;r.appendChild(s);const{hasTransform:i}=Xr(s);return r.removeChild(s),i}(o[0].el,n.vnode.el,t))return;o.forEach(Ai),o.forEach(Ei);const s=o.filter(Ii);Yr(),s.forEach((e=>{const n=e.el,s=n.style;Wr(n,t),s.transform=s.webkitTransform=s.transitionDuration="";const o=n[ki]=e=>{e&&e.target!==n||e&&!/transform$/.test(e.propertyName)||(n.removeEventListener("transitionend",o),n[ki]=null,Kr(n,t))};n.addEventListener("transitionend",o)}))})),()=>{const i=kt(e),l=Hr(i);let c=i.tag||Mo;o=r,r=t.default?ns(t.default()):[];for(let e=0;e<r.length;e++){const t=r[e];null!=t.key&&ts(t,Zn(t,l,s,n))}if(o)for(let e=0;e<o.length;e++){const t=o[e];ts(t,Zn(t,l,s,n)),xi.set(t,t.el.getBoundingClientRect())}return Yo(c,null,r)}}},Ni=wi;function Ai(e){const t=e.el;t[ki]&&t[ki](),t[Ti]&&t[Ti]()}function Ei(e){Ci.set(e,e.el.getBoundingClientRect())}function Ii(e){const t=xi.get(e),n=Ci.get(e),s=t.left-n.left,o=t.top-n.top;if(s||o){const t=e.el.style;return t.transform=t.webkitTransform=`translate(${s}px,${o}px)`,t.transitionDuration="0s",e}}const Ri=e=>{const t=e.props["onUpdate:modelValue"]||!1;return p(t)?e=>P(t,e):t};f