2 lines
80 KiB
JavaScript
2 lines
80 KiB
JavaScript
![]() |
function e(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 t=e("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt"),n=e("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function o(e){if(S(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],s=T(r)?l(r):o(r);if(s)for(const e in s)t[e]=s[e]}return t}return T(e)||R(e)?e:void 0}const r=/;(?![^(]*\))/g,s=/:(.+)/;function l(e){const t={};return e.split(r).forEach((e=>{if(e){const n=e.split(s);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function i(e){let t="";if(T(e))t=e;else if(S(e))for(let n=0;n<e.length;n++){const o=i(e[n]);o&&(t+=o+" ")}else if(R(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function c(e){if(!e)return null;let{class:t,style:n}=e;return t&&!T(t)&&(e.class=i(t)),n&&(e.style=o(n)),e}function a(e,t){if(e===t)return!0;let n=A(e),o=A(t);if(n||o)return!(!n||!o)&&e.getTime()===t.getTime();if(n=S(e),o=S(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=a(e[o],t[o]);return n}(e,t);if(n=R(e),o=R(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||!a(e[n],t[n]))return!1}}return String(e)===String(t)}function u(e,t){return e.findIndex((e=>a(e,t)))}const f=e=>null==e?"":S(e)||R(e)&&e.toString===B?JSON.stringify(e,p,2):String(e),p=(e,t)=>t&&t.__v_isRef?p(e,t.value):k(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n])=>(e[`${t} =>`]=n,e)),{})}:E(t)?{[`Set(${t.size})`]:[...t.values()]}:!R(t)||S(t)||$(t)?t:String(t),d={},h=[],v=()=>{},m=()=>!1,g=/^on[^a-z]/,y=e=>g.test(e),_=e=>e.startsWith("onUpdate:"),b=Object.assign,C=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},x=Object.prototype.hasOwnProperty,w=(e,t)=>x.call(e,t),S=Array.isArray,k=e=>"[object Map]"===I(e),E=e=>"[object Set]"===I(e),A=e=>e instanceof Date,F=e=>"function"==typeof e,T=e=>"string"==typeof e,O=e=>"symbol"==typeof e,R=e=>null!==e&&"object"==typeof e,M=e=>R(e)&&F(e.then)&&F(e.catch),B=Object.prototype.toString,I=e=>B.call(e),$=e=>"[object Object]"===I(e),N=e=>T(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,L=e(",key,ref,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),P=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},V=/-(\w)/g,j=P((e=>e.replace(V,((e,t)=>t?t.toUpperCase():"")))),U=/\B([A-Z])/g,D=P((e=>e.replace(U,"-$1").toLowerCase())),H=P((e=>e.charAt(0).toUpperCase()+e.slice(1))),W=P((e=>e?`on${H(e)}`:"")),z=(e,t)=>!Object.is(e,t),K=(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})},q=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let J;const X=[];class Z{constructor(e=!1){this.active=!0,this.effects=[],this.cleanups=[],!e&&J&&(this.parent=J,this.index=(J.scopes||(J.scopes=[])).push(this)-1)}run(e){if(this.active)try{return this.on(),e()}finally{this.off()}}on(){this.active&&(X.push(this),J=this)}off(){this.active&&(X.pop(),J=X[X.length-1])}stop(e){if(this.active){if(this.effects.forEach((e=>e.stop())),this.cleanups.forEach((e=>e())),this.scopes&&this.scopes.forEach((e=>e.stop(!0))),this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.active=!1}}}function Q(e){return new Z(e)}function Y(e,t){(t=t||J)&&t.active&&t.effects.push(e)}function ee(){return J}function te(e){J&&J.cleanups.push(e)}const ne=e=>{const t=new Set(e);return t.w=0,t.n=0,t},oe=e=>(e.w&ie)>0,re=e=>(e.n&ie)>0,se=new WeakMap;let le=0,ie=1;const ce=[];let ae;const ue=Symbol(""),fe=Symbol("");class pe{constructor(e,t=null,n){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],Y(this,n)}run(){if(!this.active)return this.fn();if(!ce.includes(this))try{return ce.push(ae=thi
|