2 lines
82 KiB
JavaScript
Raw Normal View History

2023-07-24 10:36:46 +08:00
var VueRuntimeDOM=function(e){"use strict";function t(e,t){const n=Object.create(null),o=e.split(",");for(let r=0;r<o.length;r++)n[o[r]]=!0;return t?e=>!!n[e.toLowerCase()]:e=>!!n[e]}const n=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");function o(e){if(k(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],s=R(r)?l(r):o(r);if(s)for(const e in s)t[e]=s[e]}return t}return R(e)||P(e)?e:void 0}const r=/;(?![^(]*\))/g,s=/:([^]+)/,i=/\/\*.*?\*\//gs;function l(e){const t={};return e.replace(i,"").split(r).forEach((e=>{if(e){const n=e.split(s);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function c(e){let t="";if(R(e))t=e;else if(k(e))for(let n=0;n<e.length;n++){const o=c(e[n]);o&&(t+=o+" ")}else if(P(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const a=t("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function u(e){return!!e||""===e}function f(e,t){if(e===t)return!0;let n=T(e),o=T(t);if(n||o)return!(!n||!o)&&e.getTime()===t.getTime();if(n=O(e),o=O(t),n||o)return e===t;if(n=k(e),o=k(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=f(e[o],t[o]);return n}(e,t);if(n=P(e),o=P(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||!f(e[n],t[n]))return!1}}return String(e)===String(t)}function p(e,t){return e.findIndex((e=>f(e,t)))}const d=(e,t)=>t&&t.__v_isRef?d(e,t.value):E(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n])=>(e[`${t} =>`]=n,e)),{})}:A(t)?{[`Set(${t.size})`]:[...t.values()]}:!P(t)||k(t)||B(t)?t:String(t),h={},v=[],m=()=>{},g=()=>!1,_=/^on[^a-z]/,y=e=>_.test(e),b=e=>e.startsWith("onUpdate:"),C=Object.assign,x=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},S=Object.prototype.hasOwnProperty,w=(e,t)=>S.call(e,t),k=Array.isArray,E=e=>"[object Map]"===V(e),A=e=>"[object Set]"===V(e),T=e=>"[object Date]"===V(e),F=e=>"function"==typeof e,R=e=>"string"==typeof e,O=e=>"symbol"==typeof e,P=e=>null!==e&&"object"==typeof e,M=e=>P(e)&&F(e.then)&&F(e.catch),L=Object.prototype.toString,V=e=>L.call(e),B=e=>"[object Object]"===V(e),I=e=>R(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,N=t(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),U=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},j=/-(\w)/g,$=U((e=>e.replace(j,((e,t)=>t?t.toUpperCase():"")))),D=/\B([A-Z])/g,H=U((e=>e.replace(D,"-$1").toLowerCase())),z=U((e=>e.charAt(0).toUpperCase()+e.slice(1))),W=U((e=>e?`on${z(e)}`:"")),K=(e,t)=>!Object.is(e,t),q=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},G=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Y=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let J;let X;class Z{constructor(e=!1){this.detached=e,this.active=!0,this.effects=[],this.cleanups=[],this.parent=X,!e&&X&&(this.index=(X.scopes||(X.scopes=[])).push(this)-1)}run(e){if(this.active){const t=X;try{return X=this,e()}finally{X=t}}}on(){X=this}off(){X=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 Q(e,t=X){t&&t.active&&t.effects.push(e)}const ee=e=>{const t=new Set(e);return t.w=0,t.n=0,t},te=e=>(e.w&se)>0,ne=e=>(e.n&se)>0,oe=new WeakMap;let re=0,se=1;let ie;const le=Symbol(""),ce=Symbol("");class ae{constructor(e,t=null,n){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],this.parent=void 0,Q(this,n)}run(){if(!this.active)return this.fn();let e=ie,t=fe;for(;e;){if(e===this)return;e=e.parent}try{return th