mirror of
https://gitee.com/onvia/ccc-tnt-psd2ui
synced 2025-01-14 23:11:04 +00:00
2 lines
128 KiB
JavaScript
2 lines
128 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");function n(e){if(O(e)){const t={};for(let o=0;o<e.length;o++){const r=e[o],s=$(r)?i(r):n(r);if(s)for(const e in s)t[e]=s[e]}return t}return $(e)||V(e)?e:void 0}const o=/;(?![^(]*\))/g,r=/:([^]+)/,s=/\/\*.*?\*\//gs;function i(e){const t={};return e.replace(s,"").split(o).forEach((e=>{if(e){const n=e.split(r);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function l(e){let t="";if($(e))t=e;else if(O(e))for(let n=0;n<e.length;n++){const o=l(e[n]);o&&(t+=o+" ")}else if(V(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function c(e){if(!e)return null;let{class:t,style:o}=e;return t&&!$(t)&&(e.class=l(t)),o&&(e.style=n(o)),e}const a=e("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,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"),u=e("svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistanceLight,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"),p=e("area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr"),f=e("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function d(e){return!!e||""===e}function h(e,t){if(e===t)return!0;let n=F(e),o=F(t);if(n||o)return!(!n||!o)&&e.getTime()===t.getTime();if(n=M(e),o=M(t),n||o)return e===t;if(n=O(e),o=O(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=h(e[o],t[o]);return n}(e,t);if(n=V(e),o=V(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||!h(e[n],t[n]))return!1}}return String(e)===String(t)}function m(e,t){return e.findIndex((e=>h(e,t)))}const g=e=>$(e)?e:null==e?"":O(e)||V(e)&&(e.toString===B||!P(e.toString))?JSON.stringify(e,v,2):String(e),v=(e,t)=>t&&t.__v_isRef?v(e,t.value):R(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n])=>(e[`${t} =>`]=n,e)),{})}:A(t)?{[`Set(${t.size})`]:[...t.values()]}:!V(t)||O(t)||j(t)?t:String(t),y={},_=[],b=()=>{},S=()=>!1,x=/^on[^a-z]/,C=e=>x.test(e),k=e=>e.startsWith("onUpdate:"),w=Object.assign,T=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},N=Object.prototype.hasOwnProperty,E=(e,t)=>N.call(e,t),O=Array.isArray,R=e=>"[object Map]"===L(e),A=e=>"[object Set]"===L(e),F=e=>"[object Date]"===L(e),P=e=>"function"==typeof e,$=e=>"string"==typeof e,M=e=>"symbol"==typeof e,V=e=>null!==e&&"object"==typeof e,I=e=>V(e)&&P(e.then)&&P(e.catch),B=Object.prototype.toString,L=e=>B.call(e),j=e=>"[object Object]"===L(e),U=e=>$(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,D=e(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),H=e("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,sl
|