mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-23 13:51:20 -08:00
update docs
This commit is contained in:
1 parent
434aa3d57d
commit
0dee1ef446
187 files changed
+2011
-1934
No files matched your search
@@ -0,0 +1 @@
|
||||
import{u as qi}from"./theme.FsA9FYvx.js";function ls(e,t){const n=new Set(e.split(","));return t?s=>n.has(s.toLowerCase()):s=>n.has(s)}const ee={},ut=[],xe=()=>{},Gi=()=>!1,Nt=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),cs=e=>e.startsWith("onUpdate:"),ie=Object.assign,fs=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},zi=Object.prototype.hasOwnProperty,Y=(e,t)=>zi.call(e,t),U=Array.isArray,dt=e=>gn(e)==="[object Map]",Pr=e=>gn(e)==="[object Set]",K=e=>typeof e=="function",ne=e=>typeof e=="string",bt=e=>typeof e=="symbol",Z=e=>e!==null&&typeof e=="object",Ir=e=>(Z(e)||K(e))&&K(e.then)&&K(e.catch),Mr=Object.prototype.toString,gn=e=>Mr.call(e),Yi=e=>gn(e).slice(8,-1),Lr=e=>gn(e)==="[object Object]",as=e=>ne(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Et=ls(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),mn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Xi=/-(\w)/g,Le=mn(e=>e.replace(Xi,(t,n)=>n?n.toUpperCase():"")),Ji=/\B([A-Z])/g,it=mn(e=>e.replace(Ji,"-$1").toLowerCase()),_n=mn(e=>e.charAt(0).toUpperCase()+e.slice(1)),Xt=mn(e=>e?`on${_n(e)}`:""),Ge=(e,t)=>!Object.is(e,t),Jt=(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})},qn=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Zi=e=>{const t=ne(e)?Number(e):NaN;return isNaN(t)?e:t};let Fs;const Or=()=>Fs||(Fs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function us(e){if(U(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],i=ne(s)?no(s):us(s);if(i)for(const r in i)t[r]=i[r]}return t}else if(ne(e)||Z(e))return e}const Qi=/;(?![^(]*\))/g,eo=/:([^]+)/,to=/\/\*[^]*?\*\//g;function no(e){const t={};return e.replace(to,"").split(Qi).forEach(n=>{if(n){const s=n.split(eo);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function ds(e){let t="";if(ne(e))t=e;else if(U(e))for(let n=0;n<e.length;n++){const s=ds(e[n]);s&&(t+=s+" ")}else if(Z(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const so="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",ro=ls(so);function Fr(e){return!!e||e===""}const nf=e=>ne(e)?e:e==null?"":U(e)||Z(e)&&(e.toString===Mr||!K(e.toString))?JSON.stringify(e,Nr,2):String(e),Nr=(e,t)=>t&&t.__v_isRef?Nr(e,t.value):dt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,i],r)=>(n[Fn(s,r)+" =>"]=i,n),{})}:Pr(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Fn(n))}:bt(t)?Fn(t):Z(t)&&!U(t)&&!Lr(t)?String(t):t,Fn=(e,t="")=>{var n;return bt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};let _e;class io{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 i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0,this._active=!1}}}function oo(e,t=_e){t&&t.active&&t.effects.push(e)}function lo(){return _e}function sf(e){_e&&_e.cleanups.push(e)}let nt;class hs{constructor(t,n,s,i){this.fn=t,this.trigger=n,this.scheduler=s,this.active=!0,this.deps=[],this._dirtyLevel=3,this._trackId=0,this._runnings=0,this._queryings=0,this._depsLength=0,oo(this,i)}get dirty(){if(this._dirtyLevel===1){this._dirtyLevel=0,this._queryings++,ot();for(const t of this.deps)if(t.computed&&(co(t.computed),this._dirtyLevel>=2))break;lt(),this._queryings--}return this._dirtyLevel>=2}set dirty(t){this._dirtyLevel=t?3:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=We,n=nt;try{return We=!0,nt=this,this._runnings++,Ns(this),this.fn()}finally{$s(this),this._runnings--,nt=n,We=t}}stop(){var t;this.active&&(Ns(this),$s(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function co(e){return e.value}function Ns(e){e._trackId++,e._depsLength=0}function $s(e){if(e.deps&&e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)$r(e.deps[t],e);e.deps.length=e._depsLength}}function $r(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}let We=!0,Gn=0;const Hr=[];function ot(){Hr.push(We),We=!1}function lt(){const e=Hr.pop();We=e===void 0?!0:e}function ps(){Gn++}function gs(){for(Gn--;!Gn&&zn.length;)zn.shift()()}function jr(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const s=e.deps[e._depsLength];s!==t?(s&&$r(s,e),e.deps[e._depsLength++]=t):e._depsLength++}}const zn=[];function Vr(e,t,n){ps();for(const s of e.keys())if(!(!s.allowRecurse&&Line truncated
|
||||
Reference in new issue
Block a user