IOTConnect-Web/node_modules/vue/dist/vue.runtime.global.prod.js

12 lines
88 KiB
JavaScript
Raw Normal View History

2024-05-09 01:49:52 +00:00
/**
* vue v3.4.21
* (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={},o=[],r=()=>{},s=()=>!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,f=(e,t)=>u.call(e,t),p=Array.isArray,d=e=>"[object Map]"===x(e),h=e=>"[object Set]"===x(e),v=e=>"[object Date]"===x(e),m=e=>"function"==typeof e,g=e=>"string"==typeof e,y=e=>"symbol"==typeof e,_=e=>null!==e&&"object"==typeof e,b=e=>(_(e)||m(e))&&m(e.then)&&m(e.catch),C=Object.prototype.toString,x=e=>C.call(e),S=e=>x(e).slice(8,-1),E=e=>"[object Object]"===x(e),w=e=>g(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,k=t(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),A=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},T=/-(\w)/g,R=A((e=>e.replace(T,((e,t)=>t?t.toUpperCase():"")))),N=/\B([A-Z])/g,O=A((e=>e.replace(N,"-$1").toLowerCase())),L=A((e=>e.charAt(0).toUpperCase()+e.slice(1))),F=A((e=>e?`on${L(e)}`:"")),P=(e,t)=>!Object.is(e,t),I=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},M=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},V=e=>{const t=parseFloat(e);return isNaN(t)?e:t},B=e=>{const t=g(e)?Number(e):NaN;return isNaN(t)?e:t};let U;const $=()=>U||(U="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{}),D=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 j(e){if(p(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],r=g(o)?z(o):j(o);if(r)for(const e in r)t[e]=r[e]}return t}if(g(e)||_(e))return e}const H=/;(?![^(]*\))/g,W=/:([^]+)/,K=/\/\*[^]*?\*\//g;function z(e){const t={};return e.replace(K,"").split(H).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(g(e))t=e;else if(p(e))for(let n=0;n<e.length;n++){const o=G(e[n]);o&&(t+=o+" ")}else if(_(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const q=t("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function J(e){return!!e||""===e}function X(e,t){if(e===t)return!0;let n=v(e),o=v(t);if(n||o)return!(!n||!o)&&e.getTime()===t.getTime();if(n=y(e),o=y(t),n||o)return e===t;if(n=p(e),o=p(t),n||o)return!(!n||!o)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let o=0;n&&o<e.length;o++)n=X(e[o],t[o]);return n}(e,t);if(n=_(e),o=_(t),n||o){if(!n||!o)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){const o=e.hasOwnProperty(n),r=t.hasOwnProperty(n);if(o&&!r||!o&&r||!X(e[n],t[n]))return!1}}return String(e)===String(t)}function Y(e,t){return e.findIndex((e=>X(e,t)))}const Z=(e,t)=>t&&t.__v_isRef?Z(e,t.value):d(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n],o)=>(e[Q(t,o)+" =>"]=n,e)),{})}:h(t)?{[`Set(${t.size})`]:[...t.values()].map((e=>Q(e)))}:y(t)?Q(t):!_(t)||p(t)||E(t)?t:String(t),Q=(e,t="")=>{var n;return y(e)?`Symbol(${null!=(n=e.description)?n:t})`:e};let ee,te;class ne{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=ee,!e&&ee&&(this.index=(ee.scopes||(ee.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const t=ee;try{return ee=this,e()}finally{ee=t}}}on(){ee=this}off(){ee=this.parent}stop(e){if(this._active){let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);if(!this.detached&&this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0,this._active=!1}}}function
/*! #__NO_SIDE_EFFECTS__ */function Yn(e,t){return m(e)?(()=>c({name:e.name},t,{setup:e}))():e}const Zn=e=>!!e.type.__asyncLoader
/*! #__NO_SIDE_EFFECTS__ */;function Qn(e,t){const{ref:n,props:o,children:r,ce:s}=t.vnode,i=Gr(e,o,r);return i.ref=n,i.ce=s,delete t.vnode.ce,i}const eo=e=>e.type.__isKeepAlive,to={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=ss(),o=n.ctx,r=new Map,s=new Set;let i=null;const l=n.suspense,{renderer:{p:c,m:a,um:u,o:{createElement:f}}}=o,p=f("div");function d(e){lo(e),u(e,n,l,!0)}function h(e){r.forEach(((t,n)=>{const o=ys(t.type);!o||e&&e(o)||v(n)}))}function v(e){const t=r.get(e);i&&jr(t,i)?i&&lo(i):d(t),r.delete(e),s.delete(e)}o.activate=(e,t,n,o,r)=>{const s=e.component;a(e,t,n,0,l),c(s.vnode,e,t,n,s,l,o,e.slotScopeIds,r),dr((()=>{s.isDeactivated=!1,s.a&&I(s.a);const t=e.props&&e.props.onVnodeMounted;t&&ts(t,s.parent,e)}),l)},o.deactivate=e=>{const t=e.component;a(e,p,null,1,l),dr((()=>{t.da&&I(t.da);const n=e.props&&e.props.onVnodeUnmounted;n&&ts(n,t.parent,e),t.isDeactivated=!0}),l)},Fn((()=>[e.include,e.exclude]),(([e,t])=>{e&&h((t=>no(e,t))),t&&h((e=>!no(t,e)))}),{flush:"post",deep:!0});let m=null;const g=()=>{null!=m&&r.set(m,co(n.subTree))};return po(g),vo(g),mo((()=>{r.forEach((e=>{const{subTree:t,suspense:o}=n,r=co(t);if(e.type!==r.type||e.key!==r.key)d(e);else{lo(r);const e=r.component.da;e&&dr(e,o)}}))})),()=>{if(m=null,!t.default)return null;const n=t.default(),o=n[0];if(n.length>1)return i=null,n;if(!(Dr(o)&&(4&o.shapeFlag||128&o.shapeFlag)))return i=null,o;let l=co(o);const c=l.type,a=ys(Zn(l)?l.type.__asyncResolved||{}:c),{include:u,exclude:f,max:p}=e;if(u&&(!a||!no(u,a))||f&&a&&no(f,a))return i=l,o;const d=null==l.key?c:l.key,h=r.get(d);return l.el&&(l=Jr(l),128&o.shapeFlag&&(o.ssContent=l)),m=d,h?(l.el=h.el,l.component=h.component,l.transition&&Jn(l,l.transition),l.shapeFlag|=512,s.delete(d),s.add(d)):(s.add(d),p&&s.size>parseInt(p,10)&&v(s.values().next().value)),l.shapeFlag|=256,i=l,Cn(o.type)?o:l}}};function no(e,t){return p(e)?e.some((e=>no(e,t))):g(e)?e.split(",").includes(t):"[object RegExp]"===x(e)&&e.test(t)}function oo(e,t){so(e,"a",t)}function ro(e,t){so(e,"da",t)}function so(e,t,n=rs){const o=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(ao(t,o,n),n){let e=n.parent;for(;e&&e.parent;)eo(e.parent.vnode)&&io(o,t,n,e),e=e.parent}}function io(e,t,n,o){const r=ao(t,e,o,!0);go((()=>{a(o[t],r)}),n)}function lo(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function co(e){return 128&e.shapeFlag?e.ssContent:e}function ao(e,t,n=rs,o=!1){if(n){const r=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;de();const r=cs(n),s=Bt(t,n,e,o);return r(),he(),s});return o?r.unshift(s):r.push(s),s}}const uo=e=>(t,n=rs)=>(!ds||"sp"===e)&&ao(e,((...e)=>t(...e)),n),fo=uo("bm"),po=uo("m"),ho=uo("bu"),vo=uo("u"),mo=uo("bum"),go=uo("um"),yo=uo("sp"),_o=uo("rtg"),bo=uo("rtc");function Co(e,t=rs){ao("ec",e,t)}function xo(e){return e.some((e=>!Dr(e)||e.type!==Or&&!(e.type===Rr&&!xo(e.children))))?e:null}const So=e=>e?us(e)?gs(e)||e.proxy:So(e.parent):null,Eo=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=>So(e.parent),$root:e=>So(e.root),$emit:e=>e.emit,$options:e=>Po(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,Xt(e.update)}),$nextTick:e=>e.n||(e.n=Jt.bind(e.proxy)),$watch:e=>In.bind(e)}),wo=(e,t)=>e!==n&&!e.__isScriptSetup&&f(e,t),ko={get({_:e},t){const{ctx:o,setupState:r,data:s,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 r[t];case 2:return s[t];case 4:return o[t];case 3:return i[t]}else{if(wo(r,t))return l[t]=1,r[t];if(s!==n&&f(s,t))return l[t]=2,s[t];if((u=e.propsOptions[0])&&f(u,t))return l[t]=3,i[t];if(o!==n&&f(o,t))return l[t]=4,o[t];No&&(l[t]=0)}}const p=Eo[t];let d,h;return p?("$attrs"===t&&Ee(e,0,t),p(e)):(d=c.__cssModules)&&(d=d[t])?d:o!==n&&f(o,t)?(l[t]=4,o[t]):(h=a.config.globalProperties,f(h,t)?h[t]:void 0)},set({_:e},t,o){const{data:r,setupState:s,ctx:i}=e;return wo(s,t)?(s[t]=
/*! #__NO_SIDE_EFFECTS__ */
function hi(e,t){const n=Yn(e);class o extends mi{constructor(e){super(n,e,t)}}return o.def=n,o}
/*! #__NO_SIDE_EFFECTS__ */const vi="undefined"!=typeof HTMLElement?HTMLElement:class{};class mi extends vi{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),Jt((()=>{this._connected||(qi(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:o}=e;let r;if(n&&!p(n))for(const s in n){const e=n[s];(e===Number||e&&e.type===Number)&&(s in this._props&&(this._props[s]=B(this._props[s])),(r||(r=Object.create(null)))[R(s)]=!0)}this._numberProps=r,t&&this._resolveProps(e),this._applyStyles(o),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 o of Object.keys(this))"_"!==o[0]&&n.includes(o)&&this._setProp(o,this[o],!0,!1);for(const o of n.map(R))Object.defineProperty(this,o,{get(){return this._getProp(o)},set(e){this._setProp(o,e)}})}_setAttr(e){let t=this.getAttribute(e);const n=R(e);this._numberProps&&this._numberProps[n]&&(t=B(t)),this._setProp(n,t,!1)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,o=!0){t!==this._props[e]&&(this._props[e]=t,o&&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(){qi(this._createVNode(),this.shadowRoot)}_createVNode(){const e=Gr(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 mi){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 gi=new WeakMap,yi=new WeakMap,_i=Symbol("_moveCb"),bi=Symbol("_enterCb"),Ci={name:"TransitionGroup",props:c({},Fs,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=ss(),o=Dn();let r,s;return vo((()=>{if(!r.length)return;const t=e.moveClass||`${e.name||"v"}-move`;if(!function(e,t,n){const o=e.cloneNode(),r=e[Ns];r&&r.forEach((e=>{e.split(/\s+/).forEach((e=>e&&o.classList.remove(e)))}));n.split(/\s+/).forEach((e=>e&&o.classList.add(e))),o.style.display="none";const s=1===t.nodeType?t:t.parentNode;s.appendChild(o);const{hasTransform:i}=Hs(o);return s.removeChild(o),i}(r[0].el,n.vnode.el,t))return;r.forEach(Si),r.forEach(Ei);const o=r.filter(wi);zs(),o.forEach((e=>{const n=e.el,o=n.style;Bs(n,t),o.transform=o.webkitTransform=o.transitionDuration="";const r=n[_i]=e=>{e&&e.target!==n||e&&!/transform$/.test(e.propertyName)||(n.removeEventListener("transitionend",r),n[_i]=null,Us(n,t))};n.addEventListener("transitionend",r)}))})),()=>{const i=yt(e),l=Ms(i);let c=i.tag||Rr;r=s,s=t.default?Xn(t.default()):[];for(let e=0;e<s.length;e++){const t=s[e];null!=t.key&&Jn(t,zn(t,l,o,n))}if(r)for(let e=0;e<r.length;e++){const t=r[e];Jn(t,zn(t,l,o,n)),gi.set(t,t.el.getBoundingClientRect())}return Gr(c,null,s)}}},xi=Ci;function Si(e){const t=e.el;t[_i]&&t[_i](),t[bi]&&t[bi]()}function Ei(e){yi.set(e,e.el.getBoundingClientRect())}function wi(e){const t=gi.get(e),n=yi.get(e),o=t.left-n.left,r=t.top-n.top;if(o||r){const t=e.el.style;return t.transform=t.webkitTransform=`translate(${o}px,${r}px)`,t.transitionDuration="0s",e}}const ki=e=>{const t=e.props["onUpdate:modelValue"]||!1;return p(t)?e=>I(t,e):t};f