mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-17 18:11:20 -08:00
Danmuku (#759)
* chore: Bump artplayer-plugin-danmuku version to 5.1.0 * chore: Update danmuku plugin with new mount option * chore: Update danmuku plugin with new mount option * chore: Update danmuku plugin with new mount option * chore: Update danmuku plugin with new mount option * chore: Update danmuku plugin with new mount option * chore: Update danmuku plugin with new mount option * chore: Refactor getDanmuTop function to handle additional cases * chore: Refactor getDanmuTop function to handle additional cases * chore: Update danmuku plugin with new mount option * chore: Update danmuku plugin with new mount option * chore: Refactor danmuku plugin to always create a new Setting instance * Refactor danmuku plugin to always create a new Setting instance * Refactor danmuku plugin to always create a new Setting instance * Update danmuku.js * Update danmuku.js * Refactor danmuku plugin to include a new Setting instance * Refactor danmuku plugin to include a new Setting instance * Refactor danmuku plugin styles for better alignment and spacing * Refactor danmuku plugin styles for better alignment and spacing * Refactor danmuku plugin styles for better alignment and spacing * Refactor danmuku plugin styles for better alignment and spacing * Refactor danmuku plugin styles for better alignment and spacing * chore: Update package.json files * Refactor danmuku plugin to remove unnecessary whitespace in the setting template * chore: Remove ESLint configuration files and update npm dependencies * chore: Update ESLint configuration to disable console warnings and fix unused variable warnings * chore: Update ESLint configuration to fix quotes rule * Update package.json * Update package.json * Update setting.js * chore: Compress CSS code in build script * chore: Update build script to compress JavaScript code * chore: Update build script to compress JavaScript code * chore: Refactor setting.js to improve code organization and remove unused variables * chore: Add isHover flag to Control component for better control hiding behavior * chore: Update Control component to use $bottom instead of $controls for better control hiding behavior * Update package.json * Update package.json * Update package.json * chore: Update lerna.json to use independent versioning and yarn as npm client * refactor: Update Danmuku class to support configurable modes and visibility * refactor: Update Danmuku styles for better visibility and configurability * feat: Update font weight in Danmuku styles for better readability * refactor: Update Danmuku class to support configurable modes and visibility * refactor: Add opacity, area, font, and speed sliders to Danmuku settings * refactor: Initialize sliders for opacity, area, font, and speed in Danmuku settings * feat: Add slider UI for opacity, area, and speed in Danmuku settings * feat: Update slider styles in Danmuku settings for better visibility and configurability * refactor: Improve Danmuku settings UI for better visibility and configurability * refactor: Improve Danmuku settings UI for better visibility and configurability * refactor: Update slider styles in Danmuku settings for better visibility and configurability * refactor: Update margin slider initialization in Danmuku settings * refactor: Update slider styles and initialization in Danmuku settings * refactor: Update Danmuku class to support configurable visibility * refactor: Update Danmuku class to support configurable visibility * refactor: Update Danmuku class to support configurable visibility * refactor: Update Danmuku class to support configurable visibility * refactor: Update Danmuku settings UI for better visibility and configurability * refactor: Update Danmuku settings UI for better visibility and configurability * refactor: Update Danmuku settings UI for better visibility and configurability * refactor: Update Danmuku settings UI for better visibility and configurability * refactor: Improve Danmuku settings UI for better visibility and configurability * add lock * refactor: Add lock and unlock methods to Danmuku settings * refactor: Update Danmuku settings UI for better visibility and configurability * refactor: Update Danmuku settings UI for better visibility and configurability * refactor: Update Danmuku settings UI for better visibility and configurability * refactor: Update Danmuku settings UI for better visibility and configurability * Update artplayer-plugin-danmuku.d.ts * refactor: Update Danmuku settings UI for better visibility and configurability * refactor: Update Danmuku settings UI for better visibility and configurability * refactor: Update Danmuku settings UI for better visibility and configurability * refactor: Update Danmuku settings UI for better visibility and configurability * refactor: Update Danmuku settings event listeners * refactor: Update Danmuku settings UI for better visibility and configurability * refactor: Update Danmuku settings UI for better visibility and configurability * refactor: Update Danmuku settings UI for better visibility and configurability * refactor: Update Danmuku settings UI for better visibility and configurability
This commit is contained in:
1 parent
dfd1cf968d
commit
699135afcf
402 files changed
+20804
-17005
No files matched your search
@@ -0,0 +1,17 @@
|
||||
/**
|
||||
* @vue/shared v3.4.27
|
||||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||||
* @license MIT
|
||||
**//*! #__NO_SIDE_EFFECTS__ */function vs(e,t){const n=new Set(e.split(","));return s=>n.has(s)}const ee={},mt=[],xe=()=>{},wi=()=>!1,Bt=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),ws=e=>e.startsWith("onUpdate:"),re=Object.assign,Es=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Ei=Object.prototype.hasOwnProperty,Y=(e,t)=>Ei.call(e,t),U=Array.isArray,yt=e=>En(e)==="[object Map]",Br=e=>En(e)==="[object Set]",K=e=>typeof e=="function",ne=e=>typeof e=="string",ut=e=>typeof e=="symbol",Z=e=>e!==null&&typeof e=="object",kr=e=>(Z(e)||K(e))&&K(e.then)&&K(e.catch),Kr=Object.prototype.toString,En=e=>Kr.call(e),Ci=e=>En(e).slice(8,-1),Wr=e=>En(e)==="[object Object]",Cs=e=>ne(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,_t=vs(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Cn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},xi=/-(\w)/g,Ne=Cn(e=>e.replace(xi,(t,n)=>n?n.toUpperCase():"")),Si=/\B([A-Z])/g,dt=Cn(e=>e.replace(Si,"-$1").toLowerCase()),xn=Cn(e=>e.charAt(0).toUpperCase()+e.slice(1)),ln=Cn(e=>e?`on${xn(e)}`:""),Je=(e,t)=>!Object.is(e,t),cn=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},qr=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},is=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Ti=e=>{const t=ne(e)?Number(e):NaN;return isNaN(t)?e:t};let Gs;const Gr=()=>Gs||(Gs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function xs(e){if(U(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=ne(s)?Li(s):xs(s);if(r)for(const o in r)t[o]=r[o]}return t}else if(ne(e)||Z(e))return e}const Ai=/;(?![^(]*\))/g,Ri=/:([^]+)/,Oi=/\/\*[^]*?\*\//g;function Li(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 Ss(e){let t="";if(ne(e))t=e;else if(U(e))for(let n=0;n<e.length;n++){const s=Ss(e[n]);s&&(t+=s+" ")}else if(Z(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Ii="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Mi=vs(Ii);function zr(e){return!!e||e===""}const Ya=e=>ne(e)?e:e==null?"":U(e)||Z(e)&&(e.toString===Kr||!K(e.toString))?JSON.stringify(e,Xr,2):String(e),Xr=(e,t)=>t&&t.__v_isRef?Xr(e,t.value):yt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],o)=>(n[Bn(s,o)+" =>"]=r,n),{})}:Br(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Bn(n))}:ut(t)?Bn(t):Z(t)&&!U(t)&&!Wr(t)?String(t):t,Bn=(e,t="")=>{var n;return ut(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
|
||||
* @vue/reactivity v3.4.27
|
||||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||||
* @license MIT
|
||||
**/let we;class Pi{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=we,!t&&we&&(this.index=(we.scopes||(we.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=we;try{return we=this,t()}finally{we=n}}}on(){we=this}off(){we=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 Ni(e,t=we){t&&t.active&&t.effects.push(e)}function Yr(){return we}function Fi(e){we&&we.cleanups.push(e)}let ct;class Ts{constructor(t,n,s,r){this.fn=t,this.trigger=n,this.scheduler=s,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,Ni(this,r)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,Ze();for(let t=0;t<this._depsLength;t++){const n=this.deps[t];if(n.computed&&($i(n.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),et()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=ze,n=ct;try{return ze=!0,ct=this,this._runnings++,zs(this),this.fn()}finally{Xs(this),this._runnings--,ct=n,ze=t}}stop(){this.active&&(zs(this),Xs(this),this.onStop&&this.onStop(),this.active=!1)}}function $i(e){return e.value}function zs(e){e._trackId++,e._depsLength=0}function Xs(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)Jr(e.deps[t],e);e.deps.length=e._depsLength}}function Jr(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}let ze=!0,ls=0;const Qr=[];function Ze(){Qr.push(ze),ze=!1}function et(){const e=Qr.pop();ze=e===void 0?!0:e}function As(){ls++}function Rs(){for(ls--;!ls&&cs.length;)cs.shift()()}function Zr(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const s=e.deps[e._depsLength];s!==t?(s&&Jr(s,e),e.deps[e._depsLength++]=t):e._depsLength++}}const cs=[];function eo(e,t,n){As();for(const s of e.keys()){let r;s._dirtyLevel<t&&(r??(r=e.get(s)===s._trackId))&&(s._shouldSchedule||(s._shouldSchedule=s._dirtyLevel===0),s._dirtyLevel=t),s._shouldSchedule&&(r??(r=e.get(s)===s._trackId))&&(s.trigger(),(!s._runnings||s.allowRecurse)&&s._dirtyLevel!==2&&(s._shouldSchedule=!1,s.scheduler&&cs.push(s.scheduler)))}Rs()}const to=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},hn=new WeakMap,at=Symbol(""),as=Symbol("");function be(e,t,n){if(ze&&ct){let s=hn.get(e);s||hn.set(e,s=new Map);let r=s.get(n);r||s.set(n,r=to(()=>s.delete(n))),Zr(ct,r)}}function He(e,t,n,s,r,o){const i=hn.get(e);if(!i)return;let l=[];if(t==="clear")l=[...i.values()];else if(n==="length"&&U(e)){const c=Number(s);i.forEach((f,u)=>{(u==="length"||!ut(u)&&u>=c)&&l.push(f)})}else switch(n!==void 0&&l.push(i.get(n)),t){case"add":U(e)?Cs(n)&&l.push(i.get("length")):(l.push(i.get(at)),yt(e)&&l.push(i.get(as)));break;case"delete":U(e)||(l.push(i.get(at)),yt(e)&&l.push(i.get(as)));break;case"set":yt(e)&&l.push(i.get(at));break}As();for(const c of l)c&&eo(c,4);Rs()}function Hi(e,t){const n=hn.get(e);return n&&n.get(t)}const ji=vs("__proto__,__v_isRef,__isVue"),no=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ut)),Ys=Vi();function Vi(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const s=J(this);for(let o=0,i=this.length;o<i;o++)be(s,"get",o+"");const r=s[t](...n);return r===-1||r===!1?s[t](...n.map(J)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Ze(),As();const s=J(this)[t].apply(this,n);return Rs(),et(),s}}),e}function Di(e){ut(e)||(e=String(e));const t=J(this);return be(t,"has",e),t.hasOwnProperty(e)}class so{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){const r=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return o;if(n==="__v_raw")return s===(r?o?Zi:lo:o?io:oo).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const i=U(t);if(!r){if(i&&Y(Ys,n))return Reflect.get(Ys,n,s);if(n==="hasOwnProperty")return Di}const l=Reflect.get(t,n,s);return(ut(n)?no.has(n):ji(n))||(r||be(t,"get",n),o)?l:pe(l)?i&&Cs(n)?l:l.value:Z(l)?r?An(l):Tn(l):l}}class ro extends so{constructor(t=!1){super(!1,t)}set(t,n,s,r){let o=t[n];if(!this._isShallow){const c=$t(o);if(!pn(s)&&!$t(s)&&(o=J(o),s=J(s)),!U(t)&&pe(o)&&!pe(s))return c?!1:(o.value=s,!0)}const i=U(t)&&Cs(n)?Number(n)<t.length:Y(t,n),l=Reflect.set(t,n,s,r);return t===J(r)&&(i?Je(s,o)&&He(t,"set",n,s):He(t,"add",n,s)),l}deleteProperty(t,n){const s=Y(t,n);t[n];const r=Reflect.deleLine truncated
|
||||
* @vue/runtime-core v3.4.27
|
||||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||||
* @license MIT
|
||||
**/function Xe(e,t,n,s){try{return s?e(...s):e()}catch(r){Rn(r,t,n)}}function Se(e,t,n,s){if(K(e)){const r=Xe(e,t,n,s);return r&&kr(r)&&r.catch(o=>{Rn(o,t,n)}),r}if(U(e)){const r=[];for(let o=0;o<e.length;o++)r.push(Se(e[o],t,n,s));return r}}function Rn(e,t,n,s=!0){const r=t?t.vnode:null;if(t){let o=t.parent;const i=t.proxy,l=`https://vuejs.org/error-reference/#runtime-${n}`;for(;o;){const f=o.ec;if(f){for(let u=0;u<f.length;u++)if(f[u](e,i,l)===!1)return}o=o.parent}const c=t.appContext.config.errorHandler;if(c){Ze(),Xe(c,null,10,[e,i,l]),et();return}}dl(e,n,r,s)}function dl(e,t,n,s=!0){console.error(e)}let jt=!1,fs=!1;const he=[];let Me=0;const bt=[];let Ke=null,ot=0;const go=Promise.resolve();let Ns=null;function On(e){const t=Ns||go;return e?t.then(this?e.bind(this):e):t}function hl(e){let t=Me+1,n=he.length;for(;t<n;){const s=t+n>>>1,r=he[s],o=Vt(r);o<e||o===e&&r.pre?t=s+1:n=s}return t}function Fs(e){(!he.length||!he.includes(e,jt&&e.allowRecurse?Me+1:Me))&&(e.id==null?he.push(e):he.splice(hl(e.id),0,e),mo())}function mo(){!jt&&!fs&&(fs=!0,Ns=go.then(yo))}function pl(e){const t=he.indexOf(e);t>Me&&he.splice(t,1)}function gl(e){U(e)?bt.push(...e):(!Ke||!Ke.includes(e,e.allowRecurse?ot+1:ot))&&bt.push(e),mo()}function tr(e,t,n=jt?Me+1:0){for(;n<he.length;n++){const s=he[n];if(s&&s.pre){if(e&&s.id!==e.uid)continue;he.splice(n,1),n--,s()}}}function gn(e){if(bt.length){const t=[...new Set(bt)].sort((n,s)=>Vt(n)-Vt(s));if(bt.length=0,Ke){Ke.push(...t);return}for(Ke=t,ot=0;ot<Ke.length;ot++)Ke[ot]();Ke=null,ot=0}}const Vt=e=>e.id==null?1/0:e.id,ml=(e,t)=>{const n=Vt(e)-Vt(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function yo(e){fs=!1,jt=!0,he.sort(ml);try{for(Me=0;Me<he.length;Me++){const t=he[Me];t&&t.active!==!1&&Xe(t,null,14)}}finally{Me=0,he.length=0,gn(),jt=!1,Ns=null,(he.length||bt.length)&&yo()}}function yl(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||ee;let r=n;const o=t.startsWith("update:"),i=o&&t.slice(7);if(i&&i in s){const u=`${i==="modelValue"?"model":i}Modifiers`,{number:h,trim:m}=s[u]||ee;m&&(r=n.map(C=>ne(C)?C.trim():C)),h&&(r=n.map(is))}let l,c=s[l=ln(t)]||s[l=ln(Ne(t))];!c&&o&&(c=s[l=ln(dt(t))]),c&&Se(c,e,6,r);const f=s[l+"Once"];if(f){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Se(f,e,6,r)}}function _o(e,t,n=!1){const s=t.emitsCache,r=s.get(e);if(r!==void 0)return r;const o=e.emits;let i={},l=!1;if(!K(e)){const c=f=>{const u=_o(f,t,!0);u&&(l=!0,re(i,u))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!o&&!l?(Z(e)&&s.set(e,null),null):(U(o)?o.forEach(c=>i[c]=null):re(i,o),Z(e)&&s.set(e,i),i)}function Ln(e,t){return!e||!Bt(t)?!1:(t=t.slice(2).replace(/Once$/,""),Y(e,t[0].toLowerCase()+t.slice(1))||Y(e,dt(t))||Y(e,t))}let ie=null,In=null;function mn(e){const t=ie;return ie=e,In=e&&e.type.__scopeId||null,t}function Ja(e){In=e}function Qa(){In=null}function _l(e,t=ie,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&gr(-1);const o=mn(t);let i;try{i=e(...r)}finally{mn(o),s._d&&gr(1)}return i};return s._n=!0,s._c=!0,s._d=!0,s}function kn(e){const{type:t,vnode:n,proxy:s,withProxy:r,propsOptions:[o],slots:i,attrs:l,emit:c,render:f,renderCache:u,props:h,data:m,setupState:C,ctx:M,inheritAttrs:P}=e,B=mn(e);let W,q;try{if(n.shapeFlag&4){const y=r||s,L=y;W=Ae(f.call(L,y,u,h,C,m,M)),q=l}else{const y=t;W=Ae(y.length>1?y(h,{attrs:l,slots:i,emit:c}):y(h,null)),q=t.props?l:bl(l)}}catch(y){Ft.length=0,Rn(y,e,1),W=ue(_e)}let p=W;if(q&&P!==!1){const y=Object.keys(q),{shapeFlag:L}=p;y.length&&L&7&&(o&&y.some(ws)&&(q=vl(q,o)),p=Qe(p,q,!1,!0))}return n.dirs&&(p=Qe(p,null,!1,!0),p.dirs=p.dirs?p.dirs.concat(n.dirs):n.dirs),n.transition&&(p.transition=n.transition),W=p,mn(B),W}const bl=e=>{let t;for(const n in e)(n==="class"||n==="style"||Bt(n))&&((t||(t={}))[n]=e[n]);return t},vl=(e,t)=>{const n={};for(const s in e)(!ws(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function wl(e,t,n){const{props:s,children:r,component:o}=e,{props:i,children:l,patchFlag:c}=t,f=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return s?nr(s,i,f):!!i;if(c&8){const u=t.dynamicProps;for(let h=0;h<u.length;h++){const m=u[h];if(i[m]!==s[m]&&!Ln(f,m))return!0}}}else return(r||l)&&(!l||!l.$stable)?!0:s===i?!1:s?i?nr(s,i,f):!0:!!i;return!1}function nr(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let r=0;r<s.length;r++){const o=s[r];if(t[o]!==e[o]&&!Ln(n,o))return!0}return!1}function El({vnode:e,parent:t},n){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.el=e.el),s===e)(e=t.vnode).el=n,t=t.parent;else break}}const bo="components";function Za(e,t){return wo(bo,e,!0,t)||e}const vo=Symbol.for("v-ndc");function ef(e){return ne(e)?wo(bo,e,!1)||e:e||vo}function wo(e,t,n=!0,s=!1){const r=ie||ae;if(r){const o=r.type;{const l=vc(o,!1);if(l&&(l===t||l===Ne(t)||l===xn(Ne(t))))return o}const i=sr(r[e]||o[e],t)||sr(r.appContext[e],t);retur
Line truncated
|
||||
* @vue/runtime-dom v3.4.27
|
||||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||||
* @license MIT
|
||||
**/const Cc="http://www.w3.org/2000/svg",xc="http://www.w3.org/1998/Math/MathML",Ge=typeof document<"u"?document:null,br=Ge&&Ge.createElement("template"),Sc={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t==="svg"?Ge.createElementNS(Cc,e):t==="mathml"?Ge.createElementNS(xc,e):Ge.createElement(e,n?{is:n}:void 0);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>Ge.createTextNode(e),createComment:e=>Ge.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ge.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,o){const i=n?n.previousSibling:t.lastChild;if(r&&(r===o||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===o||!(r=r.nextSibling)););else{br.innerHTML=s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e;const l=br.content;if(s==="svg"||s==="mathml"){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Be="transition",Tt="animation",Ut=Symbol("_vtc"),ei=(e,{slots:t})=>bs(Ol,Tc(e),t);ei.displayName="Transition";const ti={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};ei.props=re({},So,ti);const st=(e,t=[])=>{U(e)?e.forEach(n=>n(...t)):e&&e(...t)},vr=e=>e?U(e)?e.some(t=>t.length>1):e.length>1:!1;function Tc(e){const t={};for(const T in e)T in ti||(t[T]=e[T]);if(e.css===!1)return t;const{name:n="v",type:s,duration:r,enterFromClass:o=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:c=o,appearActiveClass:f=i,appearToClass:u=l,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:m=`${n}-leave-active`,leaveToClass:C=`${n}-leave-to`}=e,M=Ac(r),P=M&&M[0],B=M&&M[1],{onBeforeEnter:W,onEnter:q,onEnterCancelled:p,onLeave:y,onLeaveCancelled:L,onBeforeAppear:R=W,onAppear:N=q,onAppearCancelled:S=p}=t,F=(T,G,oe)=>{rt(T,G?u:l),rt(T,G?f:i),oe&&oe()},v=(T,G)=>{T._isLeaving=!1,rt(T,h),rt(T,C),rt(T,m),G&&G()},H=T=>(G,oe)=>{const ce=T?N:q,V=()=>F(G,T,oe);st(ce,[G,V]),wr(()=>{rt(G,T?c:o),ke(G,T?u:l),vr(ce)||Er(G,s,P,V)})};return re(t,{onBeforeEnter(T){st(W,[T]),ke(T,o),ke(T,i)},onBeforeAppear(T){st(R,[T]),ke(T,c),ke(T,f)},onEnter:H(!1),onAppear:H(!0),onLeave(T,G){T._isLeaving=!0;const oe=()=>v(T,G);ke(T,h),ke(T,m),Lc(),wr(()=>{T._isLeaving&&(rt(T,h),ke(T,C),vr(y)||Er(T,s,B,oe))}),st(y,[T,oe])},onEnterCancelled(T){F(T,!1),st(p,[T])},onAppearCancelled(T){F(T,!0),st(S,[T])},onLeaveCancelled(T){v(T),st(L,[T])}})}function Ac(e){if(e==null)return null;if(Z(e))return[Gn(e.enter),Gn(e.leave)];{const t=Gn(e);return[t,t]}}function Gn(e){return Ti(e)}function ke(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Ut]||(e[Ut]=new Set)).add(t)}function rt(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const n=e[Ut];n&&(n.delete(t),n.size||(e[Ut]=void 0))}function wr(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Rc=0;function Er(e,t,n,s){const r=e._endId=++Rc,o=()=>{r===e._endId&&s()};if(n)return setTimeout(o,n);const{type:i,timeout:l,propCount:c}=Oc(e,t);if(!i)return s();const f=i+"end";let u=0;const h=()=>{e.removeEventListener(f,m),o()},m=C=>{C.target===e&&++u>=c&&h()};setTimeout(()=>{u<c&&h()},l+1),e.addEventListener(f,m)}function Oc(e,t){const n=window.getComputedStyle(e),s=M=>(n[M]||"").split(", "),r=s(`${Be}Delay`),o=s(`${Be}Duration`),i=Cr(r,o),l=s(`${Tt}Delay`),c=s(`${Tt}Duration`),f=Cr(l,c);let u=null,h=0,m=0;t===Be?i>0&&(u=Be,h=i,m=o.length):t===Tt?f>0&&(u=Tt,h=f,m=c.length):(h=Math.max(i,f),u=h>0?i>f?Be:Tt:null,m=u?u===Be?o.length:c.length:0);const C=u===Be&&/\b(transform|all)(,|$)/.test(s(`${Be}Property`).toString());return{type:u,timeout:h,propCount:m,hasTransform:C}}function Cr(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,s)=>xr(n)+xr(e[s])))}function xr(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Lc(){return document.body.offsetHeight}function Ic(e,t,n){const s=e[Ut];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const wn=Symbol("_vod"),ni=Symbol("_vsh"),df={beforeMount(e,{value:t},{transition:n}){e[wn]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):At(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:s}){!t!=!n&&(s?t?(s.beforeEnter(e),At(e,!0),s.enter(e)):s.leave(e,()=>{At(e,!1)}):At(e,t))},beforeUnmount(e,{value:t}){At(e,t)}};function At(e,t){e.style.display=t?e[wn]:"none",e[ni]=!t}const Mc=Symbol(""),Pc=/
Line truncated
|
||||
Reference in new issue
Block a user