mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-10 21:06:15 -08:00
fix art.theme
This commit is contained in:
1 parent
6c5393b691
commit
2faffecc00
217 files changed
+2143
-2013
No files matched your search
@@ -0,0 +1,2 @@
|
||||
function Jn(e,t){const n=Object.create(null),s=e.split(",");for(let r=0;r<s.length;r++)n[s[r]]=!0;return t?r=>!!n[r.toLowerCase()]:r=>!!n[r]}function Xn(e){if(H(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=se(s)?Fi(s):Xn(s);if(r)for(const i in r)t[i]=r[i]}return t}else{if(se(e))return e;if(te(e))return e}}const Ai=/;(?![^(]*\))/g,Ri=/:([^]+)/,Oi=/\/\*.*?\*\//gs;function Fi(e){const t={};return e.replace(Oi,"").split(Ai).forEach(n=>{if(n){const s=n.split(Ri);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Zn(e){let t="";if(se(e))t=e;else if(H(e))for(let n=0;n<e.length;n++){const s=Zn(e[n]);s&&(t+=s+" ")}else if(te(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Ii="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Pi=Jn(Ii);function hr(e){return!!e||e===""}const Lc=e=>se(e)?e:e==null?"":H(e)||te(e)&&(e.toString===_r||!K(e.toString))?JSON.stringify(e,pr,2):String(e),pr=(e,t)=>t&&t.__v_isRef?pr(e,t.value):ut(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r])=>(n[`${s} =>`]=r,n),{})}:gr(t)?{[`Set(${t.size})`]:[...t.values()]}:te(t)&&!H(t)&&!br(t)?String(t):t,ee={},at=[],Oe=()=>{},Mi=()=>!1,Li=/^on[^a-z]/,$t=e=>Li.test(e),Qn=e=>e.startsWith("onUpdate:"),fe=Object.assign,Gn=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Si=Object.prototype.hasOwnProperty,Y=(e,t)=>Si.call(e,t),H=Array.isArray,ut=e=>an(e)==="[object Map]",gr=e=>an(e)==="[object Set]",K=e=>typeof e=="function",se=e=>typeof e=="string",es=e=>typeof e=="symbol",te=e=>e!==null&&typeof e=="object",mr=e=>te(e)&&K(e.then)&&K(e.catch),_r=Object.prototype.toString,an=e=>_r.call(e),Ni=e=>an(e).slice(8,-1),br=e=>an(e)==="[object Object]",ts=e=>se(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,vt=Jn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),un=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Hi=/-(\w)/g,Le=un(e=>e.replace(Hi,(t,n)=>n?n.toUpperCase():"")),$i=/\B([A-Z])/g,ot=un(e=>e.replace($i,"-$1").toLowerCase()),dn=un(e=>e.charAt(0).toUpperCase()+e.slice(1)),Xt=un(e=>e?`on${dn(e)}`:""),Pt=(e,t)=>!Object.is(e,t),Zt=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},tn=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Nn=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Ui=e=>{const t=se(e)?Number(e):NaN;return isNaN(t)?e:t};let Es;const ji=()=>Es||(Es=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let _e;class Bi{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=_e,!t&&_e&&(this.index=(_e.scopes||(_e.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=_e;try{return _e=this,t()}finally{_e=n}}}on(){_e=this}off(){_e=this.parent}stop(t){if(this._active){let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.scopes)for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0,this._active=!1}}}function Di(e,t=_e){t&&t.active&&t.effects.push(e)}function Ki(){return _e}function Sc(e){_e&&_e.cleanups.push(e)}const ns=e=>{const t=new Set(e);return t.w=0,t.n=0,t},yr=e=>(e.w&Ve)>0,wr=e=>(e.n&Ve)>0,ki=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=Ve},Wi=e=>{const{deps:t}=e;if(t.length){let n=0;for(let s=0;s<t.length;s++){const r=t[s];yr(r)&&!wr(r)?r.delete(e):t[n++]=r,r.w&=~Ve,r.n&=~Ve}t.length=n}},nn=new WeakMap;let Tt=0,Ve=1;const Hn=30;let Ae;const rt=Symbol(""),$n=Symbol("");class ss{constructor(t,n=null,s){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,Di(this,s)}run(){if(!this.active)return this.fn();let t=Ae,n=ke;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=Ae,Ae=this,ke=!0,Ve=1<<++Tt,Tt<=Hn?ki(this):Ts(this),this.fn()}finally{Tt<=Hn&&Wi(this),Ve=1<<--Tt,Ae=this.parent,ke=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Ae===this?this.deferStop=!0:this.active&&(Ts(this),this.onStop&&this.onStop(),this.active=!1)}}function Ts(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let ke=!0;const Cr=[];function yt(){Cr.push(ke),ke=!1}function wt(){const e=Cr.pop();ke=e===void 0?!0:e}function pe(e,t,n){if(ke&&Ae){let s=nn.get(e);s||nn.set(e,s=new Map);let r=s.get(n);r||s.set(n,r=ns()),xr(r)}}function xr(e,t){let n=!1;Tt<=Hn?wr(e)||(e.n|=Ve,n=!yr(e)):n=!e.has(Ae),n&&(e.add(Ae),Ae.deps.push(e))}function He(e,t,n,s,r,i){const o=nn.get(e);if(!o)return;let l=[];if(t==="clear")l=[...o.values()];else if(n==="length"&&H(e)){const c=Number(s);o.forEach((a,d)=>{(d==="length"||d>=c)&&l.push(a)})}else switch(n!==void 0&&l.push(o.get(n)),t){case"add":H(e)?ts(n)&&l.push(o.get("length")):(l.push(o.get(rt)),ut(e)&&l.push(o.get(Line truncated
|
||||
`),l=l.slice(0,-1),o&&(l=l.replace(/^ *(\$|>) /gm,"").trim()),Mc(l).then(()=>{n.classList.add("copied"),clearTimeout(e.get(n));const c=setTimeout(()=>{n.classList.remove("copied"),n.blur(),e.delete(n)},2e3);e.set(n,c)})}})}}async function Mc(e){try{return navigator.clipboard.writeText(e)}catch{const t=document.createElement("textarea"),n=document.activeElement;t.value=e,t.setAttribute("readonly",""),t.style.contain="strict",t.style.position="absolute",t.style.left="-9999px",t.style.fontSize="12pt";const s=document.getSelection(),r=s?s.rangeCount>0&&s.getRangeAt(0):null;document.body.appendChild(t),t.select(),t.selectionStart=0,t.selectionEnd=e.length,document.execCommand("copy"),document.body.removeChild(t),r&&(s.removeAllRanges(),s.addRange(r)),n&&n.focus()}}function mf(){Ce&&window.addEventListener("click",e=>{var n,s;const t=e.target;if(t.matches(".vp-code-group input")){const r=(n=t.parentElement)==null?void 0:n.parentElement,i=Array.from((r==null?void 0:r.querySelectorAll("input"))||[]).indexOf(t),o=r==null?void 0:r.querySelector('div[class*="language-"].active'),l=(s=r==null?void 0:r.querySelectorAll('div[class*="language-"]:not(.language-id)'))==null?void 0:s[i];o&&l&&o!==l&&(o.classList.remove("active"),l.classList.add("active"))}})}export{ff as $,li as A,Mo as B,Jc as C,xl as D,ce as E,he as F,Dc as G,sf as H,Bc as I,ef as J,Qc as K,Zc as L,kc as M,qc as N,Kc as O,rf as P,_i as Q,Ce as R,$c as S,gi as T,Uc as U,Yc as V,of as W,pt as X,Uo as Y,Yo as Z,nf as _,ai as a,bo as a0,Xn as a1,Hr as a2,Gc as a3,Vc as a4,jc as a5,Xc as a6,df as a7,hf as a8,gf as a9,mf as aa,zn as ab,Ec as ac,lf as ad,wc as ae,uf as af,pf as ag,st as ah,tf as ai,af as aj,xc as ak,wo as b,zc as c,Vr as d,Hc as e,Fr as f,Nc as g,Pr as h,Ki as i,Sc as j,jo as k,Te as l,ui as m,Zn as n,ii as o,Cn as p,pc as q,Wc as r,cr as s,Lc as t,cf as u,hc as v,Qt as w,xi as x,xn as y,fi as z};
|
||||
Reference in new issue
Block a user