Files
GoFilm/film/data/nginx/html/assets/index-71fe0e9a.js
2025-03-23 16:30:56 +08:00

129 lines
1.7 MiB
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
var W8=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var iEe=W8((Fa,$a)=>{(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(a){if(a.ep)return;a.ep=!0;const i=n(a);fetch(a.href,i)}})();/**
* @vue/shared v3.5.13
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**//*! #__NO_SIDE_EFFECTS__ */function g_(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Mn={},Pu=[],nn=()=>{},K8=()=>!1,pv=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),y_=e=>e.startsWith("onUpdate:"),nr=Object.assign,b_=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},q8=Object.prototype.hasOwnProperty,Yt=(e,t)=>q8.call(e,t),Be=Array.isArray,Ou=e=>Qf(e)==="[object Map]",xc=e=>Qf(e)==="[object Set]",As=e=>Qf(e)==="[object Date]",ot=e=>typeof e=="function",rt=e=>typeof e=="string",wi=e=>typeof e=="symbol",It=e=>e!==null&&typeof e=="object",af=e=>(It(e)||ot(e))&&ot(e.then)&&ot(e.catch),lA=Object.prototype.toString,Qf=e=>lA.call(e),G8=e=>Qf(e).slice(8,-1),of=e=>Qf(e)==="[object Object]",__=e=>rt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ld=g_(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),hv=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Y8=/-(\w)/g,ua=hv(e=>e.replace(Y8,(t,n)=>n?n.toUpperCase():"")),X8=/\B([A-Z])/g,Jo=hv(e=>e.replace(X8,"-$1").toLowerCase()),Jf=hv(e=>e.charAt(0).toUpperCase()+e.slice(1)),Nd=hv(e=>e?`on${Jf(e)}`:""),Es=(e,t)=>!Object.is(e,t),Ah=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},uA=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},om=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Q8=e=>{const t=rt(e)?Number(e):NaN;return isNaN(t)?e:t};let Pw;const mv=()=>Pw||(Pw=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function tt(e){if(Be(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],a=rt(r)?tF(r):tt(r);if(a)for(const i in a)t[i]=a[i]}return t}else if(rt(e)||It(e))return e}const J8=/;(?![^(]*\))/g,Z8=/:([^]+)/,eF=/\/\*[^]*?\*\//g;function tF(e){const t={};return e.replace(eF,"").split(J8).forEach(n=>{if(n){const r=n.split(Z8);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function F(e){let t="";if(rt(e))t=e;else if(Be(e))for(let n=0;n<e.length;n++){const r=F(e[n]);r&&(t+=r+" ")}else if(It(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function Ra(e){if(!e)return null;let{class:t,style:n}=e;return t&&!rt(t)&&(e.class=F(t)),n&&(e.style=tt(n)),e}const nF="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",rF=g_(nF);function cA(e){return!!e||e===""}function aF(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=Il(e[r],t[r]);return n}function Il(e,t){if(e===t)return!0;let n=As(e),r=As(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=wi(e),r=wi(t),n||r)return e===t;if(n=Be(e),r=Be(t),n||r)return n&&r?aF(e,t):!1;if(n=It(e),r=It(t),n||r){if(!n||!r)return!1;const a=Object.keys(e).length,i=Object.keys(t).length;if(a!==i)return!1;for(const o in e){const s=e.hasOwnProperty(o),l=t.hasOwnProperty(o);if(s&&!l||!s&&l||!Il(e[o],t[o]))return!1}}return String(e)===String(t)}function T_(e,t){return e.findIndex(n=>Il(n,t))}const dA=e=>!!(e&&e.__v_isRef===!0),de=e=>rt(e)?e:e==null?"":Be(e)||It(e)&&(e.toString===lA||!ot(e.toString))?dA(e)?de(e.value):JSON.stringify(e,fA,2):String(e),fA=(e,t)=>dA(t)?fA(e,t.value):Ou(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,a],i)=>(n[zg(r,i)+" =>"]=a,n),{})}:xc(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>zg(n))}:wi(t)?zg(t):It(t)&&!Be(t)&&!of(t)?String(t):t,zg=(e,t="")=>{var n;return wi(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
* @vue/reactivity v3.5.13
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let Qr;class pA{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Qr,!t&&Qr&&(this.index=(Qr.scopes||(Qr.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=Qr;try{return Qr=this,t()}finally{Qr=n}}}on(){Qr=this}off(){Qr=this.parent}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const a=this.parent.scopes.pop();a&&a!==this&&(this.parent.scopes[this.index]=a,a.index=this.index)}this.parent=void 0}}}function iF(e){return new pA(e)}function hA(){return Qr}function mA(e,t=!1){Qr&&Qr.cleanups.push(e)}let Fn;const jg=new WeakSet;class vA{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Qr&&Qr.active&&Qr.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,jg.has(this)&&(jg.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||yA(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Ow(this),bA(this);const t=Fn,n=vi;Fn=this,vi=!0;try{return this.fn()}finally{_A(this),Fn=t,vi=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)C_(t);this.deps=this.depsTail=void 0,Ow(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?jg.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){ly(this)&&this.run()}get dirty(){return ly(this)}}let gA=0,Fd,$d;function yA(e,t=!1){if(e.flags|=8,t){e.next=$d,$d=e;return}e.next=Fd,Fd=e}function w_(){gA++}function S_(){if(--gA>0)return;if($d){let t=$d;for($d=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Fd;){let t=Fd;for(Fd=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function bA(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function _A(e){let t,n=e.depsTail,r=n;for(;r;){const a=r.prevDep;r.version===-1?(r===n&&(n=a),C_(r),oF(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=a}e.deps=t,e.depsTail=n}function ly(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(TA(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function TA(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===sf))return;e.globalVersion=sf;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!ly(e)){e.flags&=-3;return}const n=Fn,r=vi;Fn=e,vi=!0;try{bA(e);const a=e.fn(e._value);(t.version===0||Es(a,e._value))&&(e._value=a,t.version++)}catch(a){throw t.version++,a}finally{Fn=n,vi=r,_A(e),e.flags&=-3}}function C_(e,t=!1){const{dep:n,prevSub:r,nextSub:a}=e;if(r&&(r.nextSub=a,e.prevSub=void 0),a&&(a.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)C_(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function oF(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let vi=!0;const wA=[];function Us(){wA.push(vi),vi=!1}function Hs(){const e=wA.pop();vi=e===void 0?!0:e}function Ow(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Fn;Fn=void 0;try{t()}finally{Fn=n}}}let sf=0,sF=class{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}};class vv{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){if(!Fn||!vi||Fn===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Fn)n=this.activeLink=new sF(Fn,this),Fn.deps?(n.prevDep=Fn.depsTail,Fn.depsTail.nextDep=n,Fn.depsTail=n):Fn.deps=Fn.depsTail=n,SA(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=Fn.depsTail,n.nextDep=void 0,Fn.depsTail.nextDep=n,Fn.depsTail=n,Fn.deps===n&&(Fn.deps=r)}return n}trigger(t){this.version++,sf++,this.notify(t)}notify(t){w_();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{S_()}}}function SA(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)SA(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const sm=new WeakMap,Tl=Symbol(""),uy=Symbol(""),lf=Symbol("");function Nr(e,t,n){if(vi&&Fn){let r=sm.get(e);r||sm.set(e,r=new Map);let a=r.get(n);a||(r.set(n,a=new vv),a.map=r,a.key=n),a.track()}}function Io(e,t,n,r,a,i){const o=sm.get(e);if(!o){sf++;return}const s=l=>{l&&l.trigger()};if(w_(),t==="clear")o.forEach(s);else{const l=Be(e),u=l&&__(n);if(l&&n==="length"){const c=Number(r);o.forEach((d,p)=>{(p==="length"||p===lf||!wi(p)&&p>=c)&&s(d)})}else switch((n!==void 0||o.has(void 0))&&s(o.get(n)),u&&s(o.get(lf)),t){case"add":l?u&&s(o.get("length")):(s(o.get(Tl)),Ou(e)&&s(o.get(uy)));break;case"delete":l||(s(o.get(Tl)),Ou(e)&&s(o.get(uy)));break;case"set":Ou(e)&&s(o.get(Tl));break}}S_()}function lF(e,t){const n=sm.get(e);return n&&n.get(t)}function ru(e){const t=un(e);return t===e?t:(Nr(t,"iterate",lf),Xa(e)?t:t.map(Fr))}function gv(e){return Nr(e=un(e),"iterate",lf),e}const uF={__proto__:null,[Symbol.iterator](){return Wg(this,Symbol.iterator,Fr)},concat(...e){return ru(this).concat(...e.map(t=>Be(t)?ru(t):t))},entries(){return Wg(this,"entries",e=>(e[1]=Fr(e[1]),e))},every(e,t){return wo(this,"every",e,t,void 0,arguments)},filter(e,t){return wo(this,"filter",e,t,n=>n.map(Fr),arguments)},find(e,t){return wo(this,"find",e,t,Fr,arguments)},findIndex(e,t){return wo(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return wo(this,"findLast",e,t,Fr,arguments)},findLastIndex(e,t){return wo(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return wo(this,"forEach",e,t,void 0,arguments)},includes(...e){return Kg(this,"includes",e)},indexOf(...e){return Kg(this,"indexOf",e)},join(e){return ru(this).join(e)},lastIndexOf(...e){return Kg(this,"lastIndexOf",e)},map(e,t){return wo(this,"map",e,t,void 0,arguments)},pop(){return sd(this,"pop")},push(...e){return sd(this,"push",e)},reduce(e,...t){return Mw(this,"reduce",e,t)},reduceRight(e,...t){return Mw(this,"reduceRight",e,t)},shift(){return sd(this,"shift")},some(e,t){return wo(this,"some",e,t,void 0,arguments)},splice(...e){return sd(this,"splice",e)},toReversed(){return ru(this).toReversed()},toSorted(e){return ru(this).toSorted(e)},toSpliced(...e){return ru(this).toSpliced(...e)},unshift(...e){return sd(this,"unshift",e)},values(){return Wg(this,"values",Fr)}};function Wg(e,t,n){const r=gv(e),a=r[t]();return r!==e&&!Xa(e)&&(a._next=a.next,a.next=()=>{const i=a._next();return i.value&&(i.value=n(i.value)),i}),a}const cF=Array.prototype;function wo(e,t,n,r,a,i){const o=gv(e),s=o!==e&&!Xa(e),l=o[t];if(l!==cF[t]){const d=l.apply(e,i);return s?Fr(d):d}let u=n;o!==e&&(s?u=function(d,p){return n.call(this,Fr(d),p,e)}:n.length>2&&(u=function(d,p){return n.call(this,d,p,e)}));const c=l.call(o,u,r);return s&&a?a(c):c}function Mw(e,t,n,r){const a=gv(e);let i=n;return a!==e&&(Xa(e)?n.length>3&&(i=function(o,s,l){return n.call(this,o,s,l,e)}):i=function(o,s,l){return n.call(this,o,Fr(s),l,e)}),a[t](i,...r)}function Kg(e,t,n){const r=un(e);Nr(r,"iterate",lf);const a=r[t](...n);return(a===-1||a===!1)&&A_(n[0])?(n[0]=un(n[0]),r[t](...n)):a}function sd(e,t,n=[]){Us(),w_();const r=un(e)[t].apply(e,n);return S_(),Hs(),r}const dF=g_("__proto__,__v_isRef,__isVue"),CA=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(wi));function fF(e){wi(e)||(e=String(e));const t=un(this);return Nr(t,"has",e),t.hasOwnProperty(e)}class EA{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const a=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!a;if(n==="__v_isReadonly")return a;if(n==="__v_isShallow")return i;if(n==="__v_raw")return r===(a?i?wF:DA:i?AA:kA).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const o=Be(t);if(!a){let l;if(o&&(l=uF[n]))return l;if(n==="hasOwnProperty")return fF}const s=Reflect.get(t,n,yn(t)?t:r);return(wi(n)?CA.has(n):dF(n))||(a||Nr(t,"get",n),i)?s:yn(s)?o&&__(n)?s:s.value:It(s)?a?Ul(s):Ct(s):s}}class xA extends EA{constructor(t=!1){super(!1,t)}set(t,n,r,a){let i=t[n];if(!this._isShallow){const l=Pl(i);if(!Xa(r)&&!Pl(r)&&(i=un(i),r=un(r)),!Be(t)&&yn(i)&&!yn(r))return l?!1:(i.value=r,!0)}const o=Be(t)&&__(n)?Number(n)<t.length:Yt(t,n),s=Reflect.set(t,n,r,yn(t)?t:a);return t===un(a)&&(o?Es(r,i)&&Io(t,"set",n,r):Io(t,"add",n,r)),s}deleteProperty(t,n){const r=Yt(t,n);t[n];const a=Reflect.deleteProperty(t,n);return a&&r&&Io(t,"delete",n,void 0),a}has(t,n){const r=Reflect.has(t,n);return(!wi(n)||!CA.has(n))&&Nr(t,"has",n),r}ownKeys(t){return Nr(t,"iterate",Be(t)?"length":Tl),Reflect.ownKeys(t)}}class pF extends EA{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const hF=new xA,mF=new pF,vF=new xA(!0),cy=e=>e,Wp=e=>Reflect.getPrototypeOf(e);function gF(e,t,n){return function(...r){const a=this.__v_raw,i=un(a),o=Ou(i),s=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,u=a[e](...r),c=n?cy:t?dy:Fr;return!t&&Nr(i,"iterate",l?uy:Tl),{next(){const{value:d,done:p}=u.next();return p?{value:d,done:p}:{value:s?[c(d[0]),c(d[1])]:c(d),done:p}},[Symbol.iterator](){return this}}}}function Kp(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function yF(e,t){const n={get(a){const i=this.__v_raw,o=un(i),s=un(a);e||(Es(a,s)&&Nr(o,"get",a),Nr(o,"get",s));const{has:l}=Wp(o),u=t?cy:e?dy:Fr;if(l.call(o,a))return u(i.get(a));if(l.call(o,s))return u(i.get(s));i!==o&&i.get(a)},get size(){const a=this.__v_raw;return!e&&Nr(un(a),"iterate",Tl),Reflect.get(a,"size",a)},has(a){const i=this.__v_raw,o=un(i),s=un(a);return e||(Es(a,s)&&Nr(o,"has",a),Nr(o,"has",s)),a===s?i.has(a):i.has(a)||i.has(s)},forEach(a,i){const o=this,s=o.__v_raw,l=un(s),u=t?cy:e?dy:Fr;return!e&&Nr(l,"iterate",Tl),s.forEach((c,d)=>a.call(i,u(c),u(d),o))}};return nr(n,e?{add:Kp("add"),set:Kp("set"),delete:Kp("delete"),clear:Kp("clear")}:{add(a){!t&&!Xa(a)&&!Pl(a)&&(a=un(a));const i=un(this);return Wp(i).has.call(i,a)||(i.add(a),Io(i,"add",a,a)),this},set(a,i){!t&&!Xa(i)&&!Pl(i)&&(i=un(i));const o=un(this),{has:s,get:l}=Wp(o);let u=s.call(o,a);u||(a=un(a),u=s.call(o,a));const c=l.call(o,a);return o.set(a,i),u?Es(i,c)&&Io(o,"set",a,i):Io(o,"add",a,i),this},delete(a){const i=un(this),{has:o,get:s}=Wp(i);let l=o.call(i,a);l||(a=un(a),l=o.call(i,a)),s&&s.call(i,a);const u=i.delete(a);return l&&Io(i,"delete",a,void 0),u},clear(){const a=un(this),i=a.size!==0,o=a.clear();return i&&Io(a,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(a=>{n[a]=gF(a,e,t)}),n}function E_(e,t){const n=yF(e,t);return(r,a,i)=>a==="__v_isReactive"?!e:a==="__v_isReadonly"?e:a==="__v_raw"?r:Reflect.get(Yt(n,a)&&a in r?n:r,a,i)}const bF={get:E_(!1,!1)},_F={get:E_(!1,!0)},TF={get:E_(!0,!1)},kA=new WeakMap,AA=new WeakMap,DA=new WeakMap,wF=new WeakMap;function SF(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function CF(e){return e.__v_skip||!Object.isExtensible(e)?0:SF(G8(e))}function Ct(e){return Pl(e)?e:k_(e,!1,hF,bF,kA)}function x_(e){return k_(e,!1,vF,_F,AA)}function Ul(e){return k_(e,!0,mF,TF,DA)}function k_(e,t,n,r,a){if(!It(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=a.get(e);if(i)return i;const o=CF(e);if(o===0)return e;const s=new Proxy(e,o===2?r:n);return a.set(e,s),s}function Mu(e){return Pl(e)?Mu(e.__v_raw):!!(e&&e.__v_isReactive)}function Pl(e){return!!(e&&e.__v_isReadonly)}function Xa(e){return!!(e&&e.__v_isShallow)}function A_(e){return e?!!e.__v_raw:!1}function un(e){const t=e&&e.__v_raw;return t?un(t):e}function $o(e){return!Yt(e,"__v_skip")&&Object.isExtensible(e)&&uA(e,"__v_skip",!0),e}const Fr=e=>It(e)?Ct(e):e,dy=e=>It(e)?Ul(e):e;function yn(e){return e?e.__v_isRef===!0:!1}function z(e){return IA(e,!1)}function cn(e){return IA(e,!0)}function IA(e,t){return yn(e)?e:new EF(e,t)}class EF{constructor(t,n){this.dep=new vv,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:un(t),this._value=n?t:Fr(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||Xa(t)||Pl(t);t=r?t:un(t),Es(t,n)&&(this._rawValue=t,this._value=r?t:Fr(t),this.dep.trigger())}}function f(e){return yn(e)?e.value:e}const xF={get:(e,t,n)=>t==="__v_raw"?e:f(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const a=e[t];return yn(a)&&!yn(n)?(a.value=n,!0):Reflect.set(e,t,n,r)}};function PA(e){return Mu(e)?e:new Proxy(e,xF)}class kF{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new vv,{get:r,set:a}=t(n.track.bind(n),n.trigger.bind(n));this._get=r,this._set=a}get value(){return this._value=this._get()}set value(t){this._set(t)}}function AF(e){return new kF(e)}function mr(e){const t=Be(e)?new Array(e.length):{};for(const n in e)t[n]=OA(e,n);return t}class DF{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return lF(un(this._object),this._key)}}class IF{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function rn(e,t,n){return yn(e)?e:ot(e)?new IF(e):It(e)&&arguments.length>1?OA(e,t,n):z(e)}function OA(e,t,n){const r=e[t];return yn(r)?r:new DF(e,t,n)}class PF{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new vv(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=sf-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&Fn!==this)return yA(this,!0),!0}get value(){const t=this.dep.track();return TA(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function OF(e,t,n=!1){let r,a;return ot(e)?r=e:(r=e.get,a=e.set),new PF(r,a,n)}const qp={},lm=new WeakMap;let sl;function MF(e,t=!1,n=sl){if(n){let r=lm.get(n);r||lm.set(n,r=[]),r.push(e)}}function RF(e,t,n=Mn){const{immediate:r,deep:a,once:i,scheduler:o,augmentJob:s,call:l}=n,u=_=>a?_:Xa(_)||a===!1||a===0?Po(_,1):Po(_);let c,d,p,h,v=!1,m=!1;if(yn(e)?(d=()=>e.value,v=Xa(e)):Mu(e)?(d=()=>u(e),v=!0):Be(e)?(m=!0,v=e.some(_=>Mu(_)||Xa(_)),d=()=>e.map(_=>{if(yn(_))return _.value;if(Mu(_))return u(_);if(ot(_))return l?l(_,2):_()})):ot(e)?t?d=l?()=>l(e,2):e:d=()=>{if(p){Us();try{p()}finally{Hs()}}const _=sl;sl=c;try{return l?l(e,3,[h]):e(h)}finally{sl=_}}:d=nn,t&&a){const _=d,w=a===!0?1/0:a;d=()=>Po(_(),w)}const g=hA(),y=()=>{c.stop(),g&&g.active&&b_(g.effects,c)};if(i&&t){const _=t;t=(...w)=>{_(...w),y()}}let T=m?new Array(e.length).fill(qp):qp;const b=_=>{if(!(!(c.flags&1)||!c.dirty&&!_))if(t){const w=c.run();if(a||v||(m?w.some((S,A)=>Es(S,T[A])):Es(w,T))){p&&p();const S=sl;sl=c;try{const A=[w,T===qp?void 0:m&&T[0]===qp?[]:T,h];l?l(t,3,A):t(...A),T=w}finally{sl=S}}}else c.run()};return s&&s(b),c=new vA(d),c.scheduler=o?()=>o(b,!1):b,h=_=>MF(_,!1,c),p=c.onStop=()=>{const _=lm.get(c);if(_){if(l)l(_,4);else for(const w of _)w();lm.delete(c)}},t?r?b(!0):T=c.run():o?o(b.bind(null,!0),!0):c.run(),y.pause=c.pause.bind(c),y.resume=c.resume.bind(c),y.stop=y,y}function Po(e,t=1/0,n){if(t<=0||!It(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,yn(e))Po(e.value,t,n);else if(Be(e))for(let r=0;r<e.length;r++)Po(e[r],t,n);else if(xc(e)||Ou(e))e.forEach(r=>{Po(r,t,n)});else if(of(e)){for(const r in e)Po(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Po(e[r],t,n)}return e}/**
* @vue/runtime-core v3.5.13
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function Zf(e,t,n,r){try{return r?e(...r):e()}catch(a){yv(a,t,n)}}function Si(e,t,n,r){if(ot(e)){const a=Zf(e,t,n,r);return a&&af(a)&&a.catch(i=>{yv(i,t,n)}),a}if(Be(e)){const a=[];for(let i=0;i<e.length;i++)a.push(Si(e[i],t,n,r));return a}}function yv(e,t,n,r=!0){const a=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||Mn;if(t){let s=t.parent;const l=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${n}`;for(;s;){const c=s.ec;if(c){for(let d=0;d<c.length;d++)if(c[d](e,l,u)===!1)return}s=s.parent}if(i){Us(),Zf(i,null,10,[e,l,u]),Hs();return}}LF(e,n,a,r,o)}function LF(e,t,n,r=!0,a=!1){if(a)throw e;console.error(e)}const Jr=[];let Ui=-1;const Ru=[];let bs=null,yu=0;const MA=Promise.resolve();let um=null;function it(e){const t=um||MA;return e?t.then(this?e.bind(this):e):t}function NF(e){let t=Ui+1,n=Jr.length;for(;t<n;){const r=t+n>>>1,a=Jr[r],i=uf(a);i<e||i===e&&a.flags&2?t=r+1:n=r}return t}function D_(e){if(!(e.flags&1)){const t=uf(e),n=Jr[Jr.length-1];!n||!(e.flags&2)&&t>=uf(n)?Jr.push(e):Jr.splice(NF(t),0,e),e.flags|=1,RA()}}function RA(){um||(um=MA.then(NA))}function FF(e){Be(e)?Ru.push(...e):bs&&e.id===-1?bs.splice(yu+1,0,e):e.flags&1||(Ru.push(e),e.flags|=1),RA()}function Rw(e,t,n=Ui+1){for(;n<Jr.length;n++){const r=Jr[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;Jr.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function LA(e){if(Ru.length){const t=[...new Set(Ru)].sort((n,r)=>uf(n)-uf(r));if(Ru.length=0,bs){bs.push(...t);return}for(bs=t,yu=0;yu<bs.length;yu++){const n=bs[yu];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}bs=null,yu=0}}const uf=e=>e.id==null?e.flags&2?-1:1/0:e.id;function NA(e){const t=nn;try{for(Ui=0;Ui<Jr.length;Ui++){const n=Jr[Ui];n&&!(n.flags&8)&&(n.flags&4&&(n.flags&=-2),Zf(n,n.i,n.i?15:14),n.flags&4||(n.flags&=-2))}}finally{for(;Ui<Jr.length;Ui++){const n=Jr[Ui];n&&(n.flags&=-2)}Ui=-1,Jr.length=0,LA(),um=null,(Jr.length||Ru.length)&&NA()}}let br=null,FA=null;function cm(e){const t=br;return br=e,FA=e&&e.type.__scopeId||null,t}function P(e,t=br,n){if(!t||e._n)return e;const r=(...a)=>{r._d&&qw(-1);const i=cm(t);let o;try{o=e(...a)}finally{cm(i),r._d&&qw(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function gt(e,t){if(br===null)return e;const n=Sv(br),r=e.dirs||(e.dirs=[]);for(let a=0;a<t.length;a++){let[i,o,s,l=Mn]=t[a];i&&(ot(i)&&(i={mounted:i,updated:i}),i.deep&&Po(o),r.push({dir:i,instance:n,value:o,oldValue:void 0,arg:s,modifiers:l}))}return e}function tl(e,t,n,r){const a=e.dirs,i=t&&t.dirs;for(let o=0;o<a.length;o++){const s=a[o];i&&(s.oldValue=i[o].value);let l=s.dir[r];l&&(Us(),Si(l,n,8,[e.el,s,e,t]),Hs())}}const $A=Symbol("_vte"),BA=e=>e.__isTeleport,Bd=e=>e&&(e.disabled||e.disabled===""),Lw=e=>e&&(e.defer||e.defer===""),Nw=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Fw=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,fy=(e,t)=>{const n=e&&e.to;return rt(n)?t?t(n):null:n},VA={name:"Teleport",__isTeleport:!0,process(e,t,n,r,a,i,o,s,l,u){const{mc:c,pc:d,pbc:p,o:{insert:h,querySelector:v,createText:m,createComment:g}}=u,y=Bd(t.props);let{shapeFlag:T,children:b,dynamicChildren:_}=t;if(e==null){const w=t.el=m(""),S=t.anchor=m("");h(w,n,r),h(S,n,r);const A=(D,O)=>{T&16&&(a&&a.isCE&&(a.ce._teleportTarget=D),c(b,D,O,a,i,o,s,l))},I=()=>{const D=t.target=fy(t.props,v),O=UA(D,t,m,h);D&&(o!=="svg"&&Nw(D)?o="svg":o!=="mathml"&&Fw(D)&&(o="mathml"),y||(A(D,O),Dh(t,!1)))};y&&(A(n,S),Dh(t,!0)),Lw(t.props)?Xr(()=>{I(),t.el.__isMounted=!0},i):I()}else{if(Lw(t.props)&&!e.el.__isMounted){Xr(()=>{VA.process(e,t,n,r,a,i,o,s,l,u),delete e.el.__isMounted},i);return}t.el=e.el,t.targetStart=e.targetStart;const w=t.anchor=e.anchor,S=t.target=e.target,A=t.targetAnchor=e.targetAnchor,I=Bd(e.props),D=I?n:S,O=I?w:A;if(o==="svg"||Nw(S)?o="svg":(o==="mathml"||Fw(S))&&(o="mathml"),_?(p(e.dynamicChildren,_,D,a,i,o,s),N_(e,t,!0)):l||d(e,t,D,O,a,i,o,s,!1),y)I?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Gp(t,n,w,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const V=t.target=fy(t.props,v);V&&Gp(t,V,null,u,0)}else I&&Gp(t,S,A,u,1);Dh(t,y)}},remove(e,t,n,{um:r,o:{remove:a}},i){const{shapeFlag:o,children:s,anchor:l,targetStart:u,targetAnchor:c,target:d,props:p}=e;if(d&&(a(u),a(c)),i&&a(l),o&16){const h=i||!Bd(p);for(let v=0;v<s.length;v++){const m=s[v];r(m,t,n,h,!!m.dynamicChildren)}}},move:Gp,hydrate:$F};function Gp(e,t,n,{o:{insert:r},m:a},i=2){i===0&&r(e.targetAnchor,t,n);const{el:o,anchor:s,shapeFlag:l,children:u,props:c}=e,d=i===2;if(d&&r(o,t,n),(!d||Bd(c))&&l&16)for(let p=0;p<u.length;p++)a(u[p],t,n,2);d&&r(s,t,n)}function $F(e,t,n,r,a,i,{o:{nextSibling:o,parentNode:s,querySelector:l,insert:u,createText:c}},d){const p=t.target=fy(t.props,l);if(p){const h=Bd(t.props),v=p._lpa||p.firstChild;if(t.shapeFlag&16)if(h)t.anchor=d(o(e),t,s(e),n,r,a,i),t.targetStart=v,t.targetAnchor=v&&o(v);else{t.anchor=o(e);let m=v;for(;m;){if(m&&m.nodeType===8){if(m.data==="teleport start anchor")t.targetStart=m;else if(m.data==="teleport anchor"){t.targetAnchor=m,p._lpa=t.targetAnchor&&o(t.targetAnchor);break}}m=o(m)}t.targetAnchor||UA(p,t,c,u),d(v&&o(v),t,p,n,r,a,i)}Dh(t,h)}return t.anchor&&o(t.anchor)}const BF=VA;function Dh(e,t){const n=e.ctx;if(n&&n.ut){let r,a;for(t?(r=e.el,a=e.anchor):(r=e.targetStart,a=e.targetAnchor);r&&r!==a;)r.nodeType===1&&r.setAttribute("data-v-owner",n.uid),r=r.nextSibling;n.ut()}}function UA(e,t,n,r){const a=t.targetStart=n(""),i=t.targetAnchor=n("");return a[$A]=i,e&&(r(a,e),r(i,e)),i}const _s=Symbol("_leaveCb"),Yp=Symbol("_enterCb");function HA(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return ht(()=>{e.isMounted=!0}),fn(()=>{e.isUnmounting=!0}),e}const ja=[Function,Array],zA={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:ja,onEnter:ja,onAfterEnter:ja,onEnterCancelled:ja,onBeforeLeave:ja,onLeave:ja,onAfterLeave:ja,onLeaveCancelled:ja,onBeforeAppear:ja,onAppear:ja,onAfterAppear:ja,onAppearCancelled:ja},jA=e=>{const t=e.subTree;return t.component?jA(t.component):t},VF={name:"BaseTransition",props:zA,setup(e,{slots:t}){const n=Mt(),r=HA();return()=>{const a=t.default&&I_(t.default(),!0);if(!a||!a.length)return;const i=WA(a),o=un(e),{mode:s}=o;if(r.isLeaving)return qg(i);const l=$w(i);if(!l)return qg(i);let u=cf(l,o,r,n,d=>u=d);l.type!==fr&&Ol(l,u);let c=n.subTree&&$w(n.subTree);if(c&&c.type!==fr&&!cl(l,c)&&jA(n).type!==fr){let d=cf(c,o,r,n);if(Ol(c,d),s==="out-in"&&l.type!==fr)return r.isLeaving=!0,d.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete d.afterLeave,c=void 0},qg(i);s==="in-out"&&l.type!==fr?d.delayLeave=(p,h,v)=>{const m=KA(r,c);m[String(c.key)]=c,p[_s]=()=>{h(),p[_s]=void 0,delete u.delayedLeave,c=void 0},u.delayedLeave=()=>{v(),delete u.delayedLeave,c=void 0}}:c=void 0}else c&&(c=void 0);return i}}};function WA(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==fr){t=n;break}}return t}const UF=VF;function KA(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function cf(e,t,n,r,a){const{appear:i,mode:o,persisted:s=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:c,onEnterCancelled:d,onBeforeLeave:p,onLeave:h,onAfterLeave:v,onLeaveCancelled:m,onBeforeAppear:g,onAppear:y,onAfterAppear:T,onAppearCancelled:b}=t,_=String(e.key),w=KA(n,e),S=(D,O)=>{D&&Si(D,r,9,O)},A=(D,O)=>{const V=O[1];S(D,O),Be(D)?D.every(N=>N.length<=1)&&V():D.length<=1&&V()},I={mode:o,persisted:s,beforeEnter(D){let O=l;if(!n.isMounted)if(i)O=g||l;else return;D[_s]&&D[_s](!0);const V=w[_];V&&cl(e,V)&&V.el[_s]&&V.el[_s](),S(O,[D])},enter(D){let O=u,V=c,N=d;if(!n.isMounted)if(i)O=y||u,V=T||c,N=b||d;else return;let K=!1;const Y=D[Yp]=q=>{K||(K=!0,q?S(N,[D]):S(V,[D]),I.delayedLeave&&I.delayedLeave(),D[Yp]=void 0)};O?A(O,[D,Y]):Y()},leave(D,O){const V=String(e.key);if(D[Yp]&&D[Yp](!0),n.isUnmounting)return O();S(p,[D]);let N=!1;const K=D[_s]=Y=>{N||(N=!0,O(),Y?S(m,[D]):S(v,[D]),D[_s]=void 0,w[V]===e&&delete w[V])};w[V]=e,h?A(h,[D,K]):K()},clone(D){const O=cf(D,t,n,r,a);return a&&a(O),O}};return I}function qg(e){if(bv(e))return e=Ho(e),e.children=null,e}function $w(e){if(!bv(e))return BA(e.type)&&e.children?WA(e.children):e;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&ot(n.default))return n.default()}}function Ol(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Ol(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function I_(e,t=!1,n){let r=[],a=0;for(let i=0;i<e.length;i++){let o=e[i];const s=n==null?o.key:String(n)+String(o.key!=null?o.key:i);o.type===Ge?(o.patchFlag&128&&a++,r=r.concat(I_(o.children,t,s))):(t||o.type!==fr)&&r.push(s!=null?Ho(o,{key:s}):o)}if(a>1)for(let i=0;i<r.length;i++)r[i].patchFlag=-2;return r}/*! #__NO_SIDE_EFFECTS__ */function J(e,t){return ot(e)?(()=>nr({name:e.name},t,{setup:e}))():e}function qA(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function dm(e,t,n,r,a=!1){if(Be(e)){e.forEach((v,m)=>dm(v,t&&(Be(t)?t[m]:t),n,r,a));return}if(Lu(r)&&!a){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&dm(e,t,n,r.component.subTree);return}const i=r.shapeFlag&4?Sv(r.component):r.el,o=a?null:i,{i:s,r:l}=e,u=t&&t.r,c=s.refs===Mn?s.refs={}:s.refs,d=s.setupState,p=un(d),h=d===Mn?()=>!1:v=>Yt(p,v);if(u!=null&&u!==l&&(rt(u)?(c[u]=null,h(u)&&(d[u]=null)):yn(u)&&(u.value=null)),ot(l))Zf(l,s,12,[o,c]);else{const v=rt(l),m=yn(l);if(v||m){const g=()=>{if(e.f){const y=v?h(l)?d[l]:c[l]:l.value;a?Be(y)&&b_(y,i):Be(y)?y.includes(i)||y.push(i):v?(c[l]=[i],h(l)&&(d[l]=c[l])):(l.value=[i],e.k&&(c[e.k]=l.value))}else v?(c[l]=o,h(l)&&(d[l]=o)):m&&(l.value=o,e.k&&(c[e.k]=o))};o?(g.id=-1,Xr(g,n)):g()}}}mv().requestIdleCallback;mv().cancelIdleCallback;const Lu=e=>!!e.type.__asyncLoader,bv=e=>e.type.__isKeepAlive;function P_(e,t){YA(e,"a",t)}function GA(e,t){YA(e,"da",t)}function YA(e,t,n=Dr){const r=e.__wdc||(e.__wdc=()=>{let a=n;for(;a;){if(a.isDeactivated)return;a=a.parent}return e()});if(_v(t,r,n),n){let a=n.parent;for(;a&&a.parent;)bv(a.parent.vnode)&&HF(r,t,n,a),a=a.parent}}function HF(e,t,n,r){const a=_v(t,e,r,!0);zs(()=>{b_(r[t],a)},n)}function _v(e,t,n=Dr,r=!1){if(n){const a=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{Us();const s=ep(n),l=Si(t,n,e,o);return s(),Hs(),l});return r?a.unshift(i):a.push(i),i}}const Zo=e=>(t,n=Dr)=>{(!ff||e==="sp")&&_v(e,(...r)=>t(...r),n)},Hl=Zo("bm"),ht=Zo("m"),XA=Zo("bu"),Di=Zo("u"),fn=Zo("bum"),zs=Zo("um"),zF=Zo("sp"),jF=Zo("rtg"),WF=Zo("rtc");function KF(e,t=Dr){_v("ec",e,t)}const O_="components",qF="directives";function Rt(e,t){return M_(O_,e,!0,t)||e}const QA=Symbol.for("v-ndc");function Lt(e){return rt(e)?M_(O_,e,!1)||e:e||QA}function Tv(e){return M_(qF,e)}function M_(e,t,n=!0,r=!1){const a=br||Dr;if(a){const i=a.type;if(e===O_){const s=P$(i,!1);if(s&&(s===t||s===ua(t)||s===Jf(ua(t))))return i}const o=Bw(a[e]||i[e],t)||Bw(a.appContext[e],t);return!o&&r?i:o}}function Bw(e,t){return e&&(e[t]||e[ua(t)]||e[Jf(ua(t))])}function mt(e,t,n,r){let a;const i=n&&n[r],o=Be(e);if(o||rt(e)){const s=o&&Mu(e);let l=!1;s&&(l=!Xa(e),e=gv(e)),a=new Array(e.length);for(let u=0,c=e.length;u<c;u++)a[u]=t(l?Fr(e[u]):e[u],u,void 0,i&&i[u])}else if(typeof e=="number"){a=new Array(e);for(let s=0;s<e;s++)a[s]=t(s+1,s,void 0,i&&i[s])}else if(It(e))if(e[Symbol.iterator])a=Array.from(e,(s,l)=>t(s,l,void 0,i&&i[l]));else{const s=Object.keys(e);a=new Array(s.length);for(let l=0,u=s.length;l<u;l++){const c=s[l];a[l]=t(e[c],c,l,i&&i[l])}}else a=[];return n&&(n[r]=a),a}function Ua(e,t){for(let n=0;n<t.length;n++){const r=t[n];if(Be(r))for(let a=0;a<r.length;a++)e[r[a].name]=r[a].fn;else r&&(e[r.name]=r.key?(...a)=>{const i=r.fn(...a);return i&&(i.key=r.key),i}:r.fn)}return e}function fe(e,t,n={},r,a){if(br.ce||br.parent&&Lu(br.parent)&&br.parent.ce)return t!=="default"&&(n.name=t),x(),he(Ge,null,[E("slot",n,r&&r())],64);let i=e[t];i&&i._c&&(i._d=!1),x();const o=i&&JA(i(n)),s=n.key||o&&o.key,l=he(Ge,{key:(s&&!wi(s)?s:`_${t}`)+(!o&&r?"_fb":"")},o||(r?r():[]),o&&e._===1?64:-2);return!a&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),i&&i._c&&(i._d=!0),l}function JA(e){return e.some(t=>wn(t)?!(t.type===fr||t.type===Ge&&!JA(t.children)):!0)?e:null}function GF(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:Nd(r)]=e[r];return n}const py=e=>e?yD(e)?Sv(e):py(e.parent):null,Vd=nr(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>py(e.parent),$root:e=>py(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>R_(e),$forceUpdate:e=>e.f||(e.f=()=>{D_(e.update)}),$nextTick:e=>e.n||(e.n=it.bind(e.proxy)),$watch:e=>m$.bind(e)}),Gg=(e,t)=>e!==Mn&&!e.__isScriptSetup&&Yt(e,t),YF={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:a,props:i,accessCache:o,type:s,appContext:l}=e;let u;if(t[0]!=="$"){const h=o[t];if(h!==void 0)switch(h){case 1:return r[t];case 2:return a[t];case 4:return n[t];case 3:return i[t]}else{if(Gg(r,t))return o[t]=1,r[t];if(a!==Mn&&Yt(a,t))return o[t]=2,a[t];if((u=e.propsOptions[0])&&Yt(u,t))return o[t]=3,i[t];if(n!==Mn&&Yt(n,t))return o[t]=4,n[t];hy&&(o[t]=0)}}const c=Vd[t];let d,p;if(c)return t==="$attrs"&&Nr(e.attrs,"get",""),c(e);if((d=s.__cssModules)&&(d=d[t]))return d;if(n!==Mn&&Yt(n,t))return o[t]=4,n[t];if(p=l.config.globalProperties,Yt(p,t))return p[t]},set({_:e},t,n){const{data:r,setupState:a,ctx:i}=e;return Gg(a,t)?(a[t]=n,!0):r!==Mn&&Yt(r,t)?(r[t]=n,!0):Yt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:a,propsOptions:i}},o){let s;return!!n[o]||e!==Mn&&Yt(e,o)||Gg(t,o)||(s=i[0])&&Yt(s,o)||Yt(r,o)||Yt(Vd,o)||Yt(a.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Yt(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function ir(){return ZA().slots}function es(){return ZA().attrs}function ZA(){const e=Mt();return e.setupContext||(e.setupContext=_D(e))}function Vw(e){return Be(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let hy=!0;function XF(e){const t=R_(e),n=e.proxy,r=e.ctx;hy=!1,t.beforeCreate&&Uw(t.beforeCreate,e,"bc");const{data:a,computed:i,methods:o,watch:s,provide:l,inject:u,created:c,beforeMount:d,mounted:p,beforeUpdate:h,updated:v,activated:m,deactivated:g,beforeDestroy:y,beforeUnmount:T,destroyed:b,unmounted:_,render:w,renderTracked:S,renderTriggered:A,errorCaptured:I,serverPrefetch:D,expose:O,inheritAttrs:V,components:N,directives:K,filters:Y}=t;if(u&&QF(u,r,null),o)for(const j in o){const W=o[j];ot(W)&&(r[j]=W.bind(n))}if(a){const j=a.call(n,n);It(j)&&(e.data=Ct(j))}if(hy=!0,i)for(const j in i){const W=i[j],H=ot(W)?W.bind(n,n):ot(W.get)?W.get.bind(n,n):nn,X=!ot(W)&&ot(W.set)?W.set.bind(n):nn,re=k({get:H,set:X});Object.defineProperty(r,j,{enumerable:!0,configurable:!0,get:()=>re.value,set:le=>re.value=le})}if(s)for(const j in s)eD(s[j],r,n,j);if(l){const j=ot(l)?l.call(n):l;Reflect.ownKeys(j).forEach(W=>{Vt(W,j[W])})}c&&Uw(c,e,"c");function $(j,W){Be(W)?W.forEach(H=>j(H.bind(n))):W&&j(W.bind(n))}if($(Hl,d),$(ht,p),$(XA,h),$(Di,v),$(P_,m),$(GA,g),$(KF,I),$(WF,S),$(jF,A),$(fn,T),$(zs,_),$(zF,D),Be(O))if(O.length){const j=e.exposed||(e.exposed={});O.forEach(W=>{Object.defineProperty(j,W,{get:()=>n[W],set:H=>n[W]=H})})}else e.exposed||(e.exposed={});w&&e.render===nn&&(e.render=w),V!=null&&(e.inheritAttrs=V),N&&(e.components=N),K&&(e.directives=K),D&&qA(e)}function QF(e,t,n=nn){Be(e)&&(e=my(e));for(const r in e){const a=e[r];let i;It(a)?"default"in a?i=Qe(a.from||r,a.default,!0):i=Qe(a.from||r):i=Qe(a),yn(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[r]=i}}function Uw(e,t,n){Si(Be(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function eD(e,t,n,r){let a=r.includes(".")?fD(n,r):()=>n[r];if(rt(e)){const i=t[e];ot(i)&&Ie(a,i)}else if(ot(e))Ie(a,e.bind(n));else if(It(e))if(Be(e))e.forEach(i=>eD(i,t,n,r));else{const i=ot(e.handler)?e.handler.bind(n):t[e.handler];ot(i)&&Ie(a,i,e)}}function R_(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:a,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,s=i.get(t);let l;return s?l=s:!a.length&&!n&&!r?l=t:(l={},a.length&&a.forEach(u=>fm(l,u,o,!0)),fm(l,t,o)),It(t)&&i.set(t,l),l}function fm(e,t,n,r=!1){const{mixins:a,extends:i}=t;i&&fm(e,i,n,!0),a&&a.forEach(o=>fm(e,o,n,!0));for(const o in t)if(!(r&&o==="expose")){const s=JF[o]||n&&n[o];e[o]=s?s(e[o],t[o]):t[o]}return e}const JF={data:Hw,props:zw,emits:zw,methods:Ed,computed:Ed,beforeCreate:Yr,created:Yr,beforeMount:Yr,mounted:Yr,beforeUpdate:Yr,updated:Yr,beforeDestroy:Yr,beforeUnmount:Yr,destroyed:Yr,unmounted:Yr,activated:Yr,deactivated:Yr,errorCaptured:Yr,serverPrefetch:Yr,components:Ed,directives:Ed,watch:e$,provide:Hw,inject:ZF};function Hw(e,t){return t?e?function(){return nr(ot(e)?e.call(this,this):e,ot(t)?t.call(this,this):t)}:t:e}function ZF(e,t){return Ed(my(e),my(t))}function my(e){if(Be(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Yr(e,t){return e?[...new Set([].concat(e,t))]:t}function Ed(e,t){return e?nr(Object.create(null),e,t):t}function zw(e,t){return e?Be(e)&&Be(t)?[...new Set([...e,...t])]:nr(Object.create(null),Vw(e),Vw(t??{})):t}function e$(e,t){if(!e)return t;if(!t)return e;const n=nr(Object.create(null),e);for(const r in t)n[r]=Yr(e[r],t[r]);return n}function tD(){return{app:null,config:{isNativeTag:K8,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let t$=0;function n$(e,t){return function(r,a=null){ot(r)||(r=nr({},r)),a!=null&&!It(a)&&(a=null);const i=tD(),o=new WeakSet,s=[];let l=!1;const u=i.app={_uid:t$++,_component:r,_props:a,_container:null,_context:i,_instance:null,version:M$,get config(){return i.config},set config(c){},use(c,...d){return o.has(c)||(c&&ot(c.install)?(o.add(c),c.install(u,...d)):ot(c)&&(o.add(c),c(u,...d))),u},mixin(c){return i.mixins.includes(c)||i.mixins.push(c),u},component(c,d){return d?(i.components[c]=d,u):i.components[c]},directive(c,d){return d?(i.directives[c]=d,u):i.directives[c]},mount(c,d,p){if(!l){const h=u._ceVNode||E(r,a);return h.appContext=i,p===!0?p="svg":p===!1&&(p=void 0),d&&t?t(h,c):e(h,c,p),l=!0,u._container=c,c.__vue_app__=u,Sv(h.component)}},onUnmount(c){s.push(c)},unmount(){l&&(Si(s,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(c,d){return i.provides[c]=d,u},runWithContext(c){const d=Nu;Nu=u;try{return c()}finally{Nu=d}}};return u}}let Nu=null;function Vt(e,t){if(Dr){let n=Dr.provides;const r=Dr.parent&&Dr.parent.provides;r===n&&(n=Dr.provides=Object.create(r)),n[e]=t}}function Qe(e,t,n=!1){const r=Dr||br;if(r||Nu){const a=Nu?Nu._context.provides:r?r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(a&&e in a)return a[e];if(arguments.length>1)return n&&ot(t)?t.call(r&&r.proxy):t}}const nD={},rD=()=>Object.create(nD),aD=e=>Object.getPrototypeOf(e)===nD;function r$(e,t,n,r=!1){const a={},i=rD();e.propsDefaults=Object.create(null),iD(e,t,a,i);for(const o in e.propsOptions[0])o in a||(a[o]=void 0);n?e.props=r?a:x_(a):e.type.props?e.props=a:e.props=i,e.attrs=i}function a$(e,t,n,r){const{props:a,attrs:i,vnode:{patchFlag:o}}=e,s=un(a),[l]=e.propsOptions;let u=!1;if((r||o>0)&&!(o&16)){if(o&8){const c=e.vnode.dynamicProps;for(let d=0;d<c.length;d++){let p=c[d];if(wv(e.emitsOptions,p))continue;const h=t[p];if(l)if(Yt(i,p))h!==i[p]&&(i[p]=h,u=!0);else{const v=ua(p);a[v]=vy(l,s,v,h,e,!1)}else h!==i[p]&&(i[p]=h,u=!0)}}}else{iD(e,t,a,i)&&(u=!0);let c;for(const d in s)(!t||!Yt(t,d)&&((c=Jo(d))===d||!Yt(t,c)))&&(l?n&&(n[d]!==void 0||n[c]!==void 0)&&(a[d]=vy(l,s,d,void 0,e,!0)):delete a[d]);if(i!==s)for(const d in i)(!t||!Yt(t,d))&&(delete i[d],u=!0)}u&&Io(e.attrs,"set","")}function iD(e,t,n,r){const[a,i]=e.propsOptions;let o=!1,s;if(t)for(let l in t){if(Ld(l))continue;const u=t[l];let c;a&&Yt(a,c=ua(l))?!i||!i.includes(c)?n[c]=u:(s||(s={}))[c]=u:wv(e.emitsOptions,l)||(!(l in r)||u!==r[l])&&(r[l]=u,o=!0)}if(i){const l=un(n),u=s||Mn;for(let c=0;c<i.length;c++){const d=i[c];n[d]=vy(a,l,d,u[d],e,!Yt(u,d))}}return o}function vy(e,t,n,r,a,i){const o=e[n];if(o!=null){const s=Yt(o,"default");if(s&&r===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&ot(l)){const{propsDefaults:u}=a;if(n in u)r=u[n];else{const c=ep(a);r=u[n]=l.call(null,t),c()}}else r=l;a.ce&&a.ce._setProp(n,r)}o[0]&&(i&&!s?r=!1:o[1]&&(r===""||r===Jo(n))&&(r=!0))}return r}const i$=new WeakMap;function oD(e,t,n=!1){const r=n?i$:t.propsCache,a=r.get(e);if(a)return a;const i=e.props,o={},s=[];let l=!1;if(!ot(e)){const c=d=>{l=!0;const[p,h]=oD(d,t,!0);nr(o,p),h&&s.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!i&&!l)return It(e)&&r.set(e,Pu),Pu;if(Be(i))for(let c=0;c<i.length;c++){const d=ua(i[c]);jw(d)&&(o[d]=Mn)}else if(i)for(const c in i){const d=ua(c);if(jw(d)){const p=i[c],h=o[d]=Be(p)||ot(p)?{type:p}:nr({},p),v=h.type;let m=!1,g=!0;if(Be(v))for(let y=0;y<v.length;++y){const T=v[y],b=ot(T)&&T.name;if(b==="Boolean"){m=!0;break}else b==="String"&&(g=!1)}else m=ot(v)&&v.name==="Boolean";h[0]=m,h[1]=g,(m||Yt(h,"default"))&&s.push(d)}}const u=[o,s];return It(e)&&r.set(e,u),u}function jw(e){return e[0]!=="$"&&!Ld(e)}const sD=e=>e[0]==="_"||e==="$stable",L_=e=>Be(e)?e.map(zi):[zi(e)],o$=(e,t,n)=>{if(t._n)return t;const r=P((...a)=>L_(t(...a)),n);return r._c=!1,r},lD=(e,t,n)=>{const r=e._ctx;for(const a in e){if(sD(a))continue;const i=e[a];if(ot(i))t[a]=o$(a,i,r);else if(i!=null){const o=L_(i);t[a]=()=>o}}},uD=(e,t)=>{const n=L_(t);e.slots.default=()=>n},cD=(e,t,n)=>{for(const r in t)(n||r!=="_")&&(e[r]=t[r])},s$=(e,t,n)=>{const r=e.slots=rD();if(e.vnode.shapeFlag&32){const a=t._;a?(cD(r,t,n),n&&uA(r,"_",a,!0)):lD(t,r)}else t&&uD(e,t)},l$=(e,t,n)=>{const{vnode:r,slots:a}=e;let i=!0,o=Mn;if(r.shapeFlag&32){const s=t._;s?n&&s===1?i=!1:cD(a,t,n):(i=!t.$stable,lD(t,a)),o=t}else t&&(uD(e,t),o={default:1});if(i)for(const s in a)!sD(s)&&o[s]==null&&delete a[s]},Xr=w$;function u$(e){return c$(e)}function c$(e,t){const n=mv();n.__VUE__=!0;const{insert:r,remove:a,patchProp:i,createElement:o,createText:s,createComment:l,setText:u,setElementText:c,parentNode:d,nextSibling:p,setScopeId:h=nn,insertStaticContent:v}=e,m=(Z,ie,Ce,$e=null,Se=null,De=null,xe=void 0,Ve=null,ze=!!ie.dynamicChildren)=>{if(Z===ie)return;Z&&!cl(Z,ie)&&($e=te(Z),le(Z,Se,De,!0),Z=null),ie.patchFlag===-2&&(ze=!1,ie.dynamicChildren=null);const{type:je,ref:nt,shapeFlag:Ae}=ie;switch(je){case kc:g(Z,ie,Ce,$e);break;case fr:y(Z,ie,Ce,$e);break;case Ih:Z==null&&T(ie,Ce,$e,xe);break;case Ge:N(Z,ie,Ce,$e,Se,De,xe,Ve,ze);break;default:Ae&1?w(Z,ie,Ce,$e,Se,De,xe,Ve,ze):Ae&6?K(Z,ie,Ce,$e,Se,De,xe,Ve,ze):(Ae&64||Ae&128)&&je.process(Z,ie,Ce,$e,Se,De,xe,Ve,ze,Fe)}nt!=null&&Se&&dm(nt,Z&&Z.ref,De,ie||Z,!ie)},g=(Z,ie,Ce,$e)=>{if(Z==null)r(ie.el=s(ie.children),Ce,$e);else{const Se=ie.el=Z.el;ie.children!==Z.children&&u(Se,ie.children)}},y=(Z,ie,Ce,$e)=>{Z==null?r(ie.el=l(ie.children||""),Ce,$e):ie.el=Z.el},T=(Z,ie,Ce,$e)=>{[Z.el,Z.anchor]=v(Z.children,ie,Ce,$e,Z.el,Z.anchor)},b=({el:Z,anchor:ie},Ce,$e)=>{let Se;for(;Z&&Z!==ie;)Se=p(Z),r(Z,Ce,$e),Z=Se;r(ie,Ce,$e)},_=({el:Z,anchor:ie})=>{let Ce;for(;Z&&Z!==ie;)Ce=p(Z),a(Z),Z=Ce;a(ie)},w=(Z,ie,Ce,$e,Se,De,xe,Ve,ze)=>{ie.type==="svg"?xe="svg":ie.type==="math"&&(xe="mathml"),Z==null?S(ie,Ce,$e,Se,De,xe,Ve,ze):D(Z,ie,Se,De,xe,Ve,ze)},S=(Z,ie,Ce,$e,Se,De,xe,Ve)=>{let ze,je;const{props:nt,shapeFlag:Ae,transition:Xe,dirs:ct}=Z;if(ze=Z.el=o(Z.type,De,nt&&nt.is,nt),Ae&8?c(ze,Z.children):Ae&16&&I(Z.children,ze,null,$e,Se,Yg(Z,De),xe,Ve),ct&&tl(Z,null,$e,"created"),A(ze,Z,Z.scopeId,xe,$e),nt){for(const Pt in nt)Pt!=="value"&&!Ld(Pt)&&i(ze,Pt,null,nt[Pt],De,$e);"value"in nt&&i(ze,"value",null,nt.value,De),(je=nt.onVnodeBeforeMount)&&$i(je,$e,Z)}ct&&tl(Z,null,$e,"beforeMount");const Dt=d$(Se,Xe);Dt&&Xe.beforeEnter(ze),r(ze,ie,Ce),((je=nt&&nt.onVnodeMounted)||Dt||ct)&&Xr(()=>{je&&$i(je,$e,Z),Dt&&Xe.enter(ze),ct&&tl(Z,null,$e,"mounted")},Se)},A=(Z,ie,Ce,$e,Se)=>{if(Ce&&h(Z,Ce),$e)for(let De=0;De<$e.length;De++)h(Z,$e[De]);if(Se){let De=Se.subTree;if(ie===De||hD(De.type)&&(De.ssContent===ie||De.ssFallback===ie)){const xe=Se.vnode;A(Z,xe,xe.scopeId,xe.slotScopeIds,Se.parent)}}},I=(Z,ie,Ce,$e,Se,De,xe,Ve,ze=0)=>{for(let je=ze;je<Z.length;je++){const nt=Z[je]=Ve?Ts(Z[je]):zi(Z[je]);m(null,nt,ie,Ce,$e,Se,De,xe,Ve)}},D=(Z,ie,Ce,$e,Se,De,xe)=>{const Ve=ie.el=Z.el;let{patchFlag:ze,dynamicChildren:je,dirs:nt}=ie;ze|=Z.patchFlag&16;const Ae=Z.props||Mn,Xe=ie.props||Mn;let ct;if(Ce&&nl(Ce,!1),(ct=Xe.onVnodeBeforeUpdate)&&$i(ct,Ce,ie,Z),nt&&tl(ie,Z,Ce,"beforeUpdate"),Ce&&nl(Ce,!0),(Ae.innerHTML&&Xe.innerHTML==null||Ae.textContent&&Xe.textContent==null)&&c(Ve,""),je?O(Z.dynamicChildren,je,Ve,Ce,$e,Yg(ie,Se),De):xe||W(Z,ie,Ve,null,Ce,$e,Yg(ie,Se),De,!1),ze>0){if(ze&16)V(Ve,Ae,Xe,Ce,Se);else if(ze&2&&Ae.class!==Xe.class&&i(Ve,"class",null,Xe.class,Se),ze&4&&i(Ve,"style",Ae.style,Xe.style,Se),ze&8){const Dt=ie.dynamicProps;for(let Pt=0;Pt<Dt.length;Pt++){const Bt=Dt[Pt],Ut=Ae[Bt],Nt=Xe[Bt];(Nt!==Ut||Bt==="value")&&i(Ve,Bt,Ut,Nt,Se,Ce)}}ze&1&&Z.children!==ie.children&&c(Ve,ie.children)}else!xe&&je==null&&V(Ve,Ae,Xe,Ce,Se);((ct=Xe.onVnodeUpdated)||nt)&&Xr(()=>{ct&&$i(ct,Ce,ie,Z),nt&&tl(ie,Z,Ce,"updated")},$e)},O=(Z,ie,Ce,$e,Se,De,xe)=>{for(let Ve=0;Ve<ie.length;Ve++){const ze=Z[Ve],je=ie[Ve],nt=ze.el&&(ze.type===Ge||!cl(ze,je)||ze.shapeFlag&70)?d(ze.el):Ce;m(ze,je,nt,null,$e,Se,De,xe,!0)}},V=(Z,ie,Ce,$e,Se)=>{if(ie!==Ce){if(ie!==Mn)for(const De in ie)!Ld(De)&&!(De in Ce)&&i(Z,De,ie[De],null,Se,$e);for(const De in Ce){if(Ld(De))continue;const xe=Ce[De],Ve=ie[De];xe!==Ve&&De!=="value"&&i(Z,De,Ve,xe,Se,$e)}"value"in Ce&&i(Z,"value",ie.value,Ce.value,Se)}},N=(Z,ie,Ce,$e,Se,De,xe,Ve,ze)=>{const je=ie.el=Z?Z.el:s(""),nt=ie.anchor=Z?Z.anchor:s("");let{patchFlag:Ae,dynamicChildren:Xe,slotScopeIds:ct}=ie;ct&&(Ve=Ve?Ve.concat(ct):ct),Z==null?(r(je,Ce,$e),r(nt,Ce,$e),I(ie.children||[],Ce,nt,Se,De,xe,Ve,ze)):Ae>0&&Ae&64&&Xe&&Z.dynamicChildren?(O(Z.dynamicChildren,Xe,Ce,Se,De,xe,Ve),(ie.key!=null||Se&&ie===Se.subTree)&&N_(Z,ie,!0)):W(Z,ie,Ce,nt,Se,De,xe,Ve,ze)},K=(Z,ie,Ce,$e,Se,De,xe,Ve,ze)=>{ie.slotScopeIds=Ve,Z==null?ie.shapeFlag&512?Se.ctx.activate(ie,Ce,$e,xe,ze):Y(ie,Ce,$e,Se,De,xe,ze):q(Z,ie,ze)},Y=(Z,ie,Ce,$e,Se,De,xe)=>{const Ve=Z.component=k$(Z,$e,Se);if(bv(Z)&&(Ve.ctx.renderer=Fe),A$(Ve,!1,xe),Ve.asyncDep){if(Se&&Se.registerDep(Ve,$,xe),!Z.el){const ze=Ve.subTree=E(fr);y(null,ze,ie,Ce)}}else $(Ve,Z,ie,Ce,Se,De,xe)},q=(Z,ie,Ce)=>{const $e=ie.component=Z.component;if(_$(Z,ie,Ce))if($e.asyncDep&&!$e.asyncResolved){j($e,ie,Ce);return}else $e.next=ie,$e.update();else ie.el=Z.el,$e.vnode=ie},$=(Z,ie,Ce,$e,Se,De,xe)=>{const Ve=()=>{if(Z.isMounted){let{next:Ae,bu:Xe,u:ct,parent:Dt,vnode:Pt}=Z;{const Oe=dD(Z);if(Oe){Ae&&(Ae.el=Pt.el,j(Z,Ae,xe)),Oe.asyncDep.then(()=>{Z.isUnmounted||Ve()});return}}let Bt=Ae,Ut;nl(Z,!1),Ae?(Ae.el=Pt.el,j(Z,Ae,xe)):Ae=Pt,Xe&&Ah(Xe),(Ut=Ae.props&&Ae.props.onVnodeBeforeUpdate)&&$i(Ut,Dt,Ae,Pt),nl(Z,!0);const Nt=Xg(Z),dt=Z.subTree;Z.subTree=Nt,m(dt,Nt,d(dt.el),te(dt),Z,Se,De),Ae.el=Nt.el,Bt===null&&T$(Z,Nt.el),ct&&Xr(ct,Se),(Ut=Ae.props&&Ae.props.onVnodeUpdated)&&Xr(()=>$i(Ut,Dt,Ae,Pt),Se)}else{let Ae;const{el:Xe,props:ct}=ie,{bm:Dt,m:Pt,parent:Bt,root:Ut,type:Nt}=Z,dt=Lu(ie);if(nl(Z,!1),Dt&&Ah(Dt),!dt&&(Ae=ct&&ct.onVnodeBeforeMount)&&$i(Ae,Bt,ie),nl(Z,!0),Xe&&ye){const Oe=()=>{Z.subTree=Xg(Z),ye(Xe,Z.subTree,Z,Se,null)};dt&&Nt.__asyncHydrate?Nt.__asyncHydrate(Xe,Z,Oe):Oe()}else{Ut.ce&&Ut.ce._injectChildStyle(Nt);const Oe=Z.subTree=Xg(Z);m(null,Oe,Ce,$e,Z,Se,De),ie.el=Oe.el}if(Pt&&Xr(Pt,Se),!dt&&(Ae=ct&&ct.onVnodeMounted)){const Oe=ie;Xr(()=>$i(Ae,Bt,Oe),Se)}(ie.shapeFlag&256||Bt&&Lu(Bt.vnode)&&Bt.vnode.shapeFlag&256)&&Z.a&&Xr(Z.a,Se),Z.isMounted=!0,ie=Ce=$e=null}};Z.scope.on();const ze=Z.effect=new vA(Ve);Z.scope.off();const je=Z.update=ze.run.bind(ze),nt=Z.job=ze.runIfDirty.bind(ze);nt.i=Z,nt.id=Z.uid,ze.scheduler=()=>D_(nt),nl(Z,!0),je()},j=(Z,ie,Ce)=>{ie.component=Z;const $e=Z.vnode.props;Z.vnode=ie,Z.next=null,a$(Z,ie.props,$e,Ce),l$(Z,ie.children,Ce),Us(),Rw(Z),Hs()},W=(Z,ie,Ce,$e,Se,De,xe,Ve,ze=!1)=>{const je=Z&&Z.children,nt=Z?Z.shapeFlag:0,Ae=ie.children,{patchFlag:Xe,shapeFlag:ct}=ie;if(Xe>0){if(Xe&128){X(je,Ae,Ce,$e,Se,De,xe,Ve,ze);return}else if(Xe&256){H(je,Ae,Ce,$e,Se,De,xe,Ve,ze);return}}ct&8?(nt&16&&ve(je,Se,De),Ae!==je&&c(Ce,Ae)):nt&16?ct&16?X(je,Ae,Ce,$e,Se,De,xe,Ve,ze):ve(je,Se,De,!0):(nt&8&&c(Ce,""),ct&16&&I(Ae,Ce,$e,Se,De,xe,Ve,ze))},H=(Z,ie,Ce,$e,Se,De,xe,Ve,ze)=>{Z=Z||Pu,ie=ie||Pu;const je=Z.length,nt=ie.length,Ae=Math.min(je,nt);let Xe;for(Xe=0;Xe<Ae;Xe++){const ct=ie[Xe]=ze?Ts(ie[Xe]):zi(ie[Xe]);m(Z[Xe],ct,Ce,null,Se,De,xe,Ve,ze)}je>nt?ve(Z,Se,De,!0,!1,Ae):I(ie,Ce,$e,Se,De,xe,Ve,ze,Ae)},X=(Z,ie,Ce,$e,Se,De,xe,Ve,ze)=>{let je=0;const nt=ie.length;let Ae=Z.length-1,Xe=nt-1;for(;je<=Ae&&je<=Xe;){const ct=Z[je],Dt=ie[je]=ze?Ts(ie[je]):zi(ie[je]);if(cl(ct,Dt))m(ct,Dt,Ce,null,Se,De,xe,Ve,ze);else break;je++}for(;je<=Ae&&je<=Xe;){const ct=Z[Ae],Dt=ie[Xe]=ze?Ts(ie[Xe]):zi(ie[Xe]);if(cl(ct,Dt))m(ct,Dt,Ce,null,Se,De,xe,Ve,ze);else break;Ae--,Xe--}if(je>Ae){if(je<=Xe){const ct=Xe+1,Dt=ct<nt?ie[ct].el:$e;for(;je<=Xe;)m(null,ie[je]=ze?Ts(ie[je]):zi(ie[je]),Ce,Dt,Se,De,xe,Ve,ze),je++}}else if(je>Xe)for(;je<=Ae;)le(Z[je],Se,De,!0),je++;else{const ct=je,Dt=je,Pt=new Map;for(je=Dt;je<=Xe;je++){const ae=ie[je]=ze?Ts(ie[je]):zi(ie[je]);ae.key!=null&&Pt.set(ae.key,je)}let Bt,Ut=0;const Nt=Xe-Dt+1;let dt=!1,Oe=0;const ce=new Array(Nt);for(je=0;je<Nt;je++)ce[je]=0;for(je=ct;je<=Ae;je++){const ae=Z[je];if(Ut>=Nt){le(ae,Se,De,!0);continue}let We;if(ae.key!=null)We=Pt.get(ae.key);else for(Bt=Dt;Bt<=Xe;Bt++)if(ce[Bt-Dt]===0&&cl(ae,ie[Bt])){We=Bt;break}We===void 0?le(ae,Se,De,!0):(ce[We-Dt]=je+1,We>=Oe?Oe=We:dt=!0,m(ae,ie[We],Ce,null,Se,De,xe,Ve,ze),Ut++)}const Me=dt?f$(ce):Pu;for(Bt=Me.length-1,je=Nt-1;je>=0;je--){const ae=Dt+je,We=ie[ae],St=ae+1<nt?ie[ae+1].el:$e;ce[je]===0?m(null,We,Ce,St,Se,De,xe,Ve,ze):dt&&(Bt<0||je!==Me[Bt]?re(We,Ce,St,2):Bt--)}}},re=(Z,ie,Ce,$e,Se=null)=>{const{el:De,type:xe,transition:Ve,children:ze,shapeFlag:je}=Z;if(je&6){re(Z.component.subTree,ie,Ce,$e);return}if(je&128){Z.suspense.move(ie,Ce,$e);return}if(je&64){xe.move(Z,ie,Ce,Fe);return}if(xe===Ge){r(De,ie,Ce);for(let Ae=0;Ae<ze.length;Ae++)re(ze[Ae],ie,Ce,$e);r(Z.anchor,ie,Ce);return}if(xe===Ih){b(Z,ie,Ce);return}if($e!==2&&je&1&&Ve)if($e===0)Ve.beforeEnter(De),r(De,ie,Ce),Xr(()=>Ve.enter(De),Se);else{const{leave:Ae,delayLeave:Xe,afterLeave:ct}=Ve,Dt=()=>r(De,ie,Ce),Pt=()=>{Ae(De,()=>{Dt(),ct&&ct()})};Xe?Xe(De,Dt,Pt):Pt()}else r(De,ie,Ce)},le=(Z,ie,Ce,$e=!1,Se=!1)=>{const{type:De,props:xe,ref:Ve,children:ze,dynamicChildren:je,shapeFlag:nt,patchFlag:Ae,dirs:Xe,cacheIndex:ct}=Z;if(Ae===-2&&(Se=!1),Ve!=null&&dm(Ve,null,Ce,Z,!0),ct!=null&&(ie.renderCache[ct]=void 0),nt&256){ie.ctx.deactivate(Z);return}const Dt=nt&1&&Xe,Pt=!Lu(Z);let Bt;if(Pt&&(Bt=xe&&xe.onVnodeBeforeUnmount)&&$i(Bt,ie,Z),nt&6)_e(Z.component,Ce,$e);else{if(nt&128){Z.suspense.unmount(Ce,$e);return}Dt&&tl(Z,null,ie,"beforeUnmount"),nt&64?Z.type.remove(Z,ie,Ce,Fe,$e):je&&!je.hasOnce&&(De!==Ge||Ae>0&&Ae&64)?ve(je,ie,Ce,!1,!0):(De===Ge&&Ae&384||!Se&&nt&16)&&ve(ze,ie,Ce),$e&&ne(Z)}(Pt&&(Bt=xe&&xe.onVnodeUnmounted)||Dt)&&Xr(()=>{Bt&&$i(Bt,ie,Z),Dt&&tl(Z,null,ie,"unmounted")},Ce)},ne=Z=>{const{type:ie,el:Ce,anchor:$e,transition:Se}=Z;if(ie===Ge){be(Ce,$e);return}if(ie===Ih){_(Z);return}const De=()=>{a(Ce),Se&&!Se.persisted&&Se.afterLeave&&Se.afterLeave()};if(Z.shapeFlag&1&&Se&&!Se.persisted){const{leave:xe,delayLeave:Ve}=Se,ze=()=>xe(Ce,De);Ve?Ve(Z.el,De,ze):ze()}else De()},be=(Z,ie)=>{let Ce;for(;Z!==ie;)Ce=p(Z),a(Z),Z=Ce;a(ie)},_e=(Z,ie,Ce)=>{const{bum:$e,scope:Se,job:De,subTree:xe,um:Ve,m:ze,a:je}=Z;Ww(ze),Ww(je),$e&&Ah($e),Se.stop(),De&&(De.flags|=8,le(xe,Z,ie,Ce)),Ve&&Xr(Ve,ie),Xr(()=>{Z.isUnmounted=!0},ie),ie&&ie.pendingBranch&&!ie.isUnmounted&&Z.asyncDep&&!Z.asyncResolved&&Z.suspenseId===ie.pendingId&&(ie.deps--,ie.deps===0&&ie.resolve())},ve=(Z,ie,Ce,$e=!1,Se=!1,De=0)=>{for(let xe=De;xe<Z.length;xe++)le(Z[xe],ie,Ce,$e,Se)},te=Z=>{if(Z.shapeFlag&6)return te(Z.component.subTree);if(Z.shapeFlag&128)return Z.suspense.next();const ie=p(Z.anchor||Z.el),Ce=ie&&ie[$A];return Ce?p(Ce):ie};let me=!1;const pe=(Z,ie,Ce)=>{Z==null?ie._vnode&&le(ie._vnode,null,null,!0):m(ie._vnode||null,Z,ie,null,null,null,Ce),ie._vnode=Z,me||(me=!0,Rw(),LA(),me=!1)},Fe={p:m,um:le,m:re,r:ne,mt:Y,mc:I,pc:W,pbc:O,n:te,o:e};let Pe,ye;return t&&([Pe,ye]=t(Fe)),{render:pe,hydrate:Pe,createApp:n$(pe,Pe)}}function Yg({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function nl({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function d$(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function N_(e,t,n=!1){const r=e.children,a=t.children;if(Be(r)&&Be(a))for(let i=0;i<r.length;i++){const o=r[i];let s=a[i];s.shapeFlag&1&&!s.dynamicChildren&&((s.patchFlag<=0||s.patchFlag===32)&&(s=a[i]=Ts(a[i]),s.el=o.el),!n&&s.patchFlag!==-2&&N_(o,s)),s.type===kc&&(s.el=o.el)}}function f$(e){const t=e.slice(),n=[0];let r,a,i,o,s;const l=e.length;for(r=0;r<l;r++){const u=e[r];if(u!==0){if(a=n[n.length-1],e[a]<u){t[r]=a,n.push(r);continue}for(i=0,o=n.length-1;i<o;)s=i+o>>1,e[n[s]]<u?i=s+1:o=s;u<e[n[i]]&&(i>0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=t[o];return n}function dD(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:dD(t)}function Ww(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const p$=Symbol.for("v-scx"),h$=()=>Qe(p$);function _r(e,t){return F_(e,null,t)}function Ie(e,t,n){return F_(e,t,n)}function F_(e,t,n=Mn){const{immediate:r,deep:a,flush:i,once:o}=n,s=nr({},n),l=t&&r||!t&&i!=="post";let u;if(ff){if(i==="sync"){const h=h$();u=h.__watcherHandles||(h.__watcherHandles=[])}else if(!l){const h=()=>{};return h.stop=nn,h.resume=nn,h.pause=nn,h}}const c=Dr;s.call=(h,v,m)=>Si(h,c,v,m);let d=!1;i==="post"?s.scheduler=h=>{Xr(h,c&&c.suspense)}:i!=="sync"&&(d=!0,s.scheduler=(h,v)=>{v?h():D_(h)}),s.augmentJob=h=>{t&&(h.flags|=4),d&&(h.flags|=2,c&&(h.id=c.uid,h.i=c))};const p=RF(e,t,s);return ff&&(u?u.push(p):l&&p()),p}function m$(e,t,n){const r=this.proxy,a=rt(e)?e.includes(".")?fD(r,e):()=>r[e]:e.bind(r,r);let i;ot(t)?i=t:(i=t.handler,n=t);const o=ep(this),s=F_(a,i.bind(r),n);return o(),s}function fD(e,t){const n=t.split(".");return()=>{let r=e;for(let a=0;a<n.length&&r;a++)r=r[n[a]];return r}}const v$=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${ua(t)}Modifiers`]||e[`${Jo(t)}Modifiers`];function g$(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Mn;let a=n;const i=t.startsWith("update:"),o=i&&v$(r,t.slice(7));o&&(o.trim&&(a=n.map(c=>rt(c)?c.trim():c)),o.number&&(a=n.map(om)));let s,l=r[s=Nd(t)]||r[s=Nd(ua(t))];!l&&i&&(l=r[s=Nd(Jo(t))]),l&&Si(l,e,6,a);const u=r[s+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,Si(u,e,6,a)}}function pD(e,t,n=!1){const r=t.emitsCache,a=r.get(e);if(a!==void 0)return a;const i=e.emits;let o={},s=!1;if(!ot(e)){const l=u=>{const c=pD(u,t,!0);c&&(s=!0,nr(o,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!i&&!s?(It(e)&&r.set(e,null),null):(Be(i)?i.forEach(l=>o[l]=null):nr(o,i),It(e)&&r.set(e,o),o)}function wv(e,t){return!e||!pv(t)?!1:(t=t.slice(2).replace(/Once$/,""),Yt(e,t[0].toLowerCase()+t.slice(1))||Yt(e,Jo(t))||Yt(e,t))}function Xg(e){const{type:t,vnode:n,proxy:r,withProxy:a,propsOptions:[i],slots:o,attrs:s,emit:l,render:u,renderCache:c,props:d,data:p,setupState:h,ctx:v,inheritAttrs:m}=e,g=cm(e);let y,T;try{if(n.shapeFlag&4){const _=a||r,w=_;y=zi(u.call(w,_,c,d,h,p,v)),T=s}else{const _=t;y=zi(_.length>1?_(d,{attrs:s,slots:o,emit:l}):_(d,null)),T=t.props?s:y$(s)}}catch(_){Ud.length=0,yv(_,e,1),y=E(fr)}let b=y;if(T&&m!==!1){const _=Object.keys(T),{shapeFlag:w}=b;_.length&&w&7&&(i&&_.some(y_)&&(T=b$(T,i)),b=Ho(b,T,!1,!0))}return n.dirs&&(b=Ho(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&Ol(b,n.transition),y=b,cm(g),y}const y$=e=>{let t;for(const n in e)(n==="class"||n==="style"||pv(n))&&((t||(t={}))[n]=e[n]);return t},b$=(e,t)=>{const n={};for(const r in e)(!y_(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function _$(e,t,n){const{props:r,children:a,component:i}=e,{props:o,children:s,patchFlag:l}=t,u=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?Kw(r,o,u):!!o;if(l&8){const c=t.dynamicProps;for(let d=0;d<c.length;d++){const p=c[d];if(o[p]!==r[p]&&!wv(u,p))return!0}}}else return(a||s)&&(!s||!s.$stable)?!0:r===o?!1:r?o?Kw(r,o,u):!0:!!o;return!1}function Kw(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let a=0;a<r.length;a++){const i=r[a];if(t[i]!==e[i]&&!wv(n,i))return!0}return!1}function T$({vnode:e,parent:t},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r===e)(e=t.vnode).el=n,t=t.parent;else break}}const hD=e=>e.__isSuspense;function w$(e,t){t&&t.pendingBranch?Be(e)?t.effects.push(...e):t.effects.push(e):FF(e)}const Ge=Symbol.for("v-fgt"),kc=Symbol.for("v-txt"),fr=Symbol.for("v-cmt"),Ih=Symbol.for("v-stc"),Ud=[];let La=null;function x(e=!1){Ud.push(La=e?null:[])}function S$(){Ud.pop(),La=Ud[Ud.length-1]||null}let df=1;function qw(e,t=!1){df+=e,e<0&&La&&t&&(La.hasOnce=!0)}function mD(e){return e.dynamicChildren=df>0?La||Pu:null,S$(),df>0&&La&&La.push(e),e}function U(e,t,n,r,a,i){return mD(M(e,t,n,r,a,i,!0))}function he(e,t,n,r,a){return mD(E(e,t,n,r,a,!0))}function wn(e){return e?e.__v_isVNode===!0:!1}function cl(e,t){return e.type===t.type&&e.key===t.key}const vD=({key:e})=>e??null,Ph=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?rt(e)||yn(e)||ot(e)?{i:br,r:e,k:t,f:!!n}:e:null);function M(e,t=null,n=null,r=0,a=null,i=e===Ge?0:1,o=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&vD(t),ref:t&&Ph(t),scopeId:FA,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:a,dynamicChildren:null,appContext:null,ctx:br};return s?($_(l,n),i&128&&e.normalize(l)):n&&(l.shapeFlag|=rt(n)?8:16),df>0&&!o&&La&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&La.push(l),l}const E=C$;function C$(e,t=null,n=null,r=0,a=null,i=!1){if((!e||e===QA)&&(e=fr),wn(e)){const s=Ho(e,t,!0);return n&&$_(s,n),df>0&&!i&&La&&(s.shapeFlag&6?La[La.indexOf(e)]=s:La.push(s)),s.patchFlag=-2,s}if(O$(e)&&(e=e.__vccOpts),t){t=to(t);let{class:s,style:l}=t;s&&!rt(s)&&(t.class=F(s)),It(l)&&(A_(l)&&!Be(l)&&(l=nr({},l)),t.style=tt(l))}const o=rt(e)?1:hD(e)?128:BA(e)?64:It(e)?4:ot(e)?2:0;return M(e,t,n,r,a,o,i,!0)}function to(e){return e?A_(e)||aD(e)?nr({},e):e:null}function Ho(e,t,n=!1,r=!1){const{props:a,ref:i,patchFlag:o,children:s,transition:l}=e,u=t?Ft(a||{},t):a,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&vD(u),ref:t&&t.ref?n&&i?Be(i)?i.concat(Ph(t)):[i,Ph(t)]:Ph(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ge?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ho(e.ssContent),ssFallback:e.ssFallback&&Ho(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&Ol(c,l.clone(c)),c}function we(e=" ",t=0){return E(kc,null,e,t)}function gD(e,t){const n=E(Ih,null,e);return n.staticCount=t,n}function oe(e="",t=!1){return t?(x(),he(fr,null,e)):E(fr,null,e)}function zi(e){return e==null||typeof e=="boolean"?E(fr):Be(e)?E(Ge,null,e.slice()):wn(e)?Ts(e):E(kc,null,String(e))}function Ts(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ho(e)}function $_(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(Be(t))n=16;else if(typeof t=="object")if(r&65){const a=t.default;a&&(a._c&&(a._d=!1),$_(e,a()),a._c&&(a._d=!0));return}else{n=32;const a=t._;!a&&!aD(t)?t._ctx=br:a===3&&br&&(br.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ot(t)?(t={default:t,_ctx:br},n=32):(t=String(t),r&64?(n=16,t=[we(t)]):n=8);e.children=t,e.shapeFlag|=n}function Ft(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const a in r)if(a==="class")t.class!==r.class&&(t.class=F([t.class,r.class]));else if(a==="style")t.style=tt([t.style,r.style]);else if(pv(a)){const i=t[a],o=r[a];o&&i!==o&&!(Be(i)&&i.includes(o))&&(t[a]=i?[].concat(i,o):o)}else a!==""&&(t[a]=r[a])}return t}function $i(e,t,n,r=null){Si(e,t,7,[n,r])}const E$=tD();let x$=0;function k$(e,t,n){const r=e.type,a=(t?t.appContext:e.appContext)||E$,i={uid:x$++,vnode:e,type:r,parent:t,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new pA(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(a.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:oD(r,a),emitsOptions:pD(r,a),emit:null,emitted:null,propsDefaults:Mn,inheritAttrs:r.inheritAttrs,ctx:Mn,data:Mn,props:Mn,attrs:Mn,slots:Mn,refs:Mn,setupState:Mn,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=g$.bind(null,i),e.ce&&e.ce(i),i}let Dr=null;const Mt=()=>Dr||br;let pm,gy;{const e=mv(),t=(n,r)=>{let a;return(a=e[n])||(a=e[n]=[]),a.push(r),i=>{a.length>1?a.forEach(o=>o(i)):a[0](i)}};pm=t("__VUE_INSTANCE_SETTERS__",n=>Dr=n),gy=t("__VUE_SSR_SETTERS__",n=>ff=n)}const ep=e=>{const t=Dr;return pm(e),e.scope.on(),()=>{e.scope.off(),pm(t)}},Gw=()=>{Dr&&Dr.scope.off(),pm(null)};function yD(e){return e.vnode.shapeFlag&4}let ff=!1;function A$(e,t=!1,n=!1){t&&gy(t);const{props:r,children:a}=e.vnode,i=yD(e);r$(e,r,i,t),s$(e,a,n);const o=i?D$(e,t):void 0;return t&&gy(!1),o}function D$(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,YF);const{setup:r}=n;if(r){Us();const a=e.setupContext=r.length>1?_D(e):null,i=ep(e),o=Zf(r,e,0,[e.props,a]),s=af(o);if(Hs(),i(),(s||e.sp)&&!Lu(e)&&qA(e),s){if(o.then(Gw,Gw),t)return o.then(l=>{Yw(e,l,t)}).catch(l=>{yv(l,e,0)});e.asyncDep=o}else Yw(e,o,t)}else bD(e,t)}function Yw(e,t,n){ot(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:It(t)&&(e.setupState=PA(t)),bD(e,n)}let Xw;function bD(e,t,n){const r=e.type;if(!e.render){if(!t&&Xw&&!r.render){const a=r.template||R_(e).template;if(a){const{isCustomElement:i,compilerOptions:o}=e.appContext.config,{delimiters:s,compilerOptions:l}=r,u=nr(nr({isCustomElement:i,delimiters:s},o),l);r.render=Xw(a,u)}}e.render=r.render||nn}{const a=ep(e);Us();try{XF(e)}finally{Hs(),a()}}}const I$={get(e,t){return Nr(e,"get",""),e[t]}};function _D(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,I$),slots:e.slots,emit:e.emit,expose:t}}function Sv(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(PA($o(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Vd)return Vd[n](e)},has(t,n){return n in t||n in Vd}})):e.proxy}function P$(e,t=!0){return ot(e)?e.displayName||e.name:e.name||t&&e.__name}function O$(e){return ot(e)&&"__vccOpts"in e}const k=(e,t)=>OF(e,t,ff);function lt(e,t,n){const r=arguments.length;return r===2?It(t)&&!Be(t)?wn(t)?E(e,null,[t]):E(e,t):E(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&wn(n)&&(n=[n]),E(e,t,n))}const M$="3.5.13",R$=nn;/**
* @vue/runtime-dom v3.5.13
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let yy;const Qw=typeof window<"u"&&window.trustedTypes;if(Qw)try{yy=Qw.createPolicy("vue",{createHTML:e=>e})}catch{}const TD=yy?e=>yy.createHTML(e):e=>e,L$="http://www.w3.org/2000/svg",N$="http://www.w3.org/1998/Math/MathML",xo=typeof document<"u"?document:null,Jw=xo&&xo.createElement("template"),F$={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const a=t==="svg"?xo.createElementNS(L$,e):t==="mathml"?xo.createElementNS(N$,e):n?xo.createElement(e,{is:n}):xo.createElement(e);return e==="select"&&r&&r.multiple!=null&&a.setAttribute("multiple",r.multiple),a},createText:e=>xo.createTextNode(e),createComment:e=>xo.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>xo.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,a,i){const o=n?n.previousSibling:t.lastChild;if(a&&(a===i||a.nextSibling))for(;t.insertBefore(a.cloneNode(!0),n),!(a===i||!(a=a.nextSibling)););else{Jw.innerHTML=TD(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const s=Jw.content;if(r==="svg"||r==="mathml"){const l=s.firstChild;for(;l.firstChild;)s.appendChild(l.firstChild);s.removeChild(l)}t.insertBefore(s,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},fs="transition",ld="animation",qu=Symbol("_vtc"),wD={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},SD=nr({},zA,wD),$$=e=>(e.displayName="Transition",e.props=SD,e),lr=$$((e,{slots:t})=>lt(UF,CD(e),t)),rl=(e,t=[])=>{Be(e)?e.forEach(n=>n(...t)):e&&e(...t)},Zw=e=>e?Be(e)?e.some(t=>t.length>1):e.length>1:!1;function CD(e){const t={};for(const N in e)N in wD||(t[N]=e[N]);if(e.css===!1)return t;const{name:n="v",type:r,duration:a,enterFromClass:i=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:l=i,appearActiveClass:u=o,appearToClass:c=s,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,v=B$(a),m=v&&v[0],g=v&&v[1],{onBeforeEnter:y,onEnter:T,onEnterCancelled:b,onLeave:_,onLeaveCancelled:w,onBeforeAppear:S=y,onAppear:A=T,onAppearCancelled:I=b}=t,D=(N,K,Y,q)=>{N._enterCancelled=q,vs(N,K?c:s),vs(N,K?u:o),Y&&Y()},O=(N,K)=>{N._isLeaving=!1,vs(N,d),vs(N,h),vs(N,p),K&&K()},V=N=>(K,Y)=>{const q=N?A:T,$=()=>D(K,N,Y);rl(q,[K,$]),eS(()=>{vs(K,N?l:i),Vi(K,N?c:s),Zw(q)||tS(K,r,m,$)})};return nr(t,{onBeforeEnter(N){rl(y,[N]),Vi(N,i),Vi(N,o)},onBeforeAppear(N){rl(S,[N]),Vi(N,l),Vi(N,u)},onEnter:V(!1),onAppear:V(!0),onLeave(N,K){N._isLeaving=!0;const Y=()=>O(N,K);Vi(N,d),N._enterCancelled?(Vi(N,p),by()):(by(),Vi(N,p)),eS(()=>{N._isLeaving&&(vs(N,d),Vi(N,h),Zw(_)||tS(N,r,g,Y))}),rl(_,[N,Y])},onEnterCancelled(N){D(N,!1,void 0,!0),rl(b,[N])},onAppearCancelled(N){D(N,!0,void 0,!0),rl(I,[N])},onLeaveCancelled(N){O(N),rl(w,[N])}})}function B$(e){if(e==null)return null;if(It(e))return[Qg(e.enter),Qg(e.leave)];{const t=Qg(e);return[t,t]}}function Qg(e){return Q8(e)}function Vi(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[qu]||(e[qu]=new Set)).add(t)}function vs(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[qu];n&&(n.delete(t),n.size||(e[qu]=void 0))}function eS(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let V$=0;function tS(e,t,n,r){const a=e._endId=++V$,i=()=>{a===e._endId&&r()};if(n!=null)return setTimeout(i,n);const{type:o,timeout:s,propCount:l}=ED(e,t);if(!o)return r();const u=o+"end";let c=0;const d=()=>{e.removeEventListener(u,p),i()},p=h=>{h.target===e&&++c>=l&&d()};setTimeout(()=>{c<l&&d()},s+1),e.addEventListener(u,p)}function ED(e,t){const n=window.getComputedStyle(e),r=v=>(n[v]||"").split(", "),a=r(`${fs}Delay`),i=r(`${fs}Duration`),o=nS(a,i),s=r(`${ld}Delay`),l=r(`${ld}Duration`),u=nS(s,l);let c=null,d=0,p=0;t===fs?o>0&&(c=fs,d=o,p=i.length):t===ld?u>0&&(c=ld,d=u,p=l.length):(d=Math.max(o,u),c=d>0?o>u?fs:ld:null,p=c?c===fs?i.length:l.length:0);const h=c===fs&&/\b(transform|all)(,|$)/.test(r(`${fs}Property`).toString());return{type:c,timeout:d,propCount:p,hasTransform:h}}function nS(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>rS(n)+rS(e[r])))}function rS(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function by(){return document.body.offsetHeight}function U$(e,t,n){const r=e[qu];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const hm=Symbol("_vod"),xD=Symbol("_vsh"),zt={beforeMount(e,{value:t},{transition:n}){e[hm]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):ud(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),ud(e,!0),r.enter(e)):r.leave(e,()=>{ud(e,!1)}):ud(e,t))},beforeUnmount(e,{value:t}){ud(e,t)}};function ud(e,t){e.style.display=t?e[hm]:"none",e[xD]=!t}const H$=Symbol(""),z$=/(^|;)\s*display\s*:/;function j$(e,t,n){const r=e.style,a=rt(n);let i=!1;if(n&&!a){if(t)if(rt(t))for(const o of t.split(";")){const s=o.slice(0,o.indexOf(":")).trim();n[s]==null&&Oh(r,s,"")}else for(const o in t)n[o]==null&&Oh(r,o,"");for(const o in n)o==="display"&&(i=!0),Oh(r,o,n[o])}else if(a){if(t!==n){const o=r[H$];o&&(n+=";"+o),r.cssText=n,i=z$.test(n)}}else t&&e.removeAttribute("style");hm in e&&(e[hm]=i?r.display:"",e[xD]&&(r.display="none"))}const aS=/\s*!important$/;function Oh(e,t,n){if(Be(n))n.forEach(r=>Oh(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=W$(e,t);aS.test(n)?e.setProperty(Jo(r),n.replace(aS,""),"important"):e[r]=n}}const iS=["Webkit","Moz","ms"],Jg={};function W$(e,t){const n=Jg[t];if(n)return n;let r=ua(t);if(r!=="filter"&&r in e)return Jg[t]=r;r=Jf(r);for(let a=0;a<iS.length;a++){const i=iS[a]+r;if(i in e)return Jg[t]=i}return t}const oS="http://www.w3.org/1999/xlink";function sS(e,t,n,r,a,i=rF(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(oS,t.slice(6,t.length)):e.setAttributeNS(oS,t,n):n==null||i&&!cA(n)?e.removeAttribute(t):e.setAttribute(t,i?"":wi(n)?String(n):n)}function lS(e,t,n,r,a){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?TD(n):n);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const s=i==="OPTION"?e.getAttribute("value")||"":e.value,l=n==null?e.type==="checkbox"?"on":"":String(n);(s!==l||!("_value"in e))&&(e.value=l),n==null&&e.removeAttribute(t),e._value=n;return}let o=!1;if(n===""||n==null){const s=typeof e[t];s==="boolean"?n=cA(n):n==null&&s==="string"?(n="",o=!0):s==="number"&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(a||t)}function Oo(e,t,n,r){e.addEventListener(t,n,r)}function K$(e,t,n,r){e.removeEventListener(t,n,r)}const uS=Symbol("_vei");function q$(e,t,n,r,a=null){const i=e[uS]||(e[uS]={}),o=i[t];if(r&&o)o.value=r;else{const[s,l]=G$(t);if(r){const u=i[t]=Q$(r,a);Oo(e,s,u,l)}else o&&(K$(e,s,o,l),i[t]=void 0)}}const cS=/(?:Once|Passive|Capture)$/;function G$(e){let t;if(cS.test(e)){t={};let r;for(;r=e.match(cS);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Jo(e.slice(2)),t]}let Zg=0;const Y$=Promise.resolve(),X$=()=>Zg||(Y$.then(()=>Zg=0),Zg=Date.now());function Q$(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Si(J$(r,n.value),t,5,[r])};return n.value=e,n.attached=X$(),n}function J$(e,t){if(Be(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>a=>!a._stopped&&r&&r(a))}else return t}const dS=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Z$=(e,t,n,r,a,i)=>{const o=a==="svg";t==="class"?U$(e,r,o):t==="style"?j$(e,n,r):pv(t)?y_(t)||q$(e,t,n,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):eB(e,t,r,o))?(lS(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&sS(e,t,r,o,i,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!rt(r))?lS(e,ua(t),r,i,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),sS(e,t,r,o))};function eB(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&dS(t)&&ot(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const a=e.tagName;if(a==="IMG"||a==="VIDEO"||a==="CANVAS"||a==="SOURCE")return!1}return dS(t)&&rt(n)?!1:t in e}const kD=new WeakMap,AD=new WeakMap,mm=Symbol("_moveCb"),fS=Symbol("_enterCb"),tB=e=>(delete e.props.mode,e),nB=tB({name:"TransitionGroup",props:nr({},SD,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Mt(),r=HA();let a,i;return Di(()=>{if(!a.length)return;const o=e.moveClass||`${e.name||"v"}-move`;if(!oB(a[0].el,n.vnode.el,o))return;a.forEach(rB),a.forEach(aB);const s=a.filter(iB);by(),s.forEach(l=>{const u=l.el,c=u.style;Vi(u,o),c.transform=c.webkitTransform=c.transitionDuration="";const d=u[mm]=p=>{p&&p.target!==u||(!p||/transform$/.test(p.propertyName))&&(u.removeEventListener("transitionend",d),u[mm]=null,vs(u,o))};u.addEventListener("transitionend",d)})}),()=>{const o=un(e),s=CD(o);let l=o.tag||Ge;if(a=[],i)for(let u=0;u<i.length;u++){const c=i[u];c.el&&c.el instanceof Element&&(a.push(c),Ol(c,cf(c,s,r,n)),kD.set(c,c.el.getBoundingClientRect()))}i=t.default?I_(t.default()):[];for(let u=0;u<i.length;u++){const c=i[u];c.key!=null&&Ol(c,cf(c,s,r,n))}return E(l,null,i)}}}),DD=nB;function rB(e){const t=e.el;t[mm]&&t[mm](),t[fS]&&t[fS]()}function aB(e){AD.set(e,e.el.getBoundingClientRect())}function iB(e){const t=kD.get(e),n=AD.get(e),r=t.left-n.left,a=t.top-n.top;if(r||a){const i=e.el.style;return i.transform=i.webkitTransform=`translate(${r}px,${a}px)`,i.transitionDuration="0s",e}}function oB(e,t,n){const r=e.cloneNode(),a=e[qu];a&&a.forEach(s=>{s.split(/\s+/).forEach(l=>l&&r.classList.remove(l))}),n.split(/\s+/).forEach(s=>s&&r.classList.add(s)),r.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(r);const{hasTransform:o}=ED(r);return i.removeChild(r),o}const Ds=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Be(t)?n=>Ah(t,n):t};function sB(e){e.target.composing=!0}function pS(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Qa=Symbol("_assign"),no={created(e,{modifiers:{lazy:t,trim:n,number:r}},a){e[Qa]=Ds(a);const i=r||a.props&&a.props.type==="number";Oo(e,t?"change":"input",o=>{if(o.target.composing)return;let s=e.value;n&&(s=s.trim()),i&&(s=om(s)),e[Qa](s)}),n&&Oo(e,"change",()=>{e.value=e.value.trim()}),t||(Oo(e,"compositionstart",sB),Oo(e,"compositionend",pS),Oo(e,"change",pS))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:a,number:i}},o){if(e[Qa]=Ds(o),e.composing)return;const s=(i||e.type==="number")&&!/^0\d/.test(e.value)?om(e.value):e.value,l=t??"";s!==l&&(document.activeElement===e&&e.type!=="range"&&(r&&t===n||a&&e.value.trim()===l)||(e.value=l))}},pf={deep:!0,created(e,t,n){e[Qa]=Ds(n),Oo(e,"change",()=>{const r=e._modelValue,a=Gu(e),i=e.checked,o=e[Qa];if(Be(r)){const s=T_(r,a),l=s!==-1;if(i&&!l)o(r.concat(a));else if(!i&&l){const u=[...r];u.splice(s,1),o(u)}}else if(xc(r)){const s=new Set(r);i?s.add(a):s.delete(a),o(s)}else o(ID(e,i))})},mounted:hS,beforeUpdate(e,t,n){e[Qa]=Ds(n),hS(e,t,n)}};function hS(e,{value:t,oldValue:n},r){e._modelValue=t;let a;if(Be(t))a=T_(t,r.props.value)>-1;else if(xc(t))a=t.has(r.props.value);else{if(t===n)return;a=Il(t,ID(e,!0))}e.checked!==a&&(e.checked=a)}const B_={created(e,{value:t},n){e.checked=Il(t,n.props.value),e[Qa]=Ds(n),Oo(e,"change",()=>{e[Qa](Gu(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[Qa]=Ds(r),t!==n&&(e.checked=Il(t,r.props.value))}},lB={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const a=xc(t);Oo(e,"change",()=>{const i=Array.prototype.filter.call(e.options,o=>o.selected).map(o=>n?om(Gu(o)):Gu(o));e[Qa](e.multiple?a?new Set(i):i:i[0]),e._assigning=!0,it(()=>{e._assigning=!1})}),e[Qa]=Ds(r)},mounted(e,{value:t}){mS(e,t)},beforeUpdate(e,t,n){e[Qa]=Ds(n)},updated(e,{value:t}){e._assigning||mS(e,t)}};function mS(e,t){const n=e.multiple,r=Be(t);if(!(n&&!r&&!xc(t))){for(let a=0,i=e.options.length;a<i;a++){const o=e.options[a],s=Gu(o);if(n)if(r){const l=typeof s;l==="string"||l==="number"?o.selected=t.some(u=>String(u)===String(s)):o.selected=T_(t,s)>-1}else o.selected=t.has(s);else if(Il(Gu(o),t)){e.selectedIndex!==a&&(e.selectedIndex=a);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Gu(e){return"_value"in e?e._value:e.value}function ID(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const uB={created(e,t,n){Xp(e,t,n,null,"created")},mounted(e,t,n){Xp(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){Xp(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){Xp(e,t,n,r,"updated")}};function cB(e,t){switch(e){case"SELECT":return lB;case"TEXTAREA":return no;default:switch(t){case"checkbox":return pf;case"radio":return B_;default:return no}}}function Xp(e,t,n,r,a){const o=cB(e.tagName,n.props&&n.props.type)[a];o&&o(e,t,n,r)}const dB=["ctrl","shift","alt","meta"],fB={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>dB.some(n=>e[`${n}Key`]&&!t.includes(n))},ft=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(a,...i)=>{for(let o=0;o<t.length;o++){const s=fB[t[o]];if(s&&s(a,t))return}return e(a,...i)})},pB={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},sn=(e,t)=>{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=a=>{if(!("key"in a))return;const i=Jo(a.key);if(t.some(o=>o===i||pB[o]===i))return e(a)})},hB=nr({patchProp:Z$},F$);let vS;function PD(){return vS||(vS=u$(hB))}const Is=(...e)=>{PD().render(...e)},Cv=(...e)=>{const t=PD().createApp(...e),{mount:n}=t;return t.mount=r=>{const a=vB(r);if(!a)return;const i=t._component;!ot(i)&&!i.render&&!i.template&&(i.template=a.innerHTML),a.nodeType===1&&(a.textContent="");const o=n(a,!1,mB(a));return a instanceof Element&&(a.removeAttribute("v-cloak"),a.setAttribute("data-v-app","")),o},t};function mB(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function vB(e){return rt(e)?document.querySelector(e):e}const gB="2.9.7",gS=Symbol("INSTALLED_KEY"),OD=Symbol(),Hd="el",yB="is-",al=(e,t,n,r,a)=>{let i=`${e}-${t}`;return n&&(i+=`-${n}`),r&&(i+=`__${r}`),a&&(i+=`--${a}`),i},MD=Symbol("namespaceContextKey"),V_=e=>{const t=e||(Mt()?Qe(MD,z(Hd)):z(Hd));return k(()=>f(t)||Hd)},Le=(e,t)=>{const n=V_(t);return{namespace:n,b:(m="")=>al(n.value,e,m,"",""),e:m=>m?al(n.value,e,"",m,""):"",m:m=>m?al(n.value,e,"","",m):"",be:(m,g)=>m&&g?al(n.value,e,m,g,""):"",em:(m,g)=>m&&g?al(n.value,e,"",m,g):"",bm:(m,g)=>m&&g?al(n.value,e,m,"",g):"",bem:(m,g,y)=>m&&g&&y?al(n.value,e,m,g,y):"",is:(m,...g)=>{const y=g.length>=1?g[0]:!0;return m&&y?`${yB}${m}`:""},cssVar:m=>{const g={};for(const y in m)m[y]&&(g[`--${n.value}-${y}`]=m[y]);return g},cssVarName:m=>`--${n.value}-${m}`,cssVarBlock:m=>{const g={};for(const y in m)m[y]&&(g[`--${n.value}-${e}-${y}`]=m[y]);return g},cssVarBlockName:m=>`--${n.value}-${e}-${m}`}};var bB=typeof global=="object"&&global&&global.Object===Object&&global;const RD=bB;var _B=typeof self=="object"&&self&&self.Object===Object&&self,TB=RD||_B||Function("return this")();const Ii=TB;var wB=Ii.Symbol;const ei=wB;var LD=Object.prototype,SB=LD.hasOwnProperty,CB=LD.toString,cd=ei?ei.toStringTag:void 0;function EB(e){var t=SB.call(e,cd),n=e[cd];try{e[cd]=void 0;var r=!0}catch{}var a=CB.call(e);return r&&(t?e[cd]=n:delete e[cd]),a}var xB=Object.prototype,kB=xB.toString;function AB(e){return kB.call(e)}var DB="[object Null]",IB="[object Undefined]",yS=ei?ei.toStringTag:void 0;function zl(e){return e==null?e===void 0?IB:DB:yS&&yS in Object(e)?EB(e):AB(e)}function ro(e){return e!=null&&typeof e=="object"}var PB="[object Symbol]";function Ev(e){return typeof e=="symbol"||ro(e)&&zl(e)==PB}function U_(e,t){for(var n=-1,r=e==null?0:e.length,a=Array(r);++n<r;)a[n]=t(e[n],n,e);return a}var OB=Array.isArray;const ca=OB;var MB=1/0,bS=ei?ei.prototype:void 0,_S=bS?bS.toString:void 0;function ND(e){if(typeof e=="string")return e;if(ca(e))return U_(e,ND)+"";if(Ev(e))return _S?_S.call(e):"";var t=e+"";return t=="0"&&1/e==-MB?"-0":t}var RB=/\s/;function LB(e){for(var t=e.length;t--&&RB.test(e.charAt(t)););return t}var NB=/^\s+/;function FB(e){return e&&e.slice(0,LB(e)+1).replace(NB,"")}function da(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var TS=0/0,$B=/^[-+]0x[0-9a-f]+$/i,BB=/^0b[01]+$/i,VB=/^0o[0-7]+$/i,UB=parseInt;function _y(e){if(typeof e=="number")return e;if(Ev(e))return TS;if(da(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=da(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=FB(e);var n=BB.test(e);return n||VB.test(e)?UB(e.slice(2),n?2:8):$B.test(e)?TS:+e}var wS=1/0,HB=17976931348623157e292;function zB(e){if(!e)return e===0?e:0;if(e=_y(e),e===wS||e===-wS){var t=e<0?-1:1;return t*HB}return e===e?e:0}function jB(e){var t=zB(e),n=t%1;return t===t?n?t-n:t:0}function H_(e){return e}var WB="[object AsyncFunction]",KB="[object Function]",qB="[object GeneratorFunction]",GB="[object Proxy]";function z_(e){if(!da(e))return!1;var t=zl(e);return t==KB||t==qB||t==WB||t==GB}var YB=Ii["__core-js_shared__"];const e0=YB;var SS=function(){var e=/[^.]+$/.exec(e0&&e0.keys&&e0.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function XB(e){return!!SS&&SS in e}var QB=Function.prototype,JB=QB.toString;function jl(e){if(e!=null){try{return JB.call(e)}catch{}try{return e+""}catch{}}return""}var ZB=/[\\^$.*+?()[\]{}|]/g,e6=/^\[object .+?Constructor\]$/,t6=Function.prototype,n6=Object.prototype,r6=t6.toString,a6=n6.hasOwnProperty,i6=RegExp("^"+r6.call(a6).replace(ZB,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function o6(e){if(!da(e)||XB(e))return!1;var t=z_(e)?i6:e6;return t.test(jl(e))}function s6(e,t){return e==null?void 0:e[t]}function Wl(e,t){var n=s6(e,t);return o6(n)?n:void 0}var l6=Wl(Ii,"WeakMap");const Ty=l6;var CS=Object.create,u6=function(){function e(){}return function(t){if(!da(t))return{};if(CS)return CS(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const c6=u6;function d6(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function f6(){}function FD(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var p6=800,h6=16,m6=Date.now;function v6(e){var t=0,n=0;return function(){var r=m6(),a=h6-(r-n);if(n=r,a>0){if(++t>=p6)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function g6(e){return function(){return e}}var y6=function(){try{var e=Wl(Object,"defineProperty");return e({},"",{}),e}catch{}}();const vm=y6;var b6=vm?function(e,t){return vm(e,"toString",{configurable:!0,enumerable:!1,value:g6(t),writable:!0})}:H_;const _6=b6;var T6=v6(_6);const $D=T6;function w6(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function BD(e,t,n,r){for(var a=e.length,i=n+(r?1:-1);r?i--:++i<a;)if(t(e[i],i,e))return i;return-1}function S6(e){return e!==e}function C6(e,t,n){for(var r=n-1,a=e.length;++r<a;)if(e[r]===t)return r;return-1}function E6(e,t,n){return t===t?C6(e,t,n):BD(e,S6,n)}function x6(e,t){var n=e==null?0:e.length;return!!n&&E6(e,t,0)>-1}var k6=9007199254740991,A6=/^(?:0|[1-9]\d*)$/;function xv(e,t){var n=typeof e;return t=t??k6,!!t&&(n=="number"||n!="symbol"&&A6.test(e))&&e>-1&&e%1==0&&e<t}function j_(e,t,n){t=="__proto__"&&vm?vm(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function tp(e,t){return e===t||e!==e&&t!==t}var D6=Object.prototype,I6=D6.hasOwnProperty;function W_(e,t,n){var r=e[t];(!(I6.call(e,t)&&tp(r,n))||n===void 0&&!(t in e))&&j_(e,t,n)}function Ac(e,t,n,r){var a=!n;n||(n={});for(var i=-1,o=t.length;++i<o;){var s=t[i],l=r?r(n[s],e[s],s,n,e):void 0;l===void 0&&(l=e[s]),a?j_(n,s,l):W_(n,s,l)}return n}var ES=Math.max;function VD(e,t,n){return t=ES(t===void 0?e.length-1:t,0),function(){for(var r=arguments,a=-1,i=ES(r.length-t,0),o=Array(i);++a<i;)o[a]=r[t+a];a=-1;for(var s=Array(t+1);++a<t;)s[a]=r[a];return s[t]=n(o),d6(e,this,s)}}function UD(e,t){return $D(VD(e,t,H_),e+"")}var P6=9007199254740991;function K_(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=P6}function Dc(e){return e!=null&&K_(e.length)&&!z_(e)}function O6(e,t,n){if(!da(n))return!1;var r=typeof t;return(r=="number"?Dc(n)&&xv(t,n.length):r=="string"&&t in n)?tp(n[t],e):!1}function M6(e){return UD(function(t,n){var r=-1,a=n.length,i=a>1?n[a-1]:void 0,o=a>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(a--,i):void 0,o&&O6(n[0],n[1],o)&&(i=a<3?void 0:i,a=1),t=Object(t);++r<a;){var s=n[r];s&&e(t,s,r,i)}return t})}var R6=Object.prototype;function q_(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||R6;return e===n}function L6(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var N6="[object Arguments]";function xS(e){return ro(e)&&zl(e)==N6}var HD=Object.prototype,F6=HD.hasOwnProperty,$6=HD.propertyIsEnumerable,B6=xS(function(){return arguments}())?xS:function(e){return ro(e)&&F6.call(e,"callee")&&!$6.call(e,"callee")};const hf=B6;function V6(){return!1}var zD=typeof Fa=="object"&&Fa&&!Fa.nodeType&&Fa,kS=zD&&typeof $a=="object"&&$a&&!$a.nodeType&&$a,U6=kS&&kS.exports===zD,AS=U6?Ii.Buffer:void 0,H6=AS?AS.isBuffer:void 0,z6=H6||V6;const mf=z6;var j6="[object Arguments]",W6="[object Array]",K6="[object Boolean]",q6="[object Date]",G6="[object Error]",Y6="[object Function]",X6="[object Map]",Q6="[object Number]",J6="[object Object]",Z6="[object RegExp]",e5="[object Set]",t5="[object String]",n5="[object WeakMap]",r5="[object ArrayBuffer]",a5="[object DataView]",i5="[object Float32Array]",o5="[object Float64Array]",s5="[object Int8Array]",l5="[object Int16Array]",u5="[object Int32Array]",c5="[object Uint8Array]",d5="[object Uint8ClampedArray]",f5="[object Uint16Array]",p5="[object Uint32Array]",Vn={};Vn[i5]=Vn[o5]=Vn[s5]=Vn[l5]=Vn[u5]=Vn[c5]=Vn[d5]=Vn[f5]=Vn[p5]=!0;Vn[j6]=Vn[W6]=Vn[r5]=Vn[K6]=Vn[a5]=Vn[q6]=Vn[G6]=Vn[Y6]=Vn[X6]=Vn[Q6]=Vn[J6]=Vn[Z6]=Vn[e5]=Vn[t5]=Vn[n5]=!1;function h5(e){return ro(e)&&K_(e.length)&&!!Vn[zl(e)]}function G_(e){return function(t){return e(t)}}var jD=typeof Fa=="object"&&Fa&&!Fa.nodeType&&Fa,zd=jD&&typeof $a=="object"&&$a&&!$a.nodeType&&$a,m5=zd&&zd.exports===jD,t0=m5&&RD.process,v5=function(){try{var e=zd&&zd.require&&zd.require("util").types;return e||t0&&t0.binding&&t0.binding("util")}catch{}}();const Yu=v5;var DS=Yu&&Yu.isTypedArray,g5=DS?G_(DS):h5;const Y_=g5;var y5=Object.prototype,b5=y5.hasOwnProperty;function WD(e,t){var n=ca(e),r=!n&&hf(e),a=!n&&!r&&mf(e),i=!n&&!r&&!a&&Y_(e),o=n||r||a||i,s=o?L6(e.length,String):[],l=s.length;for(var u in e)(t||b5.call(e,u))&&!(o&&(u=="length"||a&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||xv(u,l)))&&s.push(u);return s}function KD(e,t){return function(n){return e(t(n))}}var _5=KD(Object.keys,Object);const T5=_5;var w5=Object.prototype,S5=w5.hasOwnProperty;function C5(e){if(!q_(e))return T5(e);var t=[];for(var n in Object(e))S5.call(e,n)&&n!="constructor"&&t.push(n);return t}function np(e){return Dc(e)?WD(e):C5(e)}function E5(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var x5=Object.prototype,k5=x5.hasOwnProperty;function A5(e){if(!da(e))return E5(e);var t=q_(e),n=[];for(var r in e)r=="constructor"&&(t||!k5.call(e,r))||n.push(r);return n}function rp(e){return Dc(e)?WD(e,!0):A5(e)}var D5=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,I5=/^\w*$/;function X_(e,t){if(ca(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Ev(e)?!0:I5.test(e)||!D5.test(e)||t!=null&&e in Object(t)}var P5=Wl(Object,"create");const vf=P5;function O5(){this.__data__=vf?vf(null):{},this.size=0}function M5(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var R5="__lodash_hash_undefined__",L5=Object.prototype,N5=L5.hasOwnProperty;function F5(e){var t=this.__data__;if(vf){var n=t[e];return n===R5?void 0:n}return N5.call(t,e)?t[e]:void 0}var $5=Object.prototype,B5=$5.hasOwnProperty;function V5(e){var t=this.__data__;return vf?t[e]!==void 0:B5.call(t,e)}var U5="__lodash_hash_undefined__";function H5(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=vf&&t===void 0?U5:t,this}function Ml(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ml.prototype.clear=O5;Ml.prototype.delete=M5;Ml.prototype.get=F5;Ml.prototype.has=V5;Ml.prototype.set=H5;function z5(){this.__data__=[],this.size=0}function kv(e,t){for(var n=e.length;n--;)if(tp(e[n][0],t))return n;return-1}var j5=Array.prototype,W5=j5.splice;function K5(e){var t=this.__data__,n=kv(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():W5.call(t,n,1),--this.size,!0}function q5(e){var t=this.__data__,n=kv(t,e);return n<0?void 0:t[n][1]}function G5(e){return kv(this.__data__,e)>-1}function Y5(e,t){var n=this.__data__,r=kv(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function ts(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ts.prototype.clear=z5;ts.prototype.delete=K5;ts.prototype.get=q5;ts.prototype.has=G5;ts.prototype.set=Y5;var X5=Wl(Ii,"Map");const gf=X5;function Q5(){this.size=0,this.__data__={hash:new Ml,map:new(gf||ts),string:new Ml}}function J5(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Av(e,t){var n=e.__data__;return J5(t)?n[typeof t=="string"?"string":"hash"]:n.map}function Z5(e){var t=Av(this,e).delete(e);return this.size-=t?1:0,t}function eV(e){return Av(this,e).get(e)}function tV(e){return Av(this,e).has(e)}function nV(e,t){var n=Av(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function ns(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ns.prototype.clear=Q5;ns.prototype.delete=Z5;ns.prototype.get=eV;ns.prototype.has=tV;ns.prototype.set=nV;var rV="Expected a function";function Dv(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(rV);var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],i=n.cache;if(i.has(a))return i.get(a);var o=e.apply(this,r);return n.cache=i.set(a,o)||i,o};return n.cache=new(Dv.Cache||ns),n}Dv.Cache=ns;var aV=500;function iV(e){var t=Dv(e,function(r){return n.size===aV&&n.clear(),r}),n=t.cache;return t}var oV=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,sV=/\\(\\)?/g,lV=iV(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(oV,function(n,r,a,i){t.push(a?i.replace(sV,"$1"):r||n)}),t});const uV=lV;function cV(e){return e==null?"":ND(e)}function Ic(e,t){return ca(e)?e:X_(e,t)?[e]:uV(cV(e))}var dV=1/0;function Pc(e){if(typeof e=="string"||Ev(e))return e;var t=e+"";return t=="0"&&1/e==-dV?"-0":t}function Iv(e,t){t=Ic(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Pc(t[n++])];return n&&n==r?e:void 0}function jn(e,t,n){var r=e==null?void 0:Iv(e,t);return r===void 0?n:r}function Q_(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}var IS=ei?ei.isConcatSpreadable:void 0;function fV(e){return ca(e)||hf(e)||!!(IS&&e&&e[IS])}function ap(e,t,n,r,a){var i=-1,o=e.length;for(n||(n=fV),a||(a=[]);++i<o;){var s=e[i];t>0&&n(s)?t>1?ap(s,t-1,n,r,a):Q_(a,s):r||(a[a.length]=s)}return a}function qD(e){var t=e==null?0:e.length;return t?ap(e,1):[]}function GD(e){return $D(VD(e,void 0,qD),e+"")}var pV=KD(Object.getPrototypeOf,Object);const J_=pV;var hV="[object Object]",mV=Function.prototype,vV=Object.prototype,YD=mV.toString,gV=vV.hasOwnProperty,yV=YD.call(Object);function XD(e){if(!ro(e)||zl(e)!=hV)return!1;var t=J_(e);if(t===null)return!0;var n=gV.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&YD.call(n)==yV}function bV(e,t,n){var r=-1,a=e.length;t<0&&(t=-t>a?0:a+t),n=n>a?a:n,n<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(a);++r<a;)i[r]=e[r+t];return i}function $r(){if(!arguments.length)return[];var e=arguments[0];return ca(e)?e:[e]}function _V(){this.__data__=new ts,this.size=0}function TV(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function wV(e){return this.__data__.get(e)}function SV(e){return this.__data__.has(e)}var CV=200;function EV(e,t){var n=this.__data__;if(n instanceof ts){var r=n.__data__;if(!gf||r.length<CV-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ns(r)}return n.set(e,t),this.size=n.size,this}function gi(e){var t=this.__data__=new ts(e);this.size=t.size}gi.prototype.clear=_V;gi.prototype.delete=TV;gi.prototype.get=wV;gi.prototype.has=SV;gi.prototype.set=EV;function xV(e,t){return e&&Ac(t,np(t),e)}function kV(e,t){return e&&Ac(t,rp(t),e)}var QD=typeof Fa=="object"&&Fa&&!Fa.nodeType&&Fa,PS=QD&&typeof $a=="object"&&$a&&!$a.nodeType&&$a,AV=PS&&PS.exports===QD,OS=AV?Ii.Buffer:void 0,MS=OS?OS.allocUnsafe:void 0;function JD(e,t){if(t)return e.slice();var n=e.length,r=MS?MS(n):new e.constructor(n);return e.copy(r),r}function DV(e,t){for(var n=-1,r=e==null?0:e.length,a=0,i=[];++n<r;){var o=e[n];t(o,n,e)&&(i[a++]=o)}return i}function ZD(){return[]}var IV=Object.prototype,PV=IV.propertyIsEnumerable,RS=Object.getOwnPropertySymbols,OV=RS?function(e){return e==null?[]:(e=Object(e),DV(RS(e),function(t){return PV.call(e,t)}))}:ZD;const Z_=OV;function MV(e,t){return Ac(e,Z_(e),t)}var RV=Object.getOwnPropertySymbols,LV=RV?function(e){for(var t=[];e;)Q_(t,Z_(e)),e=J_(e);return t}:ZD;const eI=LV;function NV(e,t){return Ac(e,eI(e),t)}function tI(e,t,n){var r=t(e);return ca(e)?r:Q_(r,n(e))}function wy(e){return tI(e,np,Z_)}function nI(e){return tI(e,rp,eI)}var FV=Wl(Ii,"DataView");const Sy=FV;var $V=Wl(Ii,"Promise");const Cy=$V;var BV=Wl(Ii,"Set");const Fu=BV;var LS="[object Map]",VV="[object Object]",NS="[object Promise]",FS="[object Set]",$S="[object WeakMap]",BS="[object DataView]",UV=jl(Sy),HV=jl(gf),zV=jl(Cy),jV=jl(Fu),WV=jl(Ty),ll=zl;(Sy&&ll(new Sy(new ArrayBuffer(1)))!=BS||gf&&ll(new gf)!=LS||Cy&&ll(Cy.resolve())!=NS||Fu&&ll(new Fu)!=FS||Ty&&ll(new Ty)!=$S)&&(ll=function(e){var t=zl(e),n=t==VV?e.constructor:void 0,r=n?jl(n):"";if(r)switch(r){case UV:return BS;case HV:return LS;case zV:return NS;case jV:return FS;case WV:return $S}return t});const yf=ll;var KV=Object.prototype,qV=KV.hasOwnProperty;function GV(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&qV.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var YV=Ii.Uint8Array;const gm=YV;function e1(e){var t=new e.constructor(e.byteLength);return new gm(t).set(new gm(e)),t}function XV(e,t){var n=t?e1(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var QV=/\w*$/;function JV(e){var t=new e.constructor(e.source,QV.exec(e));return t.lastIndex=e.lastIndex,t}var VS=ei?ei.prototype:void 0,US=VS?VS.valueOf:void 0;function ZV(e){return US?Object(US.call(e)):{}}function rI(e,t){var n=t?e1(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var eU="[object Boolean]",tU="[object Date]",nU="[object Map]",rU="[object Number]",aU="[object RegExp]",iU="[object Set]",oU="[object String]",sU="[object Symbol]",lU="[object ArrayBuffer]",uU="[object DataView]",cU="[object Float32Array]",dU="[object Float64Array]",fU="[object Int8Array]",pU="[object Int16Array]",hU="[object Int32Array]",mU="[object Uint8Array]",vU="[object Uint8ClampedArray]",gU="[object Uint16Array]",yU="[object Uint32Array]";function bU(e,t,n){var r=e.constructor;switch(t){case lU:return e1(e);case eU:case tU:return new r(+e);case uU:return XV(e,n);case cU:case dU:case fU:case pU:case hU:case mU:case vU:case gU:case yU:return rI(e,n);case nU:return new r;case rU:case oU:return new r(e);case aU:return JV(e);case iU:return new r;case sU:return ZV(e)}}function aI(e){return typeof e.constructor=="function"&&!q_(e)?c6(J_(e)):{}}var _U="[object Map]";function TU(e){return ro(e)&&yf(e)==_U}var HS=Yu&&Yu.isMap,wU=HS?G_(HS):TU;const SU=wU;var CU="[object Set]";function EU(e){return ro(e)&&yf(e)==CU}var zS=Yu&&Yu.isSet,xU=zS?G_(zS):EU;const kU=xU;var AU=1,DU=2,IU=4,iI="[object Arguments]",PU="[object Array]",OU="[object Boolean]",MU="[object Date]",RU="[object Error]",oI="[object Function]",LU="[object GeneratorFunction]",NU="[object Map]",FU="[object Number]",sI="[object Object]",$U="[object RegExp]",BU="[object Set]",VU="[object String]",UU="[object Symbol]",HU="[object WeakMap]",zU="[object ArrayBuffer]",jU="[object DataView]",WU="[object Float32Array]",KU="[object Float64Array]",qU="[object Int8Array]",GU="[object Int16Array]",YU="[object Int32Array]",XU="[object Uint8Array]",QU="[object Uint8ClampedArray]",JU="[object Uint16Array]",ZU="[object Uint32Array]",Nn={};Nn[iI]=Nn[PU]=Nn[zU]=Nn[jU]=Nn[OU]=Nn[MU]=Nn[WU]=Nn[KU]=Nn[qU]=Nn[GU]=Nn[YU]=Nn[NU]=Nn[FU]=Nn[sI]=Nn[$U]=Nn[BU]=Nn[VU]=Nn[UU]=Nn[XU]=Nn[QU]=Nn[JU]=Nn[ZU]=!0;Nn[RU]=Nn[oI]=Nn[HU]=!1;function $u(e,t,n,r,a,i){var o,s=t&AU,l=t&DU,u=t&IU;if(n&&(o=a?n(e,r,a,i):n(e)),o!==void 0)return o;if(!da(e))return e;var c=ca(e);if(c){if(o=GV(e),!s)return FD(e,o)}else{var d=yf(e),p=d==oI||d==LU;if(mf(e))return JD(e,s);if(d==sI||d==iI||p&&!a){if(o=l||p?{}:aI(e),!s)return l?NV(e,kV(o,e)):MV(e,xV(o,e))}else{if(!Nn[d])return a?e:{};o=bU(e,d,s)}}i||(i=new gi);var h=i.get(e);if(h)return h;i.set(e,o),kU(e)?e.forEach(function(g){o.add($u(g,t,n,g,e,i))}):SU(e)&&e.forEach(function(g,y){o.set(y,$u(g,t,n,y,e,i))});var v=u?l?nI:wy:l?rp:np,m=c?void 0:v(e);return w6(m||e,function(g,y){m&&(y=g,g=e[y]),W_(o,y,$u(g,t,n,y,e,i))}),o}var e9=4;function jS(e){return $u(e,e9)}var t9=1,n9=4;function ym(e){return $u(e,t9|n9)}var r9="__lodash_hash_undefined__";function a9(e){return this.__data__.set(e,r9),this}function i9(e){return this.__data__.has(e)}function bf(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new ns;++t<n;)this.add(e[t])}bf.prototype.add=bf.prototype.push=a9;bf.prototype.has=i9;function o9(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function lI(e,t){return e.has(t)}var s9=1,l9=2;function uI(e,t,n,r,a,i){var o=n&s9,s=e.length,l=t.length;if(s!=l&&!(o&&l>s))return!1;var u=i.get(e),c=i.get(t);if(u&&c)return u==t&&c==e;var d=-1,p=!0,h=n&l9?new bf:void 0;for(i.set(e,t),i.set(t,e);++d<s;){var v=e[d],m=t[d];if(r)var g=o?r(m,v,d,t,e,i):r(v,m,d,e,t,i);if(g!==void 0){if(g)continue;p=!1;break}if(h){if(!o9(t,function(y,T){if(!lI(h,T)&&(v===y||a(v,y,n,r,i)))return h.push(T)})){p=!1;break}}else if(!(v===m||a(v,m,n,r,i))){p=!1;break}}return i.delete(e),i.delete(t),p}function u9(e){var t=-1,n=Array(e.size);return e.forEach(function(r,a){n[++t]=[a,r]}),n}function t1(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var c9=1,d9=2,f9="[object Boolean]",p9="[object Date]",h9="[object Error]",m9="[object Map]",v9="[object Number]",g9="[object RegExp]",y9="[object Set]",b9="[object String]",_9="[object Symbol]",T9="[object ArrayBuffer]",w9="[object DataView]",WS=ei?ei.prototype:void 0,n0=WS?WS.valueOf:void 0;function S9(e,t,n,r,a,i,o){switch(n){case w9:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case T9:return!(e.byteLength!=t.byteLength||!i(new gm(e),new gm(t)));case f9:case p9:case v9:return tp(+e,+t);case h9:return e.name==t.name&&e.message==t.message;case g9:case b9:return e==t+"";case m9:var s=u9;case y9:var l=r&c9;if(s||(s=t1),e.size!=t.size&&!l)return!1;var u=o.get(e);if(u)return u==t;r|=d9,o.set(e,t);var c=uI(s(e),s(t),r,a,i,o);return o.delete(e),c;case _9:if(n0)return n0.call(e)==n0.call(t)}return!1}var C9=1,E9=Object.prototype,x9=E9.hasOwnProperty;function k9(e,t,n,r,a,i){var o=n&C9,s=wy(e),l=s.length,u=wy(t),c=u.length;if(l!=c&&!o)return!1;for(var d=l;d--;){var p=s[d];if(!(o?p in t:x9.call(t,p)))return!1}var h=i.get(e),v=i.get(t);if(h&&v)return h==t&&v==e;var m=!0;i.set(e,t),i.set(t,e);for(var g=o;++d<l;){p=s[d];var y=e[p],T=t[p];if(r)var b=o?r(T,y,p,t,e,i):r(y,T,p,e,t,i);if(!(b===void 0?y===T||a(y,T,n,r,i):b)){m=!1;break}g||(g=p=="constructor")}if(m&&!g){var _=e.constructor,w=t.constructor;_!=w&&"constructor"in e&&"constructor"in t&&!(typeof _=="function"&&_ instanceof _&&typeof w=="function"&&w instanceof w)&&(m=!1)}return i.delete(e),i.delete(t),m}var A9=1,KS="[object Arguments]",qS="[object Array]",Qp="[object Object]",D9=Object.prototype,GS=D9.hasOwnProperty;function I9(e,t,n,r,a,i){var o=ca(e),s=ca(t),l=o?qS:yf(e),u=s?qS:yf(t);l=l==KS?Qp:l,u=u==KS?Qp:u;var c=l==Qp,d=u==Qp,p=l==u;if(p&&mf(e)){if(!mf(t))return!1;o=!0,c=!1}if(p&&!c)return i||(i=new gi),o||Y_(e)?uI(e,t,n,r,a,i):S9(e,t,l,n,r,a,i);if(!(n&A9)){var h=c&&GS.call(e,"__wrapped__"),v=d&&GS.call(t,"__wrapped__");if(h||v){var m=h?e.value():e,g=v?t.value():t;return i||(i=new gi),a(m,g,n,r,i)}}return p?(i||(i=new gi),k9(e,t,n,r,a,i)):!1}function Pv(e,t,n,r,a){return e===t?!0:e==null||t==null||!ro(e)&&!ro(t)?e!==e&&t!==t:I9(e,t,n,r,Pv,a)}var P9=1,O9=2;function M9(e,t,n,r){var a=n.length,i=a,o=!r;if(e==null)return!i;for(e=Object(e);a--;){var s=n[a];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++a<i;){s=n[a];var l=s[0],u=e[l],c=s[1];if(o&&s[2]){if(u===void 0&&!(l in e))return!1}else{var d=new gi;if(r)var p=r(u,c,l,e,t,d);if(!(p===void 0?Pv(c,u,P9|O9,r,d):p))return!1}}return!0}function cI(e){return e===e&&!da(e)}function R9(e){for(var t=np(e),n=t.length;n--;){var r=t[n],a=e[r];t[n]=[r,a,cI(a)]}return t}function dI(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function L9(e){var t=R9(e);return t.length==1&&t[0][2]?dI(t[0][0],t[0][1]):function(n){return n===e||M9(n,e,t)}}function N9(e,t){return e!=null&&t in Object(e)}function F9(e,t,n){t=Ic(t,e);for(var r=-1,a=t.length,i=!1;++r<a;){var o=Pc(t[r]);if(!(i=e!=null&&n(e,o)))break;e=e[o]}return i||++r!=a?i:(a=e==null?0:e.length,!!a&&K_(a)&&xv(o,a)&&(ca(e)||hf(e)))}function fI(e,t){return e!=null&&F9(e,t,N9)}var $9=1,B9=2;function V9(e,t){return X_(e)&&cI(t)?dI(Pc(e),t):function(n){var r=jn(n,e);return r===void 0&&r===t?fI(n,e):Pv(t,r,$9|B9)}}function U9(e){return function(t){return t==null?void 0:t[e]}}function H9(e){return function(t){return Iv(t,e)}}function z9(e){return X_(e)?U9(Pc(e)):H9(e)}function pI(e){return typeof e=="function"?e:e==null?H_:typeof e=="object"?ca(e)?V9(e[0],e[1]):L9(e):z9(e)}function j9(e){return function(t,n,r){for(var a=-1,i=Object(t),o=r(t),s=o.length;s--;){var l=o[e?s:++a];if(n(i[l],l,i)===!1)break}return t}}var W9=j9();const hI=W9;function K9(e,t){return e&&hI(e,t,np)}function q9(e,t){return function(n,r){if(n==null)return n;if(!Dc(n))return e(n,r);for(var a=n.length,i=t?a:-1,o=Object(n);(t?i--:++i<a)&&r(o[i],i,o)!==!1;);return n}}var G9=q9(K9);const Y9=G9;var X9=function(){return Ii.Date.now()};const r0=X9;var Q9="Expected a function",J9=Math.max,Z9=Math.min;function wa(e,t,n){var r,a,i,o,s,l,u=0,c=!1,d=!1,p=!0;if(typeof e!="function")throw new TypeError(Q9);t=_y(t)||0,da(n)&&(c=!!n.leading,d="maxWait"in n,i=d?J9(_y(n.maxWait)||0,t):i,p="trailing"in n?!!n.trailing:p);function h(S){var A=r,I=a;return r=a=void 0,u=S,o=e.apply(I,A),o}function v(S){return u=S,s=setTimeout(y,t),c?h(S):o}function m(S){var A=S-l,I=S-u,D=t-A;return d?Z9(D,i-I):D}function g(S){var A=S-l,I=S-u;return l===void 0||A>=t||A<0||d&&I>=i}function y(){var S=r0();if(g(S))return T(S);s=setTimeout(y,m(S))}function T(S){return s=void 0,p&&r?h(S):(r=a=void 0,o)}function b(){s!==void 0&&clearTimeout(s),u=0,r=l=a=s=void 0}function _(){return s===void 0?o:T(r0())}function w(){var S=r0(),A=g(S);if(r=arguments,a=this,l=S,A){if(s===void 0)return v(l);if(d)return clearTimeout(s),s=setTimeout(y,t),h(l)}return s===void 0&&(s=setTimeout(y,t)),o}return w.cancel=b,w.flush=_,w}function Ey(e,t,n){(n!==void 0&&!tp(e[t],n)||n===void 0&&!(t in e))&&j_(e,t,n)}function mI(e){return ro(e)&&Dc(e)}function xy(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function eH(e){return Ac(e,rp(e))}function tH(e,t,n,r,a,i,o){var s=xy(e,n),l=xy(t,n),u=o.get(l);if(u){Ey(e,n,u);return}var c=i?i(s,l,n+"",e,t,o):void 0,d=c===void 0;if(d){var p=ca(l),h=!p&&mf(l),v=!p&&!h&&Y_(l);c=l,p||h||v?ca(s)?c=s:mI(s)?c=FD(s):h?(d=!1,c=JD(l,!0)):v?(d=!1,c=rI(l,!0)):c=[]:XD(l)||hf(l)?(c=s,hf(s)?c=eH(s):(!da(s)||z_(s))&&(c=aI(l))):d=!1}d&&(o.set(l,c),a(c,l,r,i,o),o.delete(l)),Ey(e,n,c)}function vI(e,t,n,r,a){e!==t&&hI(t,function(i,o){if(a||(a=new gi),da(i))tH(e,t,o,n,vI,r,a);else{var s=r?r(xy(e,o),i,o+"",e,t,a):void 0;s===void 0&&(s=i),Ey(e,o,s)}},rp)}function nH(e,t,n){for(var r=-1,a=e==null?0:e.length;++r<a;)if(n(t,e[r]))return!0;return!1}function rH(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var aH=Math.max,iH=Math.min;function gI(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var a=r-1;return n!==void 0&&(a=jB(n),a=n<0?aH(r+a,0):iH(a,r-1)),BD(e,pI(t),a,!0)}function oH(e,t){var n=-1,r=Dc(e)?Array(e.length):[];return Y9(e,function(a,i,o){r[++n]=t(a,i,o)}),r}function sH(e,t){var n=ca(e)?U_:oH;return n(e,pI(t))}function lH(e,t){return ap(sH(e,t),1)}var uH=1/0;function cH(e){var t=e==null?0:e.length;return t?ap(e,uH):[]}function _f(e){for(var t=-1,n=e==null?0:e.length,r={};++t<n;){var a=e[t];r[a[0]]=a[1]}return r}function dH(e,t){return t.length<2?e:Iv(e,bV(t,0,-1))}function pr(e,t){return Pv(e,t)}function sr(e){return e==null}function ip(e){return e===null}function yI(e){return e===void 0}var fH=M6(function(e,t,n){vI(e,t,n)});const bI=fH;function pH(e,t){return t=Ic(t,e),e=dH(e,t),e==null||delete e[Pc(rH(t))]}function hH(e){return XD(e)?void 0:e}var mH=1,vH=2,gH=4,yH=GD(function(e,t){var n={};if(e==null)return n;var r=!1;t=U_(t,function(i){return i=Ic(i,e),r||(r=i.length>1),i}),Ac(e,nI(e),n),r&&(n=$u(n,mH|vH|gH,hH));for(var a=t.length;a--;)pH(n,t[a]);return n});const bH=yH;function _I(e,t,n,r){if(!da(e))return e;t=Ic(t,e);for(var a=-1,i=t.length,o=i-1,s=e;s!=null&&++a<i;){var l=Pc(t[a]),u=n;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(a!=o){var c=s[l];u=r?r(c,l,s):void 0,u===void 0&&(u=da(c)?c:xv(t[a+1])?[]:{})}W_(s,l,u),s=s[l]}return e}function _H(e,t,n){for(var r=-1,a=t.length,i={};++r<a;){var o=t[r],s=Iv(e,o);n(s,o)&&_I(i,Ic(o,e),s)}return i}function TH(e,t){return _H(e,t,function(n,r){return fI(e,r)})}var wH=GD(function(e,t){return e==null?{}:TH(e,t)});const hi=wH;function SH(e,t,n){return e==null?e:_I(e,t,n)}var CH="Expected a function";function wl(e,t,n){var r=!0,a=!0;if(typeof e!="function")throw new TypeError(CH);return da(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),wa(e,t,{leading:r,maxWait:t,trailing:a})}var EH=1/0,xH=Fu&&1/t1(new Fu([,-0]))[1]==EH?function(e){return new Fu(e)}:f6;const kH=xH;var AH=200;function DH(e,t,n){var r=-1,a=x6,i=e.length,o=!0,s=[],l=s;if(n)o=!1,a=nH;else if(i>=AH){var u=t?null:kH(e);if(u)return t1(u);o=!1,a=lI,l=new bf}else l=t?[]:s;e:for(;++r<i;){var c=e[r],d=t?t(c):c;if(c=n||c!==0?c:0,o&&d===d){for(var p=l.length;p--;)if(l[p]===d)continue e;t&&l.push(d),s.push(c)}else a(l,d,n)||(l!==s&&l.push(d),s.push(c))}return s}var IH=UD(function(e){return DH(ap(e,1,mI,!0))});const a0=IH,Xt=e=>e===void 0,pn=e=>typeof e=="boolean",st=e=>typeof e=="number",Oa=e=>!e&&e!==0||Be(e)&&e.length===0||It(e)&&!Object.keys(e).length,oa=e=>typeof Element>"u"?!1:e instanceof Element,yi=e=>sr(e),PH=e=>rt(e)?!Number.isNaN(Number(e)):!1,Ov=e=>e===window;var OH=Object.defineProperty,MH=Object.defineProperties,RH=Object.getOwnPropertyDescriptors,YS=Object.getOwnPropertySymbols,LH=Object.prototype.hasOwnProperty,NH=Object.prototype.propertyIsEnumerable,XS=(e,t,n)=>t in e?OH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,FH=(e,t)=>{for(var n in t||(t={}))LH.call(t,n)&&XS(e,n,t[n]);if(YS)for(var n of YS(t))NH.call(t,n)&&XS(e,n,t[n]);return e},$H=(e,t)=>MH(e,RH(t));function ky(e,t){var n;const r=cn();return _r(()=>{r.value=e()},$H(FH({},t),{flush:(n=t==null?void 0:t.flush)!=null?n:"sync"})),Ul(r)}var QS;const Wt=typeof window<"u",BH=e=>typeof e<"u",Ay=e=>typeof e=="function",VH=e=>typeof e=="string",Xu=()=>{},bm=Wt&&((QS=window==null?void 0:window.navigator)==null?void 0:QS.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Ps(e){return typeof e=="function"?e():f(e)}function TI(e,t){function n(...r){return new Promise((a,i)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(a).catch(i)})}return n}function UH(e,t={}){let n,r,a=Xu;const i=s=>{clearTimeout(s),a(),a=Xu};return s=>{const l=Ps(e),u=Ps(t.maxWait);return n&&i(n),l<=0||u!==void 0&&u<=0?(r&&(i(r),r=null),Promise.resolve(s())):new Promise((c,d)=>{a=t.rejectOnCancel?d:c,u&&!r&&(r=setTimeout(()=>{n&&i(n),r=null,c(s())},u)),n=setTimeout(()=>{r&&i(r),r=null,c(s())},l)})}}function HH(e,t=!0,n=!0,r=!1){let a=0,i,o=!0,s=Xu,l;const u=()=>{i&&(clearTimeout(i),i=void 0,s(),s=Xu)};return d=>{const p=Ps(e),h=Date.now()-a,v=()=>l=d();return u(),p<=0?(a=Date.now(),v()):(h>p&&(n||!o)?(a=Date.now(),v()):t&&(l=new Promise((m,g)=>{s=r?g:m,i=setTimeout(()=>{a=Date.now(),o=!0,m(v()),u()},Math.max(0,p-h))})),!n&&!i&&(i=setTimeout(()=>o=!0,p)),o=!1,l)}}function zH(e){return e}function jH(e,t){let n,r,a;const i=z(!0),o=()=>{i.value=!0,a()};Ie(e,o,{flush:"sync"});const s=Ay(t)?t:t.get,l=Ay(t)?void 0:t.set,u=AF((c,d)=>(r=c,a=d,{get(){return i.value&&(n=s(),i.value=!1),r(),n},set(p){l==null||l(p)}}));return Object.isExtensible(u)&&(u.trigger=o),u}function op(e){return hA()?(mA(e),!0):!1}function WH(e,t=200,n={}){return TI(UH(t,n),e)}function KH(e,t=200,n={}){const r=z(e.value),a=WH(()=>{r.value=e.value},t,n);return Ie(e,()=>a()),r}function wI(e,t=200,n=!1,r=!0,a=!1){return TI(HH(t,n,r,a),e)}function n1(e,t=!0){Mt()?ht(e):t?e():it(e)}function Rl(e,t,n={}){const{immediate:r=!0}=n,a=z(!1);let i=null;function o(){i&&(clearTimeout(i),i=null)}function s(){a.value=!1,o()}function l(...u){o(),a.value=!0,i=setTimeout(()=>{a.value=!1,i=null,e(...u)},Ps(t))}return r&&(a.value=!0,Wt&&l()),op(s),{isPending:Ul(a),start:l,stop:s}}function ia(e){var t;const n=Ps(e);return(t=n==null?void 0:n.$el)!=null?t:n}const js=Wt?window:void 0,qH=Wt?window.document:void 0;function ln(...e){let t,n,r,a;if(VH(e[0])||Array.isArray(e[0])?([n,r,a]=e,t=js):[t,n,r,a]=e,!t)return Xu;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const i=[],o=()=>{i.forEach(c=>c()),i.length=0},s=(c,d,p,h)=>(c.addEventListener(d,p,h),()=>c.removeEventListener(d,p,h)),l=Ie(()=>[ia(t),Ps(a)],([c,d])=>{o(),c&&i.push(...n.flatMap(p=>r.map(h=>s(c,p,h,d))))},{immediate:!0,flush:"post"}),u=()=>{l(),o()};return op(u),u}let JS=!1;function r1(e,t,n={}){const{window:r=js,ignore:a=[],capture:i=!0,detectIframe:o=!1}=n;if(!r)return;bm&&!JS&&(JS=!0,Array.from(r.document.body.children).forEach(p=>p.addEventListener("click",Xu)));let s=!0;const l=p=>a.some(h=>{if(typeof h=="string")return Array.from(r.document.querySelectorAll(h)).some(v=>v===p.target||p.composedPath().includes(v));{const v=ia(h);return v&&(p.target===v||p.composedPath().includes(v))}}),c=[ln(r,"click",p=>{const h=ia(e);if(!(!h||h===p.target||p.composedPath().includes(h))){if(p.detail===0&&(s=!l(p)),!s){s=!0;return}t(p)}},{passive:!0,capture:i}),ln(r,"pointerdown",p=>{const h=ia(e);h&&(s=!p.composedPath().includes(h)&&!l(p))},{passive:!0}),o&&ln(r,"blur",p=>{var h;const v=ia(e);((h=r.document.activeElement)==null?void 0:h.tagName)==="IFRAME"&&!(v!=null&&v.contains(r.document.activeElement))&&t(p)})].filter(Boolean);return()=>c.forEach(p=>p())}function GH(e={}){var t;const{window:n=js}=e,r=(t=e.document)!=null?t:n==null?void 0:n.document,a=jH(()=>null,()=>r==null?void 0:r.activeElement);return n&&(ln(n,"blur",i=>{i.relatedTarget===null&&a.trigger()},!0),ln(n,"focus",a.trigger,!0)),a}function SI(e,t=!1){const n=z(),r=()=>n.value=!!e();return r(),n1(r,t),n}function YH(e){return JSON.parse(JSON.stringify(e))}const ZS=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},eC="__vueuse_ssr_handlers__";ZS[eC]=ZS[eC]||{};function XH(e,t,{window:n=js,initialValue:r=""}={}){const a=z(r),i=k(()=>{var o;return ia(t)||((o=n==null?void 0:n.document)==null?void 0:o.documentElement)});return Ie([i,()=>Ps(e)],([o,s])=>{var l;if(o&&n){const u=(l=n.getComputedStyle(o).getPropertyValue(s))==null?void 0:l.trim();a.value=u||r}},{immediate:!0}),Ie(a,o=>{var s;(s=i.value)!=null&&s.style&&i.value.style.setProperty(Ps(e),o)}),a}function QH({document:e=qH}={}){if(!e)return z("visible");const t=z(e.visibilityState);return ln(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var tC=Object.getOwnPropertySymbols,JH=Object.prototype.hasOwnProperty,ZH=Object.prototype.propertyIsEnumerable,e7=(e,t)=>{var n={};for(var r in e)JH.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&tC)for(var r of tC(e))t.indexOf(r)<0&&ZH.call(e,r)&&(n[r]=e[r]);return n};function In(e,t,n={}){const r=n,{window:a=js}=r,i=e7(r,["window"]);let o;const s=SI(()=>a&&"ResizeObserver"in a),l=()=>{o&&(o.disconnect(),o=void 0)},u=Ie(()=>ia(e),d=>{l(),s.value&&a&&d&&(o=new ResizeObserver(t),o.observe(d,i))},{immediate:!0,flush:"post"}),c=()=>{l(),u()};return op(c),{isSupported:s,stop:c}}function nC(e,t={}){const{reset:n=!0,windowResize:r=!0,windowScroll:a=!0,immediate:i=!0}=t,o=z(0),s=z(0),l=z(0),u=z(0),c=z(0),d=z(0),p=z(0),h=z(0);function v(){const m=ia(e);if(!m){n&&(o.value=0,s.value=0,l.value=0,u.value=0,c.value=0,d.value=0,p.value=0,h.value=0);return}const g=m.getBoundingClientRect();o.value=g.height,s.value=g.bottom,l.value=g.left,u.value=g.right,c.value=g.top,d.value=g.width,p.value=g.x,h.value=g.y}return In(e,v),Ie(()=>ia(e),m=>!m&&v()),a&&ln("scroll",v,{capture:!0,passive:!0}),r&&ln("resize",v,{passive:!0}),n1(()=>{i&&v()}),{height:o,bottom:s,left:l,right:u,top:c,width:d,x:p,y:h,update:v}}var rC=Object.getOwnPropertySymbols,t7=Object.prototype.hasOwnProperty,n7=Object.prototype.propertyIsEnumerable,r7=(e,t)=>{var n={};for(var r in e)t7.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&rC)for(var r of rC(e))t.indexOf(r)<0&&n7.call(e,r)&&(n[r]=e[r]);return n};function CI(e,t,n={}){const r=n,{window:a=js}=r,i=r7(r,["window"]);let o;const s=SI(()=>a&&"MutationObserver"in a),l=()=>{o&&(o.disconnect(),o=void 0)},u=Ie(()=>ia(e),d=>{l(),s.value&&a&&d&&(o=new MutationObserver(t),o.observe(d,i))},{immediate:!0}),c=()=>{l(),u()};return op(c),{isSupported:s,stop:c}}var aC;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(aC||(aC={}));var a7=Object.defineProperty,iC=Object.getOwnPropertySymbols,i7=Object.prototype.hasOwnProperty,o7=Object.prototype.propertyIsEnumerable,oC=(e,t,n)=>t in e?a7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,s7=(e,t)=>{for(var n in t||(t={}))i7.call(t,n)&&oC(e,n,t[n]);if(iC)for(var n of iC(t))o7.call(t,n)&&oC(e,n,t[n]);return e};const l7={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};s7({linear:zH},l7);function EI(e,t,n,r={}){var a,i,o;const{clone:s=!1,passive:l=!1,eventName:u,deep:c=!1,defaultValue:d}=r,p=Mt(),h=n||(p==null?void 0:p.emit)||((a=p==null?void 0:p.$emit)==null?void 0:a.bind(p))||((o=(i=p==null?void 0:p.proxy)==null?void 0:i.$emit)==null?void 0:o.bind(p==null?void 0:p.proxy));let v=u;t||(t="modelValue"),v=u||v||`update:${t.toString()}`;const m=y=>s?Ay(s)?s(y):YH(y):y,g=()=>BH(e[t])?m(e[t]):d;if(l){const y=g(),T=z(y);return Ie(()=>e[t],b=>T.value=m(b)),Ie(T,b=>{(b!==e[t]||c)&&h(v,b)},{deep:c}),T}else return k({get(){return g()},set(y){h(v,y)}})}function u7({window:e=js}={}){if(!e)return z(!1);const t=z(e.document.hasFocus());return ln(e,"blur",()=>{t.value=!1}),ln(e,"focus",()=>{t.value=!0}),t}function c7(e={}){const{window:t=js,initialWidth:n=1/0,initialHeight:r=1/0,listenOrientation:a=!0,includeScrollbar:i=!0}=e,o=z(n),s=z(r),l=()=>{t&&(i?(o.value=t.innerWidth,s.value=t.innerHeight):(o.value=t.document.documentElement.clientWidth,s.value=t.document.documentElement.clientHeight))};return l(),n1(l),ln("resize",l,{passive:!0}),a&&ln("orientationchange",l,{passive:!0}),{width:o,height:s}}class d7 extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function rr(e,t){throw new d7(`[${e}] ${t}`)}const sC={current:0},lC=z(0),xI=2e3,uC=Symbol("elZIndexContextKey"),kI=Symbol("zIndexContextKey"),Oc=e=>{const t=Mt()?Qe(uC,sC):sC,n=e||(Mt()?Qe(kI,void 0):void 0),r=k(()=>{const o=f(n);return st(o)?o:xI}),a=k(()=>r.value+lC.value),i=()=>(t.current++,lC.value=t.current,a.value);return!Wt&&Qe(uC),{initialZIndex:r,currentZIndex:a,nextZIndex:i}};var f7={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color.",alphaLabel:"pick alpha value"},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},mention:{loading:"Loading"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tour:{next:"Next",previous:"Previous",finish:"Finish"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};const p7=e=>(t,n)=>h7(t,n,f(e)),h7=(e,t,n)=>jn(n,e,e).replace(/\{(\w+)\}/g,(r,a)=>{var i;return`${(i=t==null?void 0:t[a])!=null?i:`{${a}}`}`}),m7=e=>{const t=k(()=>f(e).name),n=yn(e)?e:z(e);return{lang:t,locale:n,t:p7(e)}},AI=Symbol("localeContextKey"),Kt=e=>{const t=e||Qe(AI,z());return m7(k(()=>t.value||f7))},DI="__epPropKey",ue=e=>e,v7=e=>It(e)&&!!e[DI],Pi=(e,t)=>{if(!It(e)||v7(e))return e;const{values:n,required:r,default:a,type:i,validator:o}=e,l={type:i,required:!!r,validator:n||o?u=>{let c=!1,d=[];if(n&&(d=Array.from(n),Yt(e,"default")&&d.push(a),c||(c=d.includes(u))),o&&(c||(c=o(u))),!c&&d.length>0){const p=[...new Set(d)].map(h=>JSON.stringify(h)).join(", ");R$(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${p}], got value ${JSON.stringify(u)}.`)}return c}:void 0,[DI]:!0};return Yt(e,"default")&&(l.default=a),l},Ue=e=>_f(Object.entries(e).map(([t,n])=>[t,Pi(n,t)])),uo=["","default","small","large"],Xn=Pi({type:String,values:uo,required:!1}),II=Symbol("size"),PI=()=>{const e=Qe(II,{});return k(()=>f(e.size)||"")},OI=Symbol("emptyValuesContextKey"),g7=["",void 0,null],y7=void 0,Mc=Ue({emptyValues:Array,valueOnClear:{type:[String,Number,Boolean,Function],default:void 0,validator:e=>ot(e)?!e():!e}}),Mv=(e,t)=>{const n=Mt()?Qe(OI,z({})):z({}),r=k(()=>e.emptyValues||n.value.emptyValues||g7),a=k(()=>ot(e.valueOnClear)?e.valueOnClear():e.valueOnClear!==void 0?e.valueOnClear:ot(n.value.valueOnClear)?n.value.valueOnClear():n.value.valueOnClear!==void 0?n.value.valueOnClear:t!==void 0?t:y7),i=o=>r.value.includes(o);return r.value.includes(a.value),{emptyValues:r,valueOnClear:a,isEmptyValue:i}},Qu=e=>Object.keys(e),MI=e=>Object.entries(e),jd=(e,t,n)=>({get value(){return jn(e,t,n)},set value(r){SH(e,t,r)}}),_m=z();function Rv(e,t=void 0){const n=Mt()?Qe(OD,_m):_m;return e?k(()=>{var r,a;return(a=(r=n.value)==null?void 0:r[e])!=null?a:t}):n}function Lv(e,t){const n=Rv(),r=Le(e,k(()=>{var s;return((s=n.value)==null?void 0:s.namespace)||Hd})),a=Kt(k(()=>{var s;return(s=n.value)==null?void 0:s.locale})),i=Oc(k(()=>{var s;return((s=n.value)==null?void 0:s.zIndex)||xI})),o=k(()=>{var s;return f(t)||((s=n.value)==null?void 0:s.size)||""});return a1(k(()=>f(n)||{})),{ns:r,locale:a,zIndex:i,size:o}}const a1=(e,t,n=!1)=>{var r;const a=!!Mt(),i=a?Rv():void 0,o=(r=t==null?void 0:t.provide)!=null?r:a?Vt:void 0;if(!o)return;const s=k(()=>{const l=f(e);return i!=null&&i.value?b7(i.value,l):l});return o(OD,s),o(AI,k(()=>s.value.locale)),o(MD,k(()=>s.value.namespace)),o(kI,k(()=>s.value.zIndex)),o(II,{size:k(()=>s.value.size||"")}),o(OI,k(()=>({emptyValues:s.value.emptyValues,valueOnClear:s.value.valueOnClear}))),(n||!_m.value)&&(_m.value=s.value),s},b7=(e,t)=>{const n=[...new Set([...Qu(e),...Qu(t)])],r={};for(const a of n)r[a]=t[a]!==void 0?t[a]:e[a];return r},_7=(e=[])=>({version:gB,install:(n,r)=>{n[gS]||(n[gS]=!0,e.forEach(a=>n.use(a)),r&&a1(r,n,!0))}}),_t="update:modelValue",$t="change",hr="input",T7=Ue({zIndex:{type:ue([Number,String]),default:100},target:{type:String,default:""},offset:{type:Number,default:0},position:{type:String,values:["top","bottom"],default:"top"}}),w7={scroll:({scrollTop:e,fixed:t})=>st(e)&&pn(t),[$t]:e=>pn(e)};var He=(e,t)=>{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n};function S7(e,t,n,r){const a=n-t;return e/=r/2,e<1?a/2*e*e*e+t:a/2*((e-=2)*e*e+2)+t}const Os=e=>Wt?window.requestAnimationFrame(e):setTimeout(e,16),Ll=e=>Wt?window.cancelAnimationFrame(e):clearTimeout(e),RI=(e="")=>e.split(" ").filter(t=>!!t.trim()),ba=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},Ga=(e,t)=>{!e||!t.trim()||e.classList.add(...RI(t))},Ur=(e,t)=>{!e||!t.trim()||e.classList.remove(...RI(t))},Mo=(e,t)=>{var n;if(!Wt||!e||!t)return"";let r=ua(t);r==="float"&&(r="cssFloat");try{const a=e.style[r];if(a)return a;const i=(n=document.defaultView)==null?void 0:n.getComputedStyle(e,"");return i?i[r]:""}catch{return e.style[r]}},LI=(e,t,n)=>{if(!(!e||!t))if(It(t))MI(t).forEach(([r,a])=>LI(e,r,a));else{const r=ua(t);e.style[r]=n}};function Ln(e,t="px"){if(!e)return"";if(st(e)||PH(e))return`${e}${t}`;if(rt(e))return e}const C7=(e,t)=>{if(!Wt)return!1;const n={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(t)],r=Mo(e,n);return["scroll","auto","overlay"].some(a=>r.includes(a))},i1=(e,t)=>{if(!Wt)return;let n=e;for(;n;){if([window,document,document.documentElement].includes(n))return window;if(C7(n,t))return n;n=n.parentNode}return n};let Jp;const NI=e=>{var t;if(!Wt)return 0;if(Jp!==void 0)return Jp;const n=document.createElement("div");n.className=`${e}-scrollbar__wrap`,n.style.visibility="hidden",n.style.width="100px",n.style.position="absolute",n.style.top="-9999px",document.body.appendChild(n);const r=n.offsetWidth;n.style.overflow="scroll";const a=document.createElement("div");a.style.width="100%",n.appendChild(a);const i=a.offsetWidth;return(t=n.parentNode)==null||t.removeChild(n),Jp=r-i,Jp};function o1(e,t){if(!Wt)return;if(!t){e.scrollTop=0;return}const n=[];let r=t.offsetParent;for(;r!==null&&e!==r&&e.contains(r);)n.push(r),r=r.offsetParent;const a=t.offsetTop+n.reduce((l,u)=>l+u.offsetTop,0),i=a+t.offsetHeight,o=e.scrollTop,s=o+e.clientHeight;a<o?e.scrollTop=a:i>s&&(e.scrollTop=i-e.clientHeight)}function E7(e,t,n,r,a){const i=Date.now();let o;const s=()=>{const u=Date.now()-i,c=S7(u>r?r:u,t,n,r);Ov(e)?e.scrollTo(window.pageXOffset,c):e.scrollTop=c,u<r?o=Os(s):ot(a)&&a()};return s(),()=>{o&&Ll(o)}}const cC=(e,t)=>Ov(t)?e.ownerDocument.documentElement:t,dC=e=>Ov(e)?window.scrollY:e.scrollTop,FI="ElAffix",x7=J({name:FI}),k7=J({...x7,props:T7,emits:w7,setup(e,{expose:t,emit:n}){const r=e,a=Le("affix"),i=cn(),o=cn(),s=cn(),{height:l}=c7(),{height:u,width:c,top:d,bottom:p,update:h}=nC(o,{windowScroll:!1}),v=nC(i),m=z(!1),g=z(0),y=z(0),T=k(()=>({height:m.value?`${u.value}px`:"",width:m.value?`${c.value}px`:""})),b=k(()=>{if(!m.value)return{};const S=r.offset?Ln(r.offset):0;return{height:`${u.value}px`,width:`${c.value}px`,top:r.position==="top"?S:"",bottom:r.position==="bottom"?S:"",transform:y.value?`translateY(${y.value}px)`:"",zIndex:r.zIndex}}),_=()=>{if(!s.value)return;g.value=s.value instanceof Window?document.documentElement.scrollTop:s.value.scrollTop||0;const{position:S,target:A,offset:I}=r,D=I+u.value;if(S==="top")if(A){const O=v.bottom.value-D;m.value=I>d.value&&v.bottom.value>0,y.value=O<0?O:0}else m.value=I>d.value;else if(A){const O=l.value-v.top.value-D;m.value=l.value-I<p.value&&l.value>v.top.value,y.value=O<0?-O:0}else m.value=l.value-I<p.value},w=async()=>{h(),await it(),n("scroll",{scrollTop:g.value,fixed:m.value})};return Ie(m,S=>n($t,S)),ht(()=>{var S;r.target?(i.value=(S=document.querySelector(r.target))!=null?S:void 0,i.value||rr(FI,`Target does not exist: ${r.target}`)):i.value=document.documentElement,s.value=i1(o.value,!0),h()}),ln(s,"scroll",w),_r(_),t({update:_,updateRoot:h}),(S,A)=>(x(),U("div",{ref_key:"root",ref:o,class:F(f(a).b()),style:tt(f(T))},[M("div",{class:F({[f(a).m("fixed")]:m.value}),style:tt(f(b))},[fe(S.$slots,"default")],6)],6))}});var A7=He(k7,[["__file","affix.vue"]]);const Et=(e,t)=>{if(e.install=n=>{for(const r of[e,...Object.values(t??{})])n.component(r.name,r)},t)for(const[n,r]of Object.entries(t))e[n]=r;return e},$I=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),D7=(e,t)=>(e.install=n=>{n.directive(t,e)},e),On=e=>(e.install=nn,e),I7=Et(A7),P7=Ue({size:{type:ue([Number,String])},color:{type:String}}),O7=J({name:"ElIcon",inheritAttrs:!1}),M7=J({...O7,props:P7,setup(e){const t=e,n=Le("icon"),r=k(()=>{const{size:a,color:i}=t;return!a&&!i?{}:{fontSize:Xt(a)?void 0:Ln(a),"--color":i}});return(a,i)=>(x(),U("i",Ft({class:f(n).b(),style:f(r)},a.$attrs),[fe(a.$slots,"default")],16))}});var R7=He(M7,[["__file","icon.vue"]]);const et=Et(R7);/*! Element Plus Icons Vue v2.3.1 */var L7=J({name:"Aim",__name:"aim",setup(e){return(t,n)=>(x(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),M("path",{fill:"currentColor",d:"M512 96a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V128a32 32 0 0 1 32-32m0 576a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V704a32 32 0 0 1 32-32M96 512a32 32 0 0 1 32-32h192a32 32 0 0 1 0 64H128a32 32 0 0 1-32-32m576 0a32 32 0 0 1 32-32h192a32 32 0 1 1 0 64H704a32 32 0 0 1-32-32"})]))}}),N7=L7,F7=J({name:"ArrowDown",__name:"arrow-down",setup(e){return(t,n)=>(x(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"})]))}}),co=F7,$7=J({name:"ArrowLeftBold",__name:"arrow-left-bold",setup(e){return(t,n)=>(x(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M685.248 104.704a64 64 0 0 1 0 90.496L368.448 512l316.8 316.8a64 64 0 0 1-90.496 90.496L232.704 557.248a64 64 0 0 1 0-90.496l362.048-362.048a64 64 0 0 1 90.496 0z"})]))}}),BI=$7,B7=J({name:"ArrowLeft",__name:"arrow-left",setup(e){return(t,n)=>(x(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z"})]))}}),Ms=B7,V7=J({name:"ArrowRightBold",__name:"arrow-right-bold",setup(e){return(t,n)=>(x(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M338.752 104.704a64 64 0 0 0 0 90.496l316.8 316.8-316.8 316.8a64 64 0 0 0 90.496 90.496l362.048-362.048a64 64 0 0 0 0-90.496L429.248 104.704a64 64 0 0 0-90.496 0z"})]))}}),VI=V7,U7=J({name:"ArrowRight",__name:"arrow-right",setup(e){return(t,n)=>(x(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"})]))}}),sa=U7,H7=J({name:"ArrowUp",__name:"arrow-up",setup(e){return(t,n)=>(x(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0"})]))}}),Nv=H7,z7=J({name:"Back",__name:"back",setup(e){return(t,n)=>(x(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64"}),M("path",{fill:"currentColor",d:"m237.248 512 265.408 265.344a32 32 0 0 1-45.312 45.312l-288-288a32 32 0 0 1 0-45.312l288-288a32 32 0 1 1 45.312 45.312z"})]))}}),j7=z7,W7=J({name:"BellFilled",__name:"bell-filled",setup(e){return(t,n)=>(x(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M640 832a128 128 0 0 1-256 0zm192-64H134.4a38.4 38.4 0 0 1 0-76.8H192V448c0-154.88 110.08-284.16 256.32-313.6a64 64 0 1 1 127.36 0A320.128 320.128 0 0 1 832 448v243.2h57.6a38.4 38.4 0 0 1 0 76.8z"})]))}}),UI=W7,K7=J({name:"Calendar",__name:"calendar",setup(e){return(t,n)=>(x(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M128 384v512h768V192H768v32a32 32 0 1 1-64 0v-32H320v32a32 32 0 0 1-64 0v-32H128v128h768v64zm192-256h384V96a32 32 0 1 1 64 0v32h160a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h160V96a32 32 0 0 1 64 0zm-32 384h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64"})]))}}),q7=K7,G7=J({name:"CaretRight",__name:"caret-right",setup(e){return(t,n)=>(x(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"})]))}}),Fv=G7,Y7=J({name:"CaretTop",__name:"caret-top",setup(e){return(t,n)=>(x(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M512 320 192 704h639.936z"})]))}}),X7=Y7,Q7=J({name:"Check",__name:"check",setup(e){return(t,n)=>(x(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"})]))}}),sp=Q7,J7=J({name:"CircleCheckFilled",__name:"circle-check-filled",setup(e){return(t,n)=>(x(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),Z7=J7,ez=J({name:"CircleCheck",__name:"circle-check",setup(e){return(t,n)=>(x(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),M("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"})]))}}),s1=ez,tz=J({name:"CircleCloseFilled",__name:"circle-close-filled",setup(e){return(t,n)=>(x(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),l1=tz,nz=J({name:"CircleClose",__name:"circle-close",setup(e){return(t,n)=>(x(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),M("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),rs=nz,rz=J({name:"CirclePlus",__name:"circle-plus",setup(e){return(t,n)=>(x(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M352 480h320a32 32 0 1 1 0 64H352a32 32 0 0 1 0-64"}),M("path",{fill:"currentColor",d:"M480 672V352a32 32 0 1 1 64 0v320a32 32 0 0 1-64 0"}),M("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),HI=rz,az=J({name:"Clock",__name:"clock",setup(e){return(t,n)=>(x(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),M("path",{fill:"currentColor",d:"M480 256a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"}),M("path",{fill:"currentColor",d:"M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32"})]))}}),u1=az,iz=J({name:"Close",__name:"close",setup(e){return(t,n)=>(x(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),Ci=iz,oz=J({name:"DArrowLeft",__name:"d-arrow-left",setup(e){return(t,n)=>(x(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M529.408 149.376a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L259.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L197.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224zm256 0a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L515.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L453.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224z"})]))}}),Rs=oz,sz=J({name:"DArrowRight",__name:"d-arrow-right",setup(e){return(t,n)=>(x(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M452.864 149.312a29.12 29.12 0 0 1 41.728.064L826.24 489.664a32 32 0 0 1 0 44.672L494.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L764.736 512 452.864 192a30.592 30.592 0 0 1 0-42.688m-256 0a29.12 29.12 0 0 1 41.728.064L570.24 489.664a32 32 0 0 1 0 44.672L238.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L508.736 512 196.864 192a30.592 30.592 0 0 1 0-42.688z"})]))}}),Ls=sz,lz=J({name:"DeleteFilled",__name:"delete-filled",setup(e){return(t,n)=>(x(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M352 192V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64H96a32 32 0 0 1 0-64zm64 0h192v-64H416zM192 960a32 32 0 0 1-32-32V256h704v672a32 32 0 0 1-32 32zm224-192a32 32 0 0 0 32-32V416a32 32 0 0 0-64 0v320a32 32 0 0 0 32 32m192 0a32 32 0 0 0 32-32V416a32 32 0 0 0-64 0v320a32 32 0 0 0 32 32"})]))}}),uz=lz,cz=J({name:"Delete",__name:"delete",setup(e){return(t,n)=>(x(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"})]))}}),Kl=cz,dz=J({name:"Discount",__name:"discount",setup(e){return(t,n)=>(x(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M224 704h576V318.336L552.512 115.84a64 64 0 0 0-81.024 0L224 318.336zm0 64v128h576V768zM593.024 66.304l259.2 212.096A32 32 0 0 1 864 303.168V928a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V303.168a32 32 0 0 1 11.712-24.768l259.2-212.096a128 128 0 0 1 162.112 0"}),M("path",{fill:"currentColor",d:"M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"})]))}}),fz=dz,pz=J({name:"Document",__name:"document",setup(e){return(t,n)=>(x(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h160v64H320zm0 384h384v64H320z"})]))}}),hz=pz,mz=J({name:"Edit",__name:"edit",setup(e){return(t,n)=>(x(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640z"}),M("path",{fill:"currentColor",d:"m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"})]))}}),lp=mz,vz=J({name:"Film",__name:"film",setup(e){return(t,n)=>(x(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M160 160v704h704V160zm-32-64h768a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H128a32 32 0 0 1-32-32V128a32 32 0 0 1 32-32"}),M("path",{fill:"currentColor",d:"M320 288V128h64v352h256V128h64v160h160v64H704v128h160v64H704v128h160v64H704v160h-64V544H384v352h-64V736H128v-64h192V544H128v-64h192V352H128v-64z"})]))}}),gz=vz,yz=J({name:"FolderOpened",__name:"folder-opened",setup(e){return(t,n)=>(x(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M878.08 448H241.92l-96 384h636.16l96-384zM832 384v-64H485.76L357.504 192H128v448l57.92-231.744A32 32 0 0 1 216.96 384zm-24.96 512H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h287.872l128.384 128H864a32 32 0 0 1 32 32v96h23.04a32 32 0 0 1 31.04 39.744l-112 448A32 32 0 0 1 807.04 896"})]))}}),bz=yz,_z=J({name:"FullScreen",__name:"full-screen",setup(e){return(t,n)=>(x(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64l192-.192zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64z"})]))}}),Tz=_z,wz=J({name:"HelpFilled",__name:"help-filled",setup(e){return(t,n)=>(x(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M926.784 480H701.312A192.512 192.512 0 0 0 544 322.688V97.216A416.064 416.064 0 0 1 926.784 480m0 64A416.064 416.064 0 0 1 544 926.784V701.312A192.512 192.512 0 0 0 701.312 544zM97.28 544h225.472A192.512 192.512 0 0 0 480 701.312v225.472A416.064 416.064 0 0 1 97.216 544zm0-64A416.064 416.064 0 0 1 480 97.216v225.472A192.512 192.512 0 0 0 322.688 480H97.216z"})]))}}),Sz=wz,Cz=J({name:"Hide",__name:"hide",setup(e){return(t,n)=>(x(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z"}),M("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z"})]))}}),Ez=Cz,xz=J({name:"HomeFilled",__name:"home-filled",setup(e){return(t,n)=>(x(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M512 128 128 447.936V896h255.936V640H640v256h255.936V447.936z"})]))}}),kz=xz,Az=J({name:"InfoFilled",__name:"info-filled",setup(e){return(t,n)=>(x(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"})]))}}),c1=Az,Dz=J({name:"Link",__name:"link",setup(e){return(t,n)=>(x(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M715.648 625.152 670.4 579.904l90.496-90.56c75.008-74.944 85.12-186.368 22.656-248.896-62.528-62.464-173.952-52.352-248.96 22.656L444.16 353.6l-45.248-45.248 90.496-90.496c100.032-99.968 251.968-110.08 339.456-22.656 87.488 87.488 77.312 239.424-22.656 339.456l-90.496 90.496zm-90.496 90.496-90.496 90.496C434.624 906.112 282.688 916.224 195.2 828.8c-87.488-87.488-77.312-239.424 22.656-339.456l90.496-90.496 45.248 45.248-90.496 90.56c-75.008 74.944-85.12 186.368-22.656 248.896 62.528 62.464 173.952 52.352 248.96-22.656l90.496-90.496zm0-362.048 45.248 45.248L398.848 670.4 353.6 625.152z"})]))}}),Iz=Dz,Pz=J({name:"Loading",__name:"loading",setup(e){return(t,n)=>(x(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"})]))}}),ao=Pz,Oz=J({name:"MagicStick",__name:"magic-stick",setup(e){return(t,n)=>(x(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M512 64h64v192h-64zm0 576h64v192h-64zM160 480v-64h192v64zm576 0v-64h192v64zM249.856 199.04l45.248-45.184L430.848 289.6 385.6 334.848 249.856 199.104zM657.152 606.4l45.248-45.248 135.744 135.744-45.248 45.248zM114.048 923.2 68.8 877.952l316.8-316.8 45.248 45.248zM702.4 334.848 657.152 289.6l135.744-135.744 45.248 45.248z"})]))}}),Mz=Oz,Rz=J({name:"Minus",__name:"minus",setup(e){return(t,n)=>(x(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64"})]))}}),Lz=Rz,Nz=J({name:"Moon",__name:"moon",setup(e){return(t,n)=>(x(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M240.448 240.448a384 384 0 1 0 559.424 525.696 448 448 0 0 1-542.016-542.08 390.592 390.592 0 0 0-17.408 16.384zm181.056 362.048a384 384 0 0 0 525.632 16.384A448 448 0 1 1 405.056 76.8a384 384 0 0 0 16.448 525.696"})]))}}),Fz=Nz,$z=J({name:"MoreFilled",__name:"more-filled",setup(e){return(t,n)=>(x(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224"})]))}}),Dy=$z,Bz=J({name:"More",__name:"more",setup(e){return(t,n)=>(x(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M176 416a112 112 0 1 0 0 224 112 112 0 0 0 0-224m0 64a48 48 0 1 1 0 96 48 48 0 0 1 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96"})]))}}),Vz=Bz,Uz=J({name:"PictureFilled",__name:"picture-filled",setup(e){return(t,n)=>(x(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M96 896a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h832a32 32 0 0 1 32 32v704a32 32 0 0 1-32 32zm315.52-228.48-68.928-68.928a32 32 0 0 0-45.248 0L128 768.064h778.688l-242.112-290.56a32 32 0 0 0-49.216 0L458.752 665.408a32 32 0 0 1-47.232 2.112M256 384a96 96 0 1 0 192.064-.064A96 96 0 0 0 256 384"})]))}}),Hz=Uz,zz=J({name:"Plus",__name:"plus",setup(e){return(t,n)=>(x(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"})]))}}),d1=zz,jz=J({name:"Promotion",__name:"promotion",setup(e){return(t,n)=>(x(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"m64 448 832-320-128 704-446.08-243.328L832 192 242.816 545.472zm256 512V657.024L512 768z"})]))}}),f1=jz,Wz=J({name:"QuestionFilled",__name:"question-filled",setup(e){return(t,n)=>(x(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m23.744 191.488c-52.096 0-92.928 14.784-123.2 44.352-30.976 29.568-45.76 70.4-45.76 122.496h80.256c0-29.568 5.632-52.8 17.6-68.992 13.376-19.712 35.2-28.864 66.176-28.864 23.936 0 42.944 6.336 56.32 19.712 12.672 13.376 19.712 31.68 19.712 54.912 0 17.6-6.336 34.496-19.008 49.984l-8.448 9.856c-45.76 40.832-73.216 70.4-82.368 89.408-9.856 19.008-14.08 42.24-14.08 68.992v9.856h80.96v-9.856c0-16.896 3.52-31.68 10.56-45.76 6.336-12.672 15.488-24.64 28.16-35.2 33.792-29.568 54.208-48.576 60.544-55.616 16.896-22.528 26.048-51.392 26.048-86.592 0-42.944-14.08-76.736-42.24-101.376-28.16-25.344-65.472-37.312-111.232-37.312zm-12.672 406.208a54.272 54.272 0 0 0-38.72 14.784 49.408 49.408 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.848 54.848 0 0 0 523.072 768c15.488 0 28.16-4.928 38.72-14.784a51.52 51.52 0 0 0 16.192-38.72 51.968 51.968 0 0 0-15.488-38.016 55.936 55.936 0 0 0-39.424-14.784z"})]))}}),Kz=Wz,qz=J({name:"RefreshLeft",__name:"refresh-left",setup(e){return(t,n)=>(x(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M289.088 296.704h92.992a32 32 0 0 1 0 64H232.96a32 32 0 0 1-32-32V179.712a32 32 0 0 1 64 0v50.56a384 384 0 0 1 643.84 282.88 384 384 0 0 1-383.936 384 384 384 0 0 1-384-384h64a320 320 0 1 0 640 0 320 320 0 0 0-555.712-216.448z"})]))}}),zI=qz,Gz=J({name:"RefreshRight",__name:"refresh-right",setup(e){return(t,n)=>(x(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M784.512 230.272v-50.56a32 32 0 1 1 64 0v149.056a32 32 0 0 1-32 32H667.52a32 32 0 1 1 0-64h92.992A320 320 0 1 0 524.8 833.152a320 320 0 0 0 320-320h64a384 384 0 0 1-384 384 384 384 0 0 1-384-384 384 384 0 0 1 643.712-282.88z"})]))}}),p1=Gz,Yz=J({name:"ScaleToOriginal",__name:"scale-to-original",setup(e){return(t,n)=>(x(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M813.176 180.706a60.235 60.235 0 0 1 60.236 60.235v481.883a60.235 60.235 0 0 1-60.236 60.235H210.824a60.235 60.235 0 0 1-60.236-60.235V240.94a60.235 60.235 0 0 1 60.236-60.235h602.352zm0-60.235H210.824A120.47 120.47 0 0 0 90.353 240.94v481.883a120.47 120.47 0 0 0 120.47 120.47h602.353a120.47 120.47 0 0 0 120.471-120.47V240.94a120.47 120.47 0 0 0-120.47-120.47zm-120.47 180.705a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 0 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118zm-361.412 0a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 1 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118M512 361.412a30.118 30.118 0 0 0-30.118 30.117v30.118a30.118 30.118 0 0 0 60.236 0V391.53A30.118 30.118 0 0 0 512 361.412M512 512a30.118 30.118 0 0 0-30.118 30.118v30.117a30.118 30.118 0 0 0 60.236 0v-30.117A30.118 30.118 0 0 0 512 512"})]))}}),Xz=Yz,Qz=J({name:"Search",__name:"search",setup(e){return(t,n)=>(x(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704"})]))}}),Tf=Qz,Jz=J({name:"SortDown",__name:"sort-down",setup(e){return(t,n)=>(x(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M576 96v709.568L333.312 562.816A32 32 0 1 0 288 608l297.408 297.344A32 32 0 0 0 640 882.688V96a32 32 0 0 0-64 0"})]))}}),Zz=Jz,ej=J({name:"SortUp",__name:"sort-up",setup(e){return(t,n)=>(x(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M384 141.248V928a32 32 0 1 0 64 0V218.56l242.688 242.688A32 32 0 1 0 736 416L438.592 118.656A32 32 0 0 0 384 141.248"})]))}}),tj=ej,nj=J({name:"StarFilled",__name:"star-filled",setup(e){return(t,n)=>(x(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M283.84 867.84 512 747.776l228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72z"})]))}}),Zp=nj,rj=J({name:"Star",__name:"star",setup(e){return(t,n)=>(x(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"m512 747.84 228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72zM313.6 924.48a70.4 70.4 0 0 1-102.144-74.24l37.888-220.928L88.96 472.96A70.4 70.4 0 0 1 128 352.896l221.76-32.256 99.2-200.96a70.4 70.4 0 0 1 126.208 0l99.2 200.96 221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z"})]))}}),aj=rj,ij=J({name:"SuccessFilled",__name:"success-filled",setup(e){return(t,n)=>(x(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),jI=ij,oj=J({name:"Sunny",__name:"sunny",setup(e){return(t,n)=>(x(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M512 704a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512m0-704a32 32 0 0 1 32 32v64a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 768a32 32 0 0 1 32 32v64a32 32 0 1 1-64 0v-64a32 32 0 0 1 32-32M195.2 195.2a32 32 0 0 1 45.248 0l45.248 45.248a32 32 0 1 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm543.104 543.104a32 32 0 0 1 45.248 0l45.248 45.248a32 32 0 0 1-45.248 45.248l-45.248-45.248a32 32 0 0 1 0-45.248M64 512a32 32 0 0 1 32-32h64a32 32 0 0 1 0 64H96a32 32 0 0 1-32-32m768 0a32 32 0 0 1 32-32h64a32 32 0 1 1 0 64h-64a32 32 0 0 1-32-32M195.2 828.8a32 32 0 0 1 0-45.248l45.248-45.248a32 32 0 0 1 45.248 45.248L240.448 828.8a32 32 0 0 1-45.248 0zm543.104-543.104a32 32 0 0 1 0-45.248l45.248-45.248a32 32 0 0 1 45.248 45.248l-45.248 45.248a32 32 0 0 1-45.248 0"})]))}}),sj=oj,lj=J({name:"SwitchButton",__name:"switch-button",setup(e){return(t,n)=>(x(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M352 159.872V230.4a352 352 0 1 0 320 0v-70.528A416.128 416.128 0 0 1 512 960a416 416 0 0 1-160-800.128z"}),M("path",{fill:"currentColor",d:"M512 64q32 0 32 32v320q0 32-32 32t-32-32V96q0-32 32-32"})]))}}),uj=lj,cj=J({name:"TakeawayBox",__name:"takeaway-box",setup(e){return(t,n)=>(x(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M832 384H192v448h640zM96 320h832V128H96zm800 64v480a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V384H64a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32h896a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32zM416 512h192a32 32 0 0 1 0 64H416a32 32 0 0 1 0-64"})]))}}),dj=cj,fj=J({name:"Timer",__name:"timer",setup(e){return(t,n)=>(x(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M512 896a320 320 0 1 0 0-640 320 320 0 0 0 0 640m0 64a384 384 0 1 1 0-768 384 384 0 0 1 0 768"}),M("path",{fill:"currentColor",d:"M512 320a32 32 0 0 1 32 32l-.512 224a32 32 0 1 1-64 0L480 352a32 32 0 0 1 32-32"}),M("path",{fill:"currentColor",d:"M448 576a64 64 0 1 0 128 0 64 64 0 1 0-128 0m96-448v128h-64V128h-96a32 32 0 0 1 0-64h256a32 32 0 1 1 0 64z"})]))}}),pj=fj,hj=J({name:"UploadFilled",__name:"upload-filled",setup(e){return(t,n)=>(x(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M544 864V672h128L512 480 352 672h128v192H320v-1.6c-5.376.32-10.496 1.6-16 1.6A240 240 0 0 1 64 624c0-123.136 93.12-223.488 212.608-237.248A239.808 239.808 0 0 1 512 192a239.872 239.872 0 0 1 235.456 194.752c119.488 13.76 212.48 114.112 212.48 237.248a240 240 0 0 1-240 240c-5.376 0-10.56-1.28-16-1.6v1.6z"})]))}}),eh=hj,mj=J({name:"VideoCamera",__name:"video-camera",setup(e){return(t,n)=>(x(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M704 768V256H128v512zm64-416 192-96v512l-192-96v128a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32zm0 71.552v176.896l128 64V359.552zM192 320h192v64H192z"})]))}}),vj=mj,gj=J({name:"View",__name:"view",setup(e){return(t,n)=>(x(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),yj=gj,bj=J({name:"WarningFilled",__name:"warning-filled",setup(e){return(t,n)=>(x(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),up=bj,_j=J({name:"ZoomIn",__name:"zoom-in",setup(e){return(t,n)=>(x(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704m-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64z"})]))}}),h1=_j,Tj=J({name:"ZoomOut",__name:"zoom-out",setup(e){return(t,n)=>(x(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704M352 448h256a32 32 0 0 1 0 64H352a32 32 0 0 1 0-64"})]))}}),wj=Tj;const dn=ue([String,Object,Function]),m1={Close:Ci},v1={Close:Ci,SuccessFilled:jI,InfoFilled:c1,WarningFilled:up,CircleCloseFilled:l1},Ns={success:jI,warning:up,error:l1,info:c1},$v={validating:ao,success:s1,error:rs},Sj=["light","dark"],Cj=Ue({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:Qu(Ns),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:Sj,default:"light"}}),Ej={close:e=>e instanceof MouseEvent},xj=J({name:"ElAlert"}),kj=J({...xj,props:Cj,emits:Ej,setup(e,{emit:t}){const n=e,{Close:r}=v1,a=ir(),i=Le("alert"),o=z(!0),s=k(()=>Ns[n.type]),l=k(()=>!!(n.description||a.default)),u=c=>{o.value=!1,t("close",c)};return(c,d)=>(x(),he(lr,{name:f(i).b("fade"),persisted:""},{default:P(()=>[gt(M("div",{class:F([f(i).b(),f(i).m(c.type),f(i).is("center",c.center),f(i).is(c.effect)]),role:"alert"},[c.showIcon&&(c.$slots.icon||f(s))?(x(),he(f(et),{key:0,class:F([f(i).e("icon"),{[f(i).is("big")]:f(l)}])},{default:P(()=>[fe(c.$slots,"icon",{},()=>[(x(),he(Lt(f(s))))])]),_:3},8,["class"])):oe("v-if",!0),M("div",{class:F(f(i).e("content"))},[c.title||c.$slots.title?(x(),U("span",{key:0,class:F([f(i).e("title"),{"with-description":f(l)}])},[fe(c.$slots,"title",{},()=>[we(de(c.title),1)])],2)):oe("v-if",!0),f(l)?(x(),U("p",{key:1,class:F(f(i).e("description"))},[fe(c.$slots,"default",{},()=>[we(de(c.description),1)])],2)):oe("v-if",!0),c.closable?(x(),U(Ge,{key:2},[c.closeText?(x(),U("div",{key:0,class:F([f(i).e("close-btn"),f(i).is("customed")]),onClick:u},de(c.closeText),3)):(x(),he(f(et),{key:1,class:F(f(i).e("close-btn")),onClick:u},{default:P(()=>[E(f(r))]),_:1},8,["class"]))],64)):oe("v-if",!0)],2)],2),[[zt,o.value]])]),_:3},8,["name"]))}});var Aj=He(kj,[["__file","alert.vue"]]);const Dj=Et(Aj),Bv=()=>Wt&&/firefox/i.test(window.navigator.userAgent);let pa;const Ij={height:"0",visibility:"hidden",overflow:Bv()?"":"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},Pj=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function Oj(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),r=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),a=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:Pj.map(o=>[o,t.getPropertyValue(o)]),paddingSize:r,borderSize:a,boxSizing:n}}function fC(e,t=1,n){var r;pa||(pa=document.createElement("textarea"),document.body.appendChild(pa));const{paddingSize:a,borderSize:i,boxSizing:o,contextStyle:s}=Oj(e);s.forEach(([d,p])=>pa==null?void 0:pa.style.setProperty(d,p)),Object.entries(Ij).forEach(([d,p])=>pa==null?void 0:pa.style.setProperty(d,p,"important")),pa.value=e.value||e.placeholder||"";let l=pa.scrollHeight;const u={};o==="border-box"?l=l+i:o==="content-box"&&(l=l-a),pa.value="";const c=pa.scrollHeight-a;if(st(t)){let d=c*t;o==="border-box"&&(d=d+a+i),l=Math.max(d,l),u.minHeight=`${d}px`}if(st(n)){let d=c*n;o==="border-box"&&(d=d+a+i),l=Math.min(d,l)}return u.height=`${l}px`,(r=pa.parentNode)==null||r.removeChild(pa),pa=void 0,u}const Pn=e=>e,Mj=Ue({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),Er=e=>hi(Mj,e),g1=Ue({id:{type:String,default:void 0},size:Xn,disabled:Boolean,modelValue:{type:ue([String,Number,Object]),default:""},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:ue([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:Boolean,clearable:Boolean,showPassword:Boolean,showWordLimit:Boolean,suffixIcon:{type:dn},prefixIcon:{type:dn},containerRole:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:ue([Object,Array,String]),default:()=>Pn({})},autofocus:Boolean,rows:{type:Number,default:2},...Er(["ariaLabel"])}),Rj={[_t]:e=>rt(e),input:e=>rt(e),change:e=>rt(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},Lj=["class","style"],Nj=/^on[A-Z]/,cp=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,r=k(()=>((n==null?void 0:n.value)||[]).concat(Lj)),a=Mt();return k(a?()=>{var i;return _f(Object.entries((i=a.proxy)==null?void 0:i.$attrs).filter(([o])=>!r.value.includes(o)&&!(t&&Nj.test(o))))}:()=>({}))},ql=Symbol("formContextKey"),io=Symbol("formItemContextKey"),pC={prefix:Math.floor(Math.random()*1e4),current:0},Fj=Symbol("elIdInjection"),y1=()=>Mt()?Qe(Fj,pC):pC,wr=e=>{const t=y1(),n=V_();return ky(()=>f(e)||`${n.value}-id-${t.prefix}-${t.current++}`)},Or=()=>{const e=Qe(ql,void 0),t=Qe(io,void 0);return{form:e,formItem:t}},si=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:r})=>{n||(n=z(!1)),r||(r=z(!1));const a=z();let i;const o=k(()=>{var s;return!!(!(e.label||e.ariaLabel)&&t&&t.inputIds&&((s=t.inputIds)==null?void 0:s.length)<=1)});return ht(()=>{i=Ie([rn(e,"id"),n],([s,l])=>{const u=s??(l?void 0:wr().value);u!==a.value&&(t!=null&&t.removeInputId&&(a.value&&t.removeInputId(a.value),!(r!=null&&r.value)&&!l&&u&&t.addInputId(u)),a.value=u)},{immediate:!0})}),zs(()=>{i&&i(),t!=null&&t.removeInputId&&a.value&&t.removeInputId(a.value)}),{isLabeledByFormItem:o,inputId:a}},WI=e=>{const t=Mt();return k(()=>{var n,r;return(r=(n=t==null?void 0:t.proxy)==null?void 0:n.$props)==null?void 0:r[e]})},Kn=(e,t={})=>{const n=z(void 0),r=t.prop?n:WI("size"),a=t.global?n:PI(),i=t.form?{size:void 0}:Qe(ql,void 0),o=t.formItem?{size:void 0}:Qe(io,void 0);return k(()=>r.value||f(e)||(o==null?void 0:o.size)||(i==null?void 0:i.size)||a.value||"")},Mr=e=>{const t=WI("disabled"),n=Qe(ql,void 0);return k(()=>t.value||f(e)||(n==null?void 0:n.disabled)||!1)};function Ws(e,{beforeFocus:t,afterFocus:n,beforeBlur:r,afterBlur:a}={}){const i=Mt(),{emit:o}=i,s=cn(),l=z(!1),u=p=>{ot(t)&&t(p)||l.value||(l.value=!0,o("focus",p),n==null||n())},c=p=>{var h;ot(r)&&r(p)||p.relatedTarget&&((h=s.value)!=null&&h.contains(p.relatedTarget))||(l.value=!1,o("blur",p),a==null||a())},d=()=>{var p,h;(p=s.value)!=null&&p.contains(document.activeElement)&&s.value!==document.activeElement||(h=e.value)==null||h.focus()};return Ie(s,p=>{p&&p.setAttribute("tabindex","-1")}),ln(s,"focus",u,!0),ln(s,"blur",c,!0),ln(s,"click",d,!0),{isFocused:l,wrapperRef:s,handleFocus:u,handleBlur:c}}const $j=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e);function dp({afterComposition:e,emit:t}){const n=z(!1),r=s=>{t==null||t("compositionstart",s),n.value=!0},a=s=>{var l;t==null||t("compositionupdate",s);const u=(l=s.target)==null?void 0:l.value,c=u[u.length-1]||"";n.value=!$j(c)},i=s=>{t==null||t("compositionend",s),n.value&&(n.value=!1,it(()=>e(s)))};return{isComposing:n,handleComposition:s=>{s.type==="compositionend"?i(s):a(s)},handleCompositionStart:r,handleCompositionUpdate:a,handleCompositionEnd:i}}function Bj(e){let t;function n(){if(e.value==null)return;const{selectionStart:a,selectionEnd:i,value:o}=e.value;if(a==null||i==null)return;const s=o.slice(0,Math.max(0,a)),l=o.slice(Math.max(0,i));t={selectionStart:a,selectionEnd:i,value:o,beforeTxt:s,afterTxt:l}}function r(){if(e.value==null||t==null)return;const{value:a}=e.value,{beforeTxt:i,afterTxt:o,selectionStart:s}=t;if(i==null||o==null||s==null)return;let l=a.length;if(a.endsWith(o))l=a.length-o.length;else if(a.startsWith(i))l=i.length;else{const u=i[s-1],c=a.indexOf(u,s-1);c!==-1&&(l=c+1)}e.value.setSelectionRange(l,l)}return[n,r]}const Vj="ElInput",Uj=J({name:Vj,inheritAttrs:!1}),Hj=J({...Uj,props:g1,emits:Rj,setup(e,{expose:t,emit:n}){const r=e,a=es(),i=cp(),o=ir(),s=k(()=>[r.type==="textarea"?m.b():v.b(),v.m(p.value),v.is("disabled",h.value),v.is("exceed",le.value),{[v.b("group")]:o.prepend||o.append,[v.m("prefix")]:o.prefix||r.prefixIcon,[v.m("suffix")]:o.suffix||r.suffixIcon||r.clearable||r.showPassword,[v.bm("suffix","password-clear")]:W.value&&H.value,[v.b("hidden")]:r.type==="hidden"},a.class]),l=k(()=>[v.e("wrapper"),v.is("focus",I.value)]),{form:u,formItem:c}=Or(),{inputId:d}=si(r,{formItemContext:c}),p=Kn(),h=Mr(),v=Le("input"),m=Le("textarea"),g=cn(),y=cn(),T=z(!1),b=z(!1),_=z(),w=cn(r.inputStyle),S=k(()=>g.value||y.value),{wrapperRef:A,isFocused:I,handleFocus:D,handleBlur:O}=Ws(S,{beforeFocus(){return h.value},afterBlur(){var Ae;r.validateEvent&&((Ae=c==null?void 0:c.validate)==null||Ae.call(c,"blur").catch(Xe=>void 0))}}),V=k(()=>{var Ae;return(Ae=u==null?void 0:u.statusIcon)!=null?Ae:!1}),N=k(()=>(c==null?void 0:c.validateState)||""),K=k(()=>N.value&&$v[N.value]),Y=k(()=>b.value?yj:Ez),q=k(()=>[a.style]),$=k(()=>[r.inputStyle,w.value,{resize:r.resize}]),j=k(()=>sr(r.modelValue)?"":String(r.modelValue)),W=k(()=>r.clearable&&!h.value&&!r.readonly&&!!j.value&&(I.value||T.value)),H=k(()=>r.showPassword&&!h.value&&!!j.value&&(!!j.value||I.value)),X=k(()=>r.showWordLimit&&!!r.maxlength&&(r.type==="text"||r.type==="textarea")&&!h.value&&!r.readonly&&!r.showPassword),re=k(()=>j.value.length),le=k(()=>!!X.value&&re.value>Number(r.maxlength)),ne=k(()=>!!o.suffix||!!r.suffixIcon||W.value||r.showPassword||X.value||!!N.value&&V.value),[be,_e]=Bj(g);In(y,Ae=>{if(me(),!X.value||r.resize!=="both")return;const Xe=Ae[0],{width:ct}=Xe.contentRect;_.value={right:`calc(100% - ${ct+15+6}px)`}});const ve=()=>{const{type:Ae,autosize:Xe}=r;if(!(!Wt||Ae!=="textarea"||!y.value))if(Xe){const ct=It(Xe)?Xe.minRows:void 0,Dt=It(Xe)?Xe.maxRows:void 0,Pt=fC(y.value,ct,Dt);w.value={overflowY:"hidden",...Pt},it(()=>{y.value.offsetHeight,w.value=Pt})}else w.value={minHeight:fC(y.value).minHeight}},me=(Ae=>{let Xe=!1;return()=>{var ct;if(Xe||!r.autosize)return;((ct=y.value)==null?void 0:ct.offsetParent)===null||(Ae(),Xe=!0)}})(ve),pe=()=>{const Ae=S.value,Xe=r.formatter?r.formatter(j.value):j.value;!Ae||Ae.value===Xe||(Ae.value=Xe)},Fe=async Ae=>{be();let{value:Xe}=Ae.target;if(r.formatter&&r.parser&&(Xe=r.parser(Xe)),!ye.value){if(Xe===j.value){pe();return}n(_t,Xe),n(hr,Xe),await it(),pe(),_e()}},Pe=Ae=>{let{value:Xe}=Ae.target;r.formatter&&r.parser&&(Xe=r.parser(Xe)),n($t,Xe)},{isComposing:ye,handleCompositionStart:Z,handleCompositionUpdate:ie,handleCompositionEnd:Ce}=dp({emit:n,afterComposition:Fe}),$e=()=>{be(),b.value=!b.value,setTimeout(_e)},Se=()=>{var Ae;return(Ae=S.value)==null?void 0:Ae.focus()},De=()=>{var Ae;return(Ae=S.value)==null?void 0:Ae.blur()},xe=Ae=>{T.value=!1,n("mouseleave",Ae)},Ve=Ae=>{T.value=!0,n("mouseenter",Ae)},ze=Ae=>{n("keydown",Ae)},je=()=>{var Ae;(Ae=S.value)==null||Ae.select()},nt=()=>{n(_t,""),n($t,""),n("clear"),n(hr,"")};return Ie(()=>r.modelValue,()=>{var Ae;it(()=>ve()),r.validateEvent&&((Ae=c==null?void 0:c.validate)==null||Ae.call(c,"change").catch(Xe=>void 0))}),Ie(j,()=>pe()),Ie(()=>r.type,async()=>{await it(),pe(),ve()}),ht(()=>{!r.formatter&&r.parser,pe(),it(ve)}),t({input:g,textarea:y,ref:S,textareaStyle:$,autosize:rn(r,"autosize"),isComposing:ye,focus:Se,blur:De,select:je,clear:nt,resizeTextarea:ve}),(Ae,Xe)=>(x(),U("div",{class:F([f(s),{[f(v).bm("group","append")]:Ae.$slots.append,[f(v).bm("group","prepend")]:Ae.$slots.prepend}]),style:tt(f(q)),onMouseenter:Ve,onMouseleave:xe},[oe(" input "),Ae.type!=="textarea"?(x(),U(Ge,{key:0},[oe(" prepend slot "),Ae.$slots.prepend?(x(),U("div",{key:0,class:F(f(v).be("group","prepend"))},[fe(Ae.$slots,"prepend")],2)):oe("v-if",!0),M("div",{ref_key:"wrapperRef",ref:A,class:F(f(l))},[oe(" prefix slot "),Ae.$slots.prefix||Ae.prefixIcon?(x(),U("span",{key:0,class:F(f(v).e("prefix"))},[M("span",{class:F(f(v).e("prefix-inner"))},[fe(Ae.$slots,"prefix"),Ae.prefixIcon?(x(),he(f(et),{key:0,class:F(f(v).e("icon"))},{default:P(()=>[(x(),he(Lt(Ae.prefixIcon)))]),_:1},8,["class"])):oe("v-if",!0)],2)],2)):oe("v-if",!0),M("input",Ft({id:f(d),ref_key:"input",ref:g,class:f(v).e("inner")},f(i),{minlength:Ae.minlength,maxlength:Ae.maxlength,type:Ae.showPassword?b.value?"text":"password":Ae.type,disabled:f(h),readonly:Ae.readonly,autocomplete:Ae.autocomplete,tabindex:Ae.tabindex,"aria-label":Ae.ariaLabel,placeholder:Ae.placeholder,style:Ae.inputStyle,form:Ae.form,autofocus:Ae.autofocus,role:Ae.containerRole,onCompositionstart:f(Z),onCompositionupdate:f(ie),onCompositionend:f(Ce),onInput:Fe,onChange:Pe,onKeydown:ze}),null,16,["id","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus","role","onCompositionstart","onCompositionupdate","onCompositionend"]),oe(" suffix slot "),f(ne)?(x(),U("span",{key:1,class:F(f(v).e("suffix"))},[M("span",{class:F(f(v).e("suffix-inner"))},[!f(W)||!f(H)||!f(X)?(x(),U(Ge,{key:0},[fe(Ae.$slots,"suffix"),Ae.suffixIcon?(x(),he(f(et),{key:0,class:F(f(v).e("icon"))},{default:P(()=>[(x(),he(Lt(Ae.suffixIcon)))]),_:1},8,["class"])):oe("v-if",!0)],64)):oe("v-if",!0),f(W)?(x(),he(f(et),{key:1,class:F([f(v).e("icon"),f(v).e("clear")]),onMousedown:ft(f(nn),["prevent"]),onClick:nt},{default:P(()=>[E(f(rs))]),_:1},8,["class","onMousedown"])):oe("v-if",!0),f(H)?(x(),he(f(et),{key:2,class:F([f(v).e("icon"),f(v).e("password")]),onClick:$e},{default:P(()=>[(x(),he(Lt(f(Y))))]),_:1},8,["class"])):oe("v-if",!0),f(X)?(x(),U("span",{key:3,class:F(f(v).e("count"))},[M("span",{class:F(f(v).e("count-inner"))},de(f(re))+" / "+de(Ae.maxlength),3)],2)):oe("v-if",!0),f(N)&&f(K)&&f(V)?(x(),he(f(et),{key:4,class:F([f(v).e("icon"),f(v).e("validateIcon"),f(v).is("loading",f(N)==="validating")])},{default:P(()=>[(x(),he(Lt(f(K))))]),_:1},8,["class"])):oe("v-if",!0)],2)],2)):oe("v-if",!0)],2),oe(" append slot "),Ae.$slots.append?(x(),U("div",{key:1,class:F(f(v).be("group","append"))},[fe(Ae.$slots,"append")],2)):oe("v-if",!0)],64)):(x(),U(Ge,{key:1},[oe(" textarea "),M("textarea",Ft({id:f(d),ref_key:"textarea",ref:y,class:[f(m).e("inner"),f(v).is("focus",f(I))]},f(i),{minlength:Ae.minlength,maxlength:Ae.maxlength,tabindex:Ae.tabindex,disabled:f(h),readonly:Ae.readonly,autocomplete:Ae.autocomplete,style:f($),"aria-label":Ae.ariaLabel,placeholder:Ae.placeholder,form:Ae.form,autofocus:Ae.autofocus,rows:Ae.rows,role:Ae.containerRole,onCompositionstart:f(Z),onCompositionupdate:f(ie),onCompositionend:f(Ce),onInput:Fe,onFocus:f(D),onBlur:f(O),onChange:Pe,onKeydown:ze}),null,16,["id","minlength","maxlength","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus","rows","role","onCompositionstart","onCompositionupdate","onCompositionend","onFocus","onBlur"]),f(X)?(x(),U("span",{key:0,style:tt(_.value),class:F(f(v).e("count"))},de(f(re))+" / "+de(Ae.maxlength),7)):oe("v-if",!0)],64))],38))}});var zj=He(Hj,[["__file","input.vue"]]);const Wn=Et(zj),au=4,KI={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},jj=({move:e,size:t,bar:n})=>({[n.size]:t,transform:`translate${n.axis}(${e}%)`}),b1=Symbol("scrollbarContextKey"),Wj=Ue({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),Kj="Thumb",qj=J({__name:"thumb",props:Wj,setup(e){const t=e,n=Qe(b1),r=Le("scrollbar");n||rr(Kj,"can not inject scrollbar context");const a=z(),i=z(),o=z({}),s=z(!1);let l=!1,u=!1,c=Wt?document.onselectstart:null;const d=k(()=>KI[t.vertical?"vertical":"horizontal"]),p=k(()=>jj({size:t.size,move:t.move,bar:d.value})),h=k(()=>a.value[d.value.offset]**2/n.wrapElement[d.value.scrollSize]/t.ratio/i.value[d.value.offset]),v=S=>{var A;if(S.stopPropagation(),S.ctrlKey||[1,2].includes(S.button))return;(A=window.getSelection())==null||A.removeAllRanges(),g(S);const I=S.currentTarget;I&&(o.value[d.value.axis]=I[d.value.offset]-(S[d.value.client]-I.getBoundingClientRect()[d.value.direction]))},m=S=>{if(!i.value||!a.value||!n.wrapElement)return;const A=Math.abs(S.target.getBoundingClientRect()[d.value.direction]-S[d.value.client]),I=i.value[d.value.offset]/2,D=(A-I)*100*h.value/a.value[d.value.offset];n.wrapElement[d.value.scroll]=D*n.wrapElement[d.value.scrollSize]/100},g=S=>{S.stopImmediatePropagation(),l=!0,document.addEventListener("mousemove",y),document.addEventListener("mouseup",T),c=document.onselectstart,document.onselectstart=()=>!1},y=S=>{if(!a.value||!i.value||l===!1)return;const A=o.value[d.value.axis];if(!A)return;const I=(a.value.getBoundingClientRect()[d.value.direction]-S[d.value.client])*-1,D=i.value[d.value.offset]-A,O=(I-D)*100*h.value/a.value[d.value.offset];n.wrapElement[d.value.scroll]=O*n.wrapElement[d.value.scrollSize]/100},T=()=>{l=!1,o.value[d.value.axis]=0,document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",T),w(),u&&(s.value=!1)},b=()=>{u=!1,s.value=!!t.size},_=()=>{u=!0,s.value=l};fn(()=>{w(),document.removeEventListener("mouseup",T)});const w=()=>{document.onselectstart!==c&&(document.onselectstart=c)};return ln(rn(n,"scrollbarElement"),"mousemove",b),ln(rn(n,"scrollbarElement"),"mouseleave",_),(S,A)=>(x(),he(lr,{name:f(r).b("fade"),persisted:""},{default:P(()=>[gt(M("div",{ref_key:"instance",ref:a,class:F([f(r).e("bar"),f(r).is(f(d).key)]),onMousedown:m},[M("div",{ref_key:"thumb",ref:i,class:F(f(r).e("thumb")),style:tt(f(p)),onMousedown:v},null,38)],34),[[zt,S.always||s.value]])]),_:1},8,["name"]))}});var hC=He(qj,[["__file","thumb.vue"]]);const Gj=Ue({always:{type:Boolean,default:!0},minSize:{type:Number,required:!0}}),Yj=J({__name:"bar",props:Gj,setup(e,{expose:t}){const n=e,r=Qe(b1),a=z(0),i=z(0),o=z(""),s=z(""),l=z(1),u=z(1);return t({handleScroll:p=>{if(p){const h=p.offsetHeight-au,v=p.offsetWidth-au;i.value=p.scrollTop*100/h*l.value,a.value=p.scrollLeft*100/v*u.value}},update:()=>{const p=r==null?void 0:r.wrapElement;if(!p)return;const h=p.offsetHeight-au,v=p.offsetWidth-au,m=h**2/p.scrollHeight,g=v**2/p.scrollWidth,y=Math.max(m,n.minSize),T=Math.max(g,n.minSize);l.value=m/(h-m)/(y/(h-y)),u.value=g/(v-g)/(T/(v-T)),s.value=y+au<h?`${y}px`:"",o.value=T+au<v?`${T}px`:""}}),(p,h)=>(x(),U(Ge,null,[E(hC,{move:a.value,ratio:u.value,size:o.value,always:p.always},null,8,["move","ratio","size","always"]),E(hC,{move:i.value,ratio:l.value,size:s.value,vertical:"",always:p.always},null,8,["move","ratio","size","always"])],64))}});var Xj=He(Yj,[["__file","bar.vue"]]);const Qj=Ue({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:ue([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20},tabindex:{type:[String,Number],default:void 0},id:String,role:String,...Er(["ariaLabel","ariaOrientation"])}),Jj={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(st)},Zj="ElScrollbar",eW=J({name:Zj}),tW=J({...eW,props:Qj,emits:Jj,setup(e,{expose:t,emit:n}){const r=e,a=Le("scrollbar");let i,o,s=0,l=0;const u=z(),c=z(),d=z(),p=z(),h=k(()=>{const w={};return r.height&&(w.height=Ln(r.height)),r.maxHeight&&(w.maxHeight=Ln(r.maxHeight)),[r.wrapStyle,w]}),v=k(()=>[r.wrapClass,a.e("wrap"),{[a.em("wrap","hidden-default")]:!r.native}]),m=k(()=>[a.e("view"),r.viewClass]),g=()=>{var w;c.value&&((w=p.value)==null||w.handleScroll(c.value),s=c.value.scrollTop,l=c.value.scrollLeft,n("scroll",{scrollTop:c.value.scrollTop,scrollLeft:c.value.scrollLeft}))};function y(w,S){It(w)?c.value.scrollTo(w):st(w)&&st(S)&&c.value.scrollTo(w,S)}const T=w=>{st(w)&&(c.value.scrollTop=w)},b=w=>{st(w)&&(c.value.scrollLeft=w)},_=()=>{var w;(w=p.value)==null||w.update()};return Ie(()=>r.noresize,w=>{w?(i==null||i(),o==null||o()):({stop:i}=In(d,_),o=ln("resize",_))},{immediate:!0}),Ie(()=>[r.maxHeight,r.height],()=>{r.native||it(()=>{var w;_(),c.value&&((w=p.value)==null||w.handleScroll(c.value))})}),Vt(b1,Ct({scrollbarElement:u,wrapElement:c})),P_(()=>{c.value&&(c.value.scrollTop=s,c.value.scrollLeft=l)}),ht(()=>{r.native||it(()=>{_()})}),Di(()=>_()),t({wrapRef:c,update:_,scrollTo:y,setScrollTop:T,setScrollLeft:b,handleScroll:g}),(w,S)=>(x(),U("div",{ref_key:"scrollbarRef",ref:u,class:F(f(a).b())},[M("div",{ref_key:"wrapRef",ref:c,class:F(f(v)),style:tt(f(h)),tabindex:w.tabindex,onScroll:g},[(x(),he(Lt(w.tag),{id:w.id,ref_key:"resizeRef",ref:d,class:F(f(m)),style:tt(w.viewStyle),role:w.role,"aria-label":w.ariaLabel,"aria-orientation":w.ariaOrientation},{default:P(()=>[fe(w.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],46,["tabindex"]),w.native?oe("v-if",!0):(x(),he(Xj,{key:0,ref_key:"barRef",ref:p,always:w.always,"min-size":w.minSize},null,8,["always","min-size"]))],2))}});var nW=He(tW,[["__file","scrollbar.vue"]]);const fo=Et(nW),_1=Symbol("popper"),qI=Symbol("popperContent"),GI=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],YI=Ue({role:{type:String,values:GI,default:"tooltip"}}),rW=J({name:"ElPopper",inheritAttrs:!1}),aW=J({...rW,props:YI,setup(e,{expose:t}){const n=e,r=z(),a=z(),i=z(),o=z(),s=k(()=>n.role),l={triggerRef:r,popperInstanceRef:a,contentRef:i,referenceRef:o,role:s};return t(l),Vt(_1,l),(u,c)=>fe(u.$slots,"default")}});var iW=He(aW,[["__file","popper.vue"]]);const XI=Ue({arrowOffset:{type:Number,default:5}}),oW=J({name:"ElPopperArrow",inheritAttrs:!1}),sW=J({...oW,props:XI,setup(e,{expose:t}){const n=e,r=Le("popper"),{arrowOffset:a,arrowRef:i,arrowStyle:o}=Qe(qI,void 0);return Ie(()=>n.arrowOffset,s=>{a.value=s}),fn(()=>{i.value=void 0}),t({arrowRef:i}),(s,l)=>(x(),U("span",{ref_key:"arrowRef",ref:i,class:F(f(r).e("arrow")),style:tt(f(o)),"data-popper-arrow":""},null,6))}});var lW=He(sW,[["__file","arrow.vue"]]);const QI=Ue({virtualRef:{type:ue(Object)},virtualTriggering:Boolean,onMouseenter:{type:ue(Function)},onMouseleave:{type:ue(Function)},onClick:{type:ue(Function)},onKeydown:{type:ue(Function)},onFocus:{type:ue(Function)},onBlur:{type:ue(Function)},onContextmenu:{type:ue(Function)},id:String,open:Boolean}),JI=Symbol("elForwardRef"),uW=e=>{Vt(JI,{setForwardRef:n=>{e.value=n}})},cW=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),dW='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',fW=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,mC=e=>Array.from(e.querySelectorAll(dW)).filter(t=>Tm(t)&&fW(t)),Tm=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.tabIndex<0||e.hasAttribute("disabled")||e.getAttribute("aria-disabled")==="true")return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return!(e.type==="hidden"||e.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},Mh=function(e,t,...n){let r;t.includes("mouse")||t.includes("click")?r="MouseEvents":t.includes("key")?r="KeyboardEvent":r="HTMLEvents";const a=document.createEvent(r);return a.initEvent(t,...n),e.dispatchEvent(a),e},ZI=e=>!e.getAttribute("aria-owns"),eP=(e,t,n)=>{const{parentNode:r}=e;if(!r)return null;const a=r.querySelectorAll(n),i=Array.prototype.indexOf.call(a,e);return a[i+t]||null},Rh=e=>{e&&(e.focus(),!ZI(e)&&e.click())},pW="ElOnlyChild",tP=J({name:pW,setup(e,{slots:t,attrs:n}){var r;const a=Qe(JI),i=cW((r=a==null?void 0:a.setForwardRef)!=null?r:nn);return()=>{var o;const s=(o=t.default)==null?void 0:o.call(t,n);if(!s||s.length>1)return null;const l=nP(s);return l?gt(Ho(l,n),[[i]]):null}}});function nP(e){if(!e)return null;const t=e;for(const n of t){if(It(n))switch(n.type){case fr:continue;case kc:case"svg":return vC(n);case Ge:return nP(n.children);default:return n}return vC(n)}return null}function vC(e){const t=Le("only-child");return E("span",{class:t.e("content")},[e])}const hW=J({name:"ElPopperTrigger",inheritAttrs:!1}),mW=J({...hW,props:QI,setup(e,{expose:t}){const n=e,{role:r,triggerRef:a}=Qe(_1,void 0);uW(a);const i=k(()=>s.value?n.id:void 0),o=k(()=>{if(r&&r.value==="tooltip")return n.open&&n.id?n.id:void 0}),s=k(()=>{if(r&&r.value!=="tooltip")return r.value}),l=k(()=>s.value?`${n.open}`:void 0);let u;const c=["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"];return ht(()=>{Ie(()=>n.virtualRef,d=>{d&&(a.value=ia(d))},{immediate:!0}),Ie(a,(d,p)=>{u==null||u(),u=void 0,oa(d)&&(c.forEach(h=>{var v;const m=n[h];m&&(d.addEventListener(h.slice(2).toLowerCase(),m),(v=p==null?void 0:p.removeEventListener)==null||v.call(p,h.slice(2).toLowerCase(),m))}),Tm(d)&&(u=Ie([i,o,s,l],h=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((v,m)=>{sr(h[m])?d.removeAttribute(v):d.setAttribute(v,h[m])})},{immediate:!0}))),oa(p)&&Tm(p)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(h=>p.removeAttribute(h))},{immediate:!0})}),fn(()=>{if(u==null||u(),u=void 0,a.value&&oa(a.value)){const d=a.value;c.forEach(p=>{const h=n[p];h&&d.removeEventListener(p.slice(2).toLowerCase(),h)}),a.value=void 0}}),t({triggerRef:a}),(d,p)=>d.virtualTriggering?oe("v-if",!0):(x(),he(f(tP),Ft({key:0},d.$attrs,{"aria-controls":f(i),"aria-describedby":f(o),"aria-expanded":f(l),"aria-haspopup":f(s)}),{default:P(()=>[fe(d.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var vW=He(mW,[["__file","trigger.vue"]]);const i0="focus-trap.focus-after-trapped",o0="focus-trap.focus-after-released",gW="focus-trap.focusout-prevented",gC={cancelable:!0,bubbles:!1},yW={cancelable:!0,bubbles:!1},yC="focusAfterTrapped",bC="focusAfterReleased",T1=Symbol("elFocusTrap"),w1=z(),Vv=z(0),S1=z(0);let th=0;const rP=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const a=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||a?NodeFilter.FILTER_SKIP:r.tabIndex>=0||r===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},_C=(e,t)=>{for(const n of e)if(!bW(n,t))return n},bW=(e,t)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},_W=e=>{const t=rP(e),n=_C(t,e),r=_C(t.reverse(),e);return[n,r]},TW=e=>e instanceof HTMLInputElement&&"select"in e,ko=(e,t)=>{if(e&&e.focus){const n=document.activeElement;let r=!1;oa(e)&&!Tm(e)&&!e.getAttribute("tabindex")&&(e.setAttribute("tabindex","-1"),r=!0),e.focus({preventScroll:!0}),S1.value=window.performance.now(),e!==n&&TW(e)&&t&&e.select(),oa(e)&&r&&e.removeAttribute("tabindex")}};function TC(e,t){const n=[...e],r=e.indexOf(t);return r!==-1&&n.splice(r,1),n}const wW=()=>{let e=[];return{push:r=>{const a=e[0];a&&r!==a&&a.pause(),e=TC(e,r),e.unshift(r)},remove:r=>{var a,i;e=TC(e,r),(i=(a=e[0])==null?void 0:a.resume)==null||i.call(a)}}},SW=(e,t=!1)=>{const n=document.activeElement;for(const r of e)if(ko(r,t),document.activeElement!==n)return},wC=wW(),CW=()=>Vv.value>S1.value,nh=()=>{w1.value="pointer",Vv.value=window.performance.now()},SC=()=>{w1.value="keyboard",Vv.value=window.performance.now()},EW=()=>(ht(()=>{th===0&&(document.addEventListener("mousedown",nh),document.addEventListener("touchstart",nh),document.addEventListener("keydown",SC)),th++}),fn(()=>{th--,th<=0&&(document.removeEventListener("mousedown",nh),document.removeEventListener("touchstart",nh),document.removeEventListener("keydown",SC))}),{focusReason:w1,lastUserFocusTimestamp:Vv,lastAutomatedFocusTimestamp:S1}),rh=e=>new CustomEvent(gW,{...yW,detail:e}),Ye={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"};let bu=[];const CC=e=>{e.code===Ye.esc&&bu.forEach(t=>t(e))},xW=e=>{ht(()=>{bu.length===0&&document.addEventListener("keydown",CC),Wt&&bu.push(e)}),fn(()=>{bu=bu.filter(t=>t!==e),bu.length===0&&Wt&&document.removeEventListener("keydown",CC)})},kW=J({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[yC,bC,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=z();let r,a;const{focusReason:i}=EW();xW(v=>{e.trapped&&!o.paused&&t("release-requested",v)});const o={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},s=v=>{if(!e.loop&&!e.trapped||o.paused)return;const{code:m,altKey:g,ctrlKey:y,metaKey:T,currentTarget:b,shiftKey:_}=v,{loop:w}=e,S=m===Ye.tab&&!g&&!y&&!T,A=document.activeElement;if(S&&A){const I=b,[D,O]=_W(I);if(D&&O){if(!_&&A===O){const N=rh({focusReason:i.value});t("focusout-prevented",N),N.defaultPrevented||(v.preventDefault(),w&&ko(D,!0))}else if(_&&[D,I].includes(A)){const N=rh({focusReason:i.value});t("focusout-prevented",N),N.defaultPrevented||(v.preventDefault(),w&&ko(O,!0))}}else if(A===I){const N=rh({focusReason:i.value});t("focusout-prevented",N),N.defaultPrevented||v.preventDefault()}}};Vt(T1,{focusTrapRef:n,onKeydown:s}),Ie(()=>e.focusTrapEl,v=>{v&&(n.value=v)},{immediate:!0}),Ie([n],([v],[m])=>{v&&(v.addEventListener("keydown",s),v.addEventListener("focusin",c),v.addEventListener("focusout",d)),m&&(m.removeEventListener("keydown",s),m.removeEventListener("focusin",c),m.removeEventListener("focusout",d))});const l=v=>{t(yC,v)},u=v=>t(bC,v),c=v=>{const m=f(n);if(!m)return;const g=v.target,y=v.relatedTarget,T=g&&m.contains(g);e.trapped||y&&m.contains(y)||(r=y),T&&t("focusin",v),!o.paused&&e.trapped&&(T?a=g:ko(a,!0))},d=v=>{const m=f(n);if(!(o.paused||!m))if(e.trapped){const g=v.relatedTarget;!sr(g)&&!m.contains(g)&&setTimeout(()=>{if(!o.paused&&e.trapped){const y=rh({focusReason:i.value});t("focusout-prevented",y),y.defaultPrevented||ko(a,!0)}},0)}else{const g=v.target;g&&m.contains(g)||t("focusout",v)}};async function p(){await it();const v=f(n);if(v){wC.push(o);const m=v.contains(document.activeElement)?r:document.activeElement;if(r=m,!v.contains(m)){const y=new Event(i0,gC);v.addEventListener(i0,l),v.dispatchEvent(y),y.defaultPrevented||it(()=>{let T=e.focusStartEl;rt(T)||(ko(T),document.activeElement!==T&&(T="first")),T==="first"&&SW(rP(v),!0),(document.activeElement===m||T==="container")&&ko(v)})}}}function h(){const v=f(n);if(v){v.removeEventListener(i0,l);const m=new CustomEvent(o0,{...gC,detail:{focusReason:i.value}});v.addEventListener(o0,u),v.dispatchEvent(m),!m.defaultPrevented&&(i.value=="keyboard"||!CW()||v.contains(document.activeElement))&&ko(r??document.body),v.removeEventListener(o0,u),wC.remove(o)}}return ht(()=>{e.trapped&&p(),Ie(()=>e.trapped,v=>{v?p():h()})}),fn(()=>{e.trapped&&h(),n.value&&(n.value.removeEventListener("keydown",s),n.value.removeEventListener("focusin",c),n.value.removeEventListener("focusout",d),n.value=void 0)}),{onKeydown:s}}});function AW(e,t,n,r,a,i){return fe(e.$slots,"default",{handleKeydown:e.onKeydown})}var Rc=He(kW,[["render",AW],["__file","focus-trap.vue"]]),_a="top",ti="bottom",ni="right",Ta="left",C1="auto",fp=[_a,ti,ni,Ta],Ju="start",wf="end",DW="clippingParents",aP="viewport",dd="popper",IW="reference",EC=fp.reduce(function(e,t){return e.concat([t+"-"+Ju,t+"-"+wf])},[]),as=[].concat(fp,[C1]).reduce(function(e,t){return e.concat([t,t+"-"+Ju,t+"-"+wf])},[]),PW="beforeRead",OW="read",MW="afterRead",RW="beforeMain",LW="main",NW="afterMain",FW="beforeWrite",$W="write",BW="afterWrite",VW=[PW,OW,MW,RW,LW,NW,FW,$W,BW];function oo(e){return e?(e.nodeName||"").toLowerCase():null}function Oi(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Zu(e){var t=Oi(e).Element;return e instanceof t||e instanceof Element}function Ja(e){var t=Oi(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function E1(e){if(typeof ShadowRoot>"u")return!1;var t=Oi(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function UW(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},a=t.attributes[n]||{},i=t.elements[n];!Ja(i)||!oo(i)||(Object.assign(i.style,r),Object.keys(a).forEach(function(o){var s=a[o];s===!1?i.removeAttribute(o):i.setAttribute(o,s===!0?"":s)}))})}function HW(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var a=t.elements[r],i=t.attributes[r]||{},o=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=o.reduce(function(l,u){return l[u]="",l},{});!Ja(a)||!oo(a)||(Object.assign(a.style,s),Object.keys(i).forEach(function(l){a.removeAttribute(l)}))})}}var iP={name:"applyStyles",enabled:!0,phase:"write",fn:UW,effect:HW,requires:["computeStyles"]};function Xi(e){return e.split("-")[0]}var Sl=Math.max,wm=Math.min,ec=Math.round;function tc(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),r=1,a=1;if(Ja(e)&&t){var i=e.offsetHeight,o=e.offsetWidth;o>0&&(r=ec(n.width)/o||1),i>0&&(a=ec(n.height)/i||1)}return{width:n.width/r,height:n.height/a,top:n.top/a,right:n.right/r,bottom:n.bottom/a,left:n.left/r,x:n.left/r,y:n.top/a}}function x1(e){var t=tc(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function oP(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&E1(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function zo(e){return Oi(e).getComputedStyle(e)}function zW(e){return["table","td","th"].indexOf(oo(e))>=0}function Ks(e){return((Zu(e)?e.ownerDocument:e.document)||window.document).documentElement}function Uv(e){return oo(e)==="html"?e:e.assignedSlot||e.parentNode||(E1(e)?e.host:null)||Ks(e)}function xC(e){return!Ja(e)||zo(e).position==="fixed"?null:e.offsetParent}function jW(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&Ja(e)){var r=zo(e);if(r.position==="fixed")return null}var a=Uv(e);for(E1(a)&&(a=a.host);Ja(a)&&["html","body"].indexOf(oo(a))<0;){var i=zo(a);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return a;a=a.parentNode}return null}function pp(e){for(var t=Oi(e),n=xC(e);n&&zW(n)&&zo(n).position==="static";)n=xC(n);return n&&(oo(n)==="html"||oo(n)==="body"&&zo(n).position==="static")?t:n||jW(e)||t}function k1(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Wd(e,t,n){return Sl(e,wm(t,n))}function WW(e,t,n){var r=Wd(e,t,n);return r>n?n:r}function sP(){return{top:0,right:0,bottom:0,left:0}}function lP(e){return Object.assign({},sP(),e)}function uP(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var KW=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,lP(typeof e!="number"?e:uP(e,fp))};function qW(e){var t,n=e.state,r=e.name,a=e.options,i=n.elements.arrow,o=n.modifiersData.popperOffsets,s=Xi(n.placement),l=k1(s),u=[Ta,ni].indexOf(s)>=0,c=u?"height":"width";if(!(!i||!o)){var d=KW(a.padding,n),p=x1(i),h=l==="y"?_a:Ta,v=l==="y"?ti:ni,m=n.rects.reference[c]+n.rects.reference[l]-o[l]-n.rects.popper[c],g=o[l]-n.rects.reference[l],y=pp(i),T=y?l==="y"?y.clientHeight||0:y.clientWidth||0:0,b=m/2-g/2,_=d[h],w=T-p[c]-d[v],S=T/2-p[c]/2+b,A=Wd(_,S,w),I=l;n.modifiersData[r]=(t={},t[I]=A,t.centerOffset=A-S,t)}}function GW(e){var t=e.state,n=e.options,r=n.element,a=r===void 0?"[data-popper-arrow]":r;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||!oP(t.elements.popper,a)||(t.elements.arrow=a))}var YW={name:"arrow",enabled:!0,phase:"main",fn:qW,effect:GW,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function nc(e){return e.split("-")[1]}var XW={top:"auto",right:"auto",bottom:"auto",left:"auto"};function QW(e){var t=e.x,n=e.y,r=window,a=r.devicePixelRatio||1;return{x:ec(t*a)/a||0,y:ec(n*a)/a||0}}function kC(e){var t,n=e.popper,r=e.popperRect,a=e.placement,i=e.variation,o=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,p=o.x,h=p===void 0?0:p,v=o.y,m=v===void 0?0:v,g=typeof c=="function"?c({x:h,y:m}):{x:h,y:m};h=g.x,m=g.y;var y=o.hasOwnProperty("x"),T=o.hasOwnProperty("y"),b=Ta,_=_a,w=window;if(u){var S=pp(n),A="clientHeight",I="clientWidth";if(S===Oi(n)&&(S=Ks(n),zo(S).position!=="static"&&s==="absolute"&&(A="scrollHeight",I="scrollWidth")),S=S,a===_a||(a===Ta||a===ni)&&i===wf){_=ti;var D=d&&S===w&&w.visualViewport?w.visualViewport.height:S[A];m-=D-r.height,m*=l?1:-1}if(a===Ta||(a===_a||a===ti)&&i===wf){b=ni;var O=d&&S===w&&w.visualViewport?w.visualViewport.width:S[I];h-=O-r.width,h*=l?1:-1}}var V=Object.assign({position:s},u&&XW),N=c===!0?QW({x:h,y:m}):{x:h,y:m};if(h=N.x,m=N.y,l){var K;return Object.assign({},V,(K={},K[_]=T?"0":"",K[b]=y?"0":"",K.transform=(w.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",K))}return Object.assign({},V,(t={},t[_]=T?m+"px":"",t[b]=y?h+"px":"",t.transform="",t))}function JW(e){var t=e.state,n=e.options,r=n.gpuAcceleration,a=r===void 0?!0:r,i=n.adaptive,o=i===void 0?!0:i,s=n.roundOffsets,l=s===void 0?!0:s,u={placement:Xi(t.placement),variation:nc(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,kC(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,kC(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var cP={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:JW,data:{}},ah={passive:!0};function ZW(e){var t=e.state,n=e.instance,r=e.options,a=r.scroll,i=a===void 0?!0:a,o=r.resize,s=o===void 0?!0:o,l=Oi(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",n.update,ah)}),s&&l.addEventListener("resize",n.update,ah),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",n.update,ah)}),s&&l.removeEventListener("resize",n.update,ah)}}var dP={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:ZW,data:{}},eK={left:"right",right:"left",bottom:"top",top:"bottom"};function Lh(e){return e.replace(/left|right|bottom|top/g,function(t){return eK[t]})}var tK={start:"end",end:"start"};function AC(e){return e.replace(/start|end/g,function(t){return tK[t]})}function A1(e){var t=Oi(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function D1(e){return tc(Ks(e)).left+A1(e).scrollLeft}function nK(e){var t=Oi(e),n=Ks(e),r=t.visualViewport,a=n.clientWidth,i=n.clientHeight,o=0,s=0;return r&&(a=r.width,i=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(o=r.offsetLeft,s=r.offsetTop)),{width:a,height:i,x:o+D1(e),y:s}}function rK(e){var t,n=Ks(e),r=A1(e),a=(t=e.ownerDocument)==null?void 0:t.body,i=Sl(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),o=Sl(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),s=-r.scrollLeft+D1(e),l=-r.scrollTop;return zo(a||n).direction==="rtl"&&(s+=Sl(n.clientWidth,a?a.clientWidth:0)-i),{width:i,height:o,x:s,y:l}}function I1(e){var t=zo(e),n=t.overflow,r=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+r)}function fP(e){return["html","body","#document"].indexOf(oo(e))>=0?e.ownerDocument.body:Ja(e)&&I1(e)?e:fP(Uv(e))}function Kd(e,t){var n;t===void 0&&(t=[]);var r=fP(e),a=r===((n=e.ownerDocument)==null?void 0:n.body),i=Oi(r),o=a?[i].concat(i.visualViewport||[],I1(r)?r:[]):r,s=t.concat(o);return a?s:s.concat(Kd(Uv(o)))}function Iy(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function aK(e){var t=tc(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function DC(e,t){return t===aP?Iy(nK(e)):Zu(t)?aK(t):Iy(rK(Ks(e)))}function iK(e){var t=Kd(Uv(e)),n=["absolute","fixed"].indexOf(zo(e).position)>=0,r=n&&Ja(e)?pp(e):e;return Zu(r)?t.filter(function(a){return Zu(a)&&oP(a,r)&&oo(a)!=="body"}):[]}function oK(e,t,n){var r=t==="clippingParents"?iK(e):[].concat(t),a=[].concat(r,[n]),i=a[0],o=a.reduce(function(s,l){var u=DC(e,l);return s.top=Sl(u.top,s.top),s.right=wm(u.right,s.right),s.bottom=wm(u.bottom,s.bottom),s.left=Sl(u.left,s.left),s},DC(e,i));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function pP(e){var t=e.reference,n=e.element,r=e.placement,a=r?Xi(r):null,i=r?nc(r):null,o=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(a){case _a:l={x:o,y:t.y-n.height};break;case ti:l={x:o,y:t.y+t.height};break;case ni:l={x:t.x+t.width,y:s};break;case Ta:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var u=a?k1(a):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case Ju:l[u]=l[u]-(t[c]/2-n[c]/2);break;case wf:l[u]=l[u]+(t[c]/2-n[c]/2);break}}return l}function Sf(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=r===void 0?e.placement:r,i=n.boundary,o=i===void 0?DW:i,s=n.rootBoundary,l=s===void 0?aP:s,u=n.elementContext,c=u===void 0?dd:u,d=n.altBoundary,p=d===void 0?!1:d,h=n.padding,v=h===void 0?0:h,m=lP(typeof v!="number"?v:uP(v,fp)),g=c===dd?IW:dd,y=e.rects.popper,T=e.elements[p?g:c],b=oK(Zu(T)?T:T.contextElement||Ks(e.elements.popper),o,l),_=tc(e.elements.reference),w=pP({reference:_,element:y,strategy:"absolute",placement:a}),S=Iy(Object.assign({},y,w)),A=c===dd?S:_,I={top:b.top-A.top+m.top,bottom:A.bottom-b.bottom+m.bottom,left:b.left-A.left+m.left,right:A.right-b.right+m.right},D=e.modifiersData.offset;if(c===dd&&D){var O=D[a];Object.keys(I).forEach(function(V){var N=[ni,ti].indexOf(V)>=0?1:-1,K=[_a,ti].indexOf(V)>=0?"y":"x";I[V]+=O[K]*N})}return I}function sK(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=n.boundary,i=n.rootBoundary,o=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?as:l,c=nc(r),d=c?s?EC:EC.filter(function(v){return nc(v)===c}):fp,p=d.filter(function(v){return u.indexOf(v)>=0});p.length===0&&(p=d);var h=p.reduce(function(v,m){return v[m]=Sf(e,{placement:m,boundary:a,rootBoundary:i,padding:o})[Xi(m)],v},{});return Object.keys(h).sort(function(v,m){return h[v]-h[m]})}function lK(e){if(Xi(e)===C1)return[];var t=Lh(e);return[AC(e),t,AC(t)]}function uK(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var a=n.mainAxis,i=a===void 0?!0:a,o=n.altAxis,s=o===void 0?!0:o,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,p=n.altBoundary,h=n.flipVariations,v=h===void 0?!0:h,m=n.allowedAutoPlacements,g=t.options.placement,y=Xi(g),T=y===g,b=l||(T||!v?[Lh(g)]:lK(g)),_=[g].concat(b).reduce(function(be,_e){return be.concat(Xi(_e)===C1?sK(t,{placement:_e,boundary:c,rootBoundary:d,padding:u,flipVariations:v,allowedAutoPlacements:m}):_e)},[]),w=t.rects.reference,S=t.rects.popper,A=new Map,I=!0,D=_[0],O=0;O<_.length;O++){var V=_[O],N=Xi(V),K=nc(V)===Ju,Y=[_a,ti].indexOf(N)>=0,q=Y?"width":"height",$=Sf(t,{placement:V,boundary:c,rootBoundary:d,altBoundary:p,padding:u}),j=Y?K?ni:Ta:K?ti:_a;w[q]>S[q]&&(j=Lh(j));var W=Lh(j),H=[];if(i&&H.push($[N]<=0),s&&H.push($[j]<=0,$[W]<=0),H.every(function(be){return be})){D=V,I=!1;break}A.set(V,H)}if(I)for(var X=v?3:1,re=function(be){var _e=_.find(function(ve){var te=A.get(ve);if(te)return te.slice(0,be).every(function(me){return me})});if(_e)return D=_e,"break"},le=X;le>0;le--){var ne=re(le);if(ne==="break")break}t.placement!==D&&(t.modifiersData[r]._skip=!0,t.placement=D,t.reset=!0)}}var cK={name:"flip",enabled:!0,phase:"main",fn:uK,requiresIfExists:["offset"],data:{_skip:!1}};function IC(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function PC(e){return[_a,ni,ti,Ta].some(function(t){return e[t]>=0})}function dK(e){var t=e.state,n=e.name,r=t.rects.reference,a=t.rects.popper,i=t.modifiersData.preventOverflow,o=Sf(t,{elementContext:"reference"}),s=Sf(t,{altBoundary:!0}),l=IC(o,r),u=IC(s,a,i),c=PC(l),d=PC(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}var fK={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:dK};function pK(e,t,n){var r=Xi(e),a=[Ta,_a].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,o=i[0],s=i[1];return o=o||0,s=(s||0)*a,[Ta,ni].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}function hK(e){var t=e.state,n=e.options,r=e.name,a=n.offset,i=a===void 0?[0,0]:a,o=as.reduce(function(c,d){return c[d]=pK(d,t.rects,i),c},{}),s=o[t.placement],l=s.x,u=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=o}var mK={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:hK};function vK(e){var t=e.state,n=e.name;t.modifiersData[n]=pP({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var hP={name:"popperOffsets",enabled:!0,phase:"read",fn:vK,data:{}};function gK(e){return e==="x"?"y":"x"}function yK(e){var t=e.state,n=e.options,r=e.name,a=n.mainAxis,i=a===void 0?!0:a,o=n.altAxis,s=o===void 0?!1:o,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,p=n.tether,h=p===void 0?!0:p,v=n.tetherOffset,m=v===void 0?0:v,g=Sf(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),y=Xi(t.placement),T=nc(t.placement),b=!T,_=k1(y),w=gK(_),S=t.modifiersData.popperOffsets,A=t.rects.reference,I=t.rects.popper,D=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,O=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),V=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,N={x:0,y:0};if(S){if(i){var K,Y=_==="y"?_a:Ta,q=_==="y"?ti:ni,$=_==="y"?"height":"width",j=S[_],W=j+g[Y],H=j-g[q],X=h?-I[$]/2:0,re=T===Ju?A[$]:I[$],le=T===Ju?-I[$]:-A[$],ne=t.elements.arrow,be=h&&ne?x1(ne):{width:0,height:0},_e=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:sP(),ve=_e[Y],te=_e[q],me=Wd(0,A[$],be[$]),pe=b?A[$]/2-X-me-ve-O.mainAxis:re-me-ve-O.mainAxis,Fe=b?-A[$]/2+X+me+te+O.mainAxis:le+me+te+O.mainAxis,Pe=t.elements.arrow&&pp(t.elements.arrow),ye=Pe?_==="y"?Pe.clientTop||0:Pe.clientLeft||0:0,Z=(K=V==null?void 0:V[_])!=null?K:0,ie=j+pe-Z-ye,Ce=j+Fe-Z,$e=Wd(h?wm(W,ie):W,j,h?Sl(H,Ce):H);S[_]=$e,N[_]=$e-j}if(s){var Se,De=_==="x"?_a:Ta,xe=_==="x"?ti:ni,Ve=S[w],ze=w==="y"?"height":"width",je=Ve+g[De],nt=Ve-g[xe],Ae=[_a,Ta].indexOf(y)!==-1,Xe=(Se=V==null?void 0:V[w])!=null?Se:0,ct=Ae?je:Ve-A[ze]-I[ze]-Xe+O.altAxis,Dt=Ae?Ve+A[ze]+I[ze]-Xe-O.altAxis:nt,Pt=h&&Ae?WW(ct,Ve,Dt):Wd(h?ct:je,Ve,h?Dt:nt);S[w]=Pt,N[w]=Pt-Ve}t.modifiersData[r]=N}}var bK={name:"preventOverflow",enabled:!0,phase:"main",fn:yK,requiresIfExists:["offset"]};function _K(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function TK(e){return e===Oi(e)||!Ja(e)?A1(e):_K(e)}function wK(e){var t=e.getBoundingClientRect(),n=ec(t.width)/e.offsetWidth||1,r=ec(t.height)/e.offsetHeight||1;return n!==1||r!==1}function SK(e,t,n){n===void 0&&(n=!1);var r=Ja(t),a=Ja(t)&&wK(t),i=Ks(t),o=tc(e,a),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((oo(t)!=="body"||I1(i))&&(s=TK(t)),Ja(t)?(l=tc(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=D1(i))),{x:o.left+s.scrollLeft-l.x,y:o.top+s.scrollTop-l.y,width:o.width,height:o.height}}function CK(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function a(i){n.add(i.name);var o=[].concat(i.requires||[],i.requiresIfExists||[]);o.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&a(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||a(i)}),r}function EK(e){var t=CK(e);return VW.reduce(function(n,r){return n.concat(t.filter(function(a){return a.phase===r}))},[])}function xK(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function kK(e){var t=e.reduce(function(n,r){var a=n[r.name];return n[r.name]=a?Object.assign({},a,r,{options:Object.assign({},a.options,r.options),data:Object.assign({},a.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var OC={placement:"bottom",modifiers:[],strategy:"absolute"};function MC(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function P1(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,a=t.defaultOptions,i=a===void 0?OC:a;return function(o,s,l){l===void 0&&(l=i);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},OC,i),modifiersData:{},elements:{reference:o,popper:s},attributes:{},styles:{}},c=[],d=!1,p={state:u,setOptions:function(m){var g=typeof m=="function"?m(u.options):m;v(),u.options=Object.assign({},i,u.options,g),u.scrollParents={reference:Zu(o)?Kd(o):o.contextElement?Kd(o.contextElement):[],popper:Kd(s)};var y=EK(kK([].concat(r,u.options.modifiers)));return u.orderedModifiers=y.filter(function(T){return T.enabled}),h(),p.update()},forceUpdate:function(){if(!d){var m=u.elements,g=m.reference,y=m.popper;if(MC(g,y)){u.rects={reference:SK(g,pp(y),u.options.strategy==="fixed"),popper:x1(y)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(I){return u.modifiersData[I.name]=Object.assign({},I.data)});for(var T=0;T<u.orderedModifiers.length;T++){if(u.reset===!0){u.reset=!1,T=-1;continue}var b=u.orderedModifiers[T],_=b.fn,w=b.options,S=w===void 0?{}:w,A=b.name;typeof _=="function"&&(u=_({state:u,options:S,name:A,instance:p})||u)}}}},update:xK(function(){return new Promise(function(m){p.forceUpdate(),m(u)})}),destroy:function(){v(),d=!0}};if(!MC(o,s))return p;p.setOptions(l).then(function(m){!d&&l.onFirstUpdate&&l.onFirstUpdate(m)});function h(){u.orderedModifiers.forEach(function(m){var g=m.name,y=m.options,T=y===void 0?{}:y,b=m.effect;if(typeof b=="function"){var _=b({state:u,name:g,instance:p,options:T}),w=function(){};c.push(_||w)}})}function v(){c.forEach(function(m){return m()}),c=[]}return p}}P1();var AK=[dP,hP,cP,iP];P1({defaultModifiers:AK});var DK=[dP,hP,cP,iP,mK,cK,bK,YW,fK],IK=P1({defaultModifiers:DK});const PK=["fixed","absolute"],OK=Ue({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:ue(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:as,default:"bottom"},popperOptions:{type:ue(Object),default:()=>({})},strategy:{type:String,values:PK,default:"absolute"}}),mP=Ue({...OK,id:String,style:{type:ue([String,Array,Object])},className:{type:ue([String,Array,Object])},effect:{type:ue(String),default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:ue([String,Array,Object])},popperStyle:{type:ue([String,Array,Object])},referenceEl:{type:ue(Object)},triggerTargetEl:{type:ue(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},virtualTriggering:Boolean,zIndex:Number,...Er(["ariaLabel"])}),MK={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},RK=(e,t)=>{const n=z(!1),r=z();return{focusStartRef:r,trapped:n,onFocusAfterReleased:u=>{var c;((c=u.detail)==null?void 0:c.focusReason)!=="pointer"&&(r.value="first",t("blur"))},onFocusAfterTrapped:()=>{t("focus")},onFocusInTrap:u=>{e.visible&&!n.value&&(u.target&&(r.value=u.target),n.value=!0)},onFocusoutPrevented:u=>{e.trapping||(u.detail.focusReason==="pointer"&&u.preventDefault(),n.value=!1)},onReleaseRequested:()=>{n.value=!1,t("close")}}},LK=(e,t=[])=>{const{placement:n,strategy:r,popperOptions:a}=e,i={placement:n,strategy:r,...a,modifiers:[...FK(e),...t]};return $K(i,a==null?void 0:a.modifiers),i},NK=e=>{if(Wt)return ia(e)};function FK(e){const{offset:t,gpuAcceleration:n,fallbackPlacements:r}=e;return[{name:"offset",options:{offset:[0,t??12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:r}},{name:"computeStyles",options:{gpuAcceleration:n}}]}function $K(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const BK=(e,t,n={})=>{const r={name:"updateState",enabled:!0,phase:"write",fn:({state:l})=>{const u=VK(l);Object.assign(o.value,u)},requires:["computeStyles"]},a=k(()=>{const{onFirstUpdate:l,placement:u,strategy:c,modifiers:d}=f(n);return{onFirstUpdate:l,placement:u||"bottom",strategy:c||"absolute",modifiers:[...d||[],r,{name:"applyStyles",enabled:!1}]}}),i=cn(),o=z({styles:{popper:{position:f(a).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),s=()=>{i.value&&(i.value.destroy(),i.value=void 0)};return Ie(a,l=>{const u=f(i);u&&u.setOptions(l)},{deep:!0}),Ie([e,t],([l,u])=>{s(),!(!l||!u)&&(i.value=IK(l,u,f(a)))}),fn(()=>{s()}),{state:k(()=>{var l;return{...((l=f(i))==null?void 0:l.state)||{}}}),styles:k(()=>f(o).styles),attributes:k(()=>f(o).attributes),update:()=>{var l;return(l=f(i))==null?void 0:l.update()},forceUpdate:()=>{var l;return(l=f(i))==null?void 0:l.forceUpdate()},instanceRef:k(()=>f(i))}};function VK(e){const t=Object.keys(e.elements),n=_f(t.map(a=>[a,e.styles[a]||{}])),r=_f(t.map(a=>[a,e.attributes[a]]));return{styles:n,attributes:r}}const UK=0,HK=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:r,role:a}=Qe(_1,void 0),i=z(),o=z(),s=k(()=>({name:"eventListeners",enabled:!!e.visible})),l=k(()=>{var y;const T=f(i),b=(y=f(o))!=null?y:UK;return{name:"arrow",enabled:!yI(T),options:{element:T,padding:b}}}),u=k(()=>({onFirstUpdate:()=>{v()},...LK(e,[f(l),f(s)])})),c=k(()=>NK(e.referenceEl)||f(r)),{attributes:d,state:p,styles:h,update:v,forceUpdate:m,instanceRef:g}=BK(c,n,u);return Ie(g,y=>t.value=y),ht(()=>{Ie(()=>{var y;return(y=f(c))==null?void 0:y.getBoundingClientRect()},()=>{v()})}),{attributes:d,arrowRef:i,contentRef:n,instanceRef:g,state:p,styles:h,role:a,forceUpdate:m,update:v}},zK=(e,{attributes:t,styles:n,role:r})=>{const{nextZIndex:a}=Oc(),i=Le("popper"),o=k(()=>f(t).popper),s=z(st(e.zIndex)?e.zIndex:a()),l=k(()=>[i.b(),i.is("pure",e.pure),i.is(e.effect),e.popperClass]),u=k(()=>[{zIndex:f(s)},f(n).popper,e.popperStyle||{}]),c=k(()=>r.value==="dialog"?"false":void 0),d=k(()=>f(n).arrow||{});return{ariaModal:c,arrowStyle:d,contentAttrs:o,contentClass:l,contentStyle:u,contentZIndex:s,updateZIndex:()=>{s.value=st(e.zIndex)?e.zIndex:a()}}},jK=J({name:"ElPopperContent"}),WK=J({...jK,props:mP,emits:MK,setup(e,{expose:t,emit:n}){const r=e,{focusStartRef:a,trapped:i,onFocusAfterReleased:o,onFocusAfterTrapped:s,onFocusInTrap:l,onFocusoutPrevented:u,onReleaseRequested:c}=RK(r,n),{attributes:d,arrowRef:p,contentRef:h,styles:v,instanceRef:m,role:g,update:y}=HK(r),{ariaModal:T,arrowStyle:b,contentAttrs:_,contentClass:w,contentStyle:S,updateZIndex:A}=zK(r,{styles:v,attributes:d,role:g}),I=Qe(io,void 0),D=z();Vt(qI,{arrowStyle:b,arrowRef:p,arrowOffset:D}),I&&Vt(io,{...I,addInputId:nn,removeInputId:nn});let O;const V=(K=!0)=>{y(),K&&A()},N=()=>{V(!1),r.visible&&r.focusOnShow?i.value=!0:r.visible===!1&&(i.value=!1)};return ht(()=>{Ie(()=>r.triggerTargetEl,(K,Y)=>{O==null||O(),O=void 0;const q=f(K||h.value),$=f(Y||h.value);oa(q)&&(O=Ie([g,()=>r.ariaLabel,T,()=>r.id],j=>{["role","aria-label","aria-modal","id"].forEach((W,H)=>{sr(j[H])?q.removeAttribute(W):q.setAttribute(W,j[H])})},{immediate:!0})),$!==q&&oa($)&&["role","aria-label","aria-modal","id"].forEach(j=>{$.removeAttribute(j)})},{immediate:!0}),Ie(()=>r.visible,N,{immediate:!0})}),fn(()=>{O==null||O(),O=void 0}),t({popperContentRef:h,popperInstanceRef:m,updatePopper:V,contentStyle:S}),(K,Y)=>(x(),U("div",Ft({ref_key:"contentRef",ref:h},f(_),{style:f(S),class:f(w),tabindex:"-1",onMouseenter:q=>K.$emit("mouseenter",q),onMouseleave:q=>K.$emit("mouseleave",q)}),[E(f(Rc),{trapped:f(i),"trap-on-focus-in":!0,"focus-trap-el":f(h),"focus-start-el":f(a),onFocusAfterTrapped:f(s),onFocusAfterReleased:f(o),onFocusin:f(l),onFocusoutPrevented:f(u),onReleaseRequested:f(c)},{default:P(()=>[fe(K.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16,["onMouseenter","onMouseleave"]))}});var KK=He(WK,[["__file","content.vue"]]);const vP=Et(iW),Hv=Symbol("elTooltip");function RC(){let e;const t=(r,a)=>{n(),e=window.setTimeout(r,a)},n=()=>window.clearTimeout(e);return op(()=>n()),{registerTimeout:t,cancelTimeout:n}}const qK=Ue({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),GK=({showAfter:e,hideAfter:t,autoClose:n,open:r,close:a})=>{const{registerTimeout:i}=RC(),{registerTimeout:o,cancelTimeout:s}=RC();return{onOpen:c=>{i(()=>{r(c);const d=f(n);st(d)&&d>0&&o(()=>{a(c)},d)},f(e))},onClose:c=>{s(),i(()=>{a(c)},f(t))}}},dr=Ue({...qK,...mP,appendTo:{type:ue([String,Object])},content:{type:String,default:""},rawContent:Boolean,persistent:Boolean,visible:{type:ue(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean,...Er(["ariaLabel"])}),Cf=Ue({...QI,disabled:Boolean,trigger:{type:ue([String,Array]),default:"hover"},triggerKeys:{type:ue(Array),default:()=>[Ye.enter,Ye.numpadEnter,Ye.space]}}),YK=Pi({type:ue(Boolean),default:null}),XK=Pi({type:ue(Function)}),gP=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,r=[t],a={[e]:YK,[n]:XK};return{useModelToggle:({indicator:o,toggleReason:s,shouldHideWhenRouteChanges:l,shouldProceed:u,onShow:c,onHide:d})=>{const p=Mt(),{emit:h}=p,v=p.props,m=k(()=>ot(v[n])),g=k(()=>v[e]===null),y=A=>{o.value!==!0&&(o.value=!0,s&&(s.value=A),ot(c)&&c(A))},T=A=>{o.value!==!1&&(o.value=!1,s&&(s.value=A),ot(d)&&d(A))},b=A=>{if(v.disabled===!0||ot(u)&&!u())return;const I=m.value&&Wt;I&&h(t,!0),(g.value||!I)&&y(A)},_=A=>{if(v.disabled===!0||!Wt)return;const I=m.value&&Wt;I&&h(t,!1),(g.value||!I)&&T(A)},w=A=>{pn(A)&&(v.disabled&&A?m.value&&h(t,!1):o.value!==A&&(A?y():T()))},S=()=>{o.value?_():b()};return Ie(()=>v[e],w),l&&p.appContext.config.globalProperties.$route!==void 0&&Ie(()=>({...p.proxy.$route}),()=>{l.value&&o.value&&_()}),ht(()=>{w(v[e])}),{hide:_,show:b,toggle:S,hasUpdateHandler:m}},useModelToggleProps:a,useModelToggleEmits:r}};gP("modelValue");const{useModelToggleProps:QK,useModelToggleEmits:JK,useModelToggle:ZK}=gP("visible"),eq=Ue({...YI,...QK,...dr,...Cf,...XI,showArrow:{type:Boolean,default:!0}}),tq=[...JK,"before-show","before-hide","show","hide","open","close"],nq=(e,t)=>Be(e)?e.includes(t):e===t,iu=(e,t,n)=>r=>{nq(f(e),t)&&n(r)},$n=(e,t,{checkForDefaultPrevented:n=!0}={})=>a=>{const i=e==null?void 0:e(a);if(n===!1||!i)return t==null?void 0:t(a)},LC=e=>t=>t.pointerType==="mouse"?e(t):void 0,rq=J({name:"ElTooltipTrigger"}),aq=J({...rq,props:Cf,setup(e,{expose:t}){const n=e,r=Le("tooltip"),{controlled:a,id:i,open:o,onOpen:s,onClose:l,onToggle:u}=Qe(Hv,void 0),c=z(null),d=()=>{if(f(a)||n.disabled)return!0},p=rn(n,"trigger"),h=$n(d,iu(p,"hover",s)),v=$n(d,iu(p,"hover",l)),m=$n(d,iu(p,"click",_=>{_.button===0&&u(_)})),g=$n(d,iu(p,"focus",s)),y=$n(d,iu(p,"focus",l)),T=$n(d,iu(p,"contextmenu",_=>{_.preventDefault(),u(_)})),b=$n(d,_=>{const{code:w}=_;n.triggerKeys.includes(w)&&(_.preventDefault(),u(_))});return t({triggerRef:c}),(_,w)=>(x(),he(f(vW),{id:f(i),"virtual-ref":_.virtualRef,open:f(o),"virtual-triggering":_.virtualTriggering,class:F(f(r).e("trigger")),onBlur:f(y),onClick:f(m),onContextmenu:f(T),onFocus:f(g),onMouseenter:f(h),onMouseleave:f(v),onKeydown:f(b)},{default:P(()=>[fe(_.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var iq=He(aq,[["__file","trigger.vue"]]);const oq=Ue({to:{type:ue([String,Object]),required:!0},disabled:Boolean}),sq=J({__name:"teleport",props:oq,setup(e){return(t,n)=>t.disabled?fe(t.$slots,"default",{key:0}):(x(),he(BF,{key:1,to:t.to},[fe(t.$slots,"default")],8,["to"]))}});var lq=He(sq,[["__file","teleport.vue"]]);const Lc=Et(lq),yP=()=>{const e=V_(),t=y1(),n=k(()=>`${e.value}-popper-container-${t.prefix}`),r=k(()=>`#${n.value}`);return{id:n,selector:r}},uq=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},cq=()=>{const{id:e,selector:t}=yP();return Hl(()=>{Wt&&(document.body.querySelector(t.value)||uq(e.value))}),{id:e,selector:t}},dq=J({name:"ElTooltipContent",inheritAttrs:!1}),fq=J({...dq,props:dr,setup(e,{expose:t}){const n=e,{selector:r}=yP(),a=Le("tooltip"),i=z();let o;const{controlled:s,id:l,open:u,trigger:c,onClose:d,onOpen:p,onShow:h,onHide:v,onBeforeShow:m,onBeforeHide:g}=Qe(Hv,void 0),y=k(()=>n.transition||`${a.namespace.value}-fade-in-linear`),T=k(()=>n.persistent);fn(()=>{o==null||o()});const b=k(()=>f(T)?!0:f(u)),_=k(()=>n.disabled?!1:f(u)),w=k(()=>n.appendTo||r.value),S=k(()=>{var j;return(j=n.style)!=null?j:{}}),A=z(!0),I=()=>{v(),$()&&ko(document.body),A.value=!0},D=()=>{if(f(s))return!0},O=$n(D,()=>{n.enterable&&f(c)==="hover"&&p()}),V=$n(D,()=>{f(c)==="hover"&&d()}),N=()=>{var j,W;(W=(j=i.value)==null?void 0:j.updatePopper)==null||W.call(j),m==null||m()},K=()=>{g==null||g()},Y=()=>{h(),o=r1(k(()=>{var j;return(j=i.value)==null?void 0:j.popperContentRef}),()=>{if(f(s))return;f(c)!=="hover"&&d()})},q=()=>{n.virtualTriggering||d()},$=j=>{var W;const H=(W=i.value)==null?void 0:W.popperContentRef,X=(j==null?void 0:j.relatedTarget)||document.activeElement;return H==null?void 0:H.contains(X)};return Ie(()=>f(u),j=>{j?A.value=!1:o==null||o()},{flush:"post"}),Ie(()=>n.content,()=>{var j,W;(W=(j=i.value)==null?void 0:j.updatePopper)==null||W.call(j)}),t({contentRef:i,isFocusInsideContent:$}),(j,W)=>(x(),he(f(Lc),{disabled:!j.teleported,to:f(w)},{default:P(()=>[E(lr,{name:f(y),onAfterLeave:I,onBeforeEnter:N,onAfterEnter:Y,onBeforeLeave:K},{default:P(()=>[f(b)?gt((x(),he(f(KK),Ft({key:0,id:f(l),ref_key:"contentRef",ref:i},j.$attrs,{"aria-label":j.ariaLabel,"aria-hidden":A.value,"boundaries-padding":j.boundariesPadding,"fallback-placements":j.fallbackPlacements,"gpu-acceleration":j.gpuAcceleration,offset:j.offset,placement:j.placement,"popper-options":j.popperOptions,strategy:j.strategy,effect:j.effect,enterable:j.enterable,pure:j.pure,"popper-class":j.popperClass,"popper-style":[j.popperStyle,f(S)],"reference-el":j.referenceEl,"trigger-target-el":j.triggerTargetEl,visible:f(_),"z-index":j.zIndex,onMouseenter:f(O),onMouseleave:f(V),onBlur:q,onClose:f(d)}),{default:P(()=>[fe(j.$slots,"default")]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onClose"])),[[zt,f(_)]]):oe("v-if",!0)]),_:3},8,["name"])]),_:3},8,["disabled","to"]))}});var pq=He(fq,[["__file","content.vue"]]);const hq=J({name:"ElTooltip"}),mq=J({...hq,props:eq,emits:tq,setup(e,{expose:t,emit:n}){const r=e;cq();const a=wr(),i=z(),o=z(),s=()=>{var y;const T=f(i);T&&((y=T.popperInstanceRef)==null||y.update())},l=z(!1),u=z(),{show:c,hide:d,hasUpdateHandler:p}=ZK({indicator:l,toggleReason:u}),{onOpen:h,onClose:v}=GK({showAfter:rn(r,"showAfter"),hideAfter:rn(r,"hideAfter"),autoClose:rn(r,"autoClose"),open:c,close:d}),m=k(()=>pn(r.visible)&&!p.value);Vt(Hv,{controlled:m,id:a,open:Ul(l),trigger:rn(r,"trigger"),onOpen:y=>{h(y)},onClose:y=>{v(y)},onToggle:y=>{f(l)?v(y):h(y)},onShow:()=>{n("show",u.value)},onHide:()=>{n("hide",u.value)},onBeforeShow:()=>{n("before-show",u.value)},onBeforeHide:()=>{n("before-hide",u.value)},updatePopper:s}),Ie(()=>r.disabled,y=>{y&&l.value&&(l.value=!1)});const g=y=>{var T;return(T=o.value)==null?void 0:T.isFocusInsideContent(y)};return GA(()=>l.value&&d()),t({popperRef:i,contentRef:o,isFocusInsideContent:g,updatePopper:s,onOpen:h,onClose:v,hide:d}),(y,T)=>(x(),he(f(vP),{ref_key:"popperRef",ref:i,role:y.role},{default:P(()=>[E(iq,{disabled:y.disabled,trigger:y.trigger,"trigger-keys":y.triggerKeys,"virtual-ref":y.virtualRef,"virtual-triggering":y.virtualTriggering},{default:P(()=>[y.$slots.default?fe(y.$slots,"default",{key:0}):oe("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),E(pq,{ref_key:"contentRef",ref:o,"aria-label":y.ariaLabel,"boundaries-padding":y.boundariesPadding,content:y.content,disabled:y.disabled,effect:y.effect,enterable:y.enterable,"fallback-placements":y.fallbackPlacements,"hide-after":y.hideAfter,"gpu-acceleration":y.gpuAcceleration,offset:y.offset,persistent:y.persistent,"popper-class":y.popperClass,"popper-style":y.popperStyle,placement:y.placement,"popper-options":y.popperOptions,pure:y.pure,"raw-content":y.rawContent,"reference-el":y.referenceEl,"trigger-target-el":y.triggerTargetEl,"show-after":y.showAfter,strategy:y.strategy,teleported:y.teleported,transition:y.transition,"virtual-triggering":y.virtualTriggering,"z-index":y.zIndex,"append-to":y.appendTo},{default:P(()=>[fe(y.$slots,"content",{},()=>[y.rawContent?(x(),U("span",{key:0,innerHTML:y.content},null,8,["innerHTML"])):(x(),U("span",{key:1},de(y.content),1))]),y.showArrow?(x(),he(f(lW),{key:0,"arrow-offset":y.arrowOffset},null,8,["arrow-offset"])):oe("v-if",!0)]),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])]),_:3},8,["role"]))}});var vq=He(mq,[["__file","tooltip.vue"]]);const ar=Et(vq),gq=Ue({valueKey:{type:String,default:"value"},modelValue:{type:[String,Number],default:""},debounce:{type:Number,default:300},placement:{type:ue(String),values:["top","top-start","top-end","bottom","bottom-start","bottom-end"],default:"bottom-start"},fetchSuggestions:{type:ue([Function,Array]),default:nn},popperClass:{type:String,default:""},triggerOnFocus:{type:Boolean,default:!0},selectWhenUnmatched:{type:Boolean,default:!1},hideLoading:{type:Boolean,default:!1},teleported:dr.teleported,highlightFirstItem:{type:Boolean,default:!1},fitInputWidth:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},name:String,...Er(["ariaLabel"])}),yq={[_t]:e=>rt(e),[hr]:e=>rt(e),[$t]:e=>rt(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,select:e=>It(e)},bP="ElAutocomplete",bq=J({name:bP,inheritAttrs:!1}),_q=J({...bq,props:gq,emits:yq,setup(e,{expose:t,emit:n}){const r=e,a=cp(),i=es(),o=Mr(),s=Le("autocomplete"),l=z(),u=z(),c=z(),d=z();let p=!1,h=!1;const v=z([]),m=z(-1),g=z(""),y=z(!1),T=z(!1),b=z(!1),_=wr(),w=k(()=>i.style),S=k(()=>(v.value.length>0||b.value)&&y.value),A=k(()=>!r.hideLoading&&b.value),I=k(()=>l.value?Array.from(l.value.$el.querySelectorAll("input")):[]),D=()=>{S.value&&(g.value=`${l.value.$el.offsetWidth}px`)},O=()=>{m.value=-1},V=async te=>{if(T.value)return;const me=pe=>{b.value=!1,!T.value&&(Be(pe)?(v.value=pe,m.value=r.highlightFirstItem?0:-1):rr(bP,"autocomplete suggestions must be an array"))};if(b.value=!0,Be(r.fetchSuggestions))me(r.fetchSuggestions);else{const pe=await r.fetchSuggestions(te,me);Be(pe)&&me(pe)}},N=wa(V,r.debounce),K=te=>{const me=!!te;if(n(hr,te),n(_t,te),T.value=!1,y.value||(y.value=me),!r.triggerOnFocus&&!te){T.value=!0,v.value=[];return}N(te)},Y=te=>{var me;o.value||(((me=te.target)==null?void 0:me.tagName)!=="INPUT"||I.value.includes(document.activeElement))&&(y.value=!0)},q=te=>{n($t,te)},$=te=>{h?h=!1:(y.value=!0,n("focus",te),r.triggerOnFocus&&!p&&N(String(r.modelValue)))},j=te=>{setTimeout(()=>{var me;if((me=c.value)!=null&&me.isFocusInsideContent()){h=!0;return}y.value&&re(),n("blur",te)})},W=()=>{y.value=!1,n(_t,""),n("clear")},H=async()=>{S.value&&m.value>=0&&m.value<v.value.length?be(v.value[m.value]):r.selectWhenUnmatched&&(n("select",{value:r.modelValue}),v.value=[],m.value=-1)},X=te=>{S.value&&(te.preventDefault(),te.stopPropagation(),re())},re=()=>{y.value=!1},le=()=>{var te;(te=l.value)==null||te.focus()},ne=()=>{var te;(te=l.value)==null||te.blur()},be=async te=>{n(hr,te[r.valueKey]),n(_t,te[r.valueKey]),n("select",te),v.value=[],m.value=-1},_e=te=>{if(!S.value||b.value)return;if(te<0){m.value=-1;return}te>=v.value.length&&(te=v.value.length-1);const me=u.value.querySelector(`.${s.be("suggestion","wrap")}`),Fe=me.querySelectorAll(`.${s.be("suggestion","list")} li`)[te],Pe=me.scrollTop,{offsetTop:ye,scrollHeight:Z}=Fe;ye+Z>Pe+me.clientHeight&&(me.scrollTop+=Z),ye<Pe&&(me.scrollTop-=Z),m.value=te,l.value.ref.setAttribute("aria-activedescendant",`${_.value}-item-${m.value}`)},ve=r1(d,()=>{var te;(te=c.value)!=null&&te.isFocusInsideContent()||S.value&&re()});return fn(()=>{ve==null||ve()}),ht(()=>{l.value.ref.setAttribute("role","textbox"),l.value.ref.setAttribute("aria-autocomplete","list"),l.value.ref.setAttribute("aria-controls","id"),l.value.ref.setAttribute("aria-activedescendant",`${_.value}-item-${m.value}`),p=l.value.ref.hasAttribute("readonly")}),t({highlightedIndex:m,activated:y,loading:b,inputRef:l,popperRef:c,suggestions:v,handleSelect:be,handleKeyEnter:H,focus:le,blur:ne,close:re,highlight:_e,getData:V}),(te,me)=>(x(),he(f(ar),{ref_key:"popperRef",ref:c,visible:f(S),placement:te.placement,"fallback-placements":["bottom-start","top-start"],"popper-class":[f(s).e("popper"),te.popperClass],teleported:te.teleported,"gpu-acceleration":!1,pure:"","manual-mode":"",effect:"light",trigger:"click",transition:`${f(s).namespace.value}-zoom-in-top`,persistent:"",role:"listbox",onBeforeShow:D,onHide:O},{content:P(()=>[M("div",{ref_key:"regionRef",ref:u,class:F([f(s).b("suggestion"),f(s).is("loading",f(A))]),style:tt({[te.fitInputWidth?"width":"minWidth"]:g.value,outline:"none"}),role:"region"},[E(f(fo),{id:f(_),tag:"ul","wrap-class":f(s).be("suggestion","wrap"),"view-class":f(s).be("suggestion","list"),role:"listbox"},{default:P(()=>[f(A)?(x(),U("li",{key:0},[fe(te.$slots,"loading",{},()=>[E(f(et),{class:F(f(s).is("loading"))},{default:P(()=>[E(f(ao))]),_:1},8,["class"])])])):(x(!0),U(Ge,{key:1},mt(v.value,(pe,Fe)=>(x(),U("li",{id:`${f(_)}-item-${Fe}`,key:Fe,class:F({highlighted:m.value===Fe}),role:"option","aria-selected":m.value===Fe,onClick:Pe=>be(pe)},[fe(te.$slots,"default",{item:pe},()=>[we(de(pe[te.valueKey]),1)])],10,["id","aria-selected","onClick"]))),128))]),_:3},8,["id","wrap-class","view-class"])],6)]),default:P(()=>[M("div",{ref_key:"listboxRef",ref:d,class:F([f(s).b(),te.$attrs.class]),style:tt(f(w)),role:"combobox","aria-haspopup":"listbox","aria-expanded":f(S),"aria-owns":f(_)},[E(f(Wn),Ft({ref_key:"inputRef",ref:l},f(a),{clearable:te.clearable,disabled:f(o),name:te.name,"model-value":te.modelValue,"aria-label":te.ariaLabel,onInput:K,onChange:q,onFocus:$,onBlur:j,onClear:W,onKeydown:[sn(ft(pe=>_e(m.value-1),["prevent"]),["up"]),sn(ft(pe=>_e(m.value+1),["prevent"]),["down"]),sn(H,["enter"]),sn(re,["tab"]),sn(X,["esc"])],onMousedown:Y}),Ua({_:2},[te.$slots.prepend?{name:"prepend",fn:P(()=>[fe(te.$slots,"prepend")])}:void 0,te.$slots.append?{name:"append",fn:P(()=>[fe(te.$slots,"append")])}:void 0,te.$slots.prefix?{name:"prefix",fn:P(()=>[fe(te.$slots,"prefix")])}:void 0,te.$slots.suffix?{name:"suffix",fn:P(()=>[fe(te.$slots,"suffix")])}:void 0]),1040,["clearable","disabled","name","model-value","aria-label","onKeydown"])],14,["aria-expanded","aria-owns"])]),_:3},8,["visible","placement","popper-class","teleported","transition"]))}});var Tq=He(_q,[["__file","autocomplete.vue"]]);const wq=Et(Tq),Sq=Ue({size:{type:[Number,String],values:uo,default:"",validator:e=>st(e)},shape:{type:String,values:["circle","square"],default:"circle"},icon:{type:dn},src:{type:String,default:""},alt:String,srcSet:String,fit:{type:ue(String),default:"cover"}}),Cq={error:e=>e instanceof Event},Eq=J({name:"ElAvatar"}),xq=J({...Eq,props:Sq,emits:Cq,setup(e,{emit:t}){const n=e,r=Le("avatar"),a=z(!1),i=k(()=>{const{size:u,icon:c,shape:d}=n,p=[r.b()];return rt(u)&&p.push(r.m(u)),c&&p.push(r.m("icon")),d&&p.push(r.m(d)),p}),o=k(()=>{const{size:u}=n;return st(u)?r.cssVarBlock({size:Ln(u)||""}):void 0}),s=k(()=>({objectFit:n.fit}));Ie(()=>n.src,()=>a.value=!1);function l(u){a.value=!0,t("error",u)}return(u,c)=>(x(),U("span",{class:F(f(i)),style:tt(f(o))},[(u.src||u.srcSet)&&!a.value?(x(),U("img",{key:0,src:u.src,alt:u.alt,srcset:u.srcSet,style:tt(f(s)),onError:l},null,44,["src","alt","srcset"])):u.icon?(x(),he(f(et),{key:1},{default:P(()=>[(x(),he(Lt(u.icon)))]),_:1})):fe(u.$slots,"default",{key:2})],6))}});var kq=He(xq,[["__file","avatar.vue"]]);const O1=Et(kq),Aq={visibilityHeight:{type:Number,default:200},target:{type:String,default:""},right:{type:Number,default:40},bottom:{type:Number,default:40}},Dq={click:e=>e instanceof MouseEvent},Iq=(e,t,n)=>{const r=cn(),a=cn(),i=z(!1),o=()=>{r.value&&(i.value=r.value.scrollTop>=e.visibilityHeight)},s=u=>{var c;(c=r.value)==null||c.scrollTo({top:0,behavior:"smooth"}),t("click",u)},l=wI(o,300,!0);return ln(a,"scroll",l),ht(()=>{var u;a.value=document,r.value=document.documentElement,e.target&&(r.value=(u=document.querySelector(e.target))!=null?u:void 0,r.value||rr(n,`target does not exist: ${e.target}`),a.value=r.value),o()}),{visible:i,handleClick:s}},_P="ElBacktop",Pq=J({name:_P}),Oq=J({...Pq,props:Aq,emits:Dq,setup(e,{emit:t}){const n=e,r=Le("backtop"),{handleClick:a,visible:i}=Iq(n,t,_P),o=k(()=>({right:`${n.right}px`,bottom:`${n.bottom}px`}));return(s,l)=>(x(),he(lr,{name:`${f(r).namespace.value}-fade-in`},{default:P(()=>[f(i)?(x(),U("div",{key:0,style:tt(f(o)),class:F(f(r).b()),onClick:ft(f(a),["stop"])},[fe(s.$slots,"default",{},()=>[E(f(et),{class:F(f(r).e("icon"))},{default:P(()=>[E(f(X7))]),_:1},8,["class"])])],14,["onClick"])):oe("v-if",!0)]),_:3},8,["name"]))}});var Mq=He(Oq,[["__file","backtop.vue"]]);const Rq=Et(Mq),Lq=Ue({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"},showZero:{type:Boolean,default:!0},color:String,badgeStyle:{type:ue([String,Object,Array])},offset:{type:ue(Array),default:[0,0]},badgeClass:{type:String}}),Nq=J({name:"ElBadge"}),Fq=J({...Nq,props:Lq,setup(e,{expose:t}){const n=e,r=Le("badge"),a=k(()=>n.isDot?"":st(n.value)&&st(n.max)?n.max<n.value?`${n.max}+`:`${n.value}`:`${n.value}`),i=k(()=>{var o,s,l,u,c;return[{backgroundColor:n.color,marginRight:Ln(-((s=(o=n.offset)==null?void 0:o[0])!=null?s:0)),marginTop:Ln((u=(l=n.offset)==null?void 0:l[1])!=null?u:0)},(c=n.badgeStyle)!=null?c:{}]});return t({content:a}),(o,s)=>(x(),U("div",{class:F(f(r).b())},[fe(o.$slots,"default"),E(lr,{name:`${f(r).namespace.value}-zoom-in-center`,persisted:""},{default:P(()=>[gt(M("sup",{class:F([f(r).e("content"),f(r).em("content",o.type),f(r).is("fixed",!!o.$slots.default),f(r).is("dot",o.isDot),f(r).is("hide-zero",!o.showZero&&n.value===0),o.badgeClass]),style:tt(f(i))},[fe(o.$slots,"content",{value:f(a)},()=>[we(de(f(a)),1)])],6),[[zt,!o.hidden&&(f(a)||o.isDot||o.$slots.content)]])]),_:3},8,["name"])],2))}});var $q=He(Fq,[["__file","badge.vue"]]);const TP=Et($q),wP=Symbol("breadcrumbKey"),Bq=Ue({separator:{type:String,default:"/"},separatorIcon:{type:dn}}),Vq=J({name:"ElBreadcrumb"}),Uq=J({...Vq,props:Bq,setup(e){const t=e,{t:n}=Kt(),r=Le("breadcrumb"),a=z();return Vt(wP,t),ht(()=>{const i=a.value.querySelectorAll(`.${r.e("item")}`);i.length&&i[i.length-1].setAttribute("aria-current","page")}),(i,o)=>(x(),U("div",{ref_key:"breadcrumb",ref:a,class:F(f(r).b()),"aria-label":f(n)("el.breadcrumb.label"),role:"navigation"},[fe(i.$slots,"default")],10,["aria-label"]))}});var Hq=He(Uq,[["__file","breadcrumb.vue"]]);const zq=Ue({to:{type:ue([String,Object]),default:""},replace:Boolean}),jq=J({name:"ElBreadcrumbItem"}),Wq=J({...jq,props:zq,setup(e){const t=e,n=Mt(),r=Qe(wP,void 0),a=Le("breadcrumb"),i=n.appContext.config.globalProperties.$router,o=z(),s=()=>{!t.to||!i||(t.replace?i.replace(t.to):i.push(t.to))};return(l,u)=>{var c,d;return x(),U("span",{class:F(f(a).e("item"))},[M("span",{ref_key:"link",ref:o,class:F([f(a).e("inner"),f(a).is("link",!!l.to)]),role:"link",onClick:s},[fe(l.$slots,"default")],2),(c=f(r))!=null&&c.separatorIcon?(x(),he(f(et),{key:0,class:F(f(a).e("separator"))},{default:P(()=>[(x(),he(Lt(f(r).separatorIcon)))]),_:1},8,["class"])):(x(),U("span",{key:1,class:F(f(a).e("separator")),role:"presentation"},de((d=f(r))==null?void 0:d.separator),3))],2)}}});var SP=He(Wq,[["__file","breadcrumb-item.vue"]]);const Kq=Et(Hq,{BreadcrumbItem:SP}),qq=On(SP),CP=Symbol("buttonGroupContextKey"),xs=({from:e,replacement:t,scope:n,version:r,ref:a,type:i="API"},o)=>{Ie(()=>f(o),s=>{},{immediate:!0})},Gq=(e,t)=>{xs({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},k(()=>e.type==="text"));const n=Qe(CP,void 0),r=Rv("button"),{form:a}=Or(),i=Kn(k(()=>n==null?void 0:n.size)),o=Mr(),s=z(),l=ir(),u=k(()=>e.type||(n==null?void 0:n.type)||""),c=k(()=>{var v,m,g;return(g=(m=e.autoInsertSpace)!=null?m:(v=r.value)==null?void 0:v.autoInsertSpace)!=null?g:!1}),d=k(()=>e.tag==="button"?{ariaDisabled:o.value||e.loading,disabled:o.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),p=k(()=>{var v;const m=(v=l.default)==null?void 0:v.call(l);if(c.value&&(m==null?void 0:m.length)===1){const g=m[0];if((g==null?void 0:g.type)===kc){const y=g.children;return/^\p{Unified_Ideograph}{2}$/u.test(y.trim())}}return!1});return{_disabled:o,_size:i,_type:u,_ref:s,_props:d,shouldAddSpace:p,handleClick:v=>{if(o.value||e.loading){v.stopPropagation();return}e.nativeType==="reset"&&(a==null||a.resetFields()),t("click",v)}}},Py=["default","primary","success","warning","info","danger","text",""],Yq=["button","submit","reset"],Oy=Ue({size:Xn,disabled:Boolean,type:{type:String,values:Py,default:""},icon:{type:dn},nativeType:{type:String,values:Yq,default:"button"},loading:Boolean,loadingIcon:{type:dn,default:()=>ao},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:ue([String,Object]),default:"button"}}),Xq={click:e=>e instanceof MouseEvent};function Pr(e,t){Qq(e)&&(e="100%");var n=Jq(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function ih(e){return Math.min(1,Math.max(0,e))}function Qq(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function Jq(e){return typeof e=="string"&&e.indexOf("%")!==-1}function EP(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function oh(e){return e<=1?"".concat(Number(e)*100,"%"):e}function hl(e){return e.length===1?"0"+e:String(e)}function Zq(e,t,n){return{r:Pr(e,255)*255,g:Pr(t,255)*255,b:Pr(n,255)*255}}function NC(e,t,n){e=Pr(e,255),t=Pr(t,255),n=Pr(n,255);var r=Math.max(e,t,n),a=Math.min(e,t,n),i=0,o=0,s=(r+a)/2;if(r===a)o=0,i=0;else{var l=r-a;switch(o=s>.5?l/(2-r-a):l/(r+a),r){case e:i=(t-n)/l+(t<n?6:0);break;case t:i=(n-e)/l+2;break;case n:i=(e-t)/l+4;break}i/=6}return{h:i,s:o,l:s}}function s0(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function eG(e,t,n){var r,a,i;if(e=Pr(e,360),t=Pr(t,100),n=Pr(n,100),t===0)a=n,i=n,r=n;else{var o=n<.5?n*(1+t):n+t-n*t,s=2*n-o;r=s0(s,o,e+1/3),a=s0(s,o,e),i=s0(s,o,e-1/3)}return{r:r*255,g:a*255,b:i*255}}function FC(e,t,n){e=Pr(e,255),t=Pr(t,255),n=Pr(n,255);var r=Math.max(e,t,n),a=Math.min(e,t,n),i=0,o=r,s=r-a,l=r===0?0:s/r;if(r===a)i=0;else{switch(r){case e:i=(t-n)/s+(t<n?6:0);break;case t:i=(n-e)/s+2;break;case n:i=(e-t)/s+4;break}i/=6}return{h:i,s:l,v:o}}function tG(e,t,n){e=Pr(e,360)*6,t=Pr(t,100),n=Pr(n,100);var r=Math.floor(e),a=e-r,i=n*(1-t),o=n*(1-a*t),s=n*(1-(1-a)*t),l=r%6,u=[n,o,i,i,s,n][l],c=[s,n,n,o,i,i][l],d=[i,i,s,n,n,o][l];return{r:u*255,g:c*255,b:d*255}}function $C(e,t,n,r){var a=[hl(Math.round(e).toString(16)),hl(Math.round(t).toString(16)),hl(Math.round(n).toString(16))];return r&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function nG(e,t,n,r,a){var i=[hl(Math.round(e).toString(16)),hl(Math.round(t).toString(16)),hl(Math.round(n).toString(16)),hl(rG(r))];return a&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function rG(e){return Math.round(parseFloat(e)*255).toString(16)}function BC(e){return Pa(e)/255}function Pa(e){return parseInt(e,16)}function aG(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var My={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function iG(e){var t={r:0,g:0,b:0},n=1,r=null,a=null,i=null,o=!1,s=!1;return typeof e=="string"&&(e=lG(e)),typeof e=="object"&&(So(e.r)&&So(e.g)&&So(e.b)?(t=Zq(e.r,e.g,e.b),o=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):So(e.h)&&So(e.s)&&So(e.v)?(r=oh(e.s),a=oh(e.v),t=tG(e.h,r,a),o=!0,s="hsv"):So(e.h)&&So(e.s)&&So(e.l)&&(r=oh(e.s),i=oh(e.l),t=eG(e.h,r,i),o=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=EP(n),{ok:o,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var oG="[-\\+]?\\d+%?",sG="[-\\+]?\\d*\\.\\d+%?",Ss="(?:".concat(sG,")|(?:").concat(oG,")"),l0="[\\s|\\(]+(".concat(Ss,")[,|\\s]+(").concat(Ss,")[,|\\s]+(").concat(Ss,")\\s*\\)?"),u0="[\\s|\\(]+(".concat(Ss,")[,|\\s]+(").concat(Ss,")[,|\\s]+(").concat(Ss,")[,|\\s]+(").concat(Ss,")\\s*\\)?"),ui={CSS_UNIT:new RegExp(Ss),rgb:new RegExp("rgb"+l0),rgba:new RegExp("rgba"+u0),hsl:new RegExp("hsl"+l0),hsla:new RegExp("hsla"+u0),hsv:new RegExp("hsv"+l0),hsva:new RegExp("hsva"+u0),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function lG(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(My[e])e=My[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=ui.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=ui.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=ui.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=ui.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=ui.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=ui.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=ui.hex8.exec(e),n?{r:Pa(n[1]),g:Pa(n[2]),b:Pa(n[3]),a:BC(n[4]),format:t?"name":"hex8"}:(n=ui.hex6.exec(e),n?{r:Pa(n[1]),g:Pa(n[2]),b:Pa(n[3]),format:t?"name":"hex"}:(n=ui.hex4.exec(e),n?{r:Pa(n[1]+n[1]),g:Pa(n[2]+n[2]),b:Pa(n[3]+n[3]),a:BC(n[4]+n[4]),format:t?"name":"hex8"}:(n=ui.hex3.exec(e),n?{r:Pa(n[1]+n[1]),g:Pa(n[2]+n[2]),b:Pa(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function So(e){return!!ui.CSS_UNIT.exec(String(e))}var xP=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=aG(t)),this.originalInput=t;var a=iG(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:a.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=a.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,a,i=t.r/255,o=t.g/255,s=t.b/255;return i<=.03928?n=i/12.92:n=Math.pow((i+.055)/1.055,2.4),o<=.03928?r=o/12.92:r=Math.pow((o+.055)/1.055,2.4),s<=.03928?a=s/12.92:a=Math.pow((s+.055)/1.055,2.4),.2126*n+.7152*r+.0722*a},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=EP(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=FC(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=FC(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),a=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(a,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=NC(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=NC(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),a=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(a,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),$C(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),nG(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(Pr(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(Pr(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+$C(this.r,this.g,this.b,!1),n=0,r=Object.entries(My);n<r.length;n++){var a=r[n],i=a[0],o=a[1];if(t===o)return i}return!1},e.prototype.toString=function(t){var n=!!t;t=t??this.format;var r=!1,a=this.a<1&&this.a>=0,i=!n&&a&&(t.startsWith("hex")||t==="name");return i?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=ih(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=ih(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=ih(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=ih(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),a=new e(t).toRgb(),i=n/100,o={r:(a.r-r.r)*i+r.r,g:(a.g-r.g)*i+r.g,b:(a.b-r.b)*i+r.b,a:(a.a-r.a)*i+r.a};return new e(o)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),a=360/n,i=[this];for(r.h=(r.h-(a*t>>1)+720)%360;--t;)r.h=(r.h+a)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,a=n.s,i=n.v,o=[],s=1/t;t--;)o.push(new e({h:r,s:a,v:i})),i=(i+s)%1;return o},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),a=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/a,g:(n.g*n.a+r.g*r.a*(1-n.a))/a,b:(n.b*n.a+r.b*r.a*(1-n.a))/a,a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,a=[this],i=360/t,o=1;o<t;o++)a.push(new e({h:(r+o*i)%360,s:n.s,l:n.l}));return a},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function ps(e,t=20){return e.mix("#141414",t).toString()}function uG(e){const t=Mr(),n=Le("button");return k(()=>{let r={},a=e.color;if(a){const i=a.match(/var\((.*?)\)/);i&&(a=window.getComputedStyle(window.document.documentElement).getPropertyValue(i[1]));const o=new xP(a),s=e.dark?o.tint(20).toString():ps(o,20);if(e.plain)r=n.cssVarBlock({"bg-color":e.dark?ps(o,90):o.tint(90).toString(),"text-color":a,"border-color":e.dark?ps(o,50):o.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":a,"hover-border-color":a,"active-bg-color":s,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":s}),t.value&&(r[n.cssVarBlockName("disabled-bg-color")]=e.dark?ps(o,90):o.tint(90).toString(),r[n.cssVarBlockName("disabled-text-color")]=e.dark?ps(o,50):o.tint(50).toString(),r[n.cssVarBlockName("disabled-border-color")]=e.dark?ps(o,80):o.tint(80).toString());else{const l=e.dark?ps(o,30):o.tint(30).toString(),u=o.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(r=n.cssVarBlock({"bg-color":a,"text-color":u,"border-color":a,"hover-bg-color":l,"hover-text-color":u,"hover-border-color":l,"active-bg-color":s,"active-border-color":s}),t.value){const c=e.dark?ps(o,50):o.tint(50).toString();r[n.cssVarBlockName("disabled-bg-color")]=c,r[n.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,r[n.cssVarBlockName("disabled-border-color")]=c}}}return r})}const cG=J({name:"ElButton"}),dG=J({...cG,props:Oy,emits:Xq,setup(e,{expose:t,emit:n}){const r=e,a=uG(r),i=Le("button"),{_ref:o,_size:s,_type:l,_disabled:u,_props:c,shouldAddSpace:d,handleClick:p}=Gq(r,n),h=k(()=>[i.b(),i.m(l.value),i.m(s.value),i.is("disabled",u.value),i.is("loading",r.loading),i.is("plain",r.plain),i.is("round",r.round),i.is("circle",r.circle),i.is("text",r.text),i.is("link",r.link),i.is("has-bg",r.bg)]);return t({ref:o,size:s,type:l,disabled:u,shouldAddSpace:d}),(v,m)=>(x(),he(Lt(v.tag),Ft({ref_key:"_ref",ref:o},f(c),{class:f(h),style:f(a),onClick:f(p)}),{default:P(()=>[v.loading?(x(),U(Ge,{key:0},[v.$slots.loading?fe(v.$slots,"loading",{key:0}):(x(),he(f(et),{key:1,class:F(f(i).is("loading"))},{default:P(()=>[(x(),he(Lt(v.loadingIcon)))]),_:1},8,["class"]))],64)):v.icon||v.$slots.icon?(x(),he(f(et),{key:1},{default:P(()=>[v.icon?(x(),he(Lt(v.icon),{key:0})):fe(v.$slots,"icon",{key:1})]),_:3})):oe("v-if",!0),v.$slots.default?(x(),U("span",{key:2,class:F({[f(i).em("text","expand")]:f(d)})},[fe(v.$slots,"default")],2)):oe("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var fG=He(dG,[["__file","button.vue"]]);const pG={size:Oy.size,type:Oy.type},hG=J({name:"ElButtonGroup"}),mG=J({...hG,props:pG,setup(e){const t=e;Vt(CP,Ct({size:rn(t,"size"),type:rn(t,"type")}));const n=Le("button");return(r,a)=>(x(),U("div",{class:F(f(n).b("group"))},[fe(r.$slots,"default")],2))}});var kP=He(mG,[["__file","button-group.vue"]]);const _n=Et(fG,{ButtonGroup:kP}),AP=On(kP);var Sa=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function xr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function DP(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,a.get?a:{enumerable:!0,get:function(){return e[r]}})}),n}var IP={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Sa,function(){var n=1e3,r=6e4,a=36e5,i="millisecond",o="second",s="minute",l="hour",u="day",c="week",d="month",p="quarter",h="year",v="date",m="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,T={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(Y){var q=["th","st","nd","rd"],$=Y%100;return"["+Y+(q[($-20)%10]||q[$]||q[0])+"]"}},b=function(Y,q,$){var j=String(Y);return!j||j.length>=q?Y:""+Array(q+1-j.length).join($)+Y},_={s:b,z:function(Y){var q=-Y.utcOffset(),$=Math.abs(q),j=Math.floor($/60),W=$%60;return(q<=0?"+":"-")+b(j,2,"0")+":"+b(W,2,"0")},m:function Y(q,$){if(q.date()<$.date())return-Y($,q);var j=12*($.year()-q.year())+($.month()-q.month()),W=q.clone().add(j,d),H=$-W<0,X=q.clone().add(j+(H?-1:1),d);return+(-(j+($-W)/(H?W-X:X-W))||0)},a:function(Y){return Y<0?Math.ceil(Y)||0:Math.floor(Y)},p:function(Y){return{M:d,y:h,w:c,d:u,D:v,h:l,m:s,s:o,ms:i,Q:p}[Y]||String(Y||"").toLowerCase().replace(/s$/,"")},u:function(Y){return Y===void 0}},w="en",S={};S[w]=T;var A="$isDayjsObject",I=function(Y){return Y instanceof N||!(!Y||!Y[A])},D=function Y(q,$,j){var W;if(!q)return w;if(typeof q=="string"){var H=q.toLowerCase();S[H]&&(W=H),$&&(S[H]=$,W=H);var X=q.split("-");if(!W&&X.length>1)return Y(X[0])}else{var re=q.name;S[re]=q,W=re}return!j&&W&&(w=W),W||!j&&w},O=function(Y,q){if(I(Y))return Y.clone();var $=typeof q=="object"?q:{};return $.date=Y,$.args=arguments,new N($)},V=_;V.l=D,V.i=I,V.w=function(Y,q){return O(Y,{locale:q.$L,utc:q.$u,x:q.$x,$offset:q.$offset})};var N=function(){function Y($){this.$L=D($.locale,null,!0),this.parse($),this.$x=this.$x||$.x||{},this[A]=!0}var q=Y.prototype;return q.parse=function($){this.$d=function(j){var W=j.date,H=j.utc;if(W===null)return new Date(NaN);if(V.u(W))return new Date;if(W instanceof Date)return new Date(W);if(typeof W=="string"&&!/Z$/i.test(W)){var X=W.match(g);if(X){var re=X[2]-1||0,le=(X[7]||"0").substring(0,3);return H?new Date(Date.UTC(X[1],re,X[3]||1,X[4]||0,X[5]||0,X[6]||0,le)):new Date(X[1],re,X[3]||1,X[4]||0,X[5]||0,X[6]||0,le)}}return new Date(W)}($),this.init()},q.init=function(){var $=this.$d;this.$y=$.getFullYear(),this.$M=$.getMonth(),this.$D=$.getDate(),this.$W=$.getDay(),this.$H=$.getHours(),this.$m=$.getMinutes(),this.$s=$.getSeconds(),this.$ms=$.getMilliseconds()},q.$utils=function(){return V},q.isValid=function(){return this.$d.toString()!==m},q.isSame=function($,j){var W=O($);return this.startOf(j)<=W&&W<=this.endOf(j)},q.isAfter=function($,j){return O($)<this.startOf(j)},q.isBefore=function($,j){return this.endOf(j)<O($)},q.$g=function($,j,W){return V.u($)?this[j]:this.set(W,$)},q.unix=function(){return Math.floor(this.valueOf()/1e3)},q.valueOf=function(){return this.$d.getTime()},q.startOf=function($,j){var W=this,H=!!V.u(j)||j,X=V.p($),re=function(pe,Fe){var Pe=V.w(W.$u?Date.UTC(W.$y,Fe,pe):new Date(W.$y,Fe,pe),W);return H?Pe:Pe.endOf(u)},le=function(pe,Fe){return V.w(W.toDate()[pe].apply(W.toDate("s"),(H?[0,0,0,0]:[23,59,59,999]).slice(Fe)),W)},ne=this.$W,be=this.$M,_e=this.$D,ve="set"+(this.$u?"UTC":"");switch(X){case h:return H?re(1,0):re(31,11);case d:return H?re(1,be):re(0,be+1);case c:var te=this.$locale().weekStart||0,me=(ne<te?ne+7:ne)-te;return re(H?_e-me:_e+(6-me),be);case u:case v:return le(ve+"Hours",0);case l:return le(ve+"Minutes",1);case s:return le(ve+"Seconds",2);case o:return le(ve+"Milliseconds",3);default:return this.clone()}},q.endOf=function($){return this.startOf($,!1)},q.$set=function($,j){var W,H=V.p($),X="set"+(this.$u?"UTC":""),re=(W={},W[u]=X+"Date",W[v]=X+"Date",W[d]=X+"Month",W[h]=X+"FullYear",W[l]=X+"Hours",W[s]=X+"Minutes",W[o]=X+"Seconds",W[i]=X+"Milliseconds",W)[H],le=H===u?this.$D+(j-this.$W):j;if(H===d||H===h){var ne=this.clone().set(v,1);ne.$d[re](le),ne.init(),this.$d=ne.set(v,Math.min(this.$D,ne.daysInMonth())).$d}else re&&this.$d[re](le);return this.init(),this},q.set=function($,j){return this.clone().$set($,j)},q.get=function($){return this[V.p($)]()},q.add=function($,j){var W,H=this;$=Number($);var X=V.p(j),re=function(be){var _e=O(H);return V.w(_e.date(_e.date()+Math.round(be*$)),H)};if(X===d)return this.set(d,this.$M+$);if(X===h)return this.set(h,this.$y+$);if(X===u)return re(1);if(X===c)return re(7);var le=(W={},W[s]=r,W[l]=a,W[o]=n,W)[X]||1,ne=this.$d.getTime()+$*le;return V.w(ne,this)},q.subtract=function($,j){return this.add(-1*$,j)},q.format=function($){var j=this,W=this.$locale();if(!this.isValid())return W.invalidDate||m;var H=$||"YYYY-MM-DDTHH:mm:ssZ",X=V.z(this),re=this.$H,le=this.$m,ne=this.$M,be=W.weekdays,_e=W.months,ve=W.meridiem,te=function(Fe,Pe,ye,Z){return Fe&&(Fe[Pe]||Fe(j,H))||ye[Pe].slice(0,Z)},me=function(Fe){return V.s(re%12||12,Fe,"0")},pe=ve||function(Fe,Pe,ye){var Z=Fe<12?"AM":"PM";return ye?Z.toLowerCase():Z};return H.replace(y,function(Fe,Pe){return Pe||function(ye){switch(ye){case"YY":return String(j.$y).slice(-2);case"YYYY":return V.s(j.$y,4,"0");case"M":return ne+1;case"MM":return V.s(ne+1,2,"0");case"MMM":return te(W.monthsShort,ne,_e,3);case"MMMM":return te(_e,ne);case"D":return j.$D;case"DD":return V.s(j.$D,2,"0");case"d":return String(j.$W);case"dd":return te(W.weekdaysMin,j.$W,be,2);case"ddd":return te(W.weekdaysShort,j.$W,be,3);case"dddd":return be[j.$W];case"H":return String(re);case"HH":return V.s(re,2,"0");case"h":return me(1);case"hh":return me(2);case"a":return pe(re,le,!0);case"A":return pe(re,le,!1);case"m":return String(le);case"mm":return V.s(le,2,"0");case"s":return String(j.$s);case"ss":return V.s(j.$s,2,"0");case"SSS":return V.s(j.$ms,3,"0");case"Z":return X}return null}(Fe)||X.replace(":","")})},q.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},q.diff=function($,j,W){var H,X=this,re=V.p(j),le=O($),ne=(le.utcOffset()-this.utcOffset())*r,be=this-le,_e=function(){return V.m(X,le)};switch(re){case h:H=_e()/12;break;case d:H=_e();break;case p:H=_e()/3;break;case c:H=(be-ne)/6048e5;break;case u:H=(be-ne)/864e5;break;case l:H=be/a;break;case s:H=be/r;break;case o:H=be/n;break;default:H=be}return W?H:V.a(H)},q.daysInMonth=function(){return this.endOf(d).$D},q.$locale=function(){return S[this.$L]},q.locale=function($,j){if(!$)return this.$L;var W=this.clone(),H=D($,j,!0);return H&&(W.$L=H),W},q.clone=function(){return V.w(this.$d,this)},q.toDate=function(){return new Date(this.valueOf())},q.toJSON=function(){return this.isValid()?this.toISOString():null},q.toISOString=function(){return this.$d.toISOString()},q.toString=function(){return this.$d.toUTCString()},Y}(),K=N.prototype;return O.prototype=K,[["$ms",i],["$s",o],["$m",s],["$H",l],["$W",u],["$M",d],["$y",h],["$D",v]].forEach(function(Y){K[Y[1]]=function(q){return this.$g(q,Y[0],Y[1])}}),O.extend=function(Y,q){return Y.$i||(Y(q,N,O),Y.$i=!0),O},O.locale=D,O.isDayjs=I,O.unix=function(Y){return O(1e3*Y)},O.en=S[w],O.Ls=S,O.p={},O})})(IP);var vG=IP.exports;const xt=xr(vG),c0=(e,t)=>[e>0?e-1:void 0,e,e<t?e+1:void 0],ks=e=>Array.from(Array.from({length:e}).keys()),PP=e=>e.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim(),OP=e=>e.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?Y{2,4}/g,"").trim(),VC=function(e,t){const n=As(e),r=As(t);return n&&r?e.getTime()===t.getTime():!n&&!r?e===t:!1},UC=function(e,t){const n=Be(e),r=Be(t);return n&&r?e.length!==t.length?!1:e.every((a,i)=>VC(a,t[i])):!n&&!r?VC(e,t):!1},HC=function(e,t,n){const r=Oa(t)||t==="x"?xt(e).locale(n):xt(e,t).locale(n);return r.isValid()?r:void 0},zC=function(e,t,n){return Oa(t)?e:t==="x"?+e:xt(e).locale(n).format(t)},d0=(e,t)=>{var n;const r=[],a=t==null?void 0:t();for(let i=0;i<e;i++)r.push((n=a==null?void 0:a.includes(i))!=null?n:!1);return r},sh=e=>Be(e)?e.map(t=>t.toDate()):e.toDate(),gG=(e,t)=>{const n=e.subtract(1,"month").endOf("month").date();return ks(t).map((r,a)=>n-(t-a-1))},yG=e=>{const t=e.daysInMonth();return ks(t).map((n,r)=>r+1)},bG=e=>ks(e.length/7).map(t=>{const n=t*7;return e.slice(n,n+7)}),_G=Ue({selectedDay:{type:ue(Object)},range:{type:ue(Array)},date:{type:ue(Object),required:!0},hideHeader:{type:Boolean}}),TG={pick:e=>It(e)};var MP={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Sa,function(){return function(n,r,a){var i=r.prototype,o=function(d){return d&&(d.indexOf?d:d.s)},s=function(d,p,h,v,m){var g=d.name?d:d.$locale(),y=o(g[p]),T=o(g[h]),b=y||T.map(function(w){return w.slice(0,v)});if(!m)return b;var _=g.weekStart;return b.map(function(w,S){return b[(S+(_||0))%7]})},l=function(){return a.Ls[a.locale()]},u=function(d,p){return d.formats[p]||function(h){return h.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(v,m,g){return m||g.slice(1)})}(d.formats[p.toUpperCase()])},c=function(){var d=this;return{months:function(p){return p?p.format("MMMM"):s(d,"months")},monthsShort:function(p){return p?p.format("MMM"):s(d,"monthsShort","months",3)},firstDayOfWeek:function(){return d.$locale().weekStart||0},weekdays:function(p){return p?p.format("dddd"):s(d,"weekdays")},weekdaysMin:function(p){return p?p.format("dd"):s(d,"weekdaysMin","weekdays",2)},weekdaysShort:function(p){return p?p.format("ddd"):s(d,"weekdaysShort","weekdays",3)},longDateFormat:function(p){return u(d.$locale(),p)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};i.localeData=function(){return c.bind(this)()},a.localeData=function(){var d=l();return{firstDayOfWeek:function(){return d.weekStart||0},weekdays:function(){return a.weekdays()},weekdaysShort:function(){return a.weekdaysShort()},weekdaysMin:function(){return a.weekdaysMin()},months:function(){return a.months()},monthsShort:function(){return a.monthsShort()},longDateFormat:function(p){return u(d,p)},meridiem:d.meridiem,ordinal:d.ordinal}},a.months=function(){return s(l(),"months")},a.monthsShort=function(){return s(l(),"monthsShort","months",3)},a.weekdays=function(d){return s(l(),"weekdays",null,null,d)},a.weekdaysShort=function(d){return s(l(),"weekdaysShort","weekdays",3,d)},a.weekdaysMin=function(d){return s(l(),"weekdaysMin","weekdays",2,d)}}})})(MP);var wG=MP.exports;const RP=xr(wG),SG=["year","years","month","months","date","dates","week","datetime","datetimerange","daterange","monthrange","yearrange"],f0=["sun","mon","tue","wed","thu","fri","sat"],CG=(e,t)=>{xt.extend(RP);const n=xt.localeData().firstDayOfWeek(),{t:r,lang:a}=Kt(),i=xt().locale(a.value),o=k(()=>!!e.range&&!!e.range.length),s=k(()=>{let p=[];if(o.value){const[h,v]=e.range,m=ks(v.date()-h.date()+1).map(T=>({text:h.date()+T,type:"current"}));let g=m.length%7;g=g===0?0:7-g;const y=ks(g).map((T,b)=>({text:b+1,type:"next"}));p=m.concat(y)}else{const h=e.date.startOf("month").day(),v=gG(e.date,(h-n+7)%7).map(T=>({text:T,type:"prev"})),m=yG(e.date).map(T=>({text:T,type:"current"}));p=[...v,...m];const g=7-(p.length%7||7),y=ks(g).map((T,b)=>({text:b+1,type:"next"}));p=p.concat(y)}return bG(p)}),l=k(()=>{const p=n;return p===0?f0.map(h=>r(`el.datepicker.weeks.${h}`)):f0.slice(p).concat(f0.slice(0,p)).map(h=>r(`el.datepicker.weeks.${h}`))}),u=(p,h)=>{switch(h){case"prev":return e.date.startOf("month").subtract(1,"month").date(p);case"next":return e.date.startOf("month").add(1,"month").date(p);case"current":return e.date.date(p)}};return{now:i,isInRange:o,rows:s,weekDays:l,getFormattedDate:u,handlePickDay:({text:p,type:h})=>{const v=u(p,h);t("pick",v)},getSlotData:({text:p,type:h})=>{const v=u(p,h);return{isSelected:v.isSame(e.selectedDay),type:`${h}-month`,day:v.format("YYYY-MM-DD"),date:v.toDate()}}}},EG=J({name:"DateTable"}),xG=J({...EG,props:_G,emits:TG,setup(e,{expose:t,emit:n}){const r=e,{isInRange:a,now:i,rows:o,weekDays:s,getFormattedDate:l,handlePickDay:u,getSlotData:c}=CG(r,n),d=Le("calendar-table"),p=Le("calendar-day"),h=({text:v,type:m})=>{const g=[m];if(m==="current"){const y=l(v,m);y.isSame(r.selectedDay,"day")&&g.push(p.is("selected")),y.isSame(i,"day")&&g.push(p.is("today"))}return g};return t({getFormattedDate:l}),(v,m)=>(x(),U("table",{class:F([f(d).b(),f(d).is("range",f(a))]),cellspacing:"0",cellpadding:"0"},[v.hideHeader?oe("v-if",!0):(x(),U("thead",{key:0},[M("tr",null,[(x(!0),U(Ge,null,mt(f(s),g=>(x(),U("th",{key:g,scope:"col"},de(g),1))),128))])])),M("tbody",null,[(x(!0),U(Ge,null,mt(f(o),(g,y)=>(x(),U("tr",{key:y,class:F({[f(d).e("row")]:!0,[f(d).em("row","hide-border")]:y===0&&v.hideHeader})},[(x(!0),U(Ge,null,mt(g,(T,b)=>(x(),U("td",{key:b,class:F(h(T)),onClick:_=>f(u)(T)},[M("div",{class:F(f(p).b())},[fe(v.$slots,"date-cell",{data:f(c)(T)},()=>[M("span",null,de(T.text),1)])],2)],10,["onClick"]))),128))],2))),128))])],2))}});var jC=He(xG,[["__file","date-table.vue"]]);const kG=(e,t)=>{const n=e.endOf("month"),r=t.startOf("month"),i=n.isSame(r,"week")?r.add(1,"week"):r;return[[e,n],[i.startOf("week"),t]]},AG=(e,t)=>{const n=e.endOf("month"),r=e.add(1,"month").startOf("month"),a=n.isSame(r,"week")?r.add(1,"week"):r,i=a.endOf("month"),o=t.startOf("month"),s=i.isSame(o,"week")?o.add(1,"week"):o;return[[e,n],[a.startOf("week"),i],[s.startOf("week"),t]]},DG=(e,t,n)=>{const{lang:r}=Kt(),a=z(),i=xt().locale(r.value),o=k({get(){return e.modelValue?l.value:a.value},set(g){if(!g)return;a.value=g;const y=g.toDate();t(hr,y),t(_t,y)}}),s=k(()=>{if(!e.range||!Be(e.range)||e.range.length!==2||e.range.some(b=>!As(b)))return[];const g=e.range.map(b=>xt(b).locale(r.value)),[y,T]=g;return y.isAfter(T)?[]:y.isSame(T,"month")?h(y,T):y.add(1,"month").month()!==T.month()?[]:h(y,T)}),l=k(()=>e.modelValue?xt(e.modelValue).locale(r.value):o.value||(s.value.length?s.value[0][0]:i)),u=k(()=>l.value.subtract(1,"month").date(1)),c=k(()=>l.value.add(1,"month").date(1)),d=k(()=>l.value.subtract(1,"year").date(1)),p=k(()=>l.value.add(1,"year").date(1)),h=(g,y)=>{const T=g.startOf("week"),b=y.endOf("week"),_=T.get("month"),w=b.get("month");return _===w?[[T,b]]:(_+1)%12===w?kG(T,b):_+2===w||(_+1)%11===w?AG(T,b):[]},v=g=>{o.value=g};return{calculateValidatedDateRange:h,date:l,realSelectedDay:o,pickDay:v,selectDate:g=>{const T={"prev-month":u.value,"next-month":c.value,"prev-year":d.value,"next-year":p.value,today:i}[g];T.isSame(l.value,"day")||v(T)},validatedRange:s}},IG=e=>Be(e)&&e.length===2&&e.every(t=>As(t)),PG=Ue({modelValue:{type:Date},range:{type:ue(Array),validator:IG}}),OG={[_t]:e=>As(e),[hr]:e=>As(e)},MG="ElCalendar",RG=J({name:MG}),LG=J({...RG,props:PG,emits:OG,setup(e,{expose:t,emit:n}){const r=e,a=Le("calendar"),{calculateValidatedDateRange:i,date:o,pickDay:s,realSelectedDay:l,selectDate:u,validatedRange:c}=DG(r,n),{t:d}=Kt(),p=k(()=>{const h=`el.datepicker.month${o.value.format("M")}`;return`${o.value.year()} ${d("el.datepicker.year")} ${d(h)}`});return t({selectedDay:l,pickDay:s,selectDate:u,calculateValidatedDateRange:i}),(h,v)=>(x(),U("div",{class:F(f(a).b())},[M("div",{class:F(f(a).e("header"))},[fe(h.$slots,"header",{date:f(p)},()=>[M("div",{class:F(f(a).e("title"))},de(f(p)),3),f(c).length===0?(x(),U("div",{key:0,class:F(f(a).e("button-group"))},[E(f(AP),null,{default:P(()=>[E(f(_n),{size:"small",onClick:m=>f(u)("prev-month")},{default:P(()=>[we(de(f(d)("el.datepicker.prevMonth")),1)]),_:1},8,["onClick"]),E(f(_n),{size:"small",onClick:m=>f(u)("today")},{default:P(()=>[we(de(f(d)("el.datepicker.today")),1)]),_:1},8,["onClick"]),E(f(_n),{size:"small",onClick:m=>f(u)("next-month")},{default:P(()=>[we(de(f(d)("el.datepicker.nextMonth")),1)]),_:1},8,["onClick"])]),_:1})],2)):oe("v-if",!0)])],2),f(c).length===0?(x(),U("div",{key:0,class:F(f(a).e("body"))},[E(jC,{date:f(o),"selected-day":f(l),onPick:f(s)},Ua({_:2},[h.$slots["date-cell"]?{name:"date-cell",fn:P(m=>[fe(h.$slots,"date-cell",Ra(to(m)))])}:void 0]),1032,["date","selected-day","onPick"])],2)):(x(),U("div",{key:1,class:F(f(a).e("body"))},[(x(!0),U(Ge,null,mt(f(c),(m,g)=>(x(),he(jC,{key:g,date:m[0],"selected-day":f(l),range:m,"hide-header":g!==0,onPick:f(s)},Ua({_:2},[h.$slots["date-cell"]?{name:"date-cell",fn:P(y=>[fe(h.$slots,"date-cell",Ra(to(y)))])}:void 0]),1032,["date","selected-day","range","hide-header","onPick"]))),128))],2))],2))}});var NG=He(LG,[["__file","calendar.vue"]]);const FG=Et(NG),$G=Ue({header:{type:String,default:""},footer:{type:String,default:""},bodyStyle:{type:ue([String,Object,Array]),default:""},bodyClass:String,shadow:{type:String,values:["always","hover","never"],default:"always"}}),BG=J({name:"ElCard"}),VG=J({...BG,props:$G,setup(e){const t=Le("card");return(n,r)=>(x(),U("div",{class:F([f(t).b(),f(t).is(`${n.shadow}-shadow`)])},[n.$slots.header||n.header?(x(),U("div",{key:0,class:F(f(t).e("header"))},[fe(n.$slots,"header",{},()=>[we(de(n.header),1)])],2)):oe("v-if",!0),M("div",{class:F([f(t).e("body"),n.bodyClass]),style:tt(n.bodyStyle)},[fe(n.$slots,"default")],6),n.$slots.footer||n.footer?(x(),U("div",{key:1,class:F(f(t).e("footer"))},[fe(n.$slots,"footer",{},()=>[we(de(n.footer),1)])],2)):oe("v-if",!0)],2))}});var UG=He(VG,[["__file","card.vue"]]);const HG=Et(UG),zG=Ue({initialIndex:{type:Number,default:0},height:{type:String,default:""},trigger:{type:String,values:["hover","click"],default:"hover"},autoplay:{type:Boolean,default:!0},interval:{type:Number,default:3e3},indicatorPosition:{type:String,values:["","none","outside"],default:""},arrow:{type:String,values:["always","hover","never"],default:"hover"},type:{type:String,values:["","card"],default:""},cardScale:{type:Number,default:.83},loop:{type:Boolean,default:!0},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},pauseOnHover:{type:Boolean,default:!0},motionBlur:Boolean}),jG={change:(e,t)=>[e,t].every(st)},LP=Symbol("carouselContextKey"),Ry="ElCarouselItem";var Ka=(e=>(e[e.TEXT=1]="TEXT",e[e.CLASS=2]="CLASS",e[e.STYLE=4]="STYLE",e[e.PROPS=8]="PROPS",e[e.FULL_PROPS=16]="FULL_PROPS",e[e.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",e[e.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",e[e.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",e[e.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",e[e.NEED_PATCH=512]="NEED_PATCH",e[e.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",e[e.HOISTED=-1]="HOISTED",e[e.BAIL=-2]="BAIL",e))(Ka||{});function Ly(e){return wn(e)&&e.type===Ge}function WG(e){return wn(e)&&e.type===fr}function KG(e){return wn(e)&&!Ly(e)&&!WG(e)}const qG=e=>{if(!wn(e))return{};const t=e.props||{},n=(wn(e.type)?e.type.props:void 0)||{},r={};return Object.keys(n).forEach(a=>{Yt(n[a],"default")&&(r[a]=n[a].default)}),Object.keys(t).forEach(a=>{r[ua(a)]=t[a]}),r},GG=e=>{if(!Be(e)||e.length>1)throw new Error("expect to receive a single Vue element child");return e[0]},Fo=e=>{const t=Be(e)?e:[e],n=[];return t.forEach(r=>{var a;Be(r)?n.push(...Fo(r)):wn(r)&&((a=r.component)!=null&&a.subTree)?n.push(r,...Fo(r.component.subTree)):wn(r)&&Be(r.children)?n.push(...Fo(r.children)):wn(r)&&r.shapeFlag===2?n.push(...Fo(r.type())):n.push(r)}),n},YG=(e,t,n)=>Fo(e.subTree).filter(i=>{var o;return wn(i)&&((o=i.type)==null?void 0:o.name)===t&&!!i.component}).map(i=>i.component.uid).map(i=>n[i]).filter(i=>!!i),M1=(e,t)=>{const n={},r=cn([]);return{children:r,addChild:o=>{n[o.uid]=o,r.value=YG(e,t,n)},removeChild:o=>{delete n[o],r.value=r.value.filter(s=>s.uid!==o)}}},WC=300,XG=(e,t,n)=>{const{children:r,addChild:a,removeChild:i}=M1(Mt(),Ry),o=ir(),s=z(-1),l=z(null),u=z(!1),c=z(),d=z(0),p=z(!0),h=z(!0),v=z(!1),m=k(()=>e.arrow!=="never"&&!f(T)),g=k(()=>r.value.some(ve=>ve.props.label.toString().length>0)),y=k(()=>e.type==="card"),T=k(()=>e.direction==="vertical"),b=k(()=>e.height!=="auto"?{height:e.height}:{height:`${d.value}px`,overflow:"hidden"}),_=wl(ve=>{O(ve)},WC,{trailing:!0}),w=wl(ve=>{H(ve)},WC),S=ve=>p.value?s.value<=1?ve<=1:ve>1:!0;function A(){l.value&&(clearInterval(l.value),l.value=null)}function I(){e.interval<=0||!e.autoplay||l.value||(l.value=setInterval(()=>D(),e.interval))}const D=()=>{h.value||(v.value=!0),h.value=!1,s.value<r.value.length-1?s.value=s.value+1:e.loop?s.value=0:v.value=!1};function O(ve){if(h.value||(v.value=!0),h.value=!1,rt(ve)){const pe=r.value.filter(Fe=>Fe.props.name===ve);pe.length>0&&(ve=r.value.indexOf(pe[0]))}if(ve=Number(ve),Number.isNaN(ve)||ve!==Math.floor(ve))return;const te=r.value.length,me=s.value;ve<0?s.value=e.loop?te-1:0:ve>=te?s.value=e.loop?0:te-1:s.value=ve,me===s.value&&V(me),le()}function V(ve){r.value.forEach((te,me)=>{te.translateItem(me,s.value,ve)})}function N(ve,te){var me,pe,Fe,Pe;const ye=f(r),Z=ye.length;if(Z===0||!ve.states.inStage)return!1;const ie=te+1,Ce=te-1,$e=Z-1,Se=ye[$e].states.active,De=ye[0].states.active,xe=(pe=(me=ye[ie])==null?void 0:me.states)==null?void 0:pe.active,Ve=(Pe=(Fe=ye[Ce])==null?void 0:Fe.states)==null?void 0:Pe.active;return te===$e&&De||xe?"left":te===0&&Se||Ve?"right":!1}function K(){u.value=!0,e.pauseOnHover&&A()}function Y(){u.value=!1,I()}function q(){v.value=!1}function $(ve){f(T)||r.value.forEach((te,me)=>{ve===N(te,me)&&(te.states.hover=!0)})}function j(){f(T)||r.value.forEach(ve=>{ve.states.hover=!1})}function W(ve){ve!==s.value&&(h.value||(v.value=!0)),s.value=ve}function H(ve){e.trigger==="hover"&&ve!==s.value&&(s.value=ve,h.value||(v.value=!0))}function X(){O(s.value-1)}function re(){O(s.value+1)}function le(){A(),e.pauseOnHover||I()}function ne(ve){e.height==="auto"&&(d.value=ve)}function be(){var ve;const te=(ve=o.default)==null?void 0:ve.call(o);if(!te)return null;const pe=Fo(te).filter(Fe=>wn(Fe)&&Fe.type.name===Ry);return(pe==null?void 0:pe.length)===2&&e.loop&&!y.value?(p.value=!0,pe):(p.value=!1,null)}Ie(()=>s.value,(ve,te)=>{V(te),p.value&&(ve=ve%2,te=te%2),te>-1&&t($t,ve,te)}),Ie(()=>e.autoplay,ve=>{ve?I():A()}),Ie(()=>e.loop,()=>{O(s.value)}),Ie(()=>e.interval,()=>{le()});const _e=cn();return ht(()=>{Ie(()=>r.value,()=>{r.value.length>0&&O(e.initialIndex)},{immediate:!0}),_e.value=In(c.value,()=>{V()}),I()}),fn(()=>{A(),c.value&&_e.value&&_e.value.stop()}),Vt(LP,{root:c,isCardType:y,isVertical:T,items:r,loop:e.loop,cardScale:e.cardScale,addItem:a,removeItem:i,setActiveItem:O,setContainerHeight:ne}),{root:c,activeIndex:s,arrowDisplay:m,hasLabel:g,hover:u,isCardType:y,isTransitioning:v,items:r,isVertical:T,containerStyle:b,isItemsTwoLength:p,handleButtonEnter:$,handleTransitionEnd:q,handleButtonLeave:j,handleIndicatorClick:W,handleMouseEnter:K,handleMouseLeave:Y,setActiveItem:O,prev:X,next:re,PlaceholderItem:be,isTwoLengthShow:S,throttledArrowClick:_,throttledIndicatorHover:w}},QG="ElCarousel",JG=J({name:QG}),ZG=J({...JG,props:zG,emits:jG,setup(e,{expose:t,emit:n}){const r=e,{root:a,activeIndex:i,arrowDisplay:o,hasLabel:s,hover:l,isCardType:u,items:c,isVertical:d,containerStyle:p,handleButtonEnter:h,handleButtonLeave:v,isTransitioning:m,handleIndicatorClick:g,handleMouseEnter:y,handleMouseLeave:T,handleTransitionEnd:b,setActiveItem:_,prev:w,next:S,PlaceholderItem:A,isTwoLengthShow:I,throttledArrowClick:D,throttledIndicatorHover:O}=XG(r,n),V=Le("carousel"),{t:N}=Kt(),K=k(()=>{const $=[V.b(),V.m(r.direction)];return f(u)&&$.push(V.m("card")),$}),Y=k(()=>{const $=[V.e("container")];return r.motionBlur&&f(m)&&c.value.length>1&&$.push(f(d)?`${V.namespace.value}-transitioning-vertical`:`${V.namespace.value}-transitioning`),$}),q=k(()=>{const $=[V.e("indicators"),V.em("indicators",r.direction)];return f(s)&&$.push(V.em("indicators","labels")),r.indicatorPosition==="outside"&&$.push(V.em("indicators","outside")),f(d)&&$.push(V.em("indicators","right")),$});return t({activeIndex:i,setActiveItem:_,prev:w,next:S}),($,j)=>(x(),U("div",{ref_key:"root",ref:a,class:F(f(K)),onMouseenter:ft(f(y),["stop"]),onMouseleave:ft(f(T),["stop"])},[f(o)?(x(),he(lr,{key:0,name:"carousel-arrow-left",persisted:""},{default:P(()=>[gt(M("button",{type:"button",class:F([f(V).e("arrow"),f(V).em("arrow","left")]),"aria-label":f(N)("el.carousel.leftArrow"),onMouseenter:W=>f(h)("left"),onMouseleave:f(v),onClick:ft(W=>f(D)(f(i)-1),["stop"])},[E(f(et),null,{default:P(()=>[E(f(Ms))]),_:1})],42,["aria-label","onMouseenter","onMouseleave","onClick"]),[[zt,($.arrow==="always"||f(l))&&(r.loop||f(i)>0)]])]),_:1})):oe("v-if",!0),f(o)?(x(),he(lr,{key:1,name:"carousel-arrow-right",persisted:""},{default:P(()=>[gt(M("button",{type:"button",class:F([f(V).e("arrow"),f(V).em("arrow","right")]),"aria-label":f(N)("el.carousel.rightArrow"),onMouseenter:W=>f(h)("right"),onMouseleave:f(v),onClick:ft(W=>f(D)(f(i)+1),["stop"])},[E(f(et),null,{default:P(()=>[E(f(sa))]),_:1})],42,["aria-label","onMouseenter","onMouseleave","onClick"]),[[zt,($.arrow==="always"||f(l))&&(r.loop||f(i)<f(c).length-1)]])]),_:1})):oe("v-if",!0),M("div",{class:F(f(Y)),style:tt(f(p)),onTransitionend:f(b)},[E(f(A)),fe($.$slots,"default")],46,["onTransitionend"]),$.indicatorPosition!=="none"?(x(),U("ul",{key:2,class:F(f(q))},[(x(!0),U(Ge,null,mt(f(c),(W,H)=>gt((x(),U("li",{key:H,class:F([f(V).e("indicator"),f(V).em("indicator",$.direction),f(V).is("active",H===f(i))]),onMouseenter:X=>f(O)(H),onClick:ft(X=>f(g)(H),["stop"])},[M("button",{class:F(f(V).e("button")),"aria-label":f(N)("el.carousel.indicator",{index:H+1})},[f(s)?(x(),U("span",{key:0},de(W.props.label),1)):oe("v-if",!0)],10,["aria-label"])],42,["onMouseenter","onClick"])),[[zt,f(I)(H)]])),128))],2)):oe("v-if",!0),r.motionBlur?(x(),U("svg",{key:3,xmlns:"http://www.w3.org/2000/svg",version:"1.1",style:{display:"none"}},[M("defs",null,[M("filter",{id:"elCarouselHorizontal"},[M("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"12,0"})]),M("filter",{id:"elCarouselVertical"},[M("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"0,10"})])])])):oe("v-if",!0)],42,["onMouseenter","onMouseleave"]))}});var eY=He(ZG,[["__file","carousel.vue"]]);const tY=Ue({name:{type:String,default:""},label:{type:[String,Number],default:""}}),nY=e=>{const t=Qe(LP),n=Mt(),r=z(),a=z(!1),i=z(0),o=z(1),s=z(!1),l=z(!1),u=z(!1),c=z(!1),{isCardType:d,isVertical:p,cardScale:h}=t;function v(b,_,w){const S=w-1,A=_-1,I=_+1,D=w/2;return _===0&&b===S?-1:_===S&&b===0?w:b<A&&_-b>=D?w+1:b>I&&b-_>=D?-2:b}function m(b,_){var w,S;const A=f(p)?((w=t.root.value)==null?void 0:w.offsetHeight)||0:((S=t.root.value)==null?void 0:S.offsetWidth)||0;return u.value?A*((2-h)*(b-_)+1)/4:b<_?-(1+h)*A/4:(3+h)*A/4}function g(b,_,w){const S=t.root.value;return S?((w?S.offsetHeight:S.offsetWidth)||0)*(b-_):0}const y=(b,_,w)=>{var S;const A=f(d),I=(S=t.items.value.length)!=null?S:Number.NaN,D=b===_;!A&&!Xt(w)&&(c.value=D||b===w),!D&&I>2&&t.loop&&(b=v(b,_,I));const O=f(p);s.value=D,A?(u.value=Math.round(Math.abs(b-_))<=1,i.value=m(b,_),o.value=f(s)?1:h):i.value=g(b,_,O),l.value=!0,D&&r.value&&t.setContainerHeight(r.value.offsetHeight)};function T(){if(t&&f(d)){const b=t.items.value.findIndex(({uid:_})=>_===n.uid);t.setActiveItem(b)}}return ht(()=>{t.addItem({props:e,states:Ct({hover:a,translate:i,scale:o,active:s,ready:l,inStage:u,animating:c}),uid:n.uid,translateItem:y})}),zs(()=>{t.removeItem(n.uid)}),{carouselItemRef:r,active:s,animating:c,hover:a,inStage:u,isVertical:p,translate:i,isCardType:d,scale:o,ready:l,handleItemClick:T}},rY=J({name:Ry}),aY=J({...rY,props:tY,setup(e){const t=e,n=Le("carousel"),{carouselItemRef:r,active:a,animating:i,hover:o,inStage:s,isVertical:l,translate:u,isCardType:c,scale:d,ready:p,handleItemClick:h}=nY(t),v=k(()=>[n.e("item"),n.is("active",a.value),n.is("in-stage",s.value),n.is("hover",o.value),n.is("animating",i.value),{[n.em("item","card")]:c.value,[n.em("item","card-vertical")]:c.value&&l.value}]),m=k(()=>{const y=`${`translate${f(l)?"Y":"X"}`}(${f(u)}px)`,T=`scale(${f(d)})`;return{transform:[y,T].join(" ")}});return(g,y)=>gt((x(),U("div",{ref_key:"carouselItemRef",ref:r,class:F(f(v)),style:tt(f(m)),onClick:f(h)},[f(c)?gt((x(),U("div",{key:0,class:F(f(n).e("mask"))},null,2)),[[zt,!f(a)]]):oe("v-if",!0),fe(g.$slots,"default")],14,["onClick"])),[[zt,f(p)]])}});var NP=He(aY,[["__file","carousel-item.vue"]]);const FP=Et(eY,{CarouselItem:NP}),$P=On(NP),BP={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object],default:void 0},value:{type:[String,Boolean,Number,Object],default:void 0},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueValue:{type:[String,Number],default:void 0},falseValue:{type:[String,Number],default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},border:Boolean,size:Xn,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0},...Er(["ariaControls"])},VP={[_t]:e=>rt(e)||st(e)||pn(e),change:e=>rt(e)||st(e)||pn(e)},Nc=Symbol("checkboxGroupContextKey"),iY=({model:e,isChecked:t})=>{const n=Qe(Nc,void 0),r=k(()=>{var i,o;const s=(i=n==null?void 0:n.max)==null?void 0:i.value,l=(o=n==null?void 0:n.min)==null?void 0:o.value;return!Xt(s)&&e.value.length>=s&&!t.value||!Xt(l)&&e.value.length<=l&&t.value});return{isDisabled:Mr(k(()=>(n==null?void 0:n.disabled.value)||r.value)),isLimitDisabled:r}},oY=(e,{model:t,isLimitExceeded:n,hasOwnLabel:r,isDisabled:a,isLabeledByFormItem:i})=>{const o=Qe(Nc,void 0),{formItem:s}=Or(),{emit:l}=Mt();function u(v){var m,g,y,T;return[!0,e.trueValue,e.trueLabel].includes(v)?(g=(m=e.trueValue)!=null?m:e.trueLabel)!=null?g:!0:(T=(y=e.falseValue)!=null?y:e.falseLabel)!=null?T:!1}function c(v,m){l($t,u(v),m)}function d(v){if(n.value)return;const m=v.target;l($t,u(m.checked),v)}async function p(v){n.value||!r.value&&!a.value&&i.value&&(v.composedPath().some(y=>y.tagName==="LABEL")||(t.value=u([!1,e.falseValue,e.falseLabel].includes(t.value)),await it(),c(t.value,v)))}const h=k(()=>(o==null?void 0:o.validateEvent)||e.validateEvent);return Ie(()=>e.modelValue,()=>{h.value&&(s==null||s.validate("change").catch(v=>void 0))}),{handleChange:d,onClickRoot:p}},sY=e=>{const t=z(!1),{emit:n}=Mt(),r=Qe(Nc,void 0),a=k(()=>Xt(r)===!1),i=z(!1),o=k({get(){var s,l;return a.value?(s=r==null?void 0:r.modelValue)==null?void 0:s.value:(l=e.modelValue)!=null?l:t.value},set(s){var l,u;a.value&&Be(s)?(i.value=((l=r==null?void 0:r.max)==null?void 0:l.value)!==void 0&&s.length>(r==null?void 0:r.max.value)&&s.length>o.value.length,i.value===!1&&((u=r==null?void 0:r.changeEvent)==null||u.call(r,s))):(n(_t,s),t.value=s)}});return{model:o,isGroup:a,isLimitExceeded:i}},lY=(e,t,{model:n})=>{const r=Qe(Nc,void 0),a=z(!1),i=k(()=>yi(e.value)?e.label:e.value),o=k(()=>{const c=n.value;return pn(c)?c:Be(c)?It(i.value)?c.map(un).some(d=>pr(d,i.value)):c.map(un).includes(i.value):c!=null?c===e.trueValue||c===e.trueLabel:!!c}),s=Kn(k(()=>{var c;return(c=r==null?void 0:r.size)==null?void 0:c.value}),{prop:!0}),l=Kn(k(()=>{var c;return(c=r==null?void 0:r.size)==null?void 0:c.value})),u=k(()=>!!t.default||!yi(i.value));return{checkboxButtonSize:s,isChecked:o,isFocused:a,checkboxSize:l,hasOwnLabel:u,actualValue:i}},UP=(e,t)=>{const{formItem:n}=Or(),{model:r,isGroup:a,isLimitExceeded:i}=sY(e),{isFocused:o,isChecked:s,checkboxButtonSize:l,checkboxSize:u,hasOwnLabel:c,actualValue:d}=lY(e,t,{model:r}),{isDisabled:p}=iY({model:r,isChecked:s}),{inputId:h,isLabeledByFormItem:v}=si(e,{formItemContext:n,disableIdGeneration:c,disableIdManagement:a}),{handleChange:m,onClickRoot:g}=oY(e,{model:r,isLimitExceeded:i,hasOwnLabel:c,isDisabled:p,isLabeledByFormItem:v});return(()=>{function T(){var b,_;Be(r.value)&&!r.value.includes(d.value)?r.value.push(d.value):r.value=(_=(b=e.trueValue)!=null?b:e.trueLabel)!=null?_:!0}e.checked&&T()})(),xs({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},k(()=>a.value&&yi(e.value))),xs({from:"true-label",replacement:"true-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},k(()=>!!e.trueLabel)),xs({from:"false-label",replacement:"false-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},k(()=>!!e.falseLabel)),{inputId:h,isLabeledByFormItem:v,isChecked:s,isDisabled:p,isFocused:o,checkboxButtonSize:l,checkboxSize:u,hasOwnLabel:c,model:r,actualValue:d,handleChange:m,onClickRoot:g}},uY=J({name:"ElCheckbox"}),cY=J({...uY,props:BP,emits:VP,setup(e){const t=e,n=ir(),{inputId:r,isLabeledByFormItem:a,isChecked:i,isDisabled:o,isFocused:s,checkboxSize:l,hasOwnLabel:u,model:c,actualValue:d,handleChange:p,onClickRoot:h}=UP(t,n),v=Le("checkbox"),m=k(()=>[v.b(),v.m(l.value),v.is("disabled",o.value),v.is("bordered",t.border),v.is("checked",i.value)]),g=k(()=>[v.e("input"),v.is("disabled",o.value),v.is("checked",i.value),v.is("indeterminate",t.indeterminate),v.is("focus",s.value)]);return(y,T)=>(x(),he(Lt(!f(u)&&f(a)?"span":"label"),{class:F(f(m)),"aria-controls":y.indeterminate?y.ariaControls:null,onClick:f(h)},{default:P(()=>{var b,_,w,S;return[M("span",{class:F(f(g))},[y.trueValue||y.falseValue||y.trueLabel||y.falseLabel?gt((x(),U("input",{key:0,id:f(r),"onUpdate:modelValue":A=>yn(c)?c.value=A:null,class:F(f(v).e("original")),type:"checkbox",indeterminate:y.indeterminate,name:y.name,tabindex:y.tabindex,disabled:f(o),"true-value":(_=(b=y.trueValue)!=null?b:y.trueLabel)!=null?_:!0,"false-value":(S=(w=y.falseValue)!=null?w:y.falseLabel)!=null?S:!1,onChange:f(p),onFocus:A=>s.value=!0,onBlur:A=>s.value=!1,onClick:ft(()=>{},["stop"])},null,42,["id","onUpdate:modelValue","indeterminate","name","tabindex","disabled","true-value","false-value","onChange","onFocus","onBlur","onClick"])),[[pf,f(c)]]):gt((x(),U("input",{key:1,id:f(r),"onUpdate:modelValue":A=>yn(c)?c.value=A:null,class:F(f(v).e("original")),type:"checkbox",indeterminate:y.indeterminate,disabled:f(o),value:f(d),name:y.name,tabindex:y.tabindex,onChange:f(p),onFocus:A=>s.value=!0,onBlur:A=>s.value=!1,onClick:ft(()=>{},["stop"])},null,42,["id","onUpdate:modelValue","indeterminate","disabled","value","name","tabindex","onChange","onFocus","onBlur","onClick"])),[[pf,f(c)]]),M("span",{class:F(f(v).e("inner"))},null,2)],2),f(u)?(x(),U("span",{key:0,class:F(f(v).e("label"))},[fe(y.$slots,"default"),y.$slots.default?oe("v-if",!0):(x(),U(Ge,{key:0},[we(de(y.label),1)],64))],2)):oe("v-if",!0)]}),_:3},8,["class","aria-controls","onClick"]))}});var dY=He(cY,[["__file","checkbox.vue"]]);const fY=J({name:"ElCheckboxButton"}),pY=J({...fY,props:BP,emits:VP,setup(e){const t=e,n=ir(),{isFocused:r,isChecked:a,isDisabled:i,checkboxButtonSize:o,model:s,actualValue:l,handleChange:u}=UP(t,n),c=Qe(Nc,void 0),d=Le("checkbox"),p=k(()=>{var v,m,g,y;const T=(m=(v=c==null?void 0:c.fill)==null?void 0:v.value)!=null?m:"";return{backgroundColor:T,borderColor:T,color:(y=(g=c==null?void 0:c.textColor)==null?void 0:g.value)!=null?y:"",boxShadow:T?`-1px 0 0 0 ${T}`:void 0}}),h=k(()=>[d.b("button"),d.bm("button",o.value),d.is("disabled",i.value),d.is("checked",a.value),d.is("focus",r.value)]);return(v,m)=>{var g,y,T,b;return x(),U("label",{class:F(f(h))},[v.trueValue||v.falseValue||v.trueLabel||v.falseLabel?gt((x(),U("input",{key:0,"onUpdate:modelValue":_=>yn(s)?s.value=_:null,class:F(f(d).be("button","original")),type:"checkbox",name:v.name,tabindex:v.tabindex,disabled:f(i),"true-value":(y=(g=v.trueValue)!=null?g:v.trueLabel)!=null?y:!0,"false-value":(b=(T=v.falseValue)!=null?T:v.falseLabel)!=null?b:!1,onChange:f(u),onFocus:_=>r.value=!0,onBlur:_=>r.value=!1,onClick:ft(()=>{},["stop"])},null,42,["onUpdate:modelValue","name","tabindex","disabled","true-value","false-value","onChange","onFocus","onBlur","onClick"])),[[pf,f(s)]]):gt((x(),U("input",{key:1,"onUpdate:modelValue":_=>yn(s)?s.value=_:null,class:F(f(d).be("button","original")),type:"checkbox",name:v.name,tabindex:v.tabindex,disabled:f(i),value:f(l),onChange:f(u),onFocus:_=>r.value=!0,onBlur:_=>r.value=!1,onClick:ft(()=>{},["stop"])},null,42,["onUpdate:modelValue","name","tabindex","disabled","value","onChange","onFocus","onBlur","onClick"])),[[pf,f(s)]]),v.$slots.default||v.label?(x(),U("span",{key:2,class:F(f(d).be("button","inner")),style:tt(f(a)?f(p):void 0)},[fe(v.$slots,"default",{},()=>[we(de(v.label),1)])],6)):oe("v-if",!0)],2)}}});var HP=He(pY,[["__file","checkbox-button.vue"]]);const hY=Ue({modelValue:{type:ue(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:Xn,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0},...Er(["ariaLabel"])}),mY={[_t]:e=>Be(e),change:e=>Be(e)},vY=J({name:"ElCheckboxGroup"}),gY=J({...vY,props:hY,emits:mY,setup(e,{emit:t}){const n=e,r=Le("checkbox"),{formItem:a}=Or(),{inputId:i,isLabeledByFormItem:o}=si(n,{formItemContext:a}),s=async u=>{t(_t,u),await it(),t($t,u)},l=k({get(){return n.modelValue},set(u){s(u)}});return Vt(Nc,{...hi(mr(n),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:l,changeEvent:s}),Ie(()=>n.modelValue,()=>{n.validateEvent&&(a==null||a.validate("change").catch(u=>void 0))}),(u,c)=>{var d;return x(),he(Lt(u.tag),{id:f(i),class:F(f(r).b("group")),role:"group","aria-label":f(o)?void 0:u.ariaLabel||"checkbox-group","aria-labelledby":f(o)?(d=f(a))==null?void 0:d.labelId:void 0},{default:P(()=>[fe(u.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var zP=He(gY,[["__file","checkbox-group.vue"]]);const ri=Et(dY,{CheckboxButton:HP,CheckboxGroup:zP}),yY=On(HP),jP=On(zP),WP=Ue({modelValue:{type:[String,Number,Boolean],default:void 0},size:Xn,disabled:Boolean,label:{type:[String,Number,Boolean],default:void 0},value:{type:[String,Number,Boolean],default:void 0},name:{type:String,default:void 0}}),bY=Ue({...WP,border:Boolean}),KP={[_t]:e=>rt(e)||st(e)||pn(e),[$t]:e=>rt(e)||st(e)||pn(e)},qP=Symbol("radioGroupKey"),GP=(e,t)=>{const n=z(),r=Qe(qP,void 0),a=k(()=>!!r),i=k(()=>yi(e.value)?e.label:e.value),o=k({get(){return a.value?r.modelValue:e.modelValue},set(d){a.value?r.changeEvent(d):t&&t(_t,d),n.value.checked=e.modelValue===i.value}}),s=Kn(k(()=>r==null?void 0:r.size)),l=Mr(k(()=>r==null?void 0:r.disabled)),u=z(!1),c=k(()=>l.value||a.value&&o.value!==i.value?-1:0);return xs({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-radio",ref:"https://element-plus.org/en-US/component/radio.html"},k(()=>a.value&&yi(e.value))),{radioRef:n,isGroup:a,radioGroup:r,focus:u,size:s,disabled:l,tabIndex:c,modelValue:o,actualValue:i}},_Y=J({name:"ElRadio"}),TY=J({..._Y,props:bY,emits:KP,setup(e,{emit:t}){const n=e,r=Le("radio"),{radioRef:a,radioGroup:i,focus:o,size:s,disabled:l,modelValue:u,actualValue:c}=GP(n,t);function d(){it(()=>t($t,u.value))}return(p,h)=>{var v;return x(),U("label",{class:F([f(r).b(),f(r).is("disabled",f(l)),f(r).is("focus",f(o)),f(r).is("bordered",p.border),f(r).is("checked",f(u)===f(c)),f(r).m(f(s))])},[M("span",{class:F([f(r).e("input"),f(r).is("disabled",f(l)),f(r).is("checked",f(u)===f(c))])},[gt(M("input",{ref_key:"radioRef",ref:a,"onUpdate:modelValue":m=>yn(u)?u.value=m:null,class:F(f(r).e("original")),value:f(c),name:p.name||((v=f(i))==null?void 0:v.name),disabled:f(l),checked:f(u)===f(c),type:"radio",onFocus:m=>o.value=!0,onBlur:m=>o.value=!1,onChange:d,onClick:ft(()=>{},["stop"])},null,42,["onUpdate:modelValue","value","name","disabled","checked","onFocus","onBlur","onClick"]),[[B_,f(u)]]),M("span",{class:F(f(r).e("inner"))},null,2)],2),M("span",{class:F(f(r).e("label")),onKeydown:ft(()=>{},["stop"])},[fe(p.$slots,"default",{},()=>[we(de(p.label),1)])],42,["onKeydown"])],2)}}});var wY=He(TY,[["__file","radio.vue"]]);const SY=Ue({...WP}),CY=J({name:"ElRadioButton"}),EY=J({...CY,props:SY,setup(e){const t=e,n=Le("radio"),{radioRef:r,focus:a,size:i,disabled:o,modelValue:s,radioGroup:l,actualValue:u}=GP(t),c=k(()=>({backgroundColor:(l==null?void 0:l.fill)||"",borderColor:(l==null?void 0:l.fill)||"",boxShadow:l!=null&&l.fill?`-1px 0 0 0 ${l.fill}`:"",color:(l==null?void 0:l.textColor)||""}));return(d,p)=>{var h;return x(),U("label",{class:F([f(n).b("button"),f(n).is("active",f(s)===f(u)),f(n).is("disabled",f(o)),f(n).is("focus",f(a)),f(n).bm("button",f(i))])},[gt(M("input",{ref_key:"radioRef",ref:r,"onUpdate:modelValue":v=>yn(s)?s.value=v:null,class:F(f(n).be("button","original-radio")),value:f(u),type:"radio",name:d.name||((h=f(l))==null?void 0:h.name),disabled:f(o),onFocus:v=>a.value=!0,onBlur:v=>a.value=!1,onClick:ft(()=>{},["stop"])},null,42,["onUpdate:modelValue","value","name","disabled","onFocus","onBlur","onClick"]),[[B_,f(s)]]),M("span",{class:F(f(n).be("button","inner")),style:tt(f(s)===f(u)?f(c):{}),onKeydown:ft(()=>{},["stop"])},[fe(d.$slots,"default",{},()=>[we(de(d.label),1)])],46,["onKeydown"])],2)}}});var YP=He(EY,[["__file","radio-button.vue"]]);const xY=Ue({id:{type:String,default:void 0},size:Xn,disabled:Boolean,modelValue:{type:[String,Number,Boolean],default:void 0},fill:{type:String,default:""},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0},...Er(["ariaLabel"])}),kY=KP,AY=J({name:"ElRadioGroup"}),DY=J({...AY,props:xY,emits:kY,setup(e,{emit:t}){const n=e,r=Le("radio"),a=wr(),i=z(),{formItem:o}=Or(),{inputId:s,isLabeledByFormItem:l}=si(n,{formItemContext:o}),u=d=>{t(_t,d),it(()=>t($t,d))};ht(()=>{const d=i.value.querySelectorAll("[type=radio]"),p=d[0];!Array.from(d).some(h=>h.checked)&&p&&(p.tabIndex=0)});const c=k(()=>n.name||a.value);return Vt(qP,Ct({...mr(n),changeEvent:u,name:c})),Ie(()=>n.modelValue,()=>{n.validateEvent&&(o==null||o.validate("change").catch(d=>void 0))}),(d,p)=>(x(),U("div",{id:f(s),ref_key:"radioGroupRef",ref:i,class:F(f(r).b("group")),role:"radiogroup","aria-label":f(l)?void 0:d.ariaLabel||"radio-group","aria-labelledby":f(l)?f(o).labelId:void 0},[fe(d.$slots,"default")],10,["id","aria-label","aria-labelledby"]))}});var XP=He(DY,[["__file","radio-group.vue"]]);const zv=Et(wY,{RadioButton:YP,RadioGroup:XP}),R1=On(XP),IY=On(YP);var PY=J({name:"NodeContent",setup(){return{ns:Le("cascader-node")}},render(){const{ns:e}=this,{node:t,panel:n}=this.$parent,{data:r,label:a}=t,{renderLabelFn:i}=n;return lt("span",{class:e.e("label")},i?i({node:t,data:r}):a)}});const L1=Symbol(),OY=J({name:"ElCascaderNode",components:{ElCheckbox:ri,ElRadio:zv,NodeContent:PY,ElIcon:et,Check:sp,Loading:ao,ArrowRight:sa},props:{node:{type:Object,required:!0},menuId:String},emits:["expand"],setup(e,{emit:t}){const n=Qe(L1),r=Le("cascader-node"),a=k(()=>n.isHoverMenu),i=k(()=>n.config.multiple),o=k(()=>n.config.checkStrictly),s=k(()=>{var S;return(S=n.checkedNodes[0])==null?void 0:S.uid}),l=k(()=>e.node.isDisabled),u=k(()=>e.node.isLeaf),c=k(()=>o.value&&!u.value||!l.value),d=k(()=>h(n.expandingNode)),p=k(()=>o.value&&n.checkedNodes.some(h)),h=S=>{var A;const{level:I,uid:D}=e.node;return((A=S==null?void 0:S.pathNodes[I-1])==null?void 0:A.uid)===D},v=()=>{d.value||n.expandNode(e.node)},m=S=>{const{node:A}=e;S!==A.checked&&n.handleCheckChange(A,S)},g=()=>{n.lazyLoad(e.node,()=>{u.value||v()})},y=S=>{a.value&&(T(),!u.value&&t("expand",S))},T=()=>{const{node:S}=e;!c.value||S.loading||(S.loaded?v():g())},b=()=>{a.value&&!u.value||(u.value&&!l.value&&!o.value&&!i.value?w(!0):T())},_=S=>{o.value?(m(S),e.node.loaded&&v()):w(S)},w=S=>{e.node.loaded?(m(S),!o.value&&v()):g()};return{panel:n,isHoverMenu:a,multiple:i,checkStrictly:o,checkedNodeId:s,isDisabled:l,isLeaf:u,expandable:c,inExpandingPath:d,inCheckedPath:p,ns:r,handleHoverExpand:y,handleExpand:T,handleClick:b,handleCheck:w,handleSelectCheck:_}}});function MY(e,t,n,r,a,i){const o=Rt("el-checkbox"),s=Rt("el-radio"),l=Rt("check"),u=Rt("el-icon"),c=Rt("node-content"),d=Rt("loading"),p=Rt("arrow-right");return x(),U("li",{id:`${e.menuId}-${e.node.uid}`,role:"menuitem","aria-haspopup":!e.isLeaf,"aria-owns":e.isLeaf?void 0:e.menuId,"aria-expanded":e.inExpandingPath,tabindex:e.expandable?-1:void 0,class:F([e.ns.b(),e.ns.is("selectable",e.checkStrictly),e.ns.is("active",e.node.checked),e.ns.is("disabled",!e.expandable),e.inExpandingPath&&"in-active-path",e.inCheckedPath&&"in-checked-path"]),onMouseenter:e.handleHoverExpand,onFocus:e.handleHoverExpand,onClick:e.handleClick},[oe(" prefix "),e.multiple?(x(),he(o,{key:0,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:e.isDisabled,onClick:ft(()=>{},["stop"]),"onUpdate:modelValue":e.handleSelectCheck},null,8,["model-value","indeterminate","disabled","onClick","onUpdate:modelValue"])):e.checkStrictly?(x(),he(s,{key:1,"model-value":e.checkedNodeId,label:e.node.uid,disabled:e.isDisabled,"onUpdate:modelValue":e.handleSelectCheck,onClick:ft(()=>{},["stop"])},{default:P(()=>[oe(`
Add an empty element to avoid render label,
do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485
`),M("span")]),_:1},8,["model-value","label","disabled","onUpdate:modelValue","onClick"])):e.isLeaf&&e.node.checked?(x(),he(u,{key:2,class:F(e.ns.e("prefix"))},{default:P(()=>[E(l)]),_:1},8,["class"])):oe("v-if",!0),oe(" content "),E(c),oe(" postfix "),e.isLeaf?oe("v-if",!0):(x(),U(Ge,{key:3},[e.node.loading?(x(),he(u,{key:0,class:F([e.ns.is("loading"),e.ns.e("postfix")])},{default:P(()=>[E(d)]),_:1},8,["class"])):(x(),he(u,{key:1,class:F(["arrow-right",e.ns.e("postfix")])},{default:P(()=>[E(p)]),_:1},8,["class"]))],64))],42,["id","aria-haspopup","aria-owns","aria-expanded","tabindex","onMouseenter","onFocus","onClick"])}var RY=He(OY,[["render",MY],["__file","node.vue"]]);const LY=J({name:"ElCascaderMenu",components:{Loading:ao,ElIcon:et,ElScrollbar:fo,ElCascaderNode:RY},props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0}},setup(e){const t=Mt(),n=Le("cascader-menu"),{t:r}=Kt(),a=wr();let i=null,o=null;const s=Qe(L1),l=z(null),u=k(()=>!e.nodes.length),c=k(()=>!s.initialLoaded),d=k(()=>`${a.value}-${e.index}`),p=g=>{i=g.target},h=g=>{if(!(!s.isHoverMenu||!i||!l.value))if(i.contains(g.target)){v();const y=t.vnode.el,{left:T}=y.getBoundingClientRect(),{offsetWidth:b,offsetHeight:_}=y,w=g.clientX-T,S=i.offsetTop,A=S+i.offsetHeight;l.value.innerHTML=`
<path style="pointer-events: auto;" fill="transparent" d="M${w} ${S} L${b} 0 V${S} Z" />
<path style="pointer-events: auto;" fill="transparent" d="M${w} ${A} L${b} ${_} V${A} Z" />
`}else o||(o=window.setTimeout(m,s.config.hoverThreshold))},v=()=>{o&&(clearTimeout(o),o=null)},m=()=>{l.value&&(l.value.innerHTML="",v())};return{ns:n,panel:s,hoverZone:l,isEmpty:u,isLoading:c,menuId:d,t:r,handleExpand:p,handleMouseMove:h,clearHoverZone:m}}});function NY(e,t,n,r,a,i){const o=Rt("el-cascader-node"),s=Rt("loading"),l=Rt("el-icon"),u=Rt("el-scrollbar");return x(),he(u,{key:e.menuId,tag:"ul",role:"menu",class:F(e.ns.b()),"wrap-class":e.ns.e("wrap"),"view-class":[e.ns.e("list"),e.ns.is("empty",e.isEmpty)],onMousemove:e.handleMouseMove,onMouseleave:e.clearHoverZone},{default:P(()=>{var c;return[(x(!0),U(Ge,null,mt(e.nodes,d=>(x(),he(o,{key:d.uid,node:d,"menu-id":e.menuId,onExpand:e.handleExpand},null,8,["node","menu-id","onExpand"]))),128)),e.isLoading?(x(),U("div",{key:0,class:F(e.ns.e("empty-text"))},[E(l,{size:"14",class:F(e.ns.is("loading"))},{default:P(()=>[E(s)]),_:1},8,["class"]),we(" "+de(e.t("el.cascader.loading")),1)],2)):e.isEmpty?(x(),U("div",{key:1,class:F(e.ns.e("empty-text"))},[fe(e.$slots,"empty",{},()=>[we(de(e.t("el.cascader.noData")),1)])],2)):(c=e.panel)!=null&&c.isHoverMenu?(x(),U(Ge,{key:2},[oe(" eslint-disable-next-line vue/html-self-closing "),(x(),U("svg",{ref:"hoverZone",class:F(e.ns.e("hover-zone"))},null,2))],2112)):oe("v-if",!0)]}),_:3},8,["class","wrap-class","view-class","onMousemove","onMouseleave"])}var FY=He(LY,[["render",NY],["__file","menu.vue"]]);const N1=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),Wi=e=>Jf(e);let $Y=0;const BY=e=>{const t=[e];let{parent:n}=e;for(;n;)t.unshift(n),n=n.parent;return t};let Ny=class Fy{constructor(t,n,r,a=!1){this.data=t,this.config=n,this.parent=r,this.root=a,this.uid=$Y++,this.checked=!1,this.indeterminate=!1,this.loading=!1;const{value:i,label:o,children:s}=n,l=t[s],u=BY(this);this.level=a?0:r?r.level+1:1,this.value=t[i],this.label=t[o],this.pathNodes=u,this.pathValues=u.map(c=>c.value),this.pathLabels=u.map(c=>c.label),this.childrenData=l,this.children=(l||[]).map(c=>new Fy(c,n,this)),this.loaded=!n.lazy||this.isLeaf||!Oa(l)}get isDisabled(){const{data:t,parent:n,config:r}=this,{disabled:a,checkStrictly:i}=r;return(ot(a)?a(t,this):!!t[a])||!i&&(n==null?void 0:n.isDisabled)}get isLeaf(){const{data:t,config:n,childrenData:r,loaded:a}=this,{lazy:i,leaf:o}=n,s=ot(o)?o(t,this):t[o];return Xt(s)?i&&!a?!1:!(Be(r)&&r.length):!!s}get valueByOption(){return this.config.emitPath?this.pathValues:this.value}appendChild(t){const{childrenData:n,children:r}=this,a=new Fy(t,this.config,this);return Be(n)?n.push(t):this.childrenData=[t],r.push(a),a}calcText(t,n){const r=t?this.pathLabels.join(n):this.label;return this.text=r,r}broadcast(t,...n){const r=`onParent${Wi(t)}`;this.children.forEach(a=>{a&&(a.broadcast(t,...n),a[r]&&a[r](...n))})}emit(t,...n){const{parent:r}=this,a=`onChild${Wi(t)}`;r&&(r[a]&&r[a](...n),r.emit(t,...n))}onParentCheck(t){this.isDisabled||this.setCheckState(t)}onChildCheck(){const{children:t}=this,n=t.filter(a=>!a.isDisabled),r=n.length?n.every(a=>a.checked):!1;this.setCheckState(r)}setCheckState(t){const n=this.children.length,r=this.children.reduce((a,i)=>{const o=i.checked?1:i.indeterminate?.5:0;return a+o},0);this.checked=this.loaded&&this.children.filter(a=>!a.isDisabled).every(a=>a.loaded&&a.checked)&&t,this.indeterminate=this.loaded&&r!==n&&r>0}doCheck(t){if(this.checked===t)return;const{checkStrictly:n,multiple:r}=this.config;n||!r?this.checked=t:(this.broadcast("check",t),this.setCheckState(t),this.emit("check"))}};const $y=(e,t)=>e.reduce((n,r)=>(r.isLeaf?n.push(r):(!t&&n.push(r),n=n.concat($y(r.children,t))),n),[]);class KC{constructor(t,n){this.config=n;const r=(t||[]).map(a=>new Ny(a,this.config));this.nodes=r,this.allNodes=$y(r,!1),this.leafNodes=$y(r,!0)}getNodes(){return this.nodes}getFlattedNodes(t){return t?this.leafNodes:this.allNodes}appendNode(t,n){const r=n?n.appendChild(t):new Ny(t,this.config);n||this.nodes.push(r),this.appendAllNodesAndLeafNodes(r)}appendNodes(t,n){t.forEach(r=>this.appendNode(r,n))}appendAllNodesAndLeafNodes(t){this.allNodes.push(t),t.isLeaf&&this.leafNodes.push(t),t.children&&t.children.forEach(n=>{this.appendAllNodesAndLeafNodes(n)})}getNodeByValue(t,n=!1){return!t&&t!==0?null:this.getFlattedNodes(n).find(a=>pr(a.value,t)||pr(a.pathValues,t))||null}getSameNode(t){return t&&this.getFlattedNodes(!1).find(({value:r,level:a})=>pr(t.value,r)&&t.level===a)||null}}const QP=Ue({modelValue:{type:ue([Number,String,Array])},options:{type:ue(Array),default:()=>[]},props:{type:ue(Object),default:()=>({})}}),VY={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:nn,value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500},UY=e=>k(()=>({...VY,...e.props})),qC=e=>{if(!e)return 0;const t=e.id.split("-");return Number(t[t.length-2])},HY=e=>{if(!e)return;const t=e.querySelector("input");t?t.click():ZI(e)&&e.click()},zY=(e,t)=>{const n=t.slice(0),r=n.map(i=>i.uid),a=e.reduce((i,o)=>{const s=r.indexOf(o.uid);return s>-1&&(i.push(o),n.splice(s,1),r.splice(s,1)),i},[]);return a.push(...n),a},GC=e=>[...new Set(e)],ea=e=>!e&&e!==0?[]:Be(e)?e:[e],jY=J({name:"ElCascaderPanel",components:{ElCascaderMenu:FY},props:{...QP,border:{type:Boolean,default:!0},renderLabel:Function},emits:[_t,$t,"close","expand-change"],setup(e,{emit:t,slots:n}){let r=!1;const a=Le("cascader"),i=UY(e);let o=null;const s=z(!0),l=z([]),u=z(null),c=z([]),d=z(null),p=z([]),h=k(()=>i.value.expandTrigger==="hover"),v=k(()=>e.renderLabel||n.default),m=()=>{const{options:N}=e,K=i.value;r=!1,o=new KC(N,K),c.value=[o.getNodes()],K.lazy&&Oa(e.options)?(s.value=!1,g(void 0,Y=>{Y&&(o=new KC(Y,K),c.value=[o.getNodes()]),s.value=!0,I(!1,!0)})):I(!1,!0)},g=(N,K)=>{const Y=i.value;N=N||new Ny({},Y,void 0,!0),N.loading=!0;const q=$=>{const j=N,W=j.root?null:j;$&&(o==null||o.appendNodes($,W)),j.loading=!1,j.loaded=!0,j.childrenData=j.childrenData||[],K&&K($)};Y.lazyLoad(N,q)},y=(N,K)=>{var Y;const{level:q}=N,$=c.value.slice(0,q);let j;N.isLeaf?j=N.pathNodes[q-2]:(j=N,$.push(N.children)),((Y=d.value)==null?void 0:Y.uid)!==(j==null?void 0:j.uid)&&(d.value=N,c.value=$,!K&&t("expand-change",(N==null?void 0:N.pathValues)||[]))},T=(N,K,Y=!0)=>{const{checkStrictly:q,multiple:$}=i.value,j=p.value[0];r=!0,!$&&(j==null||j.doCheck(!1)),N.doCheck(K),A(),Y&&!$&&!q&&t("close"),!Y&&!$&&!q&&b(N)},b=N=>{N&&(N=N.parent,b(N),N&&y(N))},_=N=>o==null?void 0:o.getFlattedNodes(N),w=N=>{var K;return(K=_(N))==null?void 0:K.filter(Y=>Y.checked!==!1)},S=()=>{p.value.forEach(N=>N.doCheck(!1)),A(),c.value=c.value.slice(0,1),d.value=null,t("expand-change",[])},A=()=>{var N;const{checkStrictly:K,multiple:Y}=i.value,q=p.value,$=w(!K),j=zY(q,$),W=j.map(H=>H.valueByOption);p.value=j,u.value=Y?W:(N=W[0])!=null?N:null},I=(N=!1,K=!1)=>{const{modelValue:Y}=e,{lazy:q,multiple:$,checkStrictly:j}=i.value,W=!j;if(!(!s.value||r||!K&&pr(Y,u.value)))if(q&&!N){const X=GC(cH(ea(Y))).map(re=>o==null?void 0:o.getNodeByValue(re)).filter(re=>!!re&&!re.loaded&&!re.loading);X.length?X.forEach(re=>{g(re,()=>I(!1,K))}):I(!0,K)}else{const H=$?ea(Y):[Y],X=GC(H.map(re=>o==null?void 0:o.getNodeByValue(re,W)));D(X,K),u.value=ym(Y)}},D=(N,K=!0)=>{const{checkStrictly:Y}=i.value,q=p.value,$=N.filter(H=>!!H&&(Y||H.isLeaf)),j=o==null?void 0:o.getSameNode(d.value),W=K&&j||$[0];W?W.pathNodes.forEach(H=>y(H,!0)):d.value=null,q.forEach(H=>H.doCheck(!1)),Ct($).forEach(H=>H.doCheck(!0)),p.value=$,it(O)},O=()=>{Wt&&l.value.forEach(N=>{const K=N==null?void 0:N.$el;if(K){const Y=K.querySelector(`.${a.namespace.value}-scrollbar__wrap`),q=K.querySelector(`.${a.b("node")}.${a.is("active")}`)||K.querySelector(`.${a.b("node")}.in-active-path`);o1(Y,q)}})},V=N=>{const K=N.target,{code:Y}=N;switch(Y){case Ye.up:case Ye.down:{N.preventDefault();const q=Y===Ye.up?-1:1;Rh(eP(K,q,`.${a.b("node")}[tabindex="-1"]`));break}case Ye.left:{N.preventDefault();const q=l.value[qC(K)-1],$=q==null?void 0:q.$el.querySelector(`.${a.b("node")}[aria-expanded="true"]`);Rh($);break}case Ye.right:{N.preventDefault();const q=l.value[qC(K)+1],$=q==null?void 0:q.$el.querySelector(`.${a.b("node")}[tabindex="-1"]`);Rh($);break}case Ye.enter:case Ye.numpadEnter:HY(K);break}};return Vt(L1,Ct({config:i,expandingNode:d,checkedNodes:p,isHoverMenu:h,initialLoaded:s,renderLabelFn:v,lazyLoad:g,expandNode:y,handleCheckChange:T})),Ie([i,()=>e.options],m,{deep:!0,immediate:!0}),Ie(()=>e.modelValue,()=>{r=!1,I()},{deep:!0}),Ie(()=>u.value,N=>{pr(N,e.modelValue)||(t(_t,N),t($t,N))}),XA(()=>l.value=[]),ht(()=>!Oa(e.modelValue)&&I()),{ns:a,menuList:l,menus:c,checkedNodes:p,handleKeyDown:V,handleCheckChange:T,getFlattedNodes:_,getCheckedNodes:w,clearCheckedNodes:S,calculateCheckedValue:A,scrollToExpandingNode:O}}});function WY(e,t,n,r,a,i){const o=Rt("el-cascader-menu");return x(),U("div",{class:F([e.ns.b("panel"),e.ns.is("bordered",e.border)]),onKeydown:e.handleKeyDown},[(x(!0),U(Ge,null,mt(e.menus,(s,l)=>(x(),he(o,{key:l,ref_for:!0,ref:u=>e.menuList[l]=u,index:l,nodes:[...s]},{empty:P(()=>[fe(e.$slots,"empty")]),_:2},1032,["index","nodes"]))),128))],42,["onKeydown"])}var KY=He(jY,[["render",WY],["__file","index.vue"]]);const JP=Et(KY),jo=Ue({type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:String,size:{type:String,values:uo},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),qY={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},GY=J({name:"ElTag"}),YY=J({...GY,props:jo,emits:qY,setup(e,{emit:t}){const n=e,r=Kn(),a=Le("tag"),i=k(()=>{const{type:u,hit:c,effect:d,closable:p,round:h}=n;return[a.b(),a.is("closable",p),a.m(u||"primary"),a.m(r.value),a.m(d),a.is("hit",c),a.is("round",h)]}),o=u=>{t("close",u)},s=u=>{t("click",u)},l=u=>{var c,d,p;(p=(d=(c=u==null?void 0:u.component)==null?void 0:c.subTree)==null?void 0:d.component)!=null&&p.bum&&(u.component.subTree.component.bum=null)};return(u,c)=>u.disableTransitions?(x(),U("span",{key:0,class:F(f(i)),style:tt({backgroundColor:u.color}),onClick:s},[M("span",{class:F(f(a).e("content"))},[fe(u.$slots,"default")],2),u.closable?(x(),he(f(et),{key:0,class:F(f(a).e("close")),onClick:ft(o,["stop"])},{default:P(()=>[E(f(Ci))]),_:1},8,["class","onClick"])):oe("v-if",!0)],6)):(x(),he(lr,{key:1,name:`${f(a).namespace.value}-zoom-in-center`,appear:"",onVnodeMounted:l},{default:P(()=>[M("span",{class:F(f(i)),style:tt({backgroundColor:u.color}),onClick:s},[M("span",{class:F(f(a).e("content"))},[fe(u.$slots,"default")],2),u.closable?(x(),he(f(et),{key:0,class:F(f(a).e("close")),onClick:ft(o,["stop"])},{default:P(()=>[E(f(Ci))]),_:1},8,["class","onClick"])):oe("v-if",!0)],6)]),_:3},8,["name"]))}});var XY=He(YY,[["__file","tag.vue"]]);const ai=Et(XY),QY=Ue({...QP,size:Xn,placeholder:String,disabled:Boolean,clearable:Boolean,filterable:Boolean,filterMethod:{type:ue(Function),default:(e,t)=>e.text.includes(t)},separator:{type:String,default:" / "},showAllLevels:{type:Boolean,default:!0},collapseTags:Boolean,maxCollapseTags:{type:Number,default:1},collapseTagsTooltip:{type:Boolean,default:!1},debounce:{type:Number,default:300},beforeFilter:{type:ue(Function),default:()=>!0},placement:{type:ue(String),values:as,default:"bottom-start"},fallbackPlacements:{type:ue(Array),default:["bottom-start","bottom","top-start","top","right","left"]},popperClass:{type:String,default:""},teleported:dr.teleported,tagType:{...jo.type,default:"info"},tagEffect:{...jo.effect,default:"light"},validateEvent:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},...Mc}),JY={[_t]:e=>!0,[$t]:e=>!0,focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,visibleChange:e=>pn(e),expandChange:e=>!!e,removeTag:e=>!!e},gs=new Map;if(Wt){let e;document.addEventListener("mousedown",t=>e=t),document.addEventListener("mouseup",t=>{if(e){for(const n of gs.values())for(const{documentHandler:r}of n)r(t,e);e=void 0}})}function YC(e,t){let n=[];return Be(t.arg)?n=t.arg:oa(t.arg)&&n.push(t.arg),function(r,a){const i=t.instance.popperRef,o=r.target,s=a==null?void 0:a.target,l=!t||!t.instance,u=!o||!s,c=e.contains(o)||e.contains(s),d=e===o,p=n.length&&n.some(v=>v==null?void 0:v.contains(o))||n.length&&n.includes(s),h=i&&(i.contains(o)||i.contains(s));l||u||c||d||p||h||t.value(r,a)}}const Wo={beforeMount(e,t){gs.has(e)||gs.set(e,[]),gs.get(e).push({documentHandler:YC(e,t),bindingFn:t.value})},updated(e,t){gs.has(e)||gs.set(e,[]);const n=gs.get(e),r=n.findIndex(i=>i.bindingFn===t.oldValue),a={documentHandler:YC(e,t),bindingFn:t.value};r>=0?n.splice(r,1,a):n.push(a)},unmounted(e){gs.delete(e)}},ZY="ElCascader",eX=J({name:ZY}),tX=J({...eX,props:QY,emits:JY,setup(e,{expose:t,emit:n}){const r=e,a={modifiers:[{name:"arrowPosition",enabled:!0,phase:"main",fn:({state:ce})=>{const{modifiersData:Me,placement:ae}=ce;["right","left","bottom","top"].includes(ae)||(Me.arrow.x=35)},requires:["arrow"]}]},i=es();let o=0,s=0;const l=Le("cascader"),u=Le("input"),{t:c}=Kt(),{form:d,formItem:p}=Or(),{valueOnClear:h}=Mv(r),{isComposing:v,handleComposition:m}=dp({afterComposition(ce){var Me;const ae=(Me=ce.target)==null?void 0:Me.value;dt(ae)}}),g=z(null),y=z(null),T=z(null),b=z(null),_=z(null),w=z(!1),S=z(!1),A=z(!1),I=z(!1),D=z(""),O=z(""),V=z([]),N=z([]),K=z([]),Y=k(()=>i.style),q=k(()=>r.disabled||(d==null?void 0:d.disabled)),$=k(()=>r.placeholder||c("el.cascader.placeholder")),j=k(()=>O.value||V.value.length>0||v.value?"":$.value),W=Kn(),H=k(()=>W.value==="small"?"small":"default"),X=k(()=>!!r.props.multiple),re=k(()=>!r.filterable||X.value),le=k(()=>X.value?O.value:D.value),ne=k(()=>{var ce;return((ce=b.value)==null?void 0:ce.checkedNodes)||[]}),be=k(()=>!r.clearable||q.value||A.value||!S.value?!1:!!ne.value.length),_e=k(()=>{const{showAllLevels:ce,separator:Me}=r,ae=ne.value;return ae.length?X.value?"":ae[0].calcText(ce,Me):""}),ve=k(()=>(p==null?void 0:p.validateState)||""),te=k({get(){return ym(r.modelValue)},set(ce){const Me=ce??h.value;n(_t,Me),n($t,Me),r.validateEvent&&(p==null||p.validate("change").catch(ae=>void 0))}}),me=k(()=>[l.b(),l.m(W.value),l.is("disabled",q.value),i.class]),pe=k(()=>[u.e("icon"),"icon-arrow-down",l.is("reverse",w.value)]),Fe=k(()=>l.is("focus",w.value||I.value)),Pe=k(()=>{var ce,Me;return(Me=(ce=g.value)==null?void 0:ce.popperRef)==null?void 0:Me.contentRef}),ye=ce=>{var Me,ae,We;q.value||(ce=ce??!w.value,ce!==w.value&&(w.value=ce,(ae=(Me=y.value)==null?void 0:Me.input)==null||ae.setAttribute("aria-expanded",`${ce}`),ce?(Z(),it((We=b.value)==null?void 0:We.scrollToExpandingNode)):r.filterable&&Xe(),n("visibleChange",ce)))},Z=()=>{it(()=>{var ce;(ce=g.value)==null||ce.updatePopper()})},ie=()=>{A.value=!1},Ce=ce=>{const{showAllLevels:Me,separator:ae}=r;return{node:ce,key:ce.uid,text:ce.calcText(Me,ae),hitState:!1,closable:!q.value&&!ce.isDisabled,isCollapseTag:!1}},$e=ce=>{var Me;const ae=ce.node;ae.doCheck(!1),(Me=b.value)==null||Me.calculateCheckedValue(),n("removeTag",ae.valueByOption)},Se=()=>{if(!X.value)return;const ce=ne.value,Me=[],ae=[];if(ce.forEach(We=>ae.push(Ce(We))),N.value=ae,ce.length){ce.slice(0,r.maxCollapseTags).forEach(kt=>Me.push(Ce(kt)));const We=ce.slice(r.maxCollapseTags),St=We.length;St&&(r.collapseTags?Me.push({key:-1,text:`+ ${St}`,closable:!1,isCollapseTag:!0}):We.forEach(kt=>Me.push(Ce(kt))))}V.value=Me},De=()=>{var ce,Me;const{filterMethod:ae,showAllLevels:We,separator:St}=r,kt=(Me=(ce=b.value)==null?void 0:ce.getFlattedNodes(!r.props.checkStrictly))==null?void 0:Me.filter(mn=>mn.isDisabled?!1:(mn.calcText(We,St),ae(mn,le.value)));X.value&&(V.value.forEach(mn=>{mn.hitState=!1}),N.value.forEach(mn=>{mn.hitState=!1})),A.value=!0,K.value=kt,Z()},xe=()=>{var ce;let Me;A.value&&_.value?Me=_.value.$el.querySelector(`.${l.e("suggestion-item")}`):Me=(ce=b.value)==null?void 0:ce.$el.querySelector(`.${l.b("node")}[tabindex="-1"]`),Me&&(Me.focus(),!A.value&&Me.click())},Ve=()=>{var ce,Me;const ae=(ce=y.value)==null?void 0:ce.input,We=T.value,St=(Me=_.value)==null?void 0:Me.$el;if(!(!Wt||!ae)){if(St){const kt=St.querySelector(`.${l.e("suggestion-list")}`);kt.style.minWidth=`${ae.offsetWidth}px`}if(We){const{offsetHeight:kt}=We,mn=V.value.length>0?`${Math.max(kt,o)-2}px`:`${o}px`;ae.style.height=mn,Z()}}},ze=ce=>{var Me;return(Me=b.value)==null?void 0:Me.getCheckedNodes(ce)},je=ce=>{Z(),n("expandChange",ce)},nt=ce=>{if(!v.value)switch(ce.code){case Ye.enter:case Ye.numpadEnter:ye();break;case Ye.down:ye(!0),it(xe),ce.preventDefault();break;case Ye.esc:w.value===!0&&(ce.preventDefault(),ce.stopPropagation(),ye(!1));break;case Ye.tab:ye(!1);break}},Ae=()=>{var ce;(ce=b.value)==null||ce.clearCheckedNodes(),!w.value&&r.filterable&&Xe(),ye(!1),n("clear")},Xe=()=>{const{value:ce}=_e;D.value=ce,O.value=ce},ct=ce=>{var Me,ae;const{checked:We}=ce;X.value?(Me=b.value)==null||Me.handleCheckChange(ce,!We,!1):(!We&&((ae=b.value)==null||ae.handleCheckChange(ce,!0,!1)),ye(!1))},Dt=ce=>{const Me=ce.target,{code:ae}=ce;switch(ae){case Ye.up:case Ye.down:{ce.preventDefault();const We=ae===Ye.up?-1:1;Rh(eP(Me,We,`.${l.e("suggestion-item")}[tabindex="-1"]`));break}case Ye.enter:case Ye.numpadEnter:Me.click();break}},Pt=()=>{const ce=V.value,Me=ce[ce.length-1];s=O.value?0:s+1,!(!Me||!s||r.collapseTags&&ce.length>1)&&(Me.hitState?$e(Me):Me.hitState=!0)},Bt=ce=>{const Me=ce.target,ae=l.e("search-input");Me.className===ae&&(I.value=!0),n("focus",ce)},Ut=ce=>{I.value=!1,n("blur",ce)},Nt=wa(()=>{const{value:ce}=le;if(!ce)return;const Me=r.beforeFilter(ce);af(Me)?Me.then(De).catch(()=>{}):Me!==!1?De():ie()},r.debounce),dt=(ce,Me)=>{!w.value&&ye(!0),!(Me!=null&&Me.isComposing)&&(ce?Nt():ie())},Oe=ce=>Number.parseFloat(XH(u.cssVarName("input-height"),ce).value)-2;return Ie(A,Z),Ie([ne,q,()=>r.collapseTags],Se),Ie(V,()=>{it(()=>Ve())}),Ie(W,async()=>{await it();const ce=y.value.input;o=Oe(ce)||o,Ve()}),Ie(_e,Xe,{immediate:!0}),ht(()=>{const ce=y.value.input,Me=Oe(ce);o=ce.offsetHeight||Me,In(ce,Ve)}),t({getCheckedNodes:ze,cascaderPanelRef:b,togglePopperVisible:ye,contentRef:Pe,presentText:_e}),(ce,Me)=>(x(),he(f(ar),{ref_key:"tooltipRef",ref:g,visible:w.value,teleported:ce.teleported,"popper-class":[f(l).e("dropdown"),ce.popperClass],"popper-options":a,"fallback-placements":ce.fallbackPlacements,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,placement:ce.placement,transition:`${f(l).namespace.value}-zoom-in-top`,effect:"light",pure:"",persistent:ce.persistent,onHide:ie},{default:P(()=>[gt((x(),U("div",{class:F(f(me)),style:tt(f(Y)),onClick:()=>ye(f(re)?void 0:!0),onKeydown:nt,onMouseenter:ae=>S.value=!0,onMouseleave:ae=>S.value=!1},[E(f(Wn),{ref_key:"input",ref:y,modelValue:D.value,"onUpdate:modelValue":ae=>D.value=ae,placeholder:f(j),readonly:f(re),disabled:f(q),"validate-event":!1,size:f(W),class:F(f(Fe)),tabindex:f(X)&&ce.filterable&&!f(q)?-1:void 0,onCompositionstart:f(m),onCompositionupdate:f(m),onCompositionend:f(m),onFocus:Bt,onBlur:Ut,onInput:dt},Ua({suffix:P(()=>[f(be)?(x(),he(f(et),{key:"clear",class:F([f(u).e("icon"),"icon-circle-close"]),onClick:ft(Ae,["stop"])},{default:P(()=>[E(f(rs))]),_:1},8,["class","onClick"])):(x(),he(f(et),{key:"arrow-down",class:F(f(pe)),onClick:ft(ae=>ye(),["stop"])},{default:P(()=>[E(f(co))]),_:1},8,["class","onClick"]))]),_:2},[ce.$slots.prefix?{name:"prefix",fn:P(()=>[fe(ce.$slots,"prefix")])}:void 0]),1032,["modelValue","onUpdate:modelValue","placeholder","readonly","disabled","size","class","tabindex","onCompositionstart","onCompositionupdate","onCompositionend"]),f(X)?(x(),U("div",{key:0,ref_key:"tagWrapper",ref:T,class:F([f(l).e("tags"),f(l).is("validate",!!f(ve))])},[(x(!0),U(Ge,null,mt(V.value,ae=>(x(),he(f(ai),{key:ae.key,type:ce.tagType,size:f(H),effect:ce.tagEffect,hit:ae.hitState,closable:ae.closable,"disable-transitions":"",onClose:We=>$e(ae)},{default:P(()=>[ae.isCollapseTag===!1?(x(),U("span",{key:0},de(ae.text),1)):(x(),he(f(ar),{key:1,disabled:w.value||!ce.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],placement:"bottom",effect:"light"},{default:P(()=>[M("span",null,de(ae.text),1)]),content:P(()=>[M("div",{class:F(f(l).e("collapse-tags"))},[(x(!0),U(Ge,null,mt(N.value.slice(ce.maxCollapseTags),(We,St)=>(x(),U("div",{key:St,class:F(f(l).e("collapse-tag"))},[(x(),he(f(ai),{key:We.key,class:"in-tooltip",type:ce.tagType,size:f(H),effect:ce.tagEffect,hit:We.hitState,closable:We.closable,"disable-transitions":"",onClose:kt=>$e(We)},{default:P(()=>[M("span",null,de(We.text),1)]),_:2},1032,["type","size","effect","hit","closable","onClose"]))],2))),128))],2)]),_:2},1032,["disabled"]))]),_:2},1032,["type","size","effect","hit","closable","onClose"]))),128)),ce.filterable&&!f(q)?gt((x(),U("input",{key:0,"onUpdate:modelValue":ae=>O.value=ae,type:"text",class:F(f(l).e("search-input")),placeholder:f(_e)?"":f($),onInput:ae=>dt(O.value,ae),onClick:ft(ae=>ye(!0),["stop"]),onKeydown:sn(Pt,["delete"]),onCompositionstart:f(m),onCompositionupdate:f(m),onCompositionend:f(m),onFocus:Bt,onBlur:Ut},null,42,["onUpdate:modelValue","placeholder","onInput","onClick","onKeydown","onCompositionstart","onCompositionupdate","onCompositionend"])),[[no,O.value]]):oe("v-if",!0)],2)):oe("v-if",!0)],46,["onClick","onMouseenter","onMouseleave"])),[[f(Wo),()=>ye(!1),f(Pe)]])]),content:P(()=>[gt(E(f(JP),{ref_key:"cascaderPanelRef",ref:b,modelValue:f(te),"onUpdate:modelValue":ae=>yn(te)?te.value=ae:null,options:ce.options,props:r.props,border:!1,"render-label":ce.$slots.default,onExpandChange:je,onClose:ae=>ce.$nextTick(()=>ye(!1))},{empty:P(()=>[fe(ce.$slots,"empty")]),_:3},8,["modelValue","onUpdate:modelValue","options","props","render-label","onClose"]),[[zt,!A.value]]),ce.filterable?gt((x(),he(f(fo),{key:0,ref_key:"suggestionPanel",ref:_,tag:"ul",class:F(f(l).e("suggestion-panel")),"view-class":f(l).e("suggestion-list"),onKeydown:Dt},{default:P(()=>[K.value.length?(x(!0),U(Ge,{key:0},mt(K.value,ae=>(x(),U("li",{key:ae.uid,class:F([f(l).e("suggestion-item"),f(l).is("checked",ae.checked)]),tabindex:-1,onClick:We=>ct(ae)},[fe(ce.$slots,"suggestion-item",{item:ae},()=>[M("span",null,de(ae.text),1),ae.checked?(x(),he(f(et),{key:0},{default:P(()=>[E(f(sp))]),_:1})):oe("v-if",!0)])],10,["onClick"]))),128)):fe(ce.$slots,"empty",{key:1},()=>[M("li",{class:F(f(l).e("empty-text"))},de(f(c)("el.cascader.noMatch")),3)])]),_:3},8,["class","view-class"])),[[zt,A.value]]):oe("v-if",!0)]),_:3},8,["visible","teleported","popper-class","fallback-placements","placement","transition","persistent"]))}});var nX=He(tX,[["__file","cascader.vue"]]);const rX=Et(nX),aX=Ue({checked:Boolean,disabled:Boolean,type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"}}),iX={"update:checked":e=>pn(e),[$t]:e=>pn(e)},oX=J({name:"ElCheckTag"}),sX=J({...oX,props:aX,emits:iX,setup(e,{emit:t}){const n=e,r=Le("check-tag"),a=k(()=>n.disabled),i=k(()=>[r.b(),r.is("checked",n.checked),r.is("disabled",a.value),r.m(n.type||"primary")]),o=()=>{if(a.value)return;const s=!n.checked;t($t,s),t("update:checked",s)};return(s,l)=>(x(),U("span",{class:F(f(i)),onClick:o},[fe(s.$slots,"default")],2))}});var lX=He(sX,[["__file","check-tag.vue"]]);const uX=Et(lX),cX=Ue({tag:{type:String,default:"div"},span:{type:Number,default:24},offset:{type:Number,default:0},pull:{type:Number,default:0},push:{type:Number,default:0},xs:{type:ue([Number,Object]),default:()=>Pn({})},sm:{type:ue([Number,Object]),default:()=>Pn({})},md:{type:ue([Number,Object]),default:()=>Pn({})},lg:{type:ue([Number,Object]),default:()=>Pn({})},xl:{type:ue([Number,Object]),default:()=>Pn({})}}),ZP=Symbol("rowContextKey"),dX=J({name:"ElCol"}),fX=J({...dX,props:cX,setup(e){const t=e,{gutter:n}=Qe(ZP,{gutter:k(()=>0)}),r=Le("col"),a=k(()=>{const o={};return n.value&&(o.paddingLeft=o.paddingRight=`${n.value/2}px`),o}),i=k(()=>{const o=[];return["span","offset","pull","push"].forEach(u=>{const c=t[u];st(c)&&(u==="span"?o.push(r.b(`${t[u]}`)):c>0&&o.push(r.b(`${u}-${t[u]}`)))}),["xs","sm","md","lg","xl"].forEach(u=>{st(t[u])?o.push(r.b(`${u}-${t[u]}`)):It(t[u])&&Object.entries(t[u]).forEach(([c,d])=>{o.push(c!=="span"?r.b(`${u}-${c}-${d}`):r.b(`${u}-${d}`))})}),n.value&&o.push(r.is("guttered")),[r.b(),o]});return(o,s)=>(x(),he(Lt(o.tag),{class:F(f(i)),style:tt(f(a))},{default:P(()=>[fe(o.$slots,"default")]),_:3},8,["class","style"]))}});var pX=He(fX,[["__file","col.vue"]]);const eO=Et(pX),XC=e=>st(e)||rt(e)||Be(e),hX=Ue({accordion:Boolean,modelValue:{type:ue([Array,String,Number]),default:()=>Pn([])}}),mX={[_t]:XC,[$t]:XC},tO=Symbol("collapseContextKey"),vX=(e,t)=>{const n=z($r(e.modelValue)),r=i=>{n.value=i;const o=e.accordion?n.value[0]:n.value;t(_t,o),t($t,o)},a=i=>{if(e.accordion)r([n.value[0]===i?"":i]);else{const o=[...n.value],s=o.indexOf(i);s>-1?o.splice(s,1):o.push(i),r(o)}};return Ie(()=>e.modelValue,()=>n.value=$r(e.modelValue),{deep:!0}),Vt(tO,{activeNames:n,handleItemClick:a}),{activeNames:n,setActiveNames:r}},gX=()=>{const e=Le("collapse");return{rootKls:k(()=>e.b())}},yX=J({name:"ElCollapse"}),bX=J({...yX,props:hX,emits:mX,setup(e,{expose:t,emit:n}){const r=e,{activeNames:a,setActiveNames:i}=vX(r,n),{rootKls:o}=gX();return t({activeNames:a,setActiveNames:i}),(s,l)=>(x(),U("div",{class:F(f(o))},[fe(s.$slots,"default")],2))}});var _X=He(bX,[["__file","collapse.vue"]]);const TX=J({name:"ElCollapseTransition"}),wX=J({...TX,setup(e){const t=Le("collapse-transition"),n=a=>{a.style.maxHeight="",a.style.overflow=a.dataset.oldOverflow,a.style.paddingTop=a.dataset.oldPaddingTop,a.style.paddingBottom=a.dataset.oldPaddingBottom},r={beforeEnter(a){a.dataset||(a.dataset={}),a.dataset.oldPaddingTop=a.style.paddingTop,a.dataset.oldPaddingBottom=a.style.paddingBottom,a.style.height&&(a.dataset.elExistsHeight=a.style.height),a.style.maxHeight=0,a.style.paddingTop=0,a.style.paddingBottom=0},enter(a){requestAnimationFrame(()=>{a.dataset.oldOverflow=a.style.overflow,a.dataset.elExistsHeight?a.style.maxHeight=a.dataset.elExistsHeight:a.scrollHeight!==0?a.style.maxHeight=`${a.scrollHeight}px`:a.style.maxHeight=0,a.style.paddingTop=a.dataset.oldPaddingTop,a.style.paddingBottom=a.dataset.oldPaddingBottom,a.style.overflow="hidden"})},afterEnter(a){a.style.maxHeight="",a.style.overflow=a.dataset.oldOverflow},enterCancelled(a){n(a)},beforeLeave(a){a.dataset||(a.dataset={}),a.dataset.oldPaddingTop=a.style.paddingTop,a.dataset.oldPaddingBottom=a.style.paddingBottom,a.dataset.oldOverflow=a.style.overflow,a.style.maxHeight=`${a.scrollHeight}px`,a.style.overflow="hidden"},leave(a){a.scrollHeight!==0&&(a.style.maxHeight=0,a.style.paddingTop=0,a.style.paddingBottom=0)},afterLeave(a){n(a)},leaveCancelled(a){n(a)}};return(a,i)=>(x(),he(lr,Ft({name:f(t).b()},GF(r)),{default:P(()=>[fe(a.$slots,"default")]),_:3},16,["name"]))}});var SX=He(wX,[["__file","collapse-transition.vue"]]);const hp=Et(SX),CX=Ue({title:{type:String,default:""},name:{type:ue([String,Number]),default:void 0},icon:{type:dn,default:sa},disabled:Boolean}),EX=e=>{const t=Qe(tO),{namespace:n}=Le("collapse"),r=z(!1),a=z(!1),i=y1(),o=k(()=>i.current++),s=k(()=>{var p;return(p=e.name)!=null?p:`${n.value}-id-${i.prefix}-${f(o)}`}),l=k(()=>t==null?void 0:t.activeNames.value.includes(f(s)));return{focusing:r,id:o,isActive:l,handleFocus:()=>{setTimeout(()=>{a.value?a.value=!1:r.value=!0},50)},handleHeaderClick:()=>{e.disabled||(t==null||t.handleItemClick(f(s)),r.value=!1,a.value=!0)},handleEnterClick:()=>{t==null||t.handleItemClick(f(s))}}},xX=(e,{focusing:t,isActive:n,id:r})=>{const a=Le("collapse"),i=k(()=>[a.b("item"),a.is("active",f(n)),a.is("disabled",e.disabled)]),o=k(()=>[a.be("item","header"),a.is("active",f(n)),{focusing:f(t)&&!e.disabled}]),s=k(()=>[a.be("item","arrow"),a.is("active",f(n))]),l=k(()=>a.be("item","wrap")),u=k(()=>a.be("item","content")),c=k(()=>a.b(`content-${f(r)}`)),d=k(()=>a.b(`head-${f(r)}`));return{arrowKls:s,headKls:o,rootKls:i,itemWrapperKls:l,itemContentKls:u,scopedContentId:c,scopedHeadId:d}},kX=J({name:"ElCollapseItem"}),AX=J({...kX,props:CX,setup(e,{expose:t}){const n=e,{focusing:r,id:a,isActive:i,handleFocus:o,handleHeaderClick:s,handleEnterClick:l}=EX(n),{arrowKls:u,headKls:c,rootKls:d,itemWrapperKls:p,itemContentKls:h,scopedContentId:v,scopedHeadId:m}=xX(n,{focusing:r,isActive:i,id:a});return t({isActive:i}),(g,y)=>(x(),U("div",{class:F(f(d))},[M("button",{id:f(m),class:F(f(c)),"aria-expanded":f(i),"aria-controls":f(v),"aria-describedby":f(v),tabindex:g.disabled?-1:0,type:"button",onClick:f(s),onKeydown:sn(ft(f(l),["stop","prevent"]),["space","enter"]),onFocus:f(o),onBlur:T=>r.value=!1},[fe(g.$slots,"title",{},()=>[we(de(g.title),1)]),fe(g.$slots,"icon",{isActive:f(i)},()=>[E(f(et),{class:F(f(u))},{default:P(()=>[(x(),he(Lt(g.icon)))]),_:1},8,["class"])])],42,["id","aria-expanded","aria-controls","aria-describedby","tabindex","onClick","onKeydown","onFocus","onBlur"]),E(f(hp),null,{default:P(()=>[gt(M("div",{id:f(v),role:"region",class:F(f(p)),"aria-hidden":!f(i),"aria-labelledby":f(m)},[M("div",{class:F(f(h))},[fe(g.$slots,"default")],2)],10,["id","aria-hidden","aria-labelledby"]),[[zt,f(i)]])]),_:3})],2))}});var nO=He(AX,[["__file","collapse-item.vue"]]);const DX=Et(_X,{CollapseItem:nO}),IX=On(nO),PX=Ue({color:{type:ue(Object),required:!0},vertical:{type:Boolean,default:!1}});let p0=!1;function Ef(e,t){if(!Wt)return;const n=function(i){var o;(o=t.drag)==null||o.call(t,i)},r=function(i){var o;document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",r),document.removeEventListener("touchmove",n),document.removeEventListener("touchend",r),document.onselectstart=null,document.ondragstart=null,p0=!1,(o=t.end)==null||o.call(t,i)},a=function(i){var o;p0||(i.preventDefault(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",n),document.addEventListener("mouseup",r),document.addEventListener("touchmove",n),document.addEventListener("touchend",r),p0=!0,(o=t.start)==null||o.call(t,i))};e.addEventListener("mousedown",a),e.addEventListener("touchstart",a,{passive:!1})}const OX=(e,t)=>{if(!Wt||!e||!t)return!1;const n=e.getBoundingClientRect();let r;return t instanceof Element?r=t.getBoundingClientRect():r={top:0,right:window.innerWidth,bottom:window.innerHeight,left:0},n.top<r.bottom&&n.bottom>r.top&&n.right>r.left&&n.left<r.right},QC=e=>{let t=0,n=e;for(;n;)t+=n.offsetTop,n=n.offsetParent;return t},By=(e,t)=>Math.abs(QC(e)-QC(t)),F1=e=>{let t,n;return e.type==="touchend"?(n=e.changedTouches[0].clientY,t=e.changedTouches[0].clientX):e.type.startsWith("touch")?(n=e.touches[0].clientY,t=e.touches[0].clientX):(n=e.clientY,t=e.clientX),{clientX:t,clientY:n}},MX=e=>{const t=Mt(),{t:n}=Kt(),r=cn(),a=cn(),i=k(()=>e.color.get("alpha")),o=k(()=>n("el.colorpicker.alphaLabel"));function s(d){var p;d.target!==r.value&&l(d),(p=r.value)==null||p.focus()}function l(d){if(!a.value||!r.value)return;const h=t.vnode.el.getBoundingClientRect(),{clientX:v,clientY:m}=F1(d);if(e.vertical){let g=m-h.top;g=Math.max(r.value.offsetHeight/2,g),g=Math.min(g,h.height-r.value.offsetHeight/2),e.color.set("alpha",Math.round((g-r.value.offsetHeight/2)/(h.height-r.value.offsetHeight)*100))}else{let g=v-h.left;g=Math.max(r.value.offsetWidth/2,g),g=Math.min(g,h.width-r.value.offsetWidth/2),e.color.set("alpha",Math.round((g-r.value.offsetWidth/2)/(h.width-r.value.offsetWidth)*100))}}function u(d){const{code:p,shiftKey:h}=d,v=h?10:1;switch(p){case Ye.left:case Ye.down:d.preventDefault(),d.stopPropagation(),c(-v);break;case Ye.right:case Ye.up:d.preventDefault(),d.stopPropagation(),c(v);break}}function c(d){let p=i.value+d;p=p<0?0:p>100?100:p,e.color.set("alpha",p)}return{thumb:r,bar:a,alpha:i,alphaLabel:o,handleDrag:l,handleClick:s,handleKeydown:u}},RX=(e,{bar:t,thumb:n,handleDrag:r})=>{const a=Mt(),i=Le("color-alpha-slider"),o=z(0),s=z(0),l=z();function u(){if(!n.value||e.vertical)return 0;const T=a.vnode.el,b=e.color.get("alpha");return T?Math.round(b*(T.offsetWidth-n.value.offsetWidth/2)/100):0}function c(){if(!n.value)return 0;const T=a.vnode.el;if(!e.vertical)return 0;const b=e.color.get("alpha");return T?Math.round(b*(T.offsetHeight-n.value.offsetHeight/2)/100):0}function d(){if(e.color&&e.color.value){const{r:T,g:b,b:_}=e.color.toRgb();return`linear-gradient(to right, rgba(${T}, ${b}, ${_}, 0) 0%, rgba(${T}, ${b}, ${_}, 1) 100%)`}return""}function p(){o.value=u(),s.value=c(),l.value=d()}ht(()=>{if(!t.value||!n.value)return;const T={drag:b=>{r(b)},end:b=>{r(b)}};Ef(t.value,T),Ef(n.value,T),p()}),Ie(()=>e.color.get("alpha"),()=>p()),Ie(()=>e.color.value,()=>p());const h=k(()=>[i.b(),i.is("vertical",e.vertical)]),v=k(()=>i.e("bar")),m=k(()=>i.e("thumb")),g=k(()=>({background:l.value})),y=k(()=>({left:Ln(o.value),top:Ln(s.value)}));return{rootKls:h,barKls:v,barStyle:g,thumbKls:m,thumbStyle:y,update:p}},LX="ElColorAlphaSlider",NX=J({name:LX}),FX=J({...NX,props:PX,setup(e,{expose:t}){const n=e,{alpha:r,alphaLabel:a,bar:i,thumb:o,handleDrag:s,handleClick:l,handleKeydown:u}=MX(n),{rootKls:c,barKls:d,barStyle:p,thumbKls:h,thumbStyle:v,update:m}=RX(n,{bar:i,thumb:o,handleDrag:s});return t({update:m,bar:i,thumb:o}),(g,y)=>(x(),U("div",{class:F(f(c))},[M("div",{ref_key:"bar",ref:i,class:F(f(d)),style:tt(f(p)),onClick:f(l)},null,14,["onClick"]),M("div",{ref_key:"thumb",ref:o,class:F(f(h)),style:tt(f(v)),"aria-label":f(a),"aria-valuenow":f(r),"aria-orientation":g.vertical?"vertical":"horizontal","aria-valuemin":"0","aria-valuemax":"100",role:"slider",tabindex:"0",onKeydown:f(u)},null,46,["aria-label","aria-valuenow","aria-orientation","onKeydown"])],2))}});var $X=He(FX,[["__file","alpha-slider.vue"]]);const BX=J({name:"ElColorHueSlider",props:{color:{type:Object,required:!0},vertical:Boolean},setup(e){const t=Le("color-hue-slider"),n=Mt(),r=z(),a=z(),i=z(0),o=z(0),s=k(()=>e.color.get("hue"));Ie(()=>s.value,()=>{p()});function l(h){h.target!==r.value&&u(h)}function u(h){if(!a.value||!r.value)return;const m=n.vnode.el.getBoundingClientRect(),{clientX:g,clientY:y}=F1(h);let T;if(e.vertical){let b=y-m.top;b=Math.min(b,m.height-r.value.offsetHeight/2),b=Math.max(r.value.offsetHeight/2,b),T=Math.round((b-r.value.offsetHeight/2)/(m.height-r.value.offsetHeight)*360)}else{let b=g-m.left;b=Math.min(b,m.width-r.value.offsetWidth/2),b=Math.max(r.value.offsetWidth/2,b),T=Math.round((b-r.value.offsetWidth/2)/(m.width-r.value.offsetWidth)*360)}e.color.set("hue",T)}function c(){if(!r.value)return 0;const h=n.vnode.el;if(e.vertical)return 0;const v=e.color.get("hue");return h?Math.round(v*(h.offsetWidth-r.value.offsetWidth/2)/360):0}function d(){if(!r.value)return 0;const h=n.vnode.el;if(!e.vertical)return 0;const v=e.color.get("hue");return h?Math.round(v*(h.offsetHeight-r.value.offsetHeight/2)/360):0}function p(){i.value=c(),o.value=d()}return ht(()=>{if(!a.value||!r.value)return;const h={drag:v=>{u(v)},end:v=>{u(v)}};Ef(a.value,h),Ef(r.value,h),p()}),{bar:a,thumb:r,thumbLeft:i,thumbTop:o,hueValue:s,handleClick:l,update:p,ns:t}}});function VX(e,t,n,r,a,i){return x(),U("div",{class:F([e.ns.b(),e.ns.is("vertical",e.vertical)])},[M("div",{ref:"bar",class:F(e.ns.e("bar")),onClick:e.handleClick},null,10,["onClick"]),M("div",{ref:"thumb",class:F(e.ns.e("thumb")),style:tt({left:e.thumbLeft+"px",top:e.thumbTop+"px"})},null,6)],2)}var UX=He(BX,[["render",VX],["__file","hue-slider.vue"]]);const HX=Ue({modelValue:String,id:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:Xn,popperClass:{type:String,default:""},tabindex:{type:[String,Number],default:0},teleported:dr.teleported,predefine:{type:ue(Array)},validateEvent:{type:Boolean,default:!0},...Er(["ariaLabel"])}),zX={[_t]:e=>rt(e)||sr(e),[$t]:e=>rt(e)||sr(e),activeChange:e=>rt(e)||sr(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent},rO=Symbol("colorPickerContextKey"),JC=function(e,t,n){return[e,t*n/((e=(2-t)*n)<1?e:2-e)||0,e/2]},jX=function(e){return rt(e)&&e.includes(".")&&Number.parseFloat(e)===1},WX=function(e){return rt(e)&&e.includes("%")},Bu=function(e,t){jX(e)&&(e="100%");const n=WX(e);return e=Math.min(t,Math.max(0,Number.parseFloat(`${e}`))),n&&(e=Number.parseInt(`${e*t}`,10)/100),Math.abs(e-t)<1e-6?1:e%t/Number.parseFloat(t)},ZC={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},Nh=e=>{e=Math.min(Math.round(e),255);const t=Math.floor(e/16),n=e%16;return`${ZC[t]||t}${ZC[n]||n}`},eE=function({r:e,g:t,b:n}){return Number.isNaN(+e)||Number.isNaN(+t)||Number.isNaN(+n)?"":`#${Nh(e)}${Nh(t)}${Nh(n)}`},h0={A:10,B:11,C:12,D:13,E:14,F:15},il=function(e){return e.length===2?(h0[e[0].toUpperCase()]||+e[0])*16+(h0[e[1].toUpperCase()]||+e[1]):h0[e[1].toUpperCase()]||+e[1]},KX=function(e,t,n){t=t/100,n=n/100;let r=t;const a=Math.max(n,.01);n*=2,t*=n<=1?n:2-n,r*=a<=1?a:2-a;const i=(n+t)/2,o=n===0?2*r/(a+r):2*t/(n+t);return{h:e,s:o*100,v:i*100}},tE=(e,t,n)=>{e=Bu(e,255),t=Bu(t,255),n=Bu(n,255);const r=Math.max(e,t,n),a=Math.min(e,t,n);let i;const o=r,s=r-a,l=r===0?0:s/r;if(r===a)i=0;else{switch(r){case e:{i=(t-n)/s+(t<n?6:0);break}case t:{i=(n-e)/s+2;break}case n:{i=(e-t)/s+4;break}}i/=6}return{h:i*360,s:l*100,v:o*100}},fd=function(e,t,n){e=Bu(e,360)*6,t=Bu(t,100),n=Bu(n,100);const r=Math.floor(e),a=e-r,i=n*(1-t),o=n*(1-a*t),s=n*(1-(1-a)*t),l=r%6,u=[n,o,i,i,s,n][l],c=[s,n,n,o,i,i][l],d=[i,i,s,n,n,o][l];return{r:Math.round(u*255),g:Math.round(c*255),b:Math.round(d*255)}};class qd{constructor(t={}){this._hue=0,this._saturation=100,this._value=100,this._alpha=100,this.enableAlpha=!1,this.format="hex",this.value="";for(const n in t)Yt(t,n)&&(this[n]=t[n]);t.value?this.fromString(t.value):this.doOnChange()}set(t,n){if(arguments.length===1&&typeof t=="object"){for(const r in t)Yt(t,r)&&this.set(r,t[r]);return}this[`_${t}`]=n,this.doOnChange()}get(t){return t==="alpha"?Math.floor(this[`_${t}`]):this[`_${t}`]}toRgb(){return fd(this._hue,this._saturation,this._value)}fromString(t){if(!t){this._hue=0,this._saturation=100,this._value=100,this.doOnChange();return}const n=(r,a,i)=>{this._hue=Math.max(0,Math.min(360,r)),this._saturation=Math.max(0,Math.min(100,a)),this._value=Math.max(0,Math.min(100,i)),this.doOnChange()};if(t.includes("hsl")){const r=t.replace(/hsla|hsl|\(|\)/gm,"").split(/\s|,/g).filter(a=>a!=="").map((a,i)=>i>2?Number.parseFloat(a):Number.parseInt(a,10));if(r.length===4?this._alpha=Number.parseFloat(r[3])*100:r.length===3&&(this._alpha=100),r.length>=3){const{h:a,s:i,v:o}=KX(r[0],r[1],r[2]);n(a,i,o)}}else if(t.includes("hsv")){const r=t.replace(/hsva|hsv|\(|\)/gm,"").split(/\s|,/g).filter(a=>a!=="").map((a,i)=>i>2?Number.parseFloat(a):Number.parseInt(a,10));r.length===4?this._alpha=Number.parseFloat(r[3])*100:r.length===3&&(this._alpha=100),r.length>=3&&n(r[0],r[1],r[2])}else if(t.includes("rgb")){const r=t.replace(/rgba|rgb|\(|\)/gm,"").split(/\s|,/g).filter(a=>a!=="").map((a,i)=>i>2?Number.parseFloat(a):Number.parseInt(a,10));if(r.length===4?this._alpha=Number.parseFloat(r[3])*100:r.length===3&&(this._alpha=100),r.length>=3){const{h:a,s:i,v:o}=tE(r[0],r[1],r[2]);n(a,i,o)}}else if(t.includes("#")){const r=t.replace("#","").trim();if(!/^[0-9a-fA-F]{3}$|^[0-9a-fA-F]{6}$|^[0-9a-fA-F]{8}$/.test(r))return;let a,i,o;r.length===3?(a=il(r[0]+r[0]),i=il(r[1]+r[1]),o=il(r[2]+r[2])):(r.length===6||r.length===8)&&(a=il(r.slice(0,2)),i=il(r.slice(2,4)),o=il(r.slice(4,6))),r.length===8?this._alpha=il(r.slice(6))/255*100:(r.length===3||r.length===6)&&(this._alpha=100);const{h:s,s:l,v:u}=tE(a,i,o);n(s,l,u)}}compare(t){return Math.abs(t._hue-this._hue)<2&&Math.abs(t._saturation-this._saturation)<1&&Math.abs(t._value-this._value)<1&&Math.abs(t._alpha-this._alpha)<1}doOnChange(){const{_hue:t,_saturation:n,_value:r,_alpha:a,format:i}=this;if(this.enableAlpha)switch(i){case"hsl":{const o=JC(t,n/100,r/100);this.value=`hsla(${t}, ${Math.round(o[1]*100)}%, ${Math.round(o[2]*100)}%, ${this.get("alpha")/100})`;break}case"hsv":{this.value=`hsva(${t}, ${Math.round(n)}%, ${Math.round(r)}%, ${this.get("alpha")/100})`;break}case"hex":{this.value=`${eE(fd(t,n,r))}${Nh(a*255/100)}`;break}default:{const{r:o,g:s,b:l}=fd(t,n,r);this.value=`rgba(${o}, ${s}, ${l}, ${this.get("alpha")/100})`}}else switch(i){case"hsl":{const o=JC(t,n/100,r/100);this.value=`hsl(${t}, ${Math.round(o[1]*100)}%, ${Math.round(o[2]*100)}%)`;break}case"hsv":{this.value=`hsv(${t}, ${Math.round(n)}%, ${Math.round(r)}%)`;break}case"rgb":{const{r:o,g:s,b:l}=fd(t,n,r);this.value=`rgb(${o}, ${s}, ${l})`;break}default:this.value=eE(fd(t,n,r))}}}const qX=J({props:{colors:{type:Array,required:!0},color:{type:Object,required:!0},enableAlpha:{type:Boolean,required:!0}},setup(e){const t=Le("color-predefine"),{currentColor:n}=Qe(rO),r=z(i(e.colors,e.color));Ie(()=>n.value,o=>{const s=new qd;s.fromString(o),r.value.forEach(l=>{l.selected=s.compare(l)})}),_r(()=>{r.value=i(e.colors,e.color)});function a(o){e.color.fromString(e.colors[o])}function i(o,s){return o.map(l=>{const u=new qd;return u.enableAlpha=e.enableAlpha,u.format="rgba",u.fromString(l),u.selected=u.value===s.value,u})}return{rgbaColors:r,handleSelect:a,ns:t}}});function GX(e,t,n,r,a,i){return x(),U("div",{class:F(e.ns.b())},[M("div",{class:F(e.ns.e("colors"))},[(x(!0),U(Ge,null,mt(e.rgbaColors,(o,s)=>(x(),U("div",{key:e.colors[s],class:F([e.ns.e("color-selector"),e.ns.is("alpha",o._alpha<100),{selected:o.selected}]),onClick:l=>e.handleSelect(s)},[M("div",{style:tt({backgroundColor:o.value})},null,4)],10,["onClick"]))),128))],2)],2)}var YX=He(qX,[["render",GX],["__file","predefine.vue"]]);const XX=J({name:"ElSlPanel",props:{color:{type:Object,required:!0}},setup(e){const t=Le("color-svpanel"),n=Mt(),r=z(0),a=z(0),i=z("hsl(0, 100%, 50%)"),o=k(()=>{const u=e.color.get("hue"),c=e.color.get("value");return{hue:u,value:c}});function s(){const u=e.color.get("saturation"),c=e.color.get("value"),d=n.vnode.el,{clientWidth:p,clientHeight:h}=d;a.value=u*p/100,r.value=(100-c)*h/100,i.value=`hsl(${e.color.get("hue")}, 100%, 50%)`}function l(u){const d=n.vnode.el.getBoundingClientRect(),{clientX:p,clientY:h}=F1(u);let v=p-d.left,m=h-d.top;v=Math.max(0,v),v=Math.min(v,d.width),m=Math.max(0,m),m=Math.min(m,d.height),a.value=v,r.value=m,e.color.set({saturation:v/d.width*100,value:100-m/d.height*100})}return Ie(()=>o.value,()=>{s()}),ht(()=>{Ef(n.vnode.el,{drag:u=>{l(u)},end:u=>{l(u)}}),s()}),{cursorTop:r,cursorLeft:a,background:i,colorValue:o,handleDrag:l,update:s,ns:t}}});function QX(e,t,n,r,a,i){return x(),U("div",{class:F(e.ns.b()),style:tt({backgroundColor:e.background})},[M("div",{class:F(e.ns.e("white"))},null,2),M("div",{class:F(e.ns.e("black"))},null,2),M("div",{class:F(e.ns.e("cursor")),style:tt({top:e.cursorTop+"px",left:e.cursorLeft+"px"})},[M("div")],6)],6)}var JX=He(XX,[["render",QX],["__file","sv-panel.vue"]]);const ZX=J({name:"ElColorPicker"}),eQ=J({...ZX,props:HX,emits:zX,setup(e,{expose:t,emit:n}){const r=e,{t:a}=Kt(),i=Le("color"),{formItem:o}=Or(),s=Kn(),l=Mr(),{inputId:u,isLabeledByFormItem:c}=si(r,{formItemContext:o}),d=z(),p=z(),h=z(),v=z(),m=z(),g=z(),{isFocused:y,handleFocus:T,handleBlur:b}=Ws(m,{beforeFocus(){return l.value},beforeBlur(pe){var Fe;return(Fe=v.value)==null?void 0:Fe.isFocusInsideContent(pe)},afterBlur(){q(!1),H()}});let _=!0;const w=Ct(new qd({enableAlpha:r.showAlpha,format:r.colorFormat||"",value:r.modelValue})),S=z(!1),A=z(!1),I=z(""),D=k(()=>!r.modelValue&&!A.value?"transparent":Y(w,r.showAlpha)),O=k(()=>!r.modelValue&&!A.value?"":w.value),V=k(()=>c.value?void 0:r.ariaLabel||a("el.colorpicker.defaultLabel")),N=k(()=>c.value?o==null?void 0:o.labelId:void 0),K=k(()=>[i.b("picker"),i.is("disabled",l.value),i.bm("picker",s.value),i.is("focused",y.value)]);function Y(pe,Fe){if(!(pe instanceof qd))throw new TypeError("color should be instance of _color Class");const{r:Pe,g:ye,b:Z}=pe.toRgb();return Fe?`rgba(${Pe}, ${ye}, ${Z}, ${pe.get("alpha")/100})`:`rgb(${Pe}, ${ye}, ${Z})`}function q(pe){S.value=pe}const $=wa(q,100,{leading:!0});function j(){l.value||q(!0)}function W(){$(!1),H()}function H(){it(()=>{r.modelValue?w.fromString(r.modelValue):(w.value="",it(()=>{A.value=!1}))})}function X(){l.value||(S.value&&H(),$(!S.value))}function re(){w.fromString(I.value)}function le(){const pe=w.value;n(_t,pe),n($t,pe),r.validateEvent&&(o==null||o.validate("change").catch(Fe=>void 0)),$(!1),it(()=>{const Fe=new qd({enableAlpha:r.showAlpha,format:r.colorFormat||"",value:r.modelValue});w.compare(Fe)||H()})}function ne(){$(!1),n(_t,null),n($t,null),r.modelValue!==null&&r.validateEvent&&(o==null||o.validate("change").catch(pe=>void 0)),H()}function be(){S.value&&(W(),y.value&&te())}function _e(pe){pe.preventDefault(),pe.stopPropagation(),q(!1),H()}function ve(pe){switch(pe.code){case Ye.enter:case Ye.numpadEnter:case Ye.space:pe.preventDefault(),pe.stopPropagation(),j(),g.value.focus();break;case Ye.esc:_e(pe);break}}function te(){m.value.focus()}function me(){m.value.blur()}return ht(()=>{r.modelValue&&(I.value=O.value)}),Ie(()=>r.modelValue,pe=>{pe?pe&&pe!==w.value&&(_=!1,w.fromString(pe)):A.value=!1}),Ie(()=>[r.colorFormat,r.showAlpha],()=>{w.enableAlpha=r.showAlpha,w.format=r.colorFormat||w.format,w.doOnChange(),n(_t,w.value)}),Ie(()=>O.value,pe=>{I.value=pe,_&&n("activeChange",pe),_=!0}),Ie(()=>w.value,()=>{!r.modelValue&&!A.value&&(A.value=!0)}),Ie(()=>S.value,()=>{it(()=>{var pe,Fe,Pe;(pe=d.value)==null||pe.update(),(Fe=p.value)==null||Fe.update(),(Pe=h.value)==null||Pe.update()})}),Vt(rO,{currentColor:O}),t({color:w,show:j,hide:W,focus:te,blur:me}),(pe,Fe)=>(x(),he(f(ar),{ref_key:"popper",ref:v,visible:S.value,"show-arrow":!1,"fallback-placements":["bottom","top","right","left"],offset:0,"gpu-acceleration":!1,"popper-class":[f(i).be("picker","panel"),f(i).b("dropdown"),pe.popperClass],"stop-popper-mouse-event":!1,effect:"light",trigger:"click",teleported:pe.teleported,transition:`${f(i).namespace.value}-zoom-in-top`,persistent:"",onHide:Pe=>q(!1)},{content:P(()=>[gt((x(),U("div",{onKeydown:sn(_e,["esc"])},[M("div",{class:F(f(i).be("dropdown","main-wrapper"))},[E(UX,{ref_key:"hue",ref:d,class:"hue-slider",color:f(w),vertical:""},null,8,["color"]),E(JX,{ref_key:"sv",ref:p,color:f(w)},null,8,["color"])],2),pe.showAlpha?(x(),he($X,{key:0,ref_key:"alpha",ref:h,color:f(w)},null,8,["color"])):oe("v-if",!0),pe.predefine?(x(),he(YX,{key:1,ref:"predefine","enable-alpha":pe.showAlpha,color:f(w),colors:pe.predefine},null,8,["enable-alpha","color","colors"])):oe("v-if",!0),M("div",{class:F(f(i).be("dropdown","btns"))},[M("span",{class:F(f(i).be("dropdown","value"))},[E(f(Wn),{ref_key:"inputRef",ref:g,modelValue:I.value,"onUpdate:modelValue":Pe=>I.value=Pe,"validate-event":!1,size:"small",onKeyup:sn(re,["enter"]),onBlur:re},null,8,["modelValue","onUpdate:modelValue","onKeyup"])],2),E(f(_n),{class:F(f(i).be("dropdown","link-btn")),text:"",size:"small",onClick:ne},{default:P(()=>[we(de(f(a)("el.colorpicker.clear")),1)]),_:1},8,["class"]),E(f(_n),{plain:"",size:"small",class:F(f(i).be("dropdown","btn")),onClick:le},{default:P(()=>[we(de(f(a)("el.colorpicker.confirm")),1)]),_:1},8,["class"])],2)],40,["onKeydown"])),[[f(Wo),be,m.value]])]),default:P(()=>[M("div",Ft({id:f(u),ref_key:"triggerRef",ref:m},pe.$attrs,{class:f(K),role:"button","aria-label":f(V),"aria-labelledby":f(N),"aria-description":f(a)("el.colorpicker.description",{color:pe.modelValue||""}),"aria-disabled":f(l),tabindex:f(l)?-1:pe.tabindex,onKeydown:ve,onFocus:f(T),onBlur:f(b)}),[f(l)?(x(),U("div",{key:0,class:F(f(i).be("picker","mask"))},null,2)):oe("v-if",!0),M("div",{class:F(f(i).be("picker","trigger")),onClick:X},[M("span",{class:F([f(i).be("picker","color"),f(i).is("alpha",pe.showAlpha)])},[M("span",{class:F(f(i).be("picker","color-inner")),style:tt({backgroundColor:f(D)})},[gt(E(f(et),{class:F([f(i).be("picker","icon"),f(i).is("icon-arrow-down")])},{default:P(()=>[E(f(co))]),_:1},8,["class"]),[[zt,pe.modelValue||A.value]]),gt(E(f(et),{class:F([f(i).be("picker","empty"),f(i).is("icon-close")])},{default:P(()=>[E(f(Ci))]),_:1},8,["class"]),[[zt,!pe.modelValue&&!A.value]])],6)],2)],2)],16,["id","aria-label","aria-labelledby","aria-description","aria-disabled","tabindex","onFocus","onBlur"])]),_:1},8,["visible","popper-class","teleported","transition","onHide"]))}});var tQ=He(eQ,[["__file","color-picker.vue"]]);const nQ=Et(tQ),rQ=Ue({a11y:{type:Boolean,default:!0},locale:{type:ue(Object)},size:Xn,button:{type:ue(Object)},experimentalFeatures:{type:ue(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:ue(Object)},zIndex:Number,namespace:{type:String,default:"el"},...Mc}),ci={},aQ=J({name:"ElConfigProvider",props:rQ,setup(e,{slots:t}){Ie(()=>e.message,r=>{Object.assign(ci,r??{})},{immediate:!0,deep:!0});const n=a1(e);return()=>fe(t,"default",{config:n==null?void 0:n.value})}}),aO=Et(aQ),iQ=J({name:"ElContainer"}),oQ=J({...iQ,props:{direction:{type:String}},setup(e){const t=e,n=ir(),r=Le("container"),a=k(()=>t.direction==="vertical"?!0:t.direction==="horizontal"?!1:n&&n.default?n.default().some(o=>{const s=o.type.name;return s==="ElHeader"||s==="ElFooter"}):!1);return(i,o)=>(x(),U("section",{class:F([f(r).b(),f(r).is("vertical",f(a))])},[fe(i.$slots,"default")],2))}});var sQ=He(oQ,[["__file","container.vue"]]);const lQ=J({name:"ElAside"}),uQ=J({...lQ,props:{width:{type:String,default:null}},setup(e){const t=e,n=Le("aside"),r=k(()=>t.width?n.cssVarBlock({width:t.width}):{});return(a,i)=>(x(),U("aside",{class:F(f(n).b()),style:tt(f(r))},[fe(a.$slots,"default")],6))}});var iO=He(uQ,[["__file","aside.vue"]]);const cQ=J({name:"ElFooter"}),dQ=J({...cQ,props:{height:{type:String,default:null}},setup(e){const t=e,n=Le("footer"),r=k(()=>t.height?n.cssVarBlock({height:t.height}):{});return(a,i)=>(x(),U("footer",{class:F(f(n).b()),style:tt(f(r))},[fe(a.$slots,"default")],6))}});var oO=He(dQ,[["__file","footer.vue"]]);const fQ=J({name:"ElHeader"}),pQ=J({...fQ,props:{height:{type:String,default:null}},setup(e){const t=e,n=Le("header"),r=k(()=>t.height?n.cssVarBlock({height:t.height}):{});return(a,i)=>(x(),U("header",{class:F(f(n).b()),style:tt(f(r))},[fe(a.$slots,"default")],6))}});var sO=He(pQ,[["__file","header.vue"]]);const hQ=J({name:"ElMain"}),mQ=J({...hQ,setup(e){const t=Le("main");return(n,r)=>(x(),U("main",{class:F(f(t).b())},[fe(n.$slots,"default")],2))}});var lO=He(mQ,[["__file","main.vue"]]);const $1=Et(sQ,{Aside:iO,Footer:oO,Header:sO,Main:lO}),uO=On(iO),cO=On(oO),B1=On(sO),V1=On(lO);var dO={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Sa,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d/,i=/\d\d/,o=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,l={},u=function(g){return(g=+g)+(g>68?1900:2e3)},c=function(g){return function(y){this[g]=+y}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(g){(this.zone||(this.zone={})).offset=function(y){if(!y||y==="Z")return 0;var T=y.match(/([+-]|\d\d)/g),b=60*T[1]+(+T[2]||0);return b===0?0:T[0]==="+"?-b:b}(g)}],p=function(g){var y=l[g];return y&&(y.indexOf?y:y.s.concat(y.f))},h=function(g,y){var T,b=l.meridiem;if(b){for(var _=1;_<=24;_+=1)if(g.indexOf(b(_,0,y))>-1){T=_>12;break}}else T=g===(y?"pm":"PM");return T},v={A:[s,function(g){this.afternoon=h(g,!1)}],a:[s,function(g){this.afternoon=h(g,!0)}],Q:[a,function(g){this.month=3*(g-1)+1}],S:[a,function(g){this.milliseconds=100*+g}],SS:[i,function(g){this.milliseconds=10*+g}],SSS:[/\d{3}/,function(g){this.milliseconds=+g}],s:[o,c("seconds")],ss:[o,c("seconds")],m:[o,c("minutes")],mm:[o,c("minutes")],H:[o,c("hours")],h:[o,c("hours")],HH:[o,c("hours")],hh:[o,c("hours")],D:[o,c("day")],DD:[i,c("day")],Do:[s,function(g){var y=l.ordinal,T=g.match(/\d+/);if(this.day=T[0],y)for(var b=1;b<=31;b+=1)y(b).replace(/\[|\]/g,"")===g&&(this.day=b)}],w:[o,c("week")],ww:[i,c("week")],M:[o,c("month")],MM:[i,c("month")],MMM:[s,function(g){var y=p("months"),T=(p("monthsShort")||y.map(function(b){return b.slice(0,3)})).indexOf(g)+1;if(T<1)throw new Error;this.month=T%12||T}],MMMM:[s,function(g){var y=p("months").indexOf(g)+1;if(y<1)throw new Error;this.month=y%12||y}],Y:[/[+-]?\d+/,c("year")],YY:[i,function(g){this.year=u(g)}],YYYY:[/\d{4}/,c("year")],Z:d,ZZ:d};function m(g){var y,T;y=g,T=l&&l.formats;for(var b=(g=y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(O,V,N){var K=N&&N.toUpperCase();return V||T[N]||n[N]||T[K].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(Y,q,$){return q||$.slice(1)})})).match(r),_=b.length,w=0;w<_;w+=1){var S=b[w],A=v[S],I=A&&A[0],D=A&&A[1];b[w]=D?{regex:I,parser:D}:S.replace(/^\[|\]$/g,"")}return function(O){for(var V={},N=0,K=0;N<_;N+=1){var Y=b[N];if(typeof Y=="string")K+=Y.length;else{var q=Y.regex,$=Y.parser,j=O.slice(K),W=q.exec(j)[0];$.call(V,W),O=O.replace(W,"")}}return function(H){var X=H.afternoon;if(X!==void 0){var re=H.hours;X?re<12&&(H.hours+=12):re===12&&(H.hours=0),delete H.afternoon}}(V),V}}return function(g,y,T){T.p.customParseFormat=!0,g&&g.parseTwoDigitYear&&(u=g.parseTwoDigitYear);var b=y.prototype,_=b.parse;b.parse=function(w){var S=w.date,A=w.utc,I=w.args;this.$u=A;var D=I[1];if(typeof D=="string"){var O=I[2]===!0,V=I[3]===!0,N=O||V,K=I[2];V&&(K=I[2]),l=this.$locale(),!O&&K&&(l=T.Ls[K]),this.$d=function(j,W,H,X){try{if(["x","X"].indexOf(W)>-1)return new Date((W==="X"?1e3:1)*j);var re=m(W)(j),le=re.year,ne=re.month,be=re.day,_e=re.hours,ve=re.minutes,te=re.seconds,me=re.milliseconds,pe=re.zone,Fe=re.week,Pe=new Date,ye=be||(le||ne?1:Pe.getDate()),Z=le||Pe.getFullYear(),ie=0;le&&!ne||(ie=ne>0?ne-1:Pe.getMonth());var Ce,$e=_e||0,Se=ve||0,De=te||0,xe=me||0;return pe?new Date(Date.UTC(Z,ie,ye,$e,Se,De,xe+60*pe.offset*1e3)):H?new Date(Date.UTC(Z,ie,ye,$e,Se,De,xe)):(Ce=new Date(Z,ie,ye,$e,Se,De,xe),Fe&&(Ce=X(Ce).week(Fe).toDate()),Ce)}catch{return new Date("")}}(S,D,A,T),this.init(),K&&K!==!0&&(this.$L=this.locale(K).$L),N&&S!=this.format(D)&&(this.$d=new Date("")),l={}}else if(D instanceof Array)for(var Y=D.length,q=1;q<=Y;q+=1){I[1]=D[q-1];var $=T.apply(this,I);if($.isValid()){this.$d=$.$d,this.$L=$.$L,this.init();break}q===Y&&(this.$d=new Date(""))}else _.call(this,w)}}})})(dO);var vQ=dO.exports;const U1=xr(vQ);var fO={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Sa,function(){return function(n,r){var a=r.prototype,i=a.format;a.format=function(o){var s=this,l=this.$locale();if(!this.isValid())return i.bind(this)(o);var u=this.$utils(),c=(o||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(d){switch(d){case"Q":return Math.ceil((s.$M+1)/3);case"Do":return l.ordinal(s.$D);case"gggg":return s.weekYear();case"GGGG":return s.isoWeekYear();case"wo":return l.ordinal(s.week(),"W");case"w":case"ww":return u.s(s.week(),d==="w"?1:2,"0");case"W":case"WW":return u.s(s.isoWeek(),d==="W"?1:2,"0");case"k":case"kk":return u.s(String(s.$H===0?24:s.$H),d==="k"?1:2,"0");case"X":return Math.floor(s.$d.getTime()/1e3);case"x":return s.$d.getTime();case"z":return"["+s.offsetName()+"]";case"zzz":return"["+s.offsetName("long")+"]";default:return d}});return i.bind(this)(c)}}})})(fO);var gQ=fO.exports;const yQ=xr(gQ);var pO={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Sa,function(){var n="week",r="year";return function(a,i,o){var s=i.prototype;s.week=function(l){if(l===void 0&&(l=null),l!==null)return this.add(7*(l-this.week()),"day");var u=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var c=o(this).startOf(r).add(1,r).date(u),d=o(this).endOf(n);if(c.isBefore(d))return 1}var p=o(this).startOf(r).date(u).startOf(n).subtract(1,"millisecond"),h=this.diff(p,n,!0);return h<0?o(this).startOf("week").week():Math.ceil(h)},s.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}})})(pO);var bQ=pO.exports;const _Q=xr(bQ);var hO={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Sa,function(){return function(n,r){r.prototype.weekYear=function(){var a=this.month(),i=this.week(),o=this.year();return i===1&&a===11?o+1:a===0&&i>=52?o-1:o}}})})(hO);var TQ=hO.exports;const wQ=xr(TQ);var mO={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Sa,function(){return function(n,r,a){r.prototype.dayOfYear=function(i){var o=Math.round((a(this).startOf("day")-a(this).startOf("year"))/864e5)+1;return i==null?o:this.add(i-o,"day")}}})})(mO);var SQ=mO.exports;const CQ=xr(SQ);var vO={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Sa,function(){return function(n,r){r.prototype.isSameOrAfter=function(a,i){return this.isSame(a,i)||this.isAfter(a,i)}}})})(vO);var EQ=vO.exports;const xQ=xr(EQ);var gO={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Sa,function(){return function(n,r){r.prototype.isSameOrBefore=function(a,i){return this.isSame(a,i)||this.isBefore(a,i)}}})})(gO);var kQ=gO.exports;const AQ=xr(kQ),nE=["hours","minutes","seconds"],Sm="HH:mm:ss",_u="YYYY-MM-DD",DQ={date:_u,dates:_u,week:"gggg[w]ww",year:"YYYY",years:"YYYY",month:"YYYY-MM",months:"YYYY-MM",datetime:`${_u} ${Sm}`,monthrange:"YYYY-MM",yearrange:"YYYY",daterange:_u,datetimerange:`${_u} ${Sm}`},yO=Ue({disabledHours:{type:ue(Function)},disabledMinutes:{type:ue(Function)},disabledSeconds:{type:ue(Function)}}),bO=Ue({visible:Boolean,actualVisible:{type:Boolean,default:void 0},format:{type:String,default:""}}),H1=Ue({id:{type:ue([Array,String])},name:{type:ue([Array,String])},popperClass:{type:String,default:""},format:String,valueFormat:String,dateFormat:String,timeFormat:String,type:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:ue([String,Object]),default:rs},editable:{type:Boolean,default:!0},prefixIcon:{type:ue([String,Object]),default:""},size:Xn,readonly:Boolean,disabled:Boolean,placeholder:{type:String,default:""},popperOptions:{type:ue(Object),default:()=>({})},modelValue:{type:ue([Date,Array,String,Number]),default:""},rangeSeparator:{type:String,default:"-"},startPlaceholder:String,endPlaceholder:String,defaultValue:{type:ue([Date,Array])},defaultTime:{type:ue([Date,Array])},isRange:Boolean,...yO,disabledDate:{type:Function},cellClassName:{type:Function},shortcuts:{type:Array,default:()=>[]},arrowControl:Boolean,tabindex:{type:ue([String,Number]),default:0},validateEvent:{type:Boolean,default:!0},unlinkPanels:Boolean,placement:{type:ue(String),values:as,default:"bottom"},fallbackPlacements:{type:ue(Array),default:["bottom","top","right","left"]},...Mc,...Er(["ariaLabel"]),showNow:{type:Boolean,default:!0}}),IQ=Ue({id:{type:ue(Array)},name:{type:ue(Array)},modelValue:{type:ue([Array,String])},startPlaceholder:String,endPlaceholder:String}),PQ=J({name:"PickerRangeTrigger",inheritAttrs:!1}),OQ=J({...PQ,props:IQ,emits:["mouseenter","mouseleave","click","touchstart","focus","blur","startInput","endInput","startChange","endChange"],setup(e,{expose:t,emit:n}){const r=cp(),a=Le("date"),i=Le("range"),o=z(),s=z(),{wrapperRef:l,isFocused:u}=Ws(o),c=_=>{n("click",_)},d=_=>{n("mouseenter",_)},p=_=>{n("mouseleave",_)},h=_=>{n("mouseenter",_)},v=_=>{n("startInput",_)},m=_=>{n("endInput",_)},g=_=>{n("startChange",_)},y=_=>{n("endChange",_)};return t({focus:()=>{var _;(_=o.value)==null||_.focus()},blur:()=>{var _,w;(_=o.value)==null||_.blur(),(w=s.value)==null||w.blur()}}),(_,w)=>(x(),U("div",{ref_key:"wrapperRef",ref:l,class:F([f(a).is("active",f(u)),_.$attrs.class]),style:tt(_.$attrs.style),onClick:c,onMouseenter:d,onMouseleave:p,onTouchstartPassive:h},[fe(_.$slots,"prefix"),M("input",Ft(f(r),{id:_.id&&_.id[0],ref_key:"inputRef",ref:o,name:_.name&&_.name[0],placeholder:_.startPlaceholder,value:_.modelValue&&_.modelValue[0],class:f(i).b("input"),onInput:v,onChange:g}),null,16,["id","name","placeholder","value"]),fe(_.$slots,"range-separator"),M("input",Ft(f(r),{id:_.id&&_.id[1],ref_key:"endInputRef",ref:s,name:_.name&&_.name[1],placeholder:_.endPlaceholder,value:_.modelValue&&_.modelValue[1],class:f(i).b("input"),onInput:m,onChange:y}),null,16,["id","name","placeholder","value"]),fe(_.$slots,"suffix")],38))}});var MQ=He(OQ,[["__file","picker-range-trigger.vue"]]);const RQ=J({name:"Picker"}),LQ=J({...RQ,props:H1,emits:[_t,$t,"focus","blur","clear","calendar-change","panel-change","visible-change","keydown"],setup(e,{expose:t,emit:n}){const r=e,a=es(),{lang:i}=Kt(),o=Le("date"),s=Le("input"),l=Le("range"),{form:u,formItem:c}=Or(),d=Qe("ElPopperOptions",{}),{valueOnClear:p}=Mv(r,null),h=z(),v=z(),m=z(!1),g=z(!1),y=z(null);let T=!1;const{isFocused:b,handleFocus:_,handleBlur:w}=Ws(v,{beforeFocus(){return r.readonly||H.value},afterFocus(){m.value=!0},beforeBlur(ae){var We;return!T&&((We=h.value)==null?void 0:We.isFocusInsideContent(ae))},afterBlur(){Ve(),m.value=!1,T=!1,r.validateEvent&&(c==null||c.validate("blur").catch(ae=>void 0))}}),S=k(()=>[o.b("editor"),o.bm("editor",r.type),s.e("wrapper"),o.is("disabled",H.value),o.is("active",m.value),l.b("editor"),$e?l.bm("editor",$e.value):"",a.class]),A=k(()=>[s.e("icon"),l.e("close-icon"),me.value?"":l.e("close-icon--hidden")]);Ie(m,ae=>{ae?it(()=>{ae&&(y.value=r.modelValue)}):(xe.value=null,it(()=>{I(r.modelValue)}))});const I=(ae,We)=>{(We||!UC(ae,y.value))&&(n($t,ae),We&&(y.value=ae),r.validateEvent&&(c==null||c.validate("change").catch(St=>void 0)))},D=ae=>{if(!UC(r.modelValue,ae)){let We;Be(ae)?We=ae.map(St=>zC(St,r.valueFormat,i.value)):ae&&(We=zC(ae,r.valueFormat,i.value)),n(_t,ae&&We,i.value)}},O=ae=>{n("keydown",ae)},V=k(()=>v.value?Array.from(v.value.$el.querySelectorAll("input")):[]),N=(ae,We,St)=>{const kt=V.value;kt.length&&(!St||St==="min"?(kt[0].setSelectionRange(ae,We),kt[0].focus()):St==="max"&&(kt[1].setSelectionRange(ae,We),kt[1].focus()))},K=(ae="",We=!1)=>{m.value=We;let St;Be(ae)?St=ae.map(kt=>kt.toDate()):St=ae&&ae.toDate(),xe.value=null,D(St)},Y=()=>{g.value=!0},q=()=>{n("visible-change",!0)},$=()=>{g.value=!1,m.value=!1,n("visible-change",!1)},j=()=>{m.value=!0},W=()=>{m.value=!1},H=k(()=>r.disabled||(u==null?void 0:u.disabled)),X=k(()=>{let ae;if(Fe.value?Ut.value.getDefaultValue&&(ae=Ut.value.getDefaultValue()):Be(r.modelValue)?ae=r.modelValue.map(We=>HC(We,r.valueFormat,i.value)):ae=HC(r.modelValue,r.valueFormat,i.value),Ut.value.getRangeAvailableTime){const We=Ut.value.getRangeAvailableTime(ae);pr(We,ae)||(ae=We,Fe.value||D(sh(ae)))}return Be(ae)&&ae.some(We=>!We)&&(ae=[]),ae}),re=k(()=>{if(!Ut.value.panelReady)return"";const ae=je(X.value);return Be(xe.value)?[xe.value[0]||ae&&ae[0]||"",xe.value[1]||ae&&ae[1]||""]:xe.value!==null?xe.value:!ne.value&&Fe.value||!m.value&&Fe.value?"":ae?be.value||_e.value||ve.value?ae.join(", "):ae:""}),le=k(()=>r.type.includes("time")),ne=k(()=>r.type.startsWith("time")),be=k(()=>r.type==="dates"),_e=k(()=>r.type==="months"),ve=k(()=>r.type==="years"),te=k(()=>r.prefixIcon||(le.value?u1:q7)),me=z(!1),pe=ae=>{r.readonly||H.value||(me.value&&(ae.stopPropagation(),Ut.value.handleClear?Ut.value.handleClear():D(p.value),I(p.value,!0),me.value=!1,$()),n("clear"))},Fe=k(()=>{const{modelValue:ae}=r;return!ae||Be(ae)&&!ae.filter(Boolean).length}),Pe=async ae=>{var We;r.readonly||H.value||(((We=ae.target)==null?void 0:We.tagName)!=="INPUT"||b.value)&&(m.value=!0)},ye=()=>{r.readonly||H.value||!Fe.value&&r.clearable&&(me.value=!0)},Z=()=>{me.value=!1},ie=ae=>{var We;r.readonly||H.value||(((We=ae.touches[0].target)==null?void 0:We.tagName)!=="INPUT"||b.value)&&(m.value=!0)},Ce=k(()=>r.type.includes("range")),$e=Kn(),Se=k(()=>{var ae,We;return(We=(ae=f(h))==null?void 0:ae.popperRef)==null?void 0:We.contentRef}),De=r1(v,ae=>{const We=f(Se),St=ia(v);We&&(ae.target===We||ae.composedPath().includes(We))||ae.target===St||St&&ae.composedPath().includes(St)||(m.value=!1)});fn(()=>{De==null||De()});const xe=z(null),Ve=()=>{if(xe.value){const ae=ze(re.value);ae&&nt(ae)&&(D(sh(ae)),xe.value=null)}xe.value===""&&(D(p.value),I(p.value,!0),xe.value=null)},ze=ae=>ae?Ut.value.parseUserInput(ae):null,je=ae=>ae?Ut.value.formatToString(ae):null,nt=ae=>Ut.value.isValidValue(ae),Ae=async ae=>{if(r.readonly||H.value)return;const{code:We}=ae;if(O(ae),We===Ye.esc){m.value===!0&&(m.value=!1,ae.preventDefault(),ae.stopPropagation());return}if(We===Ye.down&&(Ut.value.handleFocusPicker&&(ae.preventDefault(),ae.stopPropagation()),m.value===!1&&(m.value=!0,await it()),Ut.value.handleFocusPicker)){Ut.value.handleFocusPicker();return}if(We===Ye.tab){T=!0;return}if(We===Ye.enter||We===Ye.numpadEnter){(xe.value===null||xe.value===""||nt(ze(re.value)))&&(Ve(),m.value=!1),ae.stopPropagation();return}if(xe.value){ae.stopPropagation();return}Ut.value.handleKeydownInput&&Ut.value.handleKeydownInput(ae)},Xe=ae=>{xe.value=ae,m.value||(m.value=!0)},ct=ae=>{const We=ae.target;xe.value?xe.value=[We.value,xe.value[1]]:xe.value=[We.value,null]},Dt=ae=>{const We=ae.target;xe.value?xe.value=[xe.value[0],We.value]:xe.value=[null,We.value]},Pt=()=>{var ae;const We=xe.value,St=ze(We&&We[0]),kt=f(X);if(St&&St.isValid()){xe.value=[je(St),((ae=re.value)==null?void 0:ae[1])||null];const mn=[St,kt&&(kt[1]||null)];nt(mn)&&(D(sh(mn)),xe.value=null)}},Bt=()=>{var ae;const We=f(xe),St=ze(We&&We[1]),kt=f(X);if(St&&St.isValid()){xe.value=[((ae=f(re))==null?void 0:ae[0])||null,je(St)];const mn=[kt&&kt[0],St];nt(mn)&&(D(sh(mn)),xe.value=null)}},Ut=z({}),Nt=ae=>{Ut.value[ae[0]]=ae[1],Ut.value.panelReady=!0},dt=ae=>{n("calendar-change",ae)},Oe=(ae,We,St)=>{n("panel-change",ae,We,St)},ce=()=>{var ae;(ae=v.value)==null||ae.focus()},Me=()=>{var ae;(ae=v.value)==null||ae.blur()};return Vt("EP_PICKER_BASE",{props:r}),t({focus:ce,blur:Me,handleOpen:j,handleClose:W,onPick:K}),(ae,We)=>(x(),he(f(ar),Ft({ref_key:"refPopper",ref:h,visible:m.value,effect:"light",pure:"",trigger:"click"},ae.$attrs,{role:"dialog",teleported:"",transition:`${f(o).namespace.value}-zoom-in-top`,"popper-class":[`${f(o).namespace.value}-picker__popper`,ae.popperClass],"popper-options":f(d),"fallback-placements":ae.fallbackPlacements,"gpu-acceleration":!1,placement:ae.placement,"stop-popper-mouse-event":!1,"hide-after":0,persistent:"",onBeforeShow:Y,onShow:q,onHide:$}),{default:P(()=>[f(Ce)?(x(),he(MQ,{key:1,id:ae.id,ref_key:"inputRef",ref:v,"model-value":f(re),name:ae.name,disabled:f(H),readonly:!ae.editable||ae.readonly,"start-placeholder":ae.startPlaceholder,"end-placeholder":ae.endPlaceholder,class:F(f(S)),style:tt(ae.$attrs.style),"aria-label":ae.ariaLabel,tabindex:ae.tabindex,autocomplete:"off",role:"combobox",onClick:Pe,onFocus:f(_),onBlur:f(w),onStartInput:ct,onStartChange:Pt,onEndInput:Dt,onEndChange:Bt,onMousedown:Pe,onMouseenter:ye,onMouseleave:Z,onTouchstartPassive:ie,onKeydown:Ae},{prefix:P(()=>[f(te)?(x(),he(f(et),{key:0,class:F([f(s).e("icon"),f(l).e("icon")])},{default:P(()=>[(x(),he(Lt(f(te))))]),_:1},8,["class"])):oe("v-if",!0)]),"range-separator":P(()=>[fe(ae.$slots,"range-separator",{},()=>[M("span",{class:F(f(l).b("separator"))},de(ae.rangeSeparator),3)])]),suffix:P(()=>[ae.clearIcon?(x(),he(f(et),{key:0,class:F(f(A)),onMousedown:ft(f(nn),["prevent"]),onClick:pe},{default:P(()=>[(x(),he(Lt(ae.clearIcon)))]),_:1},8,["class","onMousedown"])):oe("v-if",!0)]),_:3},8,["id","model-value","name","disabled","readonly","start-placeholder","end-placeholder","class","style","aria-label","tabindex","onFocus","onBlur"])):(x(),he(f(Wn),{key:0,id:ae.id,ref_key:"inputRef",ref:v,"container-role":"combobox","model-value":f(re),name:ae.name,size:f($e),disabled:f(H),placeholder:ae.placeholder,class:F([f(o).b("editor"),f(o).bm("editor",ae.type),ae.$attrs.class]),style:tt(ae.$attrs.style),readonly:!ae.editable||ae.readonly||f(be)||f(_e)||f(ve)||ae.type==="week","aria-label":ae.ariaLabel,tabindex:ae.tabindex,"validate-event":!1,onInput:Xe,onFocus:f(_),onBlur:f(w),onKeydown:Ae,onChange:Ve,onMousedown:Pe,onMouseenter:ye,onMouseleave:Z,onTouchstartPassive:ie,onClick:ft(()=>{},["stop"])},{prefix:P(()=>[f(te)?(x(),he(f(et),{key:0,class:F(f(s).e("icon")),onMousedown:ft(Pe,["prevent"]),onTouchstartPassive:ie},{default:P(()=>[(x(),he(Lt(f(te))))]),_:1},8,["class","onMousedown"])):oe("v-if",!0)]),suffix:P(()=>[me.value&&ae.clearIcon?(x(),he(f(et),{key:0,class:F(`${f(s).e("icon")} clear-icon`),onMousedown:ft(f(nn),["prevent"]),onClick:pe},{default:P(()=>[(x(),he(Lt(ae.clearIcon)))]),_:1},8,["class","onMousedown"])):oe("v-if",!0)]),_:1},8,["id","model-value","name","size","disabled","placeholder","class","style","readonly","aria-label","tabindex","onFocus","onBlur","onClick"]))]),content:P(()=>[fe(ae.$slots,"default",{visible:m.value,actualVisible:g.value,parsedValue:f(X),format:ae.format,dateFormat:ae.dateFormat,timeFormat:ae.timeFormat,unlinkPanels:ae.unlinkPanels,type:ae.type,defaultValue:ae.defaultValue,showNow:ae.showNow,onPick:K,onSelectRange:N,onSetPickerOption:Nt,onCalendarChange:dt,onPanelChange:Oe,onMousedown:ft(()=>{},["stop"])})]),_:3},16,["visible","transition","popper-class","popper-options","fallback-placements","placement"]))}});var _O=He(LQ,[["__file","picker.vue"]]);const NQ=Ue({...bO,datetimeRole:String,parsedValue:{type:ue(Object)}}),TO=({getAvailableHours:e,getAvailableMinutes:t,getAvailableSeconds:n})=>{const r=(o,s,l,u)=>{const c={hour:e,minute:t,second:n};let d=o;return["hour","minute","second"].forEach(p=>{if(c[p]){let h;const v=c[p];switch(p){case"minute":{h=v(d.hour(),s,u);break}case"second":{h=v(d.hour(),d.minute(),s,u);break}default:{h=v(s,u);break}}if(h!=null&&h.length&&!h.includes(d[p]())){const m=l?0:h.length-1;d=d[p](h[m])}}}),d},a={};return{timePickerOptions:a,getAvailableTime:r,onSetOption:([o,s])=>{a[o]=s}}},m0=e=>{const t=(r,a)=>r||a,n=r=>r!==!0;return e.map(t).filter(n)},wO=(e,t,n)=>({getHoursList:(o,s)=>d0(24,e&&(()=>e==null?void 0:e(o,s))),getMinutesList:(o,s,l)=>d0(60,t&&(()=>t==null?void 0:t(o,s,l))),getSecondsList:(o,s,l,u)=>d0(60,n&&(()=>n==null?void 0:n(o,s,l,u)))}),SO=(e,t,n)=>{const{getHoursList:r,getMinutesList:a,getSecondsList:i}=wO(e,t,n);return{getAvailableHours:(u,c)=>m0(r(u,c)),getAvailableMinutes:(u,c,d)=>m0(a(u,c,d)),getAvailableSeconds:(u,c,d,p)=>m0(i(u,c,d,p))}},CO=e=>{const t=z(e.parsedValue);return Ie(()=>e.visible,n=>{n||(t.value=e.parsedValue)}),t},FQ=Ue({role:{type:String,required:!0},spinnerDate:{type:ue(Object),required:!0},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:ue(String),default:""},...yO}),$Q=100,BQ=600,Cm={beforeMount(e,t){const n=t.value,{interval:r=$Q,delay:a=BQ}=ot(n)?{}:n;let i,o;const s=()=>ot(n)?n():n.handler(),l=()=>{o&&(clearTimeout(o),o=void 0),i&&(clearInterval(i),i=void 0)};e.addEventListener("mousedown",u=>{u.button===0&&(l(),s(),document.addEventListener("mouseup",()=>l(),{once:!0}),o=setTimeout(()=>{i=setInterval(()=>{s()},r)},a))})}},VQ=J({__name:"basic-time-spinner",props:FQ,emits:[$t,"select-range","set-option"],setup(e,{emit:t}){const n=e,r=Qe("EP_PICKER_BASE"),{isRange:a,format:i}=r.props,o=Le("time"),{getHoursList:s,getMinutesList:l,getSecondsList:u}=wO(n.disabledHours,n.disabledMinutes,n.disabledSeconds);let c=!1;const d=z(),p=z(),h=z(),v=z(),m={hours:p,minutes:h,seconds:v},g=k(()=>n.showSeconds?nE:nE.slice(0,2)),y=k(()=>{const{spinnerDate:le}=n,ne=le.hour(),be=le.minute(),_e=le.second();return{hours:ne,minutes:be,seconds:_e}}),T=k(()=>{const{hours:le,minutes:ne}=f(y),{role:be,spinnerDate:_e}=n,ve=a?void 0:_e;return{hours:s(be,ve),minutes:l(le,be,ve),seconds:u(le,ne,be,ve)}}),b=k(()=>{const{hours:le,minutes:ne,seconds:be}=f(y);return{hours:c0(le,23),minutes:c0(ne,59),seconds:c0(be,59)}}),_=wa(le=>{c=!1,A(le)},200),w=le=>{if(!!!n.amPmMode)return"";const be=n.amPmMode==="A";let _e=le<12?" am":" pm";return be&&(_e=_e.toUpperCase()),_e},S=le=>{let ne=[0,0];if(!i||i===Sm)switch(le){case"hours":ne=[0,2];break;case"minutes":ne=[3,5];break;case"seconds":ne=[6,8];break}const[be,_e]=ne;t("select-range",be,_e),d.value=le},A=le=>{O(le,f(y)[le])},I=()=>{A("hours"),A("minutes"),A("seconds")},D=le=>le.querySelector(`.${o.namespace.value}-scrollbar__wrap`),O=(le,ne)=>{if(n.arrowControl)return;const be=f(m[le]);be&&be.$el&&(D(be.$el).scrollTop=Math.max(0,ne*V(le)))},V=le=>{const ne=f(m[le]),be=ne==null?void 0:ne.$el.querySelector("li");return be&&Number.parseFloat(Mo(be,"height"))||0},N=()=>{Y(1)},K=()=>{Y(-1)},Y=le=>{d.value||S("hours");const ne=d.value,be=f(y)[ne],_e=d.value==="hours"?24:60,ve=q(ne,be,le,_e);$(ne,ve),O(ne,ve),it(()=>S(ne))},q=(le,ne,be,_e)=>{let ve=(ne+be+_e)%_e;const te=f(T)[le];for(;te[ve]&&ve!==ne;)ve=(ve+be+_e)%_e;return ve},$=(le,ne)=>{if(f(T)[le][ne])return;const{hours:ve,minutes:te,seconds:me}=f(y);let pe;switch(le){case"hours":pe=n.spinnerDate.hour(ne).minute(te).second(me);break;case"minutes":pe=n.spinnerDate.hour(ve).minute(ne).second(me);break;case"seconds":pe=n.spinnerDate.hour(ve).minute(te).second(ne);break}t($t,pe)},j=(le,{value:ne,disabled:be})=>{be||($(le,ne),S(le),O(le,ne))},W=le=>{const ne=f(m[le]);if(!ne)return;c=!0,_(le);const be=Math.min(Math.round((D(ne.$el).scrollTop-(H(le)*.5-10)/V(le)+3)/V(le)),le==="hours"?23:59);$(le,be)},H=le=>f(m[le]).$el.offsetHeight,X=()=>{const le=ne=>{const be=f(m[ne]);be&&be.$el&&(D(be.$el).onscroll=()=>{W(ne)})};le("hours"),le("minutes"),le("seconds")};ht(()=>{it(()=>{!n.arrowControl&&X(),I(),n.role==="start"&&S("hours")})});const re=(le,ne)=>{m[ne].value=le??void 0};return t("set-option",[`${n.role}_scrollDown`,Y]),t("set-option",[`${n.role}_emitSelectRange`,S]),Ie(()=>n.spinnerDate,()=>{c||I()}),(le,ne)=>(x(),U("div",{class:F([f(o).b("spinner"),{"has-seconds":le.showSeconds}])},[le.arrowControl?oe("v-if",!0):(x(!0),U(Ge,{key:0},mt(f(g),be=>(x(),he(f(fo),{key:be,ref_for:!0,ref:_e=>re(_e,be),class:F(f(o).be("spinner","wrapper")),"wrap-style":"max-height: inherit;","view-class":f(o).be("spinner","list"),noresize:"",tag:"ul",onMouseenter:_e=>S(be),onMousemove:_e=>A(be)},{default:P(()=>[(x(!0),U(Ge,null,mt(f(T)[be],(_e,ve)=>(x(),U("li",{key:ve,class:F([f(o).be("spinner","item"),f(o).is("active",ve===f(y)[be]),f(o).is("disabled",_e)]),onClick:te=>j(be,{value:ve,disabled:_e})},[be==="hours"?(x(),U(Ge,{key:0},[we(de(("0"+(le.amPmMode?ve%12||12:ve)).slice(-2))+de(w(ve)),1)],64)):(x(),U(Ge,{key:1},[we(de(("0"+ve).slice(-2)),1)],64))],10,["onClick"]))),128))]),_:2},1032,["class","view-class","onMouseenter","onMousemove"]))),128)),le.arrowControl?(x(!0),U(Ge,{key:1},mt(f(g),be=>(x(),U("div",{key:be,class:F([f(o).be("spinner","wrapper"),f(o).is("arrow")]),onMouseenter:_e=>S(be)},[gt((x(),he(f(et),{class:F(["arrow-up",f(o).be("spinner","arrow")])},{default:P(()=>[E(f(Nv))]),_:1},8,["class"])),[[f(Cm),K]]),gt((x(),he(f(et),{class:F(["arrow-down",f(o).be("spinner","arrow")])},{default:P(()=>[E(f(co))]),_:1},8,["class"])),[[f(Cm),N]]),M("ul",{class:F(f(o).be("spinner","list"))},[(x(!0),U(Ge,null,mt(f(b)[be],(_e,ve)=>(x(),U("li",{key:ve,class:F([f(o).be("spinner","item"),f(o).is("active",_e===f(y)[be]),f(o).is("disabled",f(T)[be][_e])])},[f(st)(_e)?(x(),U(Ge,{key:0},[be==="hours"?(x(),U(Ge,{key:0},[we(de(("0"+(le.amPmMode?_e%12||12:_e)).slice(-2))+de(w(_e)),1)],64)):(x(),U(Ge,{key:1},[we(de(("0"+_e).slice(-2)),1)],64))],64)):oe("v-if",!0)],2))),128))],2)],42,["onMouseenter"]))),128)):oe("v-if",!0)],2))}});var Vy=He(VQ,[["__file","basic-time-spinner.vue"]]);const UQ=J({__name:"panel-time-pick",props:NQ,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const n=e,r=Qe("EP_PICKER_BASE"),{arrowControl:a,disabledHours:i,disabledMinutes:o,disabledSeconds:s,defaultValue:l}=r.props,{getAvailableHours:u,getAvailableMinutes:c,getAvailableSeconds:d}=SO(i,o,s),p=Le("time"),{t:h,lang:v}=Kt(),m=z([0,2]),g=CO(n),y=k(()=>Xt(n.actualVisible)?`${p.namespace.value}-zoom-in-top`:""),T=k(()=>n.format.includes("ss")),b=k(()=>n.format.includes("A")?"A":n.format.includes("a")?"a":""),_=W=>{const H=xt(W).locale(v.value),X=Y(H);return H.isSame(X)},w=()=>{t("pick",g.value,!1)},S=(W=!1,H=!1)=>{H||t("pick",n.parsedValue,W)},A=W=>{if(!n.visible)return;const H=Y(W).millisecond(0);t("pick",H,!0)},I=(W,H)=>{t("select-range",W,H),m.value=[W,H]},D=W=>{const H=[0,3].concat(T.value?[6]:[]),X=["hours","minutes"].concat(T.value?["seconds"]:[]),le=(H.indexOf(m.value[0])+W+H.length)%H.length;V.start_emitSelectRange(X[le])},O=W=>{const H=W.code,{left:X,right:re,up:le,down:ne}=Ye;if([X,re].includes(H)){D(H===X?-1:1),W.preventDefault();return}if([le,ne].includes(H)){const be=H===le?-1:1;V.start_scrollDown(be),W.preventDefault();return}},{timePickerOptions:V,onSetOption:N,getAvailableTime:K}=TO({getAvailableHours:u,getAvailableMinutes:c,getAvailableSeconds:d}),Y=W=>K(W,n.datetimeRole||"",!0),q=W=>W?xt(W,n.format).locale(v.value):null,$=W=>W?W.format(n.format):null,j=()=>xt(l).locale(v.value);return t("set-picker-option",["isValidValue",_]),t("set-picker-option",["formatToString",$]),t("set-picker-option",["parseUserInput",q]),t("set-picker-option",["handleKeydownInput",O]),t("set-picker-option",["getRangeAvailableTime",Y]),t("set-picker-option",["getDefaultValue",j]),(W,H)=>(x(),he(lr,{name:f(y)},{default:P(()=>[W.actualVisible||W.visible?(x(),U("div",{key:0,class:F(f(p).b("panel"))},[M("div",{class:F([f(p).be("panel","content"),{"has-seconds":f(T)}])},[E(Vy,{ref:"spinner",role:W.datetimeRole||"start","arrow-control":f(a),"show-seconds":f(T),"am-pm-mode":f(b),"spinner-date":W.parsedValue,"disabled-hours":f(i),"disabled-minutes":f(o),"disabled-seconds":f(s),onChange:A,onSetOption:f(N),onSelectRange:I},null,8,["role","arrow-control","show-seconds","am-pm-mode","spinner-date","disabled-hours","disabled-minutes","disabled-seconds","onSetOption"])],2),M("div",{class:F(f(p).be("panel","footer"))},[M("button",{type:"button",class:F([f(p).be("panel","btn"),"cancel"]),onClick:w},de(f(h)("el.datepicker.cancel")),3),M("button",{type:"button",class:F([f(p).be("panel","btn"),"confirm"]),onClick:X=>S()},de(f(h)("el.datepicker.confirm")),11,["onClick"])],2)],2)):oe("v-if",!0)]),_:1},8,["name"]))}});var Em=He(UQ,[["__file","panel-time-pick.vue"]]);const HQ=Ue({...bO,parsedValue:{type:ue(Array)}}),zQ=J({__name:"panel-time-range",props:HQ,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const n=e,r=(Pe,ye)=>{const Z=[];for(let ie=Pe;ie<=ye;ie++)Z.push(ie);return Z},{t:a,lang:i}=Kt(),o=Le("time"),s=Le("picker"),l=Qe("EP_PICKER_BASE"),{arrowControl:u,disabledHours:c,disabledMinutes:d,disabledSeconds:p,defaultValue:h}=l.props,v=k(()=>[o.be("range-picker","body"),o.be("panel","content"),o.is("arrow",u),_.value?"has-seconds":""]),m=k(()=>[o.be("range-picker","body"),o.be("panel","content"),o.is("arrow",u),_.value?"has-seconds":""]),g=k(()=>n.parsedValue[0]),y=k(()=>n.parsedValue[1]),T=CO(n),b=()=>{t("pick",T.value,!1)},_=k(()=>n.format.includes("ss")),w=k(()=>n.format.includes("A")?"A":n.format.includes("a")?"a":""),S=(Pe=!1)=>{t("pick",[g.value,y.value],Pe)},A=Pe=>{O(Pe.millisecond(0),y.value)},I=Pe=>{O(g.value,Pe.millisecond(0))},D=Pe=>{const ye=Pe.map(ie=>xt(ie).locale(i.value)),Z=re(ye);return ye[0].isSame(Z[0])&&ye[1].isSame(Z[1])},O=(Pe,ye)=>{n.visible&&t("pick",[Pe,ye],!0)},V=k(()=>g.value>y.value),N=z([0,2]),K=(Pe,ye)=>{t("select-range",Pe,ye,"min"),N.value=[Pe,ye]},Y=k(()=>_.value?11:8),q=(Pe,ye)=>{t("select-range",Pe,ye,"max");const Z=f(Y);N.value=[Pe+Z,ye+Z]},$=Pe=>{const ye=_.value?[0,3,6,11,14,17]:[0,3,8,11],Z=["hours","minutes"].concat(_.value?["seconds"]:[]),Ce=(ye.indexOf(N.value[0])+Pe+ye.length)%ye.length,$e=ye.length/2;Ce<$e?_e.start_emitSelectRange(Z[Ce]):_e.end_emitSelectRange(Z[Ce-$e])},j=Pe=>{const ye=Pe.code,{left:Z,right:ie,up:Ce,down:$e}=Ye;if([Z,ie].includes(ye)){$(ye===Z?-1:1),Pe.preventDefault();return}if([Ce,$e].includes(ye)){const Se=ye===Ce?-1:1,De=N.value[0]<Y.value?"start":"end";_e[`${De}_scrollDown`](Se),Pe.preventDefault();return}},W=(Pe,ye)=>{const Z=c?c(Pe):[],ie=Pe==="start",$e=(ye||(ie?y.value:g.value)).hour(),Se=ie?r($e+1,23):r(0,$e-1);return a0(Z,Se)},H=(Pe,ye,Z)=>{const ie=d?d(Pe,ye):[],Ce=ye==="start",$e=Z||(Ce?y.value:g.value),Se=$e.hour();if(Pe!==Se)return ie;const De=$e.minute(),xe=Ce?r(De+1,59):r(0,De-1);return a0(ie,xe)},X=(Pe,ye,Z,ie)=>{const Ce=p?p(Pe,ye,Z):[],$e=Z==="start",Se=ie||($e?y.value:g.value),De=Se.hour(),xe=Se.minute();if(Pe!==De||ye!==xe)return Ce;const Ve=Se.second(),ze=$e?r(Ve+1,59):r(0,Ve-1);return a0(Ce,ze)},re=([Pe,ye])=>[ve(Pe,"start",!0,ye),ve(ye,"end",!1,Pe)],{getAvailableHours:le,getAvailableMinutes:ne,getAvailableSeconds:be}=SO(W,H,X),{timePickerOptions:_e,getAvailableTime:ve,onSetOption:te}=TO({getAvailableHours:le,getAvailableMinutes:ne,getAvailableSeconds:be}),me=Pe=>Pe?Be(Pe)?Pe.map(ye=>xt(ye,n.format).locale(i.value)):xt(Pe,n.format).locale(i.value):null,pe=Pe=>Pe?Be(Pe)?Pe.map(ye=>ye.format(n.format)):Pe.format(n.format):null,Fe=()=>{if(Be(h))return h.map(ye=>xt(ye).locale(i.value));const Pe=xt(h).locale(i.value);return[Pe,Pe.add(60,"m")]};return t("set-picker-option",["formatToString",pe]),t("set-picker-option",["parseUserInput",me]),t("set-picker-option",["isValidValue",D]),t("set-picker-option",["handleKeydownInput",j]),t("set-picker-option",["getDefaultValue",Fe]),t("set-picker-option",["getRangeAvailableTime",re]),(Pe,ye)=>Pe.actualVisible?(x(),U("div",{key:0,class:F([f(o).b("range-picker"),f(s).b("panel")])},[M("div",{class:F(f(o).be("range-picker","content"))},[M("div",{class:F(f(o).be("range-picker","cell"))},[M("div",{class:F(f(o).be("range-picker","header"))},de(f(a)("el.datepicker.startTime")),3),M("div",{class:F(f(v))},[E(Vy,{ref:"minSpinner",role:"start","show-seconds":f(_),"am-pm-mode":f(w),"arrow-control":f(u),"spinner-date":f(g),"disabled-hours":W,"disabled-minutes":H,"disabled-seconds":X,onChange:A,onSetOption:f(te),onSelectRange:K},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2),M("div",{class:F(f(o).be("range-picker","cell"))},[M("div",{class:F(f(o).be("range-picker","header"))},de(f(a)("el.datepicker.endTime")),3),M("div",{class:F(f(m))},[E(Vy,{ref:"maxSpinner",role:"end","show-seconds":f(_),"am-pm-mode":f(w),"arrow-control":f(u),"spinner-date":f(y),"disabled-hours":W,"disabled-minutes":H,"disabled-seconds":X,onChange:I,onSetOption:f(te),onSelectRange:q},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2)],2),M("div",{class:F(f(o).be("panel","footer"))},[M("button",{type:"button",class:F([f(o).be("panel","btn"),"cancel"]),onClick:Z=>b()},de(f(a)("el.datepicker.cancel")),11,["onClick"]),M("button",{type:"button",class:F([f(o).be("panel","btn"),"confirm"]),disabled:f(V),onClick:Z=>S()},de(f(a)("el.datepicker.confirm")),11,["disabled","onClick"])],2)],2)):oe("v-if",!0)}});var jQ=He(zQ,[["__file","panel-time-range.vue"]]);xt.extend(U1);var WQ=J({name:"ElTimePicker",install:null,props:{...H1,isRange:{type:Boolean,default:!1}},emits:[_t],setup(e,t){const n=z(),[r,a]=e.isRange?["timerange",jQ]:["time",Em],i=o=>t.emit(_t,o);return Vt("ElPopperOptions",e.popperOptions),t.expose({focus:()=>{var o;(o=n.value)==null||o.focus()},blur:()=>{var o;(o=n.value)==null||o.blur()},handleOpen:()=>{var o;(o=n.value)==null||o.handleOpen()},handleClose:()=>{var o;(o=n.value)==null||o.handleClose()}}),()=>{var o;const s=(o=e.format)!=null?o:Sm;return E(_O,Ft(e,{ref:n,type:r,format:s,"onUpdate:modelValue":i}),{default:l=>E(a,l,null)})}}});const KQ=Et(WQ),jv=Symbol(),qQ=Ue({...H1,type:{type:ue(String),default:"date"}}),GQ=["date","dates","year","years","month","months","week","range"],z1=Ue({disabledDate:{type:ue(Function)},date:{type:ue(Object),required:!0},minDate:{type:ue(Object)},maxDate:{type:ue(Object)},parsedValue:{type:ue([Object,Array])},rangeState:{type:ue(Object),default:()=>({endDate:null,selecting:!1})}}),EO=Ue({type:{type:ue(String),required:!0,values:SG},dateFormat:String,timeFormat:String,showNow:{type:Boolean,default:!0}}),j1=Ue({unlinkPanels:Boolean,parsedValue:{type:ue(Array)}}),W1=e=>({type:String,values:GQ,default:e}),YQ=Ue({...EO,parsedValue:{type:ue([Object,Array])},visible:{type:Boolean},format:{type:String,default:""}}),rc=e=>{if(!Be(e))return!1;const[t,n]=e;return xt.isDayjs(t)&&xt.isDayjs(n)&&xt(t).isValid()&&xt(n).isValid()&&t.isSameOrBefore(n)},K1=(e,{lang:t,unit:n,unlinkPanels:r})=>{let a;if(Be(e)){let[i,o]=e.map(s=>xt(s).locale(t));return r||(o=i.add(1,n)),[i,o]}else e?a=xt(e):a=xt();return a=a.locale(t),[a,a.add(1,n)]},XQ=(e,t,{columnIndexOffset:n,startDate:r,nextEndDate:a,now:i,unit:o,relativeDateGetter:s,setCellMetadata:l,setRowMetadata:u})=>{for(let c=0;c<e.row;c++){const d=t[c];for(let p=0;p<e.column;p++){let h=d[p+n];h||(h={row:c,column:p,type:"normal",inRange:!1,start:!1,end:!1});const v=c*e.column+p,m=s(v);h.dayjs=m,h.date=m.toDate(),h.timestamp=m.valueOf(),h.type="normal",h.inRange=!!(r&&m.isSameOrAfter(r,o)&&a&&m.isSameOrBefore(a,o))||!!(r&&m.isSameOrBefore(r,o)&&a&&m.isSameOrAfter(a,o)),r!=null&&r.isSameOrAfter(a)?(h.start=!!a&&m.isSame(a,o),h.end=r&&m.isSame(r,o)):(h.start=!!r&&m.isSame(r,o),h.end=!!a&&m.isSame(a,o)),m.isSame(i,o)&&(h.type="today"),l==null||l(h,{rowIndex:c,columnIndex:p}),d[p+n]=h}u==null||u(d)}},xm=(e,t,n)=>{const r=xt().locale(n).startOf("month").month(t).year(e),a=r.daysInMonth();return ks(a).map(i=>r.add(i,"day").toDate())},xf=(e,t,n,r)=>{const a=xt().year(e).month(t).startOf("month"),i=xm(e,t,n).find(o=>!(r!=null&&r(o)));return i?xt(i).locale(n):a.locale(n)},Uy=(e,t,n)=>{const r=e.year();if(!(n!=null&&n(e.toDate())))return e.locale(t);const a=e.month();if(!xm(r,a,t).every(n))return xf(r,a,t,n);for(let i=0;i<12;i++)if(!xm(r,i,t).every(n))return xf(r,i,t,n);return e},ac=(e,t,n)=>{if(Be(e))return e.map(r=>ac(r,t,n));if(typeof e=="string"){const r=xt(e);if(!r.isValid())return r}return xt(e,t).locale(n)},QQ=Ue({...z1,cellClassName:{type:ue(Function)},showWeekNumber:Boolean,selectionMode:W1("date")}),JQ=["changerange","pick","select"],Hy=(e="")=>["normal","today"].includes(e),ZQ=(e,t)=>{const{lang:n}=Kt(),r=z(),a=z(),i=z(),o=z(),s=z([[],[],[],[],[],[]]);let l=!1;const u=e.date.$locale().weekStart||7,c=e.date.locale("en").localeData().weekdaysShort().map(H=>H.toLowerCase()),d=k(()=>u>3?7-u:-u),p=k(()=>{const H=e.date.startOf("month");return H.subtract(H.day()||7,"day")}),h=k(()=>c.concat(c).slice(u,u+7)),v=k(()=>qD(f(_)).some(H=>H.isCurrent)),m=k(()=>{const H=e.date.startOf("month"),X=H.day()||7,re=H.daysInMonth(),le=H.subtract(1,"month").daysInMonth();return{startOfMonthDay:X,dateCountOfMonth:re,dateCountOfLastMonth:le}}),g=k(()=>e.selectionMode==="dates"?ea(e.parsedValue):[]),y=(H,{count:X,rowIndex:re,columnIndex:le})=>{const{startOfMonthDay:ne,dateCountOfMonth:be,dateCountOfLastMonth:_e}=f(m),ve=f(d);if(re>=0&&re<=1){const te=ne+ve<0?7+ne+ve:ne+ve;if(le+re*7>=te)return H.text=X,!0;H.text=_e-(te-le%7)+1+re*7,H.type="prev-month"}else return X<=be?H.text=X:(H.text=X-be,H.type="next-month"),!0;return!1},T=(H,{columnIndex:X,rowIndex:re},le)=>{const{disabledDate:ne,cellClassName:be}=e,_e=f(g),ve=y(H,{count:le,rowIndex:re,columnIndex:X}),te=H.dayjs.toDate();return H.selected=_e.find(me=>me.isSame(H.dayjs,"day")),H.isSelected=!!H.selected,H.isCurrent=S(H),H.disabled=ne==null?void 0:ne(te),H.customClass=be==null?void 0:be(te),ve},b=H=>{if(e.selectionMode==="week"){const[X,re]=e.showWeekNumber?[1,7]:[0,6],le=W(H[X+1]);H[X].inRange=le,H[X].start=le,H[re].inRange=le,H[re].end=le}},_=k(()=>{const{minDate:H,maxDate:X,rangeState:re,showWeekNumber:le}=e,ne=f(d),be=f(s),_e="day";let ve=1;if(le)for(let te=0;te<6;te++)be[te][0]||(be[te][0]={type:"week",text:f(p).add(te*7+1,_e).week()});return XQ({row:6,column:7},be,{startDate:H,columnIndexOffset:le?1:0,nextEndDate:re.endDate||X||re.selecting&&H||null,now:xt().locale(f(n)).startOf(_e),unit:_e,relativeDateGetter:te=>f(p).add(te-ne,_e),setCellMetadata:(...te)=>{T(...te,ve)&&(ve+=1)},setRowMetadata:b}),be});Ie(()=>e.date,async()=>{var H;(H=f(r))!=null&&H.contains(document.activeElement)&&(await it(),await w())});const w=async()=>{var H;return(H=f(a))==null?void 0:H.focus()},S=H=>e.selectionMode==="date"&&Hy(H.type)&&A(H,e.parsedValue),A=(H,X)=>X?xt(X).locale(f(n)).isSame(e.date.date(Number(H.text)),"day"):!1,I=(H,X)=>{const re=H*7+(X-(e.showWeekNumber?1:0))-f(d);return f(p).add(re,"day")},D=H=>{var X;if(!e.rangeState.selecting)return;let re=H.target;if(re.tagName==="SPAN"&&(re=(X=re.parentNode)==null?void 0:X.parentNode),re.tagName==="DIV"&&(re=re.parentNode),re.tagName!=="TD")return;const le=re.parentNode.rowIndex-1,ne=re.cellIndex;f(_)[le][ne].disabled||(le!==f(i)||ne!==f(o))&&(i.value=le,o.value=ne,t("changerange",{selecting:!0,endDate:I(le,ne)}))},O=H=>!f(v)&&(H==null?void 0:H.text)===1&&H.type==="normal"||H.isCurrent,V=H=>{l||f(v)||e.selectionMode!=="date"||j(H,!0)},N=H=>{H.target.closest("td")&&(l=!0)},K=H=>{H.target.closest("td")&&(l=!1)},Y=H=>{!e.rangeState.selecting||!e.minDate?(t("pick",{minDate:H,maxDate:null}),t("select",!0)):(H>=e.minDate?t("pick",{minDate:e.minDate,maxDate:H}):t("pick",{minDate:H,maxDate:e.minDate}),t("select",!1))},q=H=>{const X=H.week(),re=`${H.year()}w${X}`;t("pick",{year:H.year(),week:X,value:re,date:H.startOf("week")})},$=(H,X)=>{const re=X?ea(e.parsedValue).filter(le=>(le==null?void 0:le.valueOf())!==H.valueOf()):ea(e.parsedValue).concat([H]);t("pick",re)},j=(H,X=!1)=>{const re=H.target.closest("td");if(!re)return;const le=re.parentNode.rowIndex-1,ne=re.cellIndex,be=f(_)[le][ne];if(be.disabled||be.type==="week")return;const _e=I(le,ne);switch(e.selectionMode){case"range":{Y(_e);break}case"date":{t("pick",_e,X);break}case"week":{q(_e);break}case"dates":{$(_e,!!be.selected);break}}},W=H=>{if(e.selectionMode!=="week")return!1;let X=e.date.startOf("day");if(H.type==="prev-month"&&(X=X.subtract(1,"month")),H.type==="next-month"&&(X=X.add(1,"month")),X=X.date(Number.parseInt(H.text,10)),e.parsedValue&&!Be(e.parsedValue)){const re=(e.parsedValue.day()-u+7)%7-1;return e.parsedValue.subtract(re,"day").isSame(X,"day")}return!1};return{WEEKS:h,rows:_,tbodyRef:r,currentCellRef:a,focus:w,isCurrent:S,isWeekActive:W,isSelectedCell:O,handlePickDate:j,handleMouseUp:K,handleMouseDown:N,handleMouseMove:D,handleFocus:V}},eJ=(e,{isCurrent:t,isWeekActive:n})=>{const r=Le("date-table"),{t:a}=Kt(),i=k(()=>[r.b(),{"is-week-mode":e.selectionMode==="week"}]),o=k(()=>a("el.datepicker.dateTablePrompt")),s=k(()=>a("el.datepicker.week"));return{tableKls:i,tableLabel:o,weekLabel:s,getCellClasses:c=>{const d=[];return Hy(c.type)&&!c.disabled?(d.push("available"),c.type==="today"&&d.push("today")):d.push(c.type),t(c)&&d.push("current"),c.inRange&&(Hy(c.type)||e.selectionMode==="week")&&(d.push("in-range"),c.start&&d.push("start-date"),c.end&&d.push("end-date")),c.disabled&&d.push("disabled"),c.selected&&d.push("selected"),c.customClass&&d.push(c.customClass),d.join(" ")},getRowKls:c=>[r.e("row"),{current:n(c)}],t:a}},tJ=Ue({cell:{type:ue(Object)}});var q1=J({name:"ElDatePickerCell",props:tJ,setup(e){const t=Le("date-table-cell"),{slots:n}=Qe(jv);return()=>{const{cell:r}=e;return fe(n,"default",{...r},()=>{var a;return[E("div",{class:t.b()},[E("span",{class:t.e("text")},[(a=r==null?void 0:r.renderText)!=null?a:r==null?void 0:r.text])])]})}}});const nJ=J({__name:"basic-date-table",props:QQ,emits:JQ,setup(e,{expose:t,emit:n}){const r=e,{WEEKS:a,rows:i,tbodyRef:o,currentCellRef:s,focus:l,isCurrent:u,isWeekActive:c,isSelectedCell:d,handlePickDate:p,handleMouseUp:h,handleMouseDown:v,handleMouseMove:m,handleFocus:g}=ZQ(r,n),{tableLabel:y,tableKls:T,weekLabel:b,getCellClasses:_,getRowKls:w,t:S}=eJ(r,{isCurrent:u,isWeekActive:c});return t({focus:l}),(A,I)=>(x(),U("table",{"aria-label":f(y),class:F(f(T)),cellspacing:"0",cellpadding:"0",role:"grid",onClick:f(p),onMousemove:f(m),onMousedown:ft(f(v),["prevent"]),onMouseup:f(h)},[M("tbody",{ref_key:"tbodyRef",ref:o},[M("tr",null,[A.showWeekNumber?(x(),U("th",{key:0,scope:"col"},de(f(b)),1)):oe("v-if",!0),(x(!0),U(Ge,null,mt(f(a),(D,O)=>(x(),U("th",{key:O,"aria-label":f(S)("el.datepicker.weeksFull."+D),scope:"col"},de(f(S)("el.datepicker.weeks."+D)),9,["aria-label"]))),128))]),(x(!0),U(Ge,null,mt(f(i),(D,O)=>(x(),U("tr",{key:O,class:F(f(w)(D[1]))},[(x(!0),U(Ge,null,mt(D,(V,N)=>(x(),U("td",{key:`${O}.${N}`,ref_for:!0,ref:K=>f(d)(V)&&(s.value=K),class:F(f(_)(V)),"aria-current":V.isCurrent?"date":void 0,"aria-selected":V.isCurrent,tabindex:f(d)(V)?0:-1,onFocus:f(g)},[E(f(q1),{cell:V},null,8,["cell"])],42,["aria-current","aria-selected","tabindex","onFocus"]))),128))],2))),128))],512)],42,["aria-label","onClick","onMousemove","onMousedown","onMouseup"]))}});var zy=He(nJ,[["__file","basic-date-table.vue"]]);const rJ=Ue({...z1,selectionMode:W1("month")}),aJ=J({__name:"basic-month-table",props:rJ,emits:["changerange","pick","select"],setup(e,{expose:t,emit:n}){const r=e,a=Le("month-table"),{t:i,lang:o}=Kt(),s=z(),l=z(),u=z(r.date.locale("en").localeData().monthsShort().map(b=>b.toLowerCase())),c=z([[],[],[]]),d=z(),p=z(),h=k(()=>{var b,_;const w=c.value,S=xt().locale(o.value).startOf("month");for(let A=0;A<3;A++){const I=w[A];for(let D=0;D<4;D++){const O=I[D]||(I[D]={row:A,column:D,type:"normal",inRange:!1,start:!1,end:!1,text:-1,disabled:!1});O.type="normal";const V=A*4+D,N=r.date.startOf("year").month(V),K=r.rangeState.endDate||r.maxDate||r.rangeState.selecting&&r.minDate||null;O.inRange=!!(r.minDate&&N.isSameOrAfter(r.minDate,"month")&&K&&N.isSameOrBefore(K,"month"))||!!(r.minDate&&N.isSameOrBefore(r.minDate,"month")&&K&&N.isSameOrAfter(K,"month")),(b=r.minDate)!=null&&b.isSameOrAfter(K)?(O.start=!!(K&&N.isSame(K,"month")),O.end=r.minDate&&N.isSame(r.minDate,"month")):(O.start=!!(r.minDate&&N.isSame(r.minDate,"month")),O.end=!!(K&&N.isSame(K,"month"))),S.isSame(N)&&(O.type="today"),O.text=V,O.disabled=((_=r.disabledDate)==null?void 0:_.call(r,N.toDate()))||!1}}return w}),v=()=>{var b;(b=l.value)==null||b.focus()},m=b=>{const _={},w=r.date.year(),S=new Date,A=b.text;return _.disabled=r.disabledDate?xm(w,A,o.value).every(r.disabledDate):!1,_.current=ea(r.parsedValue).findIndex(I=>xt.isDayjs(I)&&I.year()===w&&I.month()===A)>=0,_.today=S.getFullYear()===w&&S.getMonth()===A,b.inRange&&(_["in-range"]=!0,b.start&&(_["start-date"]=!0),b.end&&(_["end-date"]=!0)),_},g=b=>{const _=r.date.year(),w=b.text;return ea(r.date).findIndex(S=>S.year()===_&&S.month()===w)>=0},y=b=>{var _;if(!r.rangeState.selecting)return;let w=b.target;if(w.tagName==="SPAN"&&(w=(_=w.parentNode)==null?void 0:_.parentNode),w.tagName==="DIV"&&(w=w.parentNode),w.tagName!=="TD")return;const S=w.parentNode.rowIndex,A=w.cellIndex;h.value[S][A].disabled||(S!==d.value||A!==p.value)&&(d.value=S,p.value=A,n("changerange",{selecting:!0,endDate:r.date.startOf("year").month(S*4+A)}))},T=b=>{var _;const w=(_=b.target)==null?void 0:_.closest("td");if((w==null?void 0:w.tagName)!=="TD"||ba(w,"disabled"))return;const S=w.cellIndex,I=w.parentNode.rowIndex*4+S,D=r.date.startOf("year").month(I);if(r.selectionMode==="months"){if(b.type==="keydown"){n("pick",ea(r.parsedValue),!1);return}const O=xf(r.date.year(),I,o.value,r.disabledDate),V=ba(w,"current")?ea(r.parsedValue).filter(N=>(N==null?void 0:N.year())!==O.year()||(N==null?void 0:N.month())!==O.month()):ea(r.parsedValue).concat([xt(O)]);n("pick",V)}else r.selectionMode==="range"?r.rangeState.selecting?(r.minDate&&D>=r.minDate?n("pick",{minDate:r.minDate,maxDate:D}):n("pick",{minDate:D,maxDate:r.minDate}),n("select",!1)):(n("pick",{minDate:D,maxDate:null}),n("select",!0)):n("pick",I)};return Ie(()=>r.date,async()=>{var b,_;(b=s.value)!=null&&b.contains(document.activeElement)&&(await it(),(_=l.value)==null||_.focus())}),t({focus:v}),(b,_)=>(x(),U("table",{role:"grid","aria-label":f(i)("el.datepicker.monthTablePrompt"),class:F(f(a).b()),onClick:T,onMousemove:y},[M("tbody",{ref_key:"tbodyRef",ref:s},[(x(!0),U(Ge,null,mt(f(h),(w,S)=>(x(),U("tr",{key:S},[(x(!0),U(Ge,null,mt(w,(A,I)=>(x(),U("td",{key:I,ref_for:!0,ref:D=>g(A)&&(l.value=D),class:F(m(A)),"aria-selected":`${g(A)}`,"aria-label":f(i)(`el.datepicker.month${+A.text+1}`),tabindex:g(A)?0:-1,onKeydown:[sn(ft(T,["prevent","stop"]),["space"]),sn(ft(T,["prevent","stop"]),["enter"])]},[E(f(q1),{cell:{...A,renderText:f(i)("el.datepicker.months."+u.value[A.text])}},null,8,["cell"])],42,["aria-selected","aria-label","tabindex","onKeydown"]))),128))]))),128))],512)],42,["aria-label"]))}});var jy=He(aJ,[["__file","basic-month-table.vue"]]);const iJ=Ue({...z1,selectionMode:W1("year")}),oJ=J({__name:"basic-year-table",props:iJ,emits:["changerange","pick","select"],setup(e,{expose:t,emit:n}){const r=e,a=(_,w)=>{const S=xt(String(_)).locale(w).startOf("year"),I=S.endOf("year").dayOfYear();return ks(I).map(D=>S.add(D,"day").toDate())},i=Le("year-table"),{t:o,lang:s}=Kt(),l=z(),u=z(),c=k(()=>Math.floor(r.date.year()/10)*10),d=z([[],[],[]]),p=z(),h=z(),v=k(()=>{var _;const w=d.value,S=xt().locale(s.value).startOf("year");for(let A=0;A<3;A++){const I=w[A];for(let D=0;D<4&&!(A*4+D>=10);D++){let O=I[D];O||(O={row:A,column:D,type:"normal",inRange:!1,start:!1,end:!1,text:-1,disabled:!1}),O.type="normal";const V=A*4+D+c.value,N=xt().year(V),K=r.rangeState.endDate||r.maxDate||r.rangeState.selecting&&r.minDate||null;O.inRange=!!(r.minDate&&N.isSameOrAfter(r.minDate,"year")&&K&&N.isSameOrBefore(K,"year"))||!!(r.minDate&&N.isSameOrBefore(r.minDate,"year")&&K&&N.isSameOrAfter(K,"year")),(_=r.minDate)!=null&&_.isSameOrAfter(K)?(O.start=!!(K&&N.isSame(K,"year")),O.end=!!(r.minDate&&N.isSame(r.minDate,"year"))):(O.start=!!(r.minDate&&N.isSame(r.minDate,"year")),O.end=!!(K&&N.isSame(K,"year"))),S.isSame(N)&&(O.type="today"),O.text=V;const q=N.toDate();O.disabled=r.disabledDate&&r.disabledDate(q)||!1,I[D]=O}}return w}),m=()=>{var _;(_=u.value)==null||_.focus()},g=_=>{const w={},S=xt().locale(s.value),A=_.text;return w.disabled=r.disabledDate?a(A,s.value).every(r.disabledDate):!1,w.today=S.year()===A,w.current=ea(r.parsedValue).findIndex(I=>I.year()===A)>=0,_.inRange&&(w["in-range"]=!0,_.start&&(w["start-date"]=!0),_.end&&(w["end-date"]=!0)),w},y=_=>{const w=_.text;return ea(r.date).findIndex(S=>S.year()===w)>=0},T=_=>{var w;const S=(w=_.target)==null?void 0:w.closest("td");if(!S||!S.textContent||ba(S,"disabled"))return;const A=S.cellIndex,D=S.parentNode.rowIndex*4+A+c.value,O=xt().year(D);if(r.selectionMode==="range")r.rangeState.selecting?(r.minDate&&O>=r.minDate?n("pick",{minDate:r.minDate,maxDate:O}):n("pick",{minDate:O,maxDate:r.minDate}),n("select",!1)):(n("pick",{minDate:O,maxDate:null}),n("select",!0));else if(r.selectionMode==="years"){if(_.type==="keydown"){n("pick",ea(r.parsedValue),!1);return}const V=Uy(O.startOf("year"),s.value,r.disabledDate),N=ba(S,"current")?ea(r.parsedValue).filter(K=>(K==null?void 0:K.year())!==D):ea(r.parsedValue).concat([V]);n("pick",N)}else n("pick",D)},b=_=>{var w;if(!r.rangeState.selecting)return;const S=(w=_.target)==null?void 0:w.closest("td");if(!S)return;const A=S.parentNode.rowIndex,I=S.cellIndex;v.value[A][I].disabled||(A!==p.value||I!==h.value)&&(p.value=A,h.value=I,n("changerange",{selecting:!0,endDate:xt().year(c.value).add(A*4+I,"year")}))};return Ie(()=>r.date,async()=>{var _,w;(_=l.value)!=null&&_.contains(document.activeElement)&&(await it(),(w=u.value)==null||w.focus())}),t({focus:m}),(_,w)=>(x(),U("table",{role:"grid","aria-label":f(o)("el.datepicker.yearTablePrompt"),class:F(f(i).b()),onClick:T,onMousemove:b},[M("tbody",{ref_key:"tbodyRef",ref:l},[(x(!0),U(Ge,null,mt(f(v),(S,A)=>(x(),U("tr",{key:A},[(x(!0),U(Ge,null,mt(S,(I,D)=>(x(),U("td",{key:`${A}_${D}`,ref_for:!0,ref:O=>y(I)&&(u.value=O),class:F(["available",g(I)]),"aria-selected":y(I),"aria-label":String(I.text),tabindex:y(I)?0:-1,onKeydown:[sn(ft(T,["prevent","stop"]),["space"]),sn(ft(T,["prevent","stop"]),["enter"])]},[E(f(q1),{cell:I},null,8,["cell"])],42,["aria-selected","aria-label","tabindex","onKeydown"]))),128))]))),128))],512)],42,["aria-label"]))}});var Wy=He(oJ,[["__file","basic-year-table.vue"]]);const sJ=J({__name:"panel-date-pick",props:YQ,emits:["pick","set-picker-option","panel-change"],setup(e,{emit:t}){const n=e,r=(Oe,ce,Me)=>!0,a=Le("picker-panel"),i=Le("date-picker"),o=es(),s=ir(),{t:l,lang:u}=Kt(),c=Qe("EP_PICKER_BASE"),d=Qe(Hv),{shortcuts:p,disabledDate:h,cellClassName:v,defaultTime:m}=c.props,g=rn(c.props,"defaultValue"),y=z(),T=z(xt().locale(u.value)),b=z(!1);let _=!1;const w=k(()=>xt(m).locale(u.value)),S=k(()=>T.value.month()),A=k(()=>T.value.year()),I=z([]),D=z(null),O=z(null),V=Oe=>I.value.length>0?r(Oe,I.value,n.format||"HH:mm:ss"):!0,N=Oe=>m&&!Ce.value&&!b.value&&!_?w.value.year(Oe.year()).month(Oe.month()).date(Oe.date()):te.value?Oe.millisecond(0):Oe.startOf("day"),K=(Oe,...ce)=>{if(!Oe)t("pick",Oe,...ce);else if(Be(Oe)){const Me=Oe.map(N);t("pick",Me,...ce)}else t("pick",N(Oe),...ce);D.value=null,O.value=null,b.value=!1,_=!1},Y=async(Oe,ce)=>{if(X.value==="date"){Oe=Oe;let Me=n.parsedValue?n.parsedValue.year(Oe.year()).month(Oe.month()).date(Oe.date()):Oe;V(Me)||(Me=I.value[0][0].year(Oe.year()).month(Oe.month()).date(Oe.date())),T.value=Me,K(Me,te.value||ce),n.type==="datetime"&&(await it(),Pt())}else X.value==="week"?K(Oe.date):X.value==="dates"&&K(Oe,!0)},q=Oe=>{const ce=Oe?"add":"subtract";T.value=T.value[ce](1,"month"),dt("month")},$=Oe=>{const ce=T.value,Me=Oe?"add":"subtract";T.value=j.value==="year"?ce[Me](10,"year"):ce[Me](1,"year"),dt("year")},j=z("date"),W=k(()=>{const Oe=l("el.datepicker.year");if(j.value==="year"){const ce=Math.floor(A.value/10)*10;return Oe?`${ce} ${Oe} - ${ce+9} ${Oe}`:`${ce} - ${ce+9}`}return`${A.value} ${Oe}`}),H=Oe=>{const ce=ot(Oe.value)?Oe.value():Oe.value;if(ce){_=!0,K(xt(ce).locale(u.value));return}Oe.onClick&&Oe.onClick({attrs:o,slots:s,emit:t})},X=k(()=>{const{type:Oe}=n;return["week","month","months","year","years","dates"].includes(Oe)?Oe:"date"}),re=k(()=>X.value==="dates"||X.value==="months"||X.value==="years"),le=k(()=>X.value==="date"?j.value:X.value),ne=k(()=>!!p.length),be=async(Oe,ce)=>{X.value==="month"?(T.value=xf(T.value.year(),Oe,u.value,h),K(T.value,!1)):X.value==="months"?K(Oe,ce??!0):(T.value=xf(T.value.year(),Oe,u.value,h),j.value="date",["month","year","date","week"].includes(X.value)&&(K(T.value,!0),await it(),Pt())),dt("month")},_e=async(Oe,ce)=>{if(X.value==="year"){const Me=T.value.startOf("year").year(Oe);T.value=Uy(Me,u.value,h),K(T.value,!1)}else if(X.value==="years")K(Oe,ce??!0);else{const Me=T.value.year(Oe);T.value=Uy(Me,u.value,h),j.value="month",["month","year","date","week"].includes(X.value)&&(K(T.value,!0),await it(),Pt())}dt("year")},ve=async Oe=>{j.value=Oe,await it(),Pt()},te=k(()=>n.type==="datetime"||n.type==="datetimerange"),me=k(()=>{const Oe=te.value||X.value==="dates",ce=X.value==="years",Me=X.value==="months",ae=j.value==="date",We=j.value==="year",St=j.value==="month";return Oe&&ae||ce&&We||Me&&St}),pe=k(()=>h?n.parsedValue?Be(n.parsedValue)?h(n.parsedValue[0].toDate()):h(n.parsedValue.toDate()):!0:!1),Fe=()=>{if(re.value)K(n.parsedValue);else{let Oe=n.parsedValue;if(!Oe){const ce=xt(m).locale(u.value),Me=Dt();Oe=ce.year(Me.year()).month(Me.month()).date(Me.date())}T.value=Oe,K(Oe)}},Pe=k(()=>h?h(xt().locale(u.value).toDate()):!1),ye=()=>{const ce=xt().locale(u.value).toDate();b.value=!0,(!h||!h(ce))&&V(ce)&&(T.value=xt().locale(u.value),K(T.value))},Z=k(()=>n.timeFormat||OP(n.format)),ie=k(()=>n.dateFormat||PP(n.format)),Ce=k(()=>{if(O.value)return O.value;if(!(!n.parsedValue&&!g.value))return(n.parsedValue||T.value).format(Z.value)}),$e=k(()=>{if(D.value)return D.value;if(!(!n.parsedValue&&!g.value))return(n.parsedValue||T.value).format(ie.value)}),Se=z(!1),De=()=>{Se.value=!0},xe=()=>{Se.value=!1},Ve=Oe=>({hour:Oe.hour(),minute:Oe.minute(),second:Oe.second(),year:Oe.year(),month:Oe.month(),date:Oe.date()}),ze=(Oe,ce,Me)=>{const{hour:ae,minute:We,second:St}=Ve(Oe),kt=n.parsedValue?n.parsedValue.hour(ae).minute(We).second(St):Oe;T.value=kt,K(T.value,!0),Me||(Se.value=ce)},je=Oe=>{const ce=xt(Oe,Z.value).locale(u.value);if(ce.isValid()&&V(ce)){const{year:Me,month:ae,date:We}=Ve(T.value);T.value=ce.year(Me).month(ae).date(We),O.value=null,Se.value=!1,K(T.value,!0)}},nt=Oe=>{const ce=ac(Oe,ie.value,u.value);if(ce.isValid()){if(h&&h(ce.toDate()))return;const{hour:Me,minute:ae,second:We}=Ve(T.value);T.value=ce.hour(Me).minute(ae).second(We),D.value=null,K(T.value,!0)}},Ae=Oe=>xt.isDayjs(Oe)&&Oe.isValid()&&(h?!h(Oe.toDate()):!0),Xe=Oe=>Be(Oe)?Oe.map(ce=>ce.format(n.format)):Oe.format(n.format),ct=Oe=>ac(Oe,n.format,u.value),Dt=()=>{const Oe=xt(g.value).locale(u.value);if(!g.value){const ce=w.value;return xt().hour(ce.hour()).minute(ce.minute()).second(ce.second()).locale(u.value)}return Oe},Pt=()=>{var Oe;["week","month","year","date"].includes(X.value)&&((Oe=y.value)==null||Oe.focus())},Bt=()=>{Pt(),X.value==="week"&&Nt(Ye.down)},Ut=Oe=>{const{code:ce}=Oe;[Ye.up,Ye.down,Ye.left,Ye.right,Ye.home,Ye.end,Ye.pageUp,Ye.pageDown].includes(ce)&&(Nt(ce),Oe.stopPropagation(),Oe.preventDefault()),[Ye.enter,Ye.space,Ye.numpadEnter].includes(ce)&&D.value===null&&O.value===null&&(Oe.preventDefault(),K(T.value,!1))},Nt=Oe=>{var ce;const{up:Me,down:ae,left:We,right:St,home:kt,end:mn,pageUp:fa,pageDown:bn}=Ye,qn={year:{[Me]:-4,[ae]:4,[We]:-1,[St]:1,offset:(vn,kr)=>vn.setFullYear(vn.getFullYear()+kr)},month:{[Me]:-4,[ae]:4,[We]:-1,[St]:1,offset:(vn,kr)=>vn.setMonth(vn.getMonth()+kr)},week:{[Me]:-1,[ae]:1,[We]:-1,[St]:1,offset:(vn,kr)=>vn.setDate(vn.getDate()+kr*7)},date:{[Me]:-7,[ae]:7,[We]:-1,[St]:1,[kt]:vn=>-vn.getDay(),[mn]:vn=>-vn.getDay()+6,[fa]:vn=>-new Date(vn.getFullYear(),vn.getMonth(),0).getDate(),[bn]:vn=>new Date(vn.getFullYear(),vn.getMonth()+1,0).getDate(),offset:(vn,kr)=>vn.setDate(vn.getDate()+kr)}},Tn=T.value.toDate();for(;Math.abs(T.value.diff(Tn,"year",!0))<1;){const vn=qn[le.value];if(!vn)return;if(vn.offset(Tn,ot(vn[Oe])?vn[Oe](Tn):(ce=vn[Oe])!=null?ce:0),h&&h(Tn))break;const kr=xt(Tn).locale(u.value);T.value=kr,t("pick",kr,!0);break}},dt=Oe=>{t("panel-change",T.value.toDate(),Oe,j.value)};return Ie(()=>X.value,Oe=>{if(["month","year"].includes(Oe)){j.value=Oe;return}else if(Oe==="years"){j.value="year";return}else if(Oe==="months"){j.value="month";return}j.value="date"},{immediate:!0}),Ie(()=>j.value,()=>{d==null||d.updatePopper()}),Ie(()=>g.value,Oe=>{Oe&&(T.value=Dt())},{immediate:!0}),Ie(()=>n.parsedValue,Oe=>{if(Oe){if(re.value||Be(Oe))return;T.value=Oe}else T.value=Dt()},{immediate:!0}),t("set-picker-option",["isValidValue",Ae]),t("set-picker-option",["formatToString",Xe]),t("set-picker-option",["parseUserInput",ct]),t("set-picker-option",["handleFocusPicker",Bt]),(Oe,ce)=>(x(),U("div",{class:F([f(a).b(),f(i).b(),{"has-sidebar":Oe.$slots.sidebar||f(ne),"has-time":f(te)}])},[M("div",{class:F(f(a).e("body-wrapper"))},[fe(Oe.$slots,"sidebar",{class:F(f(a).e("sidebar"))}),f(ne)?(x(),U("div",{key:0,class:F(f(a).e("sidebar"))},[(x(!0),U(Ge,null,mt(f(p),(Me,ae)=>(x(),U("button",{key:ae,type:"button",class:F(f(a).e("shortcut")),onClick:We=>H(Me)},de(Me.text),11,["onClick"]))),128))],2)):oe("v-if",!0),M("div",{class:F(f(a).e("body"))},[f(te)?(x(),U("div",{key:0,class:F(f(i).e("time-header"))},[M("span",{class:F(f(i).e("editor-wrap"))},[E(f(Wn),{placeholder:f(l)("el.datepicker.selectDate"),"model-value":f($e),size:"small","validate-event":!1,onInput:Me=>D.value=Me,onChange:nt},null,8,["placeholder","model-value","onInput"])],2),gt((x(),U("span",{class:F(f(i).e("editor-wrap"))},[E(f(Wn),{placeholder:f(l)("el.datepicker.selectTime"),"model-value":f(Ce),size:"small","validate-event":!1,onFocus:De,onInput:Me=>O.value=Me,onChange:je},null,8,["placeholder","model-value","onInput"]),E(f(Em),{visible:Se.value,format:f(Z),"parsed-value":T.value,onPick:ze},null,8,["visible","format","parsed-value"])],2)),[[f(Wo),xe]])],2)):oe("v-if",!0),gt(M("div",{class:F([f(i).e("header"),(j.value==="year"||j.value==="month")&&f(i).e("header--bordered")])},[M("span",{class:F(f(i).e("prev-btn"))},[M("button",{type:"button","aria-label":f(l)("el.datepicker.prevYear"),class:F(["d-arrow-left",f(a).e("icon-btn")]),onClick:Me=>$(!1)},[fe(Oe.$slots,"prev-year",{},()=>[E(f(et),null,{default:P(()=>[E(f(Rs))]),_:1})])],10,["aria-label","onClick"]),gt(M("button",{type:"button","aria-label":f(l)("el.datepicker.prevMonth"),class:F([f(a).e("icon-btn"),"arrow-left"]),onClick:Me=>q(!1)},[fe(Oe.$slots,"prev-month",{},()=>[E(f(et),null,{default:P(()=>[E(f(Ms))]),_:1})])],10,["aria-label","onClick"]),[[zt,j.value==="date"]])],2),M("span",{role:"button",class:F(f(i).e("header-label")),"aria-live":"polite",tabindex:"0",onKeydown:sn(Me=>ve("year"),["enter"]),onClick:Me=>ve("year")},de(f(W)),43,["onKeydown","onClick"]),gt(M("span",{role:"button","aria-live":"polite",tabindex:"0",class:F([f(i).e("header-label"),{active:j.value==="month"}]),onKeydown:sn(Me=>ve("month"),["enter"]),onClick:Me=>ve("month")},de(f(l)(`el.datepicker.month${f(S)+1}`)),43,["onKeydown","onClick"]),[[zt,j.value==="date"]]),M("span",{class:F(f(i).e("next-btn"))},[gt(M("button",{type:"button","aria-label":f(l)("el.datepicker.nextMonth"),class:F([f(a).e("icon-btn"),"arrow-right"]),onClick:Me=>q(!0)},[fe(Oe.$slots,"next-month",{},()=>[E(f(et),null,{default:P(()=>[E(f(sa))]),_:1})])],10,["aria-label","onClick"]),[[zt,j.value==="date"]]),M("button",{type:"button","aria-label":f(l)("el.datepicker.nextYear"),class:F([f(a).e("icon-btn"),"d-arrow-right"]),onClick:Me=>$(!0)},[fe(Oe.$slots,"next-year",{},()=>[E(f(et),null,{default:P(()=>[E(f(Ls))]),_:1})])],10,["aria-label","onClick"])],2)],2),[[zt,j.value!=="time"]]),M("div",{class:F(f(a).e("content")),onKeydown:Ut},[j.value==="date"?(x(),he(zy,{key:0,ref_key:"currentViewRef",ref:y,"selection-mode":f(X),date:T.value,"parsed-value":Oe.parsedValue,"disabled-date":f(h),"cell-class-name":f(v),onPick:Y},null,8,["selection-mode","date","parsed-value","disabled-date","cell-class-name"])):oe("v-if",!0),j.value==="year"?(x(),he(Wy,{key:1,ref_key:"currentViewRef",ref:y,"selection-mode":f(X),date:T.value,"disabled-date":f(h),"parsed-value":Oe.parsedValue,onPick:_e},null,8,["selection-mode","date","disabled-date","parsed-value"])):oe("v-if",!0),j.value==="month"?(x(),he(jy,{key:2,ref_key:"currentViewRef",ref:y,"selection-mode":f(X),date:T.value,"parsed-value":Oe.parsedValue,"disabled-date":f(h),onPick:be},null,8,["selection-mode","date","parsed-value","disabled-date"])):oe("v-if",!0)],34)],2)],2),gt(M("div",{class:F(f(a).e("footer"))},[gt(E(f(_n),{text:"",size:"small",class:F(f(a).e("link-btn")),disabled:f(Pe),onClick:ye},{default:P(()=>[we(de(f(l)("el.datepicker.now")),1)]),_:1},8,["class","disabled"]),[[zt,!f(re)&&Oe.showNow]]),E(f(_n),{plain:"",size:"small",class:F(f(a).e("link-btn")),disabled:f(pe),onClick:Fe},{default:P(()=>[we(de(f(l)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])],2),[[zt,f(me)]])],2))}});var lJ=He(sJ,[["__file","panel-date-pick.vue"]]);const uJ=Ue({...EO,...j1,visible:Boolean}),xO=e=>{const{emit:t}=Mt(),n=es(),r=ir();return i=>{const o=ot(i.value)?i.value():i.value;if(o){t("pick",[xt(o[0]).locale(e.value),xt(o[1]).locale(e.value)]);return}i.onClick&&i.onClick({attrs:n,slots:r,emit:t})}},kO=(e,{defaultValue:t,leftDate:n,rightDate:r,unit:a,onParsedValueChanged:i})=>{const{emit:o}=Mt(),{pickerNs:s}=Qe(jv),l=Le("date-range-picker"),{t:u,lang:c}=Kt(),d=xO(c),p=z(),h=z(),v=z({endDate:null,selecting:!1}),m=_=>{v.value=_},g=(_=!1)=>{const w=f(p),S=f(h);rc([w,S])&&o("pick",[w,S],_)},y=_=>{v.value.selecting=_,_||(v.value.endDate=null)},T=_=>{if(Be(_)&&_.length===2){const[w,S]=_;p.value=w,n.value=w,h.value=S,i(f(p),f(h))}else b()},b=()=>{const[_,w]=K1(f(t),{lang:f(c),unit:a,unlinkPanels:e.unlinkPanels});p.value=void 0,h.value=void 0,n.value=_,r.value=w};return Ie(t,_=>{_&&b()},{immediate:!0}),Ie(()=>e.parsedValue,T,{immediate:!0}),{minDate:p,maxDate:h,rangeState:v,lang:c,ppNs:s,drpNs:l,handleChangeRange:m,handleRangeConfirm:g,handleShortcutClick:d,onSelect:y,onReset:T,t:u}},lh="month",cJ=J({__name:"panel-date-range",props:uJ,emits:["pick","set-picker-option","calendar-change","panel-change"],setup(e,{emit:t}){const n=e,r=Qe("EP_PICKER_BASE"),{disabledDate:a,cellClassName:i,defaultTime:o,clearable:s}=r.props,l=rn(r.props,"format"),u=rn(r.props,"shortcuts"),c=rn(r.props,"defaultValue"),{lang:d}=Kt(),p=z(xt().locale(d.value)),h=z(xt().locale(d.value).add(1,lh)),{minDate:v,maxDate:m,rangeState:g,ppNs:y,drpNs:T,handleChangeRange:b,handleRangeConfirm:_,handleShortcutClick:w,onSelect:S,onReset:A,t:I}=kO(n,{defaultValue:c,leftDate:p,rightDate:h,unit:lh,onParsedValueChanged:Oe});Ie(()=>n.visible,ce=>{!ce&&g.value.selecting&&(A(n.parsedValue),S(!1))});const D=z({min:null,max:null}),O=z({min:null,max:null}),V=k(()=>`${p.value.year()} ${I("el.datepicker.year")} ${I(`el.datepicker.month${p.value.month()+1}`)}`),N=k(()=>`${h.value.year()} ${I("el.datepicker.year")} ${I(`el.datepicker.month${h.value.month()+1}`)}`),K=k(()=>p.value.year()),Y=k(()=>p.value.month()),q=k(()=>h.value.year()),$=k(()=>h.value.month()),j=k(()=>!!u.value.length),W=k(()=>D.value.min!==null?D.value.min:v.value?v.value.format(ne.value):""),H=k(()=>D.value.max!==null?D.value.max:m.value||v.value?(m.value||v.value).format(ne.value):""),X=k(()=>O.value.min!==null?O.value.min:v.value?v.value.format(le.value):""),re=k(()=>O.value.max!==null?O.value.max:m.value||v.value?(m.value||v.value).format(le.value):""),le=k(()=>n.timeFormat||OP(l.value)),ne=k(()=>n.dateFormat||PP(l.value)),be=ce=>rc(ce)&&(a?!a(ce[0].toDate())&&!a(ce[1].toDate()):!0),_e=()=>{p.value=p.value.subtract(1,"year"),n.unlinkPanels||(h.value=p.value.add(1,"month")),Z("year")},ve=()=>{p.value=p.value.subtract(1,"month"),n.unlinkPanels||(h.value=p.value.add(1,"month")),Z("month")},te=()=>{n.unlinkPanels?h.value=h.value.add(1,"year"):(p.value=p.value.add(1,"year"),h.value=p.value.add(1,"month")),Z("year")},me=()=>{n.unlinkPanels?h.value=h.value.add(1,"month"):(p.value=p.value.add(1,"month"),h.value=p.value.add(1,"month")),Z("month")},pe=()=>{p.value=p.value.add(1,"year"),Z("year")},Fe=()=>{p.value=p.value.add(1,"month"),Z("month")},Pe=()=>{h.value=h.value.subtract(1,"year"),Z("year")},ye=()=>{h.value=h.value.subtract(1,"month"),Z("month")},Z=ce=>{t("panel-change",[p.value.toDate(),h.value.toDate()],ce)},ie=k(()=>{const ce=(Y.value+1)%12,Me=Y.value+1>=12?1:0;return n.unlinkPanels&&new Date(K.value+Me,ce)<new Date(q.value,$.value)}),Ce=k(()=>n.unlinkPanels&&q.value*12+$.value-(K.value*12+Y.value+1)>=12),$e=k(()=>!(v.value&&m.value&&!g.value.selecting&&rc([v.value,m.value]))),Se=k(()=>n.type==="datetime"||n.type==="datetimerange"),De=(ce,Me)=>{if(ce)return o?xt(o[Me]||o).locale(d.value).year(ce.year()).month(ce.month()).date(ce.date()):ce},xe=(ce,Me=!0)=>{const ae=ce.minDate,We=ce.maxDate,St=De(ae,0),kt=De(We,1);m.value===kt&&v.value===St||(t("calendar-change",[ae.toDate(),We&&We.toDate()]),m.value=kt,v.value=St,!(!Me||Se.value)&&_())},Ve=z(!1),ze=z(!1),je=()=>{Ve.value=!1},nt=()=>{ze.value=!1},Ae=(ce,Me)=>{D.value[Me]=ce;const ae=xt(ce,ne.value).locale(d.value);if(ae.isValid()){if(a&&a(ae.toDate()))return;Me==="min"?(p.value=ae,v.value=(v.value||p.value).year(ae.year()).month(ae.month()).date(ae.date()),!n.unlinkPanels&&(!m.value||m.value.isBefore(v.value))&&(h.value=ae.add(1,"month"),m.value=v.value.add(1,"month"))):(h.value=ae,m.value=(m.value||h.value).year(ae.year()).month(ae.month()).date(ae.date()),!n.unlinkPanels&&(!v.value||v.value.isAfter(m.value))&&(p.value=ae.subtract(1,"month"),v.value=m.value.subtract(1,"month")))}},Xe=(ce,Me)=>{D.value[Me]=null},ct=(ce,Me)=>{O.value[Me]=ce;const ae=xt(ce,le.value).locale(d.value);ae.isValid()&&(Me==="min"?(Ve.value=!0,v.value=(v.value||p.value).hour(ae.hour()).minute(ae.minute()).second(ae.second())):(ze.value=!0,m.value=(m.value||h.value).hour(ae.hour()).minute(ae.minute()).second(ae.second()),h.value=m.value))},Dt=(ce,Me)=>{O.value[Me]=null,Me==="min"?(p.value=v.value,Ve.value=!1,(!m.value||m.value.isBefore(v.value))&&(m.value=v.value)):(h.value=m.value,ze.value=!1,m.value&&m.value.isBefore(v.value)&&(v.value=m.value))},Pt=(ce,Me,ae)=>{O.value.min||(ce&&(p.value=ce,v.value=(v.value||p.value).hour(ce.hour()).minute(ce.minute()).second(ce.second())),ae||(Ve.value=Me),(!m.value||m.value.isBefore(v.value))&&(m.value=v.value,h.value=ce))},Bt=(ce,Me,ae)=>{O.value.max||(ce&&(h.value=ce,m.value=(m.value||h.value).hour(ce.hour()).minute(ce.minute()).second(ce.second())),ae||(ze.value=Me),m.value&&m.value.isBefore(v.value)&&(v.value=m.value))},Ut=()=>{p.value=K1(f(c),{lang:f(d),unit:"month",unlinkPanels:n.unlinkPanels})[0],h.value=p.value.add(1,"month"),m.value=void 0,v.value=void 0,t("pick",null)},Nt=ce=>Be(ce)?ce.map(Me=>Me.format(l.value)):ce.format(l.value),dt=ce=>ac(ce,l.value,d.value);function Oe(ce,Me){if(n.unlinkPanels&&Me){const ae=(ce==null?void 0:ce.year())||0,We=(ce==null?void 0:ce.month())||0,St=Me.year(),kt=Me.month();h.value=ae===St&&We===kt?Me.add(1,lh):Me}else h.value=p.value.add(1,lh),Me&&(h.value=h.value.hour(Me.hour()).minute(Me.minute()).second(Me.second()))}return t("set-picker-option",["isValidValue",be]),t("set-picker-option",["parseUserInput",dt]),t("set-picker-option",["formatToString",Nt]),t("set-picker-option",["handleClear",Ut]),(ce,Me)=>(x(),U("div",{class:F([f(y).b(),f(T).b(),{"has-sidebar":ce.$slots.sidebar||f(j),"has-time":f(Se)}])},[M("div",{class:F(f(y).e("body-wrapper"))},[fe(ce.$slots,"sidebar",{class:F(f(y).e("sidebar"))}),f(j)?(x(),U("div",{key:0,class:F(f(y).e("sidebar"))},[(x(!0),U(Ge,null,mt(f(u),(ae,We)=>(x(),U("button",{key:We,type:"button",class:F(f(y).e("shortcut")),onClick:St=>f(w)(ae)},de(ae.text),11,["onClick"]))),128))],2)):oe("v-if",!0),M("div",{class:F(f(y).e("body"))},[f(Se)?(x(),U("div",{key:0,class:F(f(T).e("time-header"))},[M("span",{class:F(f(T).e("editors-wrap"))},[M("span",{class:F(f(T).e("time-picker-wrap"))},[E(f(Wn),{size:"small",disabled:f(g).selecting,placeholder:f(I)("el.datepicker.startDate"),class:F(f(T).e("editor")),"model-value":f(W),"validate-event":!1,onInput:ae=>Ae(ae,"min"),onChange:ae=>Xe(ae,"min")},null,8,["disabled","placeholder","class","model-value","onInput","onChange"])],2),gt((x(),U("span",{class:F(f(T).e("time-picker-wrap"))},[E(f(Wn),{size:"small",class:F(f(T).e("editor")),disabled:f(g).selecting,placeholder:f(I)("el.datepicker.startTime"),"model-value":f(X),"validate-event":!1,onFocus:ae=>Ve.value=!0,onInput:ae=>ct(ae,"min"),onChange:ae=>Dt(ae,"min")},null,8,["class","disabled","placeholder","model-value","onFocus","onInput","onChange"]),E(f(Em),{visible:Ve.value,format:f(le),"datetime-role":"start","parsed-value":p.value,onPick:Pt},null,8,["visible","format","parsed-value"])],2)),[[f(Wo),je]])],2),M("span",null,[E(f(et),null,{default:P(()=>[E(f(sa))]),_:1})]),M("span",{class:F([f(T).e("editors-wrap"),"is-right"])},[M("span",{class:F(f(T).e("time-picker-wrap"))},[E(f(Wn),{size:"small",class:F(f(T).e("editor")),disabled:f(g).selecting,placeholder:f(I)("el.datepicker.endDate"),"model-value":f(H),readonly:!f(v),"validate-event":!1,onInput:ae=>Ae(ae,"max"),onChange:ae=>Xe(ae,"max")},null,8,["class","disabled","placeholder","model-value","readonly","onInput","onChange"])],2),gt((x(),U("span",{class:F(f(T).e("time-picker-wrap"))},[E(f(Wn),{size:"small",class:F(f(T).e("editor")),disabled:f(g).selecting,placeholder:f(I)("el.datepicker.endTime"),"model-value":f(re),readonly:!f(v),"validate-event":!1,onFocus:ae=>f(v)&&(ze.value=!0),onInput:ae=>ct(ae,"max"),onChange:ae=>Dt(ae,"max")},null,8,["class","disabled","placeholder","model-value","readonly","onFocus","onInput","onChange"]),E(f(Em),{"datetime-role":"end",visible:ze.value,format:f(le),"parsed-value":h.value,onPick:Bt},null,8,["visible","format","parsed-value"])],2)),[[f(Wo),nt]])],2)],2)):oe("v-if",!0),M("div",{class:F([[f(y).e("content"),f(T).e("content")],"is-left"])},[M("div",{class:F(f(T).e("header"))},[M("button",{type:"button",class:F([f(y).e("icon-btn"),"d-arrow-left"]),"aria-label":f(I)("el.datepicker.prevYear"),onClick:_e},[fe(ce.$slots,"prev-year",{},()=>[E(f(et),null,{default:P(()=>[E(f(Rs))]),_:1})])],10,["aria-label"]),M("button",{type:"button",class:F([f(y).e("icon-btn"),"arrow-left"]),"aria-label":f(I)("el.datepicker.prevMonth"),onClick:ve},[fe(ce.$slots,"prev-month",{},()=>[E(f(et),null,{default:P(()=>[E(f(Ms))]),_:1})])],10,["aria-label"]),ce.unlinkPanels?(x(),U("button",{key:0,type:"button",disabled:!f(Ce),class:F([[f(y).e("icon-btn"),{"is-disabled":!f(Ce)}],"d-arrow-right"]),"aria-label":f(I)("el.datepicker.nextYear"),onClick:pe},[fe(ce.$slots,"next-year",{},()=>[E(f(et),null,{default:P(()=>[E(f(Ls))]),_:1})])],10,["disabled","aria-label"])):oe("v-if",!0),ce.unlinkPanels?(x(),U("button",{key:1,type:"button",disabled:!f(ie),class:F([[f(y).e("icon-btn"),{"is-disabled":!f(ie)}],"arrow-right"]),"aria-label":f(I)("el.datepicker.nextMonth"),onClick:Fe},[fe(ce.$slots,"next-month",{},()=>[E(f(et),null,{default:P(()=>[E(f(sa))]),_:1})])],10,["disabled","aria-label"])):oe("v-if",!0),M("div",null,de(f(V)),1)],2),E(zy,{"selection-mode":"range",date:p.value,"min-date":f(v),"max-date":f(m),"range-state":f(g),"disabled-date":f(a),"cell-class-name":f(i),onChangerange:f(b),onPick:xe,onSelect:f(S)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2),M("div",{class:F([[f(y).e("content"),f(T).e("content")],"is-right"])},[M("div",{class:F(f(T).e("header"))},[ce.unlinkPanels?(x(),U("button",{key:0,type:"button",disabled:!f(Ce),class:F([[f(y).e("icon-btn"),{"is-disabled":!f(Ce)}],"d-arrow-left"]),"aria-label":f(I)("el.datepicker.prevYear"),onClick:Pe},[fe(ce.$slots,"prev-year",{},()=>[E(f(et),null,{default:P(()=>[E(f(Rs))]),_:1})])],10,["disabled","aria-label"])):oe("v-if",!0),ce.unlinkPanels?(x(),U("button",{key:1,type:"button",disabled:!f(ie),class:F([[f(y).e("icon-btn"),{"is-disabled":!f(ie)}],"arrow-left"]),"aria-label":f(I)("el.datepicker.prevMonth"),onClick:ye},[fe(ce.$slots,"prev-month",{},()=>[E(f(et),null,{default:P(()=>[E(f(Ms))]),_:1})])],10,["disabled","aria-label"])):oe("v-if",!0),M("button",{type:"button","aria-label":f(I)("el.datepicker.nextYear"),class:F([f(y).e("icon-btn"),"d-arrow-right"]),onClick:te},[fe(ce.$slots,"next-year",{},()=>[E(f(et),null,{default:P(()=>[E(f(Ls))]),_:1})])],10,["aria-label"]),M("button",{type:"button",class:F([f(y).e("icon-btn"),"arrow-right"]),"aria-label":f(I)("el.datepicker.nextMonth"),onClick:me},[fe(ce.$slots,"next-month",{},()=>[E(f(et),null,{default:P(()=>[E(f(sa))]),_:1})])],10,["aria-label"]),M("div",null,de(f(N)),1)],2),E(zy,{"selection-mode":"range",date:h.value,"min-date":f(v),"max-date":f(m),"range-state":f(g),"disabled-date":f(a),"cell-class-name":f(i),onChangerange:f(b),onPick:xe,onSelect:f(S)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2)],2)],2),f(Se)?(x(),U("div",{key:0,class:F(f(y).e("footer"))},[f(s)?(x(),he(f(_n),{key:0,text:"",size:"small",class:F(f(y).e("link-btn")),onClick:Ut},{default:P(()=>[we(de(f(I)("el.datepicker.clear")),1)]),_:1},8,["class"])):oe("v-if",!0),E(f(_n),{plain:"",size:"small",class:F(f(y).e("link-btn")),disabled:f($e),onClick:ae=>f(_)(!1)},{default:P(()=>[we(de(f(I)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled","onClick"])],2)):oe("v-if",!0)],2))}});var dJ=He(cJ,[["__file","panel-date-range.vue"]]);const fJ=Ue({...j1}),pJ=["pick","set-picker-option","calendar-change"],hJ=({unlinkPanels:e,leftDate:t,rightDate:n})=>{const{t:r}=Kt(),a=()=>{t.value=t.value.subtract(1,"year"),e.value||(n.value=n.value.subtract(1,"year"))},i=()=>{e.value||(t.value=t.value.add(1,"year")),n.value=n.value.add(1,"year")},o=()=>{t.value=t.value.add(1,"year")},s=()=>{n.value=n.value.subtract(1,"year")},l=k(()=>`${t.value.year()} ${r("el.datepicker.year")}`),u=k(()=>`${n.value.year()} ${r("el.datepicker.year")}`),c=k(()=>t.value.year()),d=k(()=>n.value.year()===t.value.year()?t.value.year()+1:n.value.year());return{leftPrevYear:a,rightNextYear:i,leftNextYear:o,rightPrevYear:s,leftLabel:l,rightLabel:u,leftYear:c,rightYear:d}},uh="year",mJ=J({name:"DatePickerMonthRange"}),vJ=J({...mJ,props:fJ,emits:pJ,setup(e,{emit:t}){const n=e,{lang:r}=Kt(),a=Qe("EP_PICKER_BASE"),{shortcuts:i,disabledDate:o}=a.props,s=rn(a.props,"format"),l=rn(a.props,"defaultValue"),u=z(xt().locale(r.value)),c=z(xt().locale(r.value).add(1,uh)),{minDate:d,maxDate:p,rangeState:h,ppNs:v,drpNs:m,handleChangeRange:g,handleRangeConfirm:y,handleShortcutClick:T,onSelect:b}=kO(n,{defaultValue:l,leftDate:u,rightDate:c,unit:uh,onParsedValueChanged:W}),_=k(()=>!!i.length),{leftPrevYear:w,rightNextYear:S,leftNextYear:A,rightPrevYear:I,leftLabel:D,rightLabel:O,leftYear:V,rightYear:N}=hJ({unlinkPanels:rn(n,"unlinkPanels"),leftDate:u,rightDate:c}),K=k(()=>n.unlinkPanels&&N.value>V.value+1),Y=(H,X=!0)=>{const re=H.minDate,le=H.maxDate;p.value===le&&d.value===re||(t("calendar-change",[re.toDate(),le&&le.toDate()]),p.value=le,d.value=re,X&&y())},q=()=>{u.value=K1(f(l),{lang:f(r),unit:"year",unlinkPanels:n.unlinkPanels})[0],c.value=u.value.add(1,"year"),t("pick",null)},$=H=>Be(H)?H.map(X=>X.format(s.value)):H.format(s.value),j=H=>ac(H,s.value,r.value);function W(H,X){if(n.unlinkPanels&&X){const re=(H==null?void 0:H.year())||0,le=X.year();c.value=re===le?X.add(1,uh):X}else c.value=u.value.add(1,uh)}return t("set-picker-option",["isValidValue",rc]),t("set-picker-option",["formatToString",$]),t("set-picker-option",["parseUserInput",j]),t("set-picker-option",["handleClear",q]),(H,X)=>(x(),U("div",{class:F([f(v).b(),f(m).b(),{"has-sidebar":!!H.$slots.sidebar||f(_)}])},[M("div",{class:F(f(v).e("body-wrapper"))},[fe(H.$slots,"sidebar",{class:F(f(v).e("sidebar"))}),f(_)?(x(),U("div",{key:0,class:F(f(v).e("sidebar"))},[(x(!0),U(Ge,null,mt(f(i),(re,le)=>(x(),U("button",{key:le,type:"button",class:F(f(v).e("shortcut")),onClick:ne=>f(T)(re)},de(re.text),11,["onClick"]))),128))],2)):oe("v-if",!0),M("div",{class:F(f(v).e("body"))},[M("div",{class:F([[f(v).e("content"),f(m).e("content")],"is-left"])},[M("div",{class:F(f(m).e("header"))},[M("button",{type:"button",class:F([f(v).e("icon-btn"),"d-arrow-left"]),onClick:f(w)},[fe(H.$slots,"prev-year",{},()=>[E(f(et),null,{default:P(()=>[E(f(Rs))]),_:1})])],10,["onClick"]),H.unlinkPanels?(x(),U("button",{key:0,type:"button",disabled:!f(K),class:F([[f(v).e("icon-btn"),{[f(v).is("disabled")]:!f(K)}],"d-arrow-right"]),onClick:f(A)},[fe(H.$slots,"next-year",{},()=>[E(f(et),null,{default:P(()=>[E(f(Ls))]),_:1})])],10,["disabled","onClick"])):oe("v-if",!0),M("div",null,de(f(D)),1)],2),E(jy,{"selection-mode":"range",date:u.value,"min-date":f(d),"max-date":f(p),"range-state":f(h),"disabled-date":f(o),onChangerange:f(g),onPick:Y,onSelect:f(b)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2),M("div",{class:F([[f(v).e("content"),f(m).e("content")],"is-right"])},[M("div",{class:F(f(m).e("header"))},[H.unlinkPanels?(x(),U("button",{key:0,type:"button",disabled:!f(K),class:F([[f(v).e("icon-btn"),{"is-disabled":!f(K)}],"d-arrow-left"]),onClick:f(I)},[fe(H.$slots,"prev-year",{},()=>[E(f(et),null,{default:P(()=>[E(f(Rs))]),_:1})])],10,["disabled","onClick"])):oe("v-if",!0),M("button",{type:"button",class:F([f(v).e("icon-btn"),"d-arrow-right"]),onClick:f(S)},[fe(H.$slots,"next-year",{},()=>[E(f(et),null,{default:P(()=>[E(f(Ls))]),_:1})])],10,["onClick"]),M("div",null,de(f(O)),1)],2),E(jy,{"selection-mode":"range",date:c.value,"min-date":f(d),"max-date":f(p),"range-state":f(h),"disabled-date":f(o),onChangerange:f(g),onPick:Y,onSelect:f(b)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2)],2)],2)],2))}});var gJ=He(vJ,[["__file","panel-month-range.vue"]]);const yJ=Ue({...j1}),bJ=["pick","set-picker-option","calendar-change"],_J=({unlinkPanels:e,leftDate:t,rightDate:n})=>{const r=()=>{t.value=t.value.subtract(10,"year"),e.value||(n.value=n.value.subtract(10,"year"))},a=()=>{e.value||(t.value=t.value.add(10,"year")),n.value=n.value.add(10,"year")},i=()=>{t.value=t.value.add(10,"year")},o=()=>{n.value=n.value.subtract(10,"year")},s=k(()=>{const d=Math.floor(t.value.year()/10)*10;return`${d}-${d+9}`}),l=k(()=>{const d=Math.floor(n.value.year()/10)*10;return`${d}-${d+9}`}),u=k(()=>Math.floor(t.value.year()/10)*10+9),c=k(()=>Math.floor(n.value.year()/10)*10);return{leftPrevYear:r,rightNextYear:a,leftNextYear:i,rightPrevYear:o,leftLabel:s,rightLabel:l,leftYear:u,rightYear:c}},rE="year",TJ=J({name:"DatePickerYearRange"}),wJ=J({...TJ,props:yJ,emits:bJ,setup(e,{emit:t}){const n=e,{lang:r}=Kt(),a=z(xt().locale(r.value)),i=z(a.value.add(10,"year")),{pickerNs:o}=Qe(jv),s=Le("date-range-picker"),l=k(()=>!!Y.length),u=k(()=>[o.b(),s.b(),{"has-sidebar":!!ir().sidebar||l.value}]),c=k(()=>({content:[o.e("content"),s.e("content"),"is-left"],arrowLeftBtn:[o.e("icon-btn"),"d-arrow-left"],arrowRightBtn:[o.e("icon-btn"),{[o.is("disabled")]:!w.value},"d-arrow-right"]})),d=k(()=>({content:[o.e("content"),s.e("content"),"is-right"],arrowLeftBtn:[o.e("icon-btn"),{"is-disabled":!w.value},"d-arrow-left"],arrowRightBtn:[o.e("icon-btn"),"d-arrow-right"]})),p=xO(r),{leftPrevYear:h,rightNextYear:v,leftNextYear:m,rightPrevYear:g,leftLabel:y,rightLabel:T,leftYear:b,rightYear:_}=_J({unlinkPanels:rn(n,"unlinkPanels"),leftDate:a,rightDate:i}),w=k(()=>n.unlinkPanels&&_.value>b.value+1),S=z(),A=z(),I=z({endDate:null,selecting:!1}),D=ne=>{I.value=ne},O=(ne,be=!0)=>{const _e=ne.minDate,ve=ne.maxDate;A.value===ve&&S.value===_e||(t("calendar-change",[_e.toDate(),ve&&ve.toDate()]),A.value=ve,S.value=_e,be&&V())},V=(ne=!1)=>{rc([S.value,A.value])&&t("pick",[S.value,A.value],ne)},N=ne=>{I.value.selecting=ne,ne||(I.value.endDate=null)},K=Qe("EP_PICKER_BASE"),{shortcuts:Y,disabledDate:q}=K.props,$=rn(K.props,"format"),j=rn(K.props,"defaultValue"),W=()=>{let ne;if(Be(j.value)){const be=xt(j.value[0]);let _e=xt(j.value[1]);return n.unlinkPanels||(_e=be.add(10,rE)),[be,_e]}else j.value?ne=xt(j.value):ne=xt();return ne=ne.locale(r.value),[ne,ne.add(10,rE)]};Ie(()=>j.value,ne=>{if(ne){const be=W();a.value=be[0],i.value=be[1]}},{immediate:!0}),Ie(()=>n.parsedValue,ne=>{if(ne&&ne.length===2)if(S.value=ne[0],A.value=ne[1],a.value=S.value,n.unlinkPanels&&A.value){const be=S.value.year(),_e=A.value.year();i.value=be===_e?A.value.add(10,"year"):A.value}else i.value=a.value.add(10,"year");else{const be=W();S.value=void 0,A.value=void 0,a.value=be[0],i.value=be[1]}},{immediate:!0});const H=ne=>ac(ne,$.value,r.value),X=ne=>Be(ne)?ne.map(be=>be.format($.value)):ne.format($.value),re=ne=>rc(ne)&&(q?!q(ne[0].toDate())&&!q(ne[1].toDate()):!0),le=()=>{const ne=W();a.value=ne[0],i.value=ne[1],A.value=void 0,S.value=void 0,t("pick",null)};return t("set-picker-option",["isValidValue",re]),t("set-picker-option",["parseUserInput",H]),t("set-picker-option",["formatToString",X]),t("set-picker-option",["handleClear",le]),(ne,be)=>(x(),U("div",{class:F(f(u))},[M("div",{class:F(f(o).e("body-wrapper"))},[fe(ne.$slots,"sidebar",{class:F(f(o).e("sidebar"))}),f(l)?(x(),U("div",{key:0,class:F(f(o).e("sidebar"))},[(x(!0),U(Ge,null,mt(f(Y),(_e,ve)=>(x(),U("button",{key:ve,type:"button",class:F(f(o).e("shortcut")),onClick:te=>f(p)(_e)},de(_e.text),11,["onClick"]))),128))],2)):oe("v-if",!0),M("div",{class:F(f(o).e("body"))},[M("div",{class:F(f(c).content)},[M("div",{class:F(f(s).e("header"))},[M("button",{type:"button",class:F(f(c).arrowLeftBtn),onClick:f(h)},[fe(ne.$slots,"prev-year",{},()=>[E(f(et),null,{default:P(()=>[E(f(Rs))]),_:1})])],10,["onClick"]),ne.unlinkPanels?(x(),U("button",{key:0,type:"button",disabled:!f(w),class:F(f(c).arrowRightBtn),onClick:f(m)},[fe(ne.$slots,"next-year",{},()=>[E(f(et),null,{default:P(()=>[E(f(Ls))]),_:1})])],10,["disabled","onClick"])):oe("v-if",!0),M("div",null,de(f(y)),1)],2),E(Wy,{"selection-mode":"range",date:a.value,"min-date":S.value,"max-date":A.value,"range-state":I.value,"disabled-date":f(q),onChangerange:D,onPick:O,onSelect:N},null,8,["date","min-date","max-date","range-state","disabled-date"])],2),M("div",{class:F(f(d).content)},[M("div",{class:F(f(s).e("header"))},[ne.unlinkPanels?(x(),U("button",{key:0,type:"button",disabled:!f(w),class:F(f(d).arrowLeftBtn),onClick:f(g)},[fe(ne.$slots,"prev-year",{},()=>[E(f(et),null,{default:P(()=>[E(f(Rs))]),_:1})])],10,["disabled","onClick"])):oe("v-if",!0),M("button",{type:"button",class:F(f(d).arrowRightBtn),onClick:f(v)},[fe(ne.$slots,"next-year",{},()=>[E(f(et),null,{default:P(()=>[E(f(Ls))]),_:1})])],10,["onClick"]),M("div",null,de(f(T)),1)],2),E(Wy,{"selection-mode":"range",date:i.value,"min-date":S.value,"max-date":A.value,"range-state":I.value,"disabled-date":f(q),onChangerange:D,onPick:O,onSelect:N},null,8,["date","min-date","max-date","range-state","disabled-date"])],2)],2)],2)],2))}});var SJ=He(wJ,[["__file","panel-year-range.vue"]]);const CJ=function(e){switch(e){case"daterange":case"datetimerange":return dJ;case"monthrange":return gJ;case"yearrange":return SJ;default:return lJ}};xt.extend(RP);xt.extend(yQ);xt.extend(U1);xt.extend(_Q);xt.extend(wQ);xt.extend(CQ);xt.extend(xQ);xt.extend(AQ);var EJ=J({name:"ElDatePicker",install:null,props:qQ,emits:[_t],setup(e,{expose:t,emit:n,slots:r}){const a=Le("picker-panel");Vt("ElPopperOptions",Ct(rn(e,"popperOptions"))),Vt(jv,{slots:r,pickerNs:a});const i=z();t({focus:()=>{var l;(l=i.value)==null||l.focus()},blur:()=>{var l;(l=i.value)==null||l.blur()},handleOpen:()=>{var l;(l=i.value)==null||l.handleOpen()},handleClose:()=>{var l;(l=i.value)==null||l.handleClose()}});const s=l=>{n(_t,l)};return()=>{var l;const u=(l=e.format)!=null?l:DQ[e.type]||_u,c=CJ(e.type);return E(_O,Ft(e,{format:u,type:e.type,ref:i,"onUpdate:modelValue":s}),{default:d=>E(c,d,{"prev-month":r["prev-month"],"next-month":r["next-month"],"prev-year":r["prev-year"],"next-year":r["next-year"]}),"range-separator":r["range-separator"]})}}});const G1=Et(EJ),Y1=Symbol("elDescriptions");var pd=J({name:"ElDescriptionsCell",props:{cell:{type:Object},tag:{type:String,default:"td"},type:{type:String}},setup(){return{descriptions:Qe(Y1,{})}},render(){var e;const t=qG(this.cell),n=(((e=this.cell)==null?void 0:e.dirs)||[]).map(y=>{const{dir:T,arg:b,modifiers:_,value:w}=y;return[T,w,b,_]}),{border:r,direction:a}=this.descriptions,i=a==="vertical",o=()=>{var y,T,b;return((b=(T=(y=this.cell)==null?void 0:y.children)==null?void 0:T.label)==null?void 0:b.call(T))||t.label},s=()=>{var y,T,b;return(b=(T=(y=this.cell)==null?void 0:y.children)==null?void 0:T.default)==null?void 0:b.call(T)},l=t.span,u=t.rowspan,c=t.align?`is-${t.align}`:"",d=t.labelAlign?`is-${t.labelAlign}`:c,p=t.className,h=t.labelClassName,v=this.type==="label"&&(t.labelWidth||this.descriptions.labelWidth)||t.width,m={width:Ln(v),minWidth:Ln(t.minWidth)},g=Le("descriptions");switch(this.type){case"label":return gt(lt(this.tag,{style:m,class:[g.e("cell"),g.e("label"),g.is("bordered-label",r),g.is("vertical-label",i),d,h],colSpan:i?l:1,rowspan:i?1:u},o()),n);case"content":return gt(lt(this.tag,{style:m,class:[g.e("cell"),g.e("content"),g.is("bordered-content",r),g.is("vertical-content",i),c,p],colSpan:i?l:l*2-1,rowspan:i?u*2-1:u},s()),n);default:{const y=o(),T={},b=Ln(t.labelWidth||this.descriptions.labelWidth);return b&&(T.width=b,T.display="inline-block"),gt(lt("td",{style:m,class:[g.e("cell"),c],colSpan:l,rowspan:u},[sr(y)?void 0:lt("span",{style:T,class:[g.e("label"),h]},y),lt("span",{class:[g.e("content"),p]},s())]),n)}}}});const xJ=Ue({row:{type:ue(Array),default:()=>[]}}),kJ=J({name:"ElDescriptionsRow"}),AJ=J({...kJ,props:xJ,setup(e){const t=Qe(Y1,{});return(n,r)=>f(t).direction==="vertical"?(x(),U(Ge,{key:0},[M("tr",null,[(x(!0),U(Ge,null,mt(n.row,(a,i)=>(x(),he(f(pd),{key:`tr1-${i}`,cell:a,tag:"th",type:"label"},null,8,["cell"]))),128))]),M("tr",null,[(x(!0),U(Ge,null,mt(n.row,(a,i)=>(x(),he(f(pd),{key:`tr2-${i}`,cell:a,tag:"td",type:"content"},null,8,["cell"]))),128))])],64)):(x(),U("tr",{key:1},[(x(!0),U(Ge,null,mt(n.row,(a,i)=>(x(),U(Ge,{key:`tr3-${i}`},[f(t).border?(x(),U(Ge,{key:0},[E(f(pd),{cell:a,tag:"td",type:"label"},null,8,["cell"]),E(f(pd),{cell:a,tag:"td",type:"content"},null,8,["cell"])],64)):(x(),he(f(pd),{key:1,cell:a,tag:"td",type:"both"},null,8,["cell"]))],64))),128))]))}});var DJ=He(AJ,[["__file","descriptions-row.vue"]]);const IJ=Ue({border:Boolean,column:{type:Number,default:3},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},size:Xn,title:{type:String,default:""},extra:{type:String,default:""},labelWidth:{type:[String,Number],default:""}}),AO="ElDescriptionsItem",PJ=J({name:"ElDescriptions"}),OJ=J({...PJ,props:IJ,setup(e){const t=e,n=Le("descriptions"),r=Kn(),a=ir();Vt(Y1,t);const i=k(()=>[n.b(),n.m(r.value)]),o=(l,u,c,d=!1)=>(l.props||(l.props={}),u>c&&(l.props.span=c),d&&(l.props.span=u),l),s=()=>{if(!a.default)return[];const l=Fo(a.default()).filter(v=>{var m;return((m=v==null?void 0:v.type)==null?void 0:m.name)===AO}),u=[];let c=[],d=t.column,p=0;const h=[];return l.forEach((v,m)=>{var g,y,T;const b=((g=v.props)==null?void 0:g.span)||1,_=((y=v.props)==null?void 0:y.rowspan)||1,w=u.length;if(h[w]||(h[w]=0),_>1)for(let S=1;S<_;S++)h[T=w+S]||(h[T]=0),h[w+S]++,p++;if(h[w]>0&&(d-=h[w],h[w]=0),m<l.length-1&&(p+=b>d?d:b),m===l.length-1){const S=t.column-p%t.column;c.push(o(v,S,d,!0)),u.push(c);return}b<d?(d-=b,c.push(v)):(c.push(o(v,b,d)),u.push(c),d=t.column,c=[])}),u};return(l,u)=>(x(),U("div",{class:F(f(i))},[l.title||l.extra||l.$slots.title||l.$slots.extra?(x(),U("div",{key:0,class:F(f(n).e("header"))},[M("div",{class:F(f(n).e("title"))},[fe(l.$slots,"title",{},()=>[we(de(l.title),1)])],2),M("div",{class:F(f(n).e("extra"))},[fe(l.$slots,"extra",{},()=>[we(de(l.extra),1)])],2)],2)):oe("v-if",!0),M("div",{class:F(f(n).e("body"))},[M("table",{class:F([f(n).e("table"),f(n).is("bordered",l.border)])},[M("tbody",null,[(x(!0),U(Ge,null,mt(s(),(c,d)=>(x(),he(DJ,{key:d,row:c},null,8,["row"]))),128))])],2)],2)],2))}});var MJ=He(OJ,[["__file","description.vue"]]);const RJ=Ue({label:{type:String,default:""},span:{type:Number,default:1},rowspan:{type:Number,default:1},width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},labelWidth:{type:[String,Number],default:""},align:{type:String,default:"left"},labelAlign:{type:String,default:""},className:{type:String,default:""},labelClassName:{type:String,default:""}}),DO=J({name:AO,props:RJ}),LJ=Et(MJ,{DescriptionsItem:DO}),NJ=On(DO),X1=e=>{if(!e)return{onClick:nn,onMousedown:nn,onMouseup:nn};let t=!1,n=!1;return{onClick:o=>{t&&n&&e(o),t=n=!1},onMousedown:o=>{t=o.target===o.currentTarget},onMouseup:o=>{n=o.target===o.currentTarget}}},FJ=Ue({mask:{type:Boolean,default:!0},customMaskEvent:Boolean,overlayClass:{type:ue([String,Array,Object])},zIndex:{type:ue([String,Number])}}),$J={click:e=>e instanceof MouseEvent},BJ="overlay";var VJ=J({name:"ElOverlay",props:FJ,emits:$J,setup(e,{slots:t,emit:n}){const r=Le(BJ),a=l=>{n("click",l)},{onClick:i,onMousedown:o,onMouseup:s}=X1(e.customMaskEvent?void 0:a);return()=>e.mask?E("div",{class:[r.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:i,onMousedown:o,onMouseup:s},[fe(t,"default")],Ka.STYLE|Ka.CLASS|Ka.PROPS,["onClick","onMouseup","onMousedown"]):lt("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[fe(t,"default")])}});const Q1=VJ,IO=Symbol("dialogInjectionKey"),PO=Ue({center:Boolean,alignCenter:Boolean,closeIcon:{type:dn},draggable:Boolean,overflow:Boolean,fullscreen:Boolean,headerClass:String,bodyClass:String,footerClass:String,showClose:{type:Boolean,default:!0},title:{type:String,default:""},ariaLevel:{type:String,default:"2"}}),UJ={close:()=>!0},OO=(e,t,n,r)=>{let a={offsetX:0,offsetY:0};const i=u=>{const c=u.clientX,d=u.clientY,{offsetX:p,offsetY:h}=a,v=e.value.getBoundingClientRect(),m=v.left,g=v.top,y=v.width,T=v.height,b=document.documentElement.clientWidth,_=document.documentElement.clientHeight,w=-m+p,S=-g+h,A=b-m-y+p,I=_-g-T+h,D=V=>{let N=p+V.clientX-c,K=h+V.clientY-d;r!=null&&r.value||(N=Math.min(Math.max(N,w),A),K=Math.min(Math.max(K,S),I)),a={offsetX:N,offsetY:K},e.value&&(e.value.style.transform=`translate(${Ln(N)}, ${Ln(K)})`)},O=()=>{document.removeEventListener("mousemove",D),document.removeEventListener("mouseup",O)};document.addEventListener("mousemove",D),document.addEventListener("mouseup",O)},o=()=>{t.value&&e.value&&t.value.addEventListener("mousedown",i)},s=()=>{t.value&&e.value&&t.value.removeEventListener("mousedown",i)},l=()=>{a={offsetX:0,offsetY:0},e.value&&(e.value.style.transform="none")};return ht(()=>{_r(()=>{n.value?o():s()})}),fn(()=>{s()}),{resetPosition:l}},Wv=(...e)=>t=>{e.forEach(n=>{ot(n)?n(t):n.value=t})},HJ=J({name:"ElDialogContent"}),zJ=J({...HJ,props:PO,emits:UJ,setup(e,{expose:t}){const n=e,{t:r}=Kt(),{Close:a}=m1,{dialogRef:i,headerRef:o,bodyId:s,ns:l,style:u}=Qe(IO),{focusTrapRef:c}=Qe(T1),d=k(()=>[l.b(),l.is("fullscreen",n.fullscreen),l.is("draggable",n.draggable),l.is("align-center",n.alignCenter),{[l.m("center")]:n.center}]),p=Wv(c,i),h=k(()=>n.draggable),v=k(()=>n.overflow),{resetPosition:m}=OO(i,o,h,v);return t({resetPosition:m}),(g,y)=>(x(),U("div",{ref:f(p),class:F(f(d)),style:tt(f(u)),tabindex:"-1"},[M("header",{ref_key:"headerRef",ref:o,class:F([f(l).e("header"),g.headerClass,{"show-close":g.showClose}])},[fe(g.$slots,"header",{},()=>[M("span",{role:"heading","aria-level":g.ariaLevel,class:F(f(l).e("title"))},de(g.title),11,["aria-level"])]),g.showClose?(x(),U("button",{key:0,"aria-label":f(r)("el.dialog.close"),class:F(f(l).e("headerbtn")),type:"button",onClick:T=>g.$emit("close")},[E(f(et),{class:F(f(l).e("close"))},{default:P(()=>[(x(),he(Lt(g.closeIcon||f(a))))]),_:1},8,["class"])],10,["aria-label","onClick"])):oe("v-if",!0)],2),M("div",{id:f(s),class:F([f(l).e("body"),g.bodyClass])},[fe(g.$slots,"default")],10,["id"]),g.$slots.footer?(x(),U("footer",{key:0,class:F([f(l).e("footer"),g.footerClass])},[fe(g.$slots,"footer")],2)):oe("v-if",!0)],6))}});var jJ=He(zJ,[["__file","dialog-content.vue"]]);const MO=Ue({...PO,appendToBody:Boolean,appendTo:{type:ue([String,Object]),default:"body"},beforeClose:{type:ue(Function)},destroyOnClose:Boolean,closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:Boolean,modalClass:String,headerClass:String,bodyClass:String,footerClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:Boolean,headerAriaLevel:{type:String,default:"2"}}),RO={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[_t]:e=>pn(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},J1=(e,t={})=>{yn(e)||rr("[useLockscreen]","You need to pass a ref param to this function");const n=t.ns||Le("popup"),r=k(()=>n.bm("parent","hidden"));if(!Wt||ba(document.body,r.value))return;let a=0,i=!1,o="0";const s=()=>{setTimeout(()=>{typeof document>"u"||i&&document&&(document.body.style.width=o,Ur(document.body,r.value))},200)};Ie(e,l=>{if(!l){s();return}i=!ba(document.body,r.value),i&&(o=document.body.style.width,Ga(document.body,r.value)),a=NI(n.namespace.value);const u=document.documentElement.clientHeight<document.body.scrollHeight,c=Mo(document.body,"overflowY");a>0&&(u||c==="scroll")&&i&&(document.body.style.width=`calc(100% - ${a}px)`)}),mA(()=>s())},LO=(e,t)=>{var n;const a=Mt().emit,{nextZIndex:i}=Oc();let o="";const s=wr(),l=wr(),u=z(!1),c=z(!1),d=z(!1),p=z((n=e.zIndex)!=null?n:i());let h,v;const m=Rv("namespace",Hd),g=k(()=>{const q={},$=`--${m.value}-dialog`;return e.fullscreen||(e.top&&(q[`${$}-margin-top`]=e.top),e.width&&(q[`${$}-width`]=Ln(e.width))),q}),y=k(()=>e.alignCenter?{display:"flex"}:{});function T(){a("opened")}function b(){a("closed"),a(_t,!1),e.destroyOnClose&&(d.value=!1)}function _(){a("close")}function w(){v==null||v(),h==null||h(),e.openDelay&&e.openDelay>0?{stop:h}=Rl(()=>D(),e.openDelay):D()}function S(){h==null||h(),v==null||v(),e.closeDelay&&e.closeDelay>0?{stop:v}=Rl(()=>O(),e.closeDelay):O()}function A(){function q($){$||(c.value=!0,u.value=!1)}e.beforeClose?e.beforeClose(q):S()}function I(){e.closeOnClickModal&&A()}function D(){Wt&&(u.value=!0)}function O(){u.value=!1}function V(){a("openAutoFocus")}function N(){a("closeAutoFocus")}function K(q){var $;(($=q.detail)==null?void 0:$.focusReason)==="pointer"&&q.preventDefault()}e.lockScroll&&J1(u);function Y(){e.closeOnPressEscape&&A()}return Ie(()=>e.modelValue,q=>{q?(c.value=!1,w(),d.value=!0,p.value=yI(e.zIndex)?i():p.value++,it(()=>{a("open"),t.value&&(t.value.parentElement.scrollTop=0,t.value.parentElement.scrollLeft=0,t.value.scrollTop=0)})):u.value&&S()}),Ie(()=>e.fullscreen,q=>{t.value&&(q?(o=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=o)}),ht(()=>{e.modelValue&&(u.value=!0,d.value=!0,w())}),{afterEnter:T,afterLeave:b,beforeLeave:_,handleClose:A,onModalClick:I,close:S,doClose:O,onOpenAutoFocus:V,onCloseAutoFocus:N,onCloseRequested:Y,onFocusoutPrevented:K,titleId:s,bodyId:l,closed:c,style:g,overlayDialogStyle:y,rendered:d,visible:u,zIndex:p}},WJ=J({name:"ElDialog",inheritAttrs:!1}),KJ=J({...WJ,props:MO,emits:RO,setup(e,{expose:t}){const n=e,r=ir();xs({scope:"el-dialog",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/dialog.html#slots"},k(()=>!!r.title));const a=Le("dialog"),i=z(),o=z(),s=z(),{visible:l,titleId:u,bodyId:c,style:d,overlayDialogStyle:p,rendered:h,zIndex:v,afterEnter:m,afterLeave:g,beforeLeave:y,handleClose:T,onModalClick:b,onOpenAutoFocus:_,onCloseAutoFocus:w,onCloseRequested:S,onFocusoutPrevented:A}=LO(n,i);Vt(IO,{dialogRef:i,headerRef:o,bodyId:c,ns:a,rendered:h,style:d});const I=X1(b),D=k(()=>n.draggable&&!n.fullscreen);return t({visible:l,dialogContentRef:s,resetPosition:()=>{var V;(V=s.value)==null||V.resetPosition()}}),(V,N)=>(x(),he(f(Lc),{to:V.appendTo,disabled:V.appendTo!=="body"?!1:!V.appendToBody},{default:P(()=>[E(lr,{name:"dialog-fade",onAfterEnter:f(m),onAfterLeave:f(g),onBeforeLeave:f(y),persisted:""},{default:P(()=>[gt(E(f(Q1),{"custom-mask-event":"",mask:V.modal,"overlay-class":V.modalClass,"z-index":f(v)},{default:P(()=>[M("div",{role:"dialog","aria-modal":"true","aria-label":V.title||void 0,"aria-labelledby":V.title?void 0:f(u),"aria-describedby":f(c),class:F(`${f(a).namespace.value}-overlay-dialog`),style:tt(f(p)),onClick:f(I).onClick,onMousedown:f(I).onMousedown,onMouseup:f(I).onMouseup},[E(f(Rc),{loop:"",trapped:f(l),"focus-start-el":"container",onFocusAfterTrapped:f(_),onFocusAfterReleased:f(w),onFocusoutPrevented:f(A),onReleaseRequested:f(S)},{default:P(()=>[f(h)?(x(),he(jJ,Ft({key:0,ref_key:"dialogContentRef",ref:s},V.$attrs,{center:V.center,"align-center":V.alignCenter,"close-icon":V.closeIcon,draggable:f(D),overflow:V.overflow,fullscreen:V.fullscreen,"header-class":V.headerClass,"body-class":V.bodyClass,"footer-class":V.footerClass,"show-close":V.showClose,title:V.title,"aria-level":V.headerAriaLevel,onClose:f(T)}),Ua({header:P(()=>[V.$slots.title?fe(V.$slots,"title",{key:1}):fe(V.$slots,"header",{key:0,close:f(T),titleId:f(u),titleClass:f(a).e("title")})]),default:P(()=>[fe(V.$slots,"default")]),_:2},[V.$slots.footer?{name:"footer",fn:P(()=>[fe(V.$slots,"footer")])}:void 0]),1040,["center","align-center","close-icon","draggable","overflow","fullscreen","header-class","body-class","footer-class","show-close","title","aria-level","onClose"])):oe("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,["aria-label","aria-labelledby","aria-describedby","onClick","onMousedown","onMouseup"])]),_:3},8,["mask","overlay-class","z-index"]),[[zt,f(l)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])]),_:3},8,["to","disabled"]))}});var qJ=He(KJ,[["__file","dialog.vue"]]);const Fc=Et(qJ),GJ=Ue({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:ue(String),default:"solid"}}),YJ=J({name:"ElDivider"}),XJ=J({...YJ,props:GJ,setup(e){const t=e,n=Le("divider"),r=k(()=>n.cssVar({"border-style":t.borderStyle}));return(a,i)=>(x(),U("div",{class:F([f(n).b(),f(n).m(a.direction)]),style:tt(f(r)),role:"separator"},[a.$slots.default&&a.direction!=="vertical"?(x(),U("div",{key:0,class:F([f(n).e("text"),f(n).is(a.contentPosition)])},[fe(a.$slots,"default")],2)):oe("v-if",!0)],6))}});var QJ=He(XJ,[["__file","divider.vue"]]);const NO=Et(QJ),JJ=Ue({...MO,direction:{type:String,default:"rtl",values:["ltr","rtl","ttb","btt"]},size:{type:[String,Number],default:"30%"},withHeader:{type:Boolean,default:!0},modalFade:{type:Boolean,default:!0},headerAriaLevel:{type:String,default:"2"}}),ZJ=RO,eZ=J({name:"ElDrawer",inheritAttrs:!1}),tZ=J({...eZ,props:JJ,emits:ZJ,setup(e,{expose:t}){const n=e,r=ir();xs({scope:"el-drawer",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/drawer.html#slots"},k(()=>!!r.title));const a=z(),i=z(),o=Le("drawer"),{t:s}=Kt(),{afterEnter:l,afterLeave:u,beforeLeave:c,visible:d,rendered:p,titleId:h,bodyId:v,zIndex:m,onModalClick:g,onOpenAutoFocus:y,onCloseAutoFocus:T,onFocusoutPrevented:b,onCloseRequested:_,handleClose:w}=LO(n,a),S=k(()=>n.direction==="rtl"||n.direction==="ltr"),A=k(()=>Ln(n.size));return t({handleClose:w,afterEnter:l,afterLeave:u}),(I,D)=>(x(),he(f(Lc),{to:I.appendTo,disabled:I.appendTo!=="body"?!1:!I.appendToBody},{default:P(()=>[E(lr,{name:f(o).b("fade"),onAfterEnter:f(l),onAfterLeave:f(u),onBeforeLeave:f(c),persisted:""},{default:P(()=>[gt(E(f(Q1),{mask:I.modal,"overlay-class":I.modalClass,"z-index":f(m),onClick:f(g)},{default:P(()=>[E(f(Rc),{loop:"",trapped:f(d),"focus-trap-el":a.value,"focus-start-el":i.value,onFocusAfterTrapped:f(y),onFocusAfterReleased:f(T),onFocusoutPrevented:f(b),onReleaseRequested:f(_)},{default:P(()=>[M("div",Ft({ref_key:"drawerRef",ref:a,"aria-modal":"true","aria-label":I.title||void 0,"aria-labelledby":I.title?void 0:f(h),"aria-describedby":f(v)},I.$attrs,{class:[f(o).b(),I.direction,f(d)&&"open"],style:f(S)?"width: "+f(A):"height: "+f(A),role:"dialog",onClick:ft(()=>{},["stop"])}),[M("span",{ref_key:"focusStartRef",ref:i,class:F(f(o).e("sr-focus")),tabindex:"-1"},null,2),I.withHeader?(x(),U("header",{key:0,class:F([f(o).e("header"),I.headerClass])},[I.$slots.title?fe(I.$slots,"title",{key:1},()=>[oe(" DEPRECATED SLOT ")]):fe(I.$slots,"header",{key:0,close:f(w),titleId:f(h),titleClass:f(o).e("title")},()=>[I.$slots.title?oe("v-if",!0):(x(),U("span",{key:0,id:f(h),role:"heading","aria-level":I.headerAriaLevel,class:F(f(o).e("title"))},de(I.title),11,["id","aria-level"]))]),I.showClose?(x(),U("button",{key:2,"aria-label":f(s)("el.drawer.close"),class:F(f(o).e("close-btn")),type:"button",onClick:f(w)},[E(f(et),{class:F(f(o).e("close"))},{default:P(()=>[E(f(Ci))]),_:1},8,["class"])],10,["aria-label","onClick"])):oe("v-if",!0)],2)):oe("v-if",!0),f(p)?(x(),U("div",{key:1,id:f(v),class:F([f(o).e("body"),I.bodyClass])},[fe(I.$slots,"default")],10,["id"])):oe("v-if",!0),I.$slots.footer?(x(),U("div",{key:2,class:F([f(o).e("footer"),I.footerClass])},[fe(I.$slots,"footer")],2)):oe("v-if",!0)],16,["aria-label","aria-labelledby","aria-describedby","onClick"])]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[zt,f(d)]])]),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])]),_:3},8,["to","disabled"]))}});var nZ=He(tZ,[["__file","drawer.vue"]]);const rZ=Et(nZ),aZ=J({inheritAttrs:!1});function iZ(e,t,n,r,a,i){return fe(e.$slots,"default")}var oZ=He(aZ,[["render",iZ],["__file","collection.vue"]]);const sZ=J({name:"ElCollectionItem",inheritAttrs:!1});function lZ(e,t,n,r,a,i){return fe(e.$slots,"default")}var uZ=He(sZ,[["render",lZ],["__file","collection-item.vue"]]);const FO="data-el-collection-item",$O=e=>{const t=`El${e}Collection`,n=`${t}Item`,r=Symbol(t),a=Symbol(n),i={...oZ,name:t,setup(){const s=z(),l=new Map;Vt(r,{itemMap:l,getItems:()=>{const c=f(s);if(!c)return[];const d=Array.from(c.querySelectorAll(`[${FO}]`));return[...l.values()].sort((h,v)=>d.indexOf(h.ref)-d.indexOf(v.ref))},collectionRef:s})}},o={...uZ,name:n,setup(s,{attrs:l}){const u=z(),c=Qe(r,void 0);Vt(a,{collectionItemRef:u}),ht(()=>{const d=f(u);d&&c.itemMap.set(d,{ref:d,...l})}),fn(()=>{const d=f(u);c.itemMap.delete(d)})}};return{COLLECTION_INJECTION_KEY:r,COLLECTION_ITEM_INJECTION_KEY:a,ElCollection:i,ElCollectionItem:o}},cZ=Ue({style:{type:ue([String,Array,Object])},currentTabId:{type:ue(String)},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:ue(String)},onBlur:Function,onFocus:Function,onMousedown:Function}),{ElCollection:dZ,ElCollectionItem:fZ,COLLECTION_INJECTION_KEY:Z1,COLLECTION_ITEM_INJECTION_KEY:pZ}=$O("RovingFocusGroup"),e2=Symbol("elRovingFocusGroup"),BO=Symbol("elRovingFocusGroupItem"),hZ={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},mZ=(e,t)=>{if(t!=="rtl")return e;switch(e){case Ye.right:return Ye.left;case Ye.left:return Ye.right;default:return e}},vZ=(e,t,n)=>{const r=mZ(e.code,n);if(!(t==="vertical"&&[Ye.left,Ye.right].includes(r))&&!(t==="horizontal"&&[Ye.up,Ye.down].includes(r)))return hZ[r]},gZ=(e,t)=>e.map((n,r)=>e[(r+t)%e.length]),t2=e=>{const{activeElement:t}=document;for(const n of e)if(n===t||(n.focus(),t!==document.activeElement))return},aE="currentTabIdChange",iE="rovingFocusGroup.entryFocus",yZ={bubbles:!1,cancelable:!0},bZ=J({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:cZ,emits:[aE,"entryFocus"],setup(e,{emit:t}){var n;const r=z((n=e.currentTabId||e.defaultCurrentTabId)!=null?n:null),a=z(!1),i=z(!1),o=z(),{getItems:s}=Qe(Z1,void 0),l=k(()=>[{outline:"none"},e.style]),u=m=>{t(aE,m)},c=()=>{a.value=!0},d=$n(m=>{var g;(g=e.onMousedown)==null||g.call(e,m)},()=>{i.value=!0}),p=$n(m=>{var g;(g=e.onFocus)==null||g.call(e,m)},m=>{const g=!f(i),{target:y,currentTarget:T}=m;if(y===T&&g&&!f(a)){const b=new Event(iE,yZ);if(T==null||T.dispatchEvent(b),!b.defaultPrevented){const _=s().filter(D=>D.focusable),w=_.find(D=>D.active),S=_.find(D=>D.id===f(r)),I=[w,S,..._].filter(Boolean).map(D=>D.ref);t2(I)}}i.value=!1}),h=$n(m=>{var g;(g=e.onBlur)==null||g.call(e,m)},()=>{a.value=!1}),v=(...m)=>{t("entryFocus",...m)};Vt(e2,{currentTabbedId:Ul(r),loop:rn(e,"loop"),tabIndex:k(()=>f(a)?-1:0),rovingFocusGroupRef:o,rovingFocusGroupRootStyle:l,orientation:rn(e,"orientation"),dir:rn(e,"dir"),onItemFocus:u,onItemShiftTab:c,onBlur:h,onFocus:p,onMousedown:d}),Ie(()=>e.currentTabId,m=>{r.value=m??null}),ln(o,iE,v)}});function _Z(e,t,n,r,a,i){return fe(e.$slots,"default")}var TZ=He(bZ,[["render",_Z],["__file","roving-focus-group-impl.vue"]]);const wZ=J({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:dZ,ElRovingFocusGroupImpl:TZ}});function SZ(e,t,n,r,a,i){const o=Rt("el-roving-focus-group-impl"),s=Rt("el-focus-group-collection");return x(),he(s,null,{default:P(()=>[E(o,Ra(to(e.$attrs)),{default:P(()=>[fe(e.$slots,"default")]),_:3},16)]),_:3})}var CZ=He(wZ,[["render",SZ],["__file","roving-focus-group.vue"]]);const Fh=Ue({trigger:Cf.trigger,triggerKeys:{type:ue(Array),default:()=>[Ye.enter,Ye.numpadEnter,Ye.space,Ye.down]},effect:{...dr.effect,default:"light"},type:{type:ue(String)},placement:{type:ue(String),default:"bottom"},popperOptions:{type:ue(Object),default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:ue([Number,String]),default:0},maxHeight:{type:ue([Number,String]),default:""},popperClass:{type:String,default:""},disabled:Boolean,role:{type:String,values:GI,default:"menu"},buttonProps:{type:ue(Object)},teleported:dr.teleported,persistent:{type:Boolean,default:!0}}),VO=Ue({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:dn}}),EZ=Ue({onKeydown:{type:ue(Function)}}),xZ=[Ye.down,Ye.pageDown,Ye.home],UO=[Ye.up,Ye.pageUp,Ye.end],kZ=[...xZ,...UO],{ElCollection:AZ,ElCollectionItem:DZ,COLLECTION_INJECTION_KEY:IZ,COLLECTION_ITEM_INJECTION_KEY:PZ}=$O("Dropdown"),Kv=Symbol("elDropdown"),{ButtonGroup:OZ}=_n,MZ=J({name:"ElDropdown",components:{ElButton:_n,ElButtonGroup:OZ,ElScrollbar:fo,ElDropdownCollection:AZ,ElTooltip:ar,ElRovingFocusGroup:CZ,ElOnlyChild:tP,ElIcon:et,ArrowDown:co},props:Fh,emits:["visible-change","click","command"],setup(e,{emit:t}){const n=Mt(),r=Le("dropdown"),{t:a}=Kt(),i=z(),o=z(),s=z(),l=z(),u=z(null),c=z(null),d=z(!1),p=k(()=>({maxHeight:Ln(e.maxHeight)})),h=k(()=>[r.m(_.value)]),v=k(()=>$r(e.trigger)),m=wr().value,g=k(()=>e.id||m);Ie([i,v],([$,j],[W])=>{var H,X,re;(H=W==null?void 0:W.$el)!=null&&H.removeEventListener&&W.$el.removeEventListener("pointerenter",S),(X=$==null?void 0:$.$el)!=null&&X.removeEventListener&&$.$el.removeEventListener("pointerenter",S),(re=$==null?void 0:$.$el)!=null&&re.addEventListener&&j.includes("hover")&&$.$el.addEventListener("pointerenter",S)},{immediate:!0}),fn(()=>{var $,j;(j=($=i.value)==null?void 0:$.$el)!=null&&j.removeEventListener&&i.value.$el.removeEventListener("pointerenter",S)});function y(){T()}function T(){var $;($=s.value)==null||$.onClose()}function b(){var $;($=s.value)==null||$.onOpen()}const _=Kn();function w(...$){t("command",...$)}function S(){var $,j;(j=($=i.value)==null?void 0:$.$el)==null||j.focus()}function A(){}function I(){const $=f(l);v.value.includes("hover")&&($==null||$.focus()),c.value=null}function D($){c.value=$}function O($){d.value||($.preventDefault(),$.stopImmediatePropagation())}function V(){t("visible-change",!0)}function N($){var j;($==null?void 0:$.type)==="keydown"&&((j=l.value)==null||j.focus())}function K(){t("visible-change",!1)}return Vt(Kv,{contentRef:l,role:k(()=>e.role),triggerId:g,isUsingKeyboard:d,onItemEnter:A,onItemLeave:I}),Vt("elDropdown",{instance:n,dropdownSize:_,handleClick:y,commandHandler:w,trigger:rn(e,"trigger"),hideOnClick:rn(e,"hideOnClick")}),{t:a,ns:r,scrollbar:u,wrapStyle:p,dropdownTriggerKls:h,dropdownSize:_,triggerId:g,currentTabId:c,handleCurrentTabIdChange:D,handlerMainButtonClick:$=>{t("click",$)},handleEntryFocus:O,handleClose:T,handleOpen:b,handleBeforeShowTooltip:V,handleShowTooltip:N,handleBeforeHideTooltip:K,onFocusAfterTrapped:$=>{var j,W;$.preventDefault(),(W=(j=l.value)==null?void 0:j.focus)==null||W.call(j,{preventScroll:!0})},popperRef:s,contentRef:l,triggeringElementRef:i,referenceElementRef:o}}});function RZ(e,t,n,r,a,i){var o;const s=Rt("el-dropdown-collection"),l=Rt("el-roving-focus-group"),u=Rt("el-scrollbar"),c=Rt("el-only-child"),d=Rt("el-tooltip"),p=Rt("el-button"),h=Rt("arrow-down"),v=Rt("el-icon"),m=Rt("el-button-group");return x(),U("div",{class:F([e.ns.b(),e.ns.is("disabled",e.disabled)])},[E(d,{ref:"popperRef",role:e.role,effect:e.effect,"fallback-placements":["bottom","top"],"popper-options":e.popperOptions,"gpu-acceleration":!1,"hide-after":e.trigger==="hover"?e.hideTimeout:0,"manual-mode":!0,placement:e.placement,"popper-class":[e.ns.e("popper"),e.popperClass],"reference-element":(o=e.referenceElementRef)==null?void 0:o.$el,trigger:e.trigger,"trigger-keys":e.triggerKeys,"trigger-target-el":e.contentRef,"show-after":e.trigger==="hover"?e.showTimeout:0,"stop-popper-mouse-event":!1,"virtual-ref":e.triggeringElementRef,"virtual-triggering":e.splitButton,disabled:e.disabled,transition:`${e.ns.namespace.value}-zoom-in-top`,teleported:e.teleported,pure:"",persistent:e.persistent,onBeforeShow:e.handleBeforeShowTooltip,onShow:e.handleShowTooltip,onBeforeHide:e.handleBeforeHideTooltip},Ua({content:P(()=>[E(u,{ref:"scrollbar","wrap-style":e.wrapStyle,tag:"div","view-class":e.ns.e("list")},{default:P(()=>[E(l,{loop:e.loop,"current-tab-id":e.currentTabId,orientation:"horizontal",onCurrentTabIdChange:e.handleCurrentTabIdChange,onEntryFocus:e.handleEntryFocus},{default:P(()=>[E(s,null,{default:P(()=>[fe(e.$slots,"dropdown")]),_:3})]),_:3},8,["loop","current-tab-id","onCurrentTabIdChange","onEntryFocus"])]),_:3},8,["wrap-style","view-class"])]),_:2},[e.splitButton?void 0:{name:"default",fn:P(()=>[E(c,{id:e.triggerId,ref:"triggeringElementRef",role:"button",tabindex:e.tabindex},{default:P(()=>[fe(e.$slots,"default")]),_:3},8,["id","tabindex"])])}]),1032,["role","effect","popper-options","hide-after","placement","popper-class","reference-element","trigger","trigger-keys","trigger-target-el","show-after","virtual-ref","virtual-triggering","disabled","transition","teleported","persistent","onBeforeShow","onShow","onBeforeHide"]),e.splitButton?(x(),he(m,{key:0},{default:P(()=>[E(p,Ft({ref:"referenceElementRef"},e.buttonProps,{size:e.dropdownSize,type:e.type,disabled:e.disabled,tabindex:e.tabindex,onClick:e.handlerMainButtonClick}),{default:P(()=>[fe(e.$slots,"default")]),_:3},16,["size","type","disabled","tabindex","onClick"]),E(p,Ft({id:e.triggerId,ref:"triggeringElementRef"},e.buttonProps,{role:"button",size:e.dropdownSize,type:e.type,class:e.ns.e("caret-button"),disabled:e.disabled,tabindex:e.tabindex,"aria-label":e.t("el.dropdown.toggleDropdown")}),{default:P(()=>[E(v,{class:F(e.ns.e("icon"))},{default:P(()=>[E(h)]),_:1},8,["class"])]),_:1},16,["id","size","type","class","disabled","tabindex","aria-label"])]),_:3})):oe("v-if",!0)],2)}var LZ=He(MZ,[["render",RZ],["__file","dropdown.vue"]]);const NZ=J({components:{ElRovingFocusCollectionItem:fZ},props:{focusable:{type:Boolean,default:!0},active:{type:Boolean,default:!1}},emits:["mousedown","focus","keydown"],setup(e,{emit:t}){const{currentTabbedId:n,loop:r,onItemFocus:a,onItemShiftTab:i}=Qe(e2,void 0),{getItems:o}=Qe(Z1,void 0),s=wr(),l=z(),u=$n(h=>{t("mousedown",h)},h=>{e.focusable?a(f(s)):h.preventDefault()}),c=$n(h=>{t("focus",h)},()=>{a(f(s))}),d=$n(h=>{t("keydown",h)},h=>{const{code:v,shiftKey:m,target:g,currentTarget:y}=h;if(v===Ye.tab&&m){i();return}if(g!==y)return;const T=vZ(h);if(T){h.preventDefault();let _=o().filter(w=>w.focusable).map(w=>w.ref);switch(T){case"last":{_.reverse();break}case"prev":case"next":{T==="prev"&&_.reverse();const w=_.indexOf(y);_=r.value?gZ(_,w+1):_.slice(w+1);break}}it(()=>{t2(_)})}}),p=k(()=>n.value===f(s));return Vt(BO,{rovingFocusGroupItemRef:l,tabIndex:k(()=>f(p)?0:-1),handleMousedown:u,handleFocus:c,handleKeydown:d}),{id:s,handleKeydown:d,handleFocus:c,handleMousedown:u}}});function FZ(e,t,n,r,a,i){const o=Rt("el-roving-focus-collection-item");return x(),he(o,{id:e.id,focusable:e.focusable,active:e.active},{default:P(()=>[fe(e.$slots,"default")]),_:3},8,["id","focusable","active"])}var $Z=He(NZ,[["render",FZ],["__file","roving-focus-item.vue"]]);const BZ=J({name:"DropdownItemImpl",components:{ElIcon:et},props:VO,emits:["pointermove","pointerleave","click","clickimpl"],setup(e,{emit:t}){const n=Le("dropdown"),{role:r}=Qe(Kv,void 0),{collectionItemRef:a}=Qe(PZ,void 0),{collectionItemRef:i}=Qe(pZ,void 0),{rovingFocusGroupItemRef:o,tabIndex:s,handleFocus:l,handleKeydown:u,handleMousedown:c}=Qe(BO,void 0),d=Wv(a,i,o),p=k(()=>r.value==="menu"?"menuitem":r.value==="navigation"?"link":"button"),h=$n(v=>{if([Ye.enter,Ye.numpadEnter,Ye.space].includes(v.code))return v.preventDefault(),v.stopImmediatePropagation(),t("clickimpl",v),!0},u);return{ns:n,itemRef:d,dataset:{[FO]:""},role:p,tabIndex:s,handleFocus:l,handleKeydown:h,handleMousedown:c}}});function VZ(e,t,n,r,a,i){const o=Rt("el-icon");return x(),U(Ge,null,[e.divided?(x(),U("li",{key:0,role:"separator",class:F(e.ns.bem("menu","item","divided"))},null,2)):oe("v-if",!0),M("li",Ft({ref:e.itemRef},{...e.dataset,...e.$attrs},{"aria-disabled":e.disabled,class:[e.ns.be("menu","item"),e.ns.is("disabled",e.disabled)],tabindex:e.tabIndex,role:e.role,onClick:s=>e.$emit("clickimpl",s),onFocus:e.handleFocus,onKeydown:ft(e.handleKeydown,["self"]),onMousedown:e.handleMousedown,onPointermove:s=>e.$emit("pointermove",s),onPointerleave:s=>e.$emit("pointerleave",s)}),[e.icon?(x(),he(o,{key:0},{default:P(()=>[(x(),he(Lt(e.icon)))]),_:1})):oe("v-if",!0),fe(e.$slots,"default")],16,["aria-disabled","tabindex","role","onClick","onFocus","onKeydown","onMousedown","onPointermove","onPointerleave"])],64)}var UZ=He(BZ,[["render",VZ],["__file","dropdown-item-impl.vue"]]);const HO=()=>{const e=Qe("elDropdown",{}),t=k(()=>e==null?void 0:e.dropdownSize);return{elDropdown:e,_elDropdownSize:t}},HZ=J({name:"ElDropdownItem",components:{ElDropdownCollectionItem:DZ,ElRovingFocusItem:$Z,ElDropdownItemImpl:UZ},inheritAttrs:!1,props:VO,emits:["pointermove","pointerleave","click"],setup(e,{emit:t,attrs:n}){const{elDropdown:r}=HO(),a=Mt(),i=z(null),o=k(()=>{var h,v;return(v=(h=f(i))==null?void 0:h.textContent)!=null?v:""}),{onItemEnter:s,onItemLeave:l}=Qe(Kv,void 0),u=$n(h=>(t("pointermove",h),h.defaultPrevented),LC(h=>{if(e.disabled){l(h);return}const v=h.currentTarget;v===document.activeElement||v.contains(document.activeElement)||(s(h),h.defaultPrevented||v==null||v.focus())})),c=$n(h=>(t("pointerleave",h),h.defaultPrevented),LC(l)),d=$n(h=>{if(!e.disabled)return t("click",h),h.type!=="keydown"&&h.defaultPrevented},h=>{var v,m,g;if(e.disabled){h.stopImmediatePropagation();return}(v=r==null?void 0:r.hideOnClick)!=null&&v.value&&((m=r.handleClick)==null||m.call(r)),(g=r.commandHandler)==null||g.call(r,e.command,a,h)}),p=k(()=>({...e,...n}));return{handleClick:d,handlePointerMove:u,handlePointerLeave:c,textContent:o,propsAndAttrs:p}}});function zZ(e,t,n,r,a,i){var o;const s=Rt("el-dropdown-item-impl"),l=Rt("el-roving-focus-item"),u=Rt("el-dropdown-collection-item");return x(),he(u,{disabled:e.disabled,"text-value":(o=e.textValue)!=null?o:e.textContent},{default:P(()=>[E(l,{focusable:!e.disabled},{default:P(()=>[E(s,Ft(e.propsAndAttrs,{onPointerleave:e.handlePointerLeave,onPointermove:e.handlePointerMove,onClickimpl:e.handleClick}),{default:P(()=>[fe(e.$slots,"default")]),_:3},16,["onPointerleave","onPointermove","onClickimpl"])]),_:3},8,["focusable"])]),_:3},8,["disabled","text-value"])}var zO=He(HZ,[["render",zZ],["__file","dropdown-item.vue"]]);const jZ=J({name:"ElDropdownMenu",props:EZ,setup(e){const t=Le("dropdown"),{_elDropdownSize:n}=HO(),r=n.value,{focusTrapRef:a,onKeydown:i}=Qe(T1,void 0),{contentRef:o,role:s,triggerId:l}=Qe(Kv,void 0),{collectionRef:u,getItems:c}=Qe(IZ,void 0),{rovingFocusGroupRef:d,rovingFocusGroupRootStyle:p,tabIndex:h,onBlur:v,onFocus:m,onMousedown:g}=Qe(e2,void 0),{collectionRef:y}=Qe(Z1,void 0),T=k(()=>[t.b("menu"),t.bm("menu",r==null?void 0:r.value)]),b=Wv(o,u,a,d,y),_=$n(S=>{var A;(A=e.onKeydown)==null||A.call(e,S)},S=>{const{currentTarget:A,code:I,target:D}=S;if(A.contains(D),Ye.tab===I&&S.stopImmediatePropagation(),S.preventDefault(),D!==f(o)||!kZ.includes(I))return;const V=c().filter(N=>!N.disabled).map(N=>N.ref);UO.includes(I)&&V.reverse(),t2(V)});return{size:r,rovingFocusGroupRootStyle:p,tabIndex:h,dropdownKls:T,role:s,triggerId:l,dropdownListWrapperRef:b,handleKeydown:S=>{_(S),i(S)},onBlur:v,onFocus:m,onMousedown:g}}});function WZ(e,t,n,r,a,i){return x(),U("ul",{ref:e.dropdownListWrapperRef,class:F(e.dropdownKls),style:tt(e.rovingFocusGroupRootStyle),tabindex:-1,role:e.role,"aria-labelledby":e.triggerId,onBlur:e.onBlur,onFocus:e.onFocus,onKeydown:ft(e.handleKeydown,["self"]),onMousedown:ft(e.onMousedown,["self"])},[fe(e.$slots,"default")],46,["role","aria-labelledby","onBlur","onFocus","onKeydown","onMousedown"])}var jO=He(jZ,[["render",WZ],["__file","dropdown-menu.vue"]]);const WO=Et(LZ,{DropdownItem:zO,DropdownMenu:jO}),KO=On(zO),qO=On(jO),KZ=J({name:"ImgEmpty"}),qZ=J({...KZ,setup(e){const t=Le("empty"),n=wr();return(r,a)=>(x(),U("svg",{viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},[M("defs",null,[M("linearGradient",{id:`linearGradient-1-${f(n)}`,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"},[M("stop",{"stop-color":`var(${f(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,["stop-color"]),M("stop",{"stop-color":`var(${f(t).cssVarBlockName("fill-color-4")})`,offset:"100%"},null,8,["stop-color"])],8,["id"]),M("linearGradient",{id:`linearGradient-2-${f(n)}`,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"},[M("stop",{"stop-color":`var(${f(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,["stop-color"]),M("stop",{"stop-color":`var(${f(t).cssVarBlockName("fill-color-6")})`,offset:"100%"},null,8,["stop-color"])],8,["id"]),M("rect",{id:`path-3-${f(n)}`,x:"0",y:"0",width:"17",height:"36"},null,8,["id"])]),M("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[M("g",{transform:"translate(-1268.000000, -535.000000)"},[M("g",{transform:"translate(1268.000000, 535.000000)"},[M("path",{d:"M39.5,86 C61.3152476,86 79,83.9106622 79,81.3333333 C79,78.7560045 57.3152476,78 35.5,78 C13.6847524,78 0,78.7560045 0,81.3333333 C0,83.9106622 17.6847524,86 39.5,86 Z",fill:`var(${f(t).cssVarBlockName("fill-color-3")})`},null,8,["fill"]),M("polygon",{fill:`var(${f(t).cssVarBlockName("fill-color-7")})`,transform:"translate(27.500000, 51.500000) scale(1, -1) translate(-27.500000, -51.500000) ",points:"13 58 53 58 42 45 2 45"},null,8,["fill"]),M("g",{transform:"translate(34.500000, 31.500000) scale(-1, 1) rotate(-25.000000) translate(-34.500000, -31.500000) translate(7.000000, 10.000000)"},[M("polygon",{fill:`var(${f(t).cssVarBlockName("fill-color-7")})`,transform:"translate(11.500000, 5.000000) scale(1, -1) translate(-11.500000, -5.000000) ",points:"2.84078316e-14 3 18 3 23 7 5 7"},null,8,["fill"]),M("polygon",{fill:`var(${f(t).cssVarBlockName("fill-color-5")})`,points:"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"},null,8,["fill"]),M("rect",{fill:`url(#linearGradient-1-${f(n)})`,transform:"translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) ",x:"38",y:"7",width:"17",height:"36"},null,8,["fill"]),M("polygon",{fill:`var(${f(t).cssVarBlockName("fill-color-2")})`,transform:"translate(39.500000, 3.500000) scale(-1, 1) translate(-39.500000, -3.500000) ",points:"24 7 41 7 55 -3.63806207e-12 38 -3.63806207e-12"},null,8,["fill"])]),M("rect",{fill:`url(#linearGradient-2-${f(n)})`,x:"13",y:"45",width:"40",height:"36"},null,8,["fill"]),M("g",{transform:"translate(53.000000, 45.000000)"},[M("use",{fill:`var(${f(t).cssVarBlockName("fill-color-8")})`,transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":`#path-3-${f(n)}`},null,8,["fill","xlink:href"]),M("polygon",{fill:`var(${f(t).cssVarBlockName("fill-color-9")})`,mask:`url(#mask-4-${f(n)})`,transform:"translate(12.000000, 9.000000) scale(-1, 1) translate(-12.000000, -9.000000) ",points:"7 0 24 0 20 18 7 16.5"},null,8,["fill","mask"])]),M("polygon",{fill:`var(${f(t).cssVarBlockName("fill-color-2")})`,transform:"translate(66.000000, 51.500000) scale(-1, 1) translate(-66.000000, -51.500000) ",points:"62 45 79 45 70 58 53 58"},null,8,["fill"])])])])]))}});var GZ=He(qZ,[["__file","img-empty.vue"]]);const YZ=Ue({image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}}),XZ=J({name:"ElEmpty"}),QZ=J({...XZ,props:YZ,setup(e){const t=e,{t:n}=Kt(),r=Le("empty"),a=k(()=>t.description||n("el.table.emptyText")),i=k(()=>({width:Ln(t.imageSize)}));return(o,s)=>(x(),U("div",{class:F(f(r).b())},[M("div",{class:F(f(r).e("image")),style:tt(f(i))},[o.image?(x(),U("img",{key:0,src:o.image,ondragstart:"return false"},null,8,["src"])):fe(o.$slots,"image",{key:1},()=>[E(GZ)])],6),M("div",{class:F(f(r).e("description"))},[o.$slots.description?fe(o.$slots,"description",{key:0}):(x(),U("p",{key:1},de(f(a)),1))],2),o.$slots.default?(x(),U("div",{key:0,class:F(f(r).e("bottom"))},[fe(o.$slots,"default")],2)):oe("v-if",!0)],2))}});var JZ=He(QZ,[["__file","empty.vue"]]);const $c=Et(JZ),ZZ=Ue({size:{type:String,values:uo},disabled:Boolean}),eee=Ue({...ZZ,model:Object,rules:{type:ue(Object)},labelPosition:{type:String,values:["left","right","top"],default:"right"},requireAsteriskPosition:{type:String,values:["left","right"],default:"left"},labelWidth:{type:[String,Number],default:""},labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:Boolean,scrollToError:Boolean,scrollIntoViewOptions:{type:[Object,Boolean]}}),tee={validate:(e,t,n)=>(Be(e)||rt(e))&&pn(t)&&rt(n)};function nee(){const e=z([]),t=k(()=>{if(!e.value.length)return"0";const i=Math.max(...e.value);return i?`${i}px`:""});function n(i){const o=e.value.indexOf(i);return o===-1&&t.value,o}function r(i,o){if(i&&o){const s=n(o);e.value.splice(s,1,i)}else i&&e.value.push(i)}function a(i){const o=n(i);o>-1&&e.value.splice(o,1)}return{autoLabelWidth:t,registerLabelWidth:r,deregisterLabelWidth:a}}const ch=(e,t)=>{const n=$r(t);return n.length>0?e.filter(r=>r.prop&&n.includes(r.prop)):e},ree="ElForm",aee=J({name:ree}),iee=J({...aee,props:eee,emits:tee,setup(e,{expose:t,emit:n}){const r=e,a=[],i=Kn(),o=Le("form"),s=k(()=>{const{labelPosition:b,inline:_}=r;return[o.b(),o.m(i.value||"default"),{[o.m(`label-${b}`)]:b,[o.m("inline")]:_}]}),l=b=>a.find(_=>_.prop===b),u=b=>{a.push(b)},c=b=>{b.prop&&a.splice(a.indexOf(b),1)},d=(b=[])=>{r.model&&ch(a,b).forEach(_=>_.resetField())},p=(b=[])=>{ch(a,b).forEach(_=>_.clearValidate())},h=k(()=>!!r.model),v=b=>{if(a.length===0)return[];const _=ch(a,b);return _.length?_:[]},m=async b=>y(void 0,b),g=async(b=[])=>{if(!h.value)return!1;const _=v(b);if(_.length===0)return!0;let w={};for(const S of _)try{await S.validate(""),S.validateState==="error"&&S.resetField()}catch(A){w={...w,...A}}return Object.keys(w).length===0?!0:Promise.reject(w)},y=async(b=[],_)=>{const w=!ot(_);try{const S=await g(b);return S===!0&&await(_==null?void 0:_(S)),S}catch(S){if(S instanceof Error)throw S;const A=S;return r.scrollToError&&T(Object.keys(A)[0]),await(_==null?void 0:_(!1,A)),w&&Promise.reject(A)}},T=b=>{var _;const w=ch(a,b)[0];w&&((_=w.$el)==null||_.scrollIntoView(r.scrollIntoViewOptions))};return Ie(()=>r.rules,()=>{r.validateOnRuleChange&&m().catch(b=>void 0)},{deep:!0,flush:"post"}),Vt(ql,Ct({...mr(r),emit:n,resetFields:d,clearValidate:p,validateField:y,getField:l,addField:u,removeField:c,...nee()})),t({validate:m,validateField:y,resetFields:d,clearValidate:p,scrollToField:T,fields:a}),(b,_)=>(x(),U("form",{class:F(f(s))},[fe(b.$slots,"default")],2))}});var oee=He(iee,[["__file","form.vue"]]);function ml(){return ml=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ml.apply(this,arguments)}function see(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,kf(e,t)}function Ky(e){return Ky=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ky(e)}function kf(e,t){return kf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},kf(e,t)}function lee(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function $h(e,t,n){return lee()?$h=Reflect.construct.bind():$h=function(a,i,o){var s=[null];s.push.apply(s,i);var l=Function.bind.apply(a,s),u=new l;return o&&kf(u,o.prototype),u},$h.apply(null,arguments)}function uee(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function qy(e){var t=typeof Map=="function"?new Map:void 0;return qy=function(r){if(r===null||!uee(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,a)}function a(){return $h(r,arguments,Ky(this).constructor)}return a.prototype=Object.create(r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),kf(a,r)},qy(e)}var cee=/%[sdj%]/g,dee=function(){};typeof process<"u"&&process.env;function Gy(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function Na(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var a=0,i=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var o=e.replace(cee,function(s){if(s==="%%")return"%";if(a>=i)return s;switch(s){case"%s":return String(n[a++]);case"%d":return Number(n[a++]);case"%j":try{return JSON.stringify(n[a++])}catch{return"[Circular]"}break;default:return s}});return o}return e}function fee(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function vr(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||fee(t)&&typeof e=="string"&&!e)}function pee(e,t,n){var r=[],a=0,i=e.length;function o(s){r.push.apply(r,s||[]),a++,a===i&&n(r)}e.forEach(function(s){t(s,o)})}function oE(e,t,n){var r=0,a=e.length;function i(o){if(o&&o.length){n(o);return}var s=r;r=r+1,s<a?t(e[s],i):n([])}i([])}function hee(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n]||[])}),t}var sE=function(e){see(t,e);function t(n,r){var a;return a=e.call(this,"Async Validation Error")||this,a.errors=n,a.fields=r,a}return t}(qy(Error));function mee(e,t,n,r,a){if(t.first){var i=new Promise(function(p,h){var v=function(y){return r(y),y.length?h(new sE(y,Gy(y))):p(a)},m=hee(e);oE(m,n,v)});return i.catch(function(p){return p}),i}var o=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,u=0,c=[],d=new Promise(function(p,h){var v=function(g){if(c.push.apply(c,g),u++,u===l)return r(c),c.length?h(new sE(c,Gy(c))):p(a)};s.length||(r(c),p(a)),s.forEach(function(m){var g=e[m];o.indexOf(m)!==-1?oE(g,n,v):pee(g,n,v)})});return d.catch(function(p){return p}),d}function vee(e){return!!(e&&e.message!==void 0)}function gee(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function lE(e,t){return function(n){var r;return e.fullFields?r=gee(t,e.fullFields):r=t[n.field||e.fullField],vee(n)?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:typeof n=="function"?n():n,fieldValue:r,field:n.field||e.fullField}}}function uE(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];typeof r=="object"&&typeof e[n]=="object"?e[n]=ml({},e[n],r):e[n]=r}}return e}var GO=function(t,n,r,a,i,o){t.required&&(!r.hasOwnProperty(t.field)||vr(n,o||t.type))&&a.push(Na(i.messages.required,t.fullField))},yee=function(t,n,r,a,i){(/^\s+$/.test(n)||n==="")&&a.push(Na(i.messages.whitespace,t.fullField))},dh,bee=function(){if(dh)return dh;var e="[a-fA-F\\d:]",t=function(_){return _&&_.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",a=(`
(?:
(?:`+r+":){7}(?:"+r+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
(?:`+r+":){6}(?:"+n+"|:"+r+`|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
(?:`+r+":){5}(?::"+n+"|(?::"+r+`){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
(?:`+r+":){4}(?:(?::"+r+"){0,1}:"+n+"|(?::"+r+`){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
(?:`+r+":){3}(?:(?::"+r+"){0,2}:"+n+"|(?::"+r+`){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
(?:`+r+":){2}(?:(?::"+r+"){0,3}:"+n+"|(?::"+r+`){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
(?:`+r+":){1}(?:(?::"+r+"){0,4}:"+n+"|(?::"+r+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
(?::(?:(?::`+r+"){0,5}:"+n+"|(?::"+r+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),i=new RegExp("(?:^"+n+"$)|(?:^"+a+"$)"),o=new RegExp("^"+n+"$"),s=new RegExp("^"+a+"$"),l=function(_){return _&&_.exact?i:new RegExp("(?:"+t(_)+n+t(_)+")|(?:"+t(_)+a+t(_)+")","g")};l.v4=function(b){return b&&b.exact?o:new RegExp(""+t(b)+n+t(b),"g")},l.v6=function(b){return b&&b.exact?s:new RegExp(""+t(b)+a+t(b),"g")};var u="(?:(?:[a-z]+:)?//)",c="(?:\\S+(?::\\S*)?@)?",d=l.v4().source,p=l.v6().source,h="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",v="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",m="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",g="(?::\\d{2,5})?",y='(?:[/?#][^\\s"]*)?',T="(?:"+u+"|www\\.)"+c+"(?:localhost|"+d+"|"+p+"|"+h+v+m+")"+g+y;return dh=new RegExp("(?:^"+T+"$)","i"),dh},cE={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},xd={integer:function(t){return xd.number(t)&&parseInt(t,10)===t},float:function(t){return xd.number(t)&&!xd.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!xd.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(cE.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(bee())},hex:function(t){return typeof t=="string"&&!!t.match(cE.hex)}},_ee=function(t,n,r,a,i){if(t.required&&n===void 0){GO(t,n,r,a,i);return}var o=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;o.indexOf(s)>-1?xd[s](n)||a.push(Na(i.messages.types[s],t.fullField,t.type)):s&&typeof n!==t.type&&a.push(Na(i.messages.types[s],t.fullField,t.type))},Tee=function(t,n,r,a,i){var o=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=n,d=null,p=typeof n=="number",h=typeof n=="string",v=Array.isArray(n);if(p?d="number":h?d="string":v&&(d="array"),!d)return!1;v&&(c=n.length),h&&(c=n.replace(u,"_").length),o?c!==t.len&&a.push(Na(i.messages[d].len,t.fullField,t.len)):s&&!l&&c<t.min?a.push(Na(i.messages[d].min,t.fullField,t.min)):l&&!s&&c>t.max?a.push(Na(i.messages[d].max,t.fullField,t.max)):s&&l&&(c<t.min||c>t.max)&&a.push(Na(i.messages[d].range,t.fullField,t.min,t.max))},ou="enum",wee=function(t,n,r,a,i){t[ou]=Array.isArray(t[ou])?t[ou]:[],t[ou].indexOf(n)===-1&&a.push(Na(i.messages[ou],t.fullField,t[ou].join(", ")))},See=function(t,n,r,a,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||a.push(Na(i.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var o=new RegExp(t.pattern);o.test(n)||a.push(Na(i.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},hn={required:GO,whitespace:yee,type:_ee,range:Tee,enum:wee,pattern:See},Cee=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(vr(n,"string")&&!t.required)return r();hn.required(t,n,a,o,i,"string"),vr(n,"string")||(hn.type(t,n,a,o,i),hn.range(t,n,a,o,i),hn.pattern(t,n,a,o,i),t.whitespace===!0&&hn.whitespace(t,n,a,o,i))}r(o)},Eee=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(vr(n)&&!t.required)return r();hn.required(t,n,a,o,i),n!==void 0&&hn.type(t,n,a,o,i)}r(o)},xee=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),vr(n)&&!t.required)return r();hn.required(t,n,a,o,i),n!==void 0&&(hn.type(t,n,a,o,i),hn.range(t,n,a,o,i))}r(o)},kee=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(vr(n)&&!t.required)return r();hn.required(t,n,a,o,i),n!==void 0&&hn.type(t,n,a,o,i)}r(o)},Aee=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(vr(n)&&!t.required)return r();hn.required(t,n,a,o,i),vr(n)||hn.type(t,n,a,o,i)}r(o)},Dee=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(vr(n)&&!t.required)return r();hn.required(t,n,a,o,i),n!==void 0&&(hn.type(t,n,a,o,i),hn.range(t,n,a,o,i))}r(o)},Iee=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(vr(n)&&!t.required)return r();hn.required(t,n,a,o,i),n!==void 0&&(hn.type(t,n,a,o,i),hn.range(t,n,a,o,i))}r(o)},Pee=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return r();hn.required(t,n,a,o,i,"array"),n!=null&&(hn.type(t,n,a,o,i),hn.range(t,n,a,o,i))}r(o)},Oee=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(vr(n)&&!t.required)return r();hn.required(t,n,a,o,i),n!==void 0&&hn.type(t,n,a,o,i)}r(o)},Mee="enum",Ree=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(vr(n)&&!t.required)return r();hn.required(t,n,a,o,i),n!==void 0&&hn[Mee](t,n,a,o,i)}r(o)},Lee=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(vr(n,"string")&&!t.required)return r();hn.required(t,n,a,o,i),vr(n,"string")||hn.pattern(t,n,a,o,i)}r(o)},Nee=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(vr(n,"date")&&!t.required)return r();if(hn.required(t,n,a,o,i),!vr(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),hn.type(t,l,a,o,i),l&&hn.range(t,l.getTime(),a,o,i)}}r(o)},Fee=function(t,n,r,a,i){var o=[],s=Array.isArray(n)?"array":typeof n;hn.required(t,n,a,o,i,s),r(o)},v0=function(t,n,r,a,i){var o=t.type,s=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(vr(n,o)&&!t.required)return r();hn.required(t,n,a,s,i,o),vr(n,o)||hn.type(t,n,a,s,i)}r(s)},$ee=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(vr(n)&&!t.required)return r();hn.required(t,n,a,o,i)}r(o)},Gd={string:Cee,method:Eee,number:xee,boolean:kee,regexp:Aee,integer:Dee,float:Iee,array:Pee,object:Oee,enum:Ree,pattern:Lee,date:Nee,url:v0,hex:v0,email:v0,required:Fee,any:$ee};function Yy(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var Xy=Yy(),mp=function(){function e(n){this.rules=null,this._messages=Xy,this.define(n)}var t=e.prototype;return t.define=function(r){var a=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(i){var o=r[i];a.rules[i]=Array.isArray(o)?o:[o]})},t.messages=function(r){return r&&(this._messages=uE(Yy(),r)),this._messages},t.validate=function(r,a,i){var o=this;a===void 0&&(a={}),i===void 0&&(i=function(){});var s=r,l=a,u=i;if(typeof l=="function"&&(u=l,l={}),!this.rules||Object.keys(this.rules).length===0)return u&&u(null,s),Promise.resolve(s);function c(m){var g=[],y={};function T(_){if(Array.isArray(_)){var w;g=(w=g).concat.apply(w,_)}else g.push(_)}for(var b=0;b<m.length;b++)T(m[b]);g.length?(y=Gy(g),u(g,y)):u(null,s)}if(l.messages){var d=this.messages();d===Xy&&(d=Yy()),uE(d,l.messages),l.messages=d}else l.messages=this.messages();var p={},h=l.keys||Object.keys(this.rules);h.forEach(function(m){var g=o.rules[m],y=s[m];g.forEach(function(T){var b=T;typeof b.transform=="function"&&(s===r&&(s=ml({},s)),y=s[m]=b.transform(y)),typeof b=="function"?b={validator:b}:b=ml({},b),b.validator=o.getValidationMethod(b),b.validator&&(b.field=m,b.fullField=b.fullField||m,b.type=o.getType(b),p[m]=p[m]||[],p[m].push({rule:b,value:y,source:s,field:m}))})});var v={};return mee(p,l,function(m,g){var y=m.rule,T=(y.type==="object"||y.type==="array")&&(typeof y.fields=="object"||typeof y.defaultField=="object");T=T&&(y.required||!y.required&&m.value),y.field=m.field;function b(S,A){return ml({},A,{fullField:y.fullField+"."+S,fullFields:y.fullFields?[].concat(y.fullFields,[S]):[S]})}function _(S){S===void 0&&(S=[]);var A=Array.isArray(S)?S:[S];!l.suppressWarning&&A.length&&e.warning("async-validator:",A),A.length&&y.message!==void 0&&(A=[].concat(y.message));var I=A.map(lE(y,s));if(l.first&&I.length)return v[y.field]=1,g(I);if(!T)g(I);else{if(y.required&&!m.value)return y.message!==void 0?I=[].concat(y.message).map(lE(y,s)):l.error&&(I=[l.error(y,Na(l.messages.required,y.field))]),g(I);var D={};y.defaultField&&Object.keys(m.value).map(function(N){D[N]=y.defaultField}),D=ml({},D,m.rule.fields);var O={};Object.keys(D).forEach(function(N){var K=D[N],Y=Array.isArray(K)?K:[K];O[N]=Y.map(b.bind(null,N))});var V=new e(O);V.messages(l.messages),m.rule.options&&(m.rule.options.messages=l.messages,m.rule.options.error=l.error),V.validate(m.value,m.rule.options||l,function(N){var K=[];I&&I.length&&K.push.apply(K,I),N&&N.length&&K.push.apply(K,N),g(K.length?K:null)})}}var w;if(y.asyncValidator)w=y.asyncValidator(y,m.value,_,m.source,l);else if(y.validator){try{w=y.validator(y,m.value,_,m.source,l)}catch(S){console.error==null||console.error(S),l.suppressValidatorError||setTimeout(function(){throw S},0),_(S.message)}w===!0?_():w===!1?_(typeof y.message=="function"?y.message(y.fullField||y.field):y.message||(y.fullField||y.field)+" fails"):w instanceof Array?_(w):w instanceof Error&&_(w.message)}w&&w.then&&w.then(function(){return _()},function(S){return _(S)})},function(m){c(m)},s)},t.getType=function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!Gd.hasOwnProperty(r.type))throw new Error(Na("Unknown rule type %s",r.type));return r.type||"string"},t.getValidationMethod=function(r){if(typeof r.validator=="function")return r.validator;var a=Object.keys(r),i=a.indexOf("message");return i!==-1&&a.splice(i,1),a.length===1&&a[0]==="required"?Gd.required:Gd[this.getType(r)]||void 0},e}();mp.register=function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");Gd[t]=n};mp.warning=dee;mp.messages=Xy;mp.validators=Gd;const Bee=["","error","validating","success"],Vee=Ue({label:String,labelWidth:{type:[String,Number],default:""},labelPosition:{type:String,values:["left","right","top",""],default:""},prop:{type:ue([String,Array])},required:{type:Boolean,default:void 0},rules:{type:ue([Object,Array])},error:String,validateStatus:{type:String,values:Bee},for:String,inlineMessage:{type:[String,Boolean],default:""},showMessage:{type:Boolean,default:!0},size:{type:String,values:uo}}),dE="ElLabelWrap";var Uee=J({name:dE,props:{isAutoWidth:Boolean,updateAll:Boolean},setup(e,{slots:t}){const n=Qe(ql,void 0),r=Qe(io);r||rr(dE,"usage: <el-form-item><label-wrap /></el-form-item>");const a=Le("form"),i=z(),o=z(0),s=()=>{var c;if((c=i.value)!=null&&c.firstElementChild){const d=window.getComputedStyle(i.value.firstElementChild).width;return Math.ceil(Number.parseFloat(d))}else return 0},l=(c="update")=>{it(()=>{t.default&&e.isAutoWidth&&(c==="update"?o.value=s():c==="remove"&&(n==null||n.deregisterLabelWidth(o.value)))})},u=()=>l("update");return ht(()=>{u()}),fn(()=>{l("remove")}),Di(()=>u()),Ie(o,(c,d)=>{e.updateAll&&(n==null||n.registerLabelWidth(c,d))}),In(k(()=>{var c,d;return(d=(c=i.value)==null?void 0:c.firstElementChild)!=null?d:null}),u),()=>{var c,d;if(!t)return null;const{isAutoWidth:p}=e;if(p){const h=n==null?void 0:n.autoLabelWidth,v=r==null?void 0:r.hasLabel,m={};if(v&&h&&h!=="auto"){const g=Math.max(0,Number.parseInt(h,10)-o.value),T=(r.labelPosition||n.labelPosition)==="left"?"marginRight":"marginLeft";g&&(m[T]=`${g}px`)}return E("div",{ref:i,class:[a.be("item","label-wrap")],style:m},[(c=t.default)==null?void 0:c.call(t)])}else return E(Ge,{ref:i},[(d=t.default)==null?void 0:d.call(t)])}}});const Hee=J({name:"ElFormItem"}),zee=J({...Hee,props:Vee,setup(e,{expose:t}){const n=e,r=ir(),a=Qe(ql,void 0),i=Qe(io,void 0),o=Kn(void 0,{formItem:!1}),s=Le("form-item"),l=wr().value,u=z([]),c=z(""),d=KH(c,100),p=z(""),h=z();let v,m=!1;const g=k(()=>n.labelPosition||(a==null?void 0:a.labelPosition)),y=k(()=>{if(g.value==="top")return{};const me=Ln(n.labelWidth||(a==null?void 0:a.labelWidth)||"");return me?{width:me}:{}}),T=k(()=>{if(g.value==="top"||a!=null&&a.inline)return{};if(!n.label&&!n.labelWidth&&O)return{};const me=Ln(n.labelWidth||(a==null?void 0:a.labelWidth)||"");return!n.label&&!r.label?{marginLeft:me}:{}}),b=k(()=>[s.b(),s.m(o.value),s.is("error",c.value==="error"),s.is("validating",c.value==="validating"),s.is("success",c.value==="success"),s.is("required",q.value||n.required),s.is("no-asterisk",a==null?void 0:a.hideRequiredAsterisk),(a==null?void 0:a.requireAsteriskPosition)==="right"?"asterisk-right":"asterisk-left",{[s.m("feedback")]:a==null?void 0:a.statusIcon,[s.m(`label-${g.value}`)]:g.value}]),_=k(()=>pn(n.inlineMessage)?n.inlineMessage:(a==null?void 0:a.inlineMessage)||!1),w=k(()=>[s.e("error"),{[s.em("error","inline")]:_.value}]),S=k(()=>n.prop?rt(n.prop)?n.prop:n.prop.join("."):""),A=k(()=>!!(n.label||r.label)),I=k(()=>n.for||(u.value.length===1?u.value[0]:void 0)),D=k(()=>!I.value&&A.value),O=!!i,V=k(()=>{const me=a==null?void 0:a.model;if(!(!me||!n.prop))return jd(me,n.prop).value}),N=k(()=>{const{required:me}=n,pe=[];n.rules&&pe.push(...$r(n.rules));const Fe=a==null?void 0:a.rules;if(Fe&&n.prop){const Pe=jd(Fe,n.prop).value;Pe&&pe.push(...$r(Pe))}if(me!==void 0){const Pe=pe.map((ye,Z)=>[ye,Z]).filter(([ye])=>Object.keys(ye).includes("required"));if(Pe.length>0)for(const[ye,Z]of Pe)ye.required!==me&&(pe[Z]={...ye,required:me});else pe.push({required:me})}return pe}),K=k(()=>N.value.length>0),Y=me=>N.value.filter(Fe=>!Fe.trigger||!me?!0:Be(Fe.trigger)?Fe.trigger.includes(me):Fe.trigger===me).map(({trigger:Fe,...Pe})=>Pe),q=k(()=>N.value.some(me=>me.required)),$=k(()=>{var me;return d.value==="error"&&n.showMessage&&((me=a==null?void 0:a.showMessage)!=null?me:!0)}),j=k(()=>`${n.label||""}${(a==null?void 0:a.labelSuffix)||""}`),W=me=>{c.value=me},H=me=>{var pe,Fe;const{errors:Pe,fields:ye}=me;(!Pe||!ye)&&console.error(me),W("error"),p.value=Pe?(Fe=(pe=Pe==null?void 0:Pe[0])==null?void 0:pe.message)!=null?Fe:`${n.prop} is required`:"",a==null||a.emit("validate",n.prop,!1,p.value)},X=()=>{W("success"),a==null||a.emit("validate",n.prop,!0,"")},re=async me=>{const pe=S.value;return new mp({[pe]:me}).validate({[pe]:V.value},{firstFields:!0}).then(()=>(X(),!0)).catch(Pe=>(H(Pe),Promise.reject(Pe)))},le=async(me,pe)=>{if(m||!n.prop)return!1;const Fe=ot(pe);if(!K.value)return pe==null||pe(!1),!1;const Pe=Y(me);return Pe.length===0?(pe==null||pe(!0),!0):(W("validating"),re(Pe).then(()=>(pe==null||pe(!0),!0)).catch(ye=>{const{fields:Z}=ye;return pe==null||pe(!1,Z),Fe?!1:Promise.reject(Z)}))},ne=()=>{W(""),p.value="",m=!1},be=async()=>{const me=a==null?void 0:a.model;if(!me||!n.prop)return;const pe=jd(me,n.prop);m=!0,pe.value=jS(v),await it(),ne(),m=!1},_e=me=>{u.value.includes(me)||u.value.push(me)},ve=me=>{u.value=u.value.filter(pe=>pe!==me)};Ie(()=>n.error,me=>{p.value=me||"",W(me?"error":"")},{immediate:!0}),Ie(()=>n.validateStatus,me=>W(me||""));const te=Ct({...mr(n),$el:h,size:o,validateState:c,labelId:l,inputIds:u,isGroup:D,hasLabel:A,fieldValue:V,addInputId:_e,removeInputId:ve,resetField:be,clearValidate:ne,validate:le});return Vt(io,te),ht(()=>{n.prop&&(a==null||a.addField(te),v=jS(V.value))}),fn(()=>{a==null||a.removeField(te)}),t({size:o,validateMessage:p,validateState:c,validate:le,clearValidate:ne,resetField:be}),(me,pe)=>{var Fe;return x(),U("div",{ref_key:"formItemRef",ref:h,class:F(f(b)),role:f(D)?"group":void 0,"aria-labelledby":f(D)?f(l):void 0},[E(f(Uee),{"is-auto-width":f(y).width==="auto","update-all":((Fe=f(a))==null?void 0:Fe.labelWidth)==="auto"},{default:P(()=>[f(A)?(x(),he(Lt(f(I)?"label":"div"),{key:0,id:f(l),for:f(I),class:F(f(s).e("label")),style:tt(f(y))},{default:P(()=>[fe(me.$slots,"label",{label:f(j)},()=>[we(de(f(j)),1)])]),_:3},8,["id","for","class","style"])):oe("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),M("div",{class:F(f(s).e("content")),style:tt(f(T))},[fe(me.$slots,"default"),E(DD,{name:`${f(s).namespace.value}-zoom-in-top`},{default:P(()=>[f($)?fe(me.$slots,"error",{key:0,error:p.value},()=>[M("div",{class:F(f(w))},de(p.value),3)]):oe("v-if",!0)]),_:3},8,["name"])],6)],10,["role","aria-labelledby"])}}});var YO=He(zee,[["__file","form-item.vue"]]);const po=Et(oee,{FormItem:YO}),ho=On(YO),jee=Ue({urlList:{type:ue(Array),default:()=>Pn([])},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},hideOnClickModal:Boolean,teleported:Boolean,closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2},minScale:{type:Number,default:.2},maxScale:{type:Number,default:7},showProgress:{type:Boolean,default:!1},crossorigin:{type:ue(String)}}),Wee={close:()=>!0,switch:e=>st(e),rotate:e=>st(e)},Kee=J({name:"ElImageViewer"}),qee=J({...Kee,props:jee,emits:Wee,setup(e,{expose:t,emit:n}){var r;const a=e,i={CONTAIN:{name:"contain",icon:$o(Tz)},ORIGINAL:{name:"original",icon:$o(Xz)}};let o,s="";const{t:l}=Kt(),u=Le("image-viewer"),{nextZIndex:c}=Oc(),d=z(),p=z([]),h=iF(),v=z(!0),m=z(a.initialIndex),g=cn(i.CONTAIN),y=z({scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),T=z((r=a.zIndex)!=null?r:c()),b=k(()=>{const{urlList:ve}=a;return ve.length<=1}),_=k(()=>m.value===0),w=k(()=>m.value===a.urlList.length-1),S=k(()=>a.urlList[m.value]),A=k(()=>[u.e("btn"),u.e("prev"),u.is("disabled",!a.infinite&&_.value)]),I=k(()=>[u.e("btn"),u.e("next"),u.is("disabled",!a.infinite&&w.value)]),D=k(()=>{const{scale:ve,deg:te,offsetX:me,offsetY:pe,enableTransition:Fe}=y.value;let Pe=me/ve,ye=pe/ve;const Z=te*Math.PI/180,ie=Math.cos(Z),Ce=Math.sin(Z);Pe=Pe*ie+ye*Ce,ye=ye*ie-me/ve*Ce;const $e={transform:`scale(${ve}) rotate(${te}deg) translate(${Pe}px, ${ye}px)`,transition:Fe?"transform .3s":""};return g.value.name===i.CONTAIN.name&&($e.maxWidth=$e.maxHeight="100%"),$e}),O=k(()=>`${m.value+1} / ${a.urlList.length}`);function V(){K(),o==null||o(),document.body.style.overflow=s,n("close")}function N(){const ve=wl(me=>{switch(me.code){case Ye.esc:a.closeOnPressEscape&&V();break;case Ye.space:W();break;case Ye.left:X();break;case Ye.up:le("zoomIn");break;case Ye.right:re();break;case Ye.down:le("zoomOut");break}}),te=wl(me=>{const pe=me.deltaY||me.deltaX;le(pe<0?"zoomIn":"zoomOut",{zoomRate:a.zoomRate,enableTransition:!1})});h.run(()=>{ln(document,"keydown",ve),ln(document,"wheel",te)})}function K(){h.stop()}function Y(){v.value=!1}function q(ve){v.value=!1,ve.target.alt=l("el.image.error")}function $(ve){if(v.value||ve.button!==0||!d.value)return;y.value.enableTransition=!1;const{offsetX:te,offsetY:me}=y.value,pe=ve.pageX,Fe=ve.pageY,Pe=wl(Z=>{y.value={...y.value,offsetX:te+Z.pageX-pe,offsetY:me+Z.pageY-Fe}}),ye=ln(document,"mousemove",Pe);ln(document,"mouseup",()=>{ye()}),ve.preventDefault()}function j(){y.value={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function W(){if(v.value)return;const ve=Qu(i),te=Object.values(i),me=g.value.name,Fe=(te.findIndex(Pe=>Pe.name===me)+1)%ve.length;g.value=i[ve[Fe]],j()}function H(ve){const te=a.urlList.length;m.value=(ve+te)%te}function X(){_.value&&!a.infinite||H(m.value-1)}function re(){w.value&&!a.infinite||H(m.value+1)}function le(ve,te={}){if(v.value)return;const{minScale:me,maxScale:pe}=a,{zoomRate:Fe,rotateDeg:Pe,enableTransition:ye}={zoomRate:a.zoomRate,rotateDeg:90,enableTransition:!0,...te};switch(ve){case"zoomOut":y.value.scale>me&&(y.value.scale=Number.parseFloat((y.value.scale/Fe).toFixed(3)));break;case"zoomIn":y.value.scale<pe&&(y.value.scale=Number.parseFloat((y.value.scale*Fe).toFixed(3)));break;case"clockwise":y.value.deg+=Pe,n("rotate",y.value.deg);break;case"anticlockwise":y.value.deg-=Pe,n("rotate",y.value.deg);break}y.value.enableTransition=ye}function ne(ve){var te;((te=ve.detail)==null?void 0:te.focusReason)==="pointer"&&ve.preventDefault()}function be(){a.closeOnPressEscape&&V()}function _e(ve){if(ve.ctrlKey){if(ve.deltaY<0)return ve.preventDefault(),!1;if(ve.deltaY>0)return ve.preventDefault(),!1}}return Ie(S,()=>{it(()=>{const ve=p.value[0];ve!=null&&ve.complete||(v.value=!0)})}),Ie(m,ve=>{j(),n("switch",ve)}),ht(()=>{N(),o=ln("wheel",_e,{passive:!1}),s=document.body.style.overflow,document.body.style.overflow="hidden"}),t({setActiveItem:H}),(ve,te)=>(x(),he(f(Lc),{to:"body",disabled:!ve.teleported},{default:P(()=>[E(lr,{name:"viewer-fade",appear:""},{default:P(()=>[M("div",{ref_key:"wrapper",ref:d,tabindex:-1,class:F(f(u).e("wrapper")),style:tt({zIndex:T.value})},[E(f(Rc),{loop:"",trapped:"","focus-trap-el":d.value,"focus-start-el":"container",onFocusoutPrevented:ne,onReleaseRequested:be},{default:P(()=>[M("div",{class:F(f(u).e("mask")),onClick:ft(me=>ve.hideOnClickModal&&V(),["self"])},null,10,["onClick"]),oe(" CLOSE "),M("span",{class:F([f(u).e("btn"),f(u).e("close")]),onClick:V},[E(f(et),null,{default:P(()=>[E(f(Ci))]),_:1})],2),oe(" ARROW "),f(b)?oe("v-if",!0):(x(),U(Ge,{key:0},[M("span",{class:F(f(A)),onClick:X},[E(f(et),null,{default:P(()=>[E(f(Ms))]),_:1})],2),M("span",{class:F(f(I)),onClick:re},[E(f(et),null,{default:P(()=>[E(f(sa))]),_:1})],2)],64)),ve.showProgress?(x(),U("div",{key:1,class:F([f(u).e("btn"),f(u).e("progress")])},[fe(ve.$slots,"progress",{activeIndex:m.value,total:ve.urlList.length},()=>[we(de(f(O)),1)])],2)):oe("v-if",!0),oe(" ACTIONS "),M("div",{class:F([f(u).e("btn"),f(u).e("actions")])},[M("div",{class:F(f(u).e("actions__inner"))},[fe(ve.$slots,"toolbar",{actions:le,prev:X,next:re,reset:W,activeIndex:m.value,setActiveItem:H},()=>[E(f(et),{onClick:me=>le("zoomOut")},{default:P(()=>[E(f(wj))]),_:1},8,["onClick"]),E(f(et),{onClick:me=>le("zoomIn")},{default:P(()=>[E(f(h1))]),_:1},8,["onClick"]),M("i",{class:F(f(u).e("actions__divider"))},null,2),E(f(et),{onClick:W},{default:P(()=>[(x(),he(Lt(f(g).icon)))]),_:1}),M("i",{class:F(f(u).e("actions__divider"))},null,2),E(f(et),{onClick:me=>le("anticlockwise")},{default:P(()=>[E(f(zI))]),_:1},8,["onClick"]),E(f(et),{onClick:me=>le("clockwise")},{default:P(()=>[E(f(p1))]),_:1},8,["onClick"])])],2)],2),oe(" CANVAS "),M("div",{class:F(f(u).e("canvas"))},[(x(!0),U(Ge,null,mt(ve.urlList,(me,pe)=>gt((x(),U("img",{ref_for:!0,ref:Fe=>p.value[pe]=Fe,key:me,src:me,style:tt(f(D)),class:F(f(u).e("img")),crossorigin:ve.crossorigin,onLoad:Y,onError:q,onMousedown:$},null,46,["src","crossorigin"])),[[zt,pe===m.value]])),128))],2),fe(ve.$slots,"default")]),_:3},8,["focus-trap-el"])],6)]),_:3})]),_:3},8,["disabled"]))}});var Gee=He(qee,[["__file","image-viewer.vue"]]);const n2=Et(Gee),Yee=Ue({hideOnClickModal:Boolean,src:{type:String,default:""},fit:{type:String,values:["","contain","cover","fill","none","scale-down"],default:""},loading:{type:String,values:["eager","lazy"]},lazy:Boolean,scrollContainer:{type:ue([String,Object])},previewSrcList:{type:ue(Array),default:()=>Pn([])},previewTeleported:Boolean,zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2},minScale:{type:Number,default:.2},maxScale:{type:Number,default:7},showProgress:{type:Boolean,default:!1},crossorigin:{type:ue(String)}}),Xee={load:e=>e instanceof Event,error:e=>e instanceof Event,switch:e=>st(e),close:()=>!0,show:()=>!0},Qee=J({name:"ElImage",inheritAttrs:!1}),Jee=J({...Qee,props:Yee,emits:Xee,setup(e,{expose:t,emit:n}){const r=e,{t:a}=Kt(),i=Le("image"),o=es(),s=k(()=>_f(Object.entries(o).filter(([$])=>/^(data-|on[A-Z])/i.test($)||["id","style"].includes($)))),l=cp({excludeListeners:!0,excludeKeys:k(()=>Object.keys(s.value))}),u=z(),c=z(!1),d=z(!0),p=z(!1),h=z(),v=z(),m=Wt&&"loading"in HTMLImageElement.prototype;let g;const y=k(()=>[i.e("inner"),b.value&&i.e("preview"),d.value&&i.is("loading")]),T=k(()=>{const{fit:$}=r;return Wt&&$?{objectFit:$}:{}}),b=k(()=>{const{previewSrcList:$}=r;return Be($)&&$.length>0}),_=k(()=>{const{previewSrcList:$,initialIndex:j}=r;let W=j;return j>$.length-1&&(W=0),W}),w=k(()=>r.loading==="eager"?!1:!m&&r.loading==="lazy"||r.lazy),S=()=>{Wt&&(d.value=!0,c.value=!1,u.value=r.src)};function A($){d.value=!1,c.value=!1,n("load",$)}function I($){d.value=!1,c.value=!0,n("error",$)}function D(){OX(h.value,v.value)&&(S(),N())}const O=wI(D,200,!0);async function V(){var $;if(!Wt)return;await it();const{scrollContainer:j}=r;oa(j)?v.value=j:rt(j)&&j!==""?v.value=($=document.querySelector(j))!=null?$:void 0:h.value&&(v.value=i1(h.value)),v.value&&(g=ln(v,"scroll",O),setTimeout(()=>D(),100))}function N(){!Wt||!v.value||!O||(g==null||g(),v.value=void 0)}function K(){b.value&&(p.value=!0,n("show"))}function Y(){p.value=!1,n("close")}function q($){n("switch",$)}return Ie(()=>r.src,()=>{w.value?(d.value=!0,c.value=!1,N(),V()):S()}),ht(()=>{w.value?V():S()}),t({showPreview:K}),($,j)=>(x(),U("div",Ft({ref_key:"container",ref:h},f(s),{class:[f(i).b(),$.$attrs.class]}),[c.value?fe($.$slots,"error",{key:0},()=>[M("div",{class:F(f(i).e("error"))},de(f(a)("el.image.error")),3)]):(x(),U(Ge,{key:1},[u.value!==void 0?(x(),U("img",Ft({key:0},f(l),{src:u.value,loading:$.loading,style:f(T),class:f(y),crossorigin:$.crossorigin,onClick:K,onLoad:A,onError:I}),null,16,["src","loading","crossorigin"])):oe("v-if",!0),d.value?(x(),U("div",{key:1,class:F(f(i).e("wrapper"))},[fe($.$slots,"placeholder",{},()=>[M("div",{class:F(f(i).e("placeholder"))},null,2)])],2)):oe("v-if",!0)],64)),f(b)?(x(),U(Ge,{key:2},[p.value?(x(),he(f(n2),{key:0,"z-index":$.zIndex,"initial-index":f(_),infinite:$.infinite,"zoom-rate":$.zoomRate,"min-scale":$.minScale,"max-scale":$.maxScale,"show-progress":$.showProgress,"url-list":$.previewSrcList,crossorigin:$.crossorigin,"hide-on-click-modal":$.hideOnClickModal,teleported:$.previewTeleported,"close-on-press-escape":$.closeOnPressEscape,onClose:Y,onSwitch:q},{progress:P(W=>[fe($.$slots,"progress",Ra(to(W)))]),toolbar:P(W=>[fe($.$slots,"toolbar",Ra(to(W)))]),default:P(()=>[$.$slots.viewer?(x(),U("div",{key:0},[fe($.$slots,"viewer")])):oe("v-if",!0)]),_:3},8,["z-index","initial-index","infinite","zoom-rate","min-scale","max-scale","show-progress","url-list","crossorigin","hide-on-click-modal","teleported","close-on-press-escape"])):oe("v-if",!0)],64)):oe("v-if",!0)],16))}});var Zee=He(Jee,[["__file","image.vue"]]);const qv=Et(Zee),ete=Ue({id:{type:String,default:void 0},step:{type:Number,default:1},stepStrictly:Boolean,max:{type:Number,default:Number.POSITIVE_INFINITY},min:{type:Number,default:Number.NEGATIVE_INFINITY},modelValue:Number,readonly:Boolean,disabled:Boolean,size:Xn,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:[String,Number,null],validator:e=>e===null||st(e)||["min","max"].includes(e),default:null},name:String,placeholder:String,precision:{type:Number,validator:e=>e>=0&&e===Number.parseInt(`${e}`,10)},validateEvent:{type:Boolean,default:!0},...Er(["ariaLabel"])}),tte={[$t]:(e,t)=>t!==e,blur:e=>e instanceof FocusEvent,focus:e=>e instanceof FocusEvent,[hr]:e=>st(e)||sr(e),[_t]:e=>st(e)||sr(e)},nte=J({name:"ElInputNumber"}),rte=J({...nte,props:ete,emits:tte,setup(e,{expose:t,emit:n}){const r=e,{t:a}=Kt(),i=Le("input-number"),o=z(),s=Ct({currentValue:r.modelValue,userInput:null}),{formItem:l}=Or(),u=k(()=>st(r.modelValue)&&r.modelValue<=r.min),c=k(()=>st(r.modelValue)&&r.modelValue>=r.max),d=k(()=>{const q=y(r.step);return Xt(r.precision)?Math.max(y(r.modelValue),q):(q>r.precision,r.precision)}),p=k(()=>r.controls&&r.controlsPosition==="right"),h=Kn(),v=Mr(),m=k(()=>{if(s.userInput!==null)return s.userInput;let q=s.currentValue;if(sr(q))return"";if(st(q)){if(Number.isNaN(q))return"";Xt(r.precision)||(q=q.toFixed(r.precision))}return q}),g=(q,$)=>{if(Xt($)&&($=d.value),$===0)return Math.round(q);let j=String(q);const W=j.indexOf(".");if(W===-1||!j.replace(".","").split("")[W+$])return q;const re=j.length;return j.charAt(re-1)==="5"&&(j=`${j.slice(0,Math.max(0,re-1))}6`),Number.parseFloat(Number(j).toFixed($))},y=q=>{if(sr(q))return 0;const $=q.toString(),j=$.indexOf(".");let W=0;return j!==-1&&(W=$.length-j-1),W},T=(q,$=1)=>st(q)?g(q+r.step*$):s.currentValue,b=()=>{if(r.readonly||v.value||c.value)return;const q=Number(m.value)||0,$=T(q);S($),n(hr,s.currentValue),K()},_=()=>{if(r.readonly||v.value||u.value)return;const q=Number(m.value)||0,$=T(q,-1);S($),n(hr,s.currentValue),K()},w=(q,$)=>{const{max:j,min:W,step:H,precision:X,stepStrictly:re,valueOnClear:le}=r;j<W&&rr("InputNumber","min should not be greater than max.");let ne=Number(q);if(sr(q)||Number.isNaN(ne))return null;if(q===""){if(le===null)return null;ne=rt(le)?{min:W,max:j}[le]:le}return re&&(ne=g(Math.round(ne/H)*H,X),ne!==q&&$&&n(_t,ne)),Xt(X)||(ne=g(ne,X)),(ne>j||ne<W)&&(ne=ne>j?j:W,$&&n(_t,ne)),ne},S=(q,$=!0)=>{var j;const W=s.currentValue,H=w(q);if(!$){n(_t,H);return}W===H&&q||(s.userInput=null,n(_t,H),W!==H&&n($t,H,W),r.validateEvent&&((j=l==null?void 0:l.validate)==null||j.call(l,"change").catch(X=>void 0)),s.currentValue=H)},A=q=>{s.userInput=q;const $=q===""?null:Number(q);n(hr,$),S($,!1)},I=q=>{const $=q!==""?Number(q):"";(st($)&&!Number.isNaN($)||q==="")&&S($),K(),s.userInput=null},D=()=>{var q,$;($=(q=o.value)==null?void 0:q.focus)==null||$.call(q)},O=()=>{var q,$;($=(q=o.value)==null?void 0:q.blur)==null||$.call(q)},V=q=>{n("focus",q)},N=q=>{var $,j;s.userInput=null,Bv()&&s.currentValue===null&&(($=o.value)!=null&&$.input)&&(o.value.input.value=""),n("blur",q),r.validateEvent&&((j=l==null?void 0:l.validate)==null||j.call(l,"blur").catch(W=>void 0))},K=()=>{s.currentValue!==r.modelValue&&(s.currentValue=r.modelValue)},Y=q=>{document.activeElement===q.target&&q.preventDefault()};return Ie(()=>r.modelValue,(q,$)=>{const j=w(q,!0);s.userInput===null&&j!==$&&(s.currentValue=j)},{immediate:!0}),ht(()=>{var q;const{min:$,max:j,modelValue:W}=r,H=(q=o.value)==null?void 0:q.input;if(H.setAttribute("role","spinbutton"),Number.isFinite(j)?H.setAttribute("aria-valuemax",String(j)):H.removeAttribute("aria-valuemax"),Number.isFinite($)?H.setAttribute("aria-valuemin",String($)):H.removeAttribute("aria-valuemin"),H.setAttribute("aria-valuenow",s.currentValue||s.currentValue===0?String(s.currentValue):""),H.setAttribute("aria-disabled",String(v.value)),!st(W)&&W!=null){let X=Number(W);Number.isNaN(X)&&(X=null),n(_t,X)}H.addEventListener("wheel",Y,{passive:!1})}),Di(()=>{var q,$;const j=(q=o.value)==null?void 0:q.input;j==null||j.setAttribute("aria-valuenow",`${($=s.currentValue)!=null?$:""}`)}),t({focus:D,blur:O}),(q,$)=>(x(),U("div",{class:F([f(i).b(),f(i).m(f(h)),f(i).is("disabled",f(v)),f(i).is("without-controls",!q.controls),f(i).is("controls-right",f(p))]),onDragstart:ft(()=>{},["prevent"])},[q.controls?gt((x(),U("span",{key:0,role:"button","aria-label":f(a)("el.inputNumber.decrease"),class:F([f(i).e("decrease"),f(i).is("disabled",f(u))]),onKeydown:sn(_,["enter"])},[fe(q.$slots,"decrease-icon",{},()=>[E(f(et),null,{default:P(()=>[f(p)?(x(),he(f(co),{key:0})):(x(),he(f(Lz),{key:1}))]),_:1})])],42,["aria-label","onKeydown"])),[[f(Cm),_]]):oe("v-if",!0),q.controls?gt((x(),U("span",{key:1,role:"button","aria-label":f(a)("el.inputNumber.increase"),class:F([f(i).e("increase"),f(i).is("disabled",f(c))]),onKeydown:sn(b,["enter"])},[fe(q.$slots,"increase-icon",{},()=>[E(f(et),null,{default:P(()=>[f(p)?(x(),he(f(Nv),{key:0})):(x(),he(f(d1),{key:1}))]),_:1})])],42,["aria-label","onKeydown"])),[[f(Cm),b]]):oe("v-if",!0),E(f(Wn),{id:q.id,ref_key:"input",ref:o,type:"number",step:q.step,"model-value":f(m),placeholder:q.placeholder,readonly:q.readonly,disabled:f(v),size:f(h),max:q.max,min:q.min,name:q.name,"aria-label":q.ariaLabel,"validate-event":!1,onKeydown:[sn(ft(b,["prevent"]),["up"]),sn(ft(_,["prevent"]),["down"])],onBlur:N,onFocus:V,onInput:A,onChange:I},Ua({_:2},[q.$slots.prefix?{name:"prefix",fn:P(()=>[fe(q.$slots,"prefix")])}:void 0,q.$slots.suffix?{name:"suffix",fn:P(()=>[fe(q.$slots,"suffix")])}:void 0]),1032,["id","step","model-value","placeholder","readonly","disabled","size","max","min","name","aria-label","onKeydown"])],42,["onDragstart"]))}});var ate=He(rte,[["__file","input-number.vue"]]);const vp=Et(ate),ite=Ue({modelValue:{type:ue(Array)},max:Number,tagType:{...jo.type,default:"info"},tagEffect:jo.effect,trigger:{type:ue(String),default:Ye.enter},draggable:{type:Boolean,default:!1},size:Xn,clearable:Boolean,disabled:{type:Boolean,default:void 0},validateEvent:{type:Boolean,default:!0},readonly:Boolean,autofocus:Boolean,id:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},placeholder:String,autocomplete:{type:String,default:"off"},saveOnBlur:{type:Boolean,default:!0},ariaLabel:String}),ote={[_t]:e=>Be(e)||Xt(e),[$t]:e=>Be(e)||Xt(e),[hr]:e=>rt(e),"add-tag":e=>rt(e),"remove-tag":e=>rt(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0};function ste({props:e,emit:t,formItem:n}){const r=Mr(),a=Kn(),i=cn(),o=z(),s=k(()=>["small"].includes(a.value)?"small":"default"),l=k(()=>{var D;return(D=e.modelValue)!=null&&D.length?void 0:e.placeholder}),u=k(()=>!(e.readonly||r.value)),c=k(()=>{var D,O;return Xt(e.max)?!1:((O=(D=e.modelValue)==null?void 0:D.length)!=null?O:0)>=e.max}),d=D=>{if(c.value){o.value=void 0;return}w.value||t(hr,D.target.value)},p=D=>{var O;if(!w.value)switch(D.code){case e.trigger:D.preventDefault(),D.stopPropagation(),h();break;case Ye.numpadEnter:e.trigger===Ye.enter&&(D.preventDefault(),D.stopPropagation(),h());break;case Ye.backspace:!o.value&&((O=e.modelValue)!=null&&O.length)&&(D.preventDefault(),D.stopPropagation(),v(e.modelValue.length-1));break}},h=()=>{var D,O;const V=(D=o.value)==null?void 0:D.trim();if(!V||c.value)return;const N=[...(O=e.modelValue)!=null?O:[],V];t(_t,N),t($t,N),t("add-tag",V),o.value=void 0},v=D=>{var O;const V=((O=e.modelValue)!=null?O:[]).slice(),[N]=V.splice(D,1);t(_t,V),t($t,V),t("remove-tag",N)},m=()=>{o.value=void 0,t(_t,void 0),t($t,void 0),t("clear")},g=(D,O,V)=>{var N;const K=((N=e.modelValue)!=null?N:[]).slice(),[Y]=K.splice(D,1),q=O>D&&V==="before"?-1:O<D&&V==="after"?1:0;K.splice(O+q,0,Y),t(_t,K),t($t,K)},y=()=>{var D;(D=i.value)==null||D.focus()},T=()=>{var D;(D=i.value)==null||D.blur()},{wrapperRef:b,isFocused:_}=Ws(i,{beforeFocus(){return r.value},afterBlur(){var D;e.saveOnBlur?h():o.value=void 0,e.validateEvent&&((D=n==null?void 0:n.validate)==null||D.call(n,"blur").catch(O=>void 0))}}),{isComposing:w,handleCompositionStart:S,handleCompositionUpdate:A,handleCompositionEnd:I}=dp({afterComposition:d});return Ie(()=>e.modelValue,()=>{var D;e.validateEvent&&((D=n==null?void 0:n.validate)==null||D.call(n,$t).catch(O=>void 0))}),{inputRef:i,wrapperRef:b,isFocused:_,isComposing:w,inputValue:o,size:a,tagSize:s,placeholder:l,closable:u,disabled:r,inputLimit:c,handleDragged:g,handleInput:d,handleKeydown:p,handleAddTag:h,handleRemoveTag:v,handleClear:m,handleCompositionStart:S,handleCompositionUpdate:A,handleCompositionEnd:I,focus:y,blur:T}}function lte(){const e=z(!1);return{hovering:e,handleMouseEnter:()=>{e.value=!0},handleMouseLeave:()=>{e.value=!1}}}function r2(){const e=cn(),t=z(0),n=11,r=k(()=>({minWidth:`${Math.max(t.value,n)}px`}));return In(e,()=>{var i,o;t.value=(o=(i=e.value)==null?void 0:i.getBoundingClientRect().width)!=null?o:0}),{calculatorRef:e,calculatorWidth:t,inputStyle:r}}function ute({wrapperRef:e,handleDragged:t,afterDragged:n}){const r=Le("input-tag"),a=cn(),i=z(!1);let o,s,l,u;function c(v){return`.${r.e("inner")} .${r.namespace.value}-tag:nth-child(${v+1})`}function d(v,m){o=m,s=e.value.querySelector(c(m)),s&&(s.style.opacity="0.5"),v.dataTransfer.effectAllowed="move"}function p(v,m){if(l=m,v.preventDefault(),v.dataTransfer.dropEffect="move",Xt(o)||o===m){i.value=!1;return}const g=e.value.querySelector(c(m)).getBoundingClientRect(),y=o+1!==m,T=o-1!==m,b=v.clientX-g.left,_=y?T?.5:1:-1,w=T?y?.5:0:1;b<=g.width*_?u="before":b>g.width*w?u="after":u=void 0;const S=e.value.querySelector(`.${r.e("inner")}`),A=S.getBoundingClientRect(),I=Number.parseFloat(Mo(S,"gap"))/2,D=g.top-A.top;let O=-9999;if(u==="before")O=Math.max(g.left-A.left-I,Math.floor(-I/2));else if(u==="after"){const V=g.right-A.left;O=V+(A.width===V?Math.floor(I/2):I)}LI(a.value,{top:`${D}px`,left:`${O}px`}),i.value=!!u}function h(v){v.preventDefault(),s&&(s.style.opacity=""),u&&!Xt(o)&&!Xt(l)&&o!==l&&t(o,l,u),i.value=!1,o=void 0,s=null,l=void 0,u=void 0,n==null||n()}return{dropIndicatorRef:a,showDropIndicator:i,handleDragStart:d,handleDragOver:p,handleDragEnd:h}}function cte({props:e,isFocused:t,hovering:n,disabled:r,inputValue:a,size:i,validateState:o,validateIcon:s,needStatusIcon:l}){const u=es(),c=ir(),d=Le("input-tag"),p=Le("input"),h=k(()=>[d.b(),d.is("focused",t.value),d.is("hovering",n.value),d.is("disabled",r.value),d.m(i.value),d.e("wrapper"),u.class]),v=k(()=>[u.style]),m=k(()=>{var T,b;return[d.e("inner"),d.is("draggable",e.draggable),d.is("left-space",!((T=e.modelValue)!=null&&T.length)&&!c.prefix),d.is("right-space",!((b=e.modelValue)!=null&&b.length)&&!y.value)]}),g=k(()=>{var T;return e.clearable&&!r.value&&!e.readonly&&(((T=e.modelValue)==null?void 0:T.length)||a.value)&&(t.value||n.value)}),y=k(()=>c.suffix||g.value||o.value&&s.value&&l.value);return{ns:d,nsInput:p,containerKls:h,containerStyle:v,innerKls:m,showClear:g,showSuffix:y}}const dte=J({name:"ElInputTag",inheritAttrs:!1}),fte=J({...dte,props:ite,emits:ote,setup(e,{expose:t,emit:n}){const r=e,a=cp(),i=ir(),{form:o,formItem:s}=Or(),{inputId:l}=si(r,{formItemContext:s}),u=k(()=>{var ye;return(ye=o==null?void 0:o.statusIcon)!=null?ye:!1}),c=k(()=>(s==null?void 0:s.validateState)||""),d=k(()=>c.value&&$v[c.value]),{inputRef:p,wrapperRef:h,isFocused:v,inputValue:m,size:g,tagSize:y,placeholder:T,closable:b,disabled:_,handleDragged:w,handleInput:S,handleKeydown:A,handleRemoveTag:I,handleClear:D,handleCompositionStart:O,handleCompositionUpdate:V,handleCompositionEnd:N,focus:K,blur:Y}=ste({props:r,emit:n,formItem:s}),{hovering:q,handleMouseEnter:$,handleMouseLeave:j}=lte(),{calculatorRef:W,inputStyle:H}=r2(),{dropIndicatorRef:X,showDropIndicator:re,handleDragStart:le,handleDragOver:ne,handleDragEnd:be}=ute({wrapperRef:h,handleDragged:w,afterDragged:K}),{ns:_e,nsInput:ve,containerKls:te,containerStyle:me,innerKls:pe,showClear:Fe,showSuffix:Pe}=cte({props:r,hovering:q,isFocused:v,inputValue:m,disabled:_,size:g,validateState:c,validateIcon:d,needStatusIcon:u});return t({focus:K,blur:Y}),(ye,Z)=>(x(),U("div",{ref_key:"wrapperRef",ref:h,class:F(f(te)),style:tt(f(me)),onMouseenter:f($),onMouseleave:f(j)},[f(i).prefix?(x(),U("div",{key:0,class:F(f(_e).e("prefix"))},[fe(ye.$slots,"prefix")],2)):oe("v-if",!0),M("div",{class:F(f(pe))},[(x(!0),U(Ge,null,mt(ye.modelValue,(ie,Ce)=>(x(),he(f(ai),{key:Ce,size:f(y),closable:f(b),type:ye.tagType,effect:ye.tagEffect,draggable:f(b)&&ye.draggable,"disable-transitions":"",onClose:$e=>f(I)(Ce),onDragstart:$e=>f(le)($e,Ce),onDragover:$e=>f(ne)($e,Ce),onDragend:f(be),onDrop:ft(()=>{},["stop"])},{default:P(()=>[fe(ye.$slots,"tag",{value:ie,index:Ce},()=>[we(de(ie),1)])]),_:2},1032,["size","closable","type","effect","draggable","onClose","onDragstart","onDragover","onDragend","onDrop"]))),128)),M("div",{class:F(f(_e).e("input-wrapper"))},[gt(M("input",Ft({id:f(l),ref_key:"inputRef",ref:p,"onUpdate:modelValue":ie=>yn(m)?m.value=ie:null},f(a),{type:"text",minlength:ye.minlength,maxlength:ye.maxlength,disabled:f(_),readonly:ye.readonly,autocomplete:ye.autocomplete,tabindex:ye.tabindex,placeholder:f(T),autofocus:ye.autofocus,ariaLabel:ye.ariaLabel,class:f(_e).e("input"),style:f(H),onCompositionstart:f(O),onCompositionupdate:f(V),onCompositionend:f(N),onInput:f(S),onKeydown:f(A)}),null,16,["id","onUpdate:modelValue","minlength","maxlength","disabled","readonly","autocomplete","tabindex","placeholder","autofocus","ariaLabel","onCompositionstart","onCompositionupdate","onCompositionend","onInput","onKeydown"]),[[no,f(m)]]),M("span",{ref_key:"calculatorRef",ref:W,"aria-hidden":"true",class:F(f(_e).e("input-calculator")),textContent:de(f(m))},null,10,["textContent"])],2),gt(M("div",{ref_key:"dropIndicatorRef",ref:X,class:F(f(_e).e("drop-indicator"))},null,2),[[zt,f(re)]])],2),f(Pe)?(x(),U("div",{key:1,class:F(f(_e).e("suffix"))},[fe(ye.$slots,"suffix"),f(Fe)?(x(),he(f(et),{key:0,class:F([f(_e).e("icon"),f(_e).e("clear")]),onMousedown:ft(f(nn),["prevent"]),onClick:f(D)},{default:P(()=>[E(f(rs))]),_:1},8,["class","onMousedown","onClick"])):oe("v-if",!0),f(c)&&f(d)&&f(u)?(x(),he(f(et),{key:1,class:F([f(ve).e("icon"),f(ve).e("validateIcon"),f(ve).is("loading",f(c)==="validating")])},{default:P(()=>[(x(),he(Lt(f(d))))]),_:1},8,["class"])):oe("v-if",!0)],2)):oe("v-if",!0)],46,["onMouseenter","onMouseleave"]))}});var pte=He(fte,[["__file","input-tag.vue"]]);const hte=Et(pte),mte=Ue({type:{type:String,values:["primary","success","warning","info","danger","default"],default:"default"},underline:{type:Boolean,default:!0},disabled:Boolean,href:{type:String,default:""},target:{type:String,default:"_self"},icon:{type:dn}}),vte={click:e=>e instanceof MouseEvent},gte=J({name:"ElLink"}),yte=J({...gte,props:mte,emits:vte,setup(e,{emit:t}){const n=e,r=Le("link"),a=k(()=>[r.b(),r.m(n.type),r.is("disabled",n.disabled),r.is("underline",n.underline&&!n.disabled)]);function i(o){n.disabled||t("click",o)}return(o,s)=>(x(),U("a",{class:F(f(a)),href:o.disabled||!o.href?void 0:o.href,target:o.disabled||!o.href?void 0:o.target,onClick:i},[o.icon?(x(),he(f(et),{key:0},{default:P(()=>[(x(),he(Lt(o.icon)))]),_:1})):oe("v-if",!0),o.$slots.default?(x(),U("span",{key:1,class:F(f(r).e("inner"))},[fe(o.$slots,"default")],2)):oe("v-if",!0),o.$slots.icon?fe(o.$slots,"icon",{key:2}):oe("v-if",!0)],10,["href","target"]))}});var bte=He(yte,[["__file","link.vue"]]);const XO=Et(bte);let _te=class{constructor(t,n){this.parent=t,this.domNode=n,this.subIndex=0,this.subIndex=0,this.init()}init(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()}gotoSubIndex(t){t===this.subMenuItems.length?t=0:t<0&&(t=this.subMenuItems.length-1),this.subMenuItems[t].focus(),this.subIndex=t}addListeners(){const t=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,n=>{n.addEventListener("keydown",r=>{let a=!1;switch(r.code){case Ye.down:{this.gotoSubIndex(this.subIndex+1),a=!0;break}case Ye.up:{this.gotoSubIndex(this.subIndex-1),a=!0;break}case Ye.tab:{Mh(t,"mouseleave");break}case Ye.enter:case Ye.numpadEnter:case Ye.space:{a=!0,r.currentTarget.click();break}}return a&&(r.preventDefault(),r.stopPropagation()),!1})})}},Tte=class{constructor(t,n){this.domNode=t,this.submenu=null,this.submenu=null,this.init(n)}init(t){this.domNode.setAttribute("tabindex","0");const n=this.domNode.querySelector(`.${t}-menu`);n&&(this.submenu=new _te(this,n)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",t=>{let n=!1;switch(t.code){case Ye.down:{Mh(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),n=!0;break}case Ye.up:{Mh(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),n=!0;break}case Ye.tab:{Mh(t.currentTarget,"mouseleave");break}case Ye.enter:case Ye.numpadEnter:case Ye.space:{n=!0,t.currentTarget.click();break}}n&&t.preventDefault()})}},wte=class{constructor(t,n){this.domNode=t,this.init(n)}init(t){const n=this.domNode.childNodes;Array.from(n).forEach(r=>{r.nodeType===1&&new Tte(r,t)})}};const Ste=J({name:"ElMenuCollapseTransition"}),Cte=J({...Ste,setup(e){const t=Le("menu"),n={onBeforeEnter:r=>r.style.opacity="0.2",onEnter(r,a){Ga(r,`${t.namespace.value}-opacity-transition`),r.style.opacity="1",a()},onAfterEnter(r){Ur(r,`${t.namespace.value}-opacity-transition`),r.style.opacity=""},onBeforeLeave(r){r.dataset||(r.dataset={}),ba(r,t.m("collapse"))?(Ur(r,t.m("collapse")),r.dataset.oldOverflow=r.style.overflow,r.dataset.scrollWidth=r.clientWidth.toString(),Ga(r,t.m("collapse"))):(Ga(r,t.m("collapse")),r.dataset.oldOverflow=r.style.overflow,r.dataset.scrollWidth=r.clientWidth.toString(),Ur(r,t.m("collapse"))),r.style.width=`${r.scrollWidth}px`,r.style.overflow="hidden"},onLeave(r){Ga(r,"horizontal-collapse-transition"),r.style.width=`${r.dataset.scrollWidth}px`}};return(r,a)=>(x(),he(lr,Ft({mode:"out-in"},f(n)),{default:P(()=>[fe(r.$slots,"default")]),_:3},16))}});var Ete=He(Cte,[["__file","menu-collapse-transition.vue"]]);function QO(e,t){const n=k(()=>{let a=e.parent;const i=[t.value];for(;a.type.name!=="ElMenu";)a.props.index&&i.unshift(a.props.index),a=a.parent;return i});return{parentMenu:k(()=>{let a=e.parent;for(;a&&!["ElMenu","ElSubMenu"].includes(a.type.name);)a=a.parent;return a}),indexPath:n}}function xte(e){return k(()=>{const n=e.backgroundColor;return n?new xP(n).shade(20).toString():""})}const JO=(e,t)=>{const n=Le("menu");return k(()=>n.cssVarBlock({"text-color":e.textColor||"","hover-text-color":e.textColor||"","bg-color":e.backgroundColor||"","hover-bg-color":xte(e).value||"","active-color":e.activeTextColor||"",level:`${t}`}))},kte=Ue({index:{type:String,required:!0},showTimeout:Number,hideTimeout:Number,popperClass:String,disabled:Boolean,teleported:{type:Boolean,default:void 0},popperOffset:Number,expandCloseIcon:{type:dn},expandOpenIcon:{type:dn},collapseCloseIcon:{type:dn},collapseOpenIcon:{type:dn}}),g0="ElSubMenu";var a2=J({name:g0,props:kte,setup(e,{slots:t,expose:n}){const r=Mt(),{indexPath:a,parentMenu:i}=QO(r,k(()=>e.index)),o=Le("menu"),s=Le("sub-menu"),l=Qe("rootMenu");l||rr(g0,"can not inject root menu");const u=Qe(`subMenu:${i.value.uid}`);u||rr(g0,"can not inject sub menu");const c=z({}),d=z({});let p;const h=z(!1),v=z(),m=z(),g=k(()=>I.value==="horizontal"&&T.value?"bottom-start":"right-start"),y=k(()=>I.value==="horizontal"&&T.value||I.value==="vertical"&&!l.props.collapse?e.expandCloseIcon&&e.expandOpenIcon?S.value?e.expandOpenIcon:e.expandCloseIcon:co:e.collapseCloseIcon&&e.collapseOpenIcon?S.value?e.collapseOpenIcon:e.collapseCloseIcon:sa),T=k(()=>u.level===0),b=k(()=>{const re=e.teleported;return re===void 0?T.value:re}),_=k(()=>l.props.collapse?`${o.namespace.value}-zoom-in-left`:`${o.namespace.value}-zoom-in-top`),w=k(()=>I.value==="horizontal"&&T.value?["bottom-start","bottom-end","top-start","top-end","right-start","left-start"]:["right-start","right","right-end","left-start","bottom-start","bottom-end","top-start","top-end"]),S=k(()=>l.openedMenus.includes(e.index)),A=k(()=>[...Object.values(c.value),...Object.values(d.value)].some(({active:re})=>re)),I=k(()=>l.props.mode),D=k(()=>l.props.persistent),O=Ct({index:e.index,indexPath:a,active:A}),V=JO(l.props,u.level+1),N=k(()=>{var re;return(re=e.popperOffset)!=null?re:l.props.popperOffset}),K=k(()=>{var re;return(re=e.popperClass)!=null?re:l.props.popperClass}),Y=k(()=>{var re;return(re=e.showTimeout)!=null?re:l.props.showTimeout}),q=k(()=>{var re;return(re=e.hideTimeout)!=null?re:l.props.hideTimeout}),$=()=>{var re,le,ne;return(ne=(le=(re=m.value)==null?void 0:re.popperRef)==null?void 0:le.popperInstanceRef)==null?void 0:ne.destroy()},j=re=>{re||$()},W=()=>{l.props.menuTrigger==="hover"&&l.props.mode==="horizontal"||l.props.collapse&&l.props.mode==="vertical"||e.disabled||l.handleSubMenuClick({index:e.index,indexPath:a.value,active:A.value})},H=(re,le=Y.value)=>{var ne;if(re.type!=="focus"){if(l.props.menuTrigger==="click"&&l.props.mode==="horizontal"||!l.props.collapse&&l.props.mode==="vertical"||e.disabled){u.mouseInChild.value=!0;return}u.mouseInChild.value=!0,p==null||p(),{stop:p}=Rl(()=>{l.openMenu(e.index,a.value)},le),b.value&&((ne=i.value.vnode.el)==null||ne.dispatchEvent(new MouseEvent("mouseenter")))}},X=(re=!1)=>{var le;if(l.props.menuTrigger==="click"&&l.props.mode==="horizontal"||!l.props.collapse&&l.props.mode==="vertical"){u.mouseInChild.value=!1;return}p==null||p(),u.mouseInChild.value=!1,{stop:p}=Rl(()=>!h.value&&l.closeMenu(e.index,a.value),q.value),b.value&&re&&((le=u.handleMouseleave)==null||le.call(u,!0))};Ie(()=>l.props.collapse,re=>j(!!re));{const re=ne=>{d.value[ne.index]=ne},le=ne=>{delete d.value[ne.index]};Vt(`subMenu:${r.uid}`,{addSubMenu:re,removeSubMenu:le,handleMouseleave:X,mouseInChild:h,level:u.level+1})}return n({opened:S}),ht(()=>{l.addSubMenu(O),u.addSubMenu(O)}),fn(()=>{u.removeSubMenu(O),l.removeSubMenu(O)}),()=>{var re;const le=[(re=t.title)==null?void 0:re.call(t),lt(et,{class:s.e("icon-arrow"),style:{transform:S.value?e.expandCloseIcon&&e.expandOpenIcon||e.collapseCloseIcon&&e.collapseOpenIcon&&l.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>rt(y.value)?lt(r.appContext.components[y.value]):lt(y.value)})],ne=l.isMenuPopup?lt(ar,{ref:m,visible:S.value,effect:"light",pure:!0,offset:N.value,showArrow:!1,persistent:D.value,popperClass:K.value,placement:g.value,teleported:b.value,fallbackPlacements:w.value,transition:_.value,gpuAcceleration:!1},{content:()=>{var be;return lt("div",{class:[o.m(I.value),o.m("popup-container"),K.value],onMouseenter:_e=>H(_e,100),onMouseleave:()=>X(!0),onFocus:_e=>H(_e,100)},[lt("ul",{class:[o.b(),o.m("popup"),o.m(`popup-${g.value}`)],style:V.value},[(be=t.default)==null?void 0:be.call(t)])])},default:()=>lt("div",{class:s.e("title"),onClick:W},le)}):lt(Ge,{},[lt("div",{class:s.e("title"),ref:v,onClick:W},le),lt(hp,{},{default:()=>{var be;return gt(lt("ul",{role:"menu",class:[o.b(),o.m("inline")],style:V.value},[(be=t.default)==null?void 0:be.call(t)]),[[zt,S.value]])}})]);return lt("li",{class:[s.b(),s.is("active",A.value),s.is("opened",S.value),s.is("disabled",e.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:S.value,onMouseenter:H,onMouseleave:()=>X(),onFocus:H},[ne])}}});const Ate=Ue({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:ue(Array),default:()=>Pn([])},uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,values:["hover","click"],default:"hover"},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String,closeOnClickOutside:Boolean,collapseTransition:{type:Boolean,default:!0},ellipsis:{type:Boolean,default:!0},popperOffset:{type:Number,default:6},ellipsisIcon:{type:dn,default:()=>Vz},popperEffect:{type:ue(String),default:"dark"},popperClass:String,showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300},persistent:{type:Boolean,default:!0}}),y0=e=>Be(e)&&e.every(t=>rt(t)),Dte={close:(e,t)=>rt(e)&&y0(t),open:(e,t)=>rt(e)&&y0(t),select:(e,t,n,r)=>rt(e)&&y0(t)&&It(n)&&(r===void 0||r instanceof Promise)};var Ite=J({name:"ElMenu",props:Ate,emits:Dte,setup(e,{emit:t,slots:n,expose:r}){const a=Mt(),i=a.appContext.config.globalProperties.$router,o=z(),s=Le("menu"),l=Le("sub-menu"),u=z(-1),c=z(e.defaultOpeneds&&!e.collapse?e.defaultOpeneds.slice(0):[]),d=z(e.defaultActive),p=z({}),h=z({}),v=k(()=>e.mode==="horizontal"||e.mode==="vertical"&&e.collapse),m=()=>{const q=d.value&&p.value[d.value];if(!q||e.mode==="horizontal"||e.collapse)return;q.indexPath.forEach(j=>{const W=h.value[j];W&&g(j,W.indexPath)})},g=(q,$)=>{c.value.includes(q)||(e.uniqueOpened&&(c.value=c.value.filter(j=>$.includes(j))),c.value.push(q),t("open",q,$))},y=q=>{const $=c.value.indexOf(q);$!==-1&&c.value.splice($,1)},T=(q,$)=>{y(q),t("close",q,$)},b=({index:q,indexPath:$})=>{c.value.includes(q)?T(q,$):g(q,$)},_=q=>{(e.mode==="horizontal"||e.collapse)&&(c.value=[]);const{index:$,indexPath:j}=q;if(!(sr($)||sr(j)))if(e.router&&i){const W=q.route||$,H=i.push(W).then(X=>(X||(d.value=$),X));t("select",$,j,{index:$,indexPath:j,route:W},H)}else d.value=$,t("select",$,j,{index:$,indexPath:j})},w=q=>{var $;const j=p.value,W=j[q]||d.value&&j[d.value]||j[e.defaultActive];d.value=($=W==null?void 0:W.index)!=null?$:q},S=q=>{const $=getComputedStyle(q),j=Number.parseInt($.marginLeft,10),W=Number.parseInt($.marginRight,10);return q.offsetWidth+j+W||0},A=()=>{var q,$;if(!o.value)return-1;const j=Array.from(($=(q=o.value)==null?void 0:q.childNodes)!=null?$:[]).filter(_e=>_e.nodeName!=="#text"||_e.nodeValue),W=64,H=getComputedStyle(o.value),X=Number.parseInt(H.paddingLeft,10),re=Number.parseInt(H.paddingRight,10),le=o.value.clientWidth-X-re;let ne=0,be=0;return j.forEach((_e,ve)=>{_e.nodeName!=="#comment"&&(ne+=S(_e),ne<=le-W&&(be=ve+1))}),be===j.length?-1:be},I=q=>h.value[q].indexPath,D=(q,$=33.34)=>{let j;return()=>{j&&clearTimeout(j),j=setTimeout(()=>{q()},$)}};let O=!0;const V=()=>{if(u.value===A())return;const q=()=>{u.value=-1,it(()=>{u.value=A()})};O?q():D(q)(),O=!1};Ie(()=>e.defaultActive,q=>{p.value[q]||(d.value=""),w(q)}),Ie(()=>e.collapse,q=>{q&&(c.value=[])}),Ie(p.value,m);let N;_r(()=>{e.mode==="horizontal"&&e.ellipsis?N=In(o,V).stop:N==null||N()});const K=z(!1);{const q=H=>{h.value[H.index]=H},$=H=>{delete h.value[H.index]};Vt("rootMenu",Ct({props:e,openedMenus:c,items:p,subMenus:h,activeIndex:d,isMenuPopup:v,addMenuItem:H=>{p.value[H.index]=H},removeMenuItem:H=>{delete p.value[H.index]},addSubMenu:q,removeSubMenu:$,openMenu:g,closeMenu:T,handleMenuItemClick:_,handleSubMenuClick:b})),Vt(`subMenu:${a.uid}`,{addSubMenu:q,removeSubMenu:$,mouseInChild:K,level:0})}ht(()=>{e.mode==="horizontal"&&new wte(a.vnode.el,s.namespace.value)}),r({open:$=>{const{indexPath:j}=h.value[$];j.forEach(W=>g(W,j))},close:y,handleResize:V});const Y=JO(e,0);return()=>{var q,$;let j=($=(q=n.default)==null?void 0:q.call(n))!=null?$:[];const W=[];if(e.mode==="horizontal"&&o.value){const re=Fo(j),le=u.value===-1?re:re.slice(0,u.value),ne=u.value===-1?[]:re.slice(u.value);ne!=null&&ne.length&&e.ellipsis&&(j=le,W.push(lt(a2,{index:"sub-menu-more",class:l.e("hide-arrow"),popperOffset:e.popperOffset},{title:()=>lt(et,{class:l.e("icon-more")},{default:()=>lt(e.ellipsisIcon)}),default:()=>ne})))}const H=e.closeOnClickOutside?[[Wo,()=>{c.value.length&&(K.value||(c.value.forEach(re=>t("close",re,I(re))),c.value=[]))}]]:[],X=gt(lt("ul",{key:String(e.collapse),role:"menubar",ref:o,style:Y.value,class:{[s.b()]:!0,[s.m(e.mode)]:!0,[s.m("collapse")]:e.collapse}},[...j,...W]),H);return e.collapseTransition&&e.mode==="vertical"?lt(Ete,()=>X):X}}});const Pte=Ue({index:{type:ue([String,null]),default:null},route:{type:ue([String,Object])},disabled:Boolean}),Ote={click:e=>rt(e.index)&&Be(e.indexPath)},Qy="ElMenuItem",Mte=J({name:Qy}),Rte=J({...Mte,props:Pte,emits:Ote,setup(e,{expose:t,emit:n}){const r=e,a=Mt(),i=Qe("rootMenu"),o=Le("menu"),s=Le("menu-item");i||rr(Qy,"can not inject root menu");const{parentMenu:l,indexPath:u}=QO(a,rn(r,"index")),c=Qe(`subMenu:${l.value.uid}`);c||rr(Qy,"can not inject sub menu");const d=k(()=>r.index===i.activeIndex),p=Ct({index:r.index,indexPath:u,active:d}),h=()=>{r.disabled||(i.handleMenuItemClick({index:r.index,indexPath:u.value,route:r.route}),n("click",p))};return ht(()=>{c.addSubMenu(p),i.addMenuItem(p)}),fn(()=>{c.removeSubMenu(p),i.removeMenuItem(p)}),t({parentMenu:l,rootMenu:i,active:d,nsMenu:o,nsMenuItem:s,handleClick:h}),(v,m)=>(x(),U("li",{class:F([f(s).b(),f(s).is("active",f(d)),f(s).is("disabled",v.disabled)]),role:"menuitem",tabindex:"-1",onClick:h},[f(l).type.name==="ElMenu"&&f(i).props.collapse&&v.$slots.title?(x(),he(f(ar),{key:0,effect:f(i).props.popperEffect,placement:"right","fallback-placements":["left"],persistent:f(i).props.persistent},{content:P(()=>[fe(v.$slots,"title")]),default:P(()=>[M("div",{class:F(f(o).be("tooltip","trigger"))},[fe(v.$slots,"default")],2)]),_:3},8,["effect","persistent"])):(x(),U(Ge,{key:1},[fe(v.$slots,"default"),fe(v.$slots,"title")],64))],2))}});var ZO=He(Rte,[["__file","menu-item.vue"]]);const Lte={title:String},Nte=J({name:"ElMenuItemGroup"}),Fte=J({...Nte,props:Lte,setup(e){const t=Le("menu-item-group");return(n,r)=>(x(),U("li",{class:F(f(t).b())},[M("div",{class:F(f(t).e("title"))},[n.$slots.title?fe(n.$slots,"title",{key:1}):(x(),U(Ge,{key:0},[we(de(n.title),1)],64))],2),M("ul",null,[fe(n.$slots,"default")])],2))}});var e3=He(Fte,[["__file","menu-item-group.vue"]]);const t3=Et(Ite,{MenuItem:ZO,MenuItemGroup:e3,SubMenu:a2}),n3=On(ZO),$te=On(e3),r3=On(a2),Bte=Ue({icon:{type:dn,default:()=>j7},title:String,content:{type:String,default:""}}),Vte={back:()=>!0},Ute=J({name:"ElPageHeader"}),Hte=J({...Ute,props:Bte,emits:Vte,setup(e,{emit:t}){const{t:n}=Kt(),r=Le("page-header");function a(){t("back")}return(i,o)=>(x(),U("div",{class:F([f(r).b(),{[f(r).m("has-breadcrumb")]:!!i.$slots.breadcrumb,[f(r).m("has-extra")]:!!i.$slots.extra,[f(r).is("contentful")]:!!i.$slots.default}])},[i.$slots.breadcrumb?(x(),U("div",{key:0,class:F(f(r).e("breadcrumb"))},[fe(i.$slots,"breadcrumb")],2)):oe("v-if",!0),M("div",{class:F(f(r).e("header"))},[M("div",{class:F(f(r).e("left"))},[M("div",{class:F(f(r).e("back")),role:"button",tabindex:"0",onClick:a},[i.icon||i.$slots.icon?(x(),U("div",{key:0,"aria-label":i.title||f(n)("el.pageHeader.title"),class:F(f(r).e("icon"))},[fe(i.$slots,"icon",{},()=>[i.icon?(x(),he(f(et),{key:0},{default:P(()=>[(x(),he(Lt(i.icon)))]),_:1})):oe("v-if",!0)])],10,["aria-label"])):oe("v-if",!0),M("div",{class:F(f(r).e("title"))},[fe(i.$slots,"title",{},()=>[we(de(i.title||f(n)("el.pageHeader.title")),1)])],2)],2),E(f(NO),{direction:"vertical"}),M("div",{class:F(f(r).e("content"))},[fe(i.$slots,"content",{},()=>[we(de(i.content),1)])],2)],2),i.$slots.extra?(x(),U("div",{key:0,class:F(f(r).e("extra"))},[fe(i.$slots,"extra")],2)):oe("v-if",!0)],2),i.$slots.default?(x(),U("div",{key:1,class:F(f(r).e("main"))},[fe(i.$slots,"default")],2)):oe("v-if",!0)],2))}});var zte=He(Hte,[["__file","page-header.vue"]]);const jte=Et(zte),a3=Symbol("elPaginationKey"),Wte=Ue({disabled:Boolean,currentPage:{type:Number,default:1},prevText:{type:String},prevIcon:{type:dn}}),Kte={click:e=>e instanceof MouseEvent},qte=J({name:"ElPaginationPrev"}),Gte=J({...qte,props:Wte,emits:Kte,setup(e){const t=e,{t:n}=Kt(),r=k(()=>t.disabled||t.currentPage<=1);return(a,i)=>(x(),U("button",{type:"button",class:"btn-prev",disabled:f(r),"aria-label":a.prevText||f(n)("el.pagination.prev"),"aria-disabled":f(r),onClick:o=>a.$emit("click",o)},[a.prevText?(x(),U("span",{key:0},de(a.prevText),1)):(x(),he(f(et),{key:1},{default:P(()=>[(x(),he(Lt(a.prevIcon)))]),_:1}))],8,["disabled","aria-label","aria-disabled","onClick"]))}});var Yte=He(Gte,[["__file","prev.vue"]]);const Xte=Ue({disabled:Boolean,currentPage:{type:Number,default:1},pageCount:{type:Number,default:50},nextText:{type:String},nextIcon:{type:dn}}),Qte=J({name:"ElPaginationNext"}),Jte=J({...Qte,props:Xte,emits:["click"],setup(e){const t=e,{t:n}=Kt(),r=k(()=>t.disabled||t.currentPage===t.pageCount||t.pageCount===0);return(a,i)=>(x(),U("button",{type:"button",class:"btn-next",disabled:f(r),"aria-label":a.nextText||f(n)("el.pagination.next"),"aria-disabled":f(r),onClick:o=>a.$emit("click",o)},[a.nextText?(x(),U("span",{key:0},de(a.nextText),1)):(x(),he(f(et),{key:1},{default:P(()=>[(x(),he(Lt(a.nextIcon)))]),_:1}))],8,["disabled","aria-label","aria-disabled","onClick"]))}});var Zte=He(Jte,[["__file","next.vue"]]);const i3=Symbol("ElSelectGroup"),Bc=Symbol("ElSelect");function ene(e,t){const n=Qe(Bc),r=Qe(i3,{disabled:!1}),a=k(()=>c($r(n.props.modelValue),e.value)),i=k(()=>{var h;if(n.props.multiple){const v=$r((h=n.props.modelValue)!=null?h:[]);return!a.value&&v.length>=n.props.multipleLimit&&n.props.multipleLimit>0}else return!1}),o=k(()=>e.label||(It(e.value)?"":e.value)),s=k(()=>e.value||e.label||""),l=k(()=>e.disabled||t.groupDisabled||i.value),u=Mt(),c=(h=[],v)=>{if(It(e.value)){const m=n.props.valueKey;return h&&h.some(g=>un(jn(g,m))===jn(v,m))}else return h&&h.includes(v)},d=()=>{!e.disabled&&!r.disabled&&(n.states.hoveringIndex=n.optionsArray.indexOf(u.proxy))},p=h=>{const v=new RegExp(N1(h),"i");t.visible=v.test(o.value)||e.created};return Ie(()=>o.value,()=>{!e.created&&!n.props.remote&&n.setSelected()}),Ie(()=>e.value,(h,v)=>{const{remote:m,valueKey:g}=n.props;if((m?h!==v:!pr(h,v))&&(n.onOptionDestroy(v,u.proxy),n.onOptionCreate(u.proxy)),!e.created&&!m){if(g&&It(h)&&It(v)&&h[g]===v[g])return;n.setSelected()}}),Ie(()=>r.disabled,()=>{t.groupDisabled=r.disabled},{immediate:!0}),{select:n,currentLabel:o,currentValue:s,itemSelected:a,isDisabled:l,hoverItem:d,updateOption:p}}const tne=J({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:Boolean},setup(e){const t=Le("select"),n=wr(),r=k(()=>[t.be("dropdown","item"),t.is("disabled",f(s)),t.is("selected",f(o)),t.is("hovering",f(p))]),a=Ct({index:-1,groupDisabled:!1,visible:!0,hover:!1}),{currentLabel:i,itemSelected:o,isDisabled:s,select:l,hoverItem:u,updateOption:c}=ene(e,a),{visible:d,hover:p}=mr(a),h=Mt().proxy;l.onOptionCreate(h),fn(()=>{const m=h.value,{selected:g}=l.states,y=g.some(T=>T.value===h.value);it(()=>{l.states.cachedOptions.get(m)===h&&!y&&l.states.cachedOptions.delete(m)}),l.onOptionDestroy(m,h)});function v(){s.value||l.handleOptionSelect(h)}return{ns:t,id:n,containerKls:r,currentLabel:i,itemSelected:o,isDisabled:s,select:l,hoverItem:u,updateOption:c,visible:d,hover:p,selectOptionClick:v,states:a}}});function nne(e,t,n,r,a,i){return gt((x(),U("li",{id:e.id,class:F(e.containerKls),role:"option","aria-disabled":e.isDisabled||void 0,"aria-selected":e.itemSelected,onMousemove:e.hoverItem,onClick:ft(e.selectOptionClick,["stop"])},[fe(e.$slots,"default",{},()=>[M("span",null,de(e.currentLabel),1)])],42,["id","aria-disabled","aria-selected","onMousemove","onClick"])),[[zt,e.visible]])}var i2=He(tne,[["render",nne],["__file","option.vue"]]);const rne=J({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=Qe(Bc),t=Le("select"),n=k(()=>e.props.popperClass),r=k(()=>e.props.multiple),a=k(()=>e.props.fitInputWidth),i=z("");function o(){var s;i.value=`${(s=e.selectRef)==null?void 0:s.offsetWidth}px`}return ht(()=>{o(),In(e.selectRef,o)}),{ns:t,minWidth:i,popperClass:n,isMultiple:r,isFitInputWidth:a}}});function ane(e,t,n,r,a,i){return x(),U("div",{class:F([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:tt({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[e.$slots.header?(x(),U("div",{key:0,class:F(e.ns.be("dropdown","header"))},[fe(e.$slots,"header")],2)):oe("v-if",!0),fe(e.$slots,"default"),e.$slots.footer?(x(),U("div",{key:1,class:F(e.ns.be("dropdown","footer"))},[fe(e.$slots,"footer")],2)):oe("v-if",!0)],6)}var ine=He(rne,[["render",ane],["__file","select-dropdown.vue"]]);const one=(e,t)=>{const{t:n}=Kt(),r=wr(),a=Le("select"),i=Le("input"),o=Ct({inputValue:"",options:new Map,cachedOptions:new Map,optionValues:[],selected:[],selectionWidth:0,collapseItemWidth:0,selectedLabel:"",hoveringIndex:-1,previousQuery:null,inputHovering:!1,menuVisibleOnFocus:!1,isBeforeHide:!1}),s=z(null),l=z(null),u=z(null),c=z(null),d=z(null),p=z(null),h=z(null),v=z(null),m=z(null),g=z(null),y=z(null),{isComposing:T,handleCompositionStart:b,handleCompositionUpdate:_,handleCompositionEnd:w}=dp({afterComposition:Ke=>Pt(Ke)}),{wrapperRef:S,isFocused:A,handleBlur:I}=Ws(d,{beforeFocus(){return $.value},afterFocus(){e.automaticDropdown&&!D.value&&(D.value=!0,o.menuVisibleOnFocus=!0)},beforeBlur(Ke){var yt,Zt;return((yt=u.value)==null?void 0:yt.isFocusInsideContent(Ke))||((Zt=c.value)==null?void 0:Zt.isFocusInsideContent(Ke))},afterBlur(){D.value=!1,o.menuVisibleOnFocus=!1}}),D=z(!1),O=z(),{form:V,formItem:N}=Or(),{inputId:K}=si(e,{formItemContext:N}),{valueOnClear:Y,isEmptyValue:q}=Mv(e),$=k(()=>e.disabled||(V==null?void 0:V.disabled)),j=k(()=>Be(e.modelValue)?e.modelValue.length>0:!q(e.modelValue)),W=k(()=>{var Ke;return(Ke=V==null?void 0:V.statusIcon)!=null?Ke:!1}),H=k(()=>e.clearable&&!$.value&&o.inputHovering&&j.value),X=k(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),re=k(()=>a.is("reverse",X.value&&D.value)),le=k(()=>(N==null?void 0:N.validateState)||""),ne=k(()=>$v[le.value]),be=k(()=>e.remote?300:0),_e=k(()=>e.remote&&!o.inputValue&&o.options.size===0),ve=k(()=>e.loading?e.loadingText||n("el.select.loading"):e.filterable&&o.inputValue&&o.options.size>0&&te.value===0?e.noMatchText||n("el.select.noMatch"):o.options.size===0?e.noDataText||n("el.select.noData"):null),te=k(()=>me.value.filter(Ke=>Ke.visible).length),me=k(()=>{const Ke=Array.from(o.options.values()),yt=[];return o.optionValues.forEach(Zt=>{const xn=Ke.findIndex(an=>an.value===Zt);xn>-1&&yt.push(Ke[xn])}),yt.length>=Ke.length?yt:Ke}),pe=k(()=>Array.from(o.cachedOptions.values())),Fe=k(()=>{const Ke=me.value.filter(yt=>!yt.created).some(yt=>yt.currentLabel===o.inputValue);return e.filterable&&e.allowCreate&&o.inputValue!==""&&!Ke}),Pe=()=>{e.filterable&&ot(e.filterMethod)||e.filterable&&e.remote&&ot(e.remoteMethod)||me.value.forEach(Ke=>{var yt;(yt=Ke.updateOption)==null||yt.call(Ke,o.inputValue)})},ye=Kn(),Z=k(()=>["small"].includes(ye.value)?"small":"default"),ie=k({get(){return D.value&&!_e.value},set(Ke){D.value=Ke}}),Ce=k(()=>{if(e.multiple&&!Xt(e.modelValue))return $r(e.modelValue).length===0&&!o.inputValue;const Ke=Be(e.modelValue)?e.modelValue[0]:e.modelValue;return e.filterable||Xt(Ke)?!o.inputValue:!0}),$e=k(()=>{var Ke;const yt=(Ke=e.placeholder)!=null?Ke:n("el.select.placeholder");return e.multiple||!j.value?yt:o.selectedLabel}),Se=k(()=>bm?null:"mouseenter");Ie(()=>e.modelValue,(Ke,yt)=>{e.multiple&&e.filterable&&!e.reserveKeyword&&(o.inputValue="",De("")),Ve(),!pr(Ke,yt)&&e.validateEvent&&(N==null||N.validate("change").catch(Zt=>void 0))},{flush:"post",deep:!0}),Ie(()=>D.value,Ke=>{Ke?De(o.inputValue):(o.inputValue="",o.previousQuery=null,o.isBeforeHide=!0),t("visible-change",Ke)}),Ie(()=>o.options.entries(),()=>{Wt&&(Ve(),e.defaultFirstOption&&(e.filterable||e.remote)&&te.value&&xe())},{flush:"post"}),Ie([()=>o.hoveringIndex,me],([Ke])=>{st(Ke)&&Ke>-1?O.value=me.value[Ke]||{}:O.value={},me.value.forEach(yt=>{yt.hover=O.value===yt})}),_r(()=>{o.isBeforeHide||Pe()});const De=Ke=>{o.previousQuery===Ke||T.value||(o.previousQuery=Ke,e.filterable&&ot(e.filterMethod)?e.filterMethod(Ke):e.filterable&&e.remote&&ot(e.remoteMethod)&&e.remoteMethod(Ke),e.defaultFirstOption&&(e.filterable||e.remote)&&te.value?it(xe):it(je))},xe=()=>{const Ke=me.value.filter(an=>an.visible&&!an.disabled&&!an.states.groupDisabled),yt=Ke.find(an=>an.created),Zt=Ke[0],xn=me.value.map(an=>an.value);o.hoveringIndex=ae(xn,yt||Zt)},Ve=()=>{if(e.multiple)o.selectedLabel="";else{const yt=Be(e.modelValue)?e.modelValue[0]:e.modelValue,Zt=ze(yt);o.selectedLabel=Zt.currentLabel,o.selected=[Zt];return}const Ke=[];Xt(e.modelValue)||$r(e.modelValue).forEach(yt=>{Ke.push(ze(yt))}),o.selected=Ke},ze=Ke=>{let yt;const Zt=of(Ke);for(let Aa=o.cachedOptions.size-1;Aa>=0;Aa--){const Dn=pe.value[Aa];if(Zt?jn(Dn.value,e.valueKey)===jn(Ke,e.valueKey):Dn.value===Ke){yt={value:Ke,currentLabel:Dn.currentLabel,get isDisabled(){return Dn.isDisabled}};break}}if(yt)return yt;const xn=Zt?Ke.label:Ke??"";return{value:Ke,currentLabel:xn}},je=()=>{o.hoveringIndex=me.value.findIndex(Ke=>o.selected.some(yt=>xa(yt)===xa(Ke)))},nt=()=>{o.selectionWidth=l.value.getBoundingClientRect().width},Ae=()=>{o.collapseItemWidth=g.value.getBoundingClientRect().width},Xe=()=>{var Ke,yt;(yt=(Ke=u.value)==null?void 0:Ke.updatePopper)==null||yt.call(Ke)},ct=()=>{var Ke,yt;(yt=(Ke=c.value)==null?void 0:Ke.updatePopper)==null||yt.call(Ke)},Dt=()=>{o.inputValue.length>0&&!D.value&&(D.value=!0),De(o.inputValue)},Pt=Ke=>{if(o.inputValue=Ke.target.value,e.remote)Bt();else return Dt()},Bt=wa(()=>{Dt()},be.value),Ut=Ke=>{pr(e.modelValue,Ke)||t($t,Ke)},Nt=Ke=>gI(Ke,yt=>{const Zt=o.cachedOptions.get(yt);return Zt&&!Zt.disabled&&!Zt.states.groupDisabled}),dt=Ke=>{if(e.multiple&&Ke.code!==Ye.delete&&Ke.target.value.length<=0){const yt=$r(e.modelValue).slice(),Zt=Nt(yt);if(Zt<0)return;const xn=yt[Zt];yt.splice(Zt,1),t(_t,yt),Ut(yt),t("remove-tag",xn)}},Oe=(Ke,yt)=>{const Zt=o.selected.indexOf(yt);if(Zt>-1&&!$.value){const xn=$r(e.modelValue).slice();xn.splice(Zt,1),t(_t,xn),Ut(xn),t("remove-tag",yt.value)}Ke.stopPropagation(),bn()},ce=Ke=>{Ke.stopPropagation();const yt=e.multiple?[]:Y.value;if(e.multiple)for(const Zt of o.selected)Zt.isDisabled&&yt.push(Zt.value);t(_t,yt),Ut(yt),o.hoveringIndex=-1,D.value=!1,t("clear"),bn()},Me=Ke=>{var yt;if(e.multiple){const Zt=$r((yt=e.modelValue)!=null?yt:[]).slice(),xn=ae(Zt,Ke);xn>-1?Zt.splice(xn,1):(e.multipleLimit<=0||Zt.length<e.multipleLimit)&&Zt.push(Ke.value),t(_t,Zt),Ut(Zt),Ke.created&&De(""),e.filterable&&!e.reserveKeyword&&(o.inputValue="")}else t(_t,Ke.value),Ut(Ke.value),D.value=!1;bn(),!D.value&&it(()=>{We(Ke)})},ae=(Ke=[],yt)=>Xt(yt)?-1:It(yt.value)?Ke.findIndex(Zt=>pr(jn(Zt,e.valueKey),xa(yt))):Ke.indexOf(yt.value),We=Ke=>{var yt,Zt,xn,an,Aa;const Dn=Be(Ke)?Ke[0]:Ke;let Ni=null;if(Dn!=null&&Dn.value){const yo=me.value.filter(ds=>ds.value===Dn.value);yo.length>0&&(Ni=yo[0].$el)}if(u.value&&Ni){const yo=(an=(xn=(Zt=(yt=u.value)==null?void 0:yt.popperRef)==null?void 0:Zt.contentRef)==null?void 0:xn.querySelector)==null?void 0:an.call(xn,`.${a.be("dropdown","wrap")}`);yo&&o1(yo,Ni)}(Aa=y.value)==null||Aa.handleScroll()},St=Ke=>{o.options.set(Ke.value,Ke),o.cachedOptions.set(Ke.value,Ke)},kt=(Ke,yt)=>{o.options.get(Ke)===yt&&o.options.delete(Ke)},mn=k(()=>{var Ke,yt;return(yt=(Ke=u.value)==null?void 0:Ke.popperRef)==null?void 0:yt.contentRef}),fa=()=>{o.isBeforeHide=!1,it(()=>{var Ke;(Ke=y.value)==null||Ke.update(),We(o.selected)})},bn=()=>{var Ke;(Ke=d.value)==null||Ke.focus()},qn=()=>{var Ke;if(D.value){D.value=!1,it(()=>{var yt;return(yt=d.value)==null?void 0:yt.blur()});return}(Ke=d.value)==null||Ke.blur()},Tn=Ke=>{ce(Ke)},vn=Ke=>{if(D.value=!1,A.value){const yt=new FocusEvent("focus",Ke);it(()=>I(yt))}},kr=()=>{o.inputValue.length>0?o.inputValue="":D.value=!1},Jl=()=>{$.value||(bm&&(o.inputHovering=!0),o.menuVisibleOnFocus?o.menuVisibleOnFocus=!1:D.value=!D.value)},Gs=()=>{if(!D.value)Jl();else{const Ke=me.value[o.hoveringIndex];Ke&&!Ke.isDisabled&&Me(Ke)}},xa=Ke=>It(Ke.value)?jn(Ke.value,e.valueKey):Ke.value,gr=k(()=>me.value.filter(Ke=>Ke.visible).every(Ke=>Ke.isDisabled)),ed=k(()=>e.multiple?e.collapseTags?o.selected.slice(0,e.maxCollapseTags):o.selected:[]),us=k(()=>e.multiple?e.collapseTags?o.selected.slice(e.maxCollapseTags):[]:[]),go=Ke=>{if(!D.value){D.value=!0;return}if(!(o.options.size===0||te.value===0||T.value)&&!gr.value){Ke==="next"?(o.hoveringIndex++,o.hoveringIndex===o.options.size&&(o.hoveringIndex=0)):Ke==="prev"&&(o.hoveringIndex--,o.hoveringIndex<0&&(o.hoveringIndex=o.options.size-1));const yt=me.value[o.hoveringIndex];(yt.isDisabled||!yt.visible)&&go(Ke),it(()=>We(O.value))}},ka=()=>{if(!l.value)return 0;const Ke=window.getComputedStyle(l.value);return Number.parseFloat(Ke.gap||"6px")},cs=k(()=>{const Ke=ka();return{maxWidth:`${g.value&&e.maxCollapseTags===1?o.selectionWidth-o.collapseItemWidth-Ke:o.selectionWidth}px`}}),Sn=k(()=>({maxWidth:`${o.selectionWidth}px`})),td=Ke=>{t("popup-scroll",Ke)};return In(l,nt),In(v,Xe),In(S,Xe),In(m,ct),In(g,Ae),ht(()=>{Ve()}),{inputId:K,contentId:r,nsSelect:a,nsInput:i,states:o,isFocused:A,expanded:D,optionsArray:me,hoverOption:O,selectSize:ye,filteredOptionsCount:te,updateTooltip:Xe,updateTagTooltip:ct,debouncedOnInputChange:Bt,onInput:Pt,deletePrevTag:dt,deleteTag:Oe,deleteSelected:ce,handleOptionSelect:Me,scrollToOption:We,hasModelValue:j,shouldShowPlaceholder:Ce,currentPlaceholder:$e,mouseEnterEventName:Se,needStatusIcon:W,showClose:H,iconComponent:X,iconReverse:re,validateState:le,validateIcon:ne,showNewOption:Fe,updateOptions:Pe,collapseTagSize:Z,setSelected:Ve,selectDisabled:$,emptyText:ve,handleCompositionStart:b,handleCompositionUpdate:_,handleCompositionEnd:w,onOptionCreate:St,onOptionDestroy:kt,handleMenuEnter:fa,focus:bn,blur:qn,handleClearClick:Tn,handleClickOutside:vn,handleEsc:kr,toggleMenu:Jl,selectOption:Gs,getValueKey:xa,navigateOptions:go,dropdownMenuVisible:ie,showTagList:ed,collapseTagList:us,popupScroll:td,tagStyle:cs,collapseTagStyle:Sn,popperRef:mn,inputRef:d,tooltipRef:u,tagTooltipRef:c,prefixRef:p,suffixRef:h,selectRef:s,wrapperRef:S,selectionRef:l,scrollbarRef:y,menuRef:v,tagMenuRef:m,collapseItemRef:g}};var sne=J({name:"ElOptions",setup(e,{slots:t}){const n=Qe(Bc);let r=[];return()=>{var a,i;const o=(a=t.default)==null?void 0:a.call(t),s=[];function l(u){Be(u)&&u.forEach(c=>{var d,p,h,v;const m=(d=(c==null?void 0:c.type)||{})==null?void 0:d.name;m==="ElOptionGroup"?l(!rt(c.children)&&!Be(c.children)&&ot((p=c.children)==null?void 0:p.default)?(h=c.children)==null?void 0:h.default():c.children):m==="ElOption"?s.push((v=c.props)==null?void 0:v.value):Be(c.children)&&l(c.children)})}return o.length&&l((i=o[0])==null?void 0:i.children),pr(s,r)||(r=s,n&&(n.states.optionValues=s)),o}}});const lne=Ue({name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:Xn,effect:{type:ue(String),default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:ue(Object),default:()=>({})},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},teleported:dr.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:dn,default:rs},fitInputWidth:Boolean,suffixIcon:{type:dn,default:co},tagType:{...jo.type,default:"info"},tagEffect:{...jo.effect,default:"light"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,showArrow:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:ue(String),values:as,default:"bottom-start"},fallbackPlacements:{type:ue(Array),default:["bottom-start","top-start","right","left"]},tabindex:{type:[String,Number],default:0},appendTo:String,...Mc,...Er(["ariaLabel"])}),fE="ElSelect",une=J({name:fE,componentName:fE,components:{ElSelectMenu:ine,ElOption:i2,ElOptions:sne,ElTag:ai,ElScrollbar:fo,ElTooltip:ar,ElIcon:et},directives:{ClickOutside:Wo},props:lne,emits:[_t,$t,"remove-tag","clear","visible-change","focus","blur","popup-scroll"],setup(e,{emit:t}){const n=k(()=>{const{modelValue:l,multiple:u}=e,c=u?[]:void 0;return Be(l)?u?l:c:u?c:l}),r=Ct({...mr(e),modelValue:n}),a=one(r,t),{calculatorRef:i,inputStyle:o}=r2();Vt(Bc,Ct({props:r,states:a.states,optionsArray:a.optionsArray,handleOptionSelect:a.handleOptionSelect,onOptionCreate:a.onOptionCreate,onOptionDestroy:a.onOptionDestroy,selectRef:a.selectRef,setSelected:a.setSelected}));const s=k(()=>e.multiple?a.states.selected.map(l=>l.currentLabel):a.states.selectedLabel);return{...a,modelValue:n,selectedLabel:s,calculatorRef:i,inputStyle:o}}});function cne(e,t,n,r,a,i){const o=Rt("el-tag"),s=Rt("el-tooltip"),l=Rt("el-icon"),u=Rt("el-option"),c=Rt("el-options"),d=Rt("el-scrollbar"),p=Rt("el-select-menu"),h=Tv("click-outside");return gt((x(),U("div",{ref:"selectRef",class:F([e.nsSelect.b(),e.nsSelect.m(e.selectSize)]),[Nd(e.mouseEnterEventName)]:v=>e.states.inputHovering=!0,onMouseleave:v=>e.states.inputHovering=!1},[E(s,{ref:"tooltipRef",visible:e.dropdownMenuVisible,placement:e.placement,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-options":e.popperOptions,"fallback-placements":e.fallbackPlacements,effect:e.effect,pure:"",trigger:"click",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:e.persistent,"append-to":e.appendTo,"show-arrow":e.showArrow,offset:e.offset,onBeforeShow:e.handleMenuEnter,onHide:v=>e.states.isBeforeHide=!1},{default:P(()=>{var v;return[M("div",{ref:"wrapperRef",class:F([e.nsSelect.e("wrapper"),e.nsSelect.is("focused",e.isFocused),e.nsSelect.is("hovering",e.states.inputHovering),e.nsSelect.is("filterable",e.filterable),e.nsSelect.is("disabled",e.selectDisabled)]),onClick:ft(e.toggleMenu,["prevent"])},[e.$slots.prefix?(x(),U("div",{key:0,ref:"prefixRef",class:F(e.nsSelect.e("prefix"))},[fe(e.$slots,"prefix")],2)):oe("v-if",!0),M("div",{ref:"selectionRef",class:F([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.states.selected.length)])},[e.multiple?fe(e.$slots,"tag",{key:0},()=>[(x(!0),U(Ge,null,mt(e.showTagList,m=>(x(),U("div",{key:e.getValueKey(m),class:F(e.nsSelect.e("selected-item"))},[E(o,{closable:!e.selectDisabled&&!m.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:tt(e.tagStyle),onClose:g=>e.deleteTag(g,m)},{default:P(()=>[M("span",{class:F(e.nsSelect.e("tags-text"))},[fe(e.$slots,"label",{label:m.currentLabel,value:m.value},()=>[we(de(m.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),e.collapseTags&&e.states.selected.length>e.maxCollapseTags?(x(),he(s,{key:0,ref:"tagTooltipRef",disabled:e.dropdownMenuVisible||!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:e.teleported},{default:P(()=>[M("div",{ref:"collapseItemRef",class:F(e.nsSelect.e("selected-item"))},[E(o,{closable:!1,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:tt(e.collapseTagStyle)},{default:P(()=>[M("span",{class:F(e.nsSelect.e("tags-text"))}," + "+de(e.states.selected.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:P(()=>[M("div",{ref:"tagMenuRef",class:F(e.nsSelect.e("selection"))},[(x(!0),U(Ge,null,mt(e.collapseTagList,m=>(x(),U("div",{key:e.getValueKey(m),class:F(e.nsSelect.e("selected-item"))},[E(o,{class:"in-tooltip",closable:!e.selectDisabled&&!m.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",onClose:g=>e.deleteTag(g,m)},{default:P(()=>[M("span",{class:F(e.nsSelect.e("tags-text"))},[fe(e.$slots,"label",{label:m.currentLabel,value:m.value},()=>[we(de(m.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","effect","teleported"])):oe("v-if",!0)]):oe("v-if",!0),M("div",{class:F([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable)])},[gt(M("input",{id:e.inputId,ref:"inputRef","onUpdate:modelValue":m=>e.states.inputValue=m,type:"text",name:e.name,class:F([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:tt(e.inputStyle),tabindex:e.tabindex,role:"combobox",readonly:!e.filterable,spellcheck:"false","aria-activedescendant":((v=e.hoverOption)==null?void 0:v.id)||"","aria-controls":e.contentId,"aria-expanded":e.dropdownMenuVisible,"aria-label":e.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onKeydown:[sn(ft(m=>e.navigateOptions("next"),["stop","prevent"]),["down"]),sn(ft(m=>e.navigateOptions("prev"),["stop","prevent"]),["up"]),sn(ft(e.handleEsc,["stop","prevent"]),["esc"]),sn(ft(e.selectOption,["stop","prevent"]),["enter"]),sn(ft(e.deletePrevTag,["stop"]),["delete"])],onCompositionstart:e.handleCompositionStart,onCompositionupdate:e.handleCompositionUpdate,onCompositionend:e.handleCompositionEnd,onInput:e.onInput,onClick:ft(e.toggleMenu,["stop"])},null,46,["id","onUpdate:modelValue","name","disabled","autocomplete","tabindex","readonly","aria-activedescendant","aria-controls","aria-expanded","aria-label","onKeydown","onCompositionstart","onCompositionupdate","onCompositionend","onInput","onClick"]),[[no,e.states.inputValue]]),e.filterable?(x(),U("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:F(e.nsSelect.e("input-calculator")),textContent:de(e.states.inputValue)},null,10,["textContent"])):oe("v-if",!0)],2),e.shouldShowPlaceholder?(x(),U("div",{key:1,class:F([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[e.hasModelValue?fe(e.$slots,"label",{key:0,label:e.currentPlaceholder,value:e.modelValue},()=>[M("span",null,de(e.currentPlaceholder),1)]):(x(),U("span",{key:1},de(e.currentPlaceholder),1))],2)):oe("v-if",!0)],2),M("div",{ref:"suffixRef",class:F(e.nsSelect.e("suffix"))},[e.iconComponent&&!e.showClose?(x(),he(l,{key:0,class:F([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:P(()=>[(x(),he(Lt(e.iconComponent)))]),_:1},8,["class"])):oe("v-if",!0),e.showClose&&e.clearIcon?(x(),he(l,{key:1,class:F([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.nsSelect.e("clear")]),onClick:e.handleClearClick},{default:P(()=>[(x(),he(Lt(e.clearIcon)))]),_:1},8,["class","onClick"])):oe("v-if",!0),e.validateState&&e.validateIcon&&e.needStatusIcon?(x(),he(l,{key:2,class:F([e.nsInput.e("icon"),e.nsInput.e("validateIcon"),e.nsInput.is("loading",e.validateState==="validating")])},{default:P(()=>[(x(),he(Lt(e.validateIcon)))]),_:1},8,["class"])):oe("v-if",!0)],2)],10,["onClick"])]}),content:P(()=>[E(p,{ref:"menuRef"},{default:P(()=>[e.$slots.header?(x(),U("div",{key:0,class:F(e.nsSelect.be("dropdown","header")),onClick:ft(()=>{},["stop"])},[fe(e.$slots,"header")],10,["onClick"])):oe("v-if",!0),gt(E(d,{id:e.contentId,ref:"scrollbarRef",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:F([e.nsSelect.is("empty",e.filteredOptionsCount===0)]),role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical",onScroll:e.popupScroll},{default:P(()=>[e.showNewOption?(x(),he(u,{key:0,value:e.states.inputValue,created:!0},null,8,["value"])):oe("v-if",!0),E(c,null,{default:P(()=>[fe(e.$slots,"default")]),_:3})]),_:3},8,["id","wrap-class","view-class","class","aria-label","onScroll"]),[[zt,e.states.options.size>0&&!e.loading]]),e.$slots.loading&&e.loading?(x(),U("div",{key:1,class:F(e.nsSelect.be("dropdown","loading"))},[fe(e.$slots,"loading")],2)):e.loading||e.filteredOptionsCount===0?(x(),U("div",{key:2,class:F(e.nsSelect.be("dropdown","empty"))},[fe(e.$slots,"empty",{},()=>[M("span",null,de(e.emptyText),1)])],2)):oe("v-if",!0),e.$slots.footer?(x(),U("div",{key:3,class:F(e.nsSelect.be("dropdown","footer")),onClick:ft(()=>{},["stop"])},[fe(e.$slots,"footer")],10,["onClick"])):oe("v-if",!0)]),_:3},512)]),_:3},8,["visible","placement","teleported","popper-class","popper-options","fallback-placements","effect","transition","persistent","append-to","show-arrow","offset","onBeforeShow","onHide"])],16,["onMouseleave"])),[[h,e.handleClickOutside,e.popperRef]])}var dne=He(une,[["render",cne],["__file","select.vue"]]);const fne=J({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(e){const t=Le("select"),n=z(null),r=Mt(),a=z([]);Vt(i3,Ct({...mr(e)}));const i=k(()=>a.value.some(u=>u.visible===!0)),o=u=>{var c,d;return((c=u.type)==null?void 0:c.name)==="ElOption"&&!!((d=u.component)!=null&&d.proxy)},s=u=>{const c=$r(u),d=[];return c.forEach(p=>{var h,v;o(p)?d.push(p.component.proxy):(h=p.children)!=null&&h.length?d.push(...s(p.children)):(v=p.component)!=null&&v.subTree&&d.push(...s(p.component.subTree))}),d},l=()=>{a.value=s(r.subTree)};return ht(()=>{l()}),CI(n,l,{attributes:!0,subtree:!0,childList:!0}),{groupRef:n,visible:i,ns:t}}});function pne(e,t,n,r,a,i){return gt((x(),U("ul",{ref:"groupRef",class:F(e.ns.be("group","wrap"))},[M("li",{class:F(e.ns.be("group","title"))},de(e.label),3),M("li",null,[M("ul",{class:F(e.ns.b("group"))},[fe(e.$slots,"default")],2)])],2)),[[zt,e.visible]])}var o3=He(fne,[["render",pne],["__file","option-group.vue"]]);const ii=Et(dne,{Option:i2,OptionGroup:o3}),Ko=On(i2),hne=On(o3),o2=()=>Qe(a3,{}),mne=Ue({pageSize:{type:Number,required:!0},pageSizes:{type:ue(Array),default:()=>Pn([10,20,30,40,50,100])},popperClass:{type:String},disabled:Boolean,teleported:Boolean,size:{type:String,values:uo},appendSizeTo:String}),vne=J({name:"ElPaginationSizes"}),gne=J({...vne,props:mne,emits:["page-size-change"],setup(e,{emit:t}){const n=e,{t:r}=Kt(),a=Le("pagination"),i=o2(),o=z(n.pageSize);Ie(()=>n.pageSizes,(u,c)=>{if(!pr(u,c)&&Be(u)){const d=u.includes(n.pageSize)?n.pageSize:n.pageSizes[0];t("page-size-change",d)}}),Ie(()=>n.pageSize,u=>{o.value=u});const s=k(()=>n.pageSizes);function l(u){var c;u!==o.value&&(o.value=u,(c=i.handleSizeChange)==null||c.call(i,Number(u)))}return(u,c)=>(x(),U("span",{class:F(f(a).e("sizes"))},[E(f(ii),{"model-value":o.value,disabled:u.disabled,"popper-class":u.popperClass,size:u.size,teleported:u.teleported,"validate-event":!1,"append-to":u.appendSizeTo,onChange:l},{default:P(()=>[(x(!0),U(Ge,null,mt(f(s),d=>(x(),he(f(Ko),{key:d,value:d,label:d+f(r)("el.pagination.pagesize")},null,8,["value","label"]))),128))]),_:1},8,["model-value","disabled","popper-class","size","teleported","append-to"])],2))}});var yne=He(gne,[["__file","sizes.vue"]]);const bne=Ue({size:{type:String,values:uo}}),_ne=J({name:"ElPaginationJumper"}),Tne=J({..._ne,props:bne,setup(e){const{t}=Kt(),n=Le("pagination"),{pageCount:r,disabled:a,currentPage:i,changeEvent:o}=o2(),s=z(),l=k(()=>{var d;return(d=s.value)!=null?d:i==null?void 0:i.value});function u(d){s.value=d?+d:""}function c(d){d=Math.trunc(+d),o==null||o(d),s.value=void 0}return(d,p)=>(x(),U("span",{class:F(f(n).e("jump")),disabled:f(a)},[M("span",{class:F([f(n).e("goto")])},de(f(t)("el.pagination.goto")),3),E(f(Wn),{size:d.size,class:F([f(n).e("editor"),f(n).is("in-pagination")]),min:1,max:f(r),disabled:f(a),"model-value":f(l),"validate-event":!1,"aria-label":f(t)("el.pagination.page"),type:"number","onUpdate:modelValue":u,onChange:c},null,8,["size","class","max","disabled","model-value","aria-label"]),M("span",{class:F([f(n).e("classifier")])},de(f(t)("el.pagination.pageClassifier")),3)],10,["disabled"]))}});var wne=He(Tne,[["__file","jumper.vue"]]);const Sne=Ue({total:{type:Number,default:1e3}}),Cne=J({name:"ElPaginationTotal"}),Ene=J({...Cne,props:Sne,setup(e){const{t}=Kt(),n=Le("pagination"),{disabled:r}=o2();return(a,i)=>(x(),U("span",{class:F(f(n).e("total")),disabled:f(r)},de(f(t)("el.pagination.total",{total:a.total})),11,["disabled"]))}});var xne=He(Ene,[["__file","total.vue"]]);const kne=Ue({currentPage:{type:Number,default:1},pageCount:{type:Number,required:!0},pagerCount:{type:Number,default:7},disabled:Boolean}),Ane=J({name:"ElPaginationPager"}),Dne=J({...Ane,props:kne,emits:[$t],setup(e,{emit:t}){const n=e,r=Le("pager"),a=Le("icon"),{t:i}=Kt(),o=z(!1),s=z(!1),l=z(!1),u=z(!1),c=z(!1),d=z(!1),p=k(()=>{const _=n.pagerCount,w=(_-1)/2,S=Number(n.currentPage),A=Number(n.pageCount);let I=!1,D=!1;A>_&&(S>_-w&&(I=!0),S<A-w&&(D=!0));const O=[];if(I&&!D){const V=A-(_-2);for(let N=V;N<A;N++)O.push(N)}else if(!I&&D)for(let V=2;V<_;V++)O.push(V);else if(I&&D){const V=Math.floor(_/2)-1;for(let N=S-V;N<=S+V;N++)O.push(N)}else for(let V=2;V<A;V++)O.push(V);return O}),h=k(()=>["more","btn-quickprev",a.b(),r.is("disabled",n.disabled)]),v=k(()=>["more","btn-quicknext",a.b(),r.is("disabled",n.disabled)]),m=k(()=>n.disabled?-1:0);_r(()=>{const _=(n.pagerCount-1)/2;o.value=!1,s.value=!1,n.pageCount>n.pagerCount&&(n.currentPage>n.pagerCount-_&&(o.value=!0),n.currentPage<n.pageCount-_&&(s.value=!0))});function g(_=!1){n.disabled||(_?l.value=!0:u.value=!0)}function y(_=!1){_?c.value=!0:d.value=!0}function T(_){const w=_.target;if(w.tagName.toLowerCase()==="li"&&Array.from(w.classList).includes("number")){const S=Number(w.textContent);S!==n.currentPage&&t($t,S)}else w.tagName.toLowerCase()==="li"&&Array.from(w.classList).includes("more")&&b(_)}function b(_){const w=_.target;if(w.tagName.toLowerCase()==="ul"||n.disabled)return;let S=Number(w.textContent);const A=n.pageCount,I=n.currentPage,D=n.pagerCount-2;w.className.includes("more")&&(w.className.includes("quickprev")?S=I-D:w.className.includes("quicknext")&&(S=I+D)),Number.isNaN(+S)||(S<1&&(S=1),S>A&&(S=A)),S!==I&&t($t,S)}return(_,w)=>(x(),U("ul",{class:F(f(r).b()),onClick:b,onKeyup:sn(T,["enter"])},[_.pageCount>0?(x(),U("li",{key:0,class:F([[f(r).is("active",_.currentPage===1),f(r).is("disabled",_.disabled)],"number"]),"aria-current":_.currentPage===1,"aria-label":f(i)("el.pagination.currentPage",{pager:1}),tabindex:f(m)}," 1 ",10,["aria-current","aria-label","tabindex"])):oe("v-if",!0),o.value?(x(),U("li",{key:1,class:F(f(h)),tabindex:f(m),"aria-label":f(i)("el.pagination.prevPages",{pager:_.pagerCount-2}),onMouseenter:S=>g(!0),onMouseleave:S=>l.value=!1,onFocus:S=>y(!0),onBlur:S=>c.value=!1},[(l.value||c.value)&&!_.disabled?(x(),he(f(Rs),{key:0})):(x(),he(f(Dy),{key:1}))],42,["tabindex","aria-label","onMouseenter","onMouseleave","onFocus","onBlur"])):oe("v-if",!0),(x(!0),U(Ge,null,mt(f(p),S=>(x(),U("li",{key:S,class:F([[f(r).is("active",_.currentPage===S),f(r).is("disabled",_.disabled)],"number"]),"aria-current":_.currentPage===S,"aria-label":f(i)("el.pagination.currentPage",{pager:S}),tabindex:f(m)},de(S),11,["aria-current","aria-label","tabindex"]))),128)),s.value?(x(),U("li",{key:2,class:F(f(v)),tabindex:f(m),"aria-label":f(i)("el.pagination.nextPages",{pager:_.pagerCount-2}),onMouseenter:S=>g(),onMouseleave:S=>u.value=!1,onFocus:S=>y(),onBlur:S=>d.value=!1},[(u.value||d.value)&&!_.disabled?(x(),he(f(Ls),{key:0})):(x(),he(f(Dy),{key:1}))],42,["tabindex","aria-label","onMouseenter","onMouseleave","onFocus","onBlur"])):oe("v-if",!0),_.pageCount>1?(x(),U("li",{key:3,class:F([[f(r).is("active",_.currentPage===_.pageCount),f(r).is("disabled",_.disabled)],"number"]),"aria-current":_.currentPage===_.pageCount,"aria-label":f(i)("el.pagination.currentPage",{pager:_.pageCount}),tabindex:f(m)},de(_.pageCount),11,["aria-current","aria-label","tabindex"])):oe("v-if",!0)],42,["onKeyup"]))}});var Ine=He(Dne,[["__file","pager.vue"]]);const qr=e=>typeof e!="number",Pne=Ue({pageSize:Number,defaultPageSize:Number,total:Number,pageCount:Number,pagerCount:{type:Number,validator:e=>st(e)&&Math.trunc(e)===e&&e>4&&e<22&&e%2===1,default:7},currentPage:Number,defaultCurrentPage:Number,layout:{type:String,default:["prev","pager","next","jumper","->","total"].join(", ")},pageSizes:{type:ue(Array),default:()=>Pn([10,20,30,40,50,100])},popperClass:{type:String,default:""},prevText:{type:String,default:""},prevIcon:{type:dn,default:()=>Ms},nextText:{type:String,default:""},nextIcon:{type:dn,default:()=>sa},teleported:{type:Boolean,default:!0},small:Boolean,size:Xn,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean,appendSizeTo:String}),One={"update:current-page":e=>st(e),"update:page-size":e=>st(e),"size-change":e=>st(e),change:(e,t)=>st(e)&&st(t),"current-change":e=>st(e),"prev-click":e=>st(e),"next-click":e=>st(e)},pE="ElPagination";var Mne=J({name:pE,props:Pne,emits:One,setup(e,{emit:t,slots:n}){const{t:r}=Kt(),a=Le("pagination"),i=Mt().vnode.props||{},o=PI(),s=k(()=>{var w;return e.small?"small":(w=e.size)!=null?w:o.value});xs({from:"small",replacement:"size",version:"3.0.0",scope:"el-pagination",ref:"https://element-plus.org/zh-CN/component/pagination.html"},k(()=>!!e.small));const l="onUpdate:currentPage"in i||"onUpdate:current-page"in i||"onCurrentChange"in i,u="onUpdate:pageSize"in i||"onUpdate:page-size"in i||"onSizeChange"in i,c=k(()=>{if(qr(e.total)&&qr(e.pageCount)||!qr(e.currentPage)&&!l)return!1;if(e.layout.includes("sizes")){if(qr(e.pageCount)){if(!qr(e.total)&&!qr(e.pageSize)&&!u)return!1}else if(!u)return!1}return!0}),d=z(qr(e.defaultPageSize)?10:e.defaultPageSize),p=z(qr(e.defaultCurrentPage)?1:e.defaultCurrentPage),h=k({get(){return qr(e.pageSize)?d.value:e.pageSize},set(w){qr(e.pageSize)&&(d.value=w),u&&(t("update:page-size",w),t("size-change",w))}}),v=k(()=>{let w=0;return qr(e.pageCount)?qr(e.total)||(w=Math.max(1,Math.ceil(e.total/h.value))):w=e.pageCount,w}),m=k({get(){return qr(e.currentPage)?p.value:e.currentPage},set(w){let S=w;w<1?S=1:w>v.value&&(S=v.value),qr(e.currentPage)&&(p.value=S),l&&(t("update:current-page",S),t("current-change",S))}});Ie(v,w=>{m.value>w&&(m.value=w)}),Ie([m,h],w=>{t($t,...w)},{flush:"post"});function g(w){m.value=w}function y(w){h.value=w;const S=v.value;m.value>S&&(m.value=S)}function T(){e.disabled||(m.value-=1,t("prev-click",m.value))}function b(){e.disabled||(m.value+=1,t("next-click",m.value))}function _(w,S){w&&(w.props||(w.props={}),w.props.class=[w.props.class,S].join(" "))}return Vt(a3,{pageCount:v,disabled:k(()=>e.disabled),currentPage:m,changeEvent:g,handleSizeChange:y}),()=>{var w,S;if(!c.value)return r("el.pagination.deprecationWarning"),null;if(!e.layout||e.hideOnSinglePage&&v.value<=1)return null;const A=[],I=[],D=lt("div",{class:a.e("rightwrapper")},I),O={prev:lt(Yte,{disabled:e.disabled,currentPage:m.value,prevText:e.prevText,prevIcon:e.prevIcon,onClick:T}),jumper:lt(wne,{size:s.value}),pager:lt(Ine,{currentPage:m.value,pageCount:v.value,pagerCount:e.pagerCount,onChange:g,disabled:e.disabled}),next:lt(Zte,{disabled:e.disabled,currentPage:m.value,pageCount:v.value,nextText:e.nextText,nextIcon:e.nextIcon,onClick:b}),sizes:lt(yne,{pageSize:h.value,pageSizes:e.pageSizes,popperClass:e.popperClass,disabled:e.disabled,teleported:e.teleported,size:s.value,appendSizeTo:e.appendSizeTo}),slot:(S=(w=n==null?void 0:n.default)==null?void 0:w.call(n))!=null?S:null,total:lt(xne,{total:qr(e.total)?0:e.total})},V=e.layout.split(",").map(K=>K.trim());let N=!1;return V.forEach(K=>{if(K==="->"){N=!0;return}N?I.push(O[K]):A.push(O[K])}),_(A[0],a.is("first")),_(A[A.length-1],a.is("last")),N&&I.length>0&&(_(I[0],a.is("first")),_(I[I.length-1],a.is("last")),A.push(D)),lt("div",{class:[a.b(),a.is("background",e.background),a.m(s.value)]},A)}}});const Vc=Et(Mne),Rne=Ue({title:String,confirmButtonText:String,cancelButtonText:String,confirmButtonType:{type:String,values:Py,default:"primary"},cancelButtonType:{type:String,values:Py,default:"text"},icon:{type:dn,default:()=>Kz},iconColor:{type:String,default:"#f90"},hideIcon:{type:Boolean,default:!1},hideAfter:{type:Number,default:200},teleported:dr.teleported,persistent:dr.persistent,width:{type:[String,Number],default:150}}),Lne={confirm:e=>e instanceof MouseEvent,cancel:e=>e instanceof MouseEvent},Nne=J({name:"ElPopconfirm"}),Fne=J({...Nne,props:Rne,emits:Lne,setup(e,{emit:t}){const n=e,{t:r}=Kt(),a=Le("popconfirm"),i=z(),o=()=>{var p,h;(h=(p=i.value)==null?void 0:p.onClose)==null||h.call(p)},s=k(()=>({width:Ln(n.width)})),l=p=>{t("confirm",p),o()},u=p=>{t("cancel",p),o()},c=k(()=>n.confirmButtonText||r("el.popconfirm.confirmButtonText")),d=k(()=>n.cancelButtonText||r("el.popconfirm.cancelButtonText"));return(p,h)=>(x(),he(f(ar),Ft({ref_key:"tooltipRef",ref:i,trigger:"click",effect:"light"},p.$attrs,{"popper-class":`${f(a).namespace.value}-popover`,"popper-style":f(s),teleported:p.teleported,"fallback-placements":["bottom","top","right","left"],"hide-after":p.hideAfter,persistent:p.persistent}),{content:P(()=>[M("div",{class:F(f(a).b())},[M("div",{class:F(f(a).e("main"))},[!p.hideIcon&&p.icon?(x(),he(f(et),{key:0,class:F(f(a).e("icon")),style:tt({color:p.iconColor})},{default:P(()=>[(x(),he(Lt(p.icon)))]),_:1},8,["class","style"])):oe("v-if",!0),we(" "+de(p.title),1)],2),M("div",{class:F(f(a).e("action"))},[fe(p.$slots,"actions",{confirm:l,cancel:u},()=>[E(f(_n),{size:"small",type:p.cancelButtonType==="text"?"":p.cancelButtonType,text:p.cancelButtonType==="text",onClick:u},{default:P(()=>[we(de(f(d)),1)]),_:1},8,["type","text"]),E(f(_n),{size:"small",type:p.confirmButtonType==="text"?"":p.confirmButtonType,text:p.confirmButtonType==="text",onClick:l},{default:P(()=>[we(de(f(c)),1)]),_:1},8,["type","text"])])],2)],2)]),default:P(()=>[p.$slots.reference?fe(p.$slots,"reference",{key:0}):oe("v-if",!0)]),_:3},16,["popper-class","popper-style","teleported","hide-after","persistent"]))}});var $ne=He(Fne,[["__file","popconfirm.vue"]]);const Bne=Et($ne),Vne=Ue({trigger:Cf.trigger,placement:Fh.placement,disabled:Cf.disabled,visible:dr.visible,transition:dr.transition,popperOptions:Fh.popperOptions,tabindex:Fh.tabindex,content:dr.content,popperStyle:dr.popperStyle,popperClass:dr.popperClass,enterable:{...dr.enterable,default:!0},effect:{...dr.effect,default:"light"},teleported:dr.teleported,title:String,width:{type:[String,Number],default:150},offset:{type:Number,default:void 0},showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0},showArrow:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},"onUpdate:visible":{type:Function}}),Une={"update:visible":e=>pn(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},Hne="onUpdate:visible",zne=J({name:"ElPopover"}),jne=J({...zne,props:Vne,emits:Une,setup(e,{expose:t,emit:n}){const r=e,a=k(()=>r[Hne]),i=Le("popover"),o=z(),s=k(()=>{var g;return(g=f(o))==null?void 0:g.popperRef}),l=k(()=>[{width:Ln(r.width)},r.popperStyle]),u=k(()=>[i.b(),r.popperClass,{[i.m("plain")]:!!r.content}]),c=k(()=>r.transition===`${i.namespace.value}-fade-in-linear`),d=()=>{var g;(g=o.value)==null||g.hide()},p=()=>{n("before-enter")},h=()=>{n("before-leave")},v=()=>{n("after-enter")},m=()=>{n("update:visible",!1),n("after-leave")};return t({popperRef:s,hide:d}),(g,y)=>(x(),he(f(ar),Ft({ref_key:"tooltipRef",ref:o},g.$attrs,{trigger:g.trigger,placement:g.placement,disabled:g.disabled,visible:g.visible,transition:g.transition,"popper-options":g.popperOptions,tabindex:g.tabindex,content:g.content,offset:g.offset,"show-after":g.showAfter,"hide-after":g.hideAfter,"auto-close":g.autoClose,"show-arrow":g.showArrow,"aria-label":g.title,effect:g.effect,enterable:g.enterable,"popper-class":f(u),"popper-style":f(l),teleported:g.teleported,persistent:g.persistent,"gpu-acceleration":f(c),"onUpdate:visible":f(a),onBeforeShow:p,onBeforeHide:h,onShow:v,onHide:m}),{content:P(()=>[g.title?(x(),U("div",{key:0,class:F(f(i).e("title")),role:"title"},de(g.title),3)):oe("v-if",!0),fe(g.$slots,"default",{},()=>[we(de(g.content),1)])]),default:P(()=>[g.$slots.reference?fe(g.$slots,"reference",{key:0}):oe("v-if",!0)]),_:3},16,["trigger","placement","disabled","visible","transition","popper-options","tabindex","content","offset","show-after","hide-after","auto-close","show-arrow","aria-label","effect","enterable","popper-class","popper-style","teleported","persistent","gpu-acceleration","onUpdate:visible"]))}});var Wne=He(jne,[["__file","popover.vue"]]);const hE=(e,t)=>{const n=t.arg||t.value,r=n==null?void 0:n.popperRef;r&&(r.triggerRef=e)};var Kne={mounted(e,t){hE(e,t)},updated(e,t){hE(e,t)}};const qne="popover",s3=D7(Kne,qne),Gne=Et(Wne,{directive:s3}),Yne=Ue({type:{type:String,default:"line",values:["line","circle","dashboard"]},percentage:{type:Number,default:0,validator:e=>e>=0&&e<=100},status:{type:String,default:"",values:["","success","exception","warning"]},indeterminate:Boolean,duration:{type:Number,default:3},strokeWidth:{type:Number,default:6},strokeLinecap:{type:ue(String),default:"round"},textInside:Boolean,width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:ue([String,Array,Function]),default:""},striped:Boolean,stripedFlow:Boolean,format:{type:ue(Function),default:e=>`${e}%`}}),Xne=J({name:"ElProgress"}),Qne=J({...Xne,props:Yne,setup(e){const t=e,n={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},r=Le("progress"),a=k(()=>{const b={width:`${t.percentage}%`,animationDuration:`${t.duration}s`},_=T(t.percentage);return _.includes("gradient")?b.background=_:b.backgroundColor=_,b}),i=k(()=>(t.strokeWidth/t.width*100).toFixed(1)),o=k(()=>["circle","dashboard"].includes(t.type)?Number.parseInt(`${50-Number.parseFloat(i.value)/2}`,10):0),s=k(()=>{const b=o.value,_=t.type==="dashboard";return`
M 50 50
m 0 ${_?"":"-"}${b}
a ${b} ${b} 0 1 1 0 ${_?"-":""}${b*2}
a ${b} ${b} 0 1 1 0 ${_?"":"-"}${b*2}
`}),l=k(()=>2*Math.PI*o.value),u=k(()=>t.type==="dashboard"?.75:1),c=k(()=>`${-1*l.value*(1-u.value)/2}px`),d=k(()=>({strokeDasharray:`${l.value*u.value}px, ${l.value}px`,strokeDashoffset:c.value})),p=k(()=>({strokeDasharray:`${l.value*u.value*(t.percentage/100)}px, ${l.value}px`,strokeDashoffset:c.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),h=k(()=>{let b;return t.color?b=T(t.percentage):b=n[t.status]||n.default,b}),v=k(()=>t.status==="warning"?up:t.type==="line"?t.status==="success"?s1:rs:t.status==="success"?sp:Ci),m=k(()=>t.type==="line"?12+t.strokeWidth*.4:t.width*.111111+2),g=k(()=>t.format(t.percentage));function y(b){const _=100/b.length;return b.map((S,A)=>rt(S)?{color:S,percentage:(A+1)*_}:S).sort((S,A)=>S.percentage-A.percentage)}const T=b=>{var _;const{color:w}=t;if(ot(w))return w(b);if(rt(w))return w;{const S=y(w);for(const A of S)if(A.percentage>b)return A.color;return(_=S[S.length-1])==null?void 0:_.color}};return(b,_)=>(x(),U("div",{class:F([f(r).b(),f(r).m(b.type),f(r).is(b.status),{[f(r).m("without-text")]:!b.showText,[f(r).m("text-inside")]:b.textInside}]),role:"progressbar","aria-valuenow":b.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[b.type==="line"?(x(),U("div",{key:0,class:F(f(r).b("bar"))},[M("div",{class:F(f(r).be("bar","outer")),style:tt({height:`${b.strokeWidth}px`})},[M("div",{class:F([f(r).be("bar","inner"),{[f(r).bem("bar","inner","indeterminate")]:b.indeterminate},{[f(r).bem("bar","inner","striped")]:b.striped},{[f(r).bem("bar","inner","striped-flow")]:b.stripedFlow}]),style:tt(f(a))},[(b.showText||b.$slots.default)&&b.textInside?(x(),U("div",{key:0,class:F(f(r).be("bar","innerText"))},[fe(b.$slots,"default",{percentage:b.percentage},()=>[M("span",null,de(f(g)),1)])],2)):oe("v-if",!0)],6)],6)],2)):(x(),U("div",{key:1,class:F(f(r).b("circle")),style:tt({height:`${b.width}px`,width:`${b.width}px`})},[(x(),U("svg",{viewBox:"0 0 100 100"},[M("path",{class:F(f(r).be("circle","track")),d:f(s),stroke:`var(${f(r).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-linecap":b.strokeLinecap,"stroke-width":f(i),fill:"none",style:tt(f(d))},null,14,["d","stroke","stroke-linecap","stroke-width"]),M("path",{class:F(f(r).be("circle","path")),d:f(s),stroke:f(h),fill:"none",opacity:b.percentage?1:0,"stroke-linecap":b.strokeLinecap,"stroke-width":f(i),style:tt(f(p))},null,14,["d","stroke","opacity","stroke-linecap","stroke-width"])]))],6)),(b.showText||b.$slots.default)&&!b.textInside?(x(),U("div",{key:2,class:F(f(r).e("text")),style:tt({fontSize:`${f(m)}px`})},[fe(b.$slots,"default",{percentage:b.percentage},()=>[b.status?(x(),he(f(et),{key:1},{default:P(()=>[(x(),he(Lt(f(v))))]),_:1})):(x(),U("span",{key:0},de(f(g)),1))])],6)):oe("v-if",!0)],10,["aria-valuenow"]))}});var Jne=He(Qne,[["__file","progress.vue"]]);const l3=Et(Jne),Zne=Ue({modelValue:{type:Number,default:0},id:{type:String,default:void 0},lowThreshold:{type:Number,default:2},highThreshold:{type:Number,default:4},max:{type:Number,default:5},colors:{type:ue([Array,Object]),default:()=>Pn(["","",""])},voidColor:{type:String,default:""},disabledVoidColor:{type:String,default:""},icons:{type:ue([Array,Object]),default:()=>[Zp,Zp,Zp]},voidIcon:{type:dn,default:()=>aj},disabledVoidIcon:{type:dn,default:()=>Zp},disabled:Boolean,allowHalf:Boolean,showText:Boolean,showScore:Boolean,textColor:{type:String,default:""},texts:{type:ue(Array),default:()=>Pn(["Extremely bad","Disappointed","Fair","Satisfied","Surprise"])},scoreTemplate:{type:String,default:"{value}"},size:Xn,clearable:Boolean,...Er(["ariaLabel"])}),ere={[$t]:e=>st(e),[_t]:e=>st(e)},tre=J({name:"ElRate"}),nre=J({...tre,props:Zne,emits:ere,setup(e,{expose:t,emit:n}){const r=e;function a($,j){const W=re=>It(re),H=Object.keys(j).map(re=>+re).filter(re=>{const le=j[re];return(W(le)?le.excluded:!1)?$<re:$<=re}).sort((re,le)=>re-le),X=j[H[0]];return W(X)&&X.value||X}const i=Qe(ql,void 0),o=Qe(io,void 0),s=Kn(),l=Le("rate"),{inputId:u,isLabeledByFormItem:c}=si(r,{formItemContext:o}),d=z(r.modelValue),p=z(-1),h=z(!0),v=k(()=>[l.b(),l.m(s.value)]),m=k(()=>r.disabled||(i==null?void 0:i.disabled)),g=k(()=>l.cssVarBlock({"void-color":r.voidColor,"disabled-void-color":r.disabledVoidColor,"fill-color":_.value})),y=k(()=>{let $="";return r.showScore?$=r.scoreTemplate.replace(/\{\s*value\s*\}/,m.value?`${r.modelValue}`:`${d.value}`):r.showText&&($=r.texts[Math.ceil(d.value)-1]),$}),T=k(()=>r.modelValue*100-Math.floor(r.modelValue)*100),b=k(()=>Be(r.colors)?{[r.lowThreshold]:r.colors[0],[r.highThreshold]:{value:r.colors[1],excluded:!0},[r.max]:r.colors[2]}:r.colors),_=k(()=>{const $=a(d.value,b.value);return It($)?"":$}),w=k(()=>{let $="";return m.value?$=`${T.value}%`:r.allowHalf&&($="50%"),{color:_.value,width:$}}),S=k(()=>{let $=Be(r.icons)?[...r.icons]:{...r.icons};return $=$o($),Be($)?{[r.lowThreshold]:$[0],[r.highThreshold]:{value:$[1],excluded:!0},[r.max]:$[2]}:$}),A=k(()=>a(r.modelValue,S.value)),I=k(()=>m.value?rt(r.disabledVoidIcon)?r.disabledVoidIcon:$o(r.disabledVoidIcon):rt(r.voidIcon)?r.voidIcon:$o(r.voidIcon)),D=k(()=>a(d.value,S.value));function O($){const j=m.value&&T.value>0&&$-1<r.modelValue&&$>r.modelValue,W=r.allowHalf&&h.value&&$-.5<=d.value&&$>d.value;return j||W}function V($){r.clearable&&$===r.modelValue&&($=0),n(_t,$),r.modelValue!==$&&n($t,$)}function N($){m.value||(r.allowHalf&&h.value?V(d.value):V($))}function K($){if(m.value)return;let j=d.value;const W=$.code;return W===Ye.up||W===Ye.right?(r.allowHalf?j+=.5:j+=1,$.stopPropagation(),$.preventDefault()):(W===Ye.left||W===Ye.down)&&(r.allowHalf?j-=.5:j-=1,$.stopPropagation(),$.preventDefault()),j=j<0?0:j,j=j>r.max?r.max:j,n(_t,j),n($t,j),j}function Y($,j){if(!m.value){if(r.allowHalf&&j){let W=j.target;ba(W,l.e("item"))&&(W=W.querySelector(`.${l.e("icon")}`)),(W.clientWidth===0||ba(W,l.e("decimal")))&&(W=W.parentNode),h.value=j.offsetX*2<=W.clientWidth,d.value=h.value?$-.5:$}else d.value=$;p.value=$}}function q(){m.value||(r.allowHalf&&(h.value=r.modelValue!==Math.floor(r.modelValue)),d.value=r.modelValue,p.value=-1)}return Ie(()=>r.modelValue,$=>{d.value=$,h.value=r.modelValue!==Math.floor(r.modelValue)}),r.modelValue||n(_t,0),t({setCurrentValue:Y,resetCurrentValue:q}),($,j)=>{var W;return x(),U("div",{id:f(u),class:F([f(v),f(l).is("disabled",f(m))]),role:"slider","aria-label":f(c)?void 0:$.ariaLabel||"rating","aria-labelledby":f(c)?(W=f(o))==null?void 0:W.labelId:void 0,"aria-valuenow":d.value,"aria-valuetext":f(y)||void 0,"aria-valuemin":"0","aria-valuemax":$.max,tabindex:"0",style:tt(f(g)),onKeydown:K},[(x(!0),U(Ge,null,mt($.max,(H,X)=>(x(),U("span",{key:X,class:F(f(l).e("item")),onMousemove:re=>Y(H,re),onMouseleave:q,onClick:re=>N(H)},[E(f(et),{class:F([f(l).e("icon"),{hover:p.value===H},f(l).is("active",H<=d.value)])},{default:P(()=>[O(H)?oe("v-if",!0):(x(),U(Ge,{key:0},[gt((x(),he(Lt(f(D)),null,null,512)),[[zt,H<=d.value]]),gt((x(),he(Lt(f(I)),null,null,512)),[[zt,!(H<=d.value)]])],64)),O(H)?(x(),U(Ge,{key:1},[(x(),he(Lt(f(I)),{class:F([f(l).em("decimal","box")])},null,8,["class"])),E(f(et),{style:tt(f(w)),class:F([f(l).e("icon"),f(l).e("decimal")])},{default:P(()=>[(x(),he(Lt(f(A))))]),_:1},8,["style","class"])],64)):oe("v-if",!0)]),_:2},1032,["class"])],42,["onMousemove","onClick"]))),128)),$.showText||$.showScore?(x(),U("span",{key:0,class:F(f(l).e("text")),style:tt({color:$.textColor})},de(f(y)),7)):oe("v-if",!0)],46,["id","aria-label","aria-labelledby","aria-valuenow","aria-valuetext","aria-valuemax"])}}});var rre=He(nre,[["__file","rate.vue"]]);const are=Et(rre),Cu={success:"icon-success",warning:"icon-warning",error:"icon-error",info:"icon-info"},mE={[Cu.success]:Z7,[Cu.warning]:up,[Cu.error]:l1,[Cu.info]:c1},ire=Ue({title:{type:String,default:""},subTitle:{type:String,default:""},icon:{type:String,values:["success","warning","info","error"],default:"info"}}),ore=J({name:"ElResult"}),sre=J({...ore,props:ire,setup(e){const t=e,n=Le("result"),r=k(()=>{const a=t.icon,i=a&&Cu[a]?Cu[a]:"icon-info",o=mE[i]||mE["icon-info"];return{class:i,component:o}});return(a,i)=>(x(),U("div",{class:F(f(n).b())},[M("div",{class:F(f(n).e("icon"))},[fe(a.$slots,"icon",{},()=>[f(r).component?(x(),he(Lt(f(r).component),{key:0,class:F(f(r).class)},null,8,["class"])):oe("v-if",!0)])],2),a.title||a.$slots.title?(x(),U("div",{key:0,class:F(f(n).e("title"))},[fe(a.$slots,"title",{},()=>[M("p",null,de(a.title),1)])],2)):oe("v-if",!0),a.subTitle||a.$slots["sub-title"]?(x(),U("div",{key:1,class:F(f(n).e("subtitle"))},[fe(a.$slots,"sub-title",{},()=>[M("p",null,de(a.subTitle),1)])],2)):oe("v-if",!0),a.$slots.extra?(x(),U("div",{key:2,class:F(f(n).e("extra"))},[fe(a.$slots,"extra")],2)):oe("v-if",!0)],2))}});var lre=He(sre,[["__file","result.vue"]]);const ure=Et(lre),cre=["start","center","end","space-around","space-between","space-evenly"],dre=["top","middle","bottom"],fre=Ue({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:cre,default:"start"},align:{type:String,values:dre}}),pre=J({name:"ElRow"}),hre=J({...pre,props:fre,setup(e){const t=e,n=Le("row"),r=k(()=>t.gutter);Vt(ZP,{gutter:r});const a=k(()=>{const o={};return t.gutter&&(o.marginRight=o.marginLeft=`-${t.gutter/2}px`),o}),i=k(()=>[n.b(),n.is(`justify-${t.justify}`,t.justify!=="start"),n.is(`align-${t.align}`,!!t.align)]);return(o,s)=>(x(),he(Lt(o.tag),{class:F(f(i)),style:tt(f(a))},{default:P(()=>[fe(o.$slots,"default")]),_:3},8,["class","style"]))}});var mre=He(hre,[["__file","row.vue"]]);const u3=Et(mre),vre=J({props:{item:{type:Object,required:!0},style:{type:Object},height:Number},setup(){return{ns:Le("select")}}});function gre(e,t,n,r,a,i){return x(),U("div",{class:F(e.ns.be("group","title")),style:tt({...e.style,lineHeight:`${e.height}px`})},de(e.item.label),7)}var yre=He(vre,[["render",gre],["__file","group-item.vue"]]);function bre(e,{emit:t}){return{hoverItem:()=>{e.disabled||t("hover",e.index)},selectOptionClick:()=>{e.disabled||t("select",e.item,e.index)}}}const c3={label:"label",value:"value",disabled:"disabled",options:"options"};function Gv(e){const t=k(()=>({...c3,...e.props}));return{aliasProps:t,getLabel:o=>jn(o,t.value.label),getValue:o=>jn(o,t.value.value),getDisabled:o=>jn(o,t.value.disabled),getOptions:o=>jn(o,t.value.options)}}const _re=Ue({allowCreate:Boolean,autocomplete:{type:ue(String),default:"none"},automaticDropdown:Boolean,clearable:Boolean,clearIcon:{type:dn,default:rs},effect:{type:ue(String),default:"light"},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},defaultFirstOption:Boolean,disabled:Boolean,estimatedOptionHeight:{type:Number,default:void 0},filterable:Boolean,filterMethod:Function,height:{type:Number,default:274},itemHeight:{type:Number,default:34},id:String,loading:Boolean,loadingText:String,modelValue:{type:ue([Array,String,Number,Boolean,Object])},multiple:Boolean,multipleLimit:{type:Number,default:0},name:String,noDataText:String,noMatchText:String,remoteMethod:Function,reserveKeyword:{type:Boolean,default:!0},options:{type:ue(Array),required:!0},placeholder:{type:String},teleported:dr.teleported,persistent:{type:Boolean,default:!0},popperClass:{type:String,default:""},popperOptions:{type:ue(Object),default:()=>({})},remote:Boolean,size:Xn,props:{type:ue(Object),default:()=>c3},valueKey:{type:String,default:"value"},scrollbarAlwaysOn:Boolean,validateEvent:{type:Boolean,default:!0},offset:{type:Number,default:12},showArrow:{type:Boolean,default:!0},placement:{type:ue(String),values:as,default:"bottom-start"},fallbackPlacements:{type:ue(Array),default:["bottom-start","top-start","right","left"]},tagType:{...jo.type,default:"info"},tagEffect:{...jo.effect,default:"light"},tabindex:{type:[String,Number],default:0},appendTo:String,fitInputWidth:{type:[Boolean,Number],default:!0,validator(e){return pn(e)||st(e)}},...Mc,...Er(["ariaLabel"])}),Tre=Ue({data:Array,disabled:Boolean,hovering:Boolean,item:{type:ue(Object),required:!0},index:Number,style:Object,selected:Boolean,created:Boolean}),wre={[_t]:e=>!0,[$t]:e=>!0,"remove-tag":e=>!0,"visible-change":e=>!0,focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0},Sre={hover:e=>st(e),select:(e,t)=>!0},s2=Symbol("ElSelectV2Injection"),Cre=J({props:Tre,emits:Sre,setup(e,{emit:t}){const n=Qe(s2),r=Le("select"),{hoverItem:a,selectOptionClick:i}=bre(e,{emit:t}),{getLabel:o}=Gv(n.props);return{ns:r,hoverItem:a,selectOptionClick:i,getLabel:o}}});function Ere(e,t,n,r,a,i){return x(),U("li",{"aria-selected":e.selected,style:tt(e.style),class:F([e.ns.be("dropdown","item"),e.ns.is("selected",e.selected),e.ns.is("disabled",e.disabled),e.ns.is("created",e.created),e.ns.is("hovering",e.hovering)]),onMousemove:e.hoverItem,onClick:ft(e.selectOptionClick,["stop"])},[fe(e.$slots,"default",{item:e.item,index:e.index,disabled:e.disabled},()=>[M("span",null,de(e.getLabel(e.item)),1)])],46,["aria-selected","onMousemove","onClick"])}var xre=He(Cre,[["render",Ere],["__file","option-item.vue"]]),vE=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function kre(e,t){return!!(e===t||vE(e)&&vE(t))}function Are(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!kre(e[n],t[n]))return!1;return!0}function Dre(e,t){t===void 0&&(t=Are);var n=null;function r(){for(var a=[],i=0;i<arguments.length;i++)a[i]=arguments[i];if(n&&n.lastThis===this&&t(a,n.lastArgs))return n.lastResult;var o=e.apply(this,a);return n={lastResult:o,lastArgs:a,lastThis:this},o}return r.clear=function(){n=null},r}const d3=()=>{const t=Mt().proxy.$props;return k(()=>{const n=(r,a,i)=>({});return t.perfMode?Dv(n):Dre(n)})},Jy=50,km="itemRendered",Am="scroll",Eu="forward",Dm="backward",Ya="auto",Yv="smart",Af="start",Ki="center",Df="end",ic="horizontal",l2="vertical",Ire="ltr",Vu="rtl",If="negative",u2="positive-ascending",c2="positive-descending",Pre={[ic]:"left",[l2]:"top"},Ore=20,Mre={[ic]:"deltaX",[l2]:"deltaY"},Rre=({atEndEdge:e,atStartEdge:t,layout:n},r)=>{let a,i=0;const o=l=>l<0&&t.value||l>0&&e.value;return{hasReachedEdge:o,onWheel:l=>{Ll(a);const u=l[Mre[n.value]];o(i)&&o(i+u)||(i+=u,Bv()||l.preventDefault(),a=Os(()=>{r(i),i=0}))}}},Zy=Pi({type:ue([Number,Function]),required:!0}),eb=Pi({type:Number}),tb=Pi({type:Number,default:2}),Lre=Pi({type:String,values:["ltr","rtl"],default:"ltr"}),nb=Pi({type:Number,default:0}),Im=Pi({type:Number,required:!0}),f3=Pi({type:String,values:["horizontal","vertical"],default:l2}),p3=Ue({className:{type:String,default:""},containerElement:{type:ue([String,Object]),default:"div"},data:{type:ue(Array),default:()=>Pn([])},direction:Lre,height:{type:[String,Number],required:!0},innerElement:{type:[String,Object],default:"div"},style:{type:ue([Object,String,Array])},useIsScrolling:{type:Boolean,default:!1},width:{type:[Number,String],required:!1},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:{type:Boolean,default:!1}}),h3=Ue({cache:tb,estimatedItemSize:eb,layout:f3,initScrollOffset:nb,total:Im,itemSize:Zy,...p3}),rb={type:Number,default:6},m3={type:Number,default:0},v3={type:Number,default:2},Cl=Ue({columnCache:tb,columnWidth:Zy,estimatedColumnWidth:eb,estimatedRowHeight:eb,initScrollLeft:nb,initScrollTop:nb,itemKey:{type:ue(Function),default:({columnIndex:e,rowIndex:t})=>`${t}:${e}`},rowCache:tb,rowHeight:Zy,totalColumn:Im,totalRow:Im,hScrollbarSize:rb,vScrollbarSize:rb,scrollbarStartGap:m3,scrollbarEndGap:v3,role:String,...p3}),g3=Ue({alwaysOn:Boolean,class:String,layout:f3,total:Im,ratio:{type:Number,required:!0},clientSize:{type:Number,required:!0},scrollFrom:{type:Number,required:!0},scrollbarSize:rb,startGap:m3,endGap:v3,visible:Boolean}),vl=(e,t)=>e<t?Eu:Dm,Pf=e=>e===Ire||e===Vu||e===ic,gE=e=>e===Vu;let su=null;function Pm(e=!1){if(su===null||e){const t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";const r=document.createElement("div"),a=r.style;return a.width="100px",a.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?su=c2:(t.scrollLeft=1,t.scrollLeft===0?su=If:su=u2),document.body.removeChild(t),su}return su}function Nre({move:e,size:t,bar:n},r){const a={},i=`translate${n.axis}(${e}px)`;return a[n.size]=t,a.transform=i,a.msTransform=i,a.webkitTransform=i,r==="horizontal"?a.height="100%":a.width="100%",a}const ab=J({name:"ElVirtualScrollBar",props:g3,emits:["scroll","start-move","stop-move"],setup(e,{emit:t}){const n=k(()=>e.startGap+e.endGap),r=Le("virtual-scrollbar"),a=Le("scrollbar"),i=z(),o=z();let s=null,l=null;const u=Ct({isDragging:!1,traveled:0}),c=k(()=>KI[e.layout]),d=k(()=>e.clientSize-f(n)),p=k(()=>({position:"absolute",width:`${ic===e.layout?d.value:e.scrollbarSize}px`,height:`${ic===e.layout?e.scrollbarSize:d.value}px`,[Pre[e.layout]]:"2px",right:"2px",bottom:"2px",borderRadius:"4px"})),h=k(()=>{const S=e.ratio,A=e.clientSize;if(S>=100)return Number.POSITIVE_INFINITY;if(S>=50)return S*A/100;const I=A/3;return Math.floor(Math.min(Math.max(S*A,Ore),I))}),v=k(()=>{if(!Number.isFinite(h.value))return{display:"none"};const S=`${h.value}px`;return Nre({bar:c.value,size:S,move:u.traveled},e.layout)}),m=k(()=>Math.floor(e.clientSize-h.value-f(n))),g=()=>{window.addEventListener("mousemove",_),window.addEventListener("mouseup",b);const S=f(o);S&&(l=document.onselectstart,document.onselectstart=()=>!1,S.addEventListener("touchmove",_,{passive:!0}),S.addEventListener("touchend",b))},y=()=>{window.removeEventListener("mousemove",_),window.removeEventListener("mouseup",b),document.onselectstart=l,l=null;const S=f(o);S&&(S.removeEventListener("touchmove",_),S.removeEventListener("touchend",b))},T=S=>{S.stopImmediatePropagation(),!(S.ctrlKey||[1,2].includes(S.button))&&(u.isDragging=!0,u[c.value.axis]=S.currentTarget[c.value.offset]-(S[c.value.client]-S.currentTarget.getBoundingClientRect()[c.value.direction]),t("start-move"),g())},b=()=>{u.isDragging=!1,u[c.value.axis]=0,t("stop-move"),y()},_=S=>{const{isDragging:A}=u;if(!A||!o.value||!i.value)return;const I=u[c.value.axis];if(!I)return;Ll(s);const D=(i.value.getBoundingClientRect()[c.value.direction]-S[c.value.client])*-1,O=o.value[c.value.offset]-I,V=D-O;s=Os(()=>{u.traveled=Math.max(e.startGap,Math.min(V,m.value)),t("scroll",V,m.value)})},w=S=>{const A=Math.abs(S.target.getBoundingClientRect()[c.value.direction]-S[c.value.client]),I=o.value[c.value.offset]/2,D=A-I;u.traveled=Math.max(0,Math.min(D,m.value)),t("scroll",D,m.value)};return Ie(()=>e.scrollFrom,S=>{u.isDragging||(u.traveled=Math.ceil(S*m.value))}),fn(()=>{y()}),()=>lt("div",{role:"presentation",ref:i,class:[r.b(),e.class,(e.alwaysOn||u.isDragging)&&"always-on"],style:p.value,onMousedown:ft(w,["stop","prevent"]),onTouchstartPrevent:T},lt("div",{ref:o,class:a.e("thumb"),style:v.value,onMousedown:T},[]))}}),y3=({name:e,getOffset:t,getItemSize:n,getItemOffset:r,getEstimatedTotalSize:a,getStartIndexForOffset:i,getStopIndexForStartIndex:o,initCache:s,clearCache:l,validateProps:u})=>J({name:e??"ElVirtualList",props:h3,emits:[km,Am],setup(c,{emit:d,expose:p}){u(c);const h=Mt(),v=Le("vl"),m=z(s(c,h)),g=d3(),y=z(),T=z(),b=z(),_=z({isScrolling:!1,scrollDir:"forward",scrollOffset:st(c.initScrollOffset)?c.initScrollOffset:0,updateRequested:!1,isScrollbarDragging:!1,scrollbarAlwaysOn:c.scrollbarAlwaysOn}),w=k(()=>{const{total:ne,cache:be}=c,{isScrolling:_e,scrollDir:ve,scrollOffset:te}=f(_);if(ne===0)return[0,0,0,0];const me=i(c,te,f(m)),pe=o(c,me,te,f(m)),Fe=!_e||ve===Dm?Math.max(1,be):1,Pe=!_e||ve===Eu?Math.max(1,be):1;return[Math.max(0,me-Fe),Math.max(0,Math.min(ne-1,pe+Pe)),me,pe]}),S=k(()=>a(c,f(m))),A=k(()=>Pf(c.layout)),I=k(()=>[{position:"relative",[`overflow-${A.value?"x":"y"}`]:"scroll",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:c.direction,height:st(c.height)?`${c.height}px`:c.height,width:st(c.width)?`${c.width}px`:c.width},c.style]),D=k(()=>{const ne=f(S),be=f(A);return{height:be?"100%":`${ne}px`,pointerEvents:f(_).isScrolling?"none":void 0,width:be?`${ne}px`:"100%"}}),O=k(()=>A.value?c.width:c.height),{onWheel:V}=Rre({atStartEdge:k(()=>_.value.scrollOffset<=0),atEndEdge:k(()=>_.value.scrollOffset>=S.value),layout:k(()=>c.layout)},ne=>{var be,_e;(_e=(be=b.value).onMouseUp)==null||_e.call(be),j(Math.min(_.value.scrollOffset+ne,S.value-O.value))});ln(y,"wheel",V,{passive:!1});const N=()=>{const{total:ne}=c;if(ne>0){const[te,me,pe,Fe]=f(w);d(km,te,me,pe,Fe)}const{scrollDir:be,scrollOffset:_e,updateRequested:ve}=f(_);d(Am,be,_e,ve)},K=ne=>{const{clientHeight:be,scrollHeight:_e,scrollTop:ve}=ne.currentTarget,te=f(_);if(te.scrollOffset===ve)return;const me=Math.max(0,Math.min(ve,_e-be));_.value={...te,isScrolling:!0,scrollDir:vl(te.scrollOffset,me),scrollOffset:me,updateRequested:!1},it(X)},Y=ne=>{const{clientWidth:be,scrollLeft:_e,scrollWidth:ve}=ne.currentTarget,te=f(_);if(te.scrollOffset===_e)return;const{direction:me}=c;let pe=_e;if(me===Vu)switch(Pm()){case If:{pe=-_e;break}case c2:{pe=ve-be-_e;break}}pe=Math.max(0,Math.min(pe,ve-be)),_.value={...te,isScrolling:!0,scrollDir:vl(te.scrollOffset,pe),scrollOffset:pe,updateRequested:!1},it(X)},q=ne=>{f(A)?Y(ne):K(ne),N()},$=(ne,be)=>{const _e=(S.value-O.value)/be*ne;j(Math.min(S.value-O.value,_e))},j=ne=>{ne=Math.max(ne,0),ne!==f(_).scrollOffset&&(_.value={...f(_),scrollOffset:ne,scrollDir:vl(f(_).scrollOffset,ne),updateRequested:!0},it(X))},W=(ne,be=Ya)=>{const{scrollOffset:_e}=f(_);ne=Math.max(0,Math.min(ne,c.total-1)),j(t(c,ne,be,_e,f(m)))},H=ne=>{const{direction:be,itemSize:_e,layout:ve}=c,te=g.value(l&&_e,l&&ve,l&&be);let me;if(Yt(te,String(ne)))me=te[ne];else{const pe=r(c,ne,f(m)),Fe=n(c,ne,f(m)),Pe=f(A),ye=be===Vu,Z=Pe?pe:0;te[ne]=me={position:"absolute",left:ye?void 0:`${Z}px`,right:ye?`${Z}px`:void 0,top:Pe?0:`${pe}px`,height:Pe?"100%":`${Fe}px`,width:Pe?`${Fe}px`:"100%"}}return me},X=()=>{_.value.isScrolling=!1,it(()=>{g.value(-1,null,null)})},re=()=>{const ne=y.value;ne&&(ne.scrollTop=0)};ht(()=>{if(!Wt)return;const{initScrollOffset:ne}=c,be=f(y);st(ne)&&be&&(f(A)?be.scrollLeft=ne:be.scrollTop=ne),N()}),Di(()=>{const{direction:ne,layout:be}=c,{scrollOffset:_e,updateRequested:ve}=f(_),te=f(y);if(ve&&te)if(be===ic)if(ne===Vu)switch(Pm()){case If:{te.scrollLeft=-_e;break}case u2:{te.scrollLeft=_e;break}default:{const{clientWidth:me,scrollWidth:pe}=te;te.scrollLeft=pe-me-_e;break}}else te.scrollLeft=_e;else te.scrollTop=_e}),P_(()=>{f(y).scrollTop=f(_).scrollOffset});const le={ns:v,clientSize:O,estimatedTotalSize:S,windowStyle:I,windowRef:y,innerRef:T,innerStyle:D,itemsToRender:w,scrollbarRef:b,states:_,getItemStyle:H,onScroll:q,onScrollbarScroll:$,onWheel:V,scrollTo:j,scrollToItem:W,resetScrollTop:re};return p({windowRef:y,innerRef:T,getItemStyleCache:g,scrollTo:j,scrollToItem:W,resetScrollTop:re,states:_}),le},render(c){var d;const{$slots:p,className:h,clientSize:v,containerElement:m,data:g,getItemStyle:y,innerElement:T,itemsToRender:b,innerStyle:_,layout:w,total:S,onScroll:A,onScrollbarScroll:I,states:D,useIsScrolling:O,windowStyle:V,ns:N}=c,[K,Y]=b,q=Lt(m),$=Lt(T),j=[];if(S>0)for(let re=K;re<=Y;re++)j.push(lt(Ge,{key:re},(d=p.default)==null?void 0:d.call(p,{data:g,index:re,isScrolling:O?D.isScrolling:void 0,style:y(re)})));const W=[lt($,{style:_,ref:"innerRef"},rt($)?j:{default:()=>j})],H=lt(ab,{ref:"scrollbarRef",clientSize:v,layout:w,onScroll:I,ratio:v*100/this.estimatedTotalSize,scrollFrom:D.scrollOffset/(this.estimatedTotalSize-v),total:S}),X=lt(q,{class:[N.e("window"),h],style:V,onScroll:A,ref:"windowRef",key:0},rt(q)?[W]:{default:()=>[W]});return lt("div",{key:0,class:[N.e("wrapper"),D.scrollbarAlwaysOn?"always-on":""]},[X,H])}}),b3=y3({name:"ElFixedSizeList",getItemOffset:({itemSize:e},t)=>t*e,getItemSize:({itemSize:e})=>e,getEstimatedTotalSize:({total:e,itemSize:t})=>t*e,getOffset:({height:e,total:t,itemSize:n,layout:r,width:a},i,o,s)=>{const l=Pf(r)?a:e,u=Math.max(0,t*n-l),c=Math.min(u,i*n),d=Math.max(0,(i+1)*n-l);switch(o===Yv&&(s>=d-l&&s<=c+l?o=Ya:o=Ki),o){case Af:return c;case Df:return d;case Ki:{const p=Math.round(d+(c-d)/2);return p<Math.ceil(l/2)?0:p>u+Math.floor(l/2)?u:p}case Ya:default:return s>=d&&s<=c?s:s<d?d:c}},getStartIndexForOffset:({total:e,itemSize:t},n)=>Math.max(0,Math.min(e-1,Math.floor(n/t))),getStopIndexForStartIndex:({height:e,total:t,itemSize:n,layout:r,width:a},i,o)=>{const s=i*n,l=Pf(r)?a:e,u=Math.ceil((l+o-s)/n);return Math.max(0,Math.min(t-1,i+u-1))},initCache(){},clearCache:!0,validateProps(){}}),xu=(e,t,n)=>{const{itemSize:r}=e,{items:a,lastVisitedIndex:i}=n;if(t>i){let o=0;if(i>=0){const s=a[i];o=s.offset+s.size}for(let s=i+1;s<=t;s++){const l=r(s);a[s]={offset:o,size:l},o+=l}n.lastVisitedIndex=t}return a[t]},Fre=(e,t,n)=>{const{items:r,lastVisitedIndex:a}=t;return(a>0?r[a].offset:0)>=n?_3(e,t,0,a,n):$re(e,t,Math.max(0,a),n)},_3=(e,t,n,r,a)=>{for(;n<=r;){const i=n+Math.floor((r-n)/2),o=xu(e,i,t).offset;if(o===a)return i;o<a?n=i+1:o>a&&(r=i-1)}return Math.max(0,n-1)},$re=(e,t,n,r)=>{const{total:a}=e;let i=1;for(;n<a&&xu(e,n,t).offset<r;)n+=i,i*=2;return _3(e,t,Math.floor(n/2),Math.min(n,a-1),r)},yE=({total:e},{items:t,estimatedItemSize:n,lastVisitedIndex:r})=>{let a=0;if(r>=e&&(r=e-1),r>=0){const s=t[r];a=s.offset+s.size}const o=(e-r-1)*n;return a+o},Bre=y3({name:"ElDynamicSizeList",getItemOffset:(e,t,n)=>xu(e,t,n).offset,getItemSize:(e,t,{items:n})=>n[t].size,getEstimatedTotalSize:yE,getOffset:(e,t,n,r,a)=>{const{height:i,layout:o,width:s}=e,l=Pf(o)?s:i,u=xu(e,t,a),c=yE(e,a),d=Math.max(0,Math.min(c-l,u.offset)),p=Math.max(0,u.offset-l+u.size);switch(n===Yv&&(r>=p-l&&r<=d+l?n=Ya:n=Ki),n){case Af:return d;case Df:return p;case Ki:return Math.round(p+(d-p)/2);case Ya:default:return r>=p&&r<=d?r:r<p?p:d}},getStartIndexForOffset:(e,t,n)=>Fre(e,n,t),getStopIndexForStartIndex:(e,t,n,r)=>{const{height:a,total:i,layout:o,width:s}=e,l=Pf(o)?s:a,u=xu(e,t,r),c=n+l;let d=u.offset+u.size,p=t;for(;p<i-1&&d<c;)p++,d+=xu(e,p,r).size;return p},initCache({estimatedItemSize:e=Jy},t){const n={items:{},estimatedItemSize:e,lastVisitedIndex:-1};return n.clearCacheAfterIndex=(r,a=!0)=>{var i,o;n.lastVisitedIndex=Math.min(n.lastVisitedIndex,r-1),(i=t.exposed)==null||i.getItemStyleCache(-1),a&&((o=t.proxy)==null||o.$forceUpdate())},n},clearCache:!1,validateProps:({itemSize:e})=>{}}),Vre={loading:Boolean,data:{type:Array,required:!0},hoveringIndex:Number,width:Number};var Ure=J({name:"ElSelectDropdown",props:Vre,setup(e,{slots:t,expose:n}){const r=Qe(s2),a=Le("select"),{getLabel:i,getValue:o,getDisabled:s}=Gv(r.props),l=z([]),u=z(),c=k(()=>e.data.length);Ie(()=>c.value,()=>{var V,N;(N=(V=r.tooltipRef.value).updatePopper)==null||N.call(V)});const d=k(()=>Xt(r.props.estimatedOptionHeight)),p=k(()=>d.value?{itemSize:r.props.itemHeight}:{estimatedSize:r.props.estimatedOptionHeight,itemSize:V=>l.value[V]}),h=(V=[],N)=>{const{props:{valueKey:K}}=r;return It(N)?V&&V.some(Y=>un(jn(Y,K))===jn(N,K)):V.includes(N)},v=(V,N)=>{if(It(N)){const{valueKey:K}=r.props;return jn(V,K)===jn(N,K)}else return V===N},m=(V,N)=>r.props.multiple?h(V,o(N)):v(V,o(N)),g=(V,N)=>{const{disabled:K,multiple:Y,multipleLimit:q}=r.props;return K||!N&&(Y?q>0&&V.length>=q:!1)},y=V=>e.hoveringIndex===V;n({listRef:u,isSized:d,isItemDisabled:g,isItemHovering:y,isItemSelected:m,scrollToItem:V=>{const N=u.value;N&&N.scrollToItem(V)},resetScrollTop:()=>{const V=u.value;V&&V.resetScrollTop()}});const w=V=>{const{index:N,data:K,style:Y}=V,q=f(d),{itemSize:$,estimatedSize:j}=f(p),{modelValue:W}=r.props,{onSelect:H,onHover:X}=r,re=K[N];if(re.type==="Group")return E(yre,{item:re,style:Y,height:q?$:j},null);const le=m(W,re),ne=g(W,le),be=y(N);return E(xre,Ft(V,{selected:le,disabled:s(re)||ne,created:!!re.created,hovering:be,item:re,onSelect:H,onHover:X}),{default:_e=>{var ve;return((ve=t.default)==null?void 0:ve.call(t,_e))||E("span",null,[i(re)])}})},{onKeyboardNavigate:S,onKeyboardSelect:A}=r,I=()=>{S("forward")},D=()=>{S("backward")},O=V=>{const{code:N}=V,{tab:K,esc:Y,down:q,up:$,enter:j,numpadEnter:W}=Ye;switch([Y,q,$,j,W].includes(N)&&(V.preventDefault(),V.stopPropagation()),N){case K:case Y:break;case q:I();break;case $:D();break;case j:case W:A();break}};return()=>{var V,N,K,Y;const{data:q,width:$}=e,{height:j,multiple:W,scrollbarAlwaysOn:H}=r.props,X=k(()=>bm?!0:H),re=f(d)?b3:Bre;return E("div",{class:[a.b("dropdown"),a.is("multiple",W)],style:{width:`${$}px`}},[(V=t.header)==null?void 0:V.call(t),((N=t.loading)==null?void 0:N.call(t))||((K=t.empty)==null?void 0:K.call(t))||E(re,Ft({ref:u},f(p),{className:a.be("dropdown","list"),scrollbarAlwaysOn:X.value,data:q,height:j,width:$,total:q.length,onKeydown:O}),{default:le=>E(w,le,null)}),(Y=t.footer)==null?void 0:Y.call(t)])}}});function Hre(e,t){const{aliasProps:n,getLabel:r,getValue:a}=Gv(e),i=z(0),o=z(),s=k(()=>e.allowCreate&&e.filterable);function l(h){const v=m=>r(m)===h;return e.options&&e.options.some(v)||t.createdOptions.some(v)}function u(h){s.value&&(e.multiple&&h.created?i.value++:o.value=h)}function c(h){if(s.value)if(h&&h.length>0){if(l(h))return;const v={[n.value.value]:h,[n.value.label]:h,created:!0,[n.value.disabled]:!1};t.createdOptions.length>=i.value?t.createdOptions[i.value]=v:t.createdOptions.push(v)}else if(e.multiple)t.createdOptions.length=i.value;else{const v=o.value;t.createdOptions.length=0,v&&v.created&&t.createdOptions.push(v)}}function d(h){if(!s.value||!h||!h.created||h.created&&e.reserveKeyword&&t.inputValue===r(h))return;const v=t.createdOptions.findIndex(m=>a(m)===a(h));~v&&(t.createdOptions.splice(v,1),i.value--)}function p(){s.value&&(t.createdOptions.length=0,i.value=0)}return{createNewOption:c,removeNewOption:d,selectNewOption:u,clearAllNewOption:p}}const zre=(e,t)=>{const{t:n}=Kt(),r=Le("select"),a=Le("input"),{form:i,formItem:o}=Or(),{inputId:s}=si(e,{formItemContext:o}),{aliasProps:l,getLabel:u,getValue:c,getDisabled:d,getOptions:p}=Gv(e),{valueOnClear:h,isEmptyValue:v}=Mv(e),m=Ct({inputValue:"",cachedOptions:[],createdOptions:[],hoveringIndex:-1,inputHovering:!1,selectionWidth:0,collapseItemWidth:0,previousQuery:null,previousValue:void 0,selectedLabel:"",menuVisibleOnFocus:!1,isBeforeHide:!1}),g=z(-1),y=z(),T=z(),b=z(),_=z(),w=z(),S=z(),A=z(),I=z(),D=z(),O=z(),{isComposing:V,handleCompositionStart:N,handleCompositionEnd:K,handleCompositionUpdate:Y}=dp({afterComposition:qe=>an(qe)}),{wrapperRef:q,isFocused:$,handleBlur:j}=Ws(w,{beforeFocus(){return le.value},afterFocus(){e.automaticDropdown&&!re.value&&(re.value=!0,m.menuVisibleOnFocus=!0)},beforeBlur(qe){var bt,Ht;return((bt=b.value)==null?void 0:bt.isFocusInsideContent(qe))||((Ht=_.value)==null?void 0:Ht.isFocusInsideContent(qe))},afterBlur(){re.value=!1,m.menuVisibleOnFocus=!1}}),W=k(()=>Z("")),H=k(()=>e.loading?!1:e.options.length>0||m.createdOptions.length>0),X=z([]),re=z(!1),le=k(()=>e.disabled||(i==null?void 0:i.disabled)),ne=k(()=>{var qe;return(qe=i==null?void 0:i.statusIcon)!=null?qe:!1}),be=k(()=>{const qe=X.value.length*e.itemHeight;return qe>e.height?e.height:qe}),_e=k(()=>e.multiple?Be(e.modelValue)&&e.modelValue.length>0:!v(e.modelValue)),ve=k(()=>e.clearable&&!le.value&&m.inputHovering&&_e.value),te=k(()=>e.remote&&e.filterable?"":co),me=k(()=>te.value&&r.is("reverse",re.value)),pe=k(()=>(o==null?void 0:o.validateState)||""),Fe=k(()=>{if(pe.value)return $v[pe.value]}),Pe=k(()=>e.remote?300:0),ye=k(()=>e.loading?e.loadingText||n("el.select.loading"):e.remote&&!m.inputValue&&!H.value?!1:e.filterable&&m.inputValue&&H.value&&X.value.length===0?e.noMatchText||n("el.select.noMatch"):H.value?null:e.noDataText||n("el.select.noData")),Z=qe=>{const bt=new RegExp(N1(qe),"i"),Ht=e.filterable&&ot(e.filterMethod),Gt=e.filterable&&e.remote&&ot(e.remoteMethod),Gn=jr=>Ht||Gt?!0:qe?bt.test(u(jr)||""):!0;return e.loading?[]:[...m.createdOptions,...e.options].reduce((jr,za)=>{const bo=p(za);if(Be(bo)){const _o=bo.filter(Gn);_o.length>0&&jr.push({label:u(za),type:"Group"},..._o)}else(e.remote||Gn(za))&&jr.push(za);return jr},[])},ie=()=>{X.value=Z(m.inputValue)},Ce=k(()=>{const qe=new Map;return W.value.forEach((bt,Ht)=>{qe.set(Tn(c(bt)),{option:bt,index:Ht})}),qe}),$e=k(()=>{const qe=new Map;return X.value.forEach((bt,Ht)=>{qe.set(Tn(c(bt)),{option:bt,index:Ht})}),qe}),Se=k(()=>X.value.every(qe=>d(qe))),De=Kn(),xe=k(()=>De.value==="small"?"small":"default"),Ve=()=>{var qe;if(st(e.fitInputWidth)){g.value=e.fitInputWidth;return}const bt=((qe=y.value)==null?void 0:qe.offsetWidth)||200;!e.fitInputWidth&&H.value?it(()=>{g.value=Math.max(bt,ze())}):g.value=bt},ze=()=>{var qe,bt;const Gt=document.createElement("canvas").getContext("2d"),Gn=r.be("dropdown","item"),za=(((bt=(qe=I.value)==null?void 0:qe.listRef)==null?void 0:bt.innerRef)||document).querySelector(`.${Gn}`);if(za===null||Gt===null)return 0;const bo=getComputedStyle(za),_o=Number.parseFloat(bo.paddingLeft)+Number.parseFloat(bo.paddingRight);return Gt.font=bo.font,X.value.reduce((Mg,Zl)=>{const Ys=Gt.measureText(u(Zl));return Math.max(Ys.width,Mg)},0)+_o},je=()=>{if(!T.value)return 0;const qe=window.getComputedStyle(T.value);return Number.parseFloat(qe.gap||"6px")},nt=k(()=>{const qe=je();return{maxWidth:`${O.value&&e.maxCollapseTags===1?m.selectionWidth-m.collapseItemWidth-qe:m.selectionWidth}px`}}),Ae=k(()=>({maxWidth:`${m.selectionWidth}px`})),Xe=k(()=>Be(e.modelValue)?e.modelValue.length===0&&!m.inputValue:e.filterable?!m.inputValue:!0),ct=k(()=>{var qe;const bt=(qe=e.placeholder)!=null?qe:n("el.select.placeholder");return e.multiple||!_e.value?bt:m.selectedLabel}),Dt=k(()=>{var qe,bt;return(bt=(qe=b.value)==null?void 0:qe.popperRef)==null?void 0:bt.contentRef}),Pt=k(()=>{if(e.multiple){const qe=e.modelValue.length;if(e.modelValue.length>0&&$e.value.has(e.modelValue[qe-1])){const{index:bt}=$e.value.get(e.modelValue[qe-1]);return bt}}else if(!v(e.modelValue)&&$e.value.has(e.modelValue)){const{index:qe}=$e.value.get(e.modelValue);return qe}return-1}),Bt=k({get(){return re.value&&ye.value!==!1},set(qe){re.value=qe}}),Ut=k(()=>e.multiple?e.collapseTags?m.cachedOptions.slice(0,e.maxCollapseTags):m.cachedOptions:[]),Nt=k(()=>e.multiple?e.collapseTags?m.cachedOptions.slice(e.maxCollapseTags):[]:[]),{createNewOption:dt,removeNewOption:Oe,selectNewOption:ce,clearAllNewOption:Me}=Hre(e,m),ae=()=>{le.value||(m.menuVisibleOnFocus?m.menuVisibleOnFocus=!1:re.value=!re.value)},We=()=>{m.inputValue.length>0&&!re.value&&(re.value=!0),dt(m.inputValue),kt(m.inputValue)},St=wa(We,Pe.value),kt=qe=>{m.previousQuery===qe||V.value||(m.previousQuery=qe,e.filterable&&ot(e.filterMethod)?e.filterMethod(qe):e.filterable&&e.remote&&ot(e.remoteMethod)&&e.remoteMethod(qe),e.defaultFirstOption&&(e.filterable||e.remote)&&X.value.length?it(mn):it(xn))},mn=()=>{const qe=X.value.filter(Gt=>!Gt.disabled&&Gt.type!=="Group"),bt=qe.find(Gt=>Gt.created),Ht=qe[0];m.hoveringIndex=qn(X.value,bt||Ht)},fa=qe=>{pr(e.modelValue,qe)||t($t,qe)},bn=qe=>{t(_t,qe),fa(qe),m.previousValue=e.multiple?String(qe):qe},qn=(qe=[],bt)=>{if(!It(bt))return qe.indexOf(bt);const Ht=e.valueKey;let Gt=-1;return qe.some((Gn,jr)=>jn(Gn,Ht)===jn(bt,Ht)?(Gt=jr,!0):!1),Gt},Tn=qe=>It(qe)?jn(qe,e.valueKey):qe,vn=()=>{Ve()},kr=()=>{m.selectionWidth=T.value.getBoundingClientRect().width},Jl=()=>{m.collapseItemWidth=O.value.getBoundingClientRect().width},Gs=()=>{var qe,bt;(bt=(qe=b.value)==null?void 0:qe.updatePopper)==null||bt.call(qe)},xa=()=>{var qe,bt;(bt=(qe=_.value)==null?void 0:qe.updatePopper)==null||bt.call(qe)},gr=qe=>{if(e.multiple){let bt=e.modelValue.slice();const Ht=qn(bt,c(qe));Ht>-1?(bt=[...bt.slice(0,Ht),...bt.slice(Ht+1)],m.cachedOptions.splice(Ht,1),Oe(qe)):(e.multipleLimit<=0||bt.length<e.multipleLimit)&&(bt=[...bt,c(qe)],m.cachedOptions.push(qe),ce(qe),it(()=>{pr(bt,e.modelValue)||m.cachedOptions.pop()})),bn(bt),qe.created&&kt(""),e.filterable&&!e.reserveKeyword&&(m.inputValue="")}else m.selectedLabel=u(qe),bn(c(qe)),re.value=!1,ce(qe),qe.created||Me();us()},ed=(qe,bt)=>{let Ht=e.modelValue.slice();const Gt=qn(Ht,c(bt));Gt>-1&&!le.value&&(Ht=[...e.modelValue.slice(0,Gt),...e.modelValue.slice(Gt+1)],m.cachedOptions.splice(Gt,1),bn(Ht),t("remove-tag",c(bt)),Oe(bt)),qe.stopPropagation(),us()},us=()=>{var qe;(qe=w.value)==null||qe.focus()},go=()=>{var qe;if(re.value){re.value=!1,it(()=>{var bt;return(bt=w.value)==null?void 0:bt.blur()});return}(qe=w.value)==null||qe.blur()},ka=()=>{m.inputValue.length>0?m.inputValue="":re.value=!1},cs=qe=>gI(qe,bt=>!m.cachedOptions.some(Ht=>c(Ht)===bt&&d(Ht))),Sn=qe=>{if(e.multiple&&qe.code!==Ye.delete&&m.inputValue.length===0){qe.preventDefault();const bt=e.modelValue.slice(),Ht=cs(bt);if(Ht<0)return;const Gt=bt[Ht];bt.splice(Ht,1);const Gn=m.cachedOptions[Ht];m.cachedOptions.splice(Ht,1),Oe(Gn),bn(bt),t("remove-tag",Gt)}},td=()=>{let qe;Be(e.modelValue)?qe=[]:qe=h.value,e.multiple?m.cachedOptions=[]:m.selectedLabel="",re.value=!1,bn(qe),t("clear"),Me(),us()},Ke=(qe,bt=void 0)=>{const Ht=X.value;if(!["forward","backward"].includes(qe)||le.value||Ht.length<=0||Se.value||V.value)return;if(!re.value)return ae();bt===void 0&&(bt=m.hoveringIndex);let Gt=-1;qe==="forward"?(Gt=bt+1,Gt>=Ht.length&&(Gt=0)):qe==="backward"&&(Gt=bt-1,(Gt<0||Gt>=Ht.length)&&(Gt=Ht.length-1));const Gn=Ht[Gt];if(d(Gn)||Gn.type==="Group")return Ke(qe,Gt);m.hoveringIndex=Gt,Ni(Gt)},yt=()=>{if(re.value)~m.hoveringIndex&&X.value[m.hoveringIndex]&&gr(X.value[m.hoveringIndex]);else return ae()},Zt=qe=>{m.hoveringIndex=qe??-1},xn=()=>{e.multiple?m.hoveringIndex=X.value.findIndex(qe=>e.modelValue.some(bt=>Tn(bt)===Tn(qe))):m.hoveringIndex=X.value.findIndex(qe=>Tn(qe)===Tn(e.modelValue))},an=qe=>{if(m.inputValue=qe.target.value,e.remote)St();else return We()},Aa=qe=>{if(re.value=!1,$.value){const bt=new FocusEvent("focus",qe);j(bt)}},Dn=()=>(m.isBeforeHide=!1,it(()=>{~Pt.value&&Ni(m.hoveringIndex)})),Ni=qe=>{I.value.scrollToItem(qe)},yo=(qe,bt)=>{const Ht=Tn(qe);if(Ce.value.has(Ht)){const{option:Gt}=Ce.value.get(Ht);return Gt}if(bt&&bt.length){const Gt=bt.find(Gn=>Tn(c(Gn))===Ht);if(Gt)return Gt}return{[l.value.value]:qe,[l.value.label]:qe}},ds=(qe=!1)=>{if(e.multiple)if(e.modelValue.length>0){const bt=m.cachedOptions.slice();m.cachedOptions.length=0,m.previousValue=e.modelValue.toString();for(const Ht of e.modelValue){const Gt=yo(Ht,bt);m.cachedOptions.push(Gt)}}else m.cachedOptions=[],m.previousValue=void 0;else if(_e.value){m.previousValue=e.modelValue;const bt=X.value,Ht=bt.findIndex(Gt=>Tn(c(Gt))===Tn(e.modelValue));~Ht?m.selectedLabel=u(bt[Ht]):(!m.selectedLabel||qe)&&(m.selectedLabel=Tn(e.modelValue))}else m.selectedLabel="",m.previousValue=void 0;Me(),Ve()};return Ie(()=>e.fitInputWidth,()=>{Ve()}),Ie(re,qe=>{qe?(e.persistent||Ve(),kt("")):(m.inputValue="",m.previousQuery=null,m.isBeforeHide=!0,dt("")),t("visible-change",qe)}),Ie(()=>e.modelValue,(qe,bt)=>{var Ht;(!qe||Be(qe)&&qe.length===0||e.multiple&&!pr(qe.toString(),m.previousValue)||!e.multiple&&Tn(qe)!==Tn(m.previousValue))&&ds(!0),!pr(qe,bt)&&e.validateEvent&&((Ht=o==null?void 0:o.validate)==null||Ht.call(o,"change").catch(Gn=>void 0))},{deep:!0}),Ie(()=>e.options,()=>{const qe=w.value;(!qe||qe&&document.activeElement!==qe)&&ds()},{deep:!0,flush:"post"}),Ie(()=>X.value,()=>(Ve(),I.value&&it(I.value.resetScrollTop))),_r(()=>{m.isBeforeHide||ie()}),_r(()=>{const{valueKey:qe,options:bt}=e,Ht=new Map;for(const Gt of bt){const Gn=c(Gt);let jr=Gn;if(It(jr)&&(jr=jn(Gn,qe)),Ht.get(jr))break;Ht.set(jr,!0)}}),ht(()=>{ds()}),In(y,vn),In(T,kr),In(I,Gs),In(q,Gs),In(D,xa),In(O,Jl),{inputId:s,collapseTagSize:xe,currentPlaceholder:ct,expanded:re,emptyText:ye,popupHeight:be,debounce:Pe,allOptions:W,filteredOptions:X,iconComponent:te,iconReverse:me,tagStyle:nt,collapseTagStyle:Ae,popperSize:g,dropdownMenuVisible:Bt,hasModelValue:_e,shouldShowPlaceholder:Xe,selectDisabled:le,selectSize:De,needStatusIcon:ne,showClearBtn:ve,states:m,isFocused:$,nsSelect:r,nsInput:a,inputRef:w,menuRef:I,tagMenuRef:D,tooltipRef:b,tagTooltipRef:_,selectRef:y,wrapperRef:q,selectionRef:T,prefixRef:S,suffixRef:A,collapseItemRef:O,popperRef:Dt,validateState:pe,validateIcon:Fe,showTagList:Ut,collapseTagList:Nt,debouncedOnInputChange:St,deleteTag:ed,getLabel:u,getValue:c,getDisabled:d,getValueKey:Tn,handleClear:td,handleClickOutside:Aa,handleDel:Sn,handleEsc:ka,focus:us,blur:go,handleMenuEnter:Dn,handleResize:vn,resetSelectionWidth:kr,updateTooltip:Gs,updateTagTooltip:xa,updateOptions:ie,toggleMenu:ae,scrollTo:Ni,onInput:an,onKeyboardNavigate:Ke,onKeyboardSelect:yt,onSelect:gr,onHover:Zt,handleCompositionStart:N,handleCompositionEnd:K,handleCompositionUpdate:Y}},jre=J({name:"ElSelectV2",components:{ElSelectMenu:Ure,ElTag:ai,ElTooltip:ar,ElIcon:et},directives:{ClickOutside:Wo},props:_re,emits:wre,setup(e,{emit:t}){const n=k(()=>{const{modelValue:s,multiple:l}=e,u=l?[]:void 0;return Be(s)?l?s:u:l?u:s}),r=zre(Ct({...mr(e),modelValue:n}),t),{calculatorRef:a,inputStyle:i}=r2();Vt(s2,{props:Ct({...mr(e),height:r.popupHeight,modelValue:n}),expanded:r.expanded,tooltipRef:r.tooltipRef,onSelect:r.onSelect,onHover:r.onHover,onKeyboardNavigate:r.onKeyboardNavigate,onKeyboardSelect:r.onKeyboardSelect});const o=k(()=>e.multiple?r.states.cachedOptions.map(s=>s.label):r.states.selectedLabel);return{...r,modelValue:n,selectedLabel:o,calculatorRef:a,inputStyle:i}}});function Wre(e,t,n,r,a,i){const o=Rt("el-tag"),s=Rt("el-tooltip"),l=Rt("el-icon"),u=Rt("el-select-menu"),c=Tv("click-outside");return gt((x(),U("div",{ref:"selectRef",class:F([e.nsSelect.b(),e.nsSelect.m(e.selectSize)]),onMouseenter:d=>e.states.inputHovering=!0,onMouseleave:d=>e.states.inputHovering=!1},[E(s,{ref:"tooltipRef",visible:e.dropdownMenuVisible,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"popper-options":e.popperOptions,"fallback-placements":e.fallbackPlacements,effect:e.effect,placement:e.placement,pure:"",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,trigger:"click",persistent:e.persistent,"append-to":e.appendTo,"show-arrow":e.showArrow,offset:e.offset,onBeforeShow:e.handleMenuEnter,onHide:d=>e.states.isBeforeHide=!1},{default:P(()=>[M("div",{ref:"wrapperRef",class:F([e.nsSelect.e("wrapper"),e.nsSelect.is("focused",e.isFocused),e.nsSelect.is("hovering",e.states.inputHovering),e.nsSelect.is("filterable",e.filterable),e.nsSelect.is("disabled",e.selectDisabled)]),onClick:ft(e.toggleMenu,["prevent"])},[e.$slots.prefix?(x(),U("div",{key:0,ref:"prefixRef",class:F(e.nsSelect.e("prefix"))},[fe(e.$slots,"prefix")],2)):oe("v-if",!0),M("div",{ref:"selectionRef",class:F([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.modelValue.length)])},[e.multiple?fe(e.$slots,"tag",{key:0},()=>[(x(!0),U(Ge,null,mt(e.showTagList,d=>(x(),U("div",{key:e.getValueKey(e.getValue(d)),class:F(e.nsSelect.e("selected-item"))},[E(o,{closable:!e.selectDisabled&&!e.getDisabled(d),size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:tt(e.tagStyle),onClose:p=>e.deleteTag(p,d)},{default:P(()=>[M("span",{class:F(e.nsSelect.e("tags-text"))},[fe(e.$slots,"label",{label:e.getLabel(d),value:e.getValue(d)},()=>[we(de(e.getLabel(d)),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),e.collapseTags&&e.modelValue.length>e.maxCollapseTags?(x(),he(s,{key:0,ref:"tagTooltipRef",disabled:e.dropdownMenuVisible||!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:e.teleported},{default:P(()=>[M("div",{ref:"collapseItemRef",class:F(e.nsSelect.e("selected-item"))},[E(o,{closable:!1,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,style:tt(e.collapseTagStyle),"disable-transitions":""},{default:P(()=>[M("span",{class:F(e.nsSelect.e("tags-text"))}," + "+de(e.modelValue.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:P(()=>[M("div",{ref:"tagMenuRef",class:F(e.nsSelect.e("selection"))},[(x(!0),U(Ge,null,mt(e.collapseTagList,d=>(x(),U("div",{key:e.getValueKey(e.getValue(d)),class:F(e.nsSelect.e("selected-item"))},[E(o,{class:"in-tooltip",closable:!e.selectDisabled&&!e.getDisabled(d),size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",onClose:p=>e.deleteTag(p,d)},{default:P(()=>[M("span",{class:F(e.nsSelect.e("tags-text"))},[fe(e.$slots,"label",{label:e.getLabel(d),value:e.getValue(d)},()=>[we(de(e.getLabel(d)),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","effect","teleported"])):oe("v-if",!0)]):oe("v-if",!0),M("div",{class:F([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable)])},[gt(M("input",{id:e.inputId,ref:"inputRef","onUpdate:modelValue":d=>e.states.inputValue=d,style:tt(e.inputStyle),autocomplete:e.autocomplete,tabindex:e.tabindex,"aria-autocomplete":"list","aria-haspopup":"listbox",autocapitalize:"off","aria-expanded":e.expanded,"aria-label":e.ariaLabel,class:F([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,role:"combobox",readonly:!e.filterable,spellcheck:"false",type:"text",name:e.name,onInput:e.onInput,onCompositionstart:e.handleCompositionStart,onCompositionupdate:e.handleCompositionUpdate,onCompositionend:e.handleCompositionEnd,onKeydown:[sn(ft(d=>e.onKeyboardNavigate("backward"),["stop","prevent"]),["up"]),sn(ft(d=>e.onKeyboardNavigate("forward"),["stop","prevent"]),["down"]),sn(ft(e.onKeyboardSelect,["stop","prevent"]),["enter"]),sn(ft(e.handleEsc,["stop","prevent"]),["esc"]),sn(ft(e.handleDel,["stop"]),["delete"])],onClick:ft(e.toggleMenu,["stop"])},null,46,["id","onUpdate:modelValue","autocomplete","tabindex","aria-expanded","aria-label","disabled","readonly","name","onInput","onCompositionstart","onCompositionupdate","onCompositionend","onKeydown","onClick"]),[[no,e.states.inputValue]]),e.filterable?(x(),U("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:F(e.nsSelect.e("input-calculator")),textContent:de(e.states.inputValue)},null,10,["textContent"])):oe("v-if",!0)],2),e.shouldShowPlaceholder?(x(),U("div",{key:1,class:F([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[e.hasModelValue?fe(e.$slots,"label",{key:0,label:e.currentPlaceholder,value:e.modelValue},()=>[M("span",null,de(e.currentPlaceholder),1)]):(x(),U("span",{key:1},de(e.currentPlaceholder),1))],2)):oe("v-if",!0)],2),M("div",{ref:"suffixRef",class:F(e.nsSelect.e("suffix"))},[e.iconComponent?gt((x(),he(l,{key:0,class:F([e.nsSelect.e("caret"),e.nsInput.e("icon"),e.iconReverse])},{default:P(()=>[(x(),he(Lt(e.iconComponent)))]),_:1},8,["class"])),[[zt,!e.showClearBtn]]):oe("v-if",!0),e.showClearBtn&&e.clearIcon?(x(),he(l,{key:1,class:F([e.nsSelect.e("caret"),e.nsInput.e("icon"),e.nsSelect.e("clear")]),onClick:ft(e.handleClear,["prevent","stop"])},{default:P(()=>[(x(),he(Lt(e.clearIcon)))]),_:1},8,["class","onClick"])):oe("v-if",!0),e.validateState&&e.validateIcon&&e.needStatusIcon?(x(),he(l,{key:2,class:F([e.nsInput.e("icon"),e.nsInput.e("validateIcon"),e.nsInput.is("loading",e.validateState==="validating")])},{default:P(()=>[(x(),he(Lt(e.validateIcon)))]),_:1},8,["class"])):oe("v-if",!0)],2)],10,["onClick"])]),content:P(()=>[E(u,{ref:"menuRef",data:e.filteredOptions,width:e.popperSize,"hovering-index":e.states.hoveringIndex,"scrollbar-always-on":e.scrollbarAlwaysOn},Ua({default:P(d=>[fe(e.$slots,"default",Ra(to(d)))]),_:2},[e.$slots.header?{name:"header",fn:P(()=>[M("div",{class:F(e.nsSelect.be("dropdown","header"))},[fe(e.$slots,"header")],2)])}:void 0,e.$slots.loading&&e.loading?{name:"loading",fn:P(()=>[M("div",{class:F(e.nsSelect.be("dropdown","loading"))},[fe(e.$slots,"loading")],2)])}:e.loading||e.filteredOptions.length===0?{name:"empty",fn:P(()=>[M("div",{class:F(e.nsSelect.be("dropdown","empty"))},[fe(e.$slots,"empty",{},()=>[M("span",null,de(e.emptyText),1)])],2)])}:void 0,e.$slots.footer?{name:"footer",fn:P(()=>[M("div",{class:F(e.nsSelect.be("dropdown","footer"))},[fe(e.$slots,"footer")],2)])}:void 0]),1032,["data","width","hovering-index","scrollbar-always-on"])]),_:3},8,["visible","teleported","popper-class","popper-options","fallback-placements","effect","placement","transition","persistent","append-to","show-arrow","offset","onBeforeShow","onHide"])],42,["onMouseenter","onMouseleave"])),[[c,e.handleClickOutside,e.popperRef]])}var Kre=He(jre,[["render",Wre],["__file","select.vue"]]);const T3=Et(Kre),qre=Ue({animated:{type:Boolean,default:!1},count:{type:Number,default:1},rows:{type:Number,default:3},loading:{type:Boolean,default:!0},throttle:{type:ue([Number,Object])}}),Gre=Ue({variant:{type:String,values:["circle","rect","h1","h3","text","caption","p","image","button"],default:"text"}}),Yre=J({name:"ElSkeletonItem"}),Xre=J({...Yre,props:Gre,setup(e){const t=Le("skeleton");return(n,r)=>(x(),U("div",{class:F([f(t).e("item"),f(t).e(n.variant)])},[n.variant==="image"?(x(),he(f(Hz),{key:0})):oe("v-if",!0)],2))}});var Om=He(Xre,[["__file","skeleton-item.vue"]]);const Qre=(e,t=0)=>{if(t===0)return e;const n=It(t)&&!!t.initVal,r=z(n);let a=null;const i=s=>{if(Xt(s)){r.value=e.value;return}a&&clearTimeout(a),a=setTimeout(()=>{r.value=e.value},s)},o=s=>{s==="leading"?st(t)?i(t):i(t.leading):It(t)?i(t.trailing):r.value=!1};return ht(()=>o("leading")),Ie(()=>e.value,s=>{o(s?"leading":"trailing")}),r},Jre=J({name:"ElSkeleton"}),Zre=J({...Jre,props:qre,setup(e,{expose:t}){const n=e,r=Le("skeleton"),a=Qre(rn(n,"loading"),n.throttle);return t({uiLoading:a}),(i,o)=>f(a)?(x(),U("div",Ft({key:0,class:[f(r).b(),f(r).is("animated",i.animated)]},i.$attrs),[(x(!0),U(Ge,null,mt(i.count,s=>(x(),U(Ge,{key:s},[f(a)?fe(i.$slots,"template",{key:s},()=>[E(Om,{class:F(f(r).is("first")),variant:"p"},null,8,["class"]),(x(!0),U(Ge,null,mt(i.rows,l=>(x(),he(Om,{key:l,class:F([f(r).e("paragraph"),f(r).is("last",l===i.rows&&i.rows>1)]),variant:"p"},null,8,["class"]))),128))]):oe("v-if",!0)],64))),128))],16)):fe(i.$slots,"default",Ra(Ft({key:1},i.$attrs)))}});var eae=He(Zre,[["__file","skeleton.vue"]]);const tae=Et(eae,{SkeletonItem:Om}),nae=On(Om),w3=Symbol("sliderContextKey"),rae=Ue({modelValue:{type:ue([Number,Array]),default:0},id:{type:String,default:void 0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},showInput:Boolean,showInputControls:{type:Boolean,default:!0},size:Xn,inputSize:Xn,showStops:Boolean,showTooltip:{type:Boolean,default:!0},formatTooltip:{type:ue(Function),default:void 0},disabled:Boolean,range:Boolean,vertical:Boolean,height:String,debounce:{type:Number,default:300},rangeStartLabel:{type:String,default:void 0},rangeEndLabel:{type:String,default:void 0},formatValueText:{type:ue(Function),default:void 0},tooltipClass:{type:String,default:void 0},placement:{type:String,values:as,default:"top"},marks:{type:ue(Object)},validateEvent:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},...Er(["ariaLabel"])}),b0=e=>st(e)||Be(e)&&e.every(st),aae={[_t]:b0,[hr]:b0,[$t]:b0},iae=Ue({modelValue:{type:Number,default:0},vertical:Boolean,tooltipClass:String,placement:{type:String,values:as,default:"top"}}),oae={[_t]:e=>st(e)},sae=(e,t,n)=>{const r=z(),a=z(!1),i=k(()=>t.value instanceof Function),o=k(()=>i.value&&t.value(e.modelValue)||e.modelValue),s=wa(()=>{n.value&&(a.value=!0)},50),l=wa(()=>{n.value&&(a.value=!1)},50);return{tooltip:r,tooltipVisible:a,formatValue:o,displayTooltip:s,hideTooltip:l}},lae=(e,t,n)=>{const{disabled:r,min:a,max:i,step:o,showTooltip:s,persistent:l,precision:u,sliderSize:c,formatTooltip:d,emitChange:p,resetSize:h,updateDragging:v}=Qe(w3),{tooltip:m,tooltipVisible:g,formatValue:y,displayTooltip:T,hideTooltip:b}=sae(e,d,s),_=z(),w=k(()=>`${(e.modelValue-a.value)/(i.value-a.value)*100}%`),S=k(()=>e.vertical?{bottom:w.value}:{left:w.value}),A=()=>{t.hovering=!0,T()},I=()=>{t.hovering=!1,t.dragging||b()},D=ne=>{r.value||(ne.preventDefault(),H(ne),window.addEventListener("mousemove",X),window.addEventListener("touchmove",X),window.addEventListener("mouseup",re),window.addEventListener("touchend",re),window.addEventListener("contextmenu",re),_.value.focus())},O=ne=>{r.value||(t.newPosition=Number.parseFloat(w.value)+ne/(i.value-a.value)*100,le(t.newPosition),p())},V=()=>{O(-o.value)},N=()=>{O(o.value)},K=()=>{O(-o.value*4)},Y=()=>{O(o.value*4)},q=()=>{r.value||(le(0),p())},$=()=>{r.value||(le(100),p())},j=ne=>{let be=!0;switch(ne.code){case Ye.left:case Ye.down:V();break;case Ye.right:case Ye.up:N();break;case Ye.home:q();break;case Ye.end:$();break;case Ye.pageDown:K();break;case Ye.pageUp:Y();break;default:be=!1;break}be&&ne.preventDefault()},W=ne=>{let be,_e;return ne.type.startsWith("touch")?(_e=ne.touches[0].clientY,be=ne.touches[0].clientX):(_e=ne.clientY,be=ne.clientX),{clientX:be,clientY:_e}},H=ne=>{t.dragging=!0,t.isClick=!0;const{clientX:be,clientY:_e}=W(ne);e.vertical?t.startY=_e:t.startX=be,t.startPosition=Number.parseFloat(w.value),t.newPosition=t.startPosition},X=ne=>{if(t.dragging){t.isClick=!1,T(),h();let be;const{clientX:_e,clientY:ve}=W(ne);e.vertical?(t.currentY=ve,be=(t.startY-t.currentY)/c.value*100):(t.currentX=_e,be=(t.currentX-t.startX)/c.value*100),t.newPosition=t.startPosition+be,le(t.newPosition)}},re=()=>{t.dragging&&(setTimeout(()=>{t.dragging=!1,t.hovering||b(),t.isClick||le(t.newPosition),p()},0),window.removeEventListener("mousemove",X),window.removeEventListener("touchmove",X),window.removeEventListener("mouseup",re),window.removeEventListener("touchend",re),window.removeEventListener("contextmenu",re))},le=async ne=>{if(ne===null||Number.isNaN(+ne))return;ne<0?ne=0:ne>100&&(ne=100);const be=100/((i.value-a.value)/o.value);let ve=Math.round(ne/be)*be*(i.value-a.value)*.01+a.value;ve=Number.parseFloat(ve.toFixed(u.value)),ve!==e.modelValue&&n(_t,ve),!t.dragging&&e.modelValue!==t.oldValue&&(t.oldValue=e.modelValue),await it(),t.dragging&&T(),m.value.updatePopper()};return Ie(()=>t.dragging,ne=>{v(ne)}),ln(_,"touchstart",D,{passive:!1}),{disabled:r,button:_,tooltip:m,tooltipVisible:g,showTooltip:s,persistent:l,wrapperStyle:S,formatValue:y,handleMouseEnter:A,handleMouseLeave:I,onButtonDown:D,onKeyDown:j,setPosition:le}},uae=J({name:"ElSliderButton"}),cae=J({...uae,props:iae,emits:oae,setup(e,{expose:t,emit:n}){const r=e,a=Le("slider"),i=Ct({hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:0,oldValue:r.modelValue}),o=k(()=>c.value?d.value:!1),{disabled:s,button:l,tooltip:u,showTooltip:c,persistent:d,tooltipVisible:p,wrapperStyle:h,formatValue:v,handleMouseEnter:m,handleMouseLeave:g,onButtonDown:y,onKeyDown:T,setPosition:b}=lae(r,i,n),{hovering:_,dragging:w}=mr(i);return t({onButtonDown:y,onKeyDown:T,setPosition:b,hovering:_,dragging:w}),(S,A)=>(x(),U("div",{ref_key:"button",ref:l,class:F([f(a).e("button-wrapper"),{hover:f(_),dragging:f(w)}]),style:tt(f(h)),tabindex:f(s)?-1:0,onMouseenter:f(m),onMouseleave:f(g),onMousedown:f(y),onFocus:f(m),onBlur:f(g),onKeydown:f(T)},[E(f(ar),{ref_key:"tooltip",ref:u,visible:f(p),placement:S.placement,"fallback-placements":["top","bottom","right","left"],"stop-popper-mouse-event":!1,"popper-class":S.tooltipClass,disabled:!f(c),persistent:f(o)},{content:P(()=>[M("span",null,de(f(v)),1)]),default:P(()=>[M("div",{class:F([f(a).e("button"),{hover:f(_),dragging:f(w)}])},null,2)]),_:1},8,["visible","placement","popper-class","disabled","persistent"])],46,["tabindex","onMouseenter","onMouseleave","onMousedown","onFocus","onBlur","onKeydown"]))}});var bE=He(cae,[["__file","button.vue"]]);const dae=Ue({mark:{type:ue([String,Object]),default:void 0}});var fae=J({name:"ElSliderMarker",props:dae,setup(e){const t=Le("slider"),n=k(()=>rt(e.mark)?e.mark:e.mark.label),r=k(()=>rt(e.mark)?void 0:e.mark.style);return()=>lt("div",{class:t.e("marks-text"),style:r.value},n.value)}});const pae=(e,t,n)=>{const{form:r,formItem:a}=Or(),i=cn(),o=z(),s=z(),l={firstButton:o,secondButton:s},u=k(()=>e.disabled||(r==null?void 0:r.disabled)||!1),c=k(()=>Math.min(t.firstValue,t.secondValue)),d=k(()=>Math.max(t.firstValue,t.secondValue)),p=k(()=>e.range?`${100*(d.value-c.value)/(e.max-e.min)}%`:`${100*(t.firstValue-e.min)/(e.max-e.min)}%`),h=k(()=>e.range?`${100*(c.value-e.min)/(e.max-e.min)}%`:"0%"),v=k(()=>e.vertical?{height:e.height}:{}),m=k(()=>e.vertical?{height:p.value,bottom:h.value}:{width:p.value,left:h.value}),g=()=>{i.value&&(t.sliderSize=i.value[`client${e.vertical?"Height":"Width"}`])},y=N=>{const K=e.min+N*(e.max-e.min)/100;if(!e.range)return o;let Y;return Math.abs(c.value-K)<Math.abs(d.value-K)?Y=t.firstValue<t.secondValue?"firstButton":"secondButton":Y=t.firstValue>t.secondValue?"firstButton":"secondButton",l[Y]},T=N=>{const K=y(N);return K.value.setPosition(N),K},b=N=>{t.firstValue=N??e.min,w(e.range?[c.value,d.value]:N??e.min)},_=N=>{t.secondValue=N,e.range&&w([c.value,d.value])},w=N=>{n(_t,N),n(hr,N)},S=async()=>{await it(),n($t,e.range?[c.value,d.value]:e.modelValue)},A=N=>{var K,Y,q,$,j,W;if(u.value||t.dragging)return;g();let H=0;if(e.vertical){const X=(q=(Y=(K=N.touches)==null?void 0:K.item(0))==null?void 0:Y.clientY)!=null?q:N.clientY;H=(i.value.getBoundingClientRect().bottom-X)/t.sliderSize*100}else{const X=(W=(j=($=N.touches)==null?void 0:$.item(0))==null?void 0:j.clientX)!=null?W:N.clientX,re=i.value.getBoundingClientRect().left;H=(X-re)/t.sliderSize*100}if(!(H<0||H>100))return T(H)};return{elFormItem:a,slider:i,firstButton:o,secondButton:s,sliderDisabled:u,minValue:c,maxValue:d,runwayStyle:v,barStyle:m,resetSize:g,setPosition:T,emitChange:S,onSliderWrapperPrevent:N=>{var K,Y;((K=l.firstButton.value)!=null&&K.dragging||(Y=l.secondButton.value)!=null&&Y.dragging)&&N.preventDefault()},onSliderClick:N=>{A(N)&&S()},onSliderDown:async N=>{const K=A(N);K&&(await it(),K.value.onButtonDown(N))},onSliderMarkerDown:N=>{u.value||t.dragging||T(N)},setFirstValue:b,setSecondValue:_}},hae=(e,t,n,r)=>({stops:k(()=>{if(!e.showStops||e.min>e.max)return[];if(e.step===0)return[];const o=(e.max-e.min)/e.step,s=100*e.step/(e.max-e.min),l=Array.from({length:o-1}).map((u,c)=>(c+1)*s);return e.range?l.filter(u=>u<100*(n.value-e.min)/(e.max-e.min)||u>100*(r.value-e.min)/(e.max-e.min)):l.filter(u=>u>100*(t.firstValue-e.min)/(e.max-e.min))}),getStopStyle:o=>e.vertical?{bottom:`${o}%`}:{left:`${o}%`}}),mae=e=>k(()=>e.marks?Object.keys(e.marks).map(Number.parseFloat).sort((n,r)=>n-r).filter(n=>n<=e.max&&n>=e.min).map(n=>({point:n,position:(n-e.min)*100/(e.max-e.min),mark:e.marks[n]})):[]),vae=(e,t,n,r,a,i)=>{const o=u=>{a(_t,u),a(hr,u)},s=()=>e.range?![n.value,r.value].every((u,c)=>u===t.oldValue[c]):e.modelValue!==t.oldValue,l=()=>{var u,c;e.min>e.max&&rr("Slider","min should not be greater than max.");const d=e.modelValue;e.range&&Be(d)?d[1]<e.min?o([e.min,e.min]):d[0]>e.max?o([e.max,e.max]):d[0]<e.min?o([e.min,d[1]]):d[1]>e.max?o([d[0],e.max]):(t.firstValue=d[0],t.secondValue=d[1],s()&&(e.validateEvent&&((u=i==null?void 0:i.validate)==null||u.call(i,"change").catch(p=>void 0)),t.oldValue=d.slice())):!e.range&&st(d)&&!Number.isNaN(d)&&(d<e.min?o(e.min):d>e.max?o(e.max):(t.firstValue=d,s()&&(e.validateEvent&&((c=i==null?void 0:i.validate)==null||c.call(i,"change").catch(p=>void 0)),t.oldValue=d)))};l(),Ie(()=>t.dragging,u=>{u||l()}),Ie(()=>e.modelValue,(u,c)=>{t.dragging||Be(u)&&Be(c)&&u.every((d,p)=>d===c[p])&&t.firstValue===u[0]&&t.secondValue===u[1]||l()},{deep:!0}),Ie(()=>[e.min,e.max],()=>{l()})},gae=(e,t,n)=>{const r=z();return ht(async()=>{e.range?(Be(e.modelValue)?(t.firstValue=Math.max(e.min,e.modelValue[0]),t.secondValue=Math.min(e.max,e.modelValue[1])):(t.firstValue=e.min,t.secondValue=e.max),t.oldValue=[t.firstValue,t.secondValue]):(!st(e.modelValue)||Number.isNaN(e.modelValue)?t.firstValue=e.min:t.firstValue=Math.min(e.max,Math.max(e.min,e.modelValue)),t.oldValue=t.firstValue),ln(window,"resize",n),await it(),n()}),{sliderWrapper:r}},yae=J({name:"ElSlider"}),bae=J({...yae,props:rae,emits:aae,setup(e,{expose:t,emit:n}){const r=e,a=Le("slider"),{t:i}=Kt(),o=Ct({firstValue:0,secondValue:0,oldValue:0,dragging:!1,sliderSize:1}),{elFormItem:s,slider:l,firstButton:u,secondButton:c,sliderDisabled:d,minValue:p,maxValue:h,runwayStyle:v,barStyle:m,resetSize:g,emitChange:y,onSliderWrapperPrevent:T,onSliderClick:b,onSliderDown:_,onSliderMarkerDown:w,setFirstValue:S,setSecondValue:A}=pae(r,o,n),{stops:I,getStopStyle:D}=hae(r,o,p,h),{inputId:O,isLabeledByFormItem:V}=si(r,{formItemContext:s}),N=Kn(),K=k(()=>r.inputSize||N.value),Y=k(()=>r.ariaLabel||i("el.slider.defaultLabel",{min:r.min,max:r.max})),q=k(()=>r.range?r.rangeStartLabel||i("el.slider.defaultRangeStartLabel"):Y.value),$=k(()=>r.formatValueText?r.formatValueText(ne.value):`${ne.value}`),j=k(()=>r.rangeEndLabel||i("el.slider.defaultRangeEndLabel")),W=k(()=>r.formatValueText?r.formatValueText(be.value):`${be.value}`),H=k(()=>[a.b(),a.m(N.value),a.is("vertical",r.vertical),{[a.m("with-input")]:r.showInput}]),X=mae(r);vae(r,o,p,h,n,s);const re=k(()=>{const te=[r.min,r.max,r.step].map(me=>{const pe=`${me}`.split(".")[1];return pe?pe.length:0});return Math.max.apply(null,te)}),{sliderWrapper:le}=gae(r,o,g),{firstValue:ne,secondValue:be,sliderSize:_e}=mr(o),ve=te=>{o.dragging=te};return ln(le,"touchstart",T,{passive:!1}),ln(le,"touchmove",T,{passive:!1}),Vt(w3,{...mr(r),sliderSize:_e,disabled:d,precision:re,emitChange:y,resetSize:g,updateDragging:ve}),t({onSliderClick:b}),(te,me)=>{var pe,Fe;return x(),U("div",{id:te.range?f(O):void 0,ref_key:"sliderWrapper",ref:le,class:F(f(H)),role:te.range?"group":void 0,"aria-label":te.range&&!f(V)?f(Y):void 0,"aria-labelledby":te.range&&f(V)?(pe=f(s))==null?void 0:pe.labelId:void 0},[M("div",{ref_key:"slider",ref:l,class:F([f(a).e("runway"),{"show-input":te.showInput&&!te.range},f(a).is("disabled",f(d))]),style:tt(f(v)),onMousedown:f(_),onTouchstartPassive:f(_)},[M("div",{class:F(f(a).e("bar")),style:tt(f(m))},null,6),E(bE,{id:te.range?void 0:f(O),ref_key:"firstButton",ref:u,"model-value":f(ne),vertical:te.vertical,"tooltip-class":te.tooltipClass,placement:te.placement,role:"slider","aria-label":te.range||!f(V)?f(q):void 0,"aria-labelledby":!te.range&&f(V)?(Fe=f(s))==null?void 0:Fe.labelId:void 0,"aria-valuemin":te.min,"aria-valuemax":te.range?f(be):te.max,"aria-valuenow":f(ne),"aria-valuetext":f($),"aria-orientation":te.vertical?"vertical":"horizontal","aria-disabled":f(d),"onUpdate:modelValue":f(S)},null,8,["id","model-value","vertical","tooltip-class","placement","aria-label","aria-labelledby","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"]),te.range?(x(),he(bE,{key:0,ref_key:"secondButton",ref:c,"model-value":f(be),vertical:te.vertical,"tooltip-class":te.tooltipClass,placement:te.placement,role:"slider","aria-label":f(j),"aria-valuemin":f(ne),"aria-valuemax":te.max,"aria-valuenow":f(be),"aria-valuetext":f(W),"aria-orientation":te.vertical?"vertical":"horizontal","aria-disabled":f(d),"onUpdate:modelValue":f(A)},null,8,["model-value","vertical","tooltip-class","placement","aria-label","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"])):oe("v-if",!0),te.showStops?(x(),U("div",{key:1},[(x(!0),U(Ge,null,mt(f(I),(Pe,ye)=>(x(),U("div",{key:ye,class:F(f(a).e("stop")),style:tt(f(D)(Pe))},null,6))),128))])):oe("v-if",!0),f(X).length>0?(x(),U(Ge,{key:2},[M("div",null,[(x(!0),U(Ge,null,mt(f(X),(Pe,ye)=>(x(),U("div",{key:ye,style:tt(f(D)(Pe.position)),class:F([f(a).e("stop"),f(a).e("marks-stop")])},null,6))),128))]),M("div",{class:F(f(a).e("marks"))},[(x(!0),U(Ge,null,mt(f(X),(Pe,ye)=>(x(),he(f(fae),{key:ye,mark:Pe.mark,style:tt(f(D)(Pe.position)),onMousedown:ft(Z=>f(w)(Pe.position),["stop"])},null,8,["mark","style","onMousedown"]))),128))],2)],64)):oe("v-if",!0)],46,["onMousedown","onTouchstartPassive"]),te.showInput&&!te.range?(x(),he(f(vp),{key:0,ref:"input","model-value":f(ne),class:F(f(a).e("input")),step:te.step,disabled:f(d),controls:te.showInputControls,min:te.min,max:te.max,precision:f(re),debounce:te.debounce,size:f(K),"onUpdate:modelValue":f(S),onChange:f(y)},null,8,["model-value","class","step","disabled","controls","min","max","precision","debounce","size","onUpdate:modelValue","onChange"])):oe("v-if",!0)],10,["id","role","aria-label","aria-labelledby"])}}});var _ae=He(bae,[["__file","slider.vue"]]);const Tae=Et(_ae),wae=Ue({prefixCls:{type:String}}),_E=J({name:"ElSpaceItem",props:wae,setup(e,{slots:t}){const n=Le("space"),r=k(()=>`${e.prefixCls||n.b()}__item`);return()=>lt("div",{class:r.value},fe(t,"default"))}}),TE={small:8,default:12,large:16};function Sae(e){const t=Le("space"),n=k(()=>[t.b(),t.m(e.direction),e.class]),r=z(0),a=z(0),i=k(()=>{const s=e.wrap||e.fill?{flexWrap:"wrap"}:{},l={alignItems:e.alignment},u={rowGap:`${a.value}px`,columnGap:`${r.value}px`};return[s,l,u,e.style]}),o=k(()=>e.fill?{flexGrow:1,minWidth:`${e.fillRatio}%`}:{});return _r(()=>{const{size:s="small",wrap:l,direction:u,fill:c}=e;if(Be(s)){const[d=0,p=0]=s;r.value=d,a.value=p}else{let d;st(s)?d=s:d=TE[s||"small"]||TE.small,(l||c)&&u==="horizontal"?r.value=a.value=d:u==="horizontal"?(r.value=d,a.value=0):(a.value=d,r.value=0)}}),{classes:n,containerStyle:i,itemStyle:o}}const Cae=Ue({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},class:{type:ue([String,Object,Array]),default:""},style:{type:ue([String,Array,Object]),default:""},alignment:{type:ue(String),default:"center"},prefixCls:{type:String},spacer:{type:ue([Object,String,Number,Array]),default:null,validator:e=>wn(e)||st(e)||rt(e)},wrap:Boolean,fill:Boolean,fillRatio:{type:Number,default:100},size:{type:[String,Array,Number],values:uo,validator:e=>st(e)||Be(e)&&e.length===2&&e.every(st)}}),Eae=J({name:"ElSpace",props:Cae,setup(e,{slots:t}){const{classes:n,containerStyle:r,itemStyle:a}=Sae(e);function i(o,s="",l=[]){const{prefixCls:u}=e;return o.forEach((c,d)=>{Ly(c)?Be(c.children)&&c.children.forEach((p,h)=>{Ly(p)&&Be(p.children)?i(p.children,`${s+h}-`,l):l.push(E(_E,{style:a.value,prefixCls:u,key:`nested-${s+h}`},{default:()=>[p]},Ka.PROPS|Ka.STYLE,["style","prefixCls"]))}):KG(c)&&l.push(E(_E,{style:a.value,prefixCls:u,key:`LoopKey${s+d}`},{default:()=>[c]},Ka.PROPS|Ka.STYLE,["style","prefixCls"]))}),l}return()=>{var o;const{spacer:s,direction:l}=e,u=fe(t,"default",{key:0},()=>[]);if(((o=u.children)!=null?o:[]).length===0)return null;if(Be(u.children)){let c=i(u.children);if(s){const d=c.length-1;c=c.reduce((p,h,v)=>{const m=[...p,h];return v!==d&&m.push(E("span",{style:[a.value,l==="vertical"?"width: 100%":null],key:v},[wn(s)?s:we(s,Ka.TEXT)],Ka.STYLE)),m},[])}return E("div",{class:n.value,style:r.value},c,Ka.STYLE|Ka.CLASS)}return u.children}}}),xae=Et(Eae),kae=Ue({decimalSeparator:{type:String,default:"."},groupSeparator:{type:String,default:","},precision:{type:Number,default:0},formatter:Function,value:{type:ue([Number,Object]),default:0},prefix:String,suffix:String,title:String,valueStyle:{type:ue([String,Object,Array])}}),Aae=J({name:"ElStatistic"}),Dae=J({...Aae,props:kae,setup(e,{expose:t}){const n=e,r=Le("statistic"),a=k(()=>{const{value:i,formatter:o,precision:s,decimalSeparator:l,groupSeparator:u}=n;if(ot(o))return o(i);if(!st(i)||Number.isNaN(i))return i;let[c,d=""]=String(i).split(".");return d=d.padEnd(s,"0").slice(0,s>0?s:0),c=c.replace(/\B(?=(\d{3})+(?!\d))/g,u),[c,d].join(d?l:"")});return t({displayValue:a}),(i,o)=>(x(),U("div",{class:F(f(r).b())},[i.$slots.title||i.title?(x(),U("div",{key:0,class:F(f(r).e("head"))},[fe(i.$slots,"title",{},()=>[we(de(i.title),1)])],2)):oe("v-if",!0),M("div",{class:F(f(r).e("content"))},[i.$slots.prefix||i.prefix?(x(),U("div",{key:0,class:F(f(r).e("prefix"))},[fe(i.$slots,"prefix",{},()=>[M("span",null,de(i.prefix),1)])],2)):oe("v-if",!0),M("span",{class:F(f(r).e("number")),style:tt(i.valueStyle)},de(f(a)),7),i.$slots.suffix||i.suffix?(x(),U("div",{key:1,class:F(f(r).e("suffix"))},[fe(i.$slots,"suffix",{},()=>[M("span",null,de(i.suffix),1)])],2)):oe("v-if",!0)],2)],2))}});var Iae=He(Dae,[["__file","statistic.vue"]]);const S3=Et(Iae),Pae=Ue({format:{type:String,default:"HH:mm:ss"},prefix:String,suffix:String,title:String,value:{type:ue([Number,Object]),default:0},valueStyle:{type:ue([String,Object,Array])}}),Oae={finish:()=>!0,[$t]:e=>st(e)},Mae=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]],wE=e=>st(e)?new Date(e).getTime():e.valueOf(),SE=(e,t)=>{let n=e;const r=/\[([^\]]*)]/g;return Mae.reduce((i,[o,s])=>{const l=new RegExp(`${o}+(?![^\\[\\]]*\\])`,"g");if(l.test(i)){const u=Math.floor(n/s);return n-=u*s,i.replace(l,c=>String(u).padStart(c.length,"0"))}return i},t).replace(r,"$1")},Rae=J({name:"ElCountdown"}),Lae=J({...Rae,props:Pae,emits:Oae,setup(e,{expose:t,emit:n}){const r=e;let a;const i=z(0),o=k(()=>SE(i.value,r.format)),s=c=>SE(c,r.format),l=()=>{a&&(Ll(a),a=void 0)},u=()=>{const c=wE(r.value),d=()=>{let p=c-Date.now();n($t,p),p<=0?(p=0,l(),n("finish")):a=Os(d),i.value=p};a=Os(d)};return ht(()=>{i.value=wE(r.value)-Date.now(),Ie(()=>[r.value,r.format],()=>{l(),u()},{immediate:!0})}),fn(()=>{l()}),t({displayValue:o}),(c,d)=>(x(),he(f(S3),{value:i.value,title:c.title,prefix:c.prefix,suffix:c.suffix,"value-style":c.valueStyle,formatter:s},Ua({_:2},[mt(c.$slots,(p,h)=>({name:h,fn:P(()=>[fe(c.$slots,h)])}))]),1032,["value","title","prefix","suffix","value-style"]))}});var Nae=He(Lae,[["__file","countdown.vue"]]);const Fae=Et(Nae),$ae=Ue({space:{type:[Number,String],default:""},active:{type:Number,default:0},direction:{type:String,default:"horizontal",values:["horizontal","vertical"]},alignCenter:{type:Boolean},simple:{type:Boolean},finishStatus:{type:String,values:["wait","process","finish","error","success"],default:"finish"},processStatus:{type:String,values:["wait","process","finish","error","success"],default:"process"}}),Bae={[$t]:(e,t)=>[e,t].every(st)},Vae=J({name:"ElSteps"}),Uae=J({...Vae,props:$ae,emits:Bae,setup(e,{emit:t}){const n=e,r=Le("steps"),{children:a,addChild:i,removeChild:o}=M1(Mt(),"ElStep");return Ie(a,()=>{a.value.forEach((s,l)=>{s.setIndex(l)})}),Vt("ElSteps",{props:n,steps:a,addStep:i,removeStep:o}),Ie(()=>n.active,(s,l)=>{t($t,s,l)}),(s,l)=>(x(),U("div",{class:F([f(r).b(),f(r).m(s.simple?"simple":s.direction)])},[fe(s.$slots,"default")],2))}});var Hae=He(Uae,[["__file","steps.vue"]]);const zae=Ue({title:{type:String,default:""},icon:{type:dn},description:{type:String,default:""},status:{type:String,values:["","wait","process","finish","error","success"],default:""}}),jae=J({name:"ElStep"}),Wae=J({...jae,props:zae,setup(e){const t=e,n=Le("step"),r=z(-1),a=z({}),i=z(""),o=Qe("ElSteps"),s=Mt();ht(()=>{Ie([()=>o.props.active,()=>o.props.processStatus,()=>o.props.finishStatus],([S])=>{_(S)},{immediate:!0})}),fn(()=>{o.removeStep(w.uid)});const l=k(()=>t.status||i.value),u=k(()=>{const S=o.steps.value[r.value-1];return S?S.currentStatus:"wait"}),c=k(()=>o.props.alignCenter),d=k(()=>o.props.direction==="vertical"),p=k(()=>o.props.simple),h=k(()=>o.steps.value.length),v=k(()=>{var S;return((S=o.steps.value[h.value-1])==null?void 0:S.uid)===(s==null?void 0:s.uid)}),m=k(()=>p.value?"":o.props.space),g=k(()=>[n.b(),n.is(p.value?"simple":o.props.direction),n.is("flex",v.value&&!m.value&&!c.value),n.is("center",c.value&&!d.value&&!p.value)]),y=k(()=>{const S={flexBasis:st(m.value)?`${m.value}px`:m.value?m.value:`${100/(h.value-(c.value?0:1))}%`};return d.value||v.value&&(S.maxWidth=`${100/h.value}%`),S}),T=S=>{r.value=S},b=S=>{const A=S==="wait",I={transitionDelay:`${A?"-":""}${150*r.value}ms`},D=S===o.props.processStatus||A?0:100;I.borderWidth=D&&!p.value?"1px":0,I[o.props.direction==="vertical"?"height":"width"]=`${D}%`,a.value=I},_=S=>{S>r.value?i.value=o.props.finishStatus:S===r.value&&u.value!=="error"?i.value=o.props.processStatus:i.value="wait";const A=o.steps.value[r.value-1];A&&A.calcProgress(i.value)},w=Ct({uid:s.uid,currentStatus:l,setIndex:T,calcProgress:b});return o.addStep(w),(S,A)=>(x(),U("div",{style:tt(f(y)),class:F(f(g))},[oe(" icon & line "),M("div",{class:F([f(n).e("head"),f(n).is(f(l))])},[f(p)?oe("v-if",!0):(x(),U("div",{key:0,class:F(f(n).e("line"))},[M("i",{class:F(f(n).e("line-inner")),style:tt(a.value)},null,6)],2)),M("div",{class:F([f(n).e("icon"),f(n).is(S.icon||S.$slots.icon?"icon":"text")])},[fe(S.$slots,"icon",{},()=>[S.icon?(x(),he(f(et),{key:0,class:F(f(n).e("icon-inner"))},{default:P(()=>[(x(),he(Lt(S.icon)))]),_:1},8,["class"])):f(l)==="success"?(x(),he(f(et),{key:1,class:F([f(n).e("icon-inner"),f(n).is("status")])},{default:P(()=>[E(f(sp))]),_:1},8,["class"])):f(l)==="error"?(x(),he(f(et),{key:2,class:F([f(n).e("icon-inner"),f(n).is("status")])},{default:P(()=>[E(f(Ci))]),_:1},8,["class"])):f(p)?oe("v-if",!0):(x(),U("div",{key:3,class:F(f(n).e("icon-inner"))},de(r.value+1),3))])],2)],2),oe(" title & description "),M("div",{class:F(f(n).e("main"))},[M("div",{class:F([f(n).e("title"),f(n).is(f(l))])},[fe(S.$slots,"title",{},()=>[we(de(S.title),1)])],2),f(p)?(x(),U("div",{key:0,class:F(f(n).e("arrow"))},null,2)):(x(),U("div",{key:1,class:F([f(n).e("description"),f(n).is(f(l))])},[fe(S.$slots,"description",{},()=>[we(de(S.description),1)])],2))],2)],6))}});var C3=He(Wae,[["__file","item.vue"]]);const Kae=Et(Hae,{Step:C3}),qae=On(C3),E3=e=>["",...uo].includes(e),Gae=Ue({modelValue:{type:[Boolean,String,Number],default:!1},disabled:Boolean,loading:Boolean,size:{type:String,validator:E3},width:{type:[String,Number],default:""},inlinePrompt:Boolean,inactiveActionIcon:{type:dn},activeActionIcon:{type:dn},activeIcon:{type:dn},inactiveIcon:{type:dn},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},beforeChange:{type:ue(Function)},id:String,tabindex:{type:[String,Number]},...Er(["ariaLabel"])}),Yae={[_t]:e=>pn(e)||rt(e)||st(e),[$t]:e=>pn(e)||rt(e)||st(e),[hr]:e=>pn(e)||rt(e)||st(e)},x3="ElSwitch",Xae=J({name:x3}),Qae=J({...Xae,props:Gae,emits:Yae,setup(e,{expose:t,emit:n}){const r=e,{formItem:a}=Or(),i=Kn(),o=Le("switch"),{inputId:s}=si(r,{formItemContext:a}),l=Mr(k(()=>r.loading)),u=z(r.modelValue!==!1),c=z(),d=z(),p=k(()=>[o.b(),o.m(i.value),o.is("disabled",l.value),o.is("checked",y.value)]),h=k(()=>[o.e("label"),o.em("label","left"),o.is("active",!y.value)]),v=k(()=>[o.e("label"),o.em("label","right"),o.is("active",y.value)]),m=k(()=>({width:Ln(r.width)}));Ie(()=>r.modelValue,()=>{u.value=!0});const g=k(()=>u.value?r.modelValue:!1),y=k(()=>g.value===r.activeValue);[r.activeValue,r.inactiveValue].includes(g.value)||(n(_t,r.inactiveValue),n($t,r.inactiveValue),n(hr,r.inactiveValue)),Ie(y,w=>{var S;c.value.checked=w,r.validateEvent&&((S=a==null?void 0:a.validate)==null||S.call(a,"change").catch(A=>void 0))});const T=()=>{const w=y.value?r.inactiveValue:r.activeValue;n(_t,w),n($t,w),n(hr,w),it(()=>{c.value.checked=y.value})},b=()=>{if(l.value)return;const{beforeChange:w}=r;if(!w){T();return}const S=w();[af(S),pn(S)].includes(!0)||rr(x3,"beforeChange must return type `Promise<boolean>` or `boolean`"),af(S)?S.then(I=>{I&&T()}).catch(I=>{}):S&&T()},_=()=>{var w,S;(S=(w=c.value)==null?void 0:w.focus)==null||S.call(w)};return ht(()=>{c.value.checked=y.value}),t({focus:_,checked:y}),(w,S)=>(x(),U("div",{class:F(f(p)),onClick:ft(b,["prevent"])},[M("input",{id:f(s),ref_key:"input",ref:c,class:F(f(o).e("input")),type:"checkbox",role:"switch","aria-checked":f(y),"aria-disabled":f(l),"aria-label":w.ariaLabel,name:w.name,"true-value":w.activeValue,"false-value":w.inactiveValue,disabled:f(l),tabindex:w.tabindex,onChange:T,onKeydown:sn(b,["enter"])},null,42,["id","aria-checked","aria-disabled","aria-label","name","true-value","false-value","disabled","tabindex","onKeydown"]),!w.inlinePrompt&&(w.inactiveIcon||w.inactiveText)?(x(),U("span",{key:0,class:F(f(h))},[w.inactiveIcon?(x(),he(f(et),{key:0},{default:P(()=>[(x(),he(Lt(w.inactiveIcon)))]),_:1})):oe("v-if",!0),!w.inactiveIcon&&w.inactiveText?(x(),U("span",{key:1,"aria-hidden":f(y)},de(w.inactiveText),9,["aria-hidden"])):oe("v-if",!0)],2)):oe("v-if",!0),M("span",{ref_key:"core",ref:d,class:F(f(o).e("core")),style:tt(f(m))},[w.inlinePrompt?(x(),U("div",{key:0,class:F(f(o).e("inner"))},[w.activeIcon||w.inactiveIcon?(x(),he(f(et),{key:0,class:F(f(o).is("icon"))},{default:P(()=>[(x(),he(Lt(f(y)?w.activeIcon:w.inactiveIcon)))]),_:1},8,["class"])):w.activeText||w.inactiveText?(x(),U("span",{key:1,class:F(f(o).is("text")),"aria-hidden":!f(y)},de(f(y)?w.activeText:w.inactiveText),11,["aria-hidden"])):oe("v-if",!0)],2)):oe("v-if",!0),M("div",{class:F(f(o).e("action"))},[w.loading?(x(),he(f(et),{key:0,class:F(f(o).is("loading"))},{default:P(()=>[E(f(ao))]),_:1},8,["class"])):f(y)?fe(w.$slots,"active-action",{key:1},()=>[w.activeActionIcon?(x(),he(f(et),{key:0},{default:P(()=>[(x(),he(Lt(w.activeActionIcon)))]),_:1})):oe("v-if",!0)]):f(y)?oe("v-if",!0):fe(w.$slots,"inactive-action",{key:2},()=>[w.inactiveActionIcon?(x(),he(f(et),{key:0},{default:P(()=>[(x(),he(Lt(w.inactiveActionIcon)))]),_:1})):oe("v-if",!0)])],2)],6),!w.inlinePrompt&&(w.activeIcon||w.activeText)?(x(),U("span",{key:1,class:F(f(v))},[w.activeIcon?(x(),he(f(et),{key:0},{default:P(()=>[(x(),he(Lt(w.activeIcon)))]),_:1})):oe("v-if",!0),!w.activeIcon&&w.activeText?(x(),U("span",{key:1,"aria-hidden":!f(y)},de(w.activeText),9,["aria-hidden"])):oe("v-if",!0)],2)):oe("v-if",!0)],10,["onClick"]))}});var Jae=He(Qae,[["__file","switch.vue"]]);const gp=Et(Jae),_0=function(e){var t;return(t=e.target)==null?void 0:t.closest("td")},Zae=function(e,t,n,r,a){if(!t&&!r&&(!a||Be(a)&&!a.length))return e;rt(n)?n=n==="descending"?-1:1:n=n&&n<0?-1:1;const i=r?null:function(s,l){return a?(Be(a)||(a=[a]),a.map(u=>rt(u)?jn(s,u):u(s,l,e))):(t!=="$key"&&It(s)&&"$value"in s&&(s=s.$value),[It(s)?jn(s,t):s])},o=function(s,l){if(r)return r(s.value,l.value);for(let u=0,c=s.key.length;u<c;u++){if(s.key[u]<l.key[u])return-1;if(s.key[u]>l.key[u])return 1}return 0};return e.map((s,l)=>({value:s,index:l,key:i?i(s,l):null})).sort((s,l)=>{let u=o(s,l);return u||(u=s.index-l.index),u*+n}).map(s=>s.value)},k3=function(e,t){let n=null;return e.columns.forEach(r=>{r.id===t&&(n=r)}),n},eie=function(e,t){let n=null;for(let r=0;r<e.columns.length;r++){const a=e.columns[r];if(a.columnKey===t){n=a;break}}return n||rr("ElTable",`No column matching with column-key: ${t}`),n},CE=function(e,t,n){const r=(t.className||"").match(new RegExp(`${n}-table_[^\\s]+`,"gm"));return r?k3(e,r[0]):null},Br=(e,t)=>{if(!e)throw new Error("Row is required when get row identity");if(rt(t)){if(!t.includes("."))return`${e[t]}`;const n=t.split(".");let r=e;for(const a of n)r=r[a];return`${r}`}else if(ot(t))return t.call(null,e)},Yd=function(e,t){const n={};return(e||[]).forEach((r,a)=>{n[Br(r,t)]={row:r,index:a}}),n};function tie(e,t){const n={};let r;for(r in e)n[r]=e[r];for(r in t)if(Yt(t,r)){const a=t[r];Xt(a)||(n[r]=a)}return n}function d2(e){return e===""||Xt(e)||(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function A3(e){return e===""||Xt(e)||(e=d2(e),Number.isNaN(e)&&(e=80)),e}function nie(e){return st(e)?e:rt(e)?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function rie(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function Mm(e,t,n,r,a,i){let o=i??0,s=!1;const l=e.indexOf(t),u=l!==-1,c=a==null?void 0:a.call(null,t,o),d=h=>{h==="add"?e.push(t):e.splice(l,1),s=!0},p=h=>{let v=0;const m=(r==null?void 0:r.children)&&h[r.children];return m&&Be(m)&&(v+=m.length,m.forEach(g=>{v+=p(g)})),v};return(!a||c)&&(pn(n)?n&&!u?d("add"):!n&&u&&d("remove"):d(u?"remove":"add")),!(r!=null&&r.checkStrictly)&&(r!=null&&r.children)&&Be(t[r.children])&&t[r.children].forEach(h=>{const v=Mm(e,h,n??!u,r,a,o+1);o+=p(h)+1,v&&(s=v)}),s}function aie(e,t,n="children",r="hasChildren"){const a=o=>!(Be(o)&&o.length);function i(o,s,l){t(o,s,l),s.forEach(u=>{if(u[r]){t(u,null,l+1);return}const c=u[n];a(c)||i(u,c,l+1)})}e.forEach(o=>{if(o[r]){t(o,null,0);return}const s=o[n];a(s)||i(o,s,0)})}const iie=(e,t,n,r)=>{const a={strategy:"fixed",...e.popperOptions},i=ot(r.tooltipFormatter)?r.tooltipFormatter({row:n,column:r,cellValue:jd(n,r.property).value}):void 0;return wn(i)?{slotContent:i,content:null,...e,popperOptions:a}:{slotContent:null,content:i??t,...e,popperOptions:a}};let ma=null;function oie(e,t,n,r,a,i){const o=iie(e,t,n,r),s={...o,slotContent:void 0};if((ma==null?void 0:ma.trigger)===a){const h=ma.vm.component;bI(h.props,s),o.slotContent&&(h.slots.content=()=>[o.slotContent]);return}ma==null||ma();const l=i==null?void 0:i.refs.tableWrapper,u=l==null?void 0:l.dataset.prefix,c=E(ar,{virtualTriggering:!0,virtualRef:a,appendTo:l,placement:"top",transition:"none",offset:0,hideAfter:0,...s},o.slotContent?{content:()=>o.slotContent}:void 0);c.appContext={...i.appContext,...i};const d=document.createElement("div");Is(c,d),c.component.exposed.onOpen();const p=l==null?void 0:l.querySelector(`.${u}-scrollbar__wrap`);ma=()=>{Is(null,d),p==null||p.removeEventListener("scroll",ma),ma=null},ma.trigger=a,ma.vm=c,p==null||p.addEventListener("scroll",ma)}function D3(e){return e.children?lH(e.children,D3):[e]}function EE(e,t){return e+t.colSpan}const I3=(e,t,n,r)=>{let a=0,i=e;const o=n.states.columns.value;if(r){const l=D3(r[e]);a=o.slice(0,o.indexOf(l[0])).reduce(EE,0),i=a+l.reduce(EE,0)-1}else a=e;let s;switch(t){case"left":i<n.states.fixedLeafColumnsLength.value&&(s="left");break;case"right":a>=o.length-n.states.rightFixedLeafColumnsLength.value&&(s="right");break;default:i<n.states.fixedLeafColumnsLength.value?s="left":a>=o.length-n.states.rightFixedLeafColumnsLength.value&&(s="right")}return s?{direction:s,start:a,after:i}:{}},f2=(e,t,n,r,a,i=0)=>{const o=[],{direction:s,start:l,after:u}=I3(t,n,r,a);if(s){const c=s==="left";o.push(`${e}-fixed-column--${s}`),c&&u+i===r.states.fixedLeafColumnsLength.value-1?o.push("is-last-column"):!c&&l-i===r.states.columns.value.length-r.states.rightFixedLeafColumnsLength.value&&o.push("is-first-column")}return o};function xE(e,t){return e+(ip(t.realWidth)||Number.isNaN(t.realWidth)?Number(t.width):t.realWidth)}const p2=(e,t,n,r)=>{const{direction:a,start:i=0,after:o=0}=I3(e,t,n,r);if(!a)return;const s={},l=a==="left",u=n.states.columns.value;return l?s.left=u.slice(0,i).reduce(xE,0):s.right=u.slice(o+1).reverse().reduce(xE,0),s},oc=(e,t)=>{e&&(Number.isNaN(e[t])||(e[t]=`${e[t]}px`))};function sie(e){const t=Mt(),n=z(!1),r=z([]);return{updateExpandRows:()=>{const l=e.data.value||[],u=e.rowKey.value;if(n.value)r.value=l.slice();else if(u){const c=Yd(r.value,u);r.value=l.reduce((d,p)=>{const h=Br(p,u);return c[h]&&d.push(p),d},[])}else r.value=[]},toggleRowExpansion:(l,u)=>{Mm(r.value,l,u)&&t.emit("expand-change",l,r.value.slice())},setExpandRowKeys:l=>{t.store.assertRowKey();const u=e.data.value||[],c=e.rowKey.value,d=Yd(u,c);r.value=l.reduce((p,h)=>{const v=d[h];return v&&p.push(v.row),p},[])},isRowExpanded:l=>{const u=e.rowKey.value;return u?!!Yd(r.value,u)[Br(l,u)]:r.value.includes(l)},states:{expandRows:r,defaultExpandAll:n}}}function lie(e){const t=Mt(),n=z(null),r=z(null),a=u=>{t.store.assertRowKey(),n.value=u,o(u)},i=()=>{n.value=null},o=u=>{const{data:c,rowKey:d}=e;let p=null;d.value&&(p=(f(c)||[]).find(h=>Br(h,d.value)===u)),r.value=p,t.emit("current-change",r.value,null)};return{setCurrentRowKey:a,restoreCurrentRowKey:i,setCurrentRowByKey:o,updateCurrentRow:u=>{const c=r.value;if(u&&u!==c){r.value=u,t.emit("current-change",r.value,c);return}!u&&c&&(r.value=null,t.emit("current-change",null,c))},updateCurrentRowData:()=>{const u=e.rowKey.value,c=e.data.value||[],d=r.value;if(!c.includes(d)&&d){if(u){const p=Br(d,u);o(p)}else r.value=null;ip(r.value)&&t.emit("current-change",null,d)}else n.value&&(o(n.value),i())},states:{_currentRowKey:n,currentRow:r}}}function uie(e){const t=z([]),n=z({}),r=z(16),a=z(!1),i=z({}),o=z("hasChildren"),s=z("children"),l=z(!1),u=Mt(),c=k(()=>{if(!e.rowKey.value)return{};const _=e.data.value||[];return p(_)}),d=k(()=>{const _=e.rowKey.value,w=Object.keys(i.value),S={};return w.length&&w.forEach(A=>{if(i.value[A].length){const I={children:[]};i.value[A].forEach(D=>{const O=Br(D,_);I.children.push(O),D[o.value]&&!S[O]&&(S[O]={children:[]})}),S[A]=I}}),S}),p=_=>{const w=e.rowKey.value,S={};return aie(_,(A,I,D)=>{const O=Br(A,w);Be(I)?S[O]={children:I.map(V=>Br(V,w)),level:D}:a.value&&(S[O]={children:[],lazy:!0,level:D})},s.value,o.value),S},h=(_=!1,w=(S=>(S=u.store)==null?void 0:S.states.defaultExpandAll.value)())=>{var S;const A=c.value,I=d.value,D=Object.keys(A),O={};if(D.length){const V=f(n),N=[],K=(q,$)=>{if(_)return t.value?w||t.value.includes($):!!(w||q!=null&&q.expanded);{const j=w||t.value&&t.value.includes($);return!!(q!=null&&q.expanded||j)}};D.forEach(q=>{const $=V[q],j={...A[q]};if(j.expanded=K($,q),j.lazy){const{loaded:W=!1,loading:H=!1}=$||{};j.loaded=!!W,j.loading=!!H,N.push(q)}O[q]=j});const Y=Object.keys(I);a.value&&Y.length&&N.length&&Y.forEach(q=>{const $=V[q],j=I[q].children;if(N.includes(q)){if(O[q].children.length!==0)throw new Error("[ElTable]children must be an empty array.");O[q].children=j}else{const{loaded:W=!1,loading:H=!1}=$||{};O[q]={lazy:!0,loaded:!!W,loading:!!H,expanded:K($,q),children:j,level:""}}})}n.value=O,(S=u.store)==null||S.updateTableScrollY()};Ie(()=>t.value,()=>{h(!0)}),Ie(()=>c.value,()=>{h()}),Ie(()=>d.value,()=>{h()});const v=_=>{t.value=_,h()},m=_=>a.value&&_&&"loaded"in _&&!_.loaded,g=(_,w)=>{u.store.assertRowKey();const S=e.rowKey.value,A=Br(_,S),I=A&&n.value[A];if(A&&I&&"expanded"in I){const D=I.expanded;w=Xt(w)?!I.expanded:w,n.value[A].expanded=w,D!==w&&u.emit("expand-change",_,w),m(I)&&T(_,A,I),u.store.updateTableScrollY()}},y=_=>{u.store.assertRowKey();const w=e.rowKey.value,S=Br(_,w),A=n.value[S];m(A)?T(_,S,A):g(_,void 0)},T=(_,w,S)=>{const{load:A}=u.props;A&&!n.value[w].loaded&&(n.value[w].loading=!0,A(_,S,I=>{if(!Be(I))throw new TypeError("[ElTable] data must be an array");n.value[w].loading=!1,n.value[w].loaded=!0,n.value[w].expanded=!0,I.length&&(i.value[w]=I),u.emit("expand-change",_,!0)}))};return{loadData:T,loadOrToggle:y,toggleTreeExpansion:g,updateTreeExpandKeys:v,updateTreeData:h,updateKeyChildren:(_,w)=>{const{lazy:S,rowKey:A}=u.props;if(S){if(!A)throw new Error("[Table] rowKey is required in updateKeyChild");i.value[_]&&(i.value[_]=w)}},normalize:p,states:{expandRowKeys:t,treeData:n,indent:r,lazy:a,lazyTreeNodeMap:i,lazyColumnIdentifier:o,childrenColumnName:s,checkStrictly:l}}}const cie=(e,t)=>{const n=t.sortingColumn;return!n||rt(n.sortable)?e:Zae(e,t.sortProp,t.sortOrder,n.sortMethod,n.sortBy)},Bh=e=>{const t=[];return e.forEach(n=>{n.children&&n.children.length>0?t.push.apply(t,Bh(n.children)):t.push(n)}),t};function die(){var e;const t=Mt(),{size:n}=mr((e=t.proxy)==null?void 0:e.$props),r=z(null),a=z([]),i=z([]),o=z(!1),s=z([]),l=z([]),u=z([]),c=z([]),d=z([]),p=z([]),h=z([]),v=z([]),m=[],g=z(0),y=z(0),T=z(0),b=z(!1),_=z([]),w=z(!1),S=z(!1),A=z(null),I=z({}),D=z(null),O=z(null),V=z(null),N=z(null),K=z(null),Y=k(()=>r.value?Yd(_.value,r.value):void 0);Ie(a,()=>{var dt;t.state&&(W(!1),t.props.tableLayout==="auto"&&((dt=t.refs.tableHeaderRef)==null||dt.updateFixedColumnStyle()))},{deep:!0});const q=()=>{if(!r.value)throw new Error("[ElTable] prop row-key is required")},$=dt=>{var Oe;(Oe=dt.children)==null||Oe.forEach(ce=>{ce.fixed=dt.fixed,$(ce)})},j=()=>{var dt,Oe;s.value.forEach(kt=>{$(kt)}),c.value=s.value.filter(kt=>kt.type!=="selection"&&[!0,"left"].includes(kt.fixed));let ce;if(((Oe=(dt=s.value)==null?void 0:dt[0])==null?void 0:Oe.type)==="selection"){const kt=s.value[0];ce=[!0,"left"].includes(kt.fixed)||c.value.length&&kt.fixed!=="right",ce&&c.value.unshift(kt)}d.value=s.value.filter(kt=>kt.fixed==="right");const Me=s.value.filter(kt=>(ce?kt.type!=="selection":!0)&&!kt.fixed);l.value=[].concat(c.value).concat(Me).concat(d.value);const ae=Bh(Me),We=Bh(c.value),St=Bh(d.value);g.value=ae.length,y.value=We.length,T.value=St.length,u.value=[].concat(We).concat(ae).concat(St),o.value=c.value.length>0||d.value.length>0},W=(dt,Oe=!1)=>{dt&&j(),Oe?t.state.doLayout():t.state.debouncedUpdateLayout()},H=dt=>Y.value?!!Y.value[Br(dt,r.value)]:_.value.includes(dt),X=()=>{b.value=!1;const dt=_.value;_.value=[],dt.length&&t.emit("selection-change",[])},re=()=>{let dt;if(r.value){dt=[];const Oe=Yd(a.value,r.value);for(const ce in Y.value)Yt(Y.value,ce)&&!Oe[ce]&&dt.push(Y.value[ce].row)}else dt=_.value.filter(Oe=>!a.value.includes(Oe));if(dt.length){const Oe=_.value.filter(ce=>!dt.includes(ce));_.value=Oe,t.emit("selection-change",Oe.slice())}},le=()=>(_.value||[]).slice(),ne=(dt,Oe,ce=!0,Me=!1)=>{var ae,We,St,kt;const mn={children:(We=(ae=t==null?void 0:t.store)==null?void 0:ae.states)==null?void 0:We.childrenColumnName.value,checkStrictly:(kt=(St=t==null?void 0:t.store)==null?void 0:St.states)==null?void 0:kt.checkStrictly.value};if(Mm(_.value,dt,Oe,mn,Me?void 0:A.value,a.value.indexOf(dt))){const bn=(_.value||[]).slice();ce&&t.emit("select",bn,dt),t.emit("selection-change",bn)}},be=()=>{var dt,Oe;const ce=S.value?!b.value:!(b.value||_.value.length);b.value=ce;let Me=!1,ae=0;const We=(Oe=(dt=t==null?void 0:t.store)==null?void 0:dt.states)==null?void 0:Oe.rowKey.value,{childrenColumnName:St}=t.store.states,kt={children:St.value,checkStrictly:!1};a.value.forEach((mn,fa)=>{const bn=fa+ae;Mm(_.value,mn,ce,kt,A.value,bn)&&(Me=!0),ae+=te(Br(mn,We))}),Me&&t.emit("selection-change",_.value?_.value.slice():[]),t.emit("select-all",(_.value||[]).slice())},_e=()=>{a.value.forEach(dt=>{const Oe=Br(dt,r.value),ce=Y.value[Oe];ce&&(_.value[ce.index]=dt)})},ve=()=>{var dt;if(((dt=a.value)==null?void 0:dt.length)===0){b.value=!1;return}const{childrenColumnName:Oe}=t.store.states;let ce=0,Me=0;const ae=St=>{var kt;for(const mn of St){const fa=A.value&&A.value.call(null,mn,ce);if(H(mn))Me++;else if(!A.value||fa)return!1;if(ce++,(kt=mn[Oe.value])!=null&&kt.length&&!ae(mn[Oe.value]))return!1}return!0},We=ae(a.value||[]);b.value=Me===0?!1:We},te=dt=>{var Oe;if(!t||!t.store)return 0;const{treeData:ce}=t.store.states;let Me=0;const ae=(Oe=ce.value[dt])==null?void 0:Oe.children;return ae&&(Me+=ae.length,ae.forEach(We=>{Me+=te(We)})),Me},me=(dt,Oe)=>{Be(dt)||(dt=[dt]);const ce={};return dt.forEach(Me=>{I.value[Me.id]=Oe,ce[Me.columnKey||Me.id]=Oe}),ce},pe=(dt,Oe,ce)=>{O.value&&O.value!==dt&&(O.value.order=null),O.value=dt,V.value=Oe,N.value=ce},Fe=()=>{let dt=f(i);Object.keys(I.value).forEach(Oe=>{const ce=I.value[Oe];if(!ce||ce.length===0)return;const Me=k3({columns:u.value},Oe);Me&&Me.filterMethod&&(dt=dt.filter(ae=>ce.some(We=>Me.filterMethod.call(null,We,ae,Me))))}),D.value=dt},Pe=()=>{a.value=cie(D.value,{sortingColumn:O.value,sortProp:V.value,sortOrder:N.value})},ye=(dt=void 0)=>{dt&&dt.filter||Fe(),Pe()},Z=dt=>{const{tableHeaderRef:Oe}=t.refs;if(!Oe)return;const ce=Object.assign({},Oe.filterPanels),Me=Object.keys(ce);if(Me.length)if(rt(dt)&&(dt=[dt]),Be(dt)){const ae=dt.map(We=>eie({columns:u.value},We));Me.forEach(We=>{const St=ae.find(kt=>kt.id===We);St&&(St.filteredValue=[])}),t.store.commit("filterChange",{column:ae,values:[],silent:!0,multi:!0})}else Me.forEach(ae=>{const We=u.value.find(St=>St.id===ae);We&&(We.filteredValue=[])}),I.value={},t.store.commit("filterChange",{column:{},values:[],silent:!0})},ie=()=>{O.value&&(pe(null,null,null),t.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:Ce,toggleRowExpansion:$e,updateExpandRows:Se,states:De,isRowExpanded:xe}=sie({data:a,rowKey:r}),{updateTreeExpandKeys:Ve,toggleTreeExpansion:ze,updateTreeData:je,updateKeyChildren:nt,loadOrToggle:Ae,states:Xe}=uie({data:a,rowKey:r}),{updateCurrentRowData:ct,updateCurrentRow:Dt,setCurrentRowKey:Pt,states:Bt}=lie({data:a,rowKey:r});return{assertRowKey:q,updateColumns:j,scheduleLayout:W,isSelected:H,clearSelection:X,cleanSelection:re,getSelectionRows:le,toggleRowSelection:ne,_toggleAllSelection:be,toggleAllSelection:null,updateSelectionByRowKey:_e,updateAllSelected:ve,updateFilters:me,updateCurrentRow:Dt,updateSort:pe,execFilter:Fe,execSort:Pe,execQuery:ye,clearFilter:Z,clearSort:ie,toggleRowExpansion:$e,setExpandRowKeysAdapter:dt=>{Ce(dt),Ve(dt)},setCurrentRowKey:Pt,toggleRowExpansionAdapter:(dt,Oe)=>{u.value.some(({type:Me})=>Me==="expand")?$e(dt,Oe):ze(dt,Oe)},isRowExpanded:xe,updateExpandRows:Se,updateCurrentRowData:ct,loadOrToggle:Ae,updateTreeData:je,updateKeyChildren:nt,states:{tableSize:n,rowKey:r,data:a,_data:i,isComplex:o,_columns:s,originColumns:l,columns:u,fixedColumns:c,rightFixedColumns:d,leafColumns:p,fixedLeafColumns:h,rightFixedLeafColumns:v,updateOrderFns:m,leafColumnsLength:g,fixedLeafColumnsLength:y,rightFixedLeafColumnsLength:T,isAllSelected:b,selection:_,reserveSelection:w,selectOnIndeterminate:S,selectable:A,filters:I,filteredData:D,sortingColumn:O,sortProp:V,sortOrder:N,hoverRow:K,...De,...Xe,...Bt}}}function ib(e,t){return e.map(n=>{var r;return n.id===t.id?t:((r=n.children)!=null&&r.length&&(n.children=ib(n.children,t)),n)})}function ob(e){e.forEach(t=>{var n,r;t.no=(n=t.getColumnIndex)==null?void 0:n.call(t),(r=t.children)!=null&&r.length&&ob(t.children)}),e.sort((t,n)=>t.no-n.no)}function fie(){const e=Mt(),t=die();return{ns:Le("table"),...t,mutations:{setData(o,s){const l=f(o._data)!==s;o.data.value=s,o._data.value=s,e.store.execQuery(),e.store.updateCurrentRowData(),e.store.updateExpandRows(),e.store.updateTreeData(e.store.states.defaultExpandAll.value),f(o.reserveSelection)?(e.store.assertRowKey(),e.store.updateSelectionByRowKey()):l?e.store.clearSelection():e.store.cleanSelection(),e.store.updateAllSelected(),e.$ready&&e.store.scheduleLayout()},insertColumn(o,s,l,u){const c=f(o._columns);let d=[];l?(l&&!l.children&&(l.children=[]),l.children.push(s),d=ib(c,l)):(c.push(s),d=c),ob(d),o._columns.value=d,o.updateOrderFns.push(u),s.type==="selection"&&(o.selectable.value=s.selectable,o.reserveSelection.value=s.reserveSelection),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},updateColumnOrder(o,s){var l;((l=s.getColumnIndex)==null?void 0:l.call(s))!==s.no&&(ob(o._columns.value),e.$ready&&e.store.updateColumns())},removeColumn(o,s,l,u){const c=f(o._columns)||[];if(l)l.children.splice(l.children.findIndex(p=>p.id===s.id),1),it(()=>{var p;((p=l.children)==null?void 0:p.length)===0&&delete l.children}),o._columns.value=ib(c,l);else{const p=c.indexOf(s);p>-1&&(c.splice(p,1),o._columns.value=c)}const d=o.updateOrderFns.indexOf(u);d>-1&&o.updateOrderFns.splice(d,1),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},sort(o,s){const{prop:l,order:u,init:c}=s;if(l){const d=f(o.columns).find(p=>p.property===l);d&&(d.order=u,e.store.updateSort(d,l,u),e.store.commit("changeSortCondition",{init:c}))}},changeSortCondition(o,s){const{sortingColumn:l,sortProp:u,sortOrder:c}=o,d=f(l),p=f(u),h=f(c);ip(h)&&(o.sortingColumn.value=null,o.sortProp.value=null);const v={filter:!0};e.store.execQuery(v),(!s||!(s.silent||s.init))&&e.emit("sort-change",{column:d,prop:p,order:h}),e.store.updateTableScrollY()},filterChange(o,s){const{column:l,values:u,silent:c}=s,d=e.store.updateFilters(l,u);e.store.execQuery(),c||e.emit("filter-change",d),e.store.updateTableScrollY()},toggleAllSelection(){e.store.toggleAllSelection()},rowSelectedChanged(o,s){e.store.toggleRowSelection(s),e.store.updateAllSelected()},setHoverRow(o,s){o.hoverRow.value=s},setCurrentRow(o,s){e.store.updateCurrentRow(s)}},commit:function(o,...s){const l=e.store.mutations;if(l[o])l[o].apply(e,[e.store.states].concat(s));else throw new Error(`Action not found: ${o}`)},updateTableScrollY:function(){it(()=>e.layout.updateScrollY.apply(e.layout))}}}const Xd={rowKey:"rowKey",defaultExpandAll:"defaultExpandAll",selectOnIndeterminate:"selectOnIndeterminate",indent:"indent",lazy:"lazy",data:"data","treeProps.hasChildren":{key:"lazyColumnIdentifier",default:"hasChildren"},"treeProps.children":{key:"childrenColumnName",default:"children"},"treeProps.checkStrictly":{key:"checkStrictly",default:!1}};function pie(e,t){if(!e)throw new Error("Table is required.");const n=fie();return n.toggleAllSelection=wa(n._toggleAllSelection,10),Object.keys(Xd).forEach(r=>{P3(O3(t,r),r,n)}),hie(n,t),n}function hie(e,t){Object.keys(Xd).forEach(n=>{Ie(()=>O3(t,n),r=>{P3(r,n,e)})})}function P3(e,t,n){let r=e,a=Xd[t];It(Xd[t])&&(a=a.key,r=r||Xd[t].default),n.states[a].value=r}function O3(e,t){if(t.includes(".")){const n=t.split(".");let r=e;return n.forEach(a=>{r=r[a]}),r}else return e[t]}class mie{constructor(t){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=z(null),this.scrollX=z(!1),this.scrollY=z(!1),this.bodyWidth=z(null),this.fixedWidth=z(null),this.rightFixedWidth=z(null),this.gutterWidth=0;for(const n in t)Yt(t,n)&&(yn(this[n])?this[n].value=t[n]:this[n]=t[n]);if(!this.table)throw new Error("Table is required for Table Layout");if(!this.store)throw new Error("Store is required for Table Layout")}updateScrollY(){const t=this.height.value;if(ip(t))return!1;const n=this.table.refs.scrollBarRef;if(this.table.vnode.el&&(n!=null&&n.wrapRef)){let r=!0;const a=this.scrollY.value;return r=n.wrapRef.scrollHeight>n.wrapRef.clientHeight,this.scrollY.value=r,a!==r}return!1}setHeight(t,n="height"){if(!Wt)return;const r=this.table.vnode.el;if(t=nie(t),this.height.value=Number(t),!r&&(t||t===0))return it(()=>this.setHeight(t,n));st(t)?(r.style[n]=`${t}px`,this.updateElsHeight()):rt(t)&&(r.style[n]=t,this.updateElsHeight())}setMaxHeight(t){this.setHeight(t,"max-height")}getFlattenColumns(){const t=[];return this.table.store.states.columns.value.forEach(r=>{r.isColumnGroup?t.push.apply(t,r.columns):t.push(r)}),t}updateElsHeight(){this.updateScrollY(),this.notifyObservers("scrollable")}headerDisplayNone(t){if(!t)return!0;let n=t;for(;n.tagName!=="DIV";){if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}updateColumnsWidth(){if(!Wt)return;const t=this.fit,n=this.table.vnode.el.clientWidth;let r=0;const a=this.getFlattenColumns(),i=a.filter(l=>!st(l.width));if(a.forEach(l=>{st(l.width)&&l.realWidth&&(l.realWidth=null)}),i.length>0&&t){if(a.forEach(l=>{r+=Number(l.width||l.minWidth||80)}),r<=n){this.scrollX.value=!1;const l=n-r;if(i.length===1)i[0].realWidth=Number(i[0].minWidth||80)+l;else{const u=i.reduce((p,h)=>p+Number(h.minWidth||80),0),c=l/u;let d=0;i.forEach((p,h)=>{if(h===0)return;const v=Math.floor(Number(p.minWidth||80)*c);d+=v,p.realWidth=Number(p.minWidth||80)+v}),i[0].realWidth=Number(i[0].minWidth||80)+l-d}}else this.scrollX.value=!0,i.forEach(l=>{l.realWidth=Number(l.minWidth)});this.bodyWidth.value=Math.max(r,n),this.table.state.resizeState.value.width=this.bodyWidth.value}else a.forEach(l=>{!l.width&&!l.minWidth?l.realWidth=80:l.realWidth=Number(l.width||l.minWidth),r+=l.realWidth}),this.scrollX.value=r>n,this.bodyWidth.value=r;const o=this.store.states.fixedColumns.value;if(o.length>0){let l=0;o.forEach(u=>{l+=Number(u.realWidth||u.width)}),this.fixedWidth.value=l}const s=this.store.states.rightFixedColumns.value;if(s.length>0){let l=0;s.forEach(u=>{l+=Number(u.realWidth||u.width)}),this.rightFixedWidth.value=l}this.notifyObservers("columns")}addObserver(t){this.observers.push(t)}removeObserver(t){const n=this.observers.indexOf(t);n!==-1&&this.observers.splice(n,1)}notifyObservers(t){this.observers.forEach(r=>{var a,i;switch(t){case"columns":(a=r.state)==null||a.onColumnsChange(this);break;case"scrollable":(i=r.state)==null||i.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${t}.`)}})}}const{CheckboxGroup:vie}=ri,gie=J({name:"ElTableFilterPanel",components:{ElCheckbox:ri,ElCheckboxGroup:vie,ElScrollbar:fo,ElTooltip:ar,ElIcon:et,ArrowDown:co,ArrowUp:Nv},directives:{ClickOutside:Wo},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function},appendTo:{type:String}},setup(e){const t=Mt(),{t:n}=Kt(),r=Le("table-filter"),a=t==null?void 0:t.parent;a.filterPanels.value[e.column.id]||(a.filterPanels.value[e.column.id]=t);const i=z(!1),o=z(null),s=k(()=>e.column&&e.column.filters),l=k(()=>e.column.filterClassName?`${r.b()} ${e.column.filterClassName}`:r.b()),u=k({get:()=>{var w;return(((w=e.column)==null?void 0:w.filteredValue)||[])[0]},set:w=>{c.value&&(yi(w)?c.value.splice(0,1):c.value.splice(0,1,w))}}),c=k({get(){return e.column?e.column.filteredValue||[]:[]},set(w){e.column&&e.upDataColumn("filteredValue",w)}}),d=k(()=>e.column?e.column.filterMultiple:!0),p=w=>w.value===u.value,h=()=>{i.value=!1},v=w=>{w.stopPropagation(),i.value=!i.value},m=()=>{i.value=!1},g=()=>{b(c.value),h()},y=()=>{c.value=[],b(c.value),h()},T=w=>{u.value=w,yi(w)?b([]):b(c.value),h()},b=w=>{e.store.commit("filterChange",{column:e.column,values:w}),e.store.updateAllSelected()};Ie(i,w=>{e.column&&e.upDataColumn("filterOpened",w)},{immediate:!0});const _=k(()=>{var w,S;return(S=(w=o.value)==null?void 0:w.popperRef)==null?void 0:S.contentRef});return{tooltipVisible:i,multiple:d,filterClassName:l,filteredValue:c,filterValue:u,filters:s,handleConfirm:g,handleReset:y,handleSelect:T,isPropAbsent:yi,isActive:p,t:n,ns:r,showFilterPanel:v,hideFilterPanel:m,popperPaneRef:_,tooltip:o}}});function yie(e,t,n,r,a,i){const o=Rt("el-checkbox"),s=Rt("el-checkbox-group"),l=Rt("el-scrollbar"),u=Rt("arrow-up"),c=Rt("arrow-down"),d=Rt("el-icon"),p=Rt("el-tooltip"),h=Tv("click-outside");return x(),he(p,{ref:"tooltip",visible:e.tooltipVisible,offset:0,placement:e.placement,"show-arrow":!1,"stop-popper-mouse-event":!1,teleported:"",effect:"light",pure:"","popper-class":e.filterClassName,persistent:"","append-to":e.appendTo},{content:P(()=>[e.multiple?(x(),U("div",{key:0},[M("div",{class:F(e.ns.e("content"))},[E(l,{"wrap-class":e.ns.e("wrap")},{default:P(()=>[E(s,{modelValue:e.filteredValue,"onUpdate:modelValue":v=>e.filteredValue=v,class:F(e.ns.e("checkbox-group"))},{default:P(()=>[(x(!0),U(Ge,null,mt(e.filters,v=>(x(),he(o,{key:v.value,value:v.value},{default:P(()=>[we(de(v.text),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue","onUpdate:modelValue","class"])]),_:1},8,["wrap-class"])],2),M("div",{class:F(e.ns.e("bottom"))},[M("button",{class:F({[e.ns.is("disabled")]:e.filteredValue.length===0}),disabled:e.filteredValue.length===0,type:"button",onClick:e.handleConfirm},de(e.t("el.table.confirmFilter")),11,["disabled","onClick"]),M("button",{type:"button",onClick:e.handleReset},de(e.t("el.table.resetFilter")),9,["onClick"])],2)])):(x(),U("ul",{key:1,class:F(e.ns.e("list"))},[M("li",{class:F([e.ns.e("list-item"),{[e.ns.is("active")]:e.isPropAbsent(e.filterValue)}]),onClick:v=>e.handleSelect(null)},de(e.t("el.table.clearFilter")),11,["onClick"]),(x(!0),U(Ge,null,mt(e.filters,v=>(x(),U("li",{key:v.value,class:F([e.ns.e("list-item"),e.ns.is("active",e.isActive(v))]),label:v.value,onClick:m=>e.handleSelect(v.value)},de(v.text),11,["label","onClick"]))),128))],2))]),default:P(()=>[gt((x(),U("span",{class:F([`${e.ns.namespace.value}-table__column-filter-trigger`,`${e.ns.namespace.value}-none-outline`]),onClick:e.showFilterPanel},[E(d,null,{default:P(()=>[fe(e.$slots,"filter-icon",{},()=>[e.column.filterOpened?(x(),he(u,{key:0})):(x(),he(c,{key:1}))])]),_:3})],10,["onClick"])),[[h,e.hideFilterPanel,e.popperPaneRef]])]),_:3},8,["visible","placement","popper-class","append-to"])}var bie=He(gie,[["render",yie],["__file","filter-panel.vue"]]);function h2(e){const t=Mt();Hl(()=>{n.value.addObserver(t)}),ht(()=>{r(n.value),a(n.value)}),Di(()=>{r(n.value),a(n.value)}),zs(()=>{n.value.removeObserver(t)});const n=k(()=>{const i=e.layout;if(!i)throw new Error("Can not find table layout.");return i}),r=i=>{var o;const s=((o=e.vnode.el)==null?void 0:o.querySelectorAll("colgroup > col"))||[];if(!s.length)return;const l=i.getFlattenColumns(),u={};l.forEach(c=>{u[c.id]=c});for(let c=0,d=s.length;c<d;c++){const p=s[c],h=p.getAttribute("name"),v=u[h];v&&p.setAttribute("width",v.realWidth||v.width)}},a=i=>{var o,s;const l=((o=e.vnode.el)==null?void 0:o.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let c=0,d=l.length;c<d;c++)l[c].setAttribute("width",i.scrollY.value?i.gutterWidth:"0");const u=((s=e.vnode.el)==null?void 0:s.querySelectorAll("th.gutter"))||[];for(let c=0,d=u.length;c<d;c++){const p=u[c];p.style.width=i.scrollY.value?`${i.gutterWidth}px`:"0",p.style.display=i.scrollY.value?"":"none"}};return{tableLayout:n.value,onColumnsChange:r,onScrollableChange:a}}const Mi=Symbol("ElTable");function _ie(e,t){const n=Mt(),r=Qe(Mi),a=m=>{m.stopPropagation()},i=(m,g)=>{!g.filters&&g.sortable?v(m,g,!1):g.filterable&&!g.sortable&&a(m),r==null||r.emit("header-click",g,m)},o=(m,g)=>{r==null||r.emit("header-contextmenu",g,m)},s=z(null),l=z(!1),u=z({}),c=(m,g)=>{if(Wt&&!(g.children&&g.children.length>0)&&s.value&&e.border){l.value=!0;const y=r;t("set-drag-visible",!0);const b=(y==null?void 0:y.vnode.el).getBoundingClientRect().left,_=n.vnode.el.querySelector(`th.${g.id}`),w=_.getBoundingClientRect(),S=w.left-b+30;Ga(_,"noclick"),u.value={startMouseLeft:m.clientX,startLeft:w.right-b,startColumnLeft:w.left-b,tableLeft:b};const A=y==null?void 0:y.refs.resizeProxy;A.style.left=`${u.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const I=O=>{const V=O.clientX-u.value.startMouseLeft,N=u.value.startLeft+V;A.style.left=`${Math.max(S,N)}px`},D=()=>{if(l.value){const{startColumnLeft:O,startLeft:V}=u.value,K=Number.parseInt(A.style.left,10)-O;g.width=g.realWidth=K,y==null||y.emit("header-dragend",g.width,V-O,g,m),requestAnimationFrame(()=>{e.store.scheduleLayout(!1,!0)}),document.body.style.cursor="",l.value=!1,s.value=null,u.value={},t("set-drag-visible",!1)}document.removeEventListener("mousemove",I),document.removeEventListener("mouseup",D),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{Ur(_,"noclick")},0)};document.addEventListener("mousemove",I),document.addEventListener("mouseup",D)}},d=(m,g)=>{var y;if(g.children&&g.children.length>0)return;const T=m.target;if(!oa(T))return;const b=T==null?void 0:T.closest("th");if(!(!g||!g.resizable||!b)&&!l.value&&e.border){const _=b.getBoundingClientRect(),w=document.body.style,S=((y=b.parentNode)==null?void 0:y.lastElementChild)===b,A=e.allowDragLastColumn||!S;_.width>12&&_.right-m.clientX<8&&A?(w.cursor="col-resize",ba(b,"is-sortable")&&(b.style.cursor="col-resize"),s.value=g):l.value||(w.cursor="",ba(b,"is-sortable")&&(b.style.cursor="pointer"),s.value=null)}},p=()=>{Wt&&(document.body.style.cursor="")},h=({order:m,sortOrders:g})=>{if(m==="")return g[0];const y=g.indexOf(m||null);return g[y>g.length-2?0:y+1]},v=(m,g,y)=>{var T;m.stopPropagation();const b=g.order===y?null:y||h(g),_=(T=m.target)==null?void 0:T.closest("th");if(_&&ba(_,"noclick")){Ur(_,"noclick");return}if(!g.sortable)return;const w=m.currentTarget;if(["ascending","descending"].some(O=>ba(w,O)&&!g.sortOrders.includes(O)))return;const S=e.store.states;let A=S.sortProp.value,I;const D=S.sortingColumn.value;(D!==g||D===g&&ip(D.order))&&(D&&(D.order=null),S.sortingColumn.value=g,A=g.property),b?I=g.order=b:I=g.order=null,S.sortProp.value=A,S.sortOrder.value=I,r==null||r.store.commit("changeSortCondition")};return{handleHeaderClick:i,handleHeaderContextMenu:o,handleMouseDown:c,handleMouseMove:d,handleMouseOut:p,handleSortClick:v,handleFilterClick:a}}function Tie(e){const t=Qe(Mi),n=Le("table");return{getHeaderRowStyle:s=>{const l=t==null?void 0:t.props.headerRowStyle;return ot(l)?l.call(null,{rowIndex:s}):l},getHeaderRowClass:s=>{const l=[],u=t==null?void 0:t.props.headerRowClassName;return rt(u)?l.push(u):ot(u)&&l.push(u.call(null,{rowIndex:s})),l.join(" ")},getHeaderCellStyle:(s,l,u,c)=>{var d;let p=(d=t==null?void 0:t.props.headerCellStyle)!=null?d:{};ot(p)&&(p=p.call(null,{rowIndex:s,columnIndex:l,row:u,column:c}));const h=p2(l,c.fixed,e.store,u);return oc(h,"left"),oc(h,"right"),Object.assign({},p,h)},getHeaderCellClass:(s,l,u,c)=>{const d=f2(n.b(),l,c.fixed,e.store,u),p=[c.id,c.order,c.headerAlign,c.className,c.labelClassName,...d];c.children||p.push("is-leaf"),c.sortable&&p.push("is-sortable");const h=t==null?void 0:t.props.headerCellClassName;return rt(h)?p.push(h):ot(h)&&p.push(h.call(null,{rowIndex:s,columnIndex:l,row:u,column:c})),p.push(n.e("cell")),p.filter(v=>!!v).join(" ")}}}const M3=e=>{const t=[];return e.forEach(n=>{n.children?(t.push(n),t.push.apply(t,M3(n.children))):t.push(n)}),t},R3=e=>{let t=1;const n=(i,o)=>{if(o&&(i.level=o.level+1,t<i.level&&(t=i.level)),i.children){let s=0;i.children.forEach(l=>{n(l,i),s+=l.colSpan}),i.colSpan=s}else i.colSpan=1};e.forEach(i=>{i.level=1,n(i,void 0)});const r=[];for(let i=0;i<t;i++)r.push([]);return M3(e).forEach(i=>{i.children?(i.rowSpan=1,i.children.forEach(o=>o.isSubColumn=!0)):i.rowSpan=t-i.level+1,r[i.level-1].push(i)}),r};function wie(e){const t=Qe(Mi),n=k(()=>R3(e.store.states.originColumns.value));return{isGroup:k(()=>{const i=n.value.length>1;return i&&t&&(t.state.isGroup.value=!0),i}),toggleAllSelection:i=>{i.stopPropagation(),t==null||t.store.commit("toggleAllSelection")},columnRows:n}}var Sie=J({name:"ElTableHeader",components:{ElCheckbox:ri},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})},appendFilterPanelTo:{type:String},allowDragLastColumn:{type:Boolean}},setup(e,{emit:t}){const n=Mt(),r=Qe(Mi),a=Le("table"),i=z({}),{onColumnsChange:o,onScrollableChange:s}=h2(r),l=(r==null?void 0:r.props.tableLayout)==="auto",u=Ct(new Map),c=z(),d=()=>{setTimeout(()=>{u.size>0&&(u.forEach((O,V)=>{const N=c.value.querySelector(`.${V.replace(/\s/g,".")}`);if(N){const K=N.getBoundingClientRect().width;O.width=K}}),u.clear())})};Ie(u,d),ht(async()=>{await it(),await it();const{prop:O,order:V}=e.defaultSort;r==null||r.store.commit("sort",{prop:O,order:V,init:!0}),d()});const{handleHeaderClick:p,handleHeaderContextMenu:h,handleMouseDown:v,handleMouseMove:m,handleMouseOut:g,handleSortClick:y,handleFilterClick:T}=_ie(e,t),{getHeaderRowStyle:b,getHeaderRowClass:_,getHeaderCellStyle:w,getHeaderCellClass:S}=Tie(e),{isGroup:A,toggleAllSelection:I,columnRows:D}=wie(e);return n.state={onColumnsChange:o,onScrollableChange:s},n.filterPanels=i,{ns:a,filterPanels:i,onColumnsChange:o,onScrollableChange:s,columnRows:D,getHeaderRowClass:_,getHeaderRowStyle:b,getHeaderCellClass:S,getHeaderCellStyle:w,handleHeaderClick:p,handleHeaderContextMenu:h,handleMouseDown:v,handleMouseMove:m,handleMouseOut:g,handleSortClick:y,handleFilterClick:T,isGroup:A,toggleAllSelection:I,saveIndexSelection:u,isTableLayoutAuto:l,theadRef:c,updateFixedColumnStyle:d}},render(){const{ns:e,isGroup:t,columnRows:n,getHeaderCellStyle:r,getHeaderCellClass:a,getHeaderRowClass:i,getHeaderRowStyle:o,handleHeaderClick:s,handleHeaderContextMenu:l,handleMouseDown:u,handleMouseMove:c,handleSortClick:d,handleMouseOut:p,store:h,$parent:v,saveIndexSelection:m,isTableLayoutAuto:g}=this;let y=1;return lt("thead",{ref:"theadRef",class:{[e.is("group")]:t}},n.map((T,b)=>lt("tr",{class:i(b),key:b,style:o(b)},T.map((_,w)=>{_.rowSpan>y&&(y=_.rowSpan);const S=a(b,w,T,_);return g&&_.fixed&&m.set(S,_),lt("th",{class:S,colspan:_.colSpan,key:`${_.id}-thead`,rowspan:_.rowSpan,style:r(b,w,T,_),onClick:A=>{A.currentTarget.classList.contains("noclick")||s(A,_)},onContextmenu:A=>l(A,_),onMousedown:A=>u(A,_),onMousemove:A=>c(A,_),onMouseout:p},[lt("div",{class:["cell",_.filteredValue&&_.filteredValue.length>0?"highlight":""]},[_.renderHeader?_.renderHeader({column:_,$index:w,store:h,_self:v}):_.label,_.sortable&&lt("span",{onClick:A=>d(A,_),class:"caret-wrapper"},[lt("i",{onClick:A=>d(A,_,"ascending"),class:"sort-caret ascending"}),lt("i",{onClick:A=>d(A,_,"descending"),class:"sort-caret descending"})]),_.filterable&&lt(bie,{store:h,placement:_.filterPlacement||"bottom-start",appendTo:v.appendFilterPanelTo,column:_,upDataColumn:(A,I)=>{_[A]=I}},{"filter-icon":()=>_.renderFilterIcon?_.renderFilterIcon({filterOpened:_.filterOpened}):null})])])}))))}});function T0(e,t,n=.03){return e-t>n}function Cie(e){const t=Qe(Mi),n=z(""),r=z(lt("div")),a=(v,m,g)=>{var y;const T=t,b=_0(v);let _;const w=(y=T==null?void 0:T.vnode.el)==null?void 0:y.dataset.prefix;b&&(_=CE({columns:e.store.states.columns.value},b,w),_&&(T==null||T.emit(`cell-${g}`,m,_,b,v))),T==null||T.emit(`row-${g}`,m,_,v)},i=(v,m)=>{a(v,m,"dblclick")},o=(v,m)=>{e.store.commit("setCurrentRow",m),a(v,m,"click")},s=(v,m)=>{a(v,m,"contextmenu")},l=wa(v=>{e.store.commit("setHoverRow",v)},30),u=wa(()=>{e.store.commit("setHoverRow",null)},30),c=v=>{const m=window.getComputedStyle(v,null),g=Number.parseInt(m.paddingLeft,10)||0,y=Number.parseInt(m.paddingRight,10)||0,T=Number.parseInt(m.paddingTop,10)||0,b=Number.parseInt(m.paddingBottom,10)||0;return{left:g,right:y,top:T,bottom:b}},d=(v,m,g)=>{let y=m.target.parentNode;for(;v>1&&(y=y==null?void 0:y.nextSibling,!(!y||y.nodeName!=="TR"));)g(y,"hover-row hover-fixed-row"),v--};return{handleDoubleClick:i,handleClick:o,handleContextMenu:s,handleMouseEnter:l,handleMouseLeave:u,handleCellMouseEnter:(v,m,g)=>{var y,T,b;const _=t,w=_0(v),S=(y=_==null?void 0:_.vnode.el)==null?void 0:y.dataset.prefix;let A;if(w){A=CE({columns:e.store.states.columns.value},w,S),w.rowSpan>1&&d(w.rowSpan,v,Ga);const X=_.hoverState={cell:w,column:A,row:m};_==null||_.emit("cell-mouse-enter",X.row,X.column,X.cell,v)}if(!g)return;const I=v.target.querySelector(".cell");if(!(ba(I,`${S}-tooltip`)&&I.childNodes.length))return;const D=document.createRange();D.setStart(I,0),D.setEnd(I,I.childNodes.length);const{width:O,height:V}=D.getBoundingClientRect(),{width:N,height:K}=I.getBoundingClientRect(),{top:Y,left:q,right:$,bottom:j}=c(I),W=q+$,H=Y+j;T0(O+W,N)||T0(V+H,K)||T0(I.scrollWidth,N)?oie(g,w.innerText||w.textContent,m,A,w,_):((T=ma)==null?void 0:T.trigger)===w&&((b=ma)==null||b())},handleCellMouseLeave:v=>{const m=_0(v);if(!m)return;m.rowSpan>1&&d(m.rowSpan,v,Ur);const g=t==null?void 0:t.hoverState;t==null||t.emit("cell-mouse-leave",g==null?void 0:g.row,g==null?void 0:g.column,g==null?void 0:g.cell,v)},tooltipContent:n,tooltipTrigger:r}}function Eie(e){const t=Qe(Mi),n=Le("table");return{getRowStyle:(u,c)=>{const d=t==null?void 0:t.props.rowStyle;return ot(d)?d.call(null,{row:u,rowIndex:c}):d||null},getRowClass:(u,c)=>{const d=[n.e("row")];t!=null&&t.props.highlightCurrentRow&&u===e.store.states.currentRow.value&&d.push("current-row"),e.stripe&&c%2===1&&d.push(n.em("row","striped"));const p=t==null?void 0:t.props.rowClassName;return rt(p)?d.push(p):ot(p)&&d.push(p.call(null,{row:u,rowIndex:c})),d},getCellStyle:(u,c,d,p)=>{const h=t==null?void 0:t.props.cellStyle;let v=h??{};ot(h)&&(v=h.call(null,{rowIndex:u,columnIndex:c,row:d,column:p}));const m=p2(c,e==null?void 0:e.fixed,e.store);return oc(m,"left"),oc(m,"right"),Object.assign({},v,m)},getCellClass:(u,c,d,p,h)=>{const v=f2(n.b(),c,e==null?void 0:e.fixed,e.store,void 0,h),m=[p.id,p.align,p.className,...v],g=t==null?void 0:t.props.cellClassName;return rt(g)?m.push(g):ot(g)&&m.push(g.call(null,{rowIndex:u,columnIndex:c,row:d,column:p})),m.push(n.e("cell")),m.filter(y=>!!y).join(" ")},getSpan:(u,c,d,p)=>{let h=1,v=1;const m=t==null?void 0:t.props.spanMethod;if(ot(m)){const g=m({row:u,column:c,rowIndex:d,columnIndex:p});Be(g)?(h=g[0],v=g[1]):It(g)&&(h=g.rowspan,v=g.colspan)}return{rowspan:h,colspan:v}},getColspanRealWidth:(u,c,d)=>{if(c<1)return u[d].realWidth;const p=u.map(({realWidth:h,width:v})=>h||v).slice(d,d+c);return Number(p.reduce((h,v)=>Number(h)+Number(v),-1))}}}const xie=J({name:"TableTdWrapper"}),kie=J({...xie,props:{colspan:{type:Number,default:1},rowspan:{type:Number,default:1}},setup(e){return(t,n)=>(x(),U("td",{colspan:e.colspan,rowspan:e.rowspan},[fe(t.$slots,"default")],8,["colspan","rowspan"]))}});var Aie=He(kie,[["__file","td-wrapper.vue"]]);function Die(e){const t=Qe(Mi),n=Le("table"),{handleDoubleClick:r,handleClick:a,handleContextMenu:i,handleMouseEnter:o,handleMouseLeave:s,handleCellMouseEnter:l,handleCellMouseLeave:u,tooltipContent:c,tooltipTrigger:d}=Cie(e),{getRowStyle:p,getRowClass:h,getCellStyle:v,getCellClass:m,getSpan:g,getColspanRealWidth:y}=Eie(e),T=k(()=>e.store.states.columns.value.findIndex(({type:A})=>A==="default")),b=(A,I)=>{const D=t.props.rowKey;return D?Br(A,D):I},_=(A,I,D,O=!1)=>{const{tooltipEffect:V,tooltipOptions:N,store:K}=e,{indent:Y,columns:q}=K.states,$=h(A,I);let j=!0;return D&&($.push(n.em("row",`level-${D.level}`)),j=D.display),lt("tr",{style:[j?null:{display:"none"},p(A,I)],class:$,key:b(A,I),onDblclick:H=>r(H,A),onClick:H=>a(H,A),onContextmenu:H=>i(H,A),onMouseenter:()=>o(I),onMouseleave:s},q.value.map((H,X)=>{const{rowspan:re,colspan:le}=g(A,H,I,X);if(!re||!le)return null;const ne=Object.assign({},H);ne.realWidth=y(q.value,le,X);const be={store:e.store,_self:e.context||t,column:ne,row:A,$index:I,cellIndex:X,expanded:O};X===T.value&&D&&(be.treeNode={indent:D.level*Y.value,level:D.level},pn(D.expanded)&&(be.treeNode.expanded=D.expanded,"loading"in D&&(be.treeNode.loading=D.loading),"noLazyChildren"in D&&(be.treeNode.noLazyChildren=D.noLazyChildren)));const _e=`${b(A,I)},${X}`,ve=ne.columnKey||ne.rawColumnKey||"",te=H.showOverflowTooltip&&bI({effect:V},N,H.showOverflowTooltip);return lt(Aie,{style:v(I,X,A,H),class:m(I,X,A,H,le-1),key:`${ve}${_e}`,rowspan:re,colspan:le,onMouseenter:me=>l(me,A,te),onMouseleave:u},{default:()=>w(X,H,be)})}))},w=(A,I,D)=>I.renderCell(D);return{wrappedRowRender:(A,I)=>{const D=e.store,{isRowExpanded:O,assertRowKey:V}=D,{treeData:N,lazyTreeNodeMap:K,childrenColumnName:Y,rowKey:q}=D.states,$=D.states.columns.value;if($.some(({type:W})=>W==="expand")){const W=O(A),H=_(A,I,void 0,W),X=t.renderExpanded;if(!X)return console.error("[Element Error]renderExpanded is required."),H;const re=[[H]];return(t.props.preserveExpandedContent||W)&&re[0].push(lt("tr",{key:`expanded-row__${H.key}`,style:{display:W?"":"none"}},[lt("td",{colspan:$.length,class:`${n.e("cell")} ${n.e("expanded-cell")}`},[X({row:A,$index:I,store:D,expanded:W})])])),re}else if(Object.keys(N.value).length){V();const W=Br(A,q.value);let H=N.value[W],X=null;H&&(X={expanded:H.expanded,level:H.level,display:!0},pn(H.lazy)&&(pn(H.loaded)&&H.loaded&&(X.noLazyChildren=!(H.children&&H.children.length)),X.loading=H.loading));const re=[_(A,I,X)];if(H){let le=0;const ne=(_e,ve)=>{_e&&_e.length&&ve&&_e.forEach(te=>{const me={display:ve.display&&ve.expanded,level:ve.level+1,expanded:!1,noLazyChildren:!1,loading:!1},pe=Br(te,q.value);if(yi(pe))throw new Error("For nested data item, row-key is required.");if(H={...N.value[pe]},H&&(me.expanded=H.expanded,H.level=H.level||me.level,H.display=!!(H.expanded&&me.display),pn(H.lazy)&&(pn(H.loaded)&&H.loaded&&(me.noLazyChildren=!(H.children&&H.children.length)),me.loading=H.loading)),le++,re.push(_(te,I+le,me)),H){const Fe=K.value[pe]||te[Y.value];ne(Fe,H)}})};H.display=!0;const be=K.value[W]||A[Y.value];ne(be,H)}return re}else return _(A,I,void 0)},tooltipContent:c,tooltipTrigger:d}}const Iie={store:{required:!0,type:Object},stripe:Boolean,tooltipEffect:String,tooltipOptions:{type:Object},context:{default:()=>({}),type:Object},rowClassName:[String,Function],rowStyle:[Object,Function],fixed:{type:String,default:""},highlight:Boolean};var Pie=J({name:"ElTableBody",props:Iie,setup(e){const t=Mt(),n=Qe(Mi),r=Le("table"),{wrappedRowRender:a,tooltipContent:i,tooltipTrigger:o}=Die(e),{onColumnsChange:s,onScrollableChange:l}=h2(n),u=[];return Ie(e.store.states.hoverRow,(c,d)=>{var p;const h=t==null?void 0:t.vnode.el,v=Array.from((h==null?void 0:h.children)||[]).filter(y=>y==null?void 0:y.classList.contains(`${r.e("row")}`));let m=c;const g=(p=v[m])==null?void 0:p.childNodes;if(g!=null&&g.length){let y=0;Array.from(g).reduce((b,_,w)=>{var S,A;return((S=g[w])==null?void 0:S.colSpan)>1&&(y=(A=g[w])==null?void 0:A.colSpan),_.nodeName!=="TD"&&y===0&&b.push(w),y>0&&y--,b},[]).forEach(b=>{var _;for(m=c;m>0;){const w=(_=v[m-1])==null?void 0:_.childNodes;if(w[b]&&w[b].nodeName==="TD"&&w[b].rowSpan>1){Ga(w[b],"hover-cell"),u.push(w[b]);break}m--}})}else u.forEach(y=>Ur(y,"hover-cell")),u.length=0;!e.store.states.isComplex.value||!Wt||Os(()=>{const y=v[d],T=v[c];y&&!y.classList.contains("hover-fixed-row")&&Ur(y,"hover-row"),T&&Ga(T,"hover-row")})}),zs(()=>{var c;(c=ma)==null||c()}),{ns:r,onColumnsChange:s,onScrollableChange:l,wrappedRowRender:a,tooltipContent:i,tooltipTrigger:o}},render(){const{wrappedRowRender:e,store:t}=this,n=t.states.data.value||[];return lt("tbody",{tabIndex:-1},[n.reduce((r,a)=>r.concat(e(a,r.length)),[])])}});function Oie(){const e=Qe(Mi),t=e==null?void 0:e.store,n=k(()=>t.states.fixedLeafColumnsLength.value),r=k(()=>t.states.rightFixedColumns.value.length),a=k(()=>t.states.columns.value.length),i=k(()=>t.states.fixedColumns.value.length),o=k(()=>t.states.rightFixedColumns.value.length);return{leftFixedLeafCount:n,rightFixedLeafCount:r,columnsCount:a,leftFixedCount:i,rightFixedCount:o,columns:t.states.columns}}function Mie(e){const{columns:t}=Oie(),n=Le("table");return{getCellClasses:(i,o)=>{const s=i[o],l=[n.e("cell"),s.id,s.align,s.labelClassName,...f2(n.b(),o,s.fixed,e.store)];return s.className&&l.push(s.className),s.children||l.push(n.is("leaf")),l},getCellStyles:(i,o)=>{const s=p2(o,i.fixed,e.store);return oc(s,"left"),oc(s,"right"),s},columns:t}}var Rie=J({name:"ElTableFooter",props:{fixed:{type:String,default:""},store:{required:!0,type:Object},summaryMethod:Function,sumText:String,border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e){const t=Qe(Mi),n=Le("table"),{getCellClasses:r,getCellStyles:a,columns:i}=Mie(e),{onScrollableChange:o,onColumnsChange:s}=h2(t);return{ns:n,onScrollableChange:o,onColumnsChange:s,getCellClasses:r,getCellStyles:a,columns:i}},render(){const{columns:e,getCellStyles:t,getCellClasses:n,summaryMethod:r,sumText:a}=this,i=this.store.states.data.value;let o=[];return r?o=r({columns:e,data:i}):e.forEach((s,l)=>{if(l===0){o[l]=a;return}const u=i.map(h=>Number(h[s.property])),c=[];let d=!0;u.forEach(h=>{if(!Number.isNaN(+h)){d=!1;const v=`${h}`.split(".")[1];c.push(v?v.length:0)}});const p=Math.max.apply(null,c);d?o[l]="":o[l]=u.reduce((h,v)=>{const m=Number(v);return Number.isNaN(+m)?h:Number.parseFloat((h+v).toFixed(Math.min(p,20)))},0)}),lt(lt("tfoot",[lt("tr",{},[...e.map((s,l)=>lt("td",{key:l,colspan:s.colSpan,rowspan:s.rowSpan,class:n(e,l),style:t(s,l)},[lt("div",{class:["cell",s.labelClassName]},[o[l]])]))])]))}});function Lie(e){return{setCurrentRow:d=>{e.commit("setCurrentRow",d)},getSelectionRows:()=>e.getSelectionRows(),toggleRowSelection:(d,p,h=!0)=>{e.toggleRowSelection(d,p,!1,h),e.updateAllSelected()},clearSelection:()=>{e.clearSelection()},clearFilter:d=>{e.clearFilter(d)},toggleAllSelection:()=>{e.commit("toggleAllSelection")},toggleRowExpansion:(d,p)=>{e.toggleRowExpansionAdapter(d,p)},clearSort:()=>{e.clearSort()},sort:(d,p)=>{e.commit("sort",{prop:d,order:p})},updateKeyChildren:(d,p)=>{e.updateKeyChildren(d,p)}}}function Nie(e,t,n,r){const a=z(!1),i=z(null),o=z(!1),s=W=>{o.value=W},l=z({width:null,height:null,headerHeight:null}),u=z(!1),c={display:"inline-block",verticalAlign:"middle"},d=z(),p=z(0),h=z(0),v=z(0),m=z(0),g=z(0);_r(()=>{t.setHeight(e.height)}),_r(()=>{t.setMaxHeight(e.maxHeight)}),Ie(()=>[e.currentRowKey,n.states.rowKey],([W,H])=>{!f(H)||!f(W)||n.setCurrentRowKey(`${W}`)},{immediate:!0}),Ie(()=>e.data,W=>{r.store.commit("setData",W)},{immediate:!0,deep:!0}),_r(()=>{e.expandRowKeys&&n.setExpandRowKeysAdapter(e.expandRowKeys)});const y=()=>{r.store.commit("setHoverRow",null),r.hoverState&&(r.hoverState=null)},T=(W,H)=>{const{pixelX:X,pixelY:re}=H;Math.abs(X)>=Math.abs(re)&&(r.refs.bodyWrapper.scrollLeft+=H.pixelX/5)},b=k(()=>e.height||e.maxHeight||n.states.fixedColumns.value.length>0||n.states.rightFixedColumns.value.length>0),_=k(()=>({width:t.bodyWidth.value?`${t.bodyWidth.value}px`:""})),w=()=>{b.value&&t.updateElsHeight(),t.updateColumnsWidth(),!(typeof window>"u")&&requestAnimationFrame(D)};ht(async()=>{await it(),n.updateColumns(),O(),requestAnimationFrame(w);const W=r.vnode.el,H=r.refs.headerWrapper;e.flexible&&W&&W.parentElement&&(W.parentElement.style.minWidth="0"),l.value={width:d.value=W.offsetWidth,height:W.offsetHeight,headerHeight:e.showHeader&&H?H.offsetHeight:null},n.states.columns.value.forEach(X=>{X.filteredValue&&X.filteredValue.length&&r.store.commit("filterChange",{column:X,values:X.filteredValue,silent:!0})}),r.$ready=!0});const S=(W,H)=>{if(!W)return;const X=Array.from(W.classList).filter(re=>!re.startsWith("is-scrolling-"));X.push(t.scrollX.value?H:"is-scrolling-none"),W.className=X.join(" ")},A=W=>{const{tableWrapper:H}=r.refs;S(H,W)},I=W=>{const{tableWrapper:H}=r.refs;return!!(H&&H.classList.contains(W))},D=function(){if(!r.refs.scrollBarRef)return;if(!t.scrollX.value){const _e="is-scrolling-none";I(_e)||A(_e);return}const W=r.refs.scrollBarRef.wrapRef;if(!W)return;const{scrollLeft:H,offsetWidth:X,scrollWidth:re}=W,{headerWrapper:le,footerWrapper:ne}=r.refs;le&&(le.scrollLeft=H),ne&&(ne.scrollLeft=H);const be=re-X-1;H>=be?A("is-scrolling-right"):A(H===0?"is-scrolling-left":"is-scrolling-middle")},O=()=>{r.refs.scrollBarRef&&(r.refs.scrollBarRef.wrapRef&&ln(r.refs.scrollBarRef.wrapRef,"scroll",D,{passive:!0}),e.fit?In(r.vnode.el,V):ln(window,"resize",V),In(r.refs.bodyWrapper,()=>{var W,H;V(),(H=(W=r.refs)==null?void 0:W.scrollBarRef)==null||H.update()}))},V=()=>{var W,H,X,re;const le=r.vnode.el;if(!r.$ready||!le)return;let ne=!1;const{width:be,height:_e,headerHeight:ve}=l.value,te=d.value=le.offsetWidth;be!==te&&(ne=!0);const me=le.offsetHeight;(e.height||b.value)&&_e!==me&&(ne=!0);const pe=e.tableLayout==="fixed"?r.refs.headerWrapper:(W=r.refs.tableHeaderRef)==null?void 0:W.$el;e.showHeader&&(pe==null?void 0:pe.offsetHeight)!==ve&&(ne=!0),p.value=((H=r.refs.tableWrapper)==null?void 0:H.scrollHeight)||0,v.value=(pe==null?void 0:pe.scrollHeight)||0,m.value=((X=r.refs.footerWrapper)==null?void 0:X.offsetHeight)||0,g.value=((re=r.refs.appendWrapper)==null?void 0:re.offsetHeight)||0,h.value=p.value-v.value-m.value-g.value,ne&&(l.value={width:te,height:me,headerHeight:e.showHeader&&(pe==null?void 0:pe.offsetHeight)||0},w())},N=Kn(),K=k(()=>{const{bodyWidth:W,scrollY:H,gutterWidth:X}=t;return W.value?`${W.value-(H.value?X:0)}px`:""}),Y=k(()=>e.maxHeight?"fixed":e.tableLayout),q=k(()=>{if(e.data&&e.data.length)return null;let W="100%";e.height&&h.value&&(W=`${h.value}px`);const H=d.value;return{width:H?`${H}px`:"",height:W}}),$=k(()=>e.height?{height:"100%"}:e.maxHeight?Number.isNaN(Number(e.maxHeight))?{maxHeight:`calc(${e.maxHeight} - ${v.value+m.value}px)`}:{maxHeight:`${e.maxHeight-v.value-m.value}px`}:{});return{isHidden:a,renderExpanded:i,setDragVisible:s,isGroup:u,handleMouseLeave:y,handleHeaderFooterMousewheel:T,tableSize:N,emptyBlockStyle:q,handleFixedMousewheel:(W,H)=>{const X=r.refs.bodyWrapper;if(Math.abs(H.spinY)>0){const re=X.scrollTop;H.pixelY<0&&re!==0&&W.preventDefault(),H.pixelY>0&&X.scrollHeight-X.clientHeight>re&&W.preventDefault(),X.scrollTop+=Math.ceil(H.pixelY/5)}else X.scrollLeft+=Math.ceil(H.pixelX/5)},resizeProxyVisible:o,bodyWidth:K,resizeState:l,doLayout:w,tableBodyStyles:_,tableLayout:Y,scrollbarViewStyle:c,scrollbarStyle:$}}function Fie(e){const t=z(),n=()=>{const a=e.vnode.el.querySelector(".hidden-columns"),i={childList:!0,subtree:!0},o=e.store.states.updateOrderFns;t.value=new MutationObserver(()=>{o.forEach(s=>s())}),t.value.observe(a,i)};ht(()=>{n()}),zs(()=>{var r;(r=t.value)==null||r.disconnect()})}var $ie={data:{type:Array,default:()=>[]},size:Xn,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,defaultSort:Object,tooltipEffect:String,tooltipOptions:Object,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:()=>({hasChildren:"hasChildren",children:"children",checkStrictly:!1})},lazy:Boolean,load:Function,style:{type:Object,default:()=>({})},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:Boolean,flexible:Boolean,showOverflowTooltip:[Boolean,Object],tooltipFormatter:Function,appendFilterPanelTo:String,scrollbarTabindex:{type:[Number,String],default:void 0},allowDragLastColumn:{type:Boolean,default:!0},preserveExpandedContent:{type:Boolean,default:!1}};function L3(e){const t=e.tableLayout==="auto";let n=e.columns||[];t&&n.every(({width:a})=>Xt(a))&&(n=[]);const r=a=>{const i={key:`${e.tableLayout}_${a.id}`,style:{},name:void 0};return t?i.style={width:`${a.width}px`}:i.name=a.id,i};return lt("colgroup",{},n.map(a=>lt("col",r(a))))}L3.props=["columns","tableLayout"];const Bie=()=>{const e=z(),t=(i,o)=>{const s=e.value;s&&s.scrollTo(i,o)},n=(i,o)=>{const s=e.value;s&&st(o)&&["Top","Left"].includes(i)&&s[`setScroll${i}`](o)};return{scrollBarRef:e,scrollTo:t,setScrollTop:i=>n("Top",i),setScrollLeft:i=>n("Left",i)}};var kE=!1,dl,sb,lb,Vh,Uh,N3,Hh,ub,cb,db,F3,fb,pb,$3,B3;function ha(){if(!kE){kE=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),n=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(fb=/\b(iPhone|iP[ao]d)/.exec(e),pb=/\b(iP[ao]d)/.exec(e),db=/Android/i.exec(e),$3=/FBAN\/\w+;/i.exec(e),B3=/Mobile/i.exec(e),F3=!!/Win64/.exec(e),t){dl=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,dl&&document&&document.documentMode&&(dl=document.documentMode);var r=/(?:Trident\/(\d+.\d+))/.exec(e);N3=r?parseFloat(r[1])+4:dl,sb=t[2]?parseFloat(t[2]):NaN,lb=t[3]?parseFloat(t[3]):NaN,Vh=t[4]?parseFloat(t[4]):NaN,Vh?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),Uh=t&&t[1]?parseFloat(t[1]):NaN):Uh=NaN}else dl=sb=lb=Uh=Vh=NaN;if(n){if(n[1]){var a=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);Hh=a?parseFloat(a[1].replace("_",".")):!0}else Hh=!1;ub=!!n[2],cb=!!n[3]}else Hh=ub=cb=!1}}var hb={ie:function(){return ha()||dl},ieCompatibilityMode:function(){return ha()||N3>dl},ie64:function(){return hb.ie()&&F3},firefox:function(){return ha()||sb},opera:function(){return ha()||lb},webkit:function(){return ha()||Vh},safari:function(){return hb.webkit()},chrome:function(){return ha()||Uh},windows:function(){return ha()||ub},osx:function(){return ha()||Hh},linux:function(){return ha()||cb},iphone:function(){return ha()||fb},mobile:function(){return ha()||fb||pb||db||B3},nativeApp:function(){return ha()||$3},android:function(){return ha()||db},ipad:function(){return ha()||pb}},Vie=hb,fh=!!(typeof window<"u"&&window.document&&window.document.createElement),Uie={canUseDOM:fh,canUseWorkers:typeof Worker<"u",canUseEventListeners:fh&&!!(window.addEventListener||window.attachEvent),canUseViewport:fh&&!!window.screen,isInWorker:!fh},V3=Uie,U3;V3.canUseDOM&&(U3=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function Hie(e,t){if(!V3.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,r=n in document;if(!r){var a=document.createElement("div");a.setAttribute(n,"return;"),r=typeof a[n]=="function"}return!r&&U3&&e==="wheel"&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var zie=Hie,AE=10,DE=40,IE=800;function H3(e){var t=0,n=0,r=0,a=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),r=t*AE,a=n*AE,"deltaY"in e&&(a=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||a)&&e.deltaMode&&(e.deltaMode==1?(r*=DE,a*=DE):(r*=IE,a*=IE)),r&&!t&&(t=r<1?-1:1),a&&!n&&(n=a<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:a}}H3.getEventType=function(){return Vie.firefox()?"DOMMouseScroll":zie("wheel")?"wheel":"mousewheel"};var jie=H3;/**
* Checks if an event is supported in the current execution environment.
*
* NOTE: This will not work correctly for non-generic events such as `change`,
* `reset`, `load`, `error`, and `select`.
*
* Borrows from Modernizr.
*
* @param {string} eventNameSuffix Event name, e.g. "click".
* @param {?boolean} capture Check if the capture phase is supported.
* @return {boolean} True if the event is supported.
* @internal
* @license Modernizr 3.0.0pre (Custom Build) | MIT
*/const Wie=function(e,t){if(e&&e.addEventListener){const n=function(r){const a=jie(r);t&&Reflect.apply(t,this,[r,a])};e.addEventListener("wheel",n,{passive:!0})}},Kie={beforeMount(e,t){Wie(e,t.value)}};let qie=1;const Gie=J({name:"ElTable",directives:{Mousewheel:Kie},components:{TableHeader:Sie,TableBody:Pie,TableFooter:Rie,ElScrollbar:fo,hColgroup:L3},props:$ie,emits:["select","select-all","selection-change","cell-mouse-enter","cell-mouse-leave","cell-contextmenu","cell-click","cell-dblclick","row-click","row-contextmenu","row-dblclick","header-click","header-contextmenu","sort-change","filter-change","current-change","header-dragend","expand-change","scroll"],setup(e){const{t}=Kt(),n=Le("table"),r=Mt();Vt(Mi,r);const a=pie(r,e);r.store=a;const i=new mie({store:r.store,table:r,fit:e.fit,showHeader:e.showHeader});r.layout=i;const o=k(()=>(a.states.data.value||[]).length===0),{setCurrentRow:s,getSelectionRows:l,toggleRowSelection:u,clearSelection:c,clearFilter:d,toggleAllSelection:p,toggleRowExpansion:h,clearSort:v,sort:m,updateKeyChildren:g}=Lie(a),{isHidden:y,renderExpanded:T,setDragVisible:b,isGroup:_,handleMouseLeave:w,handleHeaderFooterMousewheel:S,tableSize:A,emptyBlockStyle:I,handleFixedMousewheel:D,resizeProxyVisible:O,bodyWidth:V,resizeState:N,doLayout:K,tableBodyStyles:Y,tableLayout:q,scrollbarViewStyle:$,scrollbarStyle:j}=Nie(e,i,a,r),{scrollBarRef:W,scrollTo:H,setScrollLeft:X,setScrollTop:re}=Bie(),le=wa(K,50),ne=`${n.namespace.value}-table_${qie++}`;r.tableId=ne,r.state={isGroup:_,resizeState:N,doLayout:K,debouncedUpdateLayout:le};const be=k(()=>{var te;return(te=e.sumText)!=null?te:t("el.table.sumText")}),_e=k(()=>{var te;return(te=e.emptyText)!=null?te:t("el.table.emptyText")}),ve=k(()=>R3(a.states.originColumns.value)[0]);return Fie(r),fn(()=>{le.cancel()}),{ns:n,layout:i,store:a,columns:ve,handleHeaderFooterMousewheel:S,handleMouseLeave:w,tableId:ne,tableSize:A,isHidden:y,isEmpty:o,renderExpanded:T,resizeProxyVisible:O,resizeState:N,isGroup:_,bodyWidth:V,tableBodyStyles:Y,emptyBlockStyle:I,debouncedUpdateLayout:le,handleFixedMousewheel:D,setCurrentRow:s,getSelectionRows:l,toggleRowSelection:u,clearSelection:c,clearFilter:d,toggleAllSelection:p,toggleRowExpansion:h,clearSort:v,doLayout:K,sort:m,updateKeyChildren:g,t,setDragVisible:b,context:r,computedSumText:be,computedEmptyText:_e,tableLayout:q,scrollbarViewStyle:$,scrollbarStyle:j,scrollBarRef:W,scrollTo:H,setScrollLeft:X,setScrollTop:re,allowDragLastColumn:e.allowDragLastColumn}}});function Yie(e,t,n,r,a,i){const o=Rt("hColgroup"),s=Rt("table-header"),l=Rt("table-body"),u=Rt("table-footer"),c=Rt("el-scrollbar"),d=Tv("mousewheel");return x(),U("div",{ref:"tableWrapper",class:F([{[e.ns.m("fit")]:e.fit,[e.ns.m("striped")]:e.stripe,[e.ns.m("border")]:e.border||e.isGroup,[e.ns.m("hidden")]:e.isHidden,[e.ns.m("group")]:e.isGroup,[e.ns.m("fluid-height")]:e.maxHeight,[e.ns.m("scrollable-x")]:e.layout.scrollX.value,[e.ns.m("scrollable-y")]:e.layout.scrollY.value,[e.ns.m("enable-row-hover")]:!e.store.states.isComplex.value,[e.ns.m("enable-row-transition")]:(e.store.states.data.value||[]).length!==0&&(e.store.states.data.value||[]).length<100,"has-footer":e.showSummary},e.ns.m(e.tableSize),e.className,e.ns.b(),e.ns.m(`layout-${e.tableLayout}`)]),style:tt(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:e.handleMouseLeave},[M("div",{class:F(e.ns.e("inner-wrapper"))},[M("div",{ref:"hiddenColumns",class:"hidden-columns"},[fe(e.$slots,"default")],512),e.showHeader&&e.tableLayout==="fixed"?gt((x(),U("div",{key:0,ref:"headerWrapper",class:F(e.ns.e("header-wrapper"))},[M("table",{ref:"tableHeader",class:F(e.ns.e("header")),style:tt(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[E(o,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),E(s,{ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,"append-filter-panel-to":e.appendFilterPanelTo,"allow-drag-last-column":e.allowDragLastColumn,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","append-filter-panel-to","allow-drag-last-column","onSetDragVisible"])],6)],2)),[[d,e.handleHeaderFooterMousewheel]]):oe("v-if",!0),M("div",{ref:"bodyWrapper",class:F(e.ns.e("body-wrapper"))},[E(c,{ref:"scrollBarRef","view-style":e.scrollbarViewStyle,"wrap-style":e.scrollbarStyle,always:e.scrollbarAlwaysOn,tabindex:e.scrollbarTabindex,onScroll:p=>e.$emit("scroll",p)},{default:P(()=>[M("table",{ref:"tableBody",class:F(e.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:tt({width:e.bodyWidth,tableLayout:e.tableLayout})},[E(o,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),e.showHeader&&e.tableLayout==="auto"?(x(),he(s,{key:0,ref:"tableHeaderRef",class:F(e.ns.e("body-header")),border:e.border,"default-sort":e.defaultSort,store:e.store,"append-filter-panel-to":e.appendFilterPanelTo,onSetDragVisible:e.setDragVisible},null,8,["class","border","default-sort","store","append-filter-panel-to","onSetDragVisible"])):oe("v-if",!0),E(l,{context:e.context,highlight:e.highlightCurrentRow,"row-class-name":e.rowClassName,"tooltip-effect":e.tooltipEffect,"tooltip-options":e.tooltipOptions,"row-style":e.rowStyle,store:e.store,stripe:e.stripe},null,8,["context","highlight","row-class-name","tooltip-effect","tooltip-options","row-style","store","stripe"]),e.showSummary&&e.tableLayout==="auto"?(x(),he(u,{key:1,class:F(e.ns.e("body-footer")),border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["class","border","default-sort","store","sum-text","summary-method"])):oe("v-if",!0)],6),e.isEmpty?(x(),U("div",{key:0,ref:"emptyBlock",style:tt(e.emptyBlockStyle),class:F(e.ns.e("empty-block"))},[M("span",{class:F(e.ns.e("empty-text"))},[fe(e.$slots,"empty",{},()=>[we(de(e.computedEmptyText),1)])],2)],6)):oe("v-if",!0),e.$slots.append?(x(),U("div",{key:1,ref:"appendWrapper",class:F(e.ns.e("append-wrapper"))},[fe(e.$slots,"append")],2)):oe("v-if",!0)]),_:3},8,["view-style","wrap-style","always","tabindex","onScroll"])],2),e.showSummary&&e.tableLayout==="fixed"?gt((x(),U("div",{key:1,ref:"footerWrapper",class:F(e.ns.e("footer-wrapper"))},[M("table",{class:F(e.ns.e("footer")),cellspacing:"0",cellpadding:"0",border:"0",style:tt(e.tableBodyStyles)},[E(o,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),E(u,{border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["border","default-sort","store","sum-text","summary-method"])],6)],2)),[[zt,!e.isEmpty],[d,e.handleHeaderFooterMousewheel]]):oe("v-if",!0),e.border||e.isGroup?(x(),U("div",{key:2,class:F(e.ns.e("border-left-patch"))},null,2)):oe("v-if",!0)],2),gt(M("div",{ref:"resizeProxy",class:F(e.ns.e("column-resize-proxy"))},null,2),[[zt,e.resizeProxyVisible]])],46,["data-prefix","onMouseleave"])}var Xie=He(Gie,[["render",Yie],["__file","table.vue"]]);const Qie={selection:"table-column--selection",expand:"table__expand-column"},Jie={default:{order:""},selection:{width:48,minWidth:48,realWidth:48,order:""},expand:{width:48,minWidth:48,realWidth:48,order:""},index:{width:48,minWidth:48,realWidth:48,order:""}},Zie=e=>Qie[e]||"",eoe={selection:{renderHeader({store:e,column:t}){function n(){return e.states.data.value&&e.states.data.value.length===0}return lt(ri,{disabled:n(),size:e.states.tableSize.value,indeterminate:e.states.selection.value.length>0&&!e.states.isAllSelected.value,"onUpdate:modelValue":e.toggleAllSelection,modelValue:e.states.isAllSelected.value,ariaLabel:t.label})},renderCell({row:e,column:t,store:n,$index:r}){return lt(ri,{disabled:t.selectable?!t.selectable.call(null,e,r):!1,size:n.states.tableSize.value,onChange:()=>{n.commit("rowSelectedChanged",e)},onClick:a=>a.stopPropagation(),modelValue:n.isSelected(e),ariaLabel:t.label})},sortable:!1,resizable:!1},index:{renderHeader({column:e}){return e.label||"#"},renderCell({column:e,$index:t}){let n=t+1;const r=e.index;return st(r)?n=t+r:ot(r)&&(n=r(t)),lt("div",{},[n])},sortable:!1},expand:{renderHeader({column:e}){return e.label||""},renderCell({row:e,store:t,expanded:n}){const{ns:r}=t,a=[r.e("expand-icon")];return n&&a.push(r.em("expand-icon","expanded")),lt("div",{class:a,onClick:function(o){o.stopPropagation(),t.toggleRowExpansion(e)}},{default:()=>[lt(et,null,{default:()=>[lt(sa)]})]})},sortable:!1,resizable:!1}};function toe({row:e,column:t,$index:n}){var r;const a=t.property,i=a&&jd(e,a).value;return t&&t.formatter?t.formatter(e,t,i,n):((r=i==null?void 0:i.toString)==null?void 0:r.call(i))||""}function noe({row:e,treeNode:t,store:n},r=!1){const{ns:a}=n;if(!t)return r?[lt("span",{class:a.e("placeholder")})]:null;const i=[],o=function(s){s.stopPropagation(),!t.loading&&n.loadOrToggle(e)};if(t.indent&&i.push(lt("span",{class:a.e("indent"),style:{"padding-left":`${t.indent}px`}})),pn(t.expanded)&&!t.noLazyChildren){const s=[a.e("expand-icon"),t.expanded?a.em("expand-icon","expanded"):""];let l=sa;t.loading&&(l=ao),i.push(lt("div",{class:s,onClick:o},{default:()=>[lt(et,{class:{[a.is("loading")]:t.loading}},{default:()=>[lt(l)]})]}))}else i.push(lt("span",{class:a.e("placeholder")}));return i}function PE(e,t){return e.reduce((n,r)=>(n[r]=r,n),t)}function roe(e,t){const n=Mt();return{registerComplexWatchers:()=>{const i=["fixed"],o={realWidth:"width",realMinWidth:"minWidth"},s=PE(i,o);Object.keys(s).forEach(l=>{const u=o[l];Yt(t,u)&&Ie(()=>t[u],c=>{let d=c;u==="width"&&l==="realWidth"&&(d=d2(c)),u==="minWidth"&&l==="realMinWidth"&&(d=A3(c)),n.columnConfig.value[u]=d,n.columnConfig.value[l]=d;const p=u==="fixed";e.value.store.scheduleLayout(p)})})},registerNormalWatchers:()=>{const i=["label","filters","filterMultiple","filteredValue","sortable","index","formatter","className","labelClassName","filterClassName","showOverflowTooltip","tooltipFormatter"],o={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},s=PE(i,o);Object.keys(s).forEach(l=>{const u=o[l];Yt(t,u)&&Ie(()=>t[u],c=>{n.columnConfig.value[l]=c})})}}}function aoe(e,t,n){const r=Mt(),a=z(""),i=z(!1),o=z(),s=z(),l=Le("table");_r(()=>{o.value=e.align?`is-${e.align}`:null,o.value}),_r(()=>{s.value=e.headerAlign?`is-${e.headerAlign}`:o.value,s.value});const u=k(()=>{let _=r.vnode.vParent||r.parent;for(;_&&!_.tableId&&!_.columnId;)_=_.vnode.vParent||_.parent;return _}),c=k(()=>{const{store:_}=r.parent;if(!_)return!1;const{treeData:w}=_.states,S=w.value;return S&&Object.keys(S).length>0}),d=z(d2(e.width)),p=z(A3(e.minWidth)),h=_=>(d.value&&(_.width=d.value),p.value&&(_.minWidth=p.value),!d.value&&p.value&&(_.width=void 0),_.minWidth||(_.minWidth=80),_.realWidth=Number(Xt(_.width)?_.minWidth:_.width),_),v=_=>{const w=_.type,S=eoe[w]||{};Object.keys(S).forEach(I=>{const D=S[I];I!=="className"&&!Xt(D)&&(_[I]=D)});const A=Zie(w);if(A){const I=`${f(l.namespace)}-${A}`;_.className=_.className?`${_.className} ${I}`:I}return _},m=_=>{Be(_)?_.forEach(S=>w(S)):w(_);function w(S){var A;((A=S==null?void 0:S.type)==null?void 0:A.name)==="ElTableColumn"&&(S.vParent=r)}};return{columnId:a,realAlign:o,isSubColumn:i,realHeaderAlign:s,columnOrTableParent:u,setColumnWidth:h,setColumnForcedProps:v,setColumnRenders:_=>{e.renderHeader||_.type!=="selection"&&(_.renderHeader=S=>(r.columnConfig.value.label,fe(t,"header",S,()=>[_.label]))),t["filter-icon"]&&(_.renderFilterIcon=S=>fe(t,"filter-icon",S));let w=_.renderCell;return _.type==="expand"?(_.renderCell=S=>lt("div",{class:"cell"},[w(S)]),n.value.renderExpanded=S=>t.default?t.default(S):t.default):(w=w||toe,_.renderCell=S=>{let A=null;if(t.default){const K=t.default(S);A=K.some(Y=>Y.type!==fr)?K:w(S)}else A=w(S);const{columns:I}=n.value.store.states,D=I.value.findIndex(K=>K.type==="default"),O=c.value&&S.cellIndex===D,V=noe(S,O),N={class:"cell",style:{}};return _.showOverflowTooltip&&(N.class=`${N.class} ${f(l.namespace)}-tooltip`,N.style={width:`${(S.column.realWidth||Number(S.column.width))-1}px`}),m(A),lt("div",N,[V,A])}),_},getPropsData:(..._)=>_.reduce((w,S)=>(Be(S)&&S.forEach(A=>{w[A]=e[A]}),w),{}),getColumnElIndex:(_,w)=>Array.prototype.indexOf.call(_,w),updateColumnOrder:()=>{n.value.store.commit("updateColumnOrder",r.columnConfig.value)}}}var ioe={type:{type:String,default:"default"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},renderHeader:Function,sortable:{type:[Boolean,String],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},columnKey:String,align:String,headerAlign:String,showOverflowTooltip:{type:[Boolean,Object],default:void 0},tooltipFormatter:Function,fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},filterClassName:String,index:[Number,Function],sortOrders:{type:Array,default:()=>["ascending","descending",null],validator:e=>e.every(t=>["ascending","descending",null].includes(t))}};let ooe=1;var z3=J({name:"ElTableColumn",components:{ElCheckbox:ri},props:ioe,setup(e,{slots:t}){const n=Mt(),r=z({}),a=k(()=>{let b=n.parent;for(;b&&!b.tableId;)b=b.parent;return b}),{registerNormalWatchers:i,registerComplexWatchers:o}=roe(a,e),{columnId:s,isSubColumn:l,realHeaderAlign:u,columnOrTableParent:c,setColumnWidth:d,setColumnForcedProps:p,setColumnRenders:h,getPropsData:v,getColumnElIndex:m,realAlign:g,updateColumnOrder:y}=aoe(e,t,a),T=c.value;s.value=`${T.tableId||T.columnId}_column_${ooe++}`,Hl(()=>{l.value=a.value!==T;const b=e.type||"default",_=e.sortable===""?!0:e.sortable,w=b==="selection"?!1:Xt(e.showOverflowTooltip)?T.props.showOverflowTooltip:e.showOverflowTooltip,S=Xt(e.tooltipFormatter)?T.props.tooltipFormatter:e.tooltipFormatter,A={...Jie[b],id:s.value,type:b,property:e.prop||e.property,align:g,headerAlign:u,showOverflowTooltip:w,tooltipFormatter:S,filterable:e.filters||e.filterMethod,filteredValue:[],filterPlacement:"",filterClassName:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:_,index:e.index,rawColumnKey:n.vnode.key};let N=v(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement","filterClassName"]);N=tie(A,N),N=rie(h,d,p)(N),r.value=N,i(),o()}),ht(()=>{var b;const _=c.value,w=l.value?_.vnode.el.children:(b=_.refs.hiddenColumns)==null?void 0:b.children,S=()=>m(w||[],n.vnode.el);r.value.getColumnIndex=S,S()>-1&&a.value.store.commit("insertColumn",r.value,l.value?_.columnConfig.value:null,y)}),fn(()=>{const b=r.value.getColumnIndex;(b?b():-1)>-1&&a.value.store.commit("removeColumn",r.value,l.value?T.columnConfig.value:null,y)}),n.columnId=s.value,n.columnConfig=r},render(){var e,t,n;try{const r=(t=(e=this.$slots).default)==null?void 0:t.call(e,{row:{},column:{},$index:-1}),a=[];if(Be(r))for(const o of r)((n=o.type)==null?void 0:n.name)==="ElTableColumn"||o.shapeFlag&2?a.push(o):o.type===Ge&&Be(o.children)&&o.children.forEach(s=>{(s==null?void 0:s.patchFlag)!==1024&&!rt(s==null?void 0:s.children)&&a.push(s)});return lt("div",a)}catch{return lt("div",[])}}});const Gl=Et(Xie,{TableColumn:z3}),Yl=On(z3);var Of=(e=>(e.ASC="asc",e.DESC="desc",e))(Of||{}),Mf=(e=>(e.CENTER="center",e.RIGHT="right",e))(Mf||{}),j3=(e=>(e.LEFT="left",e.RIGHT="right",e))(j3||{});const mb={asc:"desc",desc:"asc"},Rf=Symbol("placeholder"),soe=(e,t,n)=>{var r;const a={flexGrow:0,flexShrink:0,...n?{}:{flexGrow:e.flexGrow||0,flexShrink:e.flexShrink||1}};n||(a.flexShrink=1);const i={...(r=e.style)!=null?r:{},...a,flexBasis:"auto",width:e.width};return t||(e.maxWidth&&(i.maxWidth=e.maxWidth),e.minWidth&&(i.minWidth=e.minWidth)),i};function loe(e,t,n){const r=k(()=>f(t).map((g,y)=>{var T,b;return{...g,key:(b=(T=g.key)!=null?T:g.dataKey)!=null?b:y}})),a=k(()=>f(r).filter(g=>!g.hidden)),i=k(()=>f(a).filter(g=>g.fixed==="left"||g.fixed===!0)),o=k(()=>f(a).filter(g=>g.fixed==="right")),s=k(()=>f(a).filter(g=>!g.fixed)),l=k(()=>{const g=[];return f(i).forEach(y=>{g.push({...y,placeholderSign:Rf})}),f(s).forEach(y=>{g.push(y)}),f(o).forEach(y=>{g.push({...y,placeholderSign:Rf})}),g}),u=k(()=>f(i).length||f(o).length),c=k(()=>f(r).reduce((g,y)=>(g[y.key]=soe(y,f(n),e.fixed),g),{})),d=k(()=>f(a).reduce((g,y)=>g+y.width,0)),p=g=>f(r).find(y=>y.key===g),h=g=>f(c)[g],v=(g,y)=>{g.width=y};function m(g){var y;const{key:T}=g.currentTarget.dataset;if(!T)return;const{sortState:b,sortBy:_}=e;let w=Of.ASC;It(b)?w=mb[b[T]]:w=mb[_.order],(y=e.onColumnSort)==null||y.call(e,{column:p(T),key:T,order:w})}return{columns:r,columnsStyles:c,columnsTotalWidth:d,fixedColumnsOnLeft:i,fixedColumnsOnRight:o,hasFixedColumns:u,mainColumns:l,normalColumns:s,visibleColumns:a,getColumn:p,getColumnStyle:h,updateColumnWidth:v,onColumnSorted:m}}const uoe=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:r,onMaybeEndReached:a})=>{const i=z({scrollLeft:0,scrollTop:0});function o(h){var v,m,g;const{scrollTop:y}=h;(v=t.value)==null||v.scrollTo(h),(m=n.value)==null||m.scrollToTop(y),(g=r.value)==null||g.scrollToTop(y)}function s(h){i.value=h,o(h)}function l(h){i.value.scrollTop=h,o(f(i))}function u(h){var v,m;i.value.scrollLeft=h,(m=(v=t.value)==null?void 0:v.scrollTo)==null||m.call(v,f(i))}function c(h){var v;s(h),(v=e.onScroll)==null||v.call(e,h)}function d({scrollTop:h}){const{scrollTop:v}=f(i);h!==v&&l(h)}function p(h,v="auto"){var m;(m=t.value)==null||m.scrollToRow(h,v)}return Ie(()=>f(i).scrollTop,(h,v)=>{h>v&&a()}),{scrollPos:i,scrollTo:s,scrollToLeft:u,scrollToTop:l,scrollToRow:p,onScroll:c,onVerticalScroll:d}},coe=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:r,tableInstance:a,ns:i,isScrolling:o})=>{const s=Mt(),{emit:l}=s,u=cn(!1),c=z(e.defaultExpandedRowKeys||[]),d=z(-1),p=cn(null),h=z({}),v=z({}),m=cn({}),g=cn({}),y=cn({}),T=k(()=>st(e.estimatedRowHeight));function b(O){var V;(V=e.onRowsRendered)==null||V.call(e,O),O.rowCacheEnd>f(d)&&(d.value=O.rowCacheEnd)}function _({hovered:O,rowKey:V}){if(o.value)return;a.vnode.el.querySelectorAll(`[rowkey="${String(V)}"]`).forEach(Y=>{O?Y.classList.add(i.is("hovered")):Y.classList.remove(i.is("hovered"))})}function w({expanded:O,rowData:V,rowIndex:N,rowKey:K}){var Y,q;const $=[...f(c)],j=$.indexOf(K);O?j===-1&&$.push(K):j>-1&&$.splice(j,1),c.value=$,l("update:expandedRowKeys",$),(Y=e.onRowExpand)==null||Y.call(e,{expanded:O,rowData:V,rowIndex:N,rowKey:K}),(q=e.onExpandedRowsChange)==null||q.call(e,$)}const S=wa(()=>{var O,V,N,K;u.value=!0,h.value={...f(h),...f(v)},A(f(p),!1),v.value={},p.value=null,(O=t.value)==null||O.forceUpdate(),(V=n.value)==null||V.forceUpdate(),(N=r.value)==null||N.forceUpdate(),(K=s.proxy)==null||K.$forceUpdate(),u.value=!1},0);function A(O,V=!1){f(T)&&[t,n,r].forEach(N=>{const K=f(N);K&&K.resetAfterRowIndex(O,V)})}function I(O,V,N){const K=f(p);(K===null||K>N)&&(p.value=N),v.value[O]=V}function D({rowKey:O,height:V,rowIndex:N},K){K?K===j3.RIGHT?y.value[O]=V:m.value[O]=V:g.value[O]=V;const Y=Math.max(...[m,y,g].map(q=>q.value[O]||0));f(h)[O]!==Y&&(I(O,Y,N),S())}return{expandedRowKeys:c,lastRenderedRowIndex:d,isDynamic:T,isResetting:u,rowHeights:h,resetAfterIndex:A,onRowExpanded:w,onRowHovered:_,onRowsRendered:b,onRowHeightChange:D}},doe=(e,{expandedRowKeys:t,lastRenderedRowIndex:n,resetAfterIndex:r})=>{const a=z({}),i=k(()=>{const s={},{data:l,rowKey:u}=e,c=f(t);if(!c||!c.length)return l;const d=[],p=new Set;c.forEach(v=>p.add(v));let h=l.slice();for(h.forEach(v=>s[v[u]]=0);h.length>0;){const v=h.shift();d.push(v),p.has(v[u])&&Be(v.children)&&v.children.length>0&&(h=[...v.children,...h],v.children.forEach(m=>s[m[u]]=s[v[u]]+1))}return a.value=s,d}),o=k(()=>{const{data:s,expandColumnKey:l}=e;return l?f(i):s});return Ie(o,(s,l)=>{s!==l&&(n.value=-1,r(0,!0))}),{data:o,depthMap:a}},foe=(e,t)=>e+t,zh=e=>Be(e)?e.reduce(foe,0):e,Nl=(e,t,n={})=>ot(e)?e(t):e??n,Cs=e=>(["width","maxWidth","minWidth","height"].forEach(t=>{e[t]=Ln(e[t])}),e),W3=e=>wn(e)?t=>lt(e,t):e,poe=(e,{columnsTotalWidth:t,rowsHeight:n,fixedColumnsOnLeft:r,fixedColumnsOnRight:a})=>{const i=k(()=>{const{fixed:T,width:b,vScrollbarSize:_}=e,w=b-_;return T?Math.max(Math.round(f(t)),w):w}),o=k(()=>f(i)+e.vScrollbarSize),s=k(()=>{const{height:T=0,maxHeight:b=0,footerHeight:_,hScrollbarSize:w}=e;if(b>0){const S=f(h),A=f(n),D=f(p)+S+A+w;return Math.min(D,b-_)}return T-_}),l=k(()=>{const{maxHeight:T}=e,b=f(s);if(st(T)&&T>0)return b;const _=f(n)+f(p)+f(h);return Math.min(b,_)}),u=T=>T.width,c=k(()=>zh(f(r).map(u))),d=k(()=>zh(f(a).map(u))),p=k(()=>zh(e.headerHeight)),h=k(()=>{var T;return(((T=e.fixedData)==null?void 0:T.length)||0)*e.rowHeight}),v=k(()=>f(s)-f(p)-f(h)),m=k(()=>{const{style:T={},height:b,width:_}=e;return Cs({...T,height:b,width:_})}),g=k(()=>Cs({height:e.footerHeight})),y=k(()=>({top:Ln(f(p)),bottom:Ln(e.footerHeight),width:Ln(e.width)}));return{bodyWidth:i,fixedTableHeight:l,mainTableHeight:s,leftTableWidth:c,rightTableWidth:d,headerWidth:o,windowHeight:v,footerHeight:g,emptyStyle:y,rootStyle:m,headerHeight:p}};function hoe(e){const t=z(),n=z(),r=z(),{columns:a,columnsStyles:i,columnsTotalWidth:o,fixedColumnsOnLeft:s,fixedColumnsOnRight:l,hasFixedColumns:u,mainColumns:c,onColumnSorted:d}=loe(e,rn(e,"columns"),rn(e,"fixed")),{scrollTo:p,scrollToLeft:h,scrollToTop:v,scrollToRow:m,onScroll:g,onVerticalScroll:y,scrollPos:T}=uoe(e,{mainTableRef:t,leftTableRef:n,rightTableRef:r,onMaybeEndReached:Z}),b=Le("table-v2"),_=Mt(),w=cn(!1),{expandedRowKeys:S,lastRenderedRowIndex:A,isDynamic:I,isResetting:D,rowHeights:O,resetAfterIndex:V,onRowExpanded:N,onRowHeightChange:K,onRowHovered:Y,onRowsRendered:q}=coe(e,{mainTableRef:t,leftTableRef:n,rightTableRef:r,tableInstance:_,ns:b,isScrolling:w}),{data:$,depthMap:j}=doe(e,{expandedRowKeys:S,lastRenderedRowIndex:A,resetAfterIndex:V}),W=k(()=>{const{estimatedRowHeight:ie,rowHeight:Ce}=e,$e=f($);return st(ie)?Object.values(f(O)).reduce((Se,De)=>Se+De,0):$e.length*Ce}),{bodyWidth:H,fixedTableHeight:X,mainTableHeight:re,leftTableWidth:le,rightTableWidth:ne,headerWidth:be,windowHeight:_e,footerHeight:ve,emptyStyle:te,rootStyle:me,headerHeight:pe}=poe(e,{columnsTotalWidth:o,fixedColumnsOnLeft:s,fixedColumnsOnRight:l,rowsHeight:W}),Fe=z(),Pe=k(()=>{const ie=f($).length===0;return Be(e.fixedData)?e.fixedData.length===0&&ie:ie});function ye(ie){const{estimatedRowHeight:Ce,rowHeight:$e,rowKey:Se}=e;return Ce?f(O)[f($)[ie][Se]]||Ce:$e}function Z(){const{onEndReached:ie}=e;if(!ie)return;const{scrollTop:Ce}=f(T),$e=f(W),Se=f(_e),De=$e-(Ce+Se)+e.hScrollbarSize;f(A)>=0&&$e===Ce+f(re)-f(pe)&&ie(De)}return Ie(()=>e.expandedRowKeys,ie=>S.value=ie,{deep:!0}),{columns:a,containerRef:Fe,mainTableRef:t,leftTableRef:n,rightTableRef:r,isDynamic:I,isResetting:D,isScrolling:w,hasFixedColumns:u,columnsStyles:i,columnsTotalWidth:o,data:$,expandedRowKeys:S,depthMap:j,fixedColumnsOnLeft:s,fixedColumnsOnRight:l,mainColumns:c,bodyWidth:H,emptyStyle:te,rootStyle:me,headerWidth:be,footerHeight:ve,mainTableHeight:re,fixedTableHeight:X,leftTableWidth:le,rightTableWidth:ne,showEmpty:Pe,getRowHeight:ye,onColumnSorted:d,onRowHovered:Y,onRowExpanded:N,onRowsRendered:q,onRowHeightChange:K,scrollTo:p,scrollToLeft:h,scrollToTop:v,scrollToRow:m,onScroll:g,onVerticalScroll:y}}const m2=Symbol("tableV2"),K3=String,yp={type:ue(Array),required:!0},v2={type:ue(Array)},q3={...v2,required:!0},moe=String,OE={type:ue(Array),default:()=>Pn([])},fl={type:Number,required:!0},G3={type:ue([String,Number,Symbol]),default:"id"},ME={type:ue(Object)},gl=Ue({class:String,columns:yp,columnsStyles:{type:ue(Object),required:!0},depth:Number,expandColumnKey:moe,estimatedRowHeight:{...Cl.estimatedRowHeight,default:void 0},isScrolling:Boolean,onRowExpand:{type:ue(Function)},onRowHover:{type:ue(Function)},onRowHeightChange:{type:ue(Function)},rowData:{type:ue(Object),required:!0},rowEventHandlers:{type:ue(Object)},rowIndex:{type:Number,required:!0},rowKey:G3,style:{type:ue(Object)}}),w0={type:Number,required:!0},g2=Ue({class:String,columns:yp,fixedHeaderData:{type:ue(Array)},headerData:{type:ue(Array),required:!0},headerHeight:{type:ue([Number,Array]),default:50},rowWidth:w0,rowHeight:{type:Number,default:50},height:w0,width:w0}),jh=Ue({columns:yp,data:q3,fixedData:v2,estimatedRowHeight:gl.estimatedRowHeight,width:fl,height:fl,headerWidth:fl,headerHeight:g2.headerHeight,bodyWidth:fl,rowHeight:fl,cache:h3.cache,useIsScrolling:Boolean,scrollbarAlwaysOn:Cl.scrollbarAlwaysOn,scrollbarStartGap:Cl.scrollbarStartGap,scrollbarEndGap:Cl.scrollbarEndGap,class:K3,style:ME,containerStyle:ME,getRowHeight:{type:ue(Function),required:!0},rowKey:gl.rowKey,onRowsRendered:{type:ue(Function)},onScroll:{type:ue(Function)}}),voe=Ue({cache:jh.cache,estimatedRowHeight:gl.estimatedRowHeight,rowKey:G3,headerClass:{type:ue([String,Function])},headerProps:{type:ue([Object,Function])},headerCellProps:{type:ue([Object,Function])},headerHeight:g2.headerHeight,footerHeight:{type:Number,default:0},rowClass:{type:ue([String,Function])},rowProps:{type:ue([Object,Function])},rowHeight:{type:Number,default:50},cellProps:{type:ue([Object,Function])},columns:yp,data:q3,dataGetter:{type:ue(Function)},fixedData:v2,expandColumnKey:gl.expandColumnKey,expandedRowKeys:OE,defaultExpandedRowKeys:OE,class:K3,fixed:Boolean,style:{type:ue(Object)},width:fl,height:fl,maxHeight:Number,useIsScrolling:Boolean,indentSize:{type:Number,default:12},iconSize:{type:Number,default:12},hScrollbarSize:Cl.hScrollbarSize,vScrollbarSize:Cl.vScrollbarSize,scrollbarAlwaysOn:g3.alwaysOn,sortBy:{type:ue(Object),default:()=>({})},sortState:{type:ue(Object),default:void 0},onColumnSort:{type:ue(Function)},onExpandedRowsChange:{type:ue(Function)},onEndReached:{type:ue(Function)},onRowExpand:gl.onRowExpand,onScroll:jh.onScroll,onRowsRendered:jh.onRowsRendered,rowEventHandlers:gl.rowEventHandlers}),goe="ElTableV2Header",yoe=J({name:goe,props:g2,setup(e,{slots:t,expose:n}){const r=Le("table-v2"),a=Qe("tableV2GridScrollLeft"),i=z(),o=k(()=>Cs({width:e.width,height:e.height})),s=k(()=>Cs({width:e.rowWidth,height:e.height})),l=k(()=>$r(f(e.headerHeight))),u=p=>{const h=f(i);it(()=>{h!=null&&h.scroll&&h.scroll({left:p})})},c=()=>{const p=r.e("fixed-header-row"),{columns:h,fixedHeaderData:v,rowHeight:m}=e;return v==null?void 0:v.map((g,y)=>{var T;const b=Cs({height:m,width:"100%"});return(T=t.fixed)==null?void 0:T.call(t,{class:p,columns:h,rowData:g,rowIndex:-(y+1),style:b})})},d=()=>{const p=r.e("dynamic-header-row"),{columns:h}=e;return f(l).map((v,m)=>{var g;const y=Cs({width:"100%",height:v});return(g=t.dynamic)==null?void 0:g.call(t,{class:p,columns:h,headerIndex:m,style:y})})};return Di(()=>{a!=null&&a.value&&u(a.value)}),n({scrollToLeft:u}),()=>{if(!(e.height<=0))return E("div",{ref:i,class:e.class,style:f(o),role:"rowgroup"},[E("div",{style:f(s),class:r.e("header")},[d(),c()])])}}});var boe=yoe;const _oe=({atXEndEdge:e,atXStartEdge:t,atYEndEdge:n,atYStartEdge:r},a)=>{let i=null,o=0,s=0;const l=(c,d)=>{const p=c<=0&&t.value||c>=0&&e.value,h=d<=0&&r.value||d>=0&&n.value;return p&&h};return{hasReachedEdge:l,onWheel:c=>{Ll(i);let d=c.deltaX,p=c.deltaY;Math.abs(d)>Math.abs(p)?p=0:d=0,c.shiftKey&&p!==0&&(d=p,p=0),!(l(o,s)&&l(o+d,s+p))&&(o+=d,s+=p,c.preventDefault(),i=Os(()=>{a(o,s),o=0,s=0}))}}},Y3=({name:e,clearCache:t,getColumnPosition:n,getColumnStartIndexForOffset:r,getColumnStopIndexForStartIndex:a,getEstimatedTotalHeight:i,getEstimatedTotalWidth:o,getColumnOffset:s,getRowOffset:l,getRowPosition:u,getRowStartIndexForOffset:c,getRowStopIndexForStartIndex:d,initCache:p,injectToInstance:h,validateProps:v})=>J({name:e??"ElVirtualList",props:Cl,emits:[km,Am],setup(m,{emit:g,expose:y,slots:T}){const b=Le("vl");v(m);const _=Mt(),w=z(p(m,_));h==null||h(_,w);const S=z(),A=z(),I=z(),D=z(null),O=z({isScrolling:!1,scrollLeft:st(m.initScrollLeft)?m.initScrollLeft:0,scrollTop:st(m.initScrollTop)?m.initScrollTop:0,updateRequested:!1,xAxisScrollDir:Eu,yAxisScrollDir:Eu}),V=d3(),N=k(()=>Number.parseInt(`${m.height}`,10)),K=k(()=>Number.parseInt(`${m.width}`,10)),Y=k(()=>{const{totalColumn:Se,totalRow:De,columnCache:xe}=m,{isScrolling:Ve,xAxisScrollDir:ze,scrollLeft:je}=f(O);if(Se===0||De===0)return[0,0,0,0];const nt=r(m,je,f(w)),Ae=a(m,nt,je,f(w)),Xe=!Ve||ze===Dm?Math.max(1,xe):1,ct=!Ve||ze===Eu?Math.max(1,xe):1;return[Math.max(0,nt-Xe),Math.max(0,Math.min(Se-1,Ae+ct)),nt,Ae]}),q=k(()=>{const{totalColumn:Se,totalRow:De,rowCache:xe}=m,{isScrolling:Ve,yAxisScrollDir:ze,scrollTop:je}=f(O);if(Se===0||De===0)return[0,0,0,0];const nt=c(m,je,f(w)),Ae=d(m,nt,je,f(w)),Xe=!Ve||ze===Dm?Math.max(1,xe):1,ct=!Ve||ze===Eu?Math.max(1,xe):1;return[Math.max(0,nt-Xe),Math.max(0,Math.min(De-1,Ae+ct)),nt,Ae]}),$=k(()=>i(m,f(w))),j=k(()=>o(m,f(w))),W=k(()=>{var Se;return[{position:"relative",overflow:"hidden",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:m.direction,height:st(m.height)?`${m.height}px`:m.height,width:st(m.width)?`${m.width}px`:m.width},(Se=m.style)!=null?Se:{}]}),H=k(()=>{const Se=`${f(j)}px`;return{height:`${f($)}px`,pointerEvents:f(O).isScrolling?"none":void 0,width:Se}}),X=()=>{const{totalColumn:Se,totalRow:De}=m;if(Se>0&&De>0){const[Ae,Xe,ct,Dt]=f(Y),[Pt,Bt,Ut,Nt]=f(q);g(km,{columnCacheStart:Ae,columnCacheEnd:Xe,rowCacheStart:Pt,rowCacheEnd:Bt,columnVisibleStart:ct,columnVisibleEnd:Dt,rowVisibleStart:Ut,rowVisibleEnd:Nt})}const{scrollLeft:xe,scrollTop:Ve,updateRequested:ze,xAxisScrollDir:je,yAxisScrollDir:nt}=f(O);g(Am,{xAxisScrollDir:je,scrollLeft:xe,yAxisScrollDir:nt,scrollTop:Ve,updateRequested:ze})},re=Se=>{const{clientHeight:De,clientWidth:xe,scrollHeight:Ve,scrollLeft:ze,scrollTop:je,scrollWidth:nt}=Se.currentTarget,Ae=f(O);if(Ae.scrollTop===je&&Ae.scrollLeft===ze)return;let Xe=ze;if(gE(m.direction))switch(Pm()){case If:Xe=-ze;break;case c2:Xe=nt-xe-ze;break}O.value={...Ae,isScrolling:!0,scrollLeft:Xe,scrollTop:Math.max(0,Math.min(je,Ve-De)),updateRequested:!0,xAxisScrollDir:vl(Ae.scrollLeft,Xe),yAxisScrollDir:vl(Ae.scrollTop,je)},it(()=>me()),pe(),X()},le=(Se,De)=>{const xe=f(N),Ve=($.value-xe)/De*Se;_e({scrollTop:Math.min($.value-xe,Ve)})},ne=(Se,De)=>{const xe=f(K),Ve=(j.value-xe)/De*Se;_e({scrollLeft:Math.min(j.value-xe,Ve)})},{onWheel:be}=_oe({atXStartEdge:k(()=>O.value.scrollLeft<=0),atXEndEdge:k(()=>O.value.scrollLeft>=j.value-f(K)),atYStartEdge:k(()=>O.value.scrollTop<=0),atYEndEdge:k(()=>O.value.scrollTop>=$.value-f(N))},(Se,De)=>{var xe,Ve,ze,je;(Ve=(xe=A.value)==null?void 0:xe.onMouseUp)==null||Ve.call(xe),(je=(ze=I.value)==null?void 0:ze.onMouseUp)==null||je.call(ze);const nt=f(K),Ae=f(N);_e({scrollLeft:Math.min(O.value.scrollLeft+Se,j.value-nt),scrollTop:Math.min(O.value.scrollTop+De,$.value-Ae)})});ln(S,"wheel",be,{passive:!1});const _e=({scrollLeft:Se=O.value.scrollLeft,scrollTop:De=O.value.scrollTop})=>{Se=Math.max(Se,0),De=Math.max(De,0);const xe=f(O);De===xe.scrollTop&&Se===xe.scrollLeft||(O.value={...xe,xAxisScrollDir:vl(xe.scrollLeft,Se),yAxisScrollDir:vl(xe.scrollTop,De),scrollLeft:Se,scrollTop:De,updateRequested:!0},it(()=>me()),pe(),X())},ve=(Se=0,De=0,xe=Ya)=>{const Ve=f(O);De=Math.max(0,Math.min(De,m.totalColumn-1)),Se=Math.max(0,Math.min(Se,m.totalRow-1));const ze=NI(b.namespace.value),je=f(w),nt=i(m,je),Ae=o(m,je);_e({scrollLeft:s(m,De,xe,Ve.scrollLeft,je,Ae>m.width?ze:0),scrollTop:l(m,Se,xe,Ve.scrollTop,je,nt>m.height?ze:0)})},te=(Se,De)=>{const{columnWidth:xe,direction:Ve,rowHeight:ze}=m,je=V.value(t&&xe,t&&ze,t&&Ve),nt=`${Se},${De}`;if(Yt(je,nt))return je[nt];{const[,Ae]=n(m,De,f(w)),Xe=f(w),ct=gE(Ve),[Dt,Pt]=u(m,Se,Xe),[Bt]=n(m,De,Xe);return je[nt]={position:"absolute",left:ct?void 0:`${Ae}px`,right:ct?`${Ae}px`:void 0,top:`${Pt}px`,height:`${Dt}px`,width:`${Bt}px`},je[nt]}},me=()=>{O.value.isScrolling=!1,it(()=>{V.value(-1,null,null)})};ht(()=>{if(!Wt)return;const{initScrollLeft:Se,initScrollTop:De}=m,xe=f(S);xe&&(st(Se)&&(xe.scrollLeft=Se),st(De)&&(xe.scrollTop=De)),X()});const pe=()=>{const{direction:Se}=m,{scrollLeft:De,scrollTop:xe,updateRequested:Ve}=f(O),ze=f(S);if(Ve&&ze){if(Se===Vu)switch(Pm()){case If:{ze.scrollLeft=-De;break}case u2:{ze.scrollLeft=De;break}default:{const{clientWidth:je,scrollWidth:nt}=ze;ze.scrollLeft=nt-je-De;break}}else ze.scrollLeft=Math.max(0,De);ze.scrollTop=Math.max(0,xe)}},{resetAfterColumnIndex:Fe,resetAfterRowIndex:Pe,resetAfter:ye}=_.proxy;y({windowRef:S,innerRef:D,getItemStyleCache:V,scrollTo:_e,scrollToItem:ve,states:O,resetAfterColumnIndex:Fe,resetAfterRowIndex:Pe,resetAfter:ye});const Z=()=>{const{scrollbarAlwaysOn:Se,scrollbarStartGap:De,scrollbarEndGap:xe,totalColumn:Ve,totalRow:ze}=m,je=f(K),nt=f(N),Ae=f(j),Xe=f($),{scrollLeft:ct,scrollTop:Dt}=f(O),Pt=lt(ab,{ref:A,alwaysOn:Se,startGap:De,endGap:xe,class:b.e("horizontal"),clientSize:je,layout:"horizontal",onScroll:ne,ratio:je*100/Ae,scrollFrom:ct/(Ae-je),total:ze,visible:!0}),Bt=lt(ab,{ref:I,alwaysOn:Se,startGap:De,endGap:xe,class:b.e("vertical"),clientSize:nt,layout:"vertical",onScroll:le,ratio:nt*100/Xe,scrollFrom:Dt/(Xe-nt),total:Ve,visible:!0});return{horizontalScrollbar:Pt,verticalScrollbar:Bt}},ie=()=>{var Se;const[De,xe]=f(Y),[Ve,ze]=f(q),{data:je,totalColumn:nt,totalRow:Ae,useIsScrolling:Xe,itemKey:ct}=m,Dt=[];if(Ae>0&&nt>0)for(let Pt=Ve;Pt<=ze;Pt++)for(let Bt=De;Bt<=xe;Bt++){const Ut=ct({columnIndex:Bt,data:je,rowIndex:Pt});Dt.push(lt(Ge,{key:Ut},(Se=T.default)==null?void 0:Se.call(T,{columnIndex:Bt,data:je,isScrolling:Xe?f(O).isScrolling:void 0,style:te(Pt,Bt),rowIndex:Pt})))}return Dt},Ce=()=>{const Se=Lt(m.innerElement),De=ie();return[lt(Se,{style:f(H),ref:D},rt(Se)?De:{default:()=>De})]};return()=>{const Se=Lt(m.containerElement),{horizontalScrollbar:De,verticalScrollbar:xe}=Z(),Ve=Ce();return lt("div",{key:0,class:b.e("wrapper"),role:m.role},[lt(Se,{class:m.className,style:f(W),onScroll:re,ref:S},rt(Se)?Ve:{default:()=>Ve}),De,xe])}}}),{max:Rm,min:X3,floor:Q3}=Math,Toe={column:"columnWidth",row:"rowHeight"},vb={column:"lastVisitedColumnIndex",row:"lastVisitedRowIndex"},Do=(e,t,n,r)=>{const[a,i,o]=[n[r],e[Toe[r]],n[vb[r]]];if(t>o){let s=0;if(o>=0){const l=a[o];s=l.offset+l.size}for(let l=o+1;l<=t;l++){const u=i(l);a[l]={offset:s,size:u},s+=u}n[vb[r]]=t}return a[t]},J3=(e,t,n,r,a,i)=>{for(;n<=r;){const o=n+Q3((r-n)/2),s=Do(e,o,t,i).offset;if(s===a)return o;s<a?n=o+1:r=o-1}return Rm(0,n-1)},woe=(e,t,n,r,a)=>{const i=a==="column"?e.totalColumn:e.totalRow;let o=1;for(;n<i&&Do(e,n,t,a).offset<r;)n+=o,o*=2;return J3(e,t,Q3(n/2),X3(n,i-1),r,a)},RE=(e,t,n,r)=>{const[a,i]=[t[r],t[vb[r]]];return(i>0?a[i].offset:0)>=n?J3(e,t,0,i,n,r):woe(e,t,Rm(0,i),n,r)},Z3=({totalRow:e},{estimatedRowHeight:t,lastVisitedRowIndex:n,row:r})=>{let a=0;if(n>=e&&(n=e-1),n>=0){const s=r[n];a=s.offset+s.size}const o=(e-n-1)*t;return a+o},e4=({totalColumn:e},{column:t,estimatedColumnWidth:n,lastVisitedColumnIndex:r})=>{let a=0;if(r>e&&(r=e-1),r>=0){const s=t[r];a=s.offset+s.size}const o=(e-r-1)*n;return a+o},Soe={column:e4,row:Z3},LE=(e,t,n,r,a,i,o)=>{const[s,l]=[i==="row"?e.height:e.width,Soe[i]],u=Do(e,t,a,i),c=l(e,a),d=Rm(0,X3(c-s,u.offset)),p=Rm(0,u.offset-s+o+u.size);switch(n===Yv&&(r>=p-s&&r<=d+s?n=Ya:n=Ki),n){case Af:return d;case Df:return p;case Ki:return Math.round(p+(d-p)/2);case Ya:default:return r>=p&&r<=d?r:p>d||r<p?p:d}},Coe=Y3({name:"ElDynamicSizeGrid",getColumnPosition:(e,t,n)=>{const r=Do(e,t,n,"column");return[r.size,r.offset]},getRowPosition:(e,t,n)=>{const r=Do(e,t,n,"row");return[r.size,r.offset]},getColumnOffset:(e,t,n,r,a,i)=>LE(e,t,n,r,a,"column",i),getRowOffset:(e,t,n,r,a,i)=>LE(e,t,n,r,a,"row",i),getColumnStartIndexForOffset:(e,t,n)=>RE(e,n,t,"column"),getColumnStopIndexForStartIndex:(e,t,n,r)=>{const a=Do(e,t,r,"column"),i=n+e.width;let o=a.offset+a.size,s=t;for(;s<e.totalColumn-1&&o<i;)s++,o+=Do(e,t,r,"column").size;return s},getEstimatedTotalHeight:Z3,getEstimatedTotalWidth:e4,getRowStartIndexForOffset:(e,t,n)=>RE(e,n,t,"row"),getRowStopIndexForStartIndex:(e,t,n,r)=>{const{totalRow:a,height:i}=e,o=Do(e,t,r,"row"),s=n+i;let l=o.size+o.offset,u=t;for(;u<a-1&&l<s;)u++,l+=Do(e,u,r,"row").size;return u},injectToInstance:(e,t)=>{const n=({columnIndex:i,rowIndex:o},s)=>{var l,u;s=Xt(s)?!0:s,st(i)&&(t.value.lastVisitedColumnIndex=Math.min(t.value.lastVisitedColumnIndex,i-1)),st(o)&&(t.value.lastVisitedRowIndex=Math.min(t.value.lastVisitedRowIndex,o-1)),(l=e.exposed)==null||l.getItemStyleCache.value(-1,null,null),s&&((u=e.proxy)==null||u.$forceUpdate())},r=(i,o)=>{n({columnIndex:i},o)},a=(i,o)=>{n({rowIndex:i},o)};Object.assign(e.proxy,{resetAfterColumnIndex:r,resetAfterRowIndex:a,resetAfter:n})},initCache:({estimatedColumnWidth:e=Jy,estimatedRowHeight:t=Jy})=>({column:{},estimatedColumnWidth:e,estimatedRowHeight:t,lastVisitedColumnIndex:-1,lastVisitedRowIndex:-1,row:{}}),clearCache:!1,validateProps:({columnWidth:e,rowHeight:t})=>{}}),Eoe=Y3({name:"ElFixedSizeGrid",getColumnPosition:({columnWidth:e},t)=>[e,t*e],getRowPosition:({rowHeight:e},t)=>[e,t*e],getEstimatedTotalHeight:({totalRow:e,rowHeight:t})=>t*e,getEstimatedTotalWidth:({totalColumn:e,columnWidth:t})=>t*e,getColumnOffset:({totalColumn:e,columnWidth:t,width:n},r,a,i,o,s)=>{n=Number(n);const l=Math.max(0,e*t-n),u=Math.min(l,r*t),c=Math.max(0,r*t-n+s+t);switch(a==="smart"&&(i>=c-n&&i<=u+n?a=Ya:a=Ki),a){case Af:return u;case Df:return c;case Ki:{const d=Math.round(c+(u-c)/2);return d<Math.ceil(n/2)?0:d>l+Math.floor(n/2)?l:d}case Ya:default:return i>=c&&i<=u?i:c>u||i<c?c:u}},getRowOffset:({rowHeight:e,height:t,totalRow:n},r,a,i,o,s)=>{t=Number(t);const l=Math.max(0,n*e-t),u=Math.min(l,r*e),c=Math.max(0,r*e-t+s+e);switch(a===Yv&&(i>=c-t&&i<=u+t?a=Ya:a=Ki),a){case Af:return u;case Df:return c;case Ki:{const d=Math.round(c+(u-c)/2);return d<Math.ceil(t/2)?0:d>l+Math.floor(t/2)?l:d}case Ya:default:return i>=c&&i<=u?i:c>u||i<c?c:u}},getColumnStartIndexForOffset:({columnWidth:e,totalColumn:t},n)=>Math.max(0,Math.min(t-1,Math.floor(n/e))),getColumnStopIndexForStartIndex:({columnWidth:e,totalColumn:t,width:n},r,a)=>{const i=r*e,o=Math.ceil((n+a-i)/e);return Math.max(0,Math.min(t-1,r+o-1))},getRowStartIndexForOffset:({rowHeight:e,totalRow:t},n)=>Math.max(0,Math.min(t-1,Math.floor(n/e))),getRowStopIndexForStartIndex:({rowHeight:e,totalRow:t,height:n},r,a)=>{const i=r*e,o=Math.ceil((n+a-i)/e);return Math.max(0,Math.min(t-1,r+o-1))},initCache:()=>{},clearCache:!0,validateProps:({columnWidth:e,rowHeight:t})=>{}}),xoe="ElTableV2Grid",koe=e=>{const t=z(),n=z(),r=z(0),a=k(()=>{const{data:g,rowHeight:y,estimatedRowHeight:T}=e;if(!T)return g.length*y}),i=k(()=>{const{fixedData:g,rowHeight:y}=e;return((g==null?void 0:g.length)||0)*y}),o=k(()=>zh(e.headerHeight)),s=k(()=>{const{height:g}=e;return Math.max(0,g-f(o)-f(i))}),l=k(()=>f(o)+f(i)>0),u=({data:g,rowIndex:y})=>g[y][e.rowKey];function c({rowCacheStart:g,rowCacheEnd:y,rowVisibleStart:T,rowVisibleEnd:b}){var _;(_=e.onRowsRendered)==null||_.call(e,{rowCacheStart:g,rowCacheEnd:y,rowVisibleStart:T,rowVisibleEnd:b})}function d(g,y){var T;(T=n.value)==null||T.resetAfterRowIndex(g,y)}function p(g,y){const T=f(t),b=f(n);It(g)?(T==null||T.scrollToLeft(g.scrollLeft),r.value=g.scrollLeft,b==null||b.scrollTo(g)):(T==null||T.scrollToLeft(g),r.value=g,b==null||b.scrollTo({scrollLeft:g,scrollTop:y}))}function h(g){var y;(y=f(n))==null||y.scrollTo({scrollTop:g})}function v(g,y){var T;(T=f(n))==null||T.scrollToItem(g,1,y)}function m(){var g,y;(g=f(n))==null||g.$forceUpdate(),(y=f(t))==null||y.$forceUpdate()}return Ie(()=>e.bodyWidth,()=>{var g;st(e.estimatedRowHeight)&&((g=n.value)==null||g.resetAfter({columnIndex:0},!1))}),{bodyRef:n,forceUpdate:m,fixedRowHeight:i,gridHeight:s,hasHeader:l,headerHeight:o,headerRef:t,totalHeight:a,itemKey:u,onItemRendered:c,resetAfterRowIndex:d,scrollTo:p,scrollToTop:h,scrollToRow:v,scrollLeft:r}},Aoe=J({name:xoe,props:jh,setup(e,{slots:t,expose:n}){const{ns:r}=Qe(m2),{bodyRef:a,fixedRowHeight:i,gridHeight:o,hasHeader:s,headerRef:l,headerHeight:u,totalHeight:c,forceUpdate:d,itemKey:p,onItemRendered:h,resetAfterRowIndex:v,scrollTo:m,scrollToTop:g,scrollToRow:y,scrollLeft:T}=koe(e);Vt("tableV2GridScrollLeft",T),n({forceUpdate:d,totalHeight:c,scrollTo:m,scrollToTop:g,scrollToRow:y,resetAfterRowIndex:v});const b=()=>e.bodyWidth;return()=>{const{cache:_,columns:w,data:S,fixedData:A,useIsScrolling:I,scrollbarAlwaysOn:D,scrollbarEndGap:O,scrollbarStartGap:V,style:N,rowHeight:K,bodyWidth:Y,estimatedRowHeight:q,headerWidth:$,height:j,width:W,getRowHeight:H,onScroll:X}=e,re=st(q),le=re?Coe:Eoe,ne=f(u);return E("div",{role:"table",class:[r.e("table"),e.class],style:N},[E(le,{ref:a,data:S,useIsScrolling:I,itemKey:p,columnCache:0,columnWidth:re?b:Y,totalColumn:1,totalRow:S.length,rowCache:_,rowHeight:re?H:K,width:W,height:f(o),class:r.e("body"),role:"rowgroup",scrollbarStartGap:V,scrollbarEndGap:O,scrollbarAlwaysOn:D,onScroll:X,onItemRendered:h,perfMode:!1},{default:be=>{var _e;const ve=S[be.rowIndex];return(_e=t.row)==null?void 0:_e.call(t,{...be,columns:w,rowData:ve})}}),f(s)&&E(boe,{ref:l,class:r.e("header-wrapper"),columns:w,headerData:S,headerHeight:e.headerHeight,fixedHeaderData:A,rowWidth:$,rowHeight:K,width:W,height:Math.min(ne+f(i),j)},{dynamic:t.header,fixed:t.row})])}}});var y2=Aoe;function Doe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!wn(e)}const Ioe=(e,{slots:t})=>{const{mainTableRef:n,...r}=e;return E(y2,Ft({ref:n},r),Doe(t)?t:{default:()=>[t]})};var Poe=Ioe;function Ooe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!wn(e)}const Moe=(e,{slots:t})=>{if(!e.columns.length)return;const{leftTableRef:n,...r}=e;return E(y2,Ft({ref:n},r),Ooe(t)?t:{default:()=>[t]})};var Roe=Moe;function Loe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!wn(e)}const Noe=(e,{slots:t})=>{if(!e.columns.length)return;const{rightTableRef:n,...r}=e;return E(y2,Ft({ref:n},r),Loe(t)?t:{default:()=>[t]})};var Foe=Noe;const $oe=e=>{const{isScrolling:t}=Qe(m2),n=z(!1),r=z(),a=k(()=>st(e.estimatedRowHeight)&&e.rowIndex>=0),i=(l=!1)=>{const u=f(r);if(!u)return;const{columns:c,onRowHeightChange:d,rowKey:p,rowIndex:h,style:v}=e,{height:m}=u.getBoundingClientRect();n.value=!0,it(()=>{if(l||m!==Number.parseInt(v.height)){const g=c[0],y=(g==null?void 0:g.placeholderSign)===Rf;d==null||d({rowKey:p,height:m,rowIndex:h},g&&!y&&g.fixed)}})},o=k(()=>{const{rowData:l,rowIndex:u,rowKey:c,onRowHover:d}=e,p=e.rowEventHandlers||{},h={};return Object.entries(p).forEach(([v,m])=>{ot(m)&&(h[v]=g=>{m({event:g,rowData:l,rowIndex:u,rowKey:c})})}),d&&[{name:"onMouseleave",hovered:!1},{name:"onMouseenter",hovered:!0}].forEach(({name:v,hovered:m})=>{const g=h[v];h[v]=y=>{d({event:y,hovered:m,rowData:l,rowIndex:u,rowKey:c}),g==null||g(y)}}),h}),s=l=>{const{onRowExpand:u,rowData:c,rowIndex:d,rowKey:p}=e;u==null||u({expanded:l,rowData:c,rowIndex:d,rowKey:p})};return ht(()=>{f(a)&&i(!0)}),{isScrolling:t,measurable:a,measured:n,rowRef:r,eventHandlers:o,onExpand:s}},Boe="ElTableV2TableRow",Voe=J({name:Boe,props:gl,setup(e,{expose:t,slots:n,attrs:r}){const{eventHandlers:a,isScrolling:i,measurable:o,measured:s,rowRef:l,onExpand:u}=$oe(e);return t({onExpand:u}),()=>{const{columns:c,columnsStyles:d,expandColumnKey:p,depth:h,rowData:v,rowIndex:m,style:g}=e;let y=c.map((T,b)=>{const _=Be(v.children)&&v.children.length>0&&T.key===p;return n.cell({column:T,columns:c,columnIndex:b,depth:h,style:d[T.key],rowData:v,rowIndex:m,isScrolling:f(i),expandIconProps:_?{rowData:v,rowIndex:m,onExpand:u}:void 0})});if(n.row&&(y=n.row({cells:y.map(T=>Be(T)&&T.length===1?T[0]:T),style:g,columns:c,depth:h,rowData:v,rowIndex:m,isScrolling:f(i)})),f(o)){const{height:T,...b}=g||{},_=f(s);return E("div",Ft({ref:l,class:e.class,style:_?g:b,role:"row"},r,f(a)),[y])}return E("div",Ft(r,{ref:l,class:e.class,style:g,role:"row"},f(a)),[y])}}});var Uoe=Voe;function Hoe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!wn(e)}const zoe=(e,{slots:t})=>{const{columns:n,columnsStyles:r,depthMap:a,expandColumnKey:i,expandedRowKeys:o,estimatedRowHeight:s,hasFixedColumns:l,rowData:u,rowIndex:c,style:d,isScrolling:p,rowProps:h,rowClass:v,rowKey:m,rowEventHandlers:g,ns:y,onRowHovered:T,onRowExpanded:b}=e,_=Nl(v,{columns:n,rowData:u,rowIndex:c},""),w=Nl(h,{columns:n,rowData:u,rowIndex:c}),S=u[m],A=a[S]||0,I=!!i,D=c<0,O=[y.e("row"),_,{[y.e(`row-depth-${A}`)]:I&&c>=0,[y.is("expanded")]:I&&o.includes(S),[y.is("fixed")]:!A&&D,[y.is("customized")]:!!t.row}],V=l?T:void 0,N={...w,columns:n,columnsStyles:r,class:O,depth:A,expandColumnKey:i,estimatedRowHeight:D?void 0:s,isScrolling:p,rowIndex:c,rowData:u,rowKey:S,rowEventHandlers:g,style:d};return E(Uoe,Ft(N,{onRowExpand:b,onMouseenter:q=>{V==null||V({hovered:!0,rowKey:S,event:q,rowData:u,rowIndex:c})},onMouseleave:q=>{V==null||V({hovered:!1,rowKey:S,event:q,rowData:u,rowIndex:c})},rowkey:S}),Hoe(t)?t:{default:()=>[t]})};var joe=zoe;const b2=(e,{slots:t})=>{var n;const{cellData:r,style:a}=e,i=((n=r==null?void 0:r.toString)==null?void 0:n.call(r))||"",o=fe(t,"default",e,()=>[i]);return E("div",{class:e.class,title:i,style:a},[o])};b2.displayName="ElTableV2Cell";b2.inheritAttrs=!1;var Woe=b2;const Koe=e=>{const{expanded:t,expandable:n,onExpand:r,style:a,size:i}=e,o={onClick:n?()=>r(!t):void 0,class:e.class};return E(et,Ft(o,{size:i,style:a}),{default:()=>[E(sa,null,null)]})};var qoe=Koe;const t4=({columns:e,column:t,columnIndex:n,depth:r,expandIconProps:a,isScrolling:i,rowData:o,rowIndex:s,style:l,expandedRowKeys:u,ns:c,cellProps:d,expandColumnKey:p,indentSize:h,iconSize:v,rowKey:m},{slots:g})=>{const y=Cs(l);if(t.placeholderSign===Rf)return E("div",{class:c.em("row-cell","placeholder"),style:y},null);const{cellRenderer:T,dataKey:b,dataGetter:_}=t,w=ot(_)?_({columns:e,column:t,columnIndex:n,rowData:o,rowIndex:s}):jn(o,b??""),S=Nl(d,{cellData:w,columns:e,column:t,columnIndex:n,rowIndex:s,rowData:o}),A={class:c.e("cell-text"),columns:e,column:t,columnIndex:n,cellData:w,isScrolling:i,rowData:o,rowIndex:s},I=W3(T),D=I?I(A):fe(g,"default",A,()=>[E(Woe,A,null)]),O=[c.e("row-cell"),t.class,t.align===Mf.CENTER&&c.is("align-center"),t.align===Mf.RIGHT&&c.is("align-right")],V=s>=0&&p&&t.key===p,N=s>=0&&u.includes(o[m]);let K;const Y=`margin-inline-start: ${r*h}px;`;return V&&(It(a)?K=E(qoe,Ft(a,{class:[c.e("expand-icon"),c.is("expanded",N)],size:v,expanded:N,style:Y,expandable:!0}),null):K=E("div",{style:[Y,`width: ${v}px; height: ${v}px;`].join(" ")},null)),E("div",Ft({class:O,style:y},S,{role:"cell"}),[K,D])};t4.inheritAttrs=!1;var NE=t4;const Goe=Ue({class:String,columns:yp,columnsStyles:{type:ue(Object),required:!0},headerIndex:Number,style:{type:ue(Object)}}),Yoe=J({name:"ElTableV2HeaderRow",props:Goe,setup(e,{slots:t}){return()=>{const{columns:n,columnsStyles:r,headerIndex:a,style:i}=e;let o=n.map((s,l)=>t.cell({columns:n,column:s,columnIndex:l,headerIndex:a,style:r[s.key]}));return t.header&&(o=t.header({cells:o.map(s=>Be(s)&&s.length===1?s[0]:s),columns:n,headerIndex:a})),E("div",{class:e.class,style:i,role:"row"},[o])}}});var Xoe=Yoe;function Qoe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!wn(e)}const Joe=({columns:e,columnsStyles:t,headerIndex:n,style:r,headerClass:a,headerProps:i,ns:o},{slots:s})=>{const l={columns:e,headerIndex:n},u=[o.e("header-row"),Nl(a,l,""),{[o.is("customized")]:!!s.header}],c={...Nl(i,l),columnsStyles:t,class:u,columns:e,headerIndex:n,style:r};return E(Xoe,c,Qoe(s)?s:{default:()=>[s]})};var Zoe=Joe;const _2=(e,{slots:t})=>fe(t,"default",e,()=>{var n,r;return[E("div",{class:e.class,title:(n=e.column)==null?void 0:n.title},[(r=e.column)==null?void 0:r.title])]});_2.displayName="ElTableV2HeaderCell";_2.inheritAttrs=!1;var ese=_2;const tse=e=>{const{sortOrder:t}=e;return E(et,{size:14,class:e.class},{default:()=>[t===Of.ASC?E(tj,null,null):E(Zz,null,null)]})};var nse=tse;const rse=(e,{slots:t})=>{const{column:n,ns:r,style:a,onColumnSorted:i}=e,o=Cs(a);if(n.placeholderSign===Rf)return E("div",{class:r.em("header-row-cell","placeholder"),style:o},null);const{headerCellRenderer:s,headerClass:l,sortable:u}=n,c={...e,class:r.e("header-cell-text")},d=W3(s),p=d?d(c):fe(t,"default",c,()=>[E(ese,c,null)]),{sortBy:h,sortState:v,headerCellProps:m}=e;let g,y;if(v){const _=v[n.key];g=!!mb[_],y=g?_:Of.ASC}else g=n.key===h.key,y=g?h.order:Of.ASC;const T=[r.e("header-cell"),Nl(l,e,""),n.align===Mf.CENTER&&r.is("align-center"),n.align===Mf.RIGHT&&r.is("align-right"),u&&r.is("sortable")],b={...Nl(m,e),onClick:n.sortable?i:void 0,class:T,style:o,"data-key":n.key};return E("div",Ft(b,{role:"columnheader"}),[p,u&&E(nse,{class:[r.e("sort-icon"),g&&r.is("sorting")],sortOrder:y},null)])};var FE=rse;const n4=(e,{slots:t})=>{var n;return E("div",{class:e.class,style:e.style},[(n=t.default)==null?void 0:n.call(t)])};n4.displayName="ElTableV2Footer";var ase=n4;const r4=(e,{slots:t})=>{const n=fe(t,"default",{},()=>[E($c,null,null)]);return E("div",{class:e.class,style:e.style},[n])};r4.displayName="ElTableV2Empty";var ise=r4;const a4=(e,{slots:t})=>{var n;return E("div",{class:e.class,style:e.style},[(n=t.default)==null?void 0:n.call(t)])};a4.displayName="ElTableV2Overlay";var ose=a4;function hd(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!wn(e)}const sse="ElTableV2",lse=J({name:sse,props:voe,setup(e,{slots:t,expose:n}){const r=Le("table-v2"),{columnsStyles:a,fixedColumnsOnLeft:i,fixedColumnsOnRight:o,mainColumns:s,mainTableHeight:l,fixedTableHeight:u,leftTableWidth:c,rightTableWidth:d,data:p,depthMap:h,expandedRowKeys:v,hasFixedColumns:m,mainTableRef:g,leftTableRef:y,rightTableRef:T,isDynamic:b,isResetting:_,isScrolling:w,bodyWidth:S,emptyStyle:A,rootStyle:I,headerWidth:D,footerHeight:O,showEmpty:V,scrollTo:N,scrollToLeft:K,scrollToTop:Y,scrollToRow:q,getRowHeight:$,onColumnSorted:j,onRowHeightChange:W,onRowHovered:H,onRowExpanded:X,onRowsRendered:re,onScroll:le,onVerticalScroll:ne}=hoe(e);return n({scrollTo:N,scrollToLeft:K,scrollToTop:Y,scrollToRow:q}),Vt(m2,{ns:r,isResetting:_,isScrolling:w}),()=>{const{cache:be,cellProps:_e,estimatedRowHeight:ve,expandColumnKey:te,fixedData:me,headerHeight:pe,headerClass:Fe,headerProps:Pe,headerCellProps:ye,sortBy:Z,sortState:ie,rowHeight:Ce,rowClass:$e,rowEventHandlers:Se,rowKey:De,rowProps:xe,scrollbarAlwaysOn:Ve,indentSize:ze,iconSize:je,useIsScrolling:nt,vScrollbarSize:Ae,width:Xe}=e,ct=f(p),Dt={cache:be,class:r.e("main"),columns:f(s),data:ct,fixedData:me,estimatedRowHeight:ve,bodyWidth:f(S)+Ae,headerHeight:pe,headerWidth:f(D),height:f(l),mainTableRef:g,rowKey:De,rowHeight:Ce,scrollbarAlwaysOn:Ve,scrollbarStartGap:2,scrollbarEndGap:Ae,useIsScrolling:nt,width:Xe,getRowHeight:$,onRowsRendered:re,onScroll:le},Pt=f(c),Bt=f(u),Ut={cache:be,class:r.e("left"),columns:f(i),data:ct,fixedData:me,estimatedRowHeight:ve,leftTableRef:y,rowHeight:Ce,bodyWidth:Pt,headerWidth:Pt,headerHeight:pe,height:Bt,rowKey:De,scrollbarAlwaysOn:Ve,scrollbarStartGap:2,scrollbarEndGap:Ae,useIsScrolling:nt,width:Pt,getRowHeight:$,onScroll:ne},dt=f(d)+Ae,Oe={cache:be,class:r.e("right"),columns:f(o),data:ct,fixedData:me,estimatedRowHeight:ve,rightTableRef:T,rowHeight:Ce,bodyWidth:dt,headerWidth:dt,headerHeight:pe,height:Bt,rowKey:De,scrollbarAlwaysOn:Ve,scrollbarStartGap:2,scrollbarEndGap:Ae,width:dt,style:`--${f(r.namespace)}-table-scrollbar-size: ${Ae}px`,useIsScrolling:nt,getRowHeight:$,onScroll:ne},ce=f(a),Me={ns:r,depthMap:f(h),columnsStyles:ce,expandColumnKey:te,expandedRowKeys:f(v),estimatedRowHeight:ve,hasFixedColumns:f(m),rowProps:xe,rowClass:$e,rowKey:De,rowEventHandlers:Se,onRowHovered:H,onRowExpanded:X,onRowHeightChange:W},ae={cellProps:_e,expandColumnKey:te,indentSize:ze,iconSize:je,rowKey:De,expandedRowKeys:f(v),ns:r},We={ns:r,headerClass:Fe,headerProps:Pe,columnsStyles:ce},St={ns:r,sortBy:Z,sortState:ie,headerCellProps:ye,onColumnSorted:j},kt={row:bn=>E(joe,Ft(bn,Me),{row:t.row,cell:qn=>{let Tn;return t.cell?E(NE,Ft(qn,ae,{style:ce[qn.column.key]}),hd(Tn=t.cell(qn))?Tn:{default:()=>[Tn]}):E(NE,Ft(qn,ae,{style:ce[qn.column.key]}),null)}}),header:bn=>E(Zoe,Ft(bn,We),{header:t.header,cell:qn=>{let Tn;return t["header-cell"]?E(FE,Ft(qn,St,{style:ce[qn.column.key]}),hd(Tn=t["header-cell"](qn))?Tn:{default:()=>[Tn]}):E(FE,Ft(qn,St,{style:ce[qn.column.key]}),null)}})},mn=[e.class,r.b(),r.e("root"),{[r.is("dynamic")]:f(b)}],fa={class:r.e("footer"),style:f(O)};return E("div",{class:mn,style:f(I)},[E(Poe,Dt,hd(kt)?kt:{default:()=>[kt]}),E(Roe,Ut,hd(kt)?kt:{default:()=>[kt]}),E(Foe,Oe,hd(kt)?kt:{default:()=>[kt]}),t.footer&&E(ase,fa,{default:t.footer}),f(V)&&E(ise,{class:r.e("empty"),style:f(A)},{default:t.empty}),t.overlay&&E(ose,{class:r.e("overlay")},{default:t.overlay})])}}});var use=lse;const cse=Ue({disableWidth:Boolean,disableHeight:Boolean,onResize:{type:ue(Function)}}),dse=e=>{const t=z(),n=z(0),r=z(0);let a;return ht(()=>{a=In(t,([i])=>{const{width:o,height:s}=i.contentRect,{paddingLeft:l,paddingRight:u,paddingTop:c,paddingBottom:d}=getComputedStyle(i.target),p=Number.parseInt(l)||0,h=Number.parseInt(u)||0,v=Number.parseInt(c)||0,m=Number.parseInt(d)||0;n.value=o-p-h,r.value=s-v-m}).stop}),fn(()=>{a==null||a()}),Ie([n,r],([i,o])=>{var s;(s=e.onResize)==null||s.call(e,{width:i,height:o})}),{sizer:t,width:n,height:r}},fse=J({name:"ElAutoResizer",props:cse,setup(e,{slots:t}){const n=Le("auto-resizer"),{height:r,width:a,sizer:i}=dse(e),o={width:"100%",height:"100%"};return()=>{var s;return E("div",{ref:i,class:n.b(),style:o},[(s=t.default)==null?void 0:s.call(t,{height:r.value,width:a.value})])}}});var pse=fse;const hse=Et(use),mse=Et(pse),Xv=Symbol("tabsRootContextKey"),vse=Ue({tabs:{type:ue(Array),default:()=>Pn([])}}),i4="ElTabBar",gse=J({name:i4}),yse=J({...gse,props:vse,setup(e,{expose:t}){const n=e,r=Mt(),a=Qe(Xv);a||rr(i4,"<el-tabs><el-tab-bar /></el-tabs>");const i=Le("tabs"),o=z(),s=z(),l=()=>{let h=0,v=0;const m=["top","bottom"].includes(a.props.tabPosition)?"width":"height",g=m==="width"?"x":"y",y=g==="x"?"left":"top";return n.tabs.every(T=>{var b,_;const w=(_=(b=r.parent)==null?void 0:b.refs)==null?void 0:_[`tab-${T.uid}`];if(!w)return!1;if(!T.active)return!0;h=w[`offset${Wi(y)}`],v=w[`client${Wi(m)}`];const S=window.getComputedStyle(w);return m==="width"&&(v-=Number.parseFloat(S.paddingLeft)+Number.parseFloat(S.paddingRight),h+=Number.parseFloat(S.paddingLeft)),!1}),{[m]:`${v}px`,transform:`translate${Wi(g)}(${h}px)`}},u=()=>s.value=l(),c=[],d=()=>{var h;c.forEach(m=>m.stop()),c.length=0;const v=(h=r.parent)==null?void 0:h.refs;if(v){for(const m in v)if(m.startsWith("tab-")){const g=v[m];g&&c.push(In(g,u))}}};Ie(()=>n.tabs,async()=>{await it(),u(),d()},{immediate:!0});const p=In(o,()=>u());return fn(()=>{c.forEach(h=>h.stop()),c.length=0,p.stop()}),t({ref:o,update:u}),(h,v)=>(x(),U("div",{ref_key:"barRef",ref:o,class:F([f(i).e("active-bar"),f(i).is(f(a).props.tabPosition)]),style:tt(s.value)},null,6))}});var bse=He(yse,[["__file","tab-bar.vue"]]);const _se=Ue({panes:{type:ue(Array),default:()=>Pn([])},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean}),Tse={tabClick:(e,t,n)=>n instanceof Event,tabRemove:(e,t)=>t instanceof Event},$E="ElTabNav",wse=J({name:$E,props:_se,emits:Tse,setup(e,{expose:t,emit:n}){const r=Qe(Xv);r||rr($E,"<el-tabs><tab-nav /></el-tabs>");const a=Le("tabs"),i=QH(),o=u7(),s=z(),l=z(),u=z(),c=z(),d=z(!1),p=z(0),h=z(!1),v=z(!0),m=k(()=>["top","bottom"].includes(r.props.tabPosition)?"width":"height"),g=k(()=>({transform:`translate${m.value==="width"?"X":"Y"}(-${p.value}px)`})),y=()=>{if(!s.value)return;const I=s.value[`offset${Wi(m.value)}`],D=p.value;if(!D)return;const O=D>I?D-I:0;p.value=O},T=()=>{if(!s.value||!l.value)return;const I=l.value[`offset${Wi(m.value)}`],D=s.value[`offset${Wi(m.value)}`],O=p.value;if(I-O<=D)return;const V=I-O>D*2?O+D:I-D;p.value=V},b=async()=>{const I=l.value;if(!d.value||!u.value||!s.value||!I)return;await it();const D=u.value.querySelector(".is-active");if(!D)return;const O=s.value,V=["top","bottom"].includes(r.props.tabPosition),N=D.getBoundingClientRect(),K=O.getBoundingClientRect(),Y=V?I.offsetWidth-K.width:I.offsetHeight-K.height,q=p.value;let $=q;V?(N.left<K.left&&($=q-(K.left-N.left)),N.right>K.right&&($=q+N.right-K.right)):(N.top<K.top&&($=q-(K.top-N.top)),N.bottom>K.bottom&&($=q+(N.bottom-K.bottom))),$=Math.max($,0),p.value=Math.min($,Y)},_=()=>{var I;if(!l.value||!s.value)return;e.stretch&&((I=c.value)==null||I.update());const D=l.value[`offset${Wi(m.value)}`],O=s.value[`offset${Wi(m.value)}`],V=p.value;O<D?(d.value=d.value||{},d.value.prev=V,d.value.next=V+O<D,D-V<O&&(p.value=D-O)):(d.value=!1,V>0&&(p.value=0))},w=I=>{let D=0;switch(I.code){case Ye.left:case Ye.up:D=-1;break;case Ye.right:case Ye.down:D=1;break;default:return}const O=Array.from(I.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)"));let N=O.indexOf(I.target)+D;N<0?N=O.length-1:N>=O.length&&(N=0),O[N].focus({preventScroll:!0}),O[N].click(),S()},S=()=>{v.value&&(h.value=!0)},A=()=>h.value=!1;return Ie(i,I=>{I==="hidden"?v.value=!1:I==="visible"&&setTimeout(()=>v.value=!0,50)}),Ie(o,I=>{I?setTimeout(()=>v.value=!0,50):v.value=!1}),In(u,_),ht(()=>setTimeout(()=>b(),0)),Di(()=>_()),t({scrollToActiveTab:b,removeFocus:A}),()=>{const I=d.value?[E("span",{class:[a.e("nav-prev"),a.is("disabled",!d.value.prev)],onClick:y},[E(et,null,{default:()=>[E(Ms,null,null)]})]),E("span",{class:[a.e("nav-next"),a.is("disabled",!d.value.next)],onClick:T},[E(et,null,{default:()=>[E(sa,null,null)]})])]:null,D=e.panes.map((O,V)=>{var N,K,Y,q;const $=O.uid,j=O.props.disabled,W=(K=(N=O.props.name)!=null?N:O.index)!=null?K:`${V}`,H=!j&&(O.isClosable||e.editable);O.index=`${V}`;const X=H?E(et,{class:"is-icon-close",onClick:ne=>n("tabRemove",O,ne)},{default:()=>[E(Ci,null,null)]}):null,re=((q=(Y=O.slots).label)==null?void 0:q.call(Y))||O.props.label,le=!j&&O.active?0:-1;return E("div",{ref:`tab-${$}`,class:[a.e("item"),a.is(r.props.tabPosition),a.is("active",O.active),a.is("disabled",j),a.is("closable",H),a.is("focus",h.value)],id:`tab-${W}`,key:`tab-${$}`,"aria-controls":`pane-${W}`,role:"tab","aria-selected":O.active,tabindex:le,onFocus:()=>S(),onBlur:()=>A(),onClick:ne=>{A(),n("tabClick",O,W,ne)},onKeydown:ne=>{H&&(ne.code===Ye.delete||ne.code===Ye.backspace)&&n("tabRemove",O,ne)}},[re,X])});return E("div",{ref:u,class:[a.e("nav-wrap"),a.is("scrollable",!!d.value),a.is(r.props.tabPosition)]},[I,E("div",{class:a.e("nav-scroll"),ref:s},[E("div",{class:[a.e("nav"),a.is(r.props.tabPosition),a.is("stretch",e.stretch&&["top","bottom"].includes(r.props.tabPosition))],ref:l,style:g.value,role:"tablist",onKeydown:w},[e.type?null:E(bse,{ref:c,tabs:[...e.panes]},null),D])])])}}}),Sse=Ue({type:{type:String,values:["card","border-card",""],default:""},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number]},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:ue(Function),default:()=>!0},stretch:Boolean}),S0=e=>rt(e)||st(e),Cse={[_t]:e=>S0(e),tabClick:(e,t)=>t instanceof Event,tabChange:e=>S0(e),edit:(e,t)=>["remove","add"].includes(t),tabRemove:e=>S0(e),tabAdd:()=>!0},Ese=J({name:"ElTabs",props:Sse,emits:Cse,setup(e,{emit:t,slots:n,expose:r}){var a;const i=Le("tabs"),o=k(()=>["left","right"].includes(e.tabPosition)),{children:s,addChild:l,removeChild:u}=M1(Mt(),"ElTabPane"),c=z(),d=z((a=e.modelValue)!=null?a:"0"),p=async(y,T=!1)=>{var b,_;if(!(d.value===y||Xt(y)))try{let w;if(e.beforeLeave){const S=e.beforeLeave(y,d.value);w=S instanceof Promise?await S:S}else w=!0;w!==!1&&(d.value=y,T&&(t(_t,y),t("tabChange",y)),(_=(b=c.value)==null?void 0:b.removeFocus)==null||_.call(b))}catch{}},h=(y,T,b)=>{y.props.disabled||(p(T,!0),t("tabClick",y,b))},v=(y,T)=>{y.props.disabled||Xt(y.props.name)||(T.stopPropagation(),t("edit",y.props.name,"remove"),t("tabRemove",y.props.name))},m=()=>{t("edit",void 0,"add"),t("tabAdd")};Ie(()=>e.modelValue,y=>p(y)),Ie(d,async()=>{var y;await it(),(y=c.value)==null||y.scrollToActiveTab()}),Vt(Xv,{props:e,currentName:d,registerPane:y=>{s.value.push(y)},sortPane:l,unregisterPane:u}),r({currentName:d});const g=({render:y})=>y();return()=>{const y=n["add-icon"],T=e.editable||e.addable?E("div",{class:[i.e("new-tab"),o.value&&i.e("new-tab-vertical")],tabindex:"0",onClick:m,onKeydown:w=>{[Ye.enter,Ye.numpadEnter].includes(w.code)&&m()}},[y?fe(n,"add-icon"):E(et,{class:i.is("icon-plus")},{default:()=>[E(d1,null,null)]})]):null,b=E("div",{class:[i.e("header"),o.value&&i.e("header-vertical"),i.is(e.tabPosition)]},[E(g,{render:()=>{const w=s.value.some(S=>S.slots.label);return E(wse,{ref:c,currentName:d.value,editable:e.editable,type:e.type,panes:s.value,stretch:e.stretch,onTabClick:h,onTabRemove:v},{$stable:!w})}},null),T]),_=E("div",{class:i.e("content")},[fe(n,"default")]);return E("div",{class:[i.b(),i.m(e.tabPosition),{[i.m("card")]:e.type==="card",[i.m("border-card")]:e.type==="border-card"}]},[_,b])}}});var xse=Ese;const kse=Ue({label:{type:String,default:""},name:{type:[String,Number]},closable:Boolean,disabled:Boolean,lazy:Boolean}),o4="ElTabPane",Ase=J({name:o4}),Dse=J({...Ase,props:kse,setup(e){const t=e,n=Mt(),r=ir(),a=Qe(Xv);a||rr(o4,"usage: <el-tabs><el-tab-pane /></el-tabs/>");const i=Le("tab-pane"),o=z(),s=k(()=>t.closable||a.props.closable),l=ky(()=>{var h;return a.currentName.value===((h=t.name)!=null?h:o.value)}),u=z(l.value),c=k(()=>{var h;return(h=t.name)!=null?h:o.value}),d=ky(()=>!t.lazy||u.value||l.value);Ie(l,h=>{h&&(u.value=!0)});const p=Ct({uid:n.uid,slots:r,props:t,paneName:c,active:l,index:o,isClosable:s});return a.registerPane(p),ht(()=>{a.sortPane(p)}),zs(()=>{a.unregisterPane(p.uid)}),(h,v)=>f(d)?gt((x(),U("div",{key:0,id:`pane-${f(c)}`,class:F(f(i).b()),role:"tabpanel","aria-hidden":!f(l),"aria-labelledby":`tab-${f(c)}`},[fe(h.$slots,"default")],10,["id","aria-hidden","aria-labelledby"])),[[zt,f(l)]]):oe("v-if",!0)}});var s4=He(Dse,[["__file","tab-pane.vue"]]);const Ise=Et(xse,{TabPane:s4}),Pse=On(s4),Ose=Ue({type:{type:String,values:["primary","success","info","warning","danger",""],default:""},size:{type:String,values:uo,default:""},truncated:Boolean,lineClamp:{type:[String,Number]},tag:{type:String,default:"span"}}),Mse=J({name:"ElText"}),Rse=J({...Mse,props:Ose,setup(e){const t=e,n=z(),r=Kn(),a=Le("text"),i=k(()=>[a.b(),a.m(t.type),a.m(r.value),a.is("truncated",t.truncated),a.is("line-clamp",!Xt(t.lineClamp))]),o=es().title,s=()=>{var l,u,c,d,p;if(o)return;let h=!1;const v=((l=n.value)==null?void 0:l.textContent)||"";if(t.truncated){const m=(u=n.value)==null?void 0:u.offsetWidth,g=(c=n.value)==null?void 0:c.scrollWidth;m&&g&&g>m&&(h=!0)}else if(!Xt(t.lineClamp)){const m=(d=n.value)==null?void 0:d.offsetHeight,g=(p=n.value)==null?void 0:p.scrollHeight;m&&g&&g>m&&(h=!0)}h?n.value.setAttribute("title",v):n.value.removeAttribute("title")};return ht(s),Di(s),(l,u)=>(x(),he(Lt(l.tag),{ref_key:"textRef",ref:n,class:F(f(i)),style:tt({"-webkit-line-clamp":l.lineClamp})},{default:P(()=>[fe(l.$slots,"default")]),_:3},8,["class","style"]))}});var Lse=He(Rse,[["__file","text.vue"]]);const Nse=Et(Lse),Fse=Ue({format:{type:String,default:"HH:mm"},modelValue:String,disabled:Boolean,editable:{type:Boolean,default:!0},effect:{type:ue(String),default:"light"},clearable:{type:Boolean,default:!0},size:Xn,placeholder:String,start:{type:String,default:"09:00"},end:{type:String,default:"18:00"},step:{type:String,default:"00:30"},minTime:String,maxTime:String,includeEndTime:{type:Boolean,default:!1},name:String,prefixIcon:{type:ue([String,Object]),default:()=>u1},clearIcon:{type:ue([String,Object]),default:()=>rs},...Mc}),Ro=e=>{const t=(e||"").split(":");if(t.length>=2){let n=Number.parseInt(t[0],10);const r=Number.parseInt(t[1],10),a=e.toUpperCase();return a.includes("AM")&&n===12?n=0:a.includes("PM")&&n!==12&&(n+=12),{hours:n,minutes:r}}return null},C0=(e,t)=>{const n=Ro(e);if(!n)return-1;const r=Ro(t);if(!r)return-1;const a=n.minutes+n.hours*60,i=r.minutes+r.hours*60;return a===i?0:a>i?1:-1},BE=e=>`${e}`.padStart(2,"0"),Tu=e=>`${BE(e.hours)}:${BE(e.minutes)}`,$se=(e,t)=>{const n=Ro(e);if(!n)return"";const r=Ro(t);if(!r)return"";const a={hours:n.hours,minutes:n.minutes};return a.minutes+=r.minutes,a.hours+=r.hours,a.hours+=Math.floor(a.minutes/60),a.minutes=a.minutes%60,Tu(a)},Bse=J({name:"ElTimeSelect"}),Vse=J({...Bse,props:Fse,emits:[$t,"blur","focus","clear",_t],setup(e,{expose:t}){const n=e;xt.extend(U1);const{Option:r}=ii,a=Le("input"),i=z(),o=Mr(),{lang:s}=Kt(),l=k(()=>n.modelValue),u=k(()=>{const y=Ro(n.start);return y?Tu(y):null}),c=k(()=>{const y=Ro(n.end);return y?Tu(y):null}),d=k(()=>{const y=Ro(n.step);return y?Tu(y):null}),p=k(()=>{const y=Ro(n.minTime||"");return y?Tu(y):null}),h=k(()=>{const y=Ro(n.maxTime||"");return y?Tu(y):null}),v=k(()=>{var y;const T=[],b=(_,w)=>{T.push({value:_,disabled:C0(w,p.value||"-1:-1")<=0||C0(w,h.value||"100:100")>=0})};if(n.start&&n.end&&n.step){let _=u.value,w;for(;_&&c.value&&C0(_,c.value)<=0;)w=xt(_,"HH:mm").locale(s.value).format(n.format),b(w,_),_=$se(_,d.value);if(n.includeEndTime&&c.value&&((y=T[T.length-1])==null?void 0:y.value)!==c.value){const S=xt(c.value,"HH:mm").locale(s.value).format(n.format);b(S,c.value)}}return T});return t({blur:()=>{var y,T;(T=(y=i.value)==null?void 0:y.blur)==null||T.call(y)},focus:()=>{var y,T;(T=(y=i.value)==null?void 0:y.focus)==null||T.call(y)}}),(y,T)=>(x(),he(f(ii),{ref_key:"select",ref:i,"model-value":f(l),disabled:f(o),clearable:y.clearable,"clear-icon":y.clearIcon,size:y.size,effect:y.effect,placeholder:y.placeholder,"default-first-option":"",filterable:y.editable,"empty-values":y.emptyValues,"value-on-clear":y.valueOnClear,"onUpdate:modelValue":b=>y.$emit(f(_t),b),onChange:b=>y.$emit(f($t),b),onBlur:b=>y.$emit("blur",b),onFocus:b=>y.$emit("focus",b),onClear:()=>y.$emit("clear")},{prefix:P(()=>[y.prefixIcon?(x(),he(f(et),{key:0,class:F(f(a).e("prefix-icon"))},{default:P(()=>[(x(),he(Lt(y.prefixIcon)))]),_:1},8,["class"])):oe("v-if",!0)]),default:P(()=>[(x(!0),U(Ge,null,mt(f(v),b=>(x(),he(f(r),{key:b.value,label:b.value,value:b.value,disabled:b.disabled},null,8,["label","value","disabled"]))),128))]),_:1},8,["model-value","disabled","clearable","clear-icon","size","effect","placeholder","filterable","empty-values","value-on-clear","onUpdate:modelValue","onChange","onBlur","onFocus","onClear"]))}});var Use=He(Vse,[["__file","time-select.vue"]]);const Hse=Et(Use),zse=J({name:"ElTimeline",setup(e,{slots:t}){const n=Le("timeline");return Vt("timeline",t),()=>lt("ul",{class:[n.b()]},[fe(t,"default")])}}),jse=Ue({timestamp:{type:String,default:""},hideTimestamp:Boolean,center:Boolean,placement:{type:String,values:["top","bottom"],default:"bottom"},type:{type:String,values:["primary","success","warning","danger","info"],default:""},color:{type:String,default:""},size:{type:String,values:["normal","large"],default:"normal"},icon:{type:dn},hollow:Boolean}),Wse=J({name:"ElTimelineItem"}),Kse=J({...Wse,props:jse,setup(e){const t=e,n=Le("timeline-item"),r=k(()=>[n.e("node"),n.em("node",t.size||""),n.em("node",t.type||""),n.is("hollow",t.hollow)]);return(a,i)=>(x(),U("li",{class:F([f(n).b(),{[f(n).e("center")]:a.center}])},[M("div",{class:F(f(n).e("tail"))},null,2),a.$slots.dot?oe("v-if",!0):(x(),U("div",{key:0,class:F(f(r)),style:tt({backgroundColor:a.color})},[a.icon?(x(),he(f(et),{key:0,class:F(f(n).e("icon"))},{default:P(()=>[(x(),he(Lt(a.icon)))]),_:1},8,["class"])):oe("v-if",!0)],6)),a.$slots.dot?(x(),U("div",{key:1,class:F(f(n).e("dot"))},[fe(a.$slots,"dot")],2)):oe("v-if",!0),M("div",{class:F(f(n).e("wrapper"))},[!a.hideTimestamp&&a.placement==="top"?(x(),U("div",{key:0,class:F([f(n).e("timestamp"),f(n).is("top")])},de(a.timestamp),3)):oe("v-if",!0),M("div",{class:F(f(n).e("content"))},[fe(a.$slots,"default")],2),!a.hideTimestamp&&a.placement==="bottom"?(x(),U("div",{key:1,class:F([f(n).e("timestamp"),f(n).is("bottom")])},de(a.timestamp),3)):oe("v-if",!0)],2)],2))}});var l4=He(Kse,[["__file","timeline-item.vue"]]);const qse=Et(zse,{TimelineItem:l4}),Gse=On(l4),u4=Ue({nowrap:Boolean});var c4=(e=>(e.top="top",e.bottom="bottom",e.left="left",e.right="right",e))(c4||{});const Yse=Object.values(c4),T2=Ue({width:{type:Number,default:10},height:{type:Number,default:10},style:{type:ue(Object),default:null}}),Xse=Ue({side:{type:ue(String),values:Yse,required:!0}}),Qse=["absolute","fixed"],Jse=["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],w2=Ue({arrowPadding:{type:ue(Number),default:5},effect:{type:ue(String),default:"light"},contentClass:String,placement:{type:ue(String),values:Jse,default:"bottom"},reference:{type:ue(Object),default:null},offset:{type:Number,default:8},strategy:{type:ue(String),values:Qse,default:"absolute"},showArrow:Boolean,...Er(["ariaLabel"])}),S2=Ue({delayDuration:{type:Number,default:300},defaultOpen:Boolean,open:{type:Boolean,default:void 0},onOpenChange:{type:ue(Function)},"onUpdate:open":{type:ue(Function)}}),lu={type:ue(Function)},C2=Ue({onBlur:lu,onClick:lu,onFocus:lu,onMouseDown:lu,onMouseEnter:lu,onMouseLeave:lu}),Zse=Ue({...S2,...T2,...C2,...w2,alwaysOn:Boolean,fullTransition:Boolean,transitionProps:{type:ue(Object),default:null},teleported:Boolean,to:{type:ue(String),default:"body"}}),Qv=Symbol("tooltipV2"),d4=Symbol("tooltipV2Content"),E0="tooltip_v2.open",ele=J({name:"ElTooltipV2Root"}),tle=J({...ele,props:S2,setup(e,{expose:t}){const n=e,r=z(n.defaultOpen),a=z(null),i=k({get:()=>yi(n.open)?r.value:n.open,set:g=>{var y;r.value=g,(y=n["onUpdate:open"])==null||y.call(n,g)}}),o=k(()=>st(n.delayDuration)&&n.delayDuration>0),{start:s,stop:l}=Rl(()=>{i.value=!0},k(()=>n.delayDuration),{immediate:!1}),u=Le("tooltip-v2"),c=wr(),d=()=>{l(),i.value=!0},p=()=>{f(o)?s():d()},h=d,v=()=>{l(),i.value=!1};return Ie(i,g=>{var y;g&&(document.dispatchEvent(new CustomEvent(E0)),h()),(y=n.onOpenChange)==null||y.call(n,g)}),ht(()=>{document.addEventListener(E0,v)}),fn(()=>{l(),document.removeEventListener(E0,v)}),Vt(Qv,{contentId:c,triggerRef:a,ns:u,onClose:v,onDelayOpen:p,onOpen:h}),t({onOpen:h,onClose:v}),(g,y)=>fe(g.$slots,"default",{open:f(i)})}});var nle=He(tle,[["__file","root.vue"]]);const rle=J({name:"ElTooltipV2Arrow"}),ale=J({...rle,props:{...T2,...Xse},setup(e){const t=e,{ns:n}=Qe(Qv),{arrowRef:r}=Qe(d4),a=k(()=>{const{style:i,width:o,height:s}=t,l=n.namespace.value;return{[`--${l}-tooltip-v2-arrow-width`]:`${o}px`,[`--${l}-tooltip-v2-arrow-height`]:`${s}px`,[`--${l}-tooltip-v2-arrow-border-width`]:`${o/2}px`,[`--${l}-tooltip-v2-arrow-cover-width`]:o/2-1,...i||{}}});return(i,o)=>(x(),U("span",{ref_key:"arrowRef",ref:r,style:tt(f(a)),class:F(f(n).e("arrow"))},null,6))}});var VE=He(ale,[["__file","arrow.vue"]]);const sc=Math.min,El=Math.max,Lm=Math.round,ph=Math.floor,Qi=e=>({x:e,y:e}),ile={left:"right",right:"left",bottom:"top",top:"bottom"},ole={start:"end",end:"start"};function gb(e,t,n){return El(e,sc(t,n))}function bp(e,t){return typeof e=="function"?e(t):e}function Fl(e){return e.split("-")[0]}function _p(e){return e.split("-")[1]}function f4(e){return e==="x"?"y":"x"}function E2(e){return e==="y"?"height":"width"}function lc(e){return["top","bottom"].includes(Fl(e))?"y":"x"}function x2(e){return f4(lc(e))}function sle(e,t,n){n===void 0&&(n=!1);const r=_p(e),a=x2(e),i=E2(a);let o=a==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=Nm(o)),[o,Nm(o)]}function lle(e){const t=Nm(e);return[yb(e),t,yb(t)]}function yb(e){return e.replace(/start|end/g,t=>ole[t])}function ule(e,t,n){const r=["left","right"],a=["right","left"],i=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return n?t?a:r:t?r:a;case"left":case"right":return t?i:o;default:return[]}}function cle(e,t,n,r){const a=_p(e);let i=ule(Fl(e),n==="start",r);return a&&(i=i.map(o=>o+"-"+a),t&&(i=i.concat(i.map(yb)))),i}function Nm(e){return e.replace(/left|right|bottom|top/g,t=>ile[t])}function dle(e){return{top:0,right:0,bottom:0,left:0,...e}}function p4(e){return typeof e!="number"?dle(e):{top:e,right:e,bottom:e,left:e}}function Fm(e){const{x:t,y:n,width:r,height:a}=e;return{width:r,height:a,top:n,left:t,right:t+r,bottom:n+a,x:t,y:n}}function UE(e,t,n){let{reference:r,floating:a}=e;const i=lc(t),o=x2(t),s=E2(o),l=Fl(t),u=i==="y",c=r.x+r.width/2-a.width/2,d=r.y+r.height/2-a.height/2,p=r[s]/2-a[s]/2;let h;switch(l){case"top":h={x:c,y:r.y-a.height};break;case"bottom":h={x:c,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:d};break;case"left":h={x:r.x-a.width,y:d};break;default:h={x:r.x,y:r.y}}switch(_p(t)){case"start":h[o]-=p*(n&&u?-1:1);break;case"end":h[o]+=p*(n&&u?-1:1);break}return h}const fle=async(e,t,n)=>{const{placement:r="bottom",strategy:a="absolute",middleware:i=[],platform:o}=n,s=i.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(t));let u=await o.getElementRects({reference:e,floating:t,strategy:a}),{x:c,y:d}=UE(u,r,l),p=r,h={},v=0;for(let m=0;m<s.length;m++){const{name:g,fn:y}=s[m],{x:T,y:b,data:_,reset:w}=await y({x:c,y:d,initialPlacement:r,placement:p,strategy:a,middlewareData:h,rects:u,platform:o,elements:{reference:e,floating:t}});c=T??c,d=b??d,h={...h,[g]:{...h[g],..._}},w&&v<=50&&(v++,typeof w=="object"&&(w.placement&&(p=w.placement),w.rects&&(u=w.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:a}):w.rects),{x:c,y:d}=UE(u,p,l)),m=-1)}return{x:c,y:d,placement:p,strategy:a,middlewareData:h}};async function k2(e,t){var n;t===void 0&&(t={});const{x:r,y:a,platform:i,rects:o,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:p=!1,padding:h=0}=bp(t,e),v=p4(h),g=s[p?d==="floating"?"reference":"floating":d],y=Fm(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(g)))==null||n?g:g.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:l})),T=d==="floating"?{x:r,y:a,width:o.floating.width,height:o.floating.height}:o.reference,b=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),_=await(i.isElement==null?void 0:i.isElement(b))?await(i.getScale==null?void 0:i.getScale(b))||{x:1,y:1}:{x:1,y:1},w=Fm(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:T,offsetParent:b,strategy:l}):T);return{top:(y.top-w.top+v.top)/_.y,bottom:(w.bottom-y.bottom+v.bottom)/_.y,left:(y.left-w.left+v.left)/_.x,right:(w.right-y.right+v.right)/_.x}}const ple=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:a,rects:i,platform:o,elements:s,middlewareData:l}=t,{element:u,padding:c=0}=bp(e,t)||{};if(u==null)return{};const d=p4(c),p={x:n,y:r},h=x2(a),v=E2(h),m=await o.getDimensions(u),g=h==="y",y=g?"top":"left",T=g?"bottom":"right",b=g?"clientHeight":"clientWidth",_=i.reference[v]+i.reference[h]-p[h]-i.floating[v],w=p[h]-i.reference[h],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let A=S?S[b]:0;(!A||!await(o.isElement==null?void 0:o.isElement(S)))&&(A=s.floating[b]||i.floating[v]);const I=_/2-w/2,D=A/2-m[v]/2-1,O=sc(d[y],D),V=sc(d[T],D),N=O,K=A-m[v]-V,Y=A/2-m[v]/2+I,q=gb(N,Y,K),$=!l.arrow&&_p(a)!=null&&Y!==q&&i.reference[v]/2-(Y<N?O:V)-m[v]/2<0,j=$?Y<N?Y-N:Y-K:0;return{[h]:p[h]+j,data:{[h]:q,centerOffset:Y-q-j,...$&&{alignmentOffset:j}},reset:$}}}),hle=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:a,middlewareData:i,rects:o,initialPlacement:s,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:m=!0,...g}=bp(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const y=Fl(a),T=lc(s),b=Fl(s)===s,_=await(l.isRTL==null?void 0:l.isRTL(u.floating)),w=p||(b||!m?[Nm(s)]:lle(s)),S=v!=="none";!p&&S&&w.push(...cle(s,m,v,_));const A=[s,...w],I=await k2(t,g),D=[];let O=((r=i.flip)==null?void 0:r.overflows)||[];if(c&&D.push(I[y]),d){const Y=sle(a,o,_);D.push(I[Y[0]],I[Y[1]])}if(O=[...O,{placement:a,overflows:D}],!D.every(Y=>Y<=0)){var V,N;const Y=(((V=i.flip)==null?void 0:V.index)||0)+1,q=A[Y];if(q)return{data:{index:Y,overflows:O},reset:{placement:q}};let $=(N=O.filter(j=>j.overflows[0]<=0).sort((j,W)=>j.overflows[1]-W.overflows[1])[0])==null?void 0:N.placement;if(!$)switch(h){case"bestFit":{var K;const j=(K=O.filter(W=>{if(S){const H=lc(W.placement);return H===T||H==="y"}return!0}).map(W=>[W.placement,W.overflows.filter(H=>H>0).reduce((H,X)=>H+X,0)]).sort((W,H)=>W[1]-H[1])[0])==null?void 0:K[0];j&&($=j);break}case"initialPlacement":$=s;break}if(a!==$)return{reset:{placement:$}}}return{}}}};async function mle(e,t){const{placement:n,platform:r,elements:a}=e,i=await(r.isRTL==null?void 0:r.isRTL(a.floating)),o=Fl(n),s=_p(n),l=lc(n)==="y",u=["left","top"].includes(o)?-1:1,c=i&&l?-1:1,d=bp(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:v}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof v=="number"&&(h=s==="end"?v*-1:v),l?{x:h*c,y:p*u}:{x:p*u,y:h*c}}const vle=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:a,y:i,placement:o,middlewareData:s}=t,l=await mle(t,e);return o===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:a+l.x,y:i+l.y,data:{...l,placement:o}}}}},gle=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:a}=t,{mainAxis:i=!0,crossAxis:o=!1,limiter:s={fn:g=>{let{x:y,y:T}=g;return{x:y,y:T}}},...l}=bp(e,t),u={x:n,y:r},c=await k2(t,l),d=lc(Fl(a)),p=f4(d);let h=u[p],v=u[d];if(i){const g=p==="y"?"top":"left",y=p==="y"?"bottom":"right",T=h+c[g],b=h-c[y];h=gb(T,h,b)}if(o){const g=d==="y"?"top":"left",y=d==="y"?"bottom":"right",T=v+c[g],b=v-c[y];v=gb(T,v,b)}const m=s.fn({...t,[p]:h,[d]:v});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[p]:i,[d]:o}}}}}};function Jv(){return typeof window<"u"}function Uc(e){return h4(e)?(e.nodeName||"").toLowerCase():"#document"}function Ba(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function mo(e){var t;return(t=(h4(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function h4(e){return Jv()?e instanceof Node||e instanceof Ba(e).Node:!1}function Ei(e){return Jv()?e instanceof Element||e instanceof Ba(e).Element:!1}function so(e){return Jv()?e instanceof HTMLElement||e instanceof Ba(e).HTMLElement:!1}function HE(e){return!Jv()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ba(e).ShadowRoot}function Tp(e){const{overflow:t,overflowX:n,overflowY:r,display:a}=xi(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(a)}function yle(e){return["table","td","th"].includes(Uc(e))}function Zv(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function A2(e){const t=D2(),n=Ei(e)?xi(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function ble(e){let t=Fs(e);for(;so(t)&&!uc(t);){if(A2(t))return t;if(Zv(t))return null;t=Fs(t)}return null}function D2(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function uc(e){return["html","body","#document"].includes(Uc(e))}function xi(e){return Ba(e).getComputedStyle(e)}function eg(e){return Ei(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Fs(e){if(Uc(e)==="html")return e;const t=e.assignedSlot||e.parentNode||HE(e)&&e.host||mo(e);return HE(t)?t.host:t}function m4(e){const t=Fs(e);return uc(t)?e.ownerDocument?e.ownerDocument.body:e.body:so(t)&&Tp(t)?t:m4(t)}function Lf(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const a=m4(e),i=a===((r=e.ownerDocument)==null?void 0:r.body),o=Ba(a);if(i){const s=bb(o);return t.concat(o,o.visualViewport||[],Tp(a)?a:[],s&&n?Lf(s):[])}return t.concat(a,Lf(a,[],n))}function bb(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function v4(e){const t=xi(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const a=so(e),i=a?e.offsetWidth:n,o=a?e.offsetHeight:r,s=Lm(n)!==i||Lm(r)!==o;return s&&(n=i,r=o),{width:n,height:r,$:s}}function I2(e){return Ei(e)?e:e.contextElement}function Uu(e){const t=I2(e);if(!so(t))return Qi(1);const n=t.getBoundingClientRect(),{width:r,height:a,$:i}=v4(t);let o=(i?Lm(n.width):n.width)/r,s=(i?Lm(n.height):n.height)/a;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const _le=Qi(0);function g4(e){const t=Ba(e);return!D2()||!t.visualViewport?_le:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Tle(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ba(e)?!1:t}function $l(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const a=e.getBoundingClientRect(),i=I2(e);let o=Qi(1);t&&(r?Ei(r)&&(o=Uu(r)):o=Uu(e));const s=Tle(i,n,r)?g4(i):Qi(0);let l=(a.left+s.x)/o.x,u=(a.top+s.y)/o.y,c=a.width/o.x,d=a.height/o.y;if(i){const p=Ba(i),h=r&&Ei(r)?Ba(r):r;let v=p,m=bb(v);for(;m&&r&&h!==v;){const g=Uu(m),y=m.getBoundingClientRect(),T=xi(m),b=y.left+(m.clientLeft+parseFloat(T.paddingLeft))*g.x,_=y.top+(m.clientTop+parseFloat(T.paddingTop))*g.y;l*=g.x,u*=g.y,c*=g.x,d*=g.y,l+=b,u+=_,v=Ba(m),m=bb(v)}}return Fm({width:c,height:d,x:l,y:u})}function P2(e,t){const n=eg(e).scrollLeft;return t?t.left+n:$l(mo(e)).left+n}function y4(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),a=r.left+t.scrollLeft-(n?0:P2(e,r)),i=r.top+t.scrollTop;return{x:a,y:i}}function wle(e){let{elements:t,rect:n,offsetParent:r,strategy:a}=e;const i=a==="fixed",o=mo(r),s=t?Zv(t.floating):!1;if(r===o||s&&i)return n;let l={scrollLeft:0,scrollTop:0},u=Qi(1);const c=Qi(0),d=so(r);if((d||!d&&!i)&&((Uc(r)!=="body"||Tp(o))&&(l=eg(r)),so(r))){const h=$l(r);u=Uu(r),c.x=h.x+r.clientLeft,c.y=h.y+r.clientTop}const p=o&&!d&&!i?y4(o,l,!0):Qi(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x+p.x,y:n.y*u.y-l.scrollTop*u.y+c.y+p.y}}function Sle(e){return Array.from(e.getClientRects())}function Cle(e){const t=mo(e),n=eg(e),r=e.ownerDocument.body,a=El(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=El(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+P2(e);const s=-n.scrollTop;return xi(r).direction==="rtl"&&(o+=El(t.clientWidth,r.clientWidth)-a),{width:a,height:i,x:o,y:s}}function Ele(e,t){const n=Ba(e),r=mo(e),a=n.visualViewport;let i=r.clientWidth,o=r.clientHeight,s=0,l=0;if(a){i=a.width,o=a.height;const u=D2();(!u||u&&t==="fixed")&&(s=a.offsetLeft,l=a.offsetTop)}return{width:i,height:o,x:s,y:l}}function xle(e,t){const n=$l(e,!0,t==="fixed"),r=n.top+e.clientTop,a=n.left+e.clientLeft,i=so(e)?Uu(e):Qi(1),o=e.clientWidth*i.x,s=e.clientHeight*i.y,l=a*i.x,u=r*i.y;return{width:o,height:s,x:l,y:u}}function zE(e,t,n){let r;if(t==="viewport")r=Ele(e,n);else if(t==="document")r=Cle(mo(e));else if(Ei(t))r=xle(t,n);else{const a=g4(e);r={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return Fm(r)}function b4(e,t){const n=Fs(e);return n===t||!Ei(n)||uc(n)?!1:xi(n).position==="fixed"||b4(n,t)}function kle(e,t){const n=t.get(e);if(n)return n;let r=Lf(e,[],!1).filter(s=>Ei(s)&&Uc(s)!=="body"),a=null;const i=xi(e).position==="fixed";let o=i?Fs(e):e;for(;Ei(o)&&!uc(o);){const s=xi(o),l=A2(o);!l&&s.position==="fixed"&&(a=null),(i?!l&&!a:!l&&s.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||Tp(o)&&!l&&b4(e,o))?r=r.filter(c=>c!==o):a=s,o=Fs(o)}return t.set(e,r),r}function Ale(e){let{element:t,boundary:n,rootBoundary:r,strategy:a}=e;const o=[...n==="clippingAncestors"?Zv(t)?[]:kle(t,this._c):[].concat(n),r],s=o[0],l=o.reduce((u,c)=>{const d=zE(t,c,a);return u.top=El(d.top,u.top),u.right=sc(d.right,u.right),u.bottom=sc(d.bottom,u.bottom),u.left=El(d.left,u.left),u},zE(t,s,a));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Dle(e){const{width:t,height:n}=v4(e);return{width:t,height:n}}function Ile(e,t,n){const r=so(t),a=mo(t),i=n==="fixed",o=$l(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=Qi(0);if(r||!r&&!i)if((Uc(t)!=="body"||Tp(a))&&(s=eg(t)),r){const p=$l(t,!0,i,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}else a&&(l.x=P2(a));const u=a&&!r&&!i?y4(a,s):Qi(0),c=o.left+s.scrollLeft-l.x-u.x,d=o.top+s.scrollTop-l.y-u.y;return{x:c,y:d,width:o.width,height:o.height}}function x0(e){return xi(e).position==="static"}function jE(e,t){if(!so(e)||xi(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return mo(e)===n&&(n=n.ownerDocument.body),n}function _4(e,t){const n=Ba(e);if(Zv(e))return n;if(!so(e)){let a=Fs(e);for(;a&&!uc(a);){if(Ei(a)&&!x0(a))return a;a=Fs(a)}return n}let r=jE(e,t);for(;r&&yle(r)&&x0(r);)r=jE(r,t);return r&&uc(r)&&x0(r)&&!A2(r)?n:r||ble(e)||n}const Ple=async function(e){const t=this.getOffsetParent||_4,n=this.getDimensions,r=await n(e.floating);return{reference:Ile(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Ole(e){return xi(e).direction==="rtl"}const Mle={convertOffsetParentRelativeRectToViewportRelativeRect:wle,getDocumentElement:mo,getClippingRect:Ale,getOffsetParent:_4,getElementRects:Ple,getClientRects:Sle,getDimensions:Dle,getScale:Uu,isElement:Ei,isRTL:Ole};function T4(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Rle(e,t){let n=null,r;const a=mo(e);function i(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function o(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),i();const u=e.getBoundingClientRect(),{left:c,top:d,width:p,height:h}=u;if(s||t(),!p||!h)return;const v=ph(d),m=ph(a.clientWidth-(c+p)),g=ph(a.clientHeight-(d+h)),y=ph(c),b={rootMargin:-v+"px "+-m+"px "+-g+"px "+-y+"px",threshold:El(0,sc(1,l))||1};let _=!0;function w(S){const A=S[0].intersectionRatio;if(A!==l){if(!_)return o();A?o(!1,A):r=setTimeout(()=>{o(!1,1e-7)},1e3)}A===1&&!T4(u,e.getBoundingClientRect())&&o(),_=!1}try{n=new IntersectionObserver(w,{...b,root:a.ownerDocument})}catch{n=new IntersectionObserver(w,b)}n.observe(e)}return o(!0),i}function Lle(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:a=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=I2(e),c=a||i?[...u?Lf(u):[],...Lf(t)]:[];c.forEach(y=>{a&&y.addEventListener("scroll",n,{passive:!0}),i&&y.addEventListener("resize",n)});const d=u&&s?Rle(u,n):null;let p=-1,h=null;o&&(h=new ResizeObserver(y=>{let[T]=y;T&&T.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var b;(b=h)==null||b.observe(t)})),n()}),u&&!l&&h.observe(u),h.observe(t));let v,m=l?$l(e):null;l&&g();function g(){const y=$l(e);m&&!T4(m,y)&&n(),m=y,v=requestAnimationFrame(g)}return n(),()=>{var y;c.forEach(T=>{a&&T.removeEventListener("scroll",n),i&&T.removeEventListener("resize",n)}),d==null||d(),(y=h)==null||y.disconnect(),h=null,l&&cancelAnimationFrame(v)}}const Nle=k2,w4=vle,Fle=gle,$le=hle,S4=ple,C4=(e,t,n)=>{const r=new Map,a={platform:Mle,...n},i={...a.platform,_c:r};return fle(e,t,{...a,platform:i})},Ble=Ue({style:{type:ue([String,Object,Array]),default:()=>({})}}),Vle=J({name:"ElVisuallyHidden"}),Ule=J({...Vle,props:Ble,setup(e){const t=e,n=k(()=>[t.style,{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}]);return(r,a)=>(x(),U("span",Ft(r.$attrs,{style:f(n)}),[fe(r.$slots,"default")],16))}});var Hle=He(Ule,[["__file","visual-hidden.vue"]]);Ue({});const zle=e=>{if(!Wt)return;if(!e)return e;const t=ia(e);return t||(yn(e)?t:e)},jle=({middleware:e,placement:t,strategy:n})=>{const r=z(),a=z(),i=z(),o=z(),s=z({}),l={x:i,y:o,placement:t,strategy:n,middlewareData:s},u=async()=>{if(!Wt)return;const c=zle(r),d=ia(a);if(!c||!d)return;const p=await C4(c,d,{placement:f(t),strategy:f(n),middleware:f(e)});Qu(l).forEach(h=>{l[h].value=p[h]})};return ht(()=>{_r(()=>{u()})}),{...l,update:u,referenceRef:r,contentRef:a}},Wle=({arrowRef:e,padding:t})=>({name:"arrow",options:{element:e,padding:t},fn(n){const r=f(e);return r?S4({element:r,padding:t}).fn(n):{}}}),Kle=J({name:"ElTooltipV2Content"}),qle=J({...Kle,props:{...w2,...u4},setup(e){const t=e,{triggerRef:n,contentId:r}=Qe(Qv),a=z(t.placement),i=z(t.strategy),o=z(null),{referenceRef:s,contentRef:l,middlewareData:u,x:c,y:d,update:p}=jle({placement:a,strategy:i,middleware:k(()=>{const b=[w4(t.offset)];return t.showArrow&&b.push(Wle({arrowRef:o})),b})}),h=Oc().nextZIndex(),v=Le("tooltip-v2"),m=k(()=>a.value.split("-")[0]),g=k(()=>({position:f(i),top:`${f(d)||0}px`,left:`${f(c)||0}px`,zIndex:h})),y=k(()=>{if(!t.showArrow)return{};const{arrow:b}=f(u);return{[`--${v.namespace.value}-tooltip-v2-arrow-x`]:`${b==null?void 0:b.x}px`||"",[`--${v.namespace.value}-tooltip-v2-arrow-y`]:`${b==null?void 0:b.y}px`||""}}),T=k(()=>[v.e("content"),v.is("dark",t.effect==="dark"),v.is(f(i)),t.contentClass]);return Ie(o,()=>p()),Ie(()=>t.placement,b=>a.value=b),ht(()=>{Ie(()=>t.reference||n.value,b=>{s.value=b||void 0},{immediate:!0})}),Vt(d4,{arrowRef:o}),(b,_)=>(x(),U("div",{ref_key:"contentRef",ref:l,style:tt(f(g)),"data-tooltip-v2-root":""},[b.nowrap?oe("v-if",!0):(x(),U("div",{key:0,"data-side":f(m),class:F(f(T))},[fe(b.$slots,"default",{contentStyle:f(g),contentClass:f(T)}),E(f(Hle),{id:f(r),role:"tooltip"},{default:P(()=>[b.ariaLabel?(x(),U(Ge,{key:0},[we(de(b.ariaLabel),1)],64)):fe(b.$slots,"default",{key:1})]),_:3},8,["id"]),fe(b.$slots,"arrow",{style:tt(f(y)),side:f(m)})],10,["data-side"]))],4))}});var WE=He(qle,[["__file","content.vue"]]);const Gle=Ue({setRef:{type:ue(Function),required:!0},onlyChild:Boolean});var Yle=J({props:Gle,setup(e,{slots:t}){const n=z(),r=Wv(n,a=>{a?e.setRef(a.nextElementSibling):e.setRef(null)});return()=>{var a;const[i]=((a=t.default)==null?void 0:a.call(t))||[],o=e.onlyChild?GG(i.children):i.children;return E(Ge,{ref:r},[o])}}});const Xle=J({name:"ElTooltipV2Trigger"}),Qle=J({...Xle,props:{...u4,...C2},setup(e){const t=e,{onClose:n,onOpen:r,onDelayOpen:a,triggerRef:i,contentId:o}=Qe(Qv);let s=!1;const l=T=>{i.value=T},u=()=>{s=!1},c=$n(t.onMouseEnter,a),d=$n(t.onMouseLeave,n),p=$n(t.onMouseDown,()=>{n(),s=!0,document.addEventListener("mouseup",u,{once:!0})}),h=$n(t.onFocus,()=>{s||r()}),v=$n(t.onBlur,n),m=$n(t.onClick,T=>{T.detail===0&&n()}),g={blur:v,click:m,focus:h,mousedown:p,mouseenter:c,mouseleave:d},y=(T,b,_)=>{T&&Object.entries(b).forEach(([w,S])=>{T[_](w,S)})};return Ie(i,(T,b)=>{y(T,g,"addEventListener"),y(b,g,"removeEventListener"),T&&T.setAttribute("aria-describedby",o.value)}),fn(()=>{y(i.value,g,"removeEventListener"),document.removeEventListener("mouseup",u)}),(T,b)=>T.nowrap?(x(),he(f(Yle),{key:0,"set-ref":l,"only-child":""},{default:P(()=>[fe(T.$slots,"default")]),_:3})):(x(),U("button",Ft({key:1,ref_key:"triggerRef",ref:i},T.$attrs),[fe(T.$slots,"default")],16))}});var Jle=He(Qle,[["__file","trigger.vue"]]);const Zle=J({name:"ElTooltipV2"}),eue=J({...Zle,props:Zse,setup(e){const n=mr(e),r=Ct(hi(n,Object.keys(T2))),a=Ct(hi(n,Object.keys(w2))),i=Ct(hi(n,Object.keys(S2))),o=Ct(hi(n,Object.keys(C2)));return(s,l)=>(x(),he(nle,Ra(to(i)),{default:P(({open:u})=>[E(Jle,Ft(o,{nowrap:""}),{default:P(()=>[fe(s.$slots,"trigger")]),_:3},16),E(f(Lc),{to:s.to,disabled:!s.teleported},{default:P(()=>[s.fullTransition?(x(),he(lr,Ra(Ft({key:0},s.transitionProps)),{default:P(()=>[s.alwaysOn||u?(x(),he(WE,Ra(Ft({key:0},a)),{arrow:P(({style:c,side:d})=>[s.showArrow?(x(),he(VE,Ft({key:0},r,{style:c,side:d}),null,16,["style","side"])):oe("v-if",!0)]),default:P(()=>[fe(s.$slots,"default")]),_:3},16)):oe("v-if",!0)]),_:2},1040)):(x(),U(Ge,{key:1},[s.alwaysOn||u?(x(),he(WE,Ra(Ft({key:0},a)),{arrow:P(({style:c,side:d})=>[s.showArrow?(x(),he(VE,Ft({key:0},r,{style:c,side:d}),null,16,["style","side"])):oe("v-if",!0)]),default:P(()=>[fe(s.$slots,"default")]),_:3},16)):oe("v-if",!0)],64))]),_:2},1032,["to","disabled"])]),_:3},16))}});var tue=He(eue,[["__file","tooltip.vue"]]);const nue=Et(tue),E4="left-check-change",x4="right-check-change",wu=Ue({data:{type:ue(Array),default:()=>[]},titles:{type:ue(Array),default:()=>[]},buttonTexts:{type:ue(Array),default:()=>[]},filterPlaceholder:String,filterMethod:{type:ue(Function)},leftDefaultChecked:{type:ue(Array),default:()=>[]},rightDefaultChecked:{type:ue(Array),default:()=>[]},renderContent:{type:ue(Function)},modelValue:{type:ue(Array),default:()=>[]},format:{type:ue(Object),default:()=>({})},filterable:Boolean,props:{type:ue(Object),default:()=>Pn({label:"label",key:"key",disabled:"disabled"})},targetOrder:{type:String,values:["original","push","unshift"],default:"original"},validateEvent:{type:Boolean,default:!0}}),_b=(e,t)=>[e,t].every(Be)||Be(e)&&sr(t),rue={[$t]:(e,t,n)=>[e,n].every(Be)&&["left","right"].includes(t),[_t]:e=>Be(e),[E4]:_b,[x4]:_b},Tb="checked-change",aue=Ue({data:wu.data,optionRender:{type:ue(Function)},placeholder:String,title:String,filterable:Boolean,format:wu.format,filterMethod:wu.filterMethod,defaultChecked:wu.leftDefaultChecked,props:wu.props}),iue={[Tb]:_b},wp=e=>{const t={label:"label",key:"key",disabled:"disabled"};return k(()=>({...t,...e.props}))},oue=(e,t,n)=>{const r=wp(e),a=k(()=>e.data.filter(c=>ot(e.filterMethod)?e.filterMethod(t.query,c):String(c[r.value.label]||c[r.value.key]).toLowerCase().includes(t.query.toLowerCase()))),i=k(()=>a.value.filter(c=>!c[r.value.disabled])),o=k(()=>{const c=t.checked.length,d=e.data.length,{noChecked:p,hasChecked:h}=e.format;return p&&h?c>0?h.replace(/\${checked}/g,c.toString()).replace(/\${total}/g,d.toString()):p.replace(/\${total}/g,d.toString()):`${c}/${d}`}),s=k(()=>{const c=t.checked.length;return c>0&&c<i.value.length}),l=()=>{const c=i.value.map(d=>d[r.value.key]);t.allChecked=c.length>0&&c.every(d=>t.checked.includes(d))},u=c=>{t.checked=c?i.value.map(d=>d[r.value.key]):[]};return Ie(()=>t.checked,(c,d)=>{if(l(),t.checkChangeByUser){const p=c.concat(d).filter(h=>!c.includes(h)||!d.includes(h));n(Tb,c,p)}else n(Tb,c),t.checkChangeByUser=!0}),Ie(i,()=>{l()}),Ie(()=>e.data,()=>{const c=[],d=a.value.map(p=>p[r.value.key]);t.checked.forEach(p=>{d.includes(p)&&c.push(p)}),t.checkChangeByUser=!1,t.checked=c}),Ie(()=>e.defaultChecked,(c,d)=>{if(d&&c.length===d.length&&c.every(v=>d.includes(v)))return;const p=[],h=i.value.map(v=>v[r.value.key]);c.forEach(v=>{h.includes(v)&&p.push(v)}),t.checkChangeByUser=!1,t.checked=p},{immediate:!0}),{filteredData:a,checkableData:i,checkedSummary:o,isIndeterminate:s,updateAllChecked:l,handleAllCheckedChange:u}},sue=J({name:"ElTransferPanel"}),lue=J({...sue,props:aue,emits:iue,setup(e,{expose:t,emit:n}){const r=e,a=ir(),i=({option:b})=>b,{t:o}=Kt(),s=Le("transfer"),l=Ct({checked:[],allChecked:!1,query:"",checkChangeByUser:!0}),u=wp(r),{filteredData:c,checkedSummary:d,isIndeterminate:p,handleAllCheckedChange:h}=oue(r,l,n),v=k(()=>!Oa(l.query)&&Oa(c.value)),m=k(()=>!Oa(a.default()[0].children)),{checked:g,allChecked:y,query:T}=mr(l);return t({query:T}),(b,_)=>(x(),U("div",{class:F(f(s).b("panel"))},[M("p",{class:F(f(s).be("panel","header"))},[E(f(ri),{modelValue:f(y),"onUpdate:modelValue":w=>yn(y)?y.value=w:null,indeterminate:f(p),"validate-event":!1,onChange:f(h)},{default:P(()=>[we(de(b.title)+" ",1),M("span",null,de(f(d)),1)]),_:1},8,["modelValue","onUpdate:modelValue","indeterminate","onChange"])],2),M("div",{class:F([f(s).be("panel","body"),f(s).is("with-footer",f(m))])},[b.filterable?(x(),he(f(Wn),{key:0,modelValue:f(T),"onUpdate:modelValue":w=>yn(T)?T.value=w:null,class:F(f(s).be("panel","filter")),size:"default",placeholder:b.placeholder,"prefix-icon":f(Tf),clearable:"","validate-event":!1},null,8,["modelValue","onUpdate:modelValue","class","placeholder","prefix-icon"])):oe("v-if",!0),gt(E(f(jP),{modelValue:f(g),"onUpdate:modelValue":w=>yn(g)?g.value=w:null,"validate-event":!1,class:F([f(s).is("filterable",b.filterable),f(s).be("panel","list")])},{default:P(()=>[(x(!0),U(Ge,null,mt(f(c),w=>(x(),he(f(ri),{key:w[f(u).key],class:F(f(s).be("panel","item")),value:w[f(u).key],disabled:w[f(u).disabled],"validate-event":!1},{default:P(()=>{var S;return[E(i,{option:(S=b.optionRender)==null?void 0:S.call(b,w)},null,8,["option"])]}),_:2},1032,["class","value","disabled"]))),128))]),_:1},8,["modelValue","onUpdate:modelValue","class"]),[[zt,!f(v)&&!f(Oa)(b.data)]]),gt(M("div",{class:F(f(s).be("panel","empty"))},[fe(b.$slots,"empty",{},()=>[we(de(f(v)?f(o)("el.transfer.noMatch"):f(o)("el.transfer.noData")),1)])],2),[[zt,f(v)||f(Oa)(b.data)]])],2),f(m)?(x(),U("p",{key:0,class:F(f(s).be("panel","footer"))},[fe(b.$slots,"default")],2)):oe("v-if",!0)],2))}});var KE=He(lue,[["__file","transfer-panel.vue"]]);const uue=e=>{const t=wp(e),n=k(()=>e.data.reduce((i,o)=>(i[o[t.value.key]]=o)&&i,{})),r=k(()=>e.data.filter(i=>!e.modelValue.includes(i[t.value.key]))),a=k(()=>e.targetOrder==="original"?e.data.filter(i=>e.modelValue.includes(i[t.value.key])):e.modelValue.reduce((i,o)=>{const s=n.value[o];return s&&i.push(s),i},[]));return{sourceData:r,targetData:a}},cue=(e,t,n)=>{const r=wp(e),a=(s,l,u)=>{n(_t,s),n($t,s,l,u)};return{addToLeft:()=>{const s=e.modelValue.slice();t.rightChecked.forEach(l=>{const u=s.indexOf(l);u>-1&&s.splice(u,1)}),a(s,"left",t.rightChecked)},addToRight:()=>{let s=e.modelValue.slice();const l=e.data.filter(u=>{const c=u[r.value.key];return t.leftChecked.includes(c)&&!e.modelValue.includes(c)}).map(u=>u[r.value.key]);s=e.targetOrder==="unshift"?l.concat(s):s.concat(l),e.targetOrder==="original"&&(s=e.data.filter(u=>s.includes(u[r.value.key])).map(u=>u[r.value.key])),a(s,"right",t.leftChecked)}}},due=(e,t)=>({onSourceCheckedChange:(a,i)=>{e.leftChecked=a,i&&t(E4,a,i)},onTargetCheckedChange:(a,i)=>{e.rightChecked=a,i&&t(x4,a,i)}}),fue=J({name:"ElTransfer"}),pue=J({...fue,props:wu,emits:rue,setup(e,{expose:t,emit:n}){const r=e,a=ir(),{t:i}=Kt(),o=Le("transfer"),{formItem:s}=Or(),l=Ct({leftChecked:[],rightChecked:[]}),u=wp(r),{sourceData:c,targetData:d}=uue(r),{onSourceCheckedChange:p,onTargetCheckedChange:h}=due(l,n),{addToLeft:v,addToRight:m}=cue(r,l,n),g=z(),y=z(),T=I=>{switch(I){case"left":g.value.query="";break;case"right":y.value.query="";break}},b=k(()=>r.buttonTexts.length===2),_=k(()=>r.titles[0]||i("el.transfer.titles.0")),w=k(()=>r.titles[1]||i("el.transfer.titles.1")),S=k(()=>r.filterPlaceholder||i("el.transfer.filterPlaceholder"));Ie(()=>r.modelValue,()=>{var I;r.validateEvent&&((I=s==null?void 0:s.validate)==null||I.call(s,"change").catch(D=>void 0))});const A=k(()=>I=>{var D;if(r.renderContent)return r.renderContent(lt,I);const O=(((D=a.default)==null?void 0:D.call(a,{option:I}))||[]).filter(V=>V.type!==fr);return O.length?O:lt("span",I[u.value.label]||I[u.value.key])});return t({clearQuery:T,leftPanel:g,rightPanel:y}),(I,D)=>(x(),U("div",{class:F(f(o).b())},[E(KE,{ref_key:"leftPanel",ref:g,data:f(c),"option-render":f(A),placeholder:f(S),title:f(_),filterable:I.filterable,format:I.format,"filter-method":I.filterMethod,"default-checked":I.leftDefaultChecked,props:r.props,onCheckedChange:f(p)},{empty:P(()=>[fe(I.$slots,"left-empty")]),default:P(()=>[fe(I.$slots,"left-footer")]),_:3},8,["data","option-render","placeholder","title","filterable","format","filter-method","default-checked","props","onCheckedChange"]),M("div",{class:F(f(o).e("buttons"))},[E(f(_n),{type:"primary",class:F([f(o).e("button"),f(o).is("with-texts",f(b))]),disabled:f(Oa)(l.rightChecked),onClick:f(v)},{default:P(()=>[E(f(et),null,{default:P(()=>[E(f(Ms))]),_:1}),f(Xt)(I.buttonTexts[0])?oe("v-if",!0):(x(),U("span",{key:0},de(I.buttonTexts[0]),1))]),_:1},8,["class","disabled","onClick"]),E(f(_n),{type:"primary",class:F([f(o).e("button"),f(o).is("with-texts",f(b))]),disabled:f(Oa)(l.leftChecked),onClick:f(m)},{default:P(()=>[f(Xt)(I.buttonTexts[1])?oe("v-if",!0):(x(),U("span",{key:0},de(I.buttonTexts[1]),1)),E(f(et),null,{default:P(()=>[E(f(sa))]),_:1})]),_:1},8,["class","disabled","onClick"])],2),E(KE,{ref_key:"rightPanel",ref:y,data:f(d),"option-render":f(A),placeholder:f(S),filterable:I.filterable,format:I.format,"filter-method":I.filterMethod,title:f(w),"default-checked":I.rightDefaultChecked,props:r.props,onCheckedChange:f(h)},{empty:P(()=>[fe(I.$slots,"right-empty")]),default:P(()=>[fe(I.$slots,"right-footer")]),_:3},8,["data","option-render","placeholder","filterable","format","filter-method","title","default-checked","props","onCheckedChange"])],2))}});var hue=He(pue,[["__file","transfer.vue"]]);const mue=Et(hue),Hu="$treeNodeId",qE=function(e,t){!t||t[Hu]||Object.defineProperty(t,Hu,{value:e.id,enumerable:!1,configurable:!1,writable:!1})},O2=(e,t)=>t==null?void 0:t[e||Hu],wb=(e,t,n)=>{const r=e.value.currentNode;n();const a=e.value.currentNode;r!==a&&t("current-change",a?a.data:null,a)},Sb=e=>{let t=!0,n=!0,r=!0;for(let a=0,i=e.length;a<i;a++){const o=e[a];(o.checked!==!0||o.indeterminate)&&(t=!1,o.disabled||(r=!1)),(o.checked!==!1||o.indeterminate)&&(n=!1)}return{all:t,none:n,allWithoutDisable:r,half:!t&&!n}},kd=function(e){if(e.childNodes.length===0||e.loading)return;const{all:t,none:n,half:r}=Sb(e.childNodes);t?(e.checked=!0,e.indeterminate=!1):r?(e.checked=!1,e.indeterminate=!0):n&&(e.checked=!1,e.indeterminate=!1);const a=e.parent;!a||a.level===0||e.store.checkStrictly||kd(a)},hh=function(e,t){const n=e.store.props,r=e.data||{},a=n[t];if(ot(a))return a(r,e);if(rt(a))return r[a];if(Xt(a)){const i=r[t];return i===void 0?"":i}};let vue=0,Cb=class Wh{constructor(t){this.id=vue++,this.text=null,this.checked=!1,this.indeterminate=!1,this.data=null,this.expanded=!1,this.parent=null,this.visible=!0,this.isCurrent=!1,this.canFocus=!1;for(const n in t)Yt(t,n)&&(this[n]=t[n]);this.level=0,this.loaded=!1,this.childNodes=[],this.loading=!1,this.parent&&(this.level=this.parent.level+1)}initialize(){const t=this.store;if(!t)throw new Error("[Node]store is required!");t.registerNode(this);const n=t.props;if(n&&typeof n.isLeaf<"u"){const i=hh(this,"isLeaf");pn(i)&&(this.isLeafByUser=i)}if(t.lazy!==!0&&this.data?(this.setData(this.data),t.defaultExpandAll&&(this.expanded=!0,this.canFocus=!0)):this.level>0&&t.lazy&&t.defaultExpandAll&&!this.isLeafByUser&&this.expand(),Be(this.data)||qE(this,this.data),!this.data)return;const r=t.defaultExpandedKeys,a=t.key;a&&r&&r.includes(this.key)&&this.expand(null,t.autoExpandParent),a&&t.currentNodeKey!==void 0&&this.key===t.currentNodeKey&&(t.currentNode=this,t.currentNode.isCurrent=!0),t.lazy&&t._initDefaultCheckedNode(this),this.updateLeafState(),this.parent&&(this.level===1||this.parent.expanded===!0)&&(this.canFocus=!0)}setData(t){Be(t)||qE(this,t),this.data=t,this.childNodes=[];let n;this.level===0&&Be(this.data)?n=this.data:n=hh(this,"children")||[];for(let r=0,a=n.length;r<a;r++)this.insertChild({data:n[r]})}get label(){return hh(this,"label")}get key(){const t=this.store.key;return this.data?this.data[t]:null}get disabled(){return hh(this,"disabled")}get nextSibling(){const t=this.parent;if(t){const n=t.childNodes.indexOf(this);if(n>-1)return t.childNodes[n+1]}return null}get previousSibling(){const t=this.parent;if(t){const n=t.childNodes.indexOf(this);if(n>-1)return n>0?t.childNodes[n-1]:null}return null}contains(t,n=!0){return(this.childNodes||[]).some(r=>r===t||n&&r.contains(t))}remove(){const t=this.parent;t&&t.removeChild(this)}insertChild(t,n,r){if(!t)throw new Error("InsertChild error: child is required.");if(!(t instanceof Wh)){if(!r){const a=this.getChildren(!0);a.includes(t.data)||(Xt(n)||n<0?a.push(t.data):a.splice(n,0,t.data))}Object.assign(t,{parent:this,store:this.store}),t=Ct(new Wh(t)),t instanceof Wh&&t.initialize()}t.level=this.level+1,Xt(n)||n<0?this.childNodes.push(t):this.childNodes.splice(n,0,t),this.updateLeafState()}insertBefore(t,n){let r;n&&(r=this.childNodes.indexOf(n)),this.insertChild(t,r)}insertAfter(t,n){let r;n&&(r=this.childNodes.indexOf(n),r!==-1&&(r+=1)),this.insertChild(t,r)}removeChild(t){const n=this.getChildren()||[],r=n.indexOf(t.data);r>-1&&n.splice(r,1);const a=this.childNodes.indexOf(t);a>-1&&(this.store&&this.store.deregisterNode(t),t.parent=null,this.childNodes.splice(a,1)),this.updateLeafState()}removeChildByData(t){let n=null;for(let r=0;r<this.childNodes.length;r++)if(this.childNodes[r].data===t){n=this.childNodes[r];break}n&&this.removeChild(n)}expand(t,n){const r=()=>{if(n){let a=this.parent;for(;a.level>0;)a.expanded=!0,a=a.parent}this.expanded=!0,t&&t(),this.childNodes.forEach(a=>{a.canFocus=!0})};this.shouldLoadData()?this.loadData(a=>{Be(a)&&(this.checked?this.setChecked(!0,!0):this.store.checkStrictly||kd(this),r())}):r()}doCreateChildren(t,n={}){t.forEach(r=>{this.insertChild(Object.assign({data:r},n),void 0,!0)})}collapse(){this.expanded=!1,this.childNodes.forEach(t=>{t.canFocus=!1})}shouldLoadData(){return this.store.lazy===!0&&this.store.load&&!this.loaded}updateLeafState(){if(this.store.lazy===!0&&this.loaded!==!0&&typeof this.isLeafByUser<"u"){this.isLeaf=this.isLeafByUser;return}const t=this.childNodes;if(!this.store.lazy||this.store.lazy===!0&&this.loaded===!0){this.isLeaf=!t||t.length===0;return}this.isLeaf=!1}setChecked(t,n,r,a){if(this.indeterminate=t==="half",this.checked=t===!0,this.store.checkStrictly)return;if(!(this.shouldLoadData()&&!this.store.checkDescendants)){const{all:o,allWithoutDisable:s}=Sb(this.childNodes);!this.isLeaf&&!o&&s&&(this.checked=!1,t=!1);const l=()=>{if(n){const u=this.childNodes;for(let p=0,h=u.length;p<h;p++){const v=u[p];a=a||t!==!1;const m=v.disabled?v.checked:a;v.setChecked(m,n,!0,a)}const{half:c,all:d}=Sb(u);d||(this.checked=d,this.indeterminate=c)}};if(this.shouldLoadData()){this.loadData(()=>{l(),kd(this)},{checked:t!==!1});return}else l()}const i=this.parent;!i||i.level===0||r||kd(i)}getChildren(t=!1){if(this.level===0)return this.data;const n=this.data;if(!n)return null;const r=this.store.props;let a="children";return r&&(a=r.children||"children"),n[a]===void 0&&(n[a]=null),t&&!n[a]&&(n[a]=[]),n[a]}updateChildren(){const t=this.getChildren()||[],n=this.childNodes.map(i=>i.data),r={},a=[];t.forEach((i,o)=>{const s=i[Hu];!!s&&n.findIndex(u=>u[Hu]===s)>=0?r[s]={index:o,data:i}:a.push({index:o,data:i})}),this.store.lazy||n.forEach(i=>{r[i[Hu]]||this.removeChildByData(i)}),a.forEach(({index:i,data:o})=>{this.insertChild({data:o},i)}),this.updateLeafState()}loadData(t,n={}){if(this.store.lazy===!0&&this.store.load&&!this.loaded&&(!this.loading||Object.keys(n).length)){this.loading=!0;const r=i=>{this.childNodes=[],this.doCreateChildren(i,n),this.loaded=!0,this.loading=!1,this.updateLeafState(),t&&t.call(this,i)},a=()=>{this.loading=!1};this.store.load(this,r,a)}else t&&t.call(this)}eachNode(t){const n=[this];for(;n.length;){const r=n.shift();n.unshift(...r.childNodes),t(r)}}reInitChecked(){this.store.checkStrictly||kd(this)}};class gue{constructor(t){this.currentNode=null,this.currentNodeKey=null;for(const n in t)Yt(t,n)&&(this[n]=t[n]);this.nodesMap={}}initialize(){if(this.root=new Cb({data:this.data,store:this}),this.root.initialize(),this.lazy&&this.load){const t=this.load;t(this.root,n=>{this.root.doCreateChildren(n),this._initDefaultCheckedNodes()})}else this._initDefaultCheckedNodes()}filter(t){const n=this.filterNodeMethod,r=this.lazy,a=async function(i){const o=i.root?i.root.childNodes:i.childNodes;for(const[s,l]of o.entries())l.visible=n.call(l,t,l.data,l),s%80===0&&s>0&&await it(),a(l);if(!i.visible&&o.length){let s=!0;s=!o.some(l=>l.visible),i.root?i.root.visible=s===!1:i.visible=s===!1}t&&i.visible&&!i.isLeaf&&(!r||i.loaded)&&i.expand()};a(this)}setData(t){t!==this.root.data?(this.nodesMap={},this.root.setData(t),this._initDefaultCheckedNodes(),this.setCurrentNodeKey(this.currentNodeKey)):this.root.updateChildren()}getNode(t){if(t instanceof Cb)return t;const n=It(t)?O2(this.key,t):t;return this.nodesMap[n]||null}insertBefore(t,n){const r=this.getNode(n);r.parent.insertBefore({data:t},r)}insertAfter(t,n){const r=this.getNode(n);r.parent.insertAfter({data:t},r)}remove(t){const n=this.getNode(t);n&&n.parent&&(n===this.currentNode&&(this.currentNode=null),n.parent.removeChild(n))}append(t,n){const r=yi(n)?this.root:this.getNode(n);r&&r.insertChild({data:t})}_initDefaultCheckedNodes(){const t=this.defaultCheckedKeys||[],n=this.nodesMap;t.forEach(r=>{const a=n[r];a&&a.setChecked(!0,!this.checkStrictly)})}_initDefaultCheckedNode(t){(this.defaultCheckedKeys||[]).includes(t.key)&&t.setChecked(!0,!this.checkStrictly)}setDefaultCheckedKey(t){t!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=t,this._initDefaultCheckedNodes())}registerNode(t){const n=this.key;!t||!t.data||(n?t.key!==void 0&&(this.nodesMap[t.key]=t):this.nodesMap[t.id]=t)}deregisterNode(t){!this.key||!t||!t.data||(t.childNodes.forEach(r=>{this.deregisterNode(r)}),delete this.nodesMap[t.key])}getCheckedNodes(t=!1,n=!1){const r=[],a=function(i){(i.root?i.root.childNodes:i.childNodes).forEach(s=>{(s.checked||n&&s.indeterminate)&&(!t||t&&s.isLeaf)&&r.push(s.data),a(s)})};return a(this),r}getCheckedKeys(t=!1){return this.getCheckedNodes(t).map(n=>(n||{})[this.key])}getHalfCheckedNodes(){const t=[],n=function(r){(r.root?r.root.childNodes:r.childNodes).forEach(i=>{i.indeterminate&&t.push(i.data),n(i)})};return n(this),t}getHalfCheckedKeys(){return this.getHalfCheckedNodes().map(t=>(t||{})[this.key])}_getAllNodes(){const t=[],n=this.nodesMap;for(const r in n)Yt(n,r)&&t.push(n[r]);return t}updateChildren(t,n){const r=this.nodesMap[t];if(!r)return;const a=r.childNodes;for(let i=a.length-1;i>=0;i--){const o=a[i];this.remove(o.data)}for(let i=0,o=n.length;i<o;i++){const s=n[i];this.append(s,r.data)}}_setCheckedKeys(t,n=!1,r){const a=this._getAllNodes().sort((l,u)=>l.level-u.level),i=Object.create(null),o=Object.keys(r);a.forEach(l=>l.setChecked(!1,!1));const s=l=>{l.childNodes.forEach(u=>{var c;i[u.data[t]]=!0,(c=u.childNodes)!=null&&c.length&&s(u)})};for(let l=0,u=a.length;l<u;l++){const c=a[l],d=c.data[t].toString();if(!o.includes(d)){c.checked&&!i[d]&&c.setChecked(!1,!1);continue}if(c.childNodes.length&&s(c),c.isLeaf||this.checkStrictly){c.setChecked(!0,!1);continue}if(c.setChecked(!0,!0),n){c.setChecked(!1,!1);const h=function(v){v.childNodes.forEach(g=>{g.isLeaf||g.setChecked(!1,!1),h(g)})};h(c)}}}setCheckedNodes(t,n=!1){const r=this.key,a={};t.forEach(i=>{a[(i||{})[r]]=!0}),this._setCheckedKeys(r,n,a)}setCheckedKeys(t,n=!1){this.defaultCheckedKeys=t;const r=this.key,a={};t.forEach(i=>{a[i]=!0}),this._setCheckedKeys(r,n,a)}setDefaultExpandedKeys(t){t=t||[],this.defaultExpandedKeys=t,t.forEach(n=>{const r=this.getNode(n);r&&r.expand(null,this.autoExpandParent)})}setChecked(t,n,r){const a=this.getNode(t);a&&a.setChecked(!!n,r)}getCurrentNode(){return this.currentNode}setCurrentNode(t){const n=this.currentNode;n&&(n.isCurrent=!1),this.currentNode=t,this.currentNode.isCurrent=!0}setUserCurrentNode(t,n=!0){const r=t[this.key],a=this.nodesMap[r];this.setCurrentNode(a),n&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0)}setCurrentNodeKey(t,n=!0){if(this.currentNodeKey=t,t==null){this.currentNode&&(this.currentNode.isCurrent=!1),this.currentNode=null;return}const r=this.getNode(t);r&&(this.setCurrentNode(r),n&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0))}}const yue=J({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup(e){const t=Le("tree"),n=Qe("NodeInstance"),r=Qe("RootTree");return()=>{const a=e.node,{data:i,store:o}=a;return e.renderContent?e.renderContent(lt,{_self:n,node:a,data:i,store:o}):fe(r.ctx.slots,"default",{node:a,data:i},()=>[lt("span",{class:t.be("node","label")},[a.label])])}}});var bue=He(yue,[["__file","tree-node-content.vue"]]);function k4(e){const t=Qe("TreeNodeMap",null),n={treeNodeExpand:r=>{e.node!==r&&e.node.collapse()},children:[]};return t&&t.children.push(n),Vt("TreeNodeMap",n),{broadcastExpanded:r=>{if(e.accordion)for(const a of n.children)a.treeNodeExpand(r)}}}const A4=Symbol("dragEvents");function _ue({props:e,ctx:t,el$:n,dropIndicator$:r,store:a}){const i=Le("tree"),o=z({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null});return Vt(A4,{treeNodeDragStart:({event:c,treeNode:d})=>{if(ot(e.allowDrag)&&!e.allowDrag(d.node))return c.preventDefault(),!1;c.dataTransfer.effectAllowed="move";try{c.dataTransfer.setData("text/plain","")}catch{}o.value.draggingNode=d,t.emit("node-drag-start",d.node,c)},treeNodeDragOver:({event:c,treeNode:d})=>{const p=d,h=o.value.dropNode;h&&h.node.id!==p.node.id&&Ur(h.$el,i.is("drop-inner"));const v=o.value.draggingNode;if(!v||!p)return;let m=!0,g=!0,y=!0,T=!0;ot(e.allowDrop)&&(m=e.allowDrop(v.node,p.node,"prev"),T=g=e.allowDrop(v.node,p.node,"inner"),y=e.allowDrop(v.node,p.node,"next")),c.dataTransfer.dropEffect=g||m||y?"move":"none",(m||g||y)&&(h==null?void 0:h.node.id)!==p.node.id&&(h&&t.emit("node-drag-leave",v.node,h.node,c),t.emit("node-drag-enter",v.node,p.node,c)),m||g||y?o.value.dropNode=p:o.value.dropNode=null,p.node.nextSibling===v.node&&(y=!1),p.node.previousSibling===v.node&&(m=!1),p.node.contains(v.node,!1)&&(g=!1),(v.node===p.node||v.node.contains(p.node))&&(m=!1,g=!1,y=!1);const b=p.$el.querySelector(`.${i.be("node","content")}`).getBoundingClientRect(),_=n.value.getBoundingClientRect();let w;const S=m?g?.25:y?.45:1:-1,A=y?g?.75:m?.55:0:1;let I=-9999;const D=c.clientY-b.top;D<b.height*S?w="before":D>b.height*A?w="after":g?w="inner":w="none";const O=p.$el.querySelector(`.${i.be("node","expand-icon")}`).getBoundingClientRect(),V=r.value;w==="before"?I=O.top-_.top:w==="after"&&(I=O.bottom-_.top),V.style.top=`${I}px`,V.style.left=`${O.right-_.left}px`,w==="inner"?Ga(p.$el,i.is("drop-inner")):Ur(p.$el,i.is("drop-inner")),o.value.showDropIndicator=w==="before"||w==="after",o.value.allowDrop=o.value.showDropIndicator||T,o.value.dropType=w,t.emit("node-drag-over",v.node,p.node,c)},treeNodeDragEnd:c=>{const{draggingNode:d,dropType:p,dropNode:h}=o.value;if(c.preventDefault(),c.dataTransfer&&(c.dataTransfer.dropEffect="move"),d&&h){const v={data:d.node.data};p!=="none"&&d.node.remove(),p==="before"?h.node.parent.insertBefore(v,h.node):p==="after"?h.node.parent.insertAfter(v,h.node):p==="inner"&&h.node.insertChild(v),p!=="none"&&(a.value.registerNode(v),a.value.key&&d.node.eachNode(m=>{var g;(g=a.value.nodesMap[m.data[a.value.key]])==null||g.setChecked(m.checked,!a.value.checkStrictly)})),Ur(h.$el,i.is("drop-inner")),t.emit("node-drag-end",d.node,h.node,p,c),p!=="none"&&t.emit("node-drop",d.node,h.node,p,c)}d&&!h&&t.emit("node-drag-end",d.node,null,p,c),o.value.showDropIndicator=!1,o.value.draggingNode=null,o.value.dropNode=null,o.value.allowDrop=!0}}),{dragState:o}}const Tue=J({name:"ElTreeNode",components:{ElCollapseTransition:hp,ElCheckbox:ri,NodeContent:bue,ElIcon:et,Loading:ao},props:{node:{type:Cb,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:{type:Boolean,default:!1}},emits:["node-expand"],setup(e,t){const n=Le("tree"),{broadcastExpanded:r}=k4(e),a=Qe("RootTree"),i=z(!1),o=z(!1),s=z(),l=z(),u=z(),c=Qe(A4),d=Mt();Vt("NodeInstance",d),e.node.expanded&&(i.value=!0,o.value=!0);const p=a.props.props.children||"children";Ie(()=>{var D;const O=(D=e.node.data)==null?void 0:D[p];return O&&[...O]},()=>{e.node.updateChildren()}),Ie(()=>e.node.indeterminate,D=>{m(e.node.checked,D)}),Ie(()=>e.node.checked,D=>{m(D,e.node.indeterminate)}),Ie(()=>e.node.childNodes.length,()=>e.node.reInitChecked()),Ie(()=>e.node.expanded,D=>{it(()=>i.value=D),D&&(o.value=!0)});const h=D=>O2(a.props.nodeKey,D.data),v=D=>{const O=e.props.class;if(!O)return{};let V;if(ot(O)){const{data:N}=D;V=O(N,D)}else V=O;return rt(V)?{[V]:!0}:V},m=(D,O)=>{(s.value!==D||l.value!==O)&&a.ctx.emit("check-change",e.node.data,D,O),s.value=D,l.value=O},g=D=>{wb(a.store,a.ctx.emit,()=>{var O;if((O=a==null?void 0:a.props)==null?void 0:O.nodeKey){const N=h(e.node);a.store.value.setCurrentNodeKey(N)}else a.store.value.setCurrentNode(e.node)}),a.currentNode.value=e.node,a.props.expandOnClickNode&&T(),(a.props.checkOnClickNode||e.node.isLeaf&&a.props.checkOnClickLeaf)&&!e.node.disabled&&b(!e.node.checked),a.ctx.emit("node-click",e.node.data,e.node,d,D)},y=D=>{var O;(O=a.instance.vnode.props)!=null&&O.onNodeContextmenu&&(D.stopPropagation(),D.preventDefault()),a.ctx.emit("node-contextmenu",D,e.node.data,e.node,d)},T=()=>{e.node.isLeaf||(i.value?(a.ctx.emit("node-collapse",e.node.data,e.node,d),e.node.collapse()):e.node.expand(()=>{t.emit("node-expand",e.node.data,e.node,d)}))},b=D=>{e.node.setChecked(D,!(a!=null&&a.props.checkStrictly)),it(()=>{const O=a.store.value;a.ctx.emit("check",e.node.data,{checkedNodes:O.getCheckedNodes(),checkedKeys:O.getCheckedKeys(),halfCheckedNodes:O.getHalfCheckedNodes(),halfCheckedKeys:O.getHalfCheckedKeys()})})};return{ns:n,node$:u,tree:a,expanded:i,childNodeRendered:o,oldChecked:s,oldIndeterminate:l,getNodeKey:h,getNodeClass:v,handleSelectChange:m,handleClick:g,handleContextMenu:y,handleExpandIconClick:T,handleCheckChange:b,handleChildNodeExpand:(D,O,V)=>{r(O),a.ctx.emit("node-expand",D,O,V)},handleDragStart:D=>{a.props.draggable&&c.treeNodeDragStart({event:D,treeNode:e})},handleDragOver:D=>{D.preventDefault(),a.props.draggable&&c.treeNodeDragOver({event:D,treeNode:{$el:u.value,node:e.node}})},handleDrop:D=>{D.preventDefault()},handleDragEnd:D=>{a.props.draggable&&c.treeNodeDragEnd(D)},CaretRight:Fv}}});function wue(e,t,n,r,a,i){const o=Rt("el-icon"),s=Rt("el-checkbox"),l=Rt("loading"),u=Rt("node-content"),c=Rt("el-tree-node"),d=Rt("el-collapse-transition");return gt((x(),U("div",{ref:"node$",class:F([e.ns.b("node"),e.ns.is("expanded",e.expanded),e.ns.is("current",e.node.isCurrent),e.ns.is("hidden",!e.node.visible),e.ns.is("focusable",!e.node.disabled),e.ns.is("checked",!e.node.disabled&&e.node.checked),e.getNodeClass(e.node)]),role:"treeitem",tabindex:"-1","aria-expanded":e.expanded,"aria-disabled":e.node.disabled,"aria-checked":e.node.checked,draggable:e.tree.props.draggable,"data-key":e.getNodeKey(e.node),onClick:ft(e.handleClick,["stop"]),onContextmenu:e.handleContextMenu,onDragstart:ft(e.handleDragStart,["stop"]),onDragover:ft(e.handleDragOver,["stop"]),onDragend:ft(e.handleDragEnd,["stop"]),onDrop:ft(e.handleDrop,["stop"])},[M("div",{class:F(e.ns.be("node","content")),style:tt({paddingLeft:(e.node.level-1)*e.tree.props.indent+"px"})},[e.tree.props.icon||e.CaretRight?(x(),he(o,{key:0,class:F([e.ns.be("node","expand-icon"),e.ns.is("leaf",e.node.isLeaf),{expanded:!e.node.isLeaf&&e.expanded}]),onClick:ft(e.handleExpandIconClick,["stop"])},{default:P(()=>[(x(),he(Lt(e.tree.props.icon||e.CaretRight)))]),_:1},8,["class","onClick"])):oe("v-if",!0),e.showCheckbox?(x(),he(s,{key:1,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:!!e.node.disabled,onClick:ft(()=>{},["stop"]),onChange:e.handleCheckChange},null,8,["model-value","indeterminate","disabled","onClick","onChange"])):oe("v-if",!0),e.node.loading?(x(),he(o,{key:2,class:F([e.ns.be("node","loading-icon"),e.ns.is("loading")])},{default:P(()=>[E(l)]),_:1},8,["class"])):oe("v-if",!0),E(u,{node:e.node,"render-content":e.renderContent},null,8,["node","render-content"])],6),E(d,null,{default:P(()=>[!e.renderAfterExpand||e.childNodeRendered?gt((x(),U("div",{key:0,class:F(e.ns.be("node","children")),role:"group","aria-expanded":e.expanded},[(x(!0),U(Ge,null,mt(e.node.childNodes,p=>(x(),he(c,{key:e.getNodeKey(p),"render-content":e.renderContent,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,node:p,accordion:e.accordion,props:e.props,onNodeExpand:e.handleChildNodeExpand},null,8,["render-content","render-after-expand","show-checkbox","node","accordion","props","onNodeExpand"]))),128))],10,["aria-expanded"])),[[zt,e.expanded]]):oe("v-if",!0)]),_:1})],42,["aria-expanded","aria-disabled","aria-checked","draggable","data-key","onClick","onContextmenu","onDragstart","onDragover","onDragend","onDrop"])),[[zt,e.node.visible]])}var Sue=He(Tue,[["render",wue],["__file","tree-node.vue"]]);function Cue({el$:e},t){const n=Le("tree"),r=cn([]),a=cn([]);ht(()=>{o()}),Di(()=>{r.value=Array.from(e.value.querySelectorAll("[role=treeitem]")),a.value=Array.from(e.value.querySelectorAll("input[type=checkbox]"))}),Ie(a,s=>{s.forEach(l=>{l.setAttribute("tabindex","-1")})}),ln(e,"keydown",s=>{const l=s.target;if(!l.className.includes(n.b("node")))return;const u=s.code;r.value=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`));const c=r.value.indexOf(l);let d;if([Ye.up,Ye.down].includes(u)){if(s.preventDefault(),u===Ye.up){d=c===-1?0:c!==0?c-1:r.value.length-1;const h=d;for(;!t.value.getNode(r.value[d].dataset.key).canFocus;){if(d--,d===h){d=-1;break}d<0&&(d=r.value.length-1)}}else{d=c===-1?0:c<r.value.length-1?c+1:0;const h=d;for(;!t.value.getNode(r.value[d].dataset.key).canFocus;){if(d++,d===h){d=-1;break}d>=r.value.length&&(d=0)}}d!==-1&&r.value[d].focus()}[Ye.left,Ye.right].includes(u)&&(s.preventDefault(),l.click());const p=l.querySelector('[type="checkbox"]');[Ye.enter,Ye.numpadEnter,Ye.space].includes(u)&&p&&(s.preventDefault(),p.click())});const o=()=>{var s;r.value=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`)),a.value=Array.from(e.value.querySelectorAll("input[type=checkbox]"));const l=e.value.querySelectorAll(`.${n.is("checked")}[role=treeitem]`);if(l.length){l[0].setAttribute("tabindex","0");return}(s=r.value[0])==null||s.setAttribute("tabindex","0")}}const Eue=J({name:"ElTree",components:{ElTreeNode:Sue},props:{data:{type:Array,default:()=>[]},emptyText:{type:String},renderAfterExpand:{type:Boolean,default:!0},nodeKey:String,checkStrictly:Boolean,defaultExpandAll:Boolean,expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkOnClickLeaf:{type:Boolean,default:!0},checkDescendants:{type:Boolean,default:!1},autoExpandParent:{type:Boolean,default:!0},defaultCheckedKeys:Array,defaultExpandedKeys:Array,currentNodeKey:[String,Number],renderContent:Function,showCheckbox:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},allowDrag:Function,allowDrop:Function,props:{type:Object,default:()=>({children:"children",label:"label",disabled:"disabled"})},lazy:{type:Boolean,default:!1},highlightCurrent:Boolean,load:Function,filterNodeMethod:Function,accordion:Boolean,indent:{type:Number,default:18},icon:{type:dn}},emits:["check-change","current-change","node-click","node-contextmenu","node-collapse","node-expand","check","node-drag-start","node-drag-end","node-drop","node-drag-leave","node-drag-enter","node-drag-over"],setup(e,t){const{t:n}=Kt(),r=Le("tree"),a=Qe(Bc,null),i=z(new gue({key:e.nodeKey,data:e.data,lazy:e.lazy,props:e.props,load:e.load,currentNodeKey:e.currentNodeKey,checkStrictly:e.checkStrictly,checkDescendants:e.checkDescendants,defaultCheckedKeys:e.defaultCheckedKeys,defaultExpandedKeys:e.defaultExpandedKeys,autoExpandParent:e.autoExpandParent,defaultExpandAll:e.defaultExpandAll,filterNodeMethod:e.filterNodeMethod}));i.value.initialize();const o=z(i.value.root),s=z(null),l=z(null),u=z(null),{broadcastExpanded:c}=k4(e),{dragState:d}=_ue({props:e,ctx:t,el$:l,dropIndicator$:u,store:i});Cue({el$:l},i);const p=k(()=>{const{childNodes:W}=o.value,H=a?a.hasFilteredOptions!==0:!1;return(!W||W.length===0||W.every(({visible:X})=>!X))&&!H});Ie(()=>e.currentNodeKey,W=>{i.value.setCurrentNodeKey(W)}),Ie(()=>e.defaultCheckedKeys,W=>{i.value.setDefaultCheckedKey(W)}),Ie(()=>e.defaultExpandedKeys,W=>{i.value.setDefaultExpandedKeys(W)}),Ie(()=>e.data,W=>{i.value.setData(W)},{deep:!0}),Ie(()=>e.checkStrictly,W=>{i.value.checkStrictly=W});const h=W=>{if(!e.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");i.value.filter(W)},v=W=>O2(e.nodeKey,W.data),m=W=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getNodePath");const H=i.value.getNode(W);if(!H)return[];const X=[H.data];let re=H.parent;for(;re&&re!==o.value;)X.push(re.data),re=re.parent;return X.reverse()},g=(W,H)=>i.value.getCheckedNodes(W,H),y=W=>i.value.getCheckedKeys(W),T=()=>{const W=i.value.getCurrentNode();return W?W.data:null},b=()=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getCurrentKey");const W=T();return W?W[e.nodeKey]:null},_=(W,H)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedNodes");i.value.setCheckedNodes(W,H)},w=(W,H)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedKeys");i.value.setCheckedKeys(W,H)},S=(W,H,X)=>{i.value.setChecked(W,H,X)},A=()=>i.value.getHalfCheckedNodes(),I=()=>i.value.getHalfCheckedKeys(),D=(W,H=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentNode");wb(i,t.emit,()=>{c(W),i.value.setUserCurrentNode(W,H)})},O=(W,H=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentKey");wb(i,t.emit,()=>{c(),i.value.setCurrentNodeKey(W,H)})},V=W=>i.value.getNode(W),N=W=>{i.value.remove(W)},K=(W,H)=>{i.value.append(W,H)},Y=(W,H)=>{i.value.insertBefore(W,H)},q=(W,H)=>{i.value.insertAfter(W,H)},$=(W,H,X)=>{c(H),t.emit("node-expand",W,H,X)},j=(W,H)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in updateKeyChild");i.value.updateChildren(W,H)};return Vt("RootTree",{ctx:t,props:e,store:i,root:o,currentNode:s,instance:Mt()}),Vt(io,void 0),{ns:r,store:i,root:o,currentNode:s,dragState:d,el$:l,dropIndicator$:u,isEmpty:p,filter:h,getNodeKey:v,getNodePath:m,getCheckedNodes:g,getCheckedKeys:y,getCurrentNode:T,getCurrentKey:b,setCheckedNodes:_,setCheckedKeys:w,setChecked:S,getHalfCheckedNodes:A,getHalfCheckedKeys:I,setCurrentNode:D,setCurrentKey:O,t:n,getNode:V,remove:N,append:K,insertBefore:Y,insertAfter:q,handleNodeExpand:$,updateKeyChildren:j}}});function xue(e,t,n,r,a,i){const o=Rt("el-tree-node");return x(),U("div",{ref:"el$",class:F([e.ns.b(),e.ns.is("dragging",!!e.dragState.draggingNode),e.ns.is("drop-not-allow",!e.dragState.allowDrop),e.ns.is("drop-inner",e.dragState.dropType==="inner"),{[e.ns.m("highlight-current")]:e.highlightCurrent}]),role:"tree"},[(x(!0),U(Ge,null,mt(e.root.childNodes,s=>(x(),he(o,{key:e.getNodeKey(s),node:s,props:e.props,accordion:e.accordion,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,"render-content":e.renderContent,onNodeExpand:e.handleNodeExpand},null,8,["node","props","accordion","render-after-expand","show-checkbox","render-content","onNodeExpand"]))),128)),e.isEmpty?(x(),U("div",{key:0,class:F(e.ns.e("empty-block"))},[fe(e.$slots,"empty",{},()=>{var s;return[M("span",{class:F(e.ns.e("empty-text"))},de((s=e.emptyText)!=null?s:e.t("el.tree.emptyText")),3)]})],2)):oe("v-if",!0),gt(M("div",{ref:"dropIndicator$",class:F(e.ns.e("drop-indicator"))},null,2),[[zt,e.dragState.showDropIndicator]])],2)}var kue=He(Eue,[["render",xue],["__file","tree.vue"]]);const $m=Et(kue),Aue=(e,{attrs:t,emit:n},{select:r,tree:a,key:i})=>{const o=Le("tree-select");return Ie(()=>e.data,()=>{e.filterable&&it(()=>{var l,u;(u=a.value)==null||u.filter((l=r.value)==null?void 0:l.states.inputValue)})},{flush:"post"}),{...hi(mr(e),Object.keys(ii.props)),...t,class:k(()=>t.class),style:k(()=>t.style),"onUpdate:modelValue":l=>n(_t,l),valueKey:i,popperClass:k(()=>{const l=[o.e("popper")];return e.popperClass&&l.push(e.popperClass),l.join(" ")}),filterMethod:(l="")=>{var u;e.filterMethod?e.filterMethod(l):e.remoteMethod?e.remoteMethod(l):(u=a.value)==null||u.filter(l)}}},Due=J({extends:Ko,setup(e,t){const n=Ko.setup(e,t);delete n.selectOptionClick;const r=Mt().proxy;return it(()=>{n.select.states.cachedOptions.get(r.value)||n.select.onOptionCreate(r)}),Ie(()=>t.attrs.visible,a=>{it(()=>{n.states.visible=a})},{immediate:!0}),n},methods:{selectOptionClick(){this.$el.parentElement.click()}}});function Eb(e){return e||e===0}function M2(e){return Be(e)&&e.length}function uu(e){return Be(e)?e:Eb(e)?[e]:[]}function Kh(e,t,n,r,a){for(let i=0;i<e.length;i++){const o=e[i];if(t(o,i,e,a))return r?r(o,i,e,a):o;{const s=n(o);if(M2(s)){const l=Kh(s,t,n,r,o);if(l)return l}}}}function qh(e,t,n,r){for(let a=0;a<e.length;a++){const i=e[a];t(i,a,e,r);const o=n(i);M2(o)&&qh(o,t,n,i)}}const Iue=(e,{attrs:t,slots:n,emit:r},{select:a,tree:i,key:o})=>{Ie(()=>e.modelValue,()=>{e.showCheckbox&&it(()=>{const p=i.value;p&&!pr(p.getCheckedKeys(),uu(e.modelValue))&&p.setCheckedKeys(uu(e.modelValue))})},{immediate:!0,deep:!0});const s=k(()=>({value:o.value,label:"label",children:"children",disabled:"disabled",isLeaf:"isLeaf",...e.props})),l=(p,h)=>{var v;const m=s.value[p];return ot(m)?m(h,(v=i.value)==null?void 0:v.getNode(l("value",h))):h[m]},u=uu(e.modelValue).map(p=>Kh(e.data||[],h=>l("value",h)===p,h=>l("children",h),(h,v,m,g)=>g&&l("value",g))).filter(p=>Eb(p)),c=k(()=>{if(!e.renderAfterExpand&&!e.lazy)return[];const p=[];return qh(e.data.concat(e.cacheData),h=>{const v=l("value",h);p.push({value:v,currentLabel:l("label",h),isDisabled:l("disabled",h)})},h=>l("children",h)),p}),d=()=>{var p;return(p=i.value)==null?void 0:p.getCheckedKeys().filter(h=>{var v;const m=(v=i.value)==null?void 0:v.getNode(h);return!sr(m)&&Oa(m.childNodes)})};return{...hi(mr(e),Object.keys($m.props)),...t,nodeKey:o,expandOnClickNode:k(()=>!e.checkStrictly&&e.expandOnClickNode),defaultExpandedKeys:k(()=>e.defaultExpandedKeys?e.defaultExpandedKeys.concat(u):u),renderContent:(p,{node:h,data:v,store:m})=>p(Due,{value:l("value",v),label:l("label",v),disabled:l("disabled",v),visible:h.visible},e.renderContent?()=>e.renderContent(p,{node:h,data:v,store:m}):n.default?()=>n.default({node:h,data:v,store:m}):void 0),filterNodeMethod:(p,h,v)=>e.filterNodeMethod?e.filterNodeMethod(p,h,v):p?new RegExp(N1(p),"i").test(l("label",h)||""):!0,onNodeClick:(p,h,v)=>{var m,g,y,T;if((m=t.onNodeClick)==null||m.call(t,p,h,v),!(e.showCheckbox&&e.checkOnClickNode)){if(!e.showCheckbox&&(e.checkStrictly||h.isLeaf)){if(!l("disabled",p)){const b=(g=a.value)==null?void 0:g.states.options.get(l("value",p));(y=a.value)==null||y.handleOptionSelect(b)}}else e.expandOnClickNode&&v.proxy.handleExpandIconClick();(T=a.value)==null||T.focus()}},onCheck:(p,h)=>{var v;if(!e.showCheckbox)return;const m=l("value",p),g={};qh([i.value.store.root],_=>g[_.key]=_,_=>_.childNodes);const y=h.checkedKeys,T=e.multiple?uu(e.modelValue).filter(_=>!(_ in g)&&!y.includes(_)):[],b=T.concat(y);if(e.checkStrictly)r(_t,e.multiple?b:b.includes(m)?m:void 0);else if(e.multiple){const _=d();r(_t,T.concat(_))}else{const _=Kh([p],A=>!M2(l("children",A))&&!l("disabled",A),A=>l("children",A)),w=_?l("value",_):void 0,S=Eb(e.modelValue)&&!!Kh([p],A=>l("value",A)===e.modelValue,A=>l("children",A));r(_t,w===e.modelValue||S?void 0:w)}it(()=>{var _;const w=uu(e.modelValue);i.value.setCheckedKeys(w),(_=t.onCheck)==null||_.call(t,p,{checkedKeys:i.value.getCheckedKeys(),checkedNodes:i.value.getCheckedNodes(),halfCheckedKeys:i.value.getHalfCheckedKeys(),halfCheckedNodes:i.value.getHalfCheckedNodes()})}),(v=a.value)==null||v.focus()},onNodeExpand:(p,h,v)=>{var m;(m=t.onNodeExpand)==null||m.call(t,p,h,v),it(()=>{if(!e.checkStrictly&&e.lazy&&e.multiple&&h.checked){const g={},y=i.value.getCheckedKeys();qh([i.value.store.root],_=>g[_.key]=_,_=>_.childNodes);const T=uu(e.modelValue).filter(_=>!(_ in g)&&!y.includes(_)),b=d();r(_t,T.concat(b))}})},cacheOptions:c}};var Pue=J({props:{data:{type:Array,default:()=>[]}},setup(e){const t=Qe(Bc);return Ie(()=>e.data,()=>{var n;e.data.forEach(a=>{t.states.cachedOptions.has(a.value)||t.states.cachedOptions.set(a.value,a)});const r=((n=t.selectRef)==null?void 0:n.querySelectorAll("input"))||[];Wt&&!Array.from(r).includes(document.activeElement)&&t.setSelected()},{flush:"post",immediate:!0}),()=>{}}});const Oue=J({name:"ElTreeSelect",inheritAttrs:!1,props:{...ii.props,...$m.props,cacheData:{type:Array,default:()=>[]}},setup(e,t){const{slots:n,expose:r}=t,a=z(),i=z(),o=k(()=>e.nodeKey||e.valueKey||"value"),s=Aue(e,t,{select:a,tree:i,key:o}),{cacheOptions:l,...u}=Iue(e,t,{select:a,tree:i,key:o}),c=Ct({});return r(c),ht(()=>{Object.assign(c,{...hi(i.value,["filter","updateKeyChildren","getCheckedNodes","setCheckedNodes","getCheckedKeys","setCheckedKeys","setChecked","getHalfCheckedNodes","getHalfCheckedKeys","getCurrentKey","getCurrentNode","setCurrentKey","setCurrentNode","getNode","remove","append","insertBefore","insertAfter"]),...hi(a.value,["focus","blur","selectedLabel"])})}),()=>lt(ii,Ct({...s,ref:d=>a.value=d}),{...n,default:()=>[lt(Pue,{data:l.value}),lt($m,Ct({...u,ref:d=>i.value=d}))]})}});var Mue=He(Oue,[["__file","tree-select.vue"]]);const Rue=Et(Mue),R2=Symbol(),Lue={key:-1,level:-1,data:{}};var Ad=(e=>(e.KEY="id",e.LABEL="label",e.CHILDREN="children",e.DISABLED="disabled",e.CLASS="",e))(Ad||{}),xb=(e=>(e.ADD="add",e.DELETE="delete",e))(xb||{});const D4={type:Number,default:26},Nue=Ue({data:{type:ue(Array),default:()=>Pn([])},emptyText:{type:String},height:{type:Number,default:200},props:{type:ue(Object),default:()=>Pn({children:"children",label:"label",disabled:"disabled",value:"id",class:""})},highlightCurrent:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},defaultCheckedKeys:{type:ue(Array),default:()=>Pn([])},checkStrictly:{type:Boolean,default:!1},defaultExpandedKeys:{type:ue(Array),default:()=>Pn([])},indent:{type:Number,default:16},itemSize:D4,icon:{type:dn},expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:{type:Boolean,default:!1},checkOnClickLeaf:{type:Boolean,default:!0},currentNodeKey:{type:ue([String,Number])},accordion:{type:Boolean,default:!1},filterMethod:{type:ue(Function)},perfMode:{type:Boolean,default:!0}}),Fue=Ue({node:{type:ue(Object),default:()=>Pn(Lue)},expanded:{type:Boolean,default:!1},checked:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},current:{type:Boolean,default:!1},hiddenExpandIcon:{type:Boolean,default:!1},itemSize:D4}),$ue=Ue({node:{type:ue(Object),required:!0}}),I4="node-click",P4="node-drop",O4="node-expand",M4="node-collapse",R4="current-change",L4="check",N4="check-change",F4="node-contextmenu",Bue={[I4]:(e,t,n)=>e&&t&&n,[P4]:(e,t,n)=>e&&t&&n,[O4]:(e,t)=>e&&t,[M4]:(e,t)=>e&&t,[R4]:(e,t)=>e&&t,[L4]:(e,t)=>e&&t,[N4]:(e,t)=>e&&pn(t),[F4]:(e,t,n)=>e&&t&&n},Vue={click:(e,t)=>!!(e&&t),drop:(e,t)=>!!(e&&t),toggle:e=>!!e,check:(e,t)=>e&&pn(t)};function Uue(e,t){const n=z(new Set),r=z(new Set),{emit:a}=Mt();Ie([()=>t.value,()=>e.defaultCheckedKeys],()=>it(()=>{T(e.defaultCheckedKeys)}),{immediate:!0});const i=()=>{if(!t.value||!e.showCheckbox||e.checkStrictly)return;const{levelTreeNodeMap:b,maxLevel:_}=t.value,w=n.value,S=new Set;for(let A=_-1;A>=1;--A){const I=b.get(A);I&&I.forEach(D=>{const O=D.children;if(O){let V=!0,N=!1;for(const K of O){const Y=K.key;if(w.has(Y))N=!0;else if(S.has(Y)){V=!1,N=!0;break}else V=!1}V?w.add(D.key):N?(S.add(D.key),w.delete(D.key)):(w.delete(D.key),S.delete(D.key))}})}r.value=S},o=b=>n.value.has(b.key),s=b=>r.value.has(b.key),l=(b,_,w=!0,S=!0)=>{const A=n.value,I=(D,O)=>{A[O?xb.ADD:xb.DELETE](D.key);const V=D.children;!e.checkStrictly&&V&&V.forEach(N=>{N.disabled||I(N,O)})};I(b,_),S&&i(),w&&u(b,_)},u=(b,_)=>{const{checkedNodes:w,checkedKeys:S}=v(),{halfCheckedNodes:A,halfCheckedKeys:I}=m();a(L4,b.data,{checkedKeys:S,checkedNodes:w,halfCheckedKeys:I,halfCheckedNodes:A}),a(N4,b.data,_)};function c(b=!1){return v(b).checkedKeys}function d(b=!1){return v(b).checkedNodes}function p(){return m().halfCheckedKeys}function h(){return m().halfCheckedNodes}function v(b=!1){const _=[],w=[];if(t!=null&&t.value&&e.showCheckbox){const{treeNodeMap:S}=t.value;n.value.forEach(A=>{const I=S.get(A);I&&(!b||b&&I.isLeaf)&&(w.push(A),_.push(I.data))})}return{checkedKeys:w,checkedNodes:_}}function m(){const b=[],_=[];if(t!=null&&t.value&&e.showCheckbox){const{treeNodeMap:w}=t.value;r.value.forEach(S=>{const A=w.get(S);A&&(_.push(S),b.push(A.data))})}return{halfCheckedNodes:b,halfCheckedKeys:_}}function g(b){n.value.clear(),r.value.clear(),it(()=>{T(b)})}function y(b,_){if(t!=null&&t.value&&e.showCheckbox){const w=t.value.treeNodeMap.get(b);w&&l(w,_,!1)}}function T(b){if(t!=null&&t.value){const{treeNodeMap:_}=t.value;if(e.showCheckbox&&_&&(b==null?void 0:b.length)>0){for(const w of b){const S=_.get(w);S&&!o(S)&&l(S,!0,!1,!1)}i()}}}return{updateCheckedKeys:i,toggleCheckbox:l,isChecked:o,isIndeterminate:s,getCheckedKeys:c,getCheckedNodes:d,getHalfCheckedKeys:p,getHalfCheckedNodes:h,setChecked:y,setCheckedKeys:g}}function Hue(e,t){const n=z(new Set([])),r=z(new Set([])),a=k(()=>ot(e.filterMethod));function i(s){var l;if(!a.value)return;const u=new Set,c=r.value,d=n.value,p=[],h=((l=t.value)==null?void 0:l.treeNodes)||[],v=e.filterMethod;d.clear();function m(g){g.forEach(y=>{p.push(y),v!=null&&v(s,y.data,y)?p.forEach(b=>{u.add(b.key)}):y.isLeaf&&d.add(y.key);const T=y.children;if(T&&m(T),!y.isLeaf){if(!u.has(y.key))d.add(y.key);else if(T){let b=!0;for(const _ of T)if(!d.has(_.key)){b=!1;break}b?c.add(y.key):c.delete(y.key)}}p.pop()})}return m(h),u}function o(s){return r.value.has(s.key)}return{hiddenExpandIconKeySet:r,hiddenNodeKeySet:n,doFilter:i,isForceHiddenExpandIcon:o}}function zue(e,t){const n=z(new Set(e.defaultExpandedKeys)),r=z(),a=cn(),i=z();Ie(()=>e.currentNodeKey,ye=>{r.value=ye},{immediate:!0}),Ie(()=>e.data,ye=>{me(ye)},{immediate:!0});const{isIndeterminate:o,isChecked:s,toggleCheckbox:l,getCheckedKeys:u,getCheckedNodes:c,getHalfCheckedKeys:d,getHalfCheckedNodes:p,setChecked:h,setCheckedKeys:v}=Uue(e,a),{doFilter:m,hiddenNodeKeySet:g,isForceHiddenExpandIcon:y}=Hue(e,a),T=k(()=>{var ye;return((ye=e.props)==null?void 0:ye.value)||Ad.KEY}),b=k(()=>{var ye;return((ye=e.props)==null?void 0:ye.children)||Ad.CHILDREN}),_=k(()=>{var ye;return((ye=e.props)==null?void 0:ye.disabled)||Ad.DISABLED}),w=k(()=>{var ye;return((ye=e.props)==null?void 0:ye.label)||Ad.LABEL}),S=k(()=>{var ye;const Z=n.value,ie=g.value,Ce=[],$e=((ye=a.value)==null?void 0:ye.treeNodes)||[],Se=[];for(let De=$e.length-1;De>=0;--De)Se.push($e[De]);for(;Se.length;){const De=Se.pop();if(!ie.has(De.key)&&(Ce.push(De),De.children&&Z.has(De.key)))for(let xe=De.children.length-1;xe>=0;--xe)Se.push(De.children[xe])}return Ce}),A=k(()=>S.value.length>0);function I(ye){const Z=new Map,ie=new Map;let Ce=1;function $e(De,xe=1,Ve=void 0){var ze;const je=[];for(const nt of De){const Ae=V(nt),Xe={level:xe,key:Ae,data:nt};Xe.label=K(nt),Xe.parent=Ve;const ct=O(nt);Xe.disabled=N(nt),Xe.isLeaf=!ct||ct.length===0,ct&&ct.length&&(Xe.children=$e(ct,xe+1,Xe)),je.push(Xe),Z.set(Ae,Xe),ie.has(xe)||ie.set(xe,[]),(ze=ie.get(xe))==null||ze.push(Xe)}return xe>Ce&&(Ce=xe),je}const Se=$e(ye);return{treeNodeMap:Z,levelTreeNodeMap:ie,maxLevel:Ce,treeNodes:Se}}function D(ye){const Z=m(ye);Z&&(n.value=Z)}function O(ye){return ye[b.value]}function V(ye){return ye?ye[T.value]:""}function N(ye){return ye[_.value]}function K(ye){return ye[w.value]}function Y(ye){n.value.has(ye.key)?re(ye):X(ye)}function q(ye){const Z=new Set,ie=a.value.treeNodeMap;ye.forEach(Ce=>{let $e=ie.get(Ce);for(;$e&&!Z.has($e.key);)Z.add($e.key),$e=$e.parent}),n.value=Z}function $(ye,Z){t(I4,ye.data,ye,Z),W(ye),e.expandOnClickNode&&Y(ye),e.showCheckbox&&(e.checkOnClickNode||ye.isLeaf&&e.checkOnClickLeaf)&&!ye.disabled&&l(ye,!s(ye),!0)}function j(ye,Z){t(P4,ye.data,ye,Z)}function W(ye){be(ye)||(r.value=ye.key,t(R4,ye.data,ye))}function H(ye,Z){l(ye,Z)}function X(ye){const Z=n.value;if(a.value&&e.accordion){const{treeNodeMap:ie}=a.value;Z.forEach(Ce=>{const $e=ie.get(Ce);ye&&ye.level===($e==null?void 0:$e.level)&&Z.delete(Ce)})}Z.add(ye.key),t(O4,ye.data,ye)}function re(ye){n.value.delete(ye.key),t(M4,ye.data,ye)}function le(ye){return n.value.has(ye.key)}function ne(ye){return!!ye.disabled}function be(ye){const Z=r.value;return Z!==void 0&&Z===ye.key}function _e(){var ye,Z;if(r.value)return(Z=(ye=a.value)==null?void 0:ye.treeNodeMap.get(r.value))==null?void 0:Z.data}function ve(){return r.value}function te(ye){r.value=ye}function me(ye){it(()=>a.value=I(ye))}function pe(ye){var Z;const ie=It(ye)?V(ye):ye;return(Z=a.value)==null?void 0:Z.treeNodeMap.get(ie)}function Fe(ye,Z="auto"){const ie=pe(ye);ie&&i.value&&i.value.scrollToItem(S.value.indexOf(ie),Z)}function Pe(ye){var Z;(Z=i.value)==null||Z.scrollTo(ye)}return{tree:a,flattenTree:S,isNotEmpty:A,listRef:i,getKey:V,getChildren:O,toggleExpand:Y,toggleCheckbox:l,isExpanded:le,isChecked:s,isIndeterminate:o,isDisabled:ne,isCurrent:be,isForceHiddenExpandIcon:y,handleNodeClick:$,handleNodeDrop:j,handleNodeCheck:H,getCurrentNode:_e,getCurrentKey:ve,setCurrentKey:te,getCheckedKeys:u,getCheckedNodes:c,getHalfCheckedKeys:d,getHalfCheckedNodes:p,setChecked:h,setCheckedKeys:v,filter:D,setData:me,getNode:pe,expandNode:X,collapseNode:re,setExpandedKeys:q,scrollToNode:Fe,scrollTo:Pe}}var jue=J({name:"ElTreeNodeContent",props:$ue,setup(e){const t=Qe(R2),n=Le("tree");return()=>{const r=e.node,{data:a}=r;return t!=null&&t.ctx.slots.default?t.ctx.slots.default({node:r,data:a}):lt("span",{class:n.be("node","label")},[r==null?void 0:r.label])}}});const Wue=J({name:"ElTreeNode"}),Kue=J({...Wue,props:Fue,emits:Vue,setup(e,{emit:t}){const n=e,r=Qe(R2),a=Le("tree"),i=k(()=>{var h;return(h=r==null?void 0:r.props.indent)!=null?h:16}),o=k(()=>{var h;return(h=r==null?void 0:r.props.icon)!=null?h:Fv}),s=h=>{const v=r==null?void 0:r.props.props.class;if(!v)return{};let m;if(ot(v)){const{data:g}=h;m=v(g,h)}else m=v;return rt(m)?{[m]:!0}:m},l=h=>{t("click",n.node,h)},u=h=>{t("drop",n.node,h)},c=()=>{t("toggle",n.node)},d=h=>{t("check",n.node,h)},p=h=>{var v,m,g,y;(g=(m=(v=r==null?void 0:r.instance)==null?void 0:v.vnode)==null?void 0:m.props)!=null&&g.onNodeContextmenu&&(h.stopPropagation(),h.preventDefault()),r==null||r.ctx.emit(F4,h,(y=n.node)==null?void 0:y.data,n.node)};return(h,v)=>{var m,g,y;return x(),U("div",{ref:"node$",class:F([f(a).b("node"),f(a).is("expanded",h.expanded),f(a).is("current",h.current),f(a).is("focusable",!h.disabled),f(a).is("checked",!h.disabled&&h.checked),s(h.node)]),role:"treeitem",tabindex:"-1","aria-expanded":h.expanded,"aria-disabled":h.disabled,"aria-checked":h.checked,"data-key":(m=h.node)==null?void 0:m.key,onClick:ft(l,["stop"]),onContextmenu:p,onDragover:ft(()=>{},["prevent"]),onDragenter:ft(()=>{},["prevent"]),onDrop:ft(u,["stop"])},[M("div",{class:F(f(a).be("node","content")),style:tt({paddingLeft:`${(h.node.level-1)*f(i)}px`,height:h.itemSize+"px"})},[f(o)?(x(),he(f(et),{key:0,class:F([f(a).is("leaf",!!((g=h.node)!=null&&g.isLeaf)),f(a).is("hidden",h.hiddenExpandIcon),{expanded:!((y=h.node)!=null&&y.isLeaf)&&h.expanded},f(a).be("node","expand-icon")]),onClick:ft(c,["stop"])},{default:P(()=>[(x(),he(Lt(f(o))))]),_:1},8,["class","onClick"])):oe("v-if",!0),h.showCheckbox?(x(),he(f(ri),{key:1,"model-value":h.checked,indeterminate:h.indeterminate,disabled:h.disabled,onChange:d,onClick:ft(()=>{},["stop"])},null,8,["model-value","indeterminate","disabled","onClick"])):oe("v-if",!0),E(f(jue),{node:h.node},null,8,["node"])],6)],42,["aria-expanded","aria-disabled","aria-checked","data-key","onClick","onDragover","onDragenter","onDrop"])}}});var que=He(Kue,[["__file","tree-node.vue"]]);const Gue=J({name:"ElTreeV2"}),Yue=J({...Gue,props:Nue,emits:Bue,setup(e,{expose:t,emit:n}){const r=e,a=ir(),i=k(()=>r.itemSize);Vt(R2,{ctx:{emit:n,slots:a},props:r,instance:Mt()}),Vt(io,void 0);const{t:o}=Kt(),s=Le("tree"),{flattenTree:l,isNotEmpty:u,listRef:c,toggleExpand:d,isExpanded:p,isIndeterminate:h,isChecked:v,isDisabled:m,isCurrent:g,isForceHiddenExpandIcon:y,handleNodeClick:T,handleNodeDrop:b,handleNodeCheck:_,toggleCheckbox:w,getCurrentNode:S,getCurrentKey:A,setCurrentKey:I,getCheckedKeys:D,getCheckedNodes:O,getHalfCheckedKeys:V,getHalfCheckedNodes:N,setChecked:K,setCheckedKeys:Y,filter:q,setData:$,getNode:j,expandNode:W,collapseNode:H,setExpandedKeys:X,scrollToNode:re,scrollTo:le}=zue(r,n);return t({toggleCheckbox:w,getCurrentNode:S,getCurrentKey:A,setCurrentKey:I,getCheckedKeys:D,getCheckedNodes:O,getHalfCheckedKeys:V,getHalfCheckedNodes:N,setChecked:K,setCheckedKeys:Y,filter:q,setData:$,getNode:j,expandNode:W,collapseNode:H,setExpandedKeys:X,scrollToNode:re,scrollTo:le}),(ne,be)=>(x(),U("div",{class:F([f(s).b(),{[f(s).m("highlight-current")]:ne.highlightCurrent}]),role:"tree"},[f(u)?(x(),he(f(b3),{key:0,ref_key:"listRef",ref:c,"class-name":f(s).b("virtual-list"),data:f(l),total:f(l).length,height:ne.height,"item-size":f(i),"perf-mode":ne.perfMode},{default:P(({data:_e,index:ve,style:te})=>[(x(),he(que,{key:_e[ve].key,style:tt(te),node:_e[ve],expanded:f(p)(_e[ve]),"show-checkbox":ne.showCheckbox,checked:f(v)(_e[ve]),indeterminate:f(h)(_e[ve]),"item-size":f(i),disabled:f(m)(_e[ve]),current:f(g)(_e[ve]),"hidden-expand-icon":f(y)(_e[ve]),onClick:f(T),onToggle:f(d),onCheck:f(_),onDrop:f(b)},null,8,["style","node","expanded","show-checkbox","checked","indeterminate","item-size","disabled","current","hidden-expand-icon","onClick","onToggle","onCheck","onDrop"]))]),_:1},8,["class-name","data","total","height","item-size","perf-mode"])):(x(),U("div",{key:1,class:F(f(s).e("empty-block"))},[fe(ne.$slots,"empty",{},()=>{var _e;return[M("span",{class:F(f(s).e("empty-text"))},de((_e=ne.emptyText)!=null?_e:f(o)("el.tree.emptyText")),3)]})],2))],2))}});var Xue=He(Yue,[["__file","tree.vue"]]);const Que=Et(Xue),$4=Symbol("uploadContextKey"),Jue="ElUpload";class Zue extends Error{constructor(t,n,r,a){super(t),this.name="UploadAjaxError",this.status=n,this.method=r,this.url=a}}function GE(e,t,n){let r;return n.response?r=`${n.response.error||n.response}`:n.responseText?r=`${n.responseText}`:r=`fail to ${t.method} ${e} ${n.status}`,new Zue(r,n.status,t.method,e)}function ece(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}const tce=e=>{typeof XMLHttpRequest>"u"&&rr(Jue,"XMLHttpRequest is undefined");const t=new XMLHttpRequest,n=e.action;t.upload&&t.upload.addEventListener("progress",i=>{const o=i;o.percent=i.total>0?i.loaded/i.total*100:0,e.onProgress(o)});const r=new FormData;if(e.data)for(const[i,o]of Object.entries(e.data))Be(o)&&o.length?r.append(i,...o):r.append(i,o);r.append(e.filename,e.file,e.file.name),t.addEventListener("error",()=>{e.onError(GE(n,e,t))}),t.addEventListener("load",()=>{if(t.status<200||t.status>=300)return e.onError(GE(n,e,t));e.onSuccess(ece(t))}),t.open(e.method,n,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const a=e.headers||{};if(a instanceof Headers)a.forEach((i,o)=>t.setRequestHeader(o,i));else for(const[i,o]of Object.entries(a))sr(o)||t.setRequestHeader(i,String(o));return t.send(r),t},B4=["text","picture","picture-card"];let nce=1;const kb=()=>Date.now()+nce++,V4=Ue({action:{type:String,default:"#"},headers:{type:ue(Object)},method:{type:String,default:"post"},data:{type:ue([Object,Function,Promise]),default:()=>Pn({})},multiple:Boolean,name:{type:String,default:"file"},drag:Boolean,withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},fileList:{type:ue(Array),default:()=>Pn([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:B4,default:"text"},httpRequest:{type:ue(Function),default:tce},disabled:Boolean,limit:Number}),rce=Ue({...V4,beforeUpload:{type:ue(Function),default:nn},beforeRemove:{type:ue(Function)},onRemove:{type:ue(Function),default:nn},onChange:{type:ue(Function),default:nn},onPreview:{type:ue(Function),default:nn},onSuccess:{type:ue(Function),default:nn},onProgress:{type:ue(Function),default:nn},onError:{type:ue(Function),default:nn},onExceed:{type:ue(Function),default:nn},crossorigin:{type:ue(String)}}),ace=Ue({files:{type:ue(Array),default:()=>Pn([])},disabled:{type:Boolean,default:!1},handlePreview:{type:ue(Function),default:nn},listType:{type:String,values:B4,default:"text"},crossorigin:{type:ue(String)}}),ice={remove:e=>!!e},oce=J({name:"ElUploadList"}),sce=J({...oce,props:ace,emits:ice,setup(e,{emit:t}){const n=e,{t:r}=Kt(),a=Le("upload"),i=Le("icon"),o=Le("list"),s=Mr(),l=z(!1),u=k(()=>[a.b("list"),a.bm("list",n.listType),a.is("disabled",n.disabled)]),c=d=>{t("remove",d)};return(d,p)=>(x(),he(DD,{tag:"ul",class:F(f(u)),name:f(o).b()},{default:P(()=>[(x(!0),U(Ge,null,mt(d.files,(h,v)=>(x(),U("li",{key:h.uid||h.name,class:F([f(a).be("list","item"),f(a).is(h.status),{focusing:l.value}]),tabindex:"0",onKeydown:sn(m=>!f(s)&&c(h),["delete"]),onFocus:m=>l.value=!0,onBlur:m=>l.value=!1,onClick:m=>l.value=!1},[fe(d.$slots,"default",{file:h,index:v},()=>[d.listType==="picture"||h.status!=="uploading"&&d.listType==="picture-card"?(x(),U("img",{key:0,class:F(f(a).be("list","item-thumbnail")),src:h.url,crossorigin:d.crossorigin,alt:""},null,10,["src","crossorigin"])):oe("v-if",!0),h.status==="uploading"||d.listType!=="picture-card"?(x(),U("div",{key:1,class:F(f(a).be("list","item-info"))},[M("a",{class:F(f(a).be("list","item-name")),onClick:ft(m=>d.handlePreview(h),["prevent"])},[E(f(et),{class:F(f(i).m("document"))},{default:P(()=>[E(f(hz))]),_:1},8,["class"]),M("span",{class:F(f(a).be("list","item-file-name")),title:h.name},de(h.name),11,["title"])],10,["onClick"]),h.status==="uploading"?(x(),he(f(l3),{key:0,type:d.listType==="picture-card"?"circle":"line","stroke-width":d.listType==="picture-card"?6:2,percentage:Number(h.percentage),style:tt(d.listType==="picture-card"?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):oe("v-if",!0)],2)):oe("v-if",!0),M("label",{class:F(f(a).be("list","item-status-label"))},[d.listType==="text"?(x(),he(f(et),{key:0,class:F([f(i).m("upload-success"),f(i).m("circle-check")])},{default:P(()=>[E(f(s1))]),_:1},8,["class"])):["picture-card","picture"].includes(d.listType)?(x(),he(f(et),{key:1,class:F([f(i).m("upload-success"),f(i).m("check")])},{default:P(()=>[E(f(sp))]),_:1},8,["class"])):oe("v-if",!0)],2),f(s)?oe("v-if",!0):(x(),he(f(et),{key:2,class:F(f(i).m("close")),onClick:m=>c(h)},{default:P(()=>[E(f(Ci))]),_:2},1032,["class","onClick"])),oe(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),oe(" This is a bug which needs to be fixed "),oe(" TODO: Fix the incorrect navigation interaction "),f(s)?oe("v-if",!0):(x(),U("i",{key:3,class:F(f(i).m("close-tip"))},de(f(r)("el.upload.deleteTip")),3)),d.listType==="picture-card"?(x(),U("span",{key:4,class:F(f(a).be("list","item-actions"))},[M("span",{class:F(f(a).be("list","item-preview")),onClick:m=>d.handlePreview(h)},[E(f(et),{class:F(f(i).m("zoom-in"))},{default:P(()=>[E(f(h1))]),_:1},8,["class"])],10,["onClick"]),f(s)?oe("v-if",!0):(x(),U("span",{key:0,class:F(f(a).be("list","item-delete")),onClick:m=>c(h)},[E(f(et),{class:F(f(i).m("delete"))},{default:P(()=>[E(f(Kl))]),_:1},8,["class"])],10,["onClick"]))],2)):oe("v-if",!0)])],42,["onKeydown","onFocus","onBlur","onClick"]))),128)),fe(d.$slots,"append")]),_:3},8,["class","name"]))}});var YE=He(sce,[["__file","upload-list.vue"]]);const lce=Ue({disabled:{type:Boolean,default:!1}}),uce={file:e=>Be(e)},U4="ElUploadDrag",cce=J({name:U4}),dce=J({...cce,props:lce,emits:uce,setup(e,{emit:t}){Qe($4)||rr(U4,"usage: <el-upload><el-upload-dragger /></el-upload>");const r=Le("upload"),a=z(!1),i=Mr(),o=l=>{if(i.value)return;a.value=!1,l.stopPropagation();const u=Array.from(l.dataTransfer.files),c=l.dataTransfer.items||[];u.forEach((d,p)=>{var h;const v=c[p],m=(h=v==null?void 0:v.webkitGetAsEntry)==null?void 0:h.call(v);m&&(d.isDirectory=m.isDirectory)}),t("file",u)},s=()=>{i.value||(a.value=!0)};return(l,u)=>(x(),U("div",{class:F([f(r).b("dragger"),f(r).is("dragover",a.value)]),onDrop:ft(o,["prevent"]),onDragover:ft(s,["prevent"]),onDragleave:ft(c=>a.value=!1,["prevent"])},[fe(l.$slots,"default")],42,["onDrop","onDragover","onDragleave"]))}});var fce=He(dce,[["__file","upload-dragger.vue"]]);const pce=Ue({...V4,beforeUpload:{type:ue(Function),default:nn},onRemove:{type:ue(Function),default:nn},onStart:{type:ue(Function),default:nn},onSuccess:{type:ue(Function),default:nn},onProgress:{type:ue(Function),default:nn},onError:{type:ue(Function),default:nn},onExceed:{type:ue(Function),default:nn}}),hce=J({name:"ElUploadContent",inheritAttrs:!1}),mce=J({...hce,props:pce,setup(e,{expose:t}){const n=e,r=Le("upload"),a=Mr(),i=cn({}),o=cn(),s=m=>{if(m.length===0)return;const{autoUpload:g,limit:y,fileList:T,multiple:b,onStart:_,onExceed:w}=n;if(y&&T.length+m.length>y){w(m,T);return}b||(m=m.slice(0,1));for(const S of m){const A=S;A.uid=kb(),_(A),g&&l(A)}},l=async m=>{if(o.value.value="",!n.beforeUpload)return c(m);let g,y={};try{const b=n.data,_=n.beforeUpload(m);y=of(n.data)?ym(n.data):n.data,g=await _,of(n.data)&&pr(b,y)&&(y=ym(n.data))}catch{g=!1}if(g===!1){n.onRemove(m);return}let T=m;g instanceof Blob&&(g instanceof File?T=g:T=new File([g],m.name,{type:m.type})),c(Object.assign(T,{uid:m.uid}),y)},u=async(m,g)=>ot(m)?m(g):m,c=async(m,g)=>{const{headers:y,data:T,method:b,withCredentials:_,name:w,action:S,onProgress:A,onSuccess:I,onError:D,httpRequest:O}=n;try{g=await u(g??T,m)}catch{n.onRemove(m);return}const{uid:V}=m,N={headers:y||{},withCredentials:_,file:m,data:g,method:b,filename:w,action:S,onProgress:Y=>{A(Y,m)},onSuccess:Y=>{I(Y,m),delete i.value[V]},onError:Y=>{D(Y,m),delete i.value[V]}},K=O(N);i.value[V]=K,K instanceof Promise&&K.then(N.onSuccess,N.onError)},d=m=>{const g=m.target.files;g&&s(Array.from(g))},p=()=>{a.value||(o.value.value="",o.value.click())},h=()=>{p()};return t({abort:m=>{MI(i.value).filter(m?([y])=>String(m.uid)===y:()=>!0).forEach(([y,T])=>{T instanceof XMLHttpRequest&&T.abort(),delete i.value[y]})},upload:l}),(m,g)=>(x(),U("div",{class:F([f(r).b(),f(r).m(m.listType),f(r).is("drag",m.drag),f(r).is("disabled",f(a))]),tabindex:f(a)?"-1":"0",onClick:p,onKeydown:sn(ft(h,["self"]),["enter","space"])},[m.drag?(x(),he(fce,{key:0,disabled:f(a),onFile:s},{default:P(()=>[fe(m.$slots,"default")]),_:3},8,["disabled"])):fe(m.$slots,"default",{key:1}),M("input",{ref_key:"inputRef",ref:o,class:F(f(r).e("input")),name:m.name,disabled:f(a),multiple:m.multiple,accept:m.accept,type:"file",onChange:d,onClick:ft(()=>{},["stop"])},null,42,["name","disabled","multiple","accept","onClick"])],42,["tabindex","onKeydown"]))}});var XE=He(mce,[["__file","upload-content.vue"]]);const QE="ElUpload",JE=e=>{var t;(t=e.url)!=null&&t.startsWith("blob:")&&URL.revokeObjectURL(e.url)},vce=(e,t)=>{const n=EI(e,"fileList",void 0,{passive:!0}),r=h=>n.value.find(v=>v.uid===h.uid);function a(h){var v;(v=t.value)==null||v.abort(h)}function i(h=["ready","uploading","success","fail"]){n.value=n.value.filter(v=>!h.includes(v.status))}function o(h){n.value=n.value.filter(v=>v.uid!==h.uid)}const s=(h,v)=>{const m=r(v);m&&(console.error(h),m.status="fail",o(m),e.onError(h,m,n.value),e.onChange(m,n.value))},l=(h,v)=>{const m=r(v);m&&(e.onProgress(h,m,n.value),m.status="uploading",m.percentage=Math.round(h.percent))},u=(h,v)=>{const m=r(v);m&&(m.status="success",m.response=h,e.onSuccess(h,m,n.value),e.onChange(m,n.value))},c=h=>{sr(h.uid)&&(h.uid=kb());const v={name:h.name,percentage:0,status:"ready",size:h.size,raw:h,uid:h.uid};if(e.listType==="picture-card"||e.listType==="picture")try{v.url=URL.createObjectURL(h)}catch(m){m.message,e.onError(m,v,n.value)}n.value=[...n.value,v],e.onChange(v,n.value)},d=async h=>{const v=h instanceof File?r(h):h;v||rr(QE,"file to be removed not found");const m=g=>{a(g),o(g),e.onRemove(g,n.value),JE(g)};e.beforeRemove?await e.beforeRemove(v,n.value)!==!1&&m(v):m(v)};function p(){n.value.filter(({status:h})=>h==="ready").forEach(({raw:h})=>{var v;return h&&((v=t.value)==null?void 0:v.upload(h))})}return Ie(()=>e.listType,h=>{h!=="picture-card"&&h!=="picture"||(n.value=n.value.map(v=>{const{raw:m,url:g}=v;if(!g&&m)try{v.url=URL.createObjectURL(m)}catch(y){e.onError(y,v,n.value)}return v}))}),Ie(n,h=>{for(const v of h)v.uid||(v.uid=kb()),v.status||(v.status="success")},{immediate:!0,deep:!0}),{uploadFiles:n,abort:a,clearFiles:i,handleError:s,handleProgress:l,handleStart:c,handleSuccess:u,handleRemove:d,submit:p,revokeFileObjectURL:JE}},gce=J({name:"ElUpload"}),yce=J({...gce,props:rce,setup(e,{expose:t}){const n=e,r=Mr(),a=cn(),{abort:i,submit:o,clearFiles:s,uploadFiles:l,handleStart:u,handleError:c,handleRemove:d,handleSuccess:p,handleProgress:h,revokeFileObjectURL:v}=vce(n,a),m=k(()=>n.listType==="picture-card"),g=k(()=>({...n,fileList:l.value,onStart:u,onProgress:h,onSuccess:p,onError:c,onRemove:d}));return fn(()=>{l.value.forEach(v)}),Vt($4,{accept:rn(n,"accept")}),t({abort:i,submit:o,clearFiles:s,handleStart:u,handleRemove:d}),(y,T)=>(x(),U("div",null,[f(m)&&y.showFileList?(x(),he(YE,{key:0,disabled:f(r),"list-type":y.listType,files:f(l),crossorigin:y.crossorigin,"handle-preview":y.onPreview,onRemove:f(d)},Ua({append:P(()=>[E(XE,Ft({ref_key:"uploadRef",ref:a},f(g)),{default:P(()=>[y.$slots.trigger?fe(y.$slots,"trigger",{key:0}):oe("v-if",!0),!y.$slots.trigger&&y.$slots.default?fe(y.$slots,"default",{key:1}):oe("v-if",!0)]),_:3},16)]),_:2},[y.$slots.file?{name:"default",fn:P(({file:b,index:_})=>[fe(y.$slots,"file",{file:b,index:_})])}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):oe("v-if",!0),!f(m)||f(m)&&!y.showFileList?(x(),he(XE,Ft({key:1,ref_key:"uploadRef",ref:a},f(g)),{default:P(()=>[y.$slots.trigger?fe(y.$slots,"trigger",{key:0}):oe("v-if",!0),!y.$slots.trigger&&y.$slots.default?fe(y.$slots,"default",{key:1}):oe("v-if",!0)]),_:3},16)):oe("v-if",!0),y.$slots.trigger?fe(y.$slots,"default",{key:2}):oe("v-if",!0),fe(y.$slots,"tip"),!f(m)&&y.showFileList?(x(),he(YE,{key:3,disabled:f(r),"list-type":y.listType,files:f(l),crossorigin:y.crossorigin,"handle-preview":y.onPreview,onRemove:f(d)},Ua({_:2},[y.$slots.file?{name:"default",fn:P(({file:b,index:_})=>[fe(y.$slots,"file",{file:b,index:_})])}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):oe("v-if",!0)]))}});var bce=He(yce,[["__file","upload.vue"]]);const tg=Et(bce),_ce=Ue({zIndex:{type:Number,default:9},rotate:{type:Number,default:-22},width:Number,height:Number,image:String,content:{type:ue([String,Array]),default:"Element Plus"},font:{type:ue(Object)},gap:{type:ue(Array),default:()=>[100,100]},offset:{type:ue(Array)}});function Tce(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function wce(e){return Object.keys(e).map(t=>`${Tce(t)}: ${e[t]};`).join(" ")}function Sce(){return window.devicePixelRatio||1}const Cce=(e,t)=>{let n=!1;return e.removedNodes.length&&t&&(n=Array.from(e.removedNodes).includes(t)),e.type==="attributes"&&e.target===t&&(n=!0),n},H4=3;function k0(e,t,n=1){const r=document.createElement("canvas"),a=r.getContext("2d"),i=e*n,o=t*n;return r.setAttribute("width",`${i}px`),r.setAttribute("height",`${o}px`),a.save(),[a,r,i,o]}function Ece(){function e(t,n,r,a,i,o,s,l){const[u,c,d,p]=k0(a,i,r);if(t instanceof HTMLImageElement)u.drawImage(t,0,0,d,p);else{const{color:re,fontSize:le,fontStyle:ne,fontWeight:be,fontFamily:_e,textAlign:ve,textBaseline:te}=o,me=Number(le)*r;u.font=`${ne} normal ${be} ${me}px/${i}px ${_e}`,u.fillStyle=re,u.textAlign=ve,u.textBaseline=te;const pe=Be(t)?t:[t];pe==null||pe.forEach((Fe,Pe)=>{u.fillText(Fe??"",d/2,Pe*(me+H4*r))})}const h=Math.PI/180*Number(n),v=Math.max(a,i),[m,g,y]=k0(v,v,r);m.translate(y/2,y/2),m.rotate(h),d>0&&p>0&&m.drawImage(c,-d/2,-p/2);function T(re,le){const ne=re*Math.cos(h)-le*Math.sin(h),be=re*Math.sin(h)+le*Math.cos(h);return[ne,be]}let b=0,_=0,w=0,S=0;const A=d/2,I=p/2;[[0-A,0-I],[0+A,0-I],[0+A,0+I],[0-A,0+I]].forEach(([re,le])=>{const[ne,be]=T(re,le);b=Math.min(b,ne),_=Math.max(_,ne),w=Math.min(w,be),S=Math.max(S,be)});const O=b+y/2,V=w+y/2,N=_-b,K=S-w,Y=s*r,q=l*r,$=(N+Y)*2,j=K+q,[W,H]=k0($,j);function X(re=0,le=0){W.drawImage(g,O,V,N,K,re,le,N,K)}return X(),X(N+Y,-K/2-q/2),X(N+Y,+K/2+q/2),[H.toDataURL(),$/r,j/r]}return e}const xce=J({name:"ElWatermark"}),kce=J({...xce,props:_ce,setup(e){const t=e,n={position:"relative"},r=k(()=>{var O,V;return(V=(O=t.font)==null?void 0:O.color)!=null?V:"rgba(0,0,0,.15)"}),a=k(()=>{var O,V;return(V=(O=t.font)==null?void 0:O.fontSize)!=null?V:16}),i=k(()=>{var O,V;return(V=(O=t.font)==null?void 0:O.fontWeight)!=null?V:"normal"}),o=k(()=>{var O,V;return(V=(O=t.font)==null?void 0:O.fontStyle)!=null?V:"normal"}),s=k(()=>{var O,V;return(V=(O=t.font)==null?void 0:O.fontFamily)!=null?V:"sans-serif"}),l=k(()=>{var O,V;return(V=(O=t.font)==null?void 0:O.textAlign)!=null?V:"center"}),u=k(()=>{var O,V;return(V=(O=t.font)==null?void 0:O.textBaseline)!=null?V:"hanging"}),c=k(()=>t.gap[0]),d=k(()=>t.gap[1]),p=k(()=>c.value/2),h=k(()=>d.value/2),v=k(()=>{var O,V;return(V=(O=t.offset)==null?void 0:O[0])!=null?V:p.value}),m=k(()=>{var O,V;return(V=(O=t.offset)==null?void 0:O[1])!=null?V:h.value}),g=()=>{const O={zIndex:t.zIndex,position:"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",backgroundRepeat:"repeat"};let V=v.value-p.value,N=m.value-h.value;return V>0&&(O.left=`${V}px`,O.width=`calc(100% - ${V}px)`,V=0),N>0&&(O.top=`${N}px`,O.height=`calc(100% - ${N}px)`,N=0),O.backgroundPosition=`${V}px ${N}px`,O},y=cn(null),T=cn(),b=z(!1),_=()=>{T.value&&(T.value.remove(),T.value=void 0)},w=(O,V)=>{var N;y.value&&T.value&&(b.value=!0,T.value.setAttribute("style",wce({...g(),backgroundImage:`url('${O}')`,backgroundSize:`${Math.floor(V)}px`})),(N=y.value)==null||N.append(T.value),setTimeout(()=>{b.value=!1}))},S=O=>{let V=120,N=64;const K=t.image,Y=t.content,q=t.width,$=t.height;if(!K&&O.measureText){O.font=`${Number(a.value)}px ${s.value}`;const j=Be(Y)?Y:[Y],W=j.map(H=>{const X=O.measureText(H);return[X.width,X.fontBoundingBoxAscent!==void 0?X.fontBoundingBoxAscent+X.fontBoundingBoxDescent:X.actualBoundingBoxAscent+X.actualBoundingBoxDescent]});V=Math.ceil(Math.max(...W.map(H=>H[0]))),N=Math.ceil(Math.max(...W.map(H=>H[1])))*j.length+(j.length-1)*H4}return[q??V,$??N]},A=Ece(),I=()=>{const V=document.createElement("canvas").getContext("2d"),N=t.image,K=t.content,Y=t.rotate;if(V){T.value||(T.value=document.createElement("div"));const q=Sce(),[$,j]=S(V),W=H=>{const[X,re]=A(H||"",Y,q,$,j,{color:r.value,fontSize:a.value,fontStyle:o.value,fontWeight:i.value,fontFamily:s.value,textAlign:l.value,textBaseline:u.value},c.value,d.value);w(X,re)};if(N){const H=new Image;H.onload=()=>{W(H)},H.onerror=()=>{W(K)},H.crossOrigin="anonymous",H.referrerPolicy="no-referrer",H.src=N}else W(K)}};return ht(()=>{I()}),Ie(()=>t,()=>{I()},{deep:!0,flush:"post"}),fn(()=>{_()}),CI(y,O=>{b.value||O.forEach(V=>{Cce(V,T.value)&&(_(),I())})},{attributes:!0,subtree:!0,childList:!0}),(O,V)=>(x(),U("div",{ref_key:"containerRef",ref:y,style:tt([n])},[fe(O.$slots,"default")],4))}});var Ace=He(kce,[["__file","watermark.vue"]]);const Dce=Et(Ace),Ice=Ue({zIndex:{type:Number,default:1001},visible:Boolean,fill:{type:String,default:"rgba(0,0,0,0.5)"},pos:{type:ue(Object)},targetAreaClickable:{type:Boolean,default:!0}}),Pce=(e,t,n,r,a)=>{const i=z(null),o=()=>{let d;return rt(e.value)?d=document.querySelector(e.value):ot(e.value)?d=e.value():d=e.value,d},s=()=>{const d=o();if(!d||!t.value){i.value=null;return}Oce(d)||d.scrollIntoView(a.value);const{left:p,top:h,width:v,height:m}=d.getBoundingClientRect();i.value={left:p,top:h,width:v,height:m,radius:0}};ht(()=>{Ie([t,e],()=>{s()},{immediate:!0}),window.addEventListener("resize",s)}),fn(()=>{window.removeEventListener("resize",s)});const l=d=>{var p;return(p=Be(n.value.offset)?n.value.offset[d]:n.value.offset)!=null?p:6},u=k(()=>{var d;if(!i.value)return i.value;const p=l(0),h=l(1),v=((d=n.value)==null?void 0:d.radius)||2;return{left:i.value.left-p,top:i.value.top-h,width:i.value.width+p*2,height:i.value.height+h*2,radius:v}}),c=k(()=>{const d=o();return!r.value||!d||!window.DOMRect?d||void 0:{getBoundingClientRect(){var p,h,v,m;return window.DOMRect.fromRect({width:((p=u.value)==null?void 0:p.width)||0,height:((h=u.value)==null?void 0:h.height)||0,x:((v=u.value)==null?void 0:v.left)||0,y:((m=u.value)==null?void 0:m.top)||0})}}});return{mergedPosInfo:u,triggerTarget:c}},ng=Symbol("ElTour");function Oce(e){const t=window.innerWidth||document.documentElement.clientWidth,n=window.innerHeight||document.documentElement.clientHeight,{top:r,right:a,bottom:i,left:o}=e.getBoundingClientRect();return r>=0&&o>=0&&a<=t&&i<=n}const Mce=(e,t,n,r,a,i,o,s)=>{const l=z(),u=z(),c=z({}),d={x:l,y:u,placement:r,strategy:a,middlewareData:c},p=k(()=>{const y=[w4(f(i)),$le(),Fle(),Rce()];return f(s)&&f(n)&&y.push(S4({element:f(n)})),y}),h=async()=>{if(!Wt)return;const y=f(e),T=f(t);if(!y||!T)return;const b=await C4(y,T,{placement:f(r),strategy:f(a),middleware:f(p)});Qu(d).forEach(_=>{d[_].value=b[_]})},v=k(()=>{if(!f(e))return{position:"fixed",top:"50%",left:"50%",transform:"translate3d(-50%, -50%, 0)",maxWidth:"100vw",zIndex:f(o)};const{overflow:y}=f(c);return{position:f(a),zIndex:f(o),top:f(u)!=null?`${f(u)}px`:"",left:f(l)!=null?`${f(l)}px`:"",maxWidth:y!=null&&y.maxWidth?`${y==null?void 0:y.maxWidth}px`:""}}),m=k(()=>{if(!f(s))return{};const{arrow:y}=f(c);return{left:(y==null?void 0:y.x)!=null?`${y==null?void 0:y.x}px`:"",top:(y==null?void 0:y.y)!=null?`${y==null?void 0:y.y}px`:""}});let g;return ht(()=>{const y=f(e),T=f(t);y&&T&&(g=Lle(y,T,h)),_r(()=>{h()})}),fn(()=>{g&&g()}),{update:h,contentStyle:v,arrowStyle:m}},Rce=()=>({name:"overflow",async fn(e){const t=await Nle(e);let n=0;return t.left>0&&(n=t.left),t.right>0&&(n=t.right),{data:{maxWidth:e.rects.floating.width-n}}}}),Lce=J({name:"ElTourMask",inheritAttrs:!1}),Nce=J({...Lce,props:Ice,setup(e){const t=e,{ns:n}=Qe(ng),r=k(()=>{var s,l;return(l=(s=t.pos)==null?void 0:s.radius)!=null?l:2}),a=k(()=>{const s=r.value,l=`a${s},${s} 0 0 1`;return{topRight:`${l} ${s},${s}`,bottomRight:`${l} ${-s},${s}`,bottomLeft:`${l} ${-s},${-s}`,topLeft:`${l} ${s},${-s}`}}),i=k(()=>{const s=window.innerWidth,l=window.innerHeight,u=a.value,c=`M${s},0 L0,0 L0,${l} L${s},${l} L${s},0 Z`,d=r.value;return t.pos?`${c} M${t.pos.left+d},${t.pos.top} h${t.pos.width-d*2} ${u.topRight} v${t.pos.height-d*2} ${u.bottomRight} h${-t.pos.width+d*2} ${u.bottomLeft} v${-t.pos.height+d*2} ${u.topLeft} z`:c}),o=k(()=>({fill:t.fill,pointerEvents:"auto",cursor:"auto"}));return J1(rn(t,"visible"),{ns:n}),(s,l)=>s.visible?(x(),U("div",Ft({key:0,class:f(n).e("mask"),style:{position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:s.zIndex,pointerEvents:s.pos&&s.targetAreaClickable?"none":"auto"}},s.$attrs),[(x(),U("svg",{style:{width:"100%",height:"100%"}},[M("path",{class:F(f(n).e("hollow")),style:tt(f(o)),d:f(i)},null,14,["d"])]))],16)):oe("v-if",!0)}});var Fce=He(Nce,[["__file","mask.vue"]]);const $ce=["absolute","fixed"],Bce=["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],L2=Ue({placement:{type:ue(String),values:Bce,default:"bottom"},reference:{type:ue(Object),default:null},strategy:{type:ue(String),values:$ce,default:"absolute"},offset:{type:Number,default:10},showArrow:Boolean,zIndex:{type:Number,default:2001}}),Vce={close:()=>!0},Uce=J({name:"ElTourContent"}),Hce=J({...Uce,props:L2,emits:Vce,setup(e,{emit:t}){const n=e,r=z(n.placement),a=z(n.strategy),i=z(null),o=z(null);Ie(()=>n.placement,()=>{r.value=n.placement});const{contentStyle:s,arrowStyle:l}=Mce(rn(n,"reference"),i,o,r,a,rn(n,"offset"),rn(n,"zIndex"),rn(n,"showArrow")),u=k(()=>r.value.split("-")[0]),{ns:c}=Qe(ng),d=()=>{t("close")},p=h=>{h.detail.focusReason==="pointer"&&h.preventDefault()};return(h,v)=>(x(),U("div",{ref_key:"contentRef",ref:i,style:tt(f(s)),class:F(f(c).e("content")),"data-side":f(u),tabindex:"-1"},[E(f(Rc),{loop:"",trapped:"","focus-start-el":"container","focus-trap-el":i.value||void 0,onReleaseRequested:d,onFocusoutPrevented:p},{default:P(()=>[fe(h.$slots,"default")]),_:3},8,["focus-trap-el"]),h.showArrow?(x(),U("span",{key:0,ref_key:"arrowRef",ref:o,style:tt(f(l)),class:F(f(c).e("arrow"))},null,6)):oe("v-if",!0)],14,["data-side"]))}});var zce=He(Hce,[["__file","content.vue"]]),jce=J({name:"ElTourSteps",props:{current:{type:Number,default:0}},emits:["update-total"],setup(e,{slots:t,emit:n}){let r=0;return()=>{var a,i;const o=(a=t.default)==null?void 0:a.call(t),s=[];let l=0;function u(c){Be(c)&&c.forEach(d=>{var p;((p=(d==null?void 0:d.type)||{})==null?void 0:p.name)==="ElTourStep"&&(s.push(d),l+=1)})}return o.length&&u(Fo((i=o[0])==null?void 0:i.children)),r!==l&&(r=l,n("update-total",l)),s.length?s[e.current]:null}}});const Wce=Ue({modelValue:Boolean,current:{type:Number,default:0},showArrow:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeIcon:{type:dn},placement:L2.placement,contentStyle:{type:ue([Object])},mask:{type:ue([Boolean,Object]),default:!0},gap:{type:ue(Object),default:()=>({offset:6,radius:2})},zIndex:{type:Number},scrollIntoViewOptions:{type:ue([Boolean,Object]),default:()=>({block:"center"})},type:{type:ue(String)},appendTo:{type:ue([String,Object]),default:"body"},closeOnPressEscape:{type:Boolean,default:!0},targetAreaClickable:{type:Boolean,default:!0}}),Kce={[_t]:e=>pn(e),"update:current":e=>st(e),close:e=>st(e),finish:()=>!0,change:e=>st(e)},qce=J({name:"ElTour"}),Gce=J({...qce,props:Wce,emits:Kce,setup(e,{emit:t}){const n=e,r=Le("tour"),a=z(0),i=z(),o=EI(n,"current",t,{passive:!0}),s=k(()=>{var D;return(D=i.value)==null?void 0:D.target}),l=k(()=>[r.b(),g.value==="primary"?r.m("primary"):""]),u=k(()=>{var D;return((D=i.value)==null?void 0:D.placement)||n.placement}),c=k(()=>{var D,O;return(O=(D=i.value)==null?void 0:D.contentStyle)!=null?O:n.contentStyle}),d=k(()=>{var D,O;return(O=(D=i.value)==null?void 0:D.mask)!=null?O:n.mask}),p=k(()=>!!d.value&&n.modelValue),h=k(()=>pn(d.value)?void 0:d.value),v=k(()=>{var D,O;return!!s.value&&((O=(D=i.value)==null?void 0:D.showArrow)!=null?O:n.showArrow)}),m=k(()=>{var D,O;return(O=(D=i.value)==null?void 0:D.scrollIntoViewOptions)!=null?O:n.scrollIntoViewOptions}),g=k(()=>{var D,O;return(O=(D=i.value)==null?void 0:D.type)!=null?O:n.type}),{nextZIndex:y}=Oc(),T=y(),b=k(()=>{var D;return(D=n.zIndex)!=null?D:T}),{mergedPosInfo:_,triggerTarget:w}=Pce(s,rn(n,"modelValue"),rn(n,"gap"),d,m);Ie(()=>n.modelValue,D=>{D||(o.value=0)});const S=()=>{n.closeOnPressEscape&&(t(_t,!1),t("close",o.value))},A=D=>{a.value=D},I=ir();return Vt(ng,{currentStep:i,current:o,total:a,showClose:rn(n,"showClose"),closeIcon:rn(n,"closeIcon"),mergedType:g,ns:r,slots:I,updateModelValue(D){t(_t,D)},onClose(){t("close",o.value)},onFinish(){t("finish")},onChange(){t($t,o.value)}}),(D,O)=>(x(),U(Ge,null,[E(f(Lc),{to:D.appendTo},{default:P(()=>{var V,N;return[M("div",Ft({class:f(l)},D.$attrs),[E(Fce,{visible:f(p),fill:(V=f(h))==null?void 0:V.color,style:tt((N=f(h))==null?void 0:N.style),pos:f(_),"z-index":f(b),"target-area-clickable":D.targetAreaClickable},null,8,["visible","fill","style","pos","z-index","target-area-clickable"]),D.modelValue?(x(),he(zce,{key:f(o),reference:f(w),placement:f(u),"show-arrow":f(v),"z-index":f(b),style:tt(f(c)),onClose:S},{default:P(()=>[E(f(jce),{current:f(o),onUpdateTotal:A},{default:P(()=>[fe(D.$slots,"default")]),_:3},8,["current"])]),_:3},8,["reference","placement","show-arrow","z-index","style"])):oe("v-if",!0)],16)]}),_:3},8,["to"]),oe(" just for IDE "),oe("v-if",!0)],64))}});var Yce=He(Gce,[["__file","tour.vue"]]);const Xce=Ue({target:{type:ue([String,Object,Function])},title:String,description:String,showClose:{type:Boolean,default:void 0},closeIcon:{type:dn},showArrow:{type:Boolean,default:void 0},placement:L2.placement,mask:{type:ue([Boolean,Object]),default:void 0},contentStyle:{type:ue([Object])},prevButtonProps:{type:ue(Object)},nextButtonProps:{type:ue(Object)},scrollIntoViewOptions:{type:ue([Boolean,Object]),default:void 0},type:{type:ue(String)}}),Qce={close:()=>!0},Jce=J({name:"ElTourStep"}),Zce=J({...Jce,props:Xce,emits:Qce,setup(e,{emit:t}){const n=e,{Close:r}=m1,{t:a}=Kt(),{currentStep:i,current:o,total:s,showClose:l,closeIcon:u,mergedType:c,ns:d,slots:p,updateModelValue:h,onClose:v,onFinish:m,onChange:g}=Qe(ng);Ie(n,I=>{i.value=I},{immediate:!0});const y=k(()=>{var I;return(I=n.showClose)!=null?I:l.value}),T=k(()=>{var I,D;return(D=(I=n.closeIcon)!=null?I:u.value)!=null?D:r}),b=I=>{if(I)return bH(I,["children","onClick"])},_=()=>{var I,D;o.value-=1,(I=n.prevButtonProps)!=null&&I.onClick&&((D=n.prevButtonProps)==null||D.onClick()),g()},w=()=>{var I;o.value>=s.value-1?S():o.value+=1,(I=n.nextButtonProps)!=null&&I.onClick&&n.nextButtonProps.onClick(),g()},S=()=>{A(),m()},A=()=>{h(!1),v(),t("close")};return(I,D)=>(x(),U(Ge,null,[f(y)?(x(),U("button",{key:0,"aria-label":"Close",class:F(f(d).e("closebtn")),type:"button",onClick:A},[E(f(et),{class:F(f(d).e("close"))},{default:P(()=>[(x(),he(Lt(f(T))))]),_:1},8,["class"])],2)):oe("v-if",!0),M("header",{class:F([f(d).e("header"),{"show-close":f(l)}])},[fe(I.$slots,"header",{},()=>[M("span",{role:"heading",class:F(f(d).e("title"))},de(I.title),3)])],2),M("div",{class:F(f(d).e("body"))},[fe(I.$slots,"default",{},()=>[M("span",null,de(I.description),1)])],2),M("footer",{class:F(f(d).e("footer"))},[M("div",{class:F(f(d).b("indicators"))},[f(p).indicators?(x(),he(Lt(f(p).indicators),{key:0,current:f(o),total:f(s)},null,8,["current","total"])):(x(!0),U(Ge,{key:1},mt(f(s),(O,V)=>(x(),U("span",{key:O,class:F([f(d).b("indicator"),V===f(o)?"is-active":""])},null,2))),128))],2),M("div",{class:F(f(d).b("buttons"))},[f(o)>0?(x(),he(f(_n),Ft({key:0,size:"small",type:f(c)},b(I.prevButtonProps),{onClick:_}),{default:P(()=>{var O,V;return[we(de((V=(O=I.prevButtonProps)==null?void 0:O.children)!=null?V:f(a)("el.tour.previous")),1)]}),_:1},16,["type"])):oe("v-if",!0),f(o)<=f(s)-1?(x(),he(f(_n),Ft({key:1,size:"small",type:f(c)==="primary"?"default":"primary"},b(I.nextButtonProps),{onClick:w}),{default:P(()=>{var O,V;return[we(de((V=(O=I.nextButtonProps)==null?void 0:O.children)!=null?V:f(o)===f(s)-1?f(a)("el.tour.finish"):f(a)("el.tour.next")),1)]}),_:1},16,["type"])):oe("v-if",!0)],2)],2)],64))}});var z4=He(Zce,[["__file","step.vue"]]);const ede=Et(Yce,{TourStep:z4}),tde=On(z4),nde=Ue({container:{type:ue([String,Object])},offset:{type:Number,default:0},bound:{type:Number,default:15},duration:{type:Number,default:300},marker:{type:Boolean,default:!0},type:{type:ue(String),default:"default"},direction:{type:ue(String),default:"vertical"},selectScrollTop:{type:Boolean,default:!1}}),rde={change:e=>rt(e),click:(e,t)=>e instanceof MouseEvent&&(rt(t)||Xt(t))},j4=Symbol("anchor"),mh=e=>{if(!Wt||e==="")return null;if(rt(e))try{return document.querySelector(e)}catch{return null}return e};function ade(e){let t=0;const n=(...r)=>{t&&Ll(t),t=Os(()=>{e(...r),t=0})};return n.cancel=()=>{Ll(t),t=0},n}const ide=J({name:"ElAnchor"}),ode=J({...ide,props:nde,emits:rde,setup(e,{expose:t,emit:n}){const r=e,a=z(""),i=z(null),o=z(null),s=z(),l={};let u=!1,c=0;const d=Le("anchor"),p=k(()=>[d.b(),r.type==="underline"?d.m("underline"):"",d.m(r.direction)]),h=I=>{l[I.href]=I.el},v=I=>{delete l[I]},m=I=>{a.value!==I&&(a.value=I,n($t,I))};let g=null;const y=I=>{if(!s.value)return;const D=mh(I);if(!D)return;g&&g(),u=!0;const O=cC(D,s.value),V=By(D,O),N=O.scrollHeight-O.clientHeight,K=Math.min(V-r.offset,N);g=E7(s.value,c,K,r.duration,()=>{setTimeout(()=>{u=!1},20)})},T=I=>{I&&(m(I),y(I))},b=(I,D)=>{n("click",I,D),T(D)},_=ade(()=>{s.value&&(c=dC(s.value));const I=w();u||Xt(I)||m(I)}),w=()=>{if(!s.value)return;const I=dC(s.value),D=[];for(const O of Object.keys(l)){const V=mh(O);if(!V)continue;const N=cC(V,s.value),K=By(V,N);D.push({top:K-r.offset-r.bound,href:O})}D.sort((O,V)=>O.top-V.top);for(let O=0;O<D.length;O++){const V=D[O],N=D[O+1];if(O===0&&I===0)return r.selectScrollTop?V.href:"";if(V.top<=I&&(!N||N.top>I))return V.href}},S=()=>{const I=mh(r.container);!I||Ov(I)?s.value=window:s.value=I};ln(s,"scroll",_);const A=k(()=>{if(!i.value||!o.value||!a.value)return{};const I=l[a.value];if(!I)return{};const D=i.value.getBoundingClientRect(),O=o.value.getBoundingClientRect(),V=I.getBoundingClientRect();return r.direction==="horizontal"?{left:`${V.left-D.left}px`,width:`${V.width}px`,opacity:1}:{top:`${V.top-D.top+(V.height-O.height)/2}px`,opacity:1}});return ht(()=>{S();const I=decodeURIComponent(window.location.hash);mh(I)?T(I):_()}),Ie(()=>r.container,()=>{S()}),Vt(j4,{ns:d,direction:r.direction,currentAnchor:a,addLink:h,removeLink:v,handleClick:b}),t({scrollTo:T}),(I,D)=>(x(),U("div",{ref_key:"anchorRef",ref:i,class:F(f(p))},[I.marker?(x(),U("div",{key:0,ref_key:"markerRef",ref:o,class:F(f(d).e("marker")),style:tt(f(A))},null,6)):oe("v-if",!0),M("div",{class:F(f(d).e("list"))},[fe(I.$slots,"default")],2)],2))}});var sde=He(ode,[["__file","anchor.vue"]]);const lde=Ue({title:String,href:String}),ude=J({name:"ElAnchorLink"}),cde=J({...ude,props:lde,setup(e){const t=e,n=z(null),{ns:r,direction:a,currentAnchor:i,addLink:o,removeLink:s,handleClick:l}=Qe(j4),u=k(()=>[r.e("link"),r.is("active",i.value===t.href)]),c=d=>{l(d,t.href)};return Ie(()=>t.href,(d,p)=>{it(()=>{p&&s(p),d&&o({href:d,el:n.value})})}),ht(()=>{const{href:d}=t;d&&o({href:d,el:n.value})}),fn(()=>{const{href:d}=t;d&&s(d)}),(d,p)=>(x(),U("div",{class:F(f(r).e("item"))},[M("a",{ref_key:"linkRef",ref:n,class:F(f(u)),href:d.href,onClick:c},[fe(d.$slots,"default",{},()=>[we(de(d.title),1)])],10,["href"]),d.$slots["sub-link"]&&f(a)==="vertical"?(x(),U("div",{key:0,class:F(f(r).e("list"))},[fe(d.$slots,"sub-link")],2)):oe("v-if",!0)],2))}});var W4=He(cde,[["__file","anchor-link.vue"]]);const dde=Et(sde,{AnchorLink:W4}),fde=On(W4),pde=Ue({direction:{type:ue(String),default:"horizontal"},options:{type:ue(Array),default:()=>[]},modelValue:{type:[String,Number,Boolean],default:void 0},block:Boolean,size:Xn,disabled:Boolean,validateEvent:{type:Boolean,default:!0},id:String,name:String,...Er(["ariaLabel"])}),hde={[_t]:e=>rt(e)||st(e)||pn(e),[$t]:e=>rt(e)||st(e)||pn(e)},mde=J({name:"ElSegmented"}),vde=J({...mde,props:pde,emits:hde,setup(e,{emit:t}){const n=e,r=Le("segmented"),a=wr(),i=Kn(),o=Mr(),{formItem:s}=Or(),{inputId:l,isLabeledByFormItem:u}=si(n,{formItemContext:s}),c=z(null),d=GH(),p=Ct({isInit:!1,width:0,height:0,translateX:0,translateY:0,focusVisible:!1}),h=D=>{const O=v(D);t(_t,O),t($t,O)},v=D=>It(D)?D.value:D,m=D=>It(D)?D.label:D,g=D=>!!(o.value||It(D)&&D.disabled),y=D=>n.modelValue===v(D),T=D=>n.options.find(O=>v(O)===D),b=D=>[r.e("item"),r.is("selected",y(D)),r.is("disabled",g(D))],_=()=>{if(!c.value)return;const D=c.value.querySelector(".is-selected"),O=c.value.querySelector(".is-selected input");if(!D||!O){p.width=0,p.height=0,p.translateX=0,p.translateY=0,p.focusVisible=!1;return}const V=D.getBoundingClientRect();p.isInit=!0,n.direction==="vertical"?(p.height=V.height,p.translateY=D.offsetTop):(p.width=V.width,p.translateX=D.offsetLeft);try{p.focusVisible=O.matches(":focus-visible")}catch{}},w=k(()=>[r.b(),r.m(i.value),r.is("block",n.block)]),S=k(()=>({width:n.direction==="vertical"?"100%":`${p.width}px`,height:n.direction==="vertical"?`${p.height}px`:"100%",transform:n.direction==="vertical"?`translateY(${p.translateY}px)`:`translateX(${p.translateX}px)`,display:p.isInit?"block":"none"})),A=k(()=>[r.e("item-selected"),r.is("disabled",g(T(n.modelValue))),r.is("focus-visible",p.focusVisible)]),I=k(()=>n.name||a.value);return In(c,_),Ie(d,_),Ie(()=>n.modelValue,()=>{var D;_(),n.validateEvent&&((D=s==null?void 0:s.validate)==null||D.call(s,"change").catch(O=>void 0))},{flush:"post"}),(D,O)=>D.options.length?(x(),U("div",{key:0,id:f(l),ref_key:"segmentedRef",ref:c,class:F(f(w)),role:"radiogroup","aria-label":f(u)?void 0:D.ariaLabel||"segmented","aria-labelledby":f(u)?f(s).labelId:void 0},[M("div",{class:F([f(r).e("group"),f(r).m(n.direction)])},[M("div",{style:tt(f(S)),class:F(f(A))},null,6),(x(!0),U(Ge,null,mt(D.options,(V,N)=>(x(),U("label",{key:N,class:F(b(V))},[M("input",{class:F(f(r).e("item-input")),type:"radio",name:f(I),disabled:g(V),checked:y(V),onChange:K=>h(V)},null,42,["name","disabled","checked","onChange"]),M("div",{class:F(f(r).e("item-label"))},[fe(D.$slots,"default",{item:V},()=>[we(de(m(V)),1)])],2)],2))),128))],2)],10,["id","aria-label","aria-labelledby"])):oe("v-if",!0)}});var gde=He(vde,[["__file","segmented.vue"]]);const yde=Et(gde),bde=(e,t)=>{const n=e.toLowerCase();return(t.label||t.value).toLowerCase().includes(n)},_de=(e,t,n)=>{const{selectionEnd:r}=e;if(r===null)return;const a=e.value,i=$r(t);let o=-1,s;for(let l=r-1;l>=0;--l){const u=a[l];if(u===n||u===`
`||u==="\r"){o=l;continue}if(i.includes(u)){const c=o===-1?r:o;s={pattern:a.slice(l+1,c),start:l+1,end:c,prefix:u,prefixIndex:l,splitIndex:o,selectionEnd:r};break}}return s},Tde=(e,t={debug:!1,useSelectionEnd:!1})=>{const n=e.selectionStart!==null?e.selectionStart:0,r=e.selectionEnd!==null?e.selectionEnd:0,a=t.useSelectionEnd?r:n,i=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"];if(t.debug){const p=document.querySelector("#input-textarea-caret-position-mirror-div");p!=null&&p.parentNode&&p.parentNode.removeChild(p)}const o=document.createElement("div");o.id="input-textarea-caret-position-mirror-div",document.body.appendChild(o);const s=o.style,l=window.getComputedStyle(e),u=e.nodeName==="INPUT";s.whiteSpace=u?"nowrap":"pre-wrap",u||(s.wordWrap="break-word"),s.position="absolute",t.debug||(s.visibility="hidden"),i.forEach(p=>{if(u&&p==="lineHeight")if(l.boxSizing==="border-box"){const h=Number.parseInt(l.height),v=Number.parseInt(l.paddingTop)+Number.parseInt(l.paddingBottom)+Number.parseInt(l.borderTopWidth)+Number.parseInt(l.borderBottomWidth),m=v+Number.parseInt(l.lineHeight);h>m?s.lineHeight=`${h-v}px`:h===m?s.lineHeight=l.lineHeight:s.lineHeight="0"}else s.lineHeight=l.height;else s[p]=l[p]}),Bv()?e.scrollHeight>Number.parseInt(l.height)&&(s.overflowY="scroll"):s.overflow="hidden",o.textContent=e.value.slice(0,Math.max(0,a)),u&&o.textContent&&(o.textContent=o.textContent.replace(/\s/g," "));const c=document.createElement("span");c.textContent=e.value.slice(Math.max(0,a))||".",c.style.position="relative",c.style.left=`${-e.scrollLeft}px`,c.style.top=`${-e.scrollTop}px`,o.appendChild(c);const d={top:c.offsetTop+Number.parseInt(l.borderTopWidth),left:c.offsetLeft+Number.parseInt(l.borderLeftWidth),height:Number.parseInt(l.fontSize)*1.5};return t.debug?c.style.backgroundColor="#aaa":document.body.removeChild(o),d.left>=e.clientWidth&&(d.left=e.clientWidth),d},wde=Ue({...g1,options:{type:ue(Array),default:()=>[]},prefix:{type:ue([String,Array]),default:"@",validator:e=>rt(e)?e.length===1:e.every(t=>rt(t)&&t.length===1)},split:{type:String,default:" ",validator:e=>e.length===1},filterOption:{type:ue([Boolean,Function]),default:()=>bde,validator:e=>e===!1?!0:ot(e)},placement:{type:ue(String),default:"bottom"},showArrow:Boolean,offset:{type:Number,default:0},whole:Boolean,checkIsWhole:{type:ue(Function)},modelValue:String,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:ue(Object),default:()=>({})}}),Sde={[_t]:e=>rt(e),search:(e,t)=>rt(e)&&rt(t),select:(e,t)=>rt(e.value)&&rt(t),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent},Cde=Ue({options:{type:ue(Array),default:()=>[]},loading:Boolean,disabled:Boolean,contentId:String,ariaLabel:String}),Ede={select:e=>rt(e.value)},xde=J({name:"ElMentionDropdown"}),kde=J({...xde,props:Cde,emits:Ede,setup(e,{expose:t,emit:n}){const r=e,a=Le("mention"),{t:i}=Kt(),o=z(-1),s=z(),l=z(),u=z(),c=(b,_)=>[a.be("dropdown","item"),a.is("hovering",o.value===_),a.is("disabled",b.disabled||r.disabled)],d=b=>{b.disabled||r.disabled||n("select",b)},p=b=>{o.value=b},h=k(()=>r.disabled||r.options.every(b=>b.disabled)),v=k(()=>r.options[o.value]),m=()=>{v.value&&n("select",v.value)},g=b=>{const{options:_}=r;if(_.length===0||h.value)return;b==="next"?(o.value++,o.value===_.length&&(o.value=0)):b==="prev"&&(o.value--,o.value<0&&(o.value=_.length-1));const w=_[o.value];if(w.disabled){g(b);return}it(()=>y(w))},y=b=>{var _,w,S,A;const{options:I}=r,D=I.findIndex(V=>V.value===b.value),O=(_=l.value)==null?void 0:_[D];if(O){const V=(S=(w=u.value)==null?void 0:w.querySelector)==null?void 0:S.call(w,`.${a.be("dropdown","wrap")}`);V&&o1(V,O)}(A=s.value)==null||A.handleScroll()};return Ie(()=>r.options,()=>{h.value||r.options.length===0?o.value=-1:o.value=0},{immediate:!0}),t({hoveringIndex:o,navigateOptions:g,selectHoverOption:m,hoverOption:v}),(b,_)=>(x(),U("div",{ref_key:"dropdownRef",ref:u,class:F(f(a).b("dropdown"))},[b.$slots.header?(x(),U("div",{key:0,class:F(f(a).be("dropdown","header"))},[fe(b.$slots,"header")],2)):oe("v-if",!0),gt(E(f(fo),{id:b.contentId,ref_key:"scrollbarRef",ref:s,tag:"ul","wrap-class":f(a).be("dropdown","wrap"),"view-class":f(a).be("dropdown","list"),role:"listbox","aria-label":b.ariaLabel,"aria-orientation":"vertical"},{default:P(()=>[(x(!0),U(Ge,null,mt(b.options,(w,S)=>(x(),U("li",{id:`${b.contentId}-${S}`,ref_for:!0,ref_key:"optionRefs",ref:l,key:S,class:F(c(w,S)),role:"option","aria-disabled":w.disabled||b.disabled||void 0,"aria-selected":o.value===S,onMousemove:A=>p(S),onClick:ft(A=>d(w),["stop"])},[fe(b.$slots,"label",{item:w,index:S},()=>{var A;return[M("span",null,de((A=w.label)!=null?A:w.value),1)]})],42,["id","aria-disabled","aria-selected","onMousemove","onClick"]))),128))]),_:3},8,["id","wrap-class","view-class","aria-label"]),[[zt,b.options.length>0&&!b.loading]]),b.loading?(x(),U("div",{key:1,class:F(f(a).be("dropdown","loading"))},[fe(b.$slots,"loading",{},()=>[we(de(f(i)("el.mention.loading")),1)])],2)):oe("v-if",!0),b.$slots.footer?(x(),U("div",{key:2,class:F(f(a).be("dropdown","footer"))},[fe(b.$slots,"footer")],2)):oe("v-if",!0)],2))}});var Ade=He(kde,[["__file","mention-dropdown.vue"]]);const Dde=J({name:"ElMention",inheritAttrs:!1}),Ide=J({...Dde,props:wde,emits:Sde,setup(e,{expose:t,emit:n}){const r=e,a=k(()=>hi(r,Object.keys(g1))),i=Le("mention"),o=Mr(),s=wr(),l=z(),u=z(),c=z(),d=z(!1),p=z(),h=z(),v=k(()=>r.showArrow?r.placement:`${r.placement}-start`),m=k(()=>r.showArrow?["bottom","top"]:["bottom-start","top-start"]),g=k(()=>{const{filterOption:N,options:K}=r;return!h.value||!N?K:K.filter(Y=>N(h.value.pattern,Y))}),y=k(()=>d.value&&(!!g.value.length||r.loading)),T=k(()=>{var N;return`${s.value}-${(N=c.value)==null?void 0:N.hoveringIndex}`}),b=N=>{n(_t,N),D()},_=N=>{var K,Y,q,$;if(!(!("code"in N)||(K=l.value)!=null&&K.isComposing))switch(N.code){case Ye.left:case Ye.right:D();break;case Ye.up:case Ye.down:if(!d.value)return;N.preventDefault(),(Y=c.value)==null||Y.navigateOptions(N.code===Ye.up?"prev":"next");break;case Ye.enter:case Ye.numpadEnter:if(!d.value)return;N.preventDefault(),(q=c.value)!=null&&q.hoverOption?($=c.value)==null||$.selectHoverOption():d.value=!1;break;case Ye.esc:if(!d.value)return;N.preventDefault(),d.value=!1;break;case Ye.backspace:if(r.whole&&h.value){const{splitIndex:j,selectionEnd:W,pattern:H,prefixIndex:X,prefix:re}=h.value,le=I();if(!le)return;const ne=le.value,be=r.options.find(ve=>ve.value===H);if((ot(r.checkIsWhole)?r.checkIsWhole(H,re):be)&&j!==-1&&j+1===W){N.preventDefault();const ve=ne.slice(0,X)+ne.slice(j+1);n(_t,ve);const te=X;it(()=>{le.selectionStart=te,le.selectionEnd=te,V()})}}}},{wrapperRef:w}=Ws(l,{beforeFocus(){return o.value},afterFocus(){D()},beforeBlur(N){var K;return(K=u.value)==null?void 0:K.isFocusInsideContent(N)},afterBlur(){d.value=!1}}),S=()=>{D()},A=N=>{if(!h.value)return;const K=I();if(!K)return;const Y=K.value,{split:q}=r,$=Y.slice(h.value.end),j=$.startsWith(q),W=`${N.value}${j?"":q}`,H=Y.slice(0,h.value.start)+W+$;n(_t,H),n("select",N,h.value.prefix);const X=h.value.start+W.length+(j?1:0);it(()=>{K.selectionStart=X,K.selectionEnd=X,K.focus(),V()})},I=()=>{var N,K;return r.type==="textarea"?(N=l.value)==null?void 0:N.textarea:(K=l.value)==null?void 0:K.input},D=()=>{setTimeout(()=>{O(),V(),it(()=>{var N;return(N=u.value)==null?void 0:N.updatePopper()})},0)},O=()=>{const N=I();if(!N)return;const K=Tde(N),Y=N.getBoundingClientRect(),q=l.value.$el.getBoundingClientRect();p.value={position:"absolute",width:0,height:`${K.height}px`,left:`${K.left+Y.left-q.left}px`,top:`${K.top+Y.top-q.top}px`}},V=()=>{const N=I();if(document.activeElement!==N){d.value=!1;return}const{prefix:K,split:Y}=r;if(h.value=_de(N,K,Y),h.value&&h.value.splitIndex===-1){d.value=!0,n("search",h.value.pattern,h.value.prefix);return}d.value=!1};return t({input:l,tooltip:u,dropdownVisible:y}),(N,K)=>(x(),U("div",{ref_key:"wrapperRef",ref:w,class:F([f(i).b(),f(i).is("disabled",f(o))])},[E(f(Wn),Ft(Ft(f(a),N.$attrs),{ref_key:"elInputRef",ref:l,"model-value":N.modelValue,disabled:f(o),role:f(y)?"combobox":void 0,"aria-activedescendant":f(y)?f(T)||"":void 0,"aria-controls":f(y)?f(s):void 0,"aria-expanded":f(y)||void 0,"aria-label":N.ariaLabel,"aria-autocomplete":f(y)?"none":void 0,"aria-haspopup":f(y)?"listbox":void 0,onInput:b,onKeydown:_,onMousedown:S}),Ua({_:2},[mt(N.$slots,(Y,q)=>({name:q,fn:P($=>[fe(N.$slots,q,Ra(to($)))])}))]),1040,["model-value","disabled","role","aria-activedescendant","aria-controls","aria-expanded","aria-label","aria-autocomplete","aria-haspopup"]),E(f(ar),{ref_key:"tooltipRef",ref:u,visible:f(y),"popper-class":[f(i).e("popper"),N.popperClass],"popper-options":N.popperOptions,placement:f(v),"fallback-placements":f(m),effect:"light",pure:"",offset:N.offset,"show-arrow":N.showArrow},{default:P(()=>[M("div",{style:tt(p.value)},null,4)]),content:P(()=>{var Y;return[E(Ade,{ref_key:"dropdownRef",ref:c,options:f(g),disabled:f(o),loading:N.loading,"content-id":f(s),"aria-label":N.ariaLabel,onSelect:A,onClick:ft((Y=l.value)==null?void 0:Y.focus,["stop"])},Ua({_:2},[mt(N.$slots,(q,$)=>({name:$,fn:P(j=>[fe(N.$slots,$,Ra(to(j)))])}))]),1032,["options","disabled","loading","content-id","aria-label","onClick"])]}),_:3},8,["visible","popper-class","popper-options","placement","fallback-placements","offset","show-arrow"])],2))}});var Pde=He(Ide,[["__file","mention.vue"]]);const Ode=Et(Pde);var Mde=[I7,Dj,wq,mse,O1,Rq,TP,Kq,qq,_n,AP,FG,HG,FP,$P,rX,JP,uX,ri,yY,jP,eO,DX,IX,hp,nQ,aO,$1,uO,cO,B1,V1,G1,LJ,NJ,Fc,NO,rZ,WO,KO,qO,$c,po,ho,et,qv,n2,Wn,vp,hte,XO,t3,n3,$te,r3,jte,Vc,Bne,Gne,vP,l3,zv,IY,R1,are,ure,u3,fo,ii,Ko,hne,T3,tae,nae,Tae,xae,S3,Fae,Kae,qae,gp,Gl,Yl,hse,Ise,Pse,ai,Nse,KQ,Hse,qse,Gse,ar,nue,mue,$m,Rue,Que,tg,Dce,ede,tde,dde,fde,yde,Ode];const qa="ElInfiniteScroll",Rde=50,Lde=200,Nde=0,Fde={delay:{type:Number,default:Lde},distance:{type:Number,default:Nde},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},N2=(e,t)=>Object.entries(Fde).reduce((n,[r,a])=>{var i,o;const{type:s,default:l}=a,u=e.getAttribute(`infinite-scroll-${r}`);let c=(o=(i=t[u])!=null?i:u)!=null?o:l;return c=c==="false"?!1:c,c=s(c),n[r]=Number.isNaN(c)?l:c,n},{}),K4=e=>{const{observer:t}=e[qa];t&&(t.disconnect(),delete e[qa].observer)},$de=(e,t)=>{const{container:n,containerEl:r,instance:a,observer:i,lastScrollTop:o}=e[qa],{disabled:s,distance:l}=N2(e,a),{clientHeight:u,scrollHeight:c,scrollTop:d}=r,p=d-o;if(e[qa].lastScrollTop=d,i||s||p<0)return;let h=!1;if(n===e)h=c-(u+d)<=l;else{const{clientTop:v,scrollHeight:m}=e,g=By(e,r);h=d+u>=g+v+m-l}h&&t.call(a)};function A0(e,t){const{containerEl:n,instance:r}=e[qa],{disabled:a}=N2(e,r);a||n.clientHeight===0||(n.scrollHeight<=n.clientHeight?t.call(r):K4(e))}const Bde={async mounted(e,t){const{instance:n,value:r}=t;ot(r)||rr(qa,"'v-infinite-scroll' binding value must be a function"),await it();const{delay:a,immediate:i}=N2(e,n),o=i1(e,!0),s=o===window?document.documentElement:o,l=wl($de.bind(null,e,r),a);if(o){if(e[qa]={instance:n,container:o,containerEl:s,delay:a,cb:r,onScroll:l,lastScrollTop:s.scrollTop},i){const u=new MutationObserver(wl(A0.bind(null,e,r),Rde));e[qa].observer=u,u.observe(e,{childList:!0,subtree:!0}),A0(e,r)}o.addEventListener("scroll",l)}},unmounted(e){if(!e[qa])return;const{container:t,onScroll:n}=e[qa];t==null||t.removeEventListener("scroll",n),K4(e)},async updated(e){if(!e[qa])await it();else{const{containerEl:t,cb:n,observer:r}=e[qa];t.clientHeight&&r&&A0(e,n)}}},Ab=Bde;Ab.install=e=>{e.directive("InfiniteScroll",Ab)};const Vde=Ab;function Ude(e){let t;const n=z(!1),r=Ct({...e,originalPosition:"",originalOverflow:"",visible:!1});function a(p){r.text=p}function i(){const p=r.parent,h=d.ns;if(!p.vLoadingAddClassList){let v=p.getAttribute("loading-number");v=Number.parseInt(v)-1,v?p.setAttribute("loading-number",v.toString()):(Ur(p,h.bm("parent","relative")),p.removeAttribute("loading-number")),Ur(p,h.bm("parent","hidden"))}o(),c.unmount()}function o(){var p,h;(h=(p=d.$el)==null?void 0:p.parentNode)==null||h.removeChild(d.$el)}function s(){var p;e.beforeClose&&!e.beforeClose()||(n.value=!0,clearTimeout(t),t=setTimeout(l,400),r.visible=!1,(p=e.closed)==null||p.call(e))}function l(){if(!n.value)return;const p=r.parent;n.value=!1,p.vLoadingAddClassList=void 0,i()}const c=Cv(J({name:"ElLoading",setup(p,{expose:h}){const{ns:v,zIndex:m}=Lv("loading");return h({ns:v,zIndex:m}),()=>{const g=r.spinner||r.svg,y=lt("svg",{class:"circular",viewBox:r.svgViewBox?r.svgViewBox:"0 0 50 50",...g?{innerHTML:g}:{}},[lt("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),T=r.text?lt("p",{class:v.b("text")},[r.text]):void 0;return lt(lr,{name:v.b("fade"),onAfterLeave:l},{default:P(()=>[gt(E("div",{style:{backgroundColor:r.background||""},class:[v.b("mask"),r.customClass,r.fullscreen?"is-fullscreen":""]},[lt("div",{class:v.b("spinner")},[y,T])]),[[zt,r.visible]])])})}}})),d=c.mount(document.createElement("div"));return{...mr(r),setText:a,removeElLoadingChild:o,close:s,handleAfterLeave:l,vm:d,get $el(){return d.$el}}}let vh;const Db=function(e={}){if(!Wt)return;const t=Hde(e);if(t.fullscreen&&vh)return vh;const n=Ude({...t,closed:()=>{var a;(a=t.closed)==null||a.call(t),t.fullscreen&&(vh=void 0)}});zde(t,t.parent,n),ZE(t,t.parent,n),t.parent.vLoadingAddClassList=()=>ZE(t,t.parent,n);let r=t.parent.getAttribute("loading-number");return r?r=`${Number.parseInt(r)+1}`:r="1",t.parent.setAttribute("loading-number",r),t.parent.appendChild(n.$el),it(()=>n.visible.value=t.visible),t.fullscreen&&(vh=n),n},Hde=e=>{var t,n,r,a;let i;return rt(e.target)?i=(t=document.querySelector(e.target))!=null?t:document.body:i=e.target||document.body,{parent:i===document.body||e.body?document.body:i,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:i===document.body&&((n=e.fullscreen)!=null?n:!0),lock:(r=e.lock)!=null?r:!1,customClass:e.customClass||"",visible:(a=e.visible)!=null?a:!0,beforeClose:e.beforeClose,closed:e.closed,target:i}},zde=async(e,t,n)=>{const{nextZIndex:r}=n.vm.zIndex||n.vm._.exposed.zIndex,a={};if(e.fullscreen)n.originalPosition.value=Mo(document.body,"position"),n.originalOverflow.value=Mo(document.body,"overflow"),a.zIndex=r();else if(e.parent===document.body){n.originalPosition.value=Mo(document.body,"position"),await it();for(const i of["top","left"]){const o=i==="top"?"scrollTop":"scrollLeft";a[i]=`${e.target.getBoundingClientRect()[i]+document.body[o]+document.documentElement[o]-Number.parseInt(Mo(document.body,`margin-${i}`),10)}px`}for(const i of["height","width"])a[i]=`${e.target.getBoundingClientRect()[i]}px`}else n.originalPosition.value=Mo(t,"position");for(const[i,o]of Object.entries(a))n.$el.style[i]=o},ZE=(e,t,n)=>{const r=n.vm.ns||n.vm._.exposed.ns;["absolute","fixed","sticky"].includes(n.originalPosition.value)?Ur(t,r.bm("parent","relative")):Ga(t,r.bm("parent","relative")),e.fullscreen&&e.lock?Ga(t,r.bm("parent","hidden")):Ur(t,r.bm("parent","hidden"))},Gh=Symbol("ElLoading"),ex=(e,t)=>{var n,r,a,i;const o=t.instance,s=p=>It(t.value)?t.value[p]:void 0,l=p=>{const h=rt(p)&&(o==null?void 0:o[p])||p;return h&&z(h)},u=p=>l(s(p)||e.getAttribute(`element-loading-${Jo(p)}`)),c=(n=s("fullscreen"))!=null?n:t.modifiers.fullscreen,d={text:u("text"),svg:u("svg"),svgViewBox:u("svgViewBox"),spinner:u("spinner"),background:u("background"),customClass:u("customClass"),fullscreen:c,target:(r=s("target"))!=null?r:c?void 0:e,body:(a=s("body"))!=null?a:t.modifiers.body,lock:(i=s("lock"))!=null?i:t.modifiers.lock};e[Gh]={options:d,instance:Db(d)}},jde=(e,t)=>{for(const n of Object.keys(t))yn(t[n])&&(t[n].value=e[n])},tx={mounted(e,t){t.value&&ex(e,t)},updated(e,t){const n=e[Gh];t.oldValue!==t.value&&(t.value&&!t.oldValue?ex(e,t):t.value&&t.oldValue?It(t.value)&&jde(t.value,n.options):n==null||n.instance.close())},unmounted(e){var t;(t=e[Gh])==null||t.instance.close(),e[Gh]=null}},Wde={install(e){e.directive("loading",tx),e.config.globalProperties.$loading=Db},directive:tx,service:Db},q4=["success","info","warning","error"],Rr=Pn({customClass:"",center:!1,dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",plain:!1,offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:Wt?document.body:void 0}),Kde=Ue({customClass:{type:String,default:Rr.customClass},center:{type:Boolean,default:Rr.center},dangerouslyUseHTMLString:{type:Boolean,default:Rr.dangerouslyUseHTMLString},duration:{type:Number,default:Rr.duration},icon:{type:dn,default:Rr.icon},id:{type:String,default:Rr.id},message:{type:ue([String,Object,Function]),default:Rr.message},onClose:{type:ue(Function),default:Rr.onClose},showClose:{type:Boolean,default:Rr.showClose},type:{type:String,values:q4,default:Rr.type},plain:{type:Boolean,default:Rr.plain},offset:{type:Number,default:Rr.offset},zIndex:{type:Number,default:Rr.zIndex},grouping:{type:Boolean,default:Rr.grouping},repeatNum:{type:Number,default:Rr.repeatNum}}),qde={destroy:()=>!0},mi=x_([]),Gde=e=>{const t=mi.findIndex(a=>a.id===e),n=mi[t];let r;return t>0&&(r=mi[t-1]),{current:n,prev:r}},Yde=e=>{const{prev:t}=Gde(e);return t?t.vm.exposed.bottom.value:0},Xde=(e,t)=>mi.findIndex(r=>r.id===e)>0?16:t,Qde=J({name:"ElMessage"}),Jde=J({...Qde,props:Kde,emits:qde,setup(e,{expose:t}){const n=e,{Close:r}=v1,{ns:a,zIndex:i}=Lv("message"),{currentZIndex:o,nextZIndex:s}=i,l=z(),u=z(!1),c=z(0);let d;const p=k(()=>n.type?n.type==="error"?"danger":n.type:"info"),h=k(()=>{const A=n.type;return{[a.bm("icon",A)]:A&&Ns[A]}}),v=k(()=>n.icon||Ns[n.type]||""),m=k(()=>Yde(n.id)),g=k(()=>Xde(n.id,n.offset)+m.value),y=k(()=>c.value+g.value),T=k(()=>({top:`${g.value}px`,zIndex:o.value}));function b(){n.duration!==0&&({stop:d}=Rl(()=>{w()},n.duration))}function _(){d==null||d()}function w(){u.value=!1}function S({code:A}){A===Ye.esc&&w()}return ht(()=>{b(),s(),u.value=!0}),Ie(()=>n.repeatNum,()=>{_(),b()}),ln(document,"keydown",S),In(l,()=>{c.value=l.value.getBoundingClientRect().height}),t({visible:u,bottom:y,close:w}),(A,I)=>(x(),he(lr,{name:f(a).b("fade"),onBeforeLeave:A.onClose,onAfterLeave:D=>A.$emit("destroy"),persisted:""},{default:P(()=>[gt(M("div",{id:A.id,ref_key:"messageRef",ref:l,class:F([f(a).b(),{[f(a).m(A.type)]:A.type},f(a).is("center",A.center),f(a).is("closable",A.showClose),f(a).is("plain",A.plain),A.customClass]),style:tt(f(T)),role:"alert",onMouseenter:_,onMouseleave:b},[A.repeatNum>1?(x(),he(f(TP),{key:0,value:A.repeatNum,type:f(p),class:F(f(a).e("badge"))},null,8,["value","type","class"])):oe("v-if",!0),f(v)?(x(),he(f(et),{key:1,class:F([f(a).e("icon"),f(h)])},{default:P(()=>[(x(),he(Lt(f(v))))]),_:1},8,["class"])):oe("v-if",!0),fe(A.$slots,"default",{},()=>[A.dangerouslyUseHTMLString?(x(),U(Ge,{key:1},[oe(" Caution here, message could've been compromised, never use user's input as message "),M("p",{class:F(f(a).e("content")),innerHTML:A.message},null,10,["innerHTML"])],2112)):(x(),U("p",{key:0,class:F(f(a).e("content"))},de(A.message),3))]),A.showClose?(x(),he(f(et),{key:2,class:F(f(a).e("closeBtn")),onClick:ft(w,["stop"])},{default:P(()=>[E(f(r))]),_:1},8,["class","onClick"])):oe("v-if",!0)],46,["id"]),[[zt,u.value]])]),_:3},8,["name","onBeforeLeave","onAfterLeave"]))}});var Zde=He(Jde,[["__file","message.vue"]]);let efe=1;const G4=e=>{const t=!e||rt(e)||wn(e)||ot(e)?{message:e}:e,n={...Rr,...t};if(!n.appendTo)n.appendTo=document.body;else if(rt(n.appendTo)){let r=document.querySelector(n.appendTo);oa(r)||(r=document.body),n.appendTo=r}return pn(ci.grouping)&&!n.grouping&&(n.grouping=ci.grouping),st(ci.duration)&&n.duration===3e3&&(n.duration=ci.duration),st(ci.offset)&&n.offset===16&&(n.offset=ci.offset),pn(ci.showClose)&&!n.showClose&&(n.showClose=ci.showClose),n},tfe=e=>{const t=mi.indexOf(e);if(t===-1)return;mi.splice(t,1);const{handler:n}=e;n.close()},nfe=({appendTo:e,...t},n)=>{const r=`message_${efe++}`,a=t.onClose,i=document.createElement("div"),o={...t,id:r,onClose:()=>{a==null||a(),tfe(c)},onDestroy:()=>{Is(null,i)}},s=E(Zde,o,ot(o.message)||wn(o.message)?{default:ot(o.message)?o.message:()=>o.message}:null);s.appContext=n||cc._context,Is(s,i),e.appendChild(i.firstElementChild);const l=s.component,c={id:r,vnode:s,vm:l,handler:{close:()=>{l.exposed.visible.value=!1}},props:s.component.props};return c},cc=(e={},t)=>{if(!Wt)return{close:()=>{}};const n=G4(e);if(n.grouping&&mi.length){const a=mi.find(({vnode:i})=>{var o;return((o=i.props)==null?void 0:o.message)===n.message});if(a)return a.props.repeatNum+=1,a.props.type=n.type,a.handler}if(st(ci.max)&&mi.length>=ci.max)return{close:()=>{}};const r=nfe(n,t);return mi.push(r),r.handler};q4.forEach(e=>{cc[e]=(t={},n)=>{const r=G4(t);return cc({...r,type:e},n)}});function rfe(e){for(const t of mi)(!e||e===t.props.type)&&t.handler.close()}cc.closeAll=rfe;cc._context=null;const at=$I(cc,"$message"),Ib="_trap-focus-children",yl=[],nx=e=>{if(yl.length===0)return;const t=yl[yl.length-1][Ib];if(t.length>0&&e.code===Ye.tab){if(t.length===1){e.preventDefault(),document.activeElement!==t[0]&&t[0].focus();return}const n=e.shiftKey,r=e.target===t[0],a=e.target===t[t.length-1];r&&n&&(e.preventDefault(),t[t.length-1].focus()),a&&!n&&(e.preventDefault(),t[0].focus())}},afe={beforeMount(e){e[Ib]=mC(e),yl.push(e),yl.length<=1&&document.addEventListener("keydown",nx)},updated(e){it(()=>{e[Ib]=mC(e)})},unmounted(){yl.shift(),yl.length===0&&document.removeEventListener("keydown",nx)}},ife=J({name:"ElMessageBox",directives:{TrapFocus:afe},components:{ElButton:_n,ElFocusTrap:Rc,ElInput:Wn,ElOverlay:Q1,ElIcon:et,...v1},inheritAttrs:!1,props:{buttonSize:{type:String,validator:E3},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,overflow:Boolean,roundButton:{default:!1,type:Boolean},container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(e,{emit:t}){const{locale:n,zIndex:r,ns:a,size:i}=Lv("message-box",k(()=>e.buttonSize)),{t:o}=n,{nextZIndex:s}=r,l=z(!1),u=Ct({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",closeIcon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:"",inputValidator:void 0,inputErrorMessage:"",message:"",modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonLoadingIcon:$o(ao),cancelButtonLoadingIcon:$o(ao),confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:s()}),c=k(()=>{const $=u.type;return{[a.bm("icon",$)]:$&&Ns[$]}}),d=wr(),p=wr(),h=k(()=>{const $=u.type;return u.icon||$&&Ns[$]||""}),v=k(()=>!!u.message),m=z(),g=z(),y=z(),T=z(),b=z(),_=k(()=>u.confirmButtonClass);Ie(()=>u.inputValue,async $=>{await it(),e.boxType==="prompt"&&$&&N()},{immediate:!0}),Ie(()=>l.value,$=>{var j,W;$&&(e.boxType!=="prompt"&&(u.autofocus?y.value=(W=(j=b.value)==null?void 0:j.$el)!=null?W:m.value:y.value=m.value),u.zIndex=s()),e.boxType==="prompt"&&($?it().then(()=>{var H;T.value&&T.value.$el&&(u.autofocus?y.value=(H=K())!=null?H:m.value:y.value=m.value)}):(u.editorErrorMessage="",u.validateError=!1))});const w=k(()=>e.draggable),S=k(()=>e.overflow);OO(m,g,w,S),ht(async()=>{await it(),e.closeOnHashChange&&window.addEventListener("hashchange",A)}),fn(()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",A)});function A(){l.value&&(l.value=!1,it(()=>{u.action&&t("action",u.action)}))}const I=()=>{e.closeOnClickModal&&V(u.distinguishCancelAndClose?"close":"cancel")},D=X1(I),O=$=>{if(u.inputType!=="textarea")return $.preventDefault(),V("confirm")},V=$=>{var j;e.boxType==="prompt"&&$==="confirm"&&!N()||(u.action=$,u.beforeClose?(j=u.beforeClose)==null||j.call(u,$,u,A):A())},N=()=>{if(e.boxType==="prompt"){const $=u.inputPattern;if($&&!$.test(u.inputValue||""))return u.editorErrorMessage=u.inputErrorMessage||o("el.messagebox.error"),u.validateError=!0,!1;const j=u.inputValidator;if(ot(j)){const W=j(u.inputValue);if(W===!1)return u.editorErrorMessage=u.inputErrorMessage||o("el.messagebox.error"),u.validateError=!0,!1;if(rt(W))return u.editorErrorMessage=W,u.validateError=!0,!1}}return u.editorErrorMessage="",u.validateError=!1,!0},K=()=>{var $,j;const W=($=T.value)==null?void 0:$.$refs;return(j=W==null?void 0:W.input)!=null?j:W==null?void 0:W.textarea},Y=()=>{V("close")},q=()=>{e.closeOnPressEscape&&Y()};return e.lockScroll&&J1(l),{...mr(u),ns:a,overlayEvent:D,visible:l,hasMessage:v,typeClass:c,contentId:d,inputId:p,btnSize:i,iconComponent:h,confirmButtonClasses:_,rootRef:m,focusStartRef:y,headerRef:g,inputRef:T,confirmRef:b,doClose:A,handleClose:Y,onCloseRequested:q,handleWrapperClick:I,handleInputEnter:O,handleAction:V,t:o}}});function ofe(e,t,n,r,a,i){const o=Rt("el-icon"),s=Rt("el-input"),l=Rt("el-button"),u=Rt("el-focus-trap"),c=Rt("el-overlay");return x(),he(lr,{name:"fade-in-linear",onAfterLeave:d=>e.$emit("vanish"),persisted:""},{default:P(()=>[gt(E(c,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:P(()=>[M("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:F(`${e.ns.namespace.value}-overlay-message-box`),onClick:e.overlayEvent.onClick,onMousedown:e.overlayEvent.onMousedown,onMouseup:e.overlayEvent.onMouseup},[E(u,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:P(()=>[M("div",{ref:"rootRef",class:F([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),{[e.ns.m("center")]:e.center}]),style:tt(e.customStyle),tabindex:"-1",onClick:ft(()=>{},["stop"])},[e.title!==null&&e.title!==void 0?(x(),U("div",{key:0,ref:"headerRef",class:F([e.ns.e("header"),{"show-close":e.showClose}])},[M("div",{class:F(e.ns.e("title"))},[e.iconComponent&&e.center?(x(),he(o,{key:0,class:F([e.ns.e("status"),e.typeClass])},{default:P(()=>[(x(),he(Lt(e.iconComponent)))]),_:1},8,["class"])):oe("v-if",!0),M("span",null,de(e.title),1)],2),e.showClose?(x(),U("button",{key:0,type:"button",class:F(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:d=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),onKeydown:sn(ft(d=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"])},[E(o,{class:F(e.ns.e("close"))},{default:P(()=>[(x(),he(Lt(e.closeIcon||"close")))]),_:1},8,["class"])],42,["aria-label","onClick","onKeydown"])):oe("v-if",!0)],2)):oe("v-if",!0),M("div",{id:e.contentId,class:F(e.ns.e("content"))},[M("div",{class:F(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?(x(),he(o,{key:0,class:F([e.ns.e("status"),e.typeClass])},{default:P(()=>[(x(),he(Lt(e.iconComponent)))]),_:1},8,["class"])):oe("v-if",!0),e.hasMessage?(x(),U("div",{key:1,class:F(e.ns.e("message"))},[fe(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(x(),he(Lt(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):(x(),he(Lt(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0},{default:P(()=>[we(de(e.dangerouslyUseHTMLString?"":e.message),1)]),_:1},8,["for"]))])],2)):oe("v-if",!0)],2),gt(M("div",{class:F(e.ns.e("input"))},[E(s,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":d=>e.inputValue=d,type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:F({invalid:e.validateError}),onKeydown:sn(e.handleInputEnter,["enter"])},null,8,["id","modelValue","onUpdate:modelValue","type","placeholder","aria-invalid","class","onKeydown"]),M("div",{class:F(e.ns.e("errormsg")),style:tt({visibility:e.editorErrorMessage?"visible":"hidden"})},de(e.editorErrorMessage),7)],2),[[zt,e.showInput]])],10,["id"]),M("div",{class:F(e.ns.e("btns"))},[e.showCancelButton?(x(),he(l,{key:0,loading:e.cancelButtonLoading,"loading-icon":e.cancelButtonLoadingIcon,class:F([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:d=>e.handleAction("cancel"),onKeydown:sn(ft(d=>e.handleAction("cancel"),["prevent"]),["enter"])},{default:P(()=>[we(de(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["loading","loading-icon","class","round","size","onClick","onKeydown"])):oe("v-if",!0),gt(E(l,{ref:"confirmRef",type:"primary",loading:e.confirmButtonLoading,"loading-icon":e.confirmButtonLoadingIcon,class:F([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:d=>e.handleAction("confirm"),onKeydown:sn(ft(d=>e.handleAction("confirm"),["prevent"]),["enter"])},{default:P(()=>[we(de(e.confirmButtonText||e.t("el.messagebox.confirm")),1)]),_:1},8,["loading","loading-icon","class","round","disabled","size","onClick","onKeydown"]),[[zt,e.showConfirmButton]])],2)],14,["onClick"])]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,["aria-label","aria-describedby","onClick","onMousedown","onMouseup"])]),_:3},8,["z-index","overlay-class","mask"]),[[zt,e.visible]])]),_:3},8,["onAfterLeave"])}var sfe=He(ife,[["render",ofe],["__file","index.vue"]]);const Nf=new Map,lfe=e=>{let t=document.body;return e.appendTo&&(rt(e.appendTo)&&(t=document.querySelector(e.appendTo)),oa(e.appendTo)&&(t=e.appendTo),oa(t)||(t=document.body)),t},ufe=(e,t,n=null)=>{const r=E(sfe,e,ot(e.message)||wn(e.message)?{default:ot(e.message)?e.message:()=>e.message}:null);return r.appContext=n,Is(r,t),lfe(e).appendChild(t.firstElementChild),r.component},cfe=()=>document.createElement("div"),dfe=(e,t)=>{const n=cfe();e.onVanish=()=>{Is(null,n),Nf.delete(a)},e.onAction=i=>{const o=Nf.get(a);let s;e.showInput?s={value:a.inputValue,action:i}:s=i,e.callback?e.callback(s,r.proxy):i==="cancel"||i==="close"?e.distinguishCancelAndClose&&i!=="cancel"?o.reject("close"):o.reject("cancel"):o.resolve(s)};const r=ufe(e,n,t),a=r.proxy;for(const i in e)Yt(e,i)&&!Yt(a.$props,i)&&(i==="closeIcon"&&It(e[i])?a[i]=$o(e[i]):a[i]=e[i]);return a.visible=!0,a};function Hc(e,t=null){if(!Wt)return Promise.reject();let n;return rt(e)||wn(e)?e={message:e}:n=e.callback,new Promise((r,a)=>{const i=dfe(e,t??Hc._context);Nf.set(i,{options:e,callback:n,resolve:r,reject:a})})}const ffe=["alert","confirm","prompt"],pfe={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};ffe.forEach(e=>{Hc[e]=hfe(e)});function hfe(e){return(t,n,r,a)=>{let i="";return It(n)?(r=n,i=""):Xt(n)?i="":i=n,Hc(Object.assign({title:i,message:t,type:"",...pfe[e]},r,{boxType:e}),a)}}Hc.close=()=>{Nf.forEach((e,t)=>{t.doClose()}),Nf.clear()};Hc._context=null;const ys=Hc;ys.install=e=>{ys._context=e._context,e.config.globalProperties.$msgbox=ys,e.config.globalProperties.$messageBox=ys,e.config.globalProperties.$alert=ys.alert,e.config.globalProperties.$confirm=ys.confirm,e.config.globalProperties.$prompt=ys.prompt};const Yh=ys,Y4=["success","info","warning","error"],mfe=Ue({customClass:{type:String,default:""},dangerouslyUseHTMLString:Boolean,duration:{type:Number,default:4500},icon:{type:dn},id:{type:String,default:""},message:{type:ue([String,Object,Function]),default:""},offset:{type:Number,default:0},onClick:{type:ue(Function),default:()=>{}},onClose:{type:ue(Function),required:!0},position:{type:String,values:["top-right","top-left","bottom-right","bottom-left"],default:"top-right"},showClose:{type:Boolean,default:!0},title:{type:String,default:""},type:{type:String,values:[...Y4,""],default:""},zIndex:Number}),vfe={destroy:()=>!0},gfe=J({name:"ElNotification"}),yfe=J({...gfe,props:mfe,emits:vfe,setup(e,{expose:t}){const n=e,{ns:r,zIndex:a}=Lv("notification"),{nextZIndex:i,currentZIndex:o}=a,{Close:s}=m1,l=z(!1);let u;const c=k(()=>{const b=n.type;return b&&Ns[n.type]?r.m(b):""}),d=k(()=>n.type&&Ns[n.type]||n.icon),p=k(()=>n.position.endsWith("right")?"right":"left"),h=k(()=>n.position.startsWith("top")?"top":"bottom"),v=k(()=>{var b;return{[h.value]:`${n.offset}px`,zIndex:(b=n.zIndex)!=null?b:o.value}});function m(){n.duration>0&&({stop:u}=Rl(()=>{l.value&&y()},n.duration))}function g(){u==null||u()}function y(){l.value=!1}function T({code:b}){b===Ye.delete||b===Ye.backspace?g():b===Ye.esc?l.value&&y():m()}return ht(()=>{m(),i(),l.value=!0}),ln(document,"keydown",T),t({visible:l,close:y}),(b,_)=>(x(),he(lr,{name:f(r).b("fade"),onBeforeLeave:b.onClose,onAfterLeave:w=>b.$emit("destroy"),persisted:""},{default:P(()=>[gt(M("div",{id:b.id,class:F([f(r).b(),b.customClass,f(p)]),style:tt(f(v)),role:"alert",onMouseenter:g,onMouseleave:m,onClick:b.onClick},[f(d)?(x(),he(f(et),{key:0,class:F([f(r).e("icon"),f(c)])},{default:P(()=>[(x(),he(Lt(f(d))))]),_:1},8,["class"])):oe("v-if",!0),M("div",{class:F(f(r).e("group"))},[M("h2",{class:F(f(r).e("title")),textContent:de(b.title)},null,10,["textContent"]),gt(M("div",{class:F(f(r).e("content")),style:tt(b.title?void 0:{margin:0})},[fe(b.$slots,"default",{},()=>[b.dangerouslyUseHTMLString?(x(),U(Ge,{key:1},[oe(" Caution here, message could've been compromised, never use user's input as message "),M("p",{innerHTML:b.message},null,8,["innerHTML"])],2112)):(x(),U("p",{key:0},de(b.message),1))])],6),[[zt,b.message]]),b.showClose?(x(),he(f(et),{key:0,class:F(f(r).e("closeBtn")),onClick:ft(y,["stop"])},{default:P(()=>[E(f(s))]),_:1},8,["class","onClick"])):oe("v-if",!0)],2)],46,["id","onClick"]),[[zt,l.value]])]),_:3},8,["name","onBeforeLeave","onAfterLeave"]))}});var bfe=He(yfe,[["__file","notification.vue"]]);const Bm={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},Pb=16;let _fe=1;const dc=function(e={},t){if(!Wt)return{close:()=>{}};(rt(e)||wn(e))&&(e={message:e});const n=e.position||"top-right";let r=e.offset||0;Bm[n].forEach(({vm:c})=>{var d;r+=(((d=c.el)==null?void 0:d.offsetHeight)||0)+Pb}),r+=Pb;const a=`notification_${_fe++}`,i=e.onClose,o={...e,offset:r,id:a,onClose:()=>{Tfe(a,n,i)}};let s=document.body;oa(e.appendTo)?s=e.appendTo:rt(e.appendTo)&&(s=document.querySelector(e.appendTo)),oa(s)||(s=document.body);const l=document.createElement("div"),u=E(bfe,o,ot(o.message)?o.message:wn(o.message)?()=>o.message:null);return u.appContext=Xt(t)?dc._context:t,u.props.onDestroy=()=>{Is(null,l)},Is(u,l),Bm[n].push({vm:u}),s.appendChild(l.firstElementChild),{close:()=>{u.component.exposed.visible.value=!1}}};Y4.forEach(e=>{dc[e]=(t={},n)=>((rt(t)||wn(t))&&(t={message:t}),dc({...t,type:e},n))});function Tfe(e,t,n){const r=Bm[t],a=r.findIndex(({vm:u})=>{var c;return((c=u.component)==null?void 0:c.props.id)===e});if(a===-1)return;const{vm:i}=r[a];if(!i)return;n==null||n(i);const o=i.el.offsetHeight,s=t.split("-")[0];r.splice(a,1);const l=r.length;if(!(l<1))for(let u=a;u<l;u++){const{el:c,component:d}=r[u].vm,p=Number.parseInt(c.style[s],10)-o-Pb;d.props.offset=p}}function wfe(){for(const e of Object.values(Bm))e.forEach(({vm:t})=>{t.component.exposed.visible.value=!1})}dc.closeAll=wfe;dc._context=null;const Sfe=$I(dc,"$notify");var Cfe=[Vde,Wde,at,Yh,Sfe,s3],Efe=_7([...Mde,...Cfe]);const xfe={class:"util"},kfe=J({__name:"Util",setup(e){const t=Ct({show:!1,darkTheme:!0});ht(()=>{n(localStorage.getItem("theme")+"")});const n=r=>{switch(r){case"top":if(document.documentElement.scrollTop>0){const i=setInterval(()=>{document.documentElement.scrollTop-=10,document.documentElement.scrollTop===0&&clearInterval(i)},5)}break;case"light":t.darkTheme=!1,localStorage.setItem("theme","light"),document.getElementsByClassName("main")[0].style.background="linear-gradient(45deg, #356697, rgb(105, 68, 140), rgb(151, 109, 133), rgb(92 104 149))";break;case"dark":t.darkTheme=!0,localStorage.setItem("theme","dark"),document.getElementsByClassName("main")[0].style.background="#16161a";break;case"more":t.show=!t.show;break}};return(r,a)=>{const i=et,o=hp;return x(),U("div",xfe,[E(o,null,{default:P(()=>[gt(M("div",null,[M("a",{href:"javascript:;",onClick:a[0]||(a[0]=s=>n("top"))},[E(i,null,{default:P(()=>[E(f(Nv))]),_:1})]),t.darkTheme?(x(),U("a",{key:0,href:"javascript:;",onClick:a[1]||(a[1]=s=>n("light"))},[E(i,null,{default:P(()=>[E(f(sj))]),_:1})])):oe("",!0),t.darkTheme?oe("",!0):(x(),U("a",{key:1,href:"javascript:;",onClick:a[2]||(a[2]=s=>n("dark"))},[E(i,null,{default:P(()=>[E(f(Fz))]),_:1})])),M("a",{href:"/custom/player",onClick:a[3]||(a[3]=s=>n("dark"))},[E(i,null,{default:P(()=>[E(f(vj))]),_:1})])],512),[[zt,t.show]])]),_:1}),M("a",{href:"javascript:;",onClick:a[4]||(a[4]=s=>n("more")),class:"more"},[E(i,null,{default:P(()=>[E(f(Dy))]),_:1})])])}}}),En=(e,t)=>{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n},Afe=En(kfe,[["__scopeId","data-v-66b1aa59"]]);var X4={exports:{}};/*! Element Plus v2.9.7 */(function(e,t){(function(n,r){e.exports=r()})(Sa,function(){var n={name:"zh-cn",el:{breadcrumb:{label:"面包屑"},colorpicker:{confirm:"确定",clear:"清空",defaultLabel:"颜色选择器",description:"当前颜色 {color},按 Enter 键选择新颜色",alphaLabel:"选择透明度的值"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",dateTablePrompt:"使用方向键与 Enter 键可选择日期",monthTablePrompt:"使用方向键与 Enter 键可选择月份",yearTablePrompt:"使用方向键与 Enter 键可选择年份",selectedDate:"已选日期",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},weeksFull:{sun:"星期日",mon:"星期一",tue:"星期二",wed:"星期三",thu:"星期四",fri:"星期五",sat:"星期六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},inputNumber:{decrease:"减少数值",increase:"增加数值"},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},dropdown:{toggleDropdown:"切换下拉选项"},mention:{loading:"加载中"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页",page:"页",prev:"上一页",next:"下一页",currentPage:"第 {pager} 页",prevPages:"向前 {pager} 页",nextPages:"向后 {pager} 页",deprecationWarning:"你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"},dialog:{close:"关闭此对话框"},drawer:{close:"关闭此对话框"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!",close:"关闭此对话框"},upload:{deleteTip:"按 delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},slider:{defaultLabel:"滑块介于 {min} 至 {max}",defaultRangeStartLabel:"选择起始值",defaultRangeEndLabel:"选择结束值"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计"},tour:{next:"下一步",previous:"上一步",finish:"结束导览"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"},carousel:{leftArrow:"上一张幻灯片",rightArrow:"下一张幻灯片",indicator:"幻灯片切换至索引 {index}"}}};return n})})(X4);var Dfe=X4.exports;const Ife=xr(Dfe),Pfe={class:"main"},Ofe=J({__name:"App",setup(e){return(t,n)=>{const r=Rt("router-view"),a=aO;return x(),he(a,{locale:f(Ife)},{default:P(()=>[M("div",Pfe,[E(r),E(Afe)])]),_:1},8,["locale"])}}});/*!
* vue-router v4.5.0
* (c) 2024 Eduardo San Martin Morote
* @license MIT
*/const Su=typeof document<"u";function Q4(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Mfe(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Q4(e.default)}const Cn=Object.assign;function D0(e,t){const n={};for(const r in t){const a=t[r];n[r]=ki(a)?a.map(e):e(a)}return n}const Qd=()=>{},ki=Array.isArray,J4=/#/g,Rfe=/&/g,Lfe=/\//g,Nfe=/=/g,Ffe=/\?/g,Z4=/\+/g,$fe=/%5B/g,Bfe=/%5D/g,eM=/%5E/g,Vfe=/%60/g,tM=/%7B/g,Ufe=/%7C/g,nM=/%7D/g,Hfe=/%20/g;function F2(e){return encodeURI(""+e).replace(Ufe,"|").replace($fe,"[").replace(Bfe,"]")}function zfe(e){return F2(e).replace(tM,"{").replace(nM,"}").replace(eM,"^")}function Ob(e){return F2(e).replace(Z4,"%2B").replace(Hfe,"+").replace(J4,"%23").replace(Rfe,"%26").replace(Vfe,"`").replace(tM,"{").replace(nM,"}").replace(eM,"^")}function jfe(e){return Ob(e).replace(Nfe,"%3D")}function Wfe(e){return F2(e).replace(J4,"%23").replace(Ffe,"%3F")}function Kfe(e){return e==null?"":Wfe(e).replace(Lfe,"%2F")}function Ff(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const qfe=/\/$/,Gfe=e=>e.replace(qfe,"");function I0(e,t,n="/"){let r,a={},i="",o="";const s=t.indexOf("#");let l=t.indexOf("?");return s<l&&s>=0&&(l=-1),l>-1&&(r=t.slice(0,l),i=t.slice(l+1,s>-1?s:t.length),a=e(i)),s>-1&&(r=r||t.slice(0,s),o=t.slice(s,t.length)),r=Jfe(r??t,n),{fullPath:r+(i&&"?")+i+o,path:r,query:a,hash:Ff(o)}}function Yfe(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function rx(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Xfe(e,t,n){const r=t.matched.length-1,a=n.matched.length-1;return r>-1&&r===a&&fc(t.matched[r],n.matched[a])&&rM(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function fc(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function rM(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Qfe(e[n],t[n]))return!1;return!0}function Qfe(e,t){return ki(e)?ax(e,t):ki(t)?ax(t,e):e===t}function ax(e,t){return ki(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function Jfe(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),a=r[r.length-1];(a===".."||a===".")&&r.push("");let i=n.length-1,o,s;for(o=0;o<r.length;o++)if(s=r[o],s!==".")if(s==="..")i>1&&i--;else break;return n.slice(0,i).join("/")+"/"+r.slice(o).join("/")}const hs={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var $f;(function(e){e.pop="pop",e.push="push"})($f||($f={}));var Jd;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Jd||(Jd={}));function Zfe(e){if(!e)if(Su){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Gfe(e)}const epe=/^[^#]+#/;function tpe(e,t){return e.replace(epe,"#")+t}function npe(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const rg=()=>({left:window.scrollX,top:window.scrollY});function rpe(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),a=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!a)return;t=npe(a,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function ix(e,t){return(history.state?history.state.position-t:-1)+e}const Mb=new Map;function ape(e,t){Mb.set(e,t)}function ipe(e){const t=Mb.get(e);return Mb.delete(e),t}let ope=()=>location.protocol+"//"+location.host;function aM(e,t){const{pathname:n,search:r,hash:a}=t,i=e.indexOf("#");if(i>-1){let s=a.includes(e.slice(i))?e.slice(i).length:1,l=a.slice(s);return l[0]!=="/"&&(l="/"+l),rx(l,"")}return rx(n,e)+r+a}function spe(e,t,n,r){let a=[],i=[],o=null;const s=({state:p})=>{const h=aM(e,location),v=n.value,m=t.value;let g=0;if(p){if(n.value=h,t.value=p,o&&o===v){o=null;return}g=m?p.position-m.position:0}else r(h);a.forEach(y=>{y(n.value,v,{delta:g,type:$f.pop,direction:g?g>0?Jd.forward:Jd.back:Jd.unknown})})};function l(){o=n.value}function u(p){a.push(p);const h=()=>{const v=a.indexOf(p);v>-1&&a.splice(v,1)};return i.push(h),h}function c(){const{history:p}=window;p.state&&p.replaceState(Cn({},p.state,{scroll:rg()}),"")}function d(){for(const p of i)p();i=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",c,{passive:!0}),{pauseListeners:l,listen:u,destroy:d}}function ox(e,t,n,r=!1,a=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:a?rg():null}}function lpe(e){const{history:t,location:n}=window,r={value:aM(e,n)},a={value:t.state};a.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(l,u,c){const d=e.indexOf("#"),p=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+l:ope()+e+l;try{t[c?"replaceState":"pushState"](u,"",p),a.value=u}catch(h){console.error(h),n[c?"replace":"assign"](p)}}function o(l,u){const c=Cn({},t.state,ox(a.value.back,l,a.value.forward,!0),u,{position:a.value.position});i(l,c,!0),r.value=l}function s(l,u){const c=Cn({},a.value,t.state,{forward:l,scroll:rg()});i(c.current,c,!0);const d=Cn({},ox(r.value,l,null),{position:c.position+1},u);i(l,d,!1),r.value=l}return{location:r,state:a,push:s,replace:o}}function upe(e){e=Zfe(e);const t=lpe(e),n=spe(e,t.state,t.location,t.replace);function r(i,o=!0){o||n.pauseListeners(),history.go(i)}const a=Cn({location:"",base:e,go:r,createHref:tpe.bind(null,e)},t,n);return Object.defineProperty(a,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(a,"state",{enumerable:!0,get:()=>t.state.value}),a}function cpe(e){return typeof e=="string"||e&&typeof e=="object"}function iM(e){return typeof e=="string"||typeof e=="symbol"}const oM=Symbol("");var sx;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(sx||(sx={}));function pc(e,t){return Cn(new Error,{type:e,[oM]:!0},t)}function Co(e,t){return e instanceof Error&&oM in e&&(t==null||!!(e.type&t))}const lx="[^/]+?",dpe={sensitive:!1,strict:!1,start:!0,end:!0},fpe=/[.+*?^${}()[\]/\\]/g;function ppe(e,t){const n=Cn({},dpe,t),r=[];let a=n.start?"^":"";const i=[];for(const u of e){const c=u.length?[]:[90];n.strict&&!u.length&&(a+="/");for(let d=0;d<u.length;d++){const p=u[d];let h=40+(n.sensitive?.25:0);if(p.type===0)d||(a+="/"),a+=p.value.replace(fpe,"\\$&"),h+=40;else if(p.type===1){const{value:v,repeatable:m,optional:g,regexp:y}=p;i.push({name:v,repeatable:m,optional:g});const T=y||lx;if(T!==lx){h+=10;try{new RegExp(`(${T})`)}catch(_){throw new Error(`Invalid custom RegExp for param "${v}" (${T}): `+_.message)}}let b=m?`((?:${T})(?:/(?:${T}))*)`:`(${T})`;d||(b=g&&u.length<2?`(?:/${b})`:"/"+b),g&&(b+="?"),a+=b,h+=20,g&&(h+=-8),m&&(h+=-20),T===".*"&&(h+=-50)}c.push(h)}r.push(c)}if(n.strict&&n.end){const u=r.length-1;r[u][r[u].length-1]+=.7000000000000001}n.strict||(a+="/?"),n.end?a+="$":n.strict&&!a.endsWith("/")&&(a+="(?:/|$)");const o=new RegExp(a,n.sensitive?"":"i");function s(u){const c=u.match(o),d={};if(!c)return null;for(let p=1;p<c.length;p++){const h=c[p]||"",v=i[p-1];d[v.name]=h&&v.repeatable?h.split("/"):h}return d}function l(u){let c="",d=!1;for(const p of e){(!d||!c.endsWith("/"))&&(c+="/"),d=!1;for(const h of p)if(h.type===0)c+=h.value;else if(h.type===1){const{value:v,repeatable:m,optional:g}=h,y=v in u?u[v]:"";if(ki(y)&&!m)throw new Error(`Provided param "${v}" is an array but it is not repeatable (* or + modifiers)`);const T=ki(y)?y.join("/"):y;if(!T)if(g)p.length<2&&(c.endsWith("/")?c=c.slice(0,-1):d=!0);else throw new Error(`Missing required param "${v}"`);c+=T}}return c||"/"}return{re:o,score:r,keys:i,parse:s,stringify:l}}function hpe(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===40+40?-1:1:e.length>t.length?t.length===1&&t[0]===40+40?1:-1:0}function sM(e,t){let n=0;const r=e.score,a=t.score;for(;n<r.length&&n<a.length;){const i=hpe(r[n],a[n]);if(i)return i;n++}if(Math.abs(a.length-r.length)===1){if(ux(r))return 1;if(ux(a))return-1}return a.length-r.length}function ux(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const mpe={type:0,value:""},vpe=/[a-zA-Z0-9_]/;function gpe(e){if(!e)return[[]];if(e==="/")return[[mpe]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${n})/"${u}": ${h}`)}let n=0,r=n;const a=[];let i;function o(){i&&a.push(i),i=[]}let s=0,l,u="",c="";function d(){u&&(n===0?i.push({type:0,value:u}):n===1||n===2||n===3?(i.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:u,regexp:c,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function p(){u+=l}for(;s<e.length;){if(l=e[s++],l==="\\"&&n!==2){r=n,n=4;continue}switch(n){case 0:l==="/"?(u&&d(),o()):l===":"?(d(),n=1):p();break;case 4:p(),n=r;break;case 1:l==="("?n=2:vpe.test(l)?p():(d(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&s--);break;case 2:l===")"?c[c.length-1]=="\\"?c=c.slice(0,-1)+l:n=3:c+=l;break;case 3:d(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&s--,c="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${u}"`),d(),o(),a}function ype(e,t,n){const r=ppe(gpe(e.path),n),a=Cn(r,{record:e,parent:t,children:[],alias:[]});return t&&!a.record.aliasOf==!t.record.aliasOf&&t.children.push(a),a}function bpe(e,t){const n=[],r=new Map;t=px({strict:!1,end:!0,sensitive:!1},t);function a(d){return r.get(d)}function i(d,p,h){const v=!h,m=dx(d);m.aliasOf=h&&h.record;const g=px(t,d),y=[m];if("alias"in d){const _=typeof d.alias=="string"?[d.alias]:d.alias;for(const w of _)y.push(dx(Cn({},m,{components:h?h.record.components:m.components,path:w,aliasOf:h?h.record:m})))}let T,b;for(const _ of y){const{path:w}=_;if(p&&w[0]!=="/"){const S=p.record.path,A=S[S.length-1]==="/"?"":"/";_.path=p.record.path+(w&&A+w)}if(T=ype(_,p,g),h?h.alias.push(T):(b=b||T,b!==T&&b.alias.push(T),v&&d.name&&!fx(T)&&o(d.name)),lM(T)&&l(T),m.children){const S=m.children;for(let A=0;A<S.length;A++)i(S[A],T,h&&h.children[A])}h=h||T}return b?()=>{o(b)}:Qd}function o(d){if(iM(d)){const p=r.get(d);p&&(r.delete(d),n.splice(n.indexOf(p),1),p.children.forEach(o),p.alias.forEach(o))}else{const p=n.indexOf(d);p>-1&&(n.splice(p,1),d.record.name&&r.delete(d.record.name),d.children.forEach(o),d.alias.forEach(o))}}function s(){return n}function l(d){const p=wpe(d,n);n.splice(p,0,d),d.record.name&&!fx(d)&&r.set(d.record.name,d)}function u(d,p){let h,v={},m,g;if("name"in d&&d.name){if(h=r.get(d.name),!h)throw pc(1,{location:d});g=h.record.name,v=Cn(cx(p.params,h.keys.filter(b=>!b.optional).concat(h.parent?h.parent.keys.filter(b=>b.optional):[]).map(b=>b.name)),d.params&&cx(d.params,h.keys.map(b=>b.name))),m=h.stringify(v)}else if(d.path!=null)m=d.path,h=n.find(b=>b.re.test(m)),h&&(v=h.parse(m),g=h.record.name);else{if(h=p.name?r.get(p.name):n.find(b=>b.re.test(p.path)),!h)throw pc(1,{location:d,currentLocation:p});g=h.record.name,v=Cn({},p.params,d.params),m=h.stringify(v)}const y=[];let T=h;for(;T;)y.unshift(T.record),T=T.parent;return{name:g,path:m,params:v,matched:y,meta:Tpe(y)}}e.forEach(d=>i(d));function c(){n.length=0,r.clear()}return{addRoute:i,resolve:u,removeRoute:o,clearRoutes:c,getRoutes:s,getRecordMatcher:a}}function cx(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function dx(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:_pe(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function _pe(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function fx(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Tpe(e){return e.reduce((t,n)=>Cn(t,n.meta),{})}function px(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function wpe(e,t){let n=0,r=t.length;for(;n!==r;){const i=n+r>>1;sM(e,t[i])<0?r=i:n=i+1}const a=Spe(e);return a&&(r=t.lastIndexOf(a,r-1)),r}function Spe(e){let t=e;for(;t=t.parent;)if(lM(t)&&sM(e,t)===0)return t}function lM({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Cpe(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let a=0;a<r.length;++a){const i=r[a].replace(Z4," "),o=i.indexOf("="),s=Ff(o<0?i:i.slice(0,o)),l=o<0?null:Ff(i.slice(o+1));if(s in t){let u=t[s];ki(u)||(u=t[s]=[u]),u.push(l)}else t[s]=l}return t}function hx(e){let t="";for(let n in e){const r=e[n];if(n=jfe(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(ki(r)?r.map(i=>i&&Ob(i)):[r&&Ob(r)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+n,i!=null&&(t+="="+i))})}return t}function Epe(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=ki(r)?r.map(a=>a==null?null:""+a):r==null?r:""+r)}return t}const xpe=Symbol(""),mx=Symbol(""),ag=Symbol(""),$2=Symbol(""),Rb=Symbol("");function md(){let e=[];function t(r){return e.push(r),()=>{const a=e.indexOf(r);a>-1&&e.splice(a,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function ws(e,t,n,r,a,i=o=>o()){const o=r&&(r.enterCallbacks[a]=r.enterCallbacks[a]||[]);return()=>new Promise((s,l)=>{const u=p=>{p===!1?l(pc(4,{from:n,to:t})):p instanceof Error?l(p):cpe(p)?l(pc(2,{from:t,to:p})):(o&&r.enterCallbacks[a]===o&&typeof p=="function"&&o.push(p),s())},c=i(()=>e.call(r&&r.instances[a],t,n,u));let d=Promise.resolve(c);e.length<3&&(d=d.then(u)),d.catch(p=>l(p))})}function P0(e,t,n,r,a=i=>i()){const i=[];for(const o of e)for(const s in o.components){let l=o.components[s];if(!(t!=="beforeRouteEnter"&&!o.instances[s]))if(Q4(l)){const c=(l.__vccOpts||l)[t];c&&i.push(ws(c,n,r,o,s,a))}else{let u=l();i.push(()=>u.then(c=>{if(!c)throw new Error(`Couldn't resolve component "${s}" at "${o.path}"`);const d=Mfe(c)?c.default:c;o.mods[s]=c,o.components[s]=d;const h=(d.__vccOpts||d)[t];return h&&ws(h,n,r,o,s,a)()}))}}return i}function vx(e){const t=Qe(ag),n=Qe($2),r=k(()=>{const l=f(e.to);return t.resolve(l)}),a=k(()=>{const{matched:l}=r.value,{length:u}=l,c=l[u-1],d=n.matched;if(!c||!d.length)return-1;const p=d.findIndex(fc.bind(null,c));if(p>-1)return p;const h=gx(l[u-2]);return u>1&&gx(c)===h&&d[d.length-1].path!==h?d.findIndex(fc.bind(null,l[u-2])):p}),i=k(()=>a.value>-1&&Ppe(n.params,r.value.params)),o=k(()=>a.value>-1&&a.value===n.matched.length-1&&rM(n.params,r.value.params));function s(l={}){if(Ipe(l)){const u=t[f(e.replace)?"replace":"push"](f(e.to)).catch(Qd);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>u),u}return Promise.resolve()}return{route:r,href:k(()=>r.value.href),isActive:i,isExactActive:o,navigate:s}}function kpe(e){return e.length===1?e[0]:e}const Ape=J({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:vx,setup(e,{slots:t}){const n=Ct(vx(e)),{options:r}=Qe(ag),a=k(()=>({[yx(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[yx(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&kpe(t.default(n));return e.custom?i:lt("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:a.value},i)}}}),Dpe=Ape;function Ipe(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Ppe(e,t){for(const n in t){const r=t[n],a=e[n];if(typeof r=="string"){if(r!==a)return!1}else if(!ki(a)||a.length!==r.length||r.some((i,o)=>i!==a[o]))return!1}return!0}function gx(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const yx=(e,t,n)=>e??t??n,Ope=J({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=Qe(Rb),a=k(()=>e.route||r.value),i=Qe(mx,0),o=k(()=>{let u=f(i);const{matched:c}=a.value;let d;for(;(d=c[u])&&!d.components;)u++;return u}),s=k(()=>a.value.matched[o.value]);Vt(mx,k(()=>o.value+1)),Vt(xpe,s),Vt(Rb,a);const l=z();return Ie(()=>[l.value,s.value,e.name],([u,c,d],[p,h,v])=>{c&&(c.instances[d]=u,h&&h!==c&&u&&u===p&&(c.leaveGuards.size||(c.leaveGuards=h.leaveGuards),c.updateGuards.size||(c.updateGuards=h.updateGuards))),u&&c&&(!h||!fc(c,h)||!p)&&(c.enterCallbacks[d]||[]).forEach(m=>m(u))},{flush:"post"}),()=>{const u=a.value,c=e.name,d=s.value,p=d&&d.components[c];if(!p)return bx(n.default,{Component:p,route:u});const h=d.props[c],v=h?h===!0?u.params:typeof h=="function"?h(u):h:null,g=lt(p,Cn({},v,t,{onVnodeUnmounted:y=>{y.component.isUnmounted&&(d.instances[c]=null)},ref:l}));return bx(n.default,{Component:g,route:u})||g}}});function bx(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Mpe=Ope;function Rpe(e){const t=bpe(e.routes,e),n=e.parseQuery||Cpe,r=e.stringifyQuery||hx,a=e.history,i=md(),o=md(),s=md(),l=cn(hs);let u=hs;Su&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=D0.bind(null,te=>""+te),d=D0.bind(null,Kfe),p=D0.bind(null,Ff);function h(te,me){let pe,Fe;return iM(te)?(pe=t.getRecordMatcher(te),Fe=me):Fe=te,t.addRoute(Fe,pe)}function v(te){const me=t.getRecordMatcher(te);me&&t.removeRoute(me)}function m(){return t.getRoutes().map(te=>te.record)}function g(te){return!!t.getRecordMatcher(te)}function y(te,me){if(me=Cn({},me||l.value),typeof te=="string"){const ie=I0(n,te,me.path),Ce=t.resolve({path:ie.path},me),$e=a.createHref(ie.fullPath);return Cn(ie,Ce,{params:p(Ce.params),hash:Ff(ie.hash),redirectedFrom:void 0,href:$e})}let pe;if(te.path!=null)pe=Cn({},te,{path:I0(n,te.path,me.path).path});else{const ie=Cn({},te.params);for(const Ce in ie)ie[Ce]==null&&delete ie[Ce];pe=Cn({},te,{params:d(ie)}),me.params=d(me.params)}const Fe=t.resolve(pe,me),Pe=te.hash||"";Fe.params=c(p(Fe.params));const ye=Yfe(r,Cn({},te,{hash:zfe(Pe),path:Fe.path})),Z=a.createHref(ye);return Cn({fullPath:ye,hash:Pe,query:r===hx?Epe(te.query):te.query||{}},Fe,{redirectedFrom:void 0,href:Z})}function T(te){return typeof te=="string"?I0(n,te,l.value.path):Cn({},te)}function b(te,me){if(u!==te)return pc(8,{from:me,to:te})}function _(te){return A(te)}function w(te){return _(Cn(T(te),{replace:!0}))}function S(te){const me=te.matched[te.matched.length-1];if(me&&me.redirect){const{redirect:pe}=me;let Fe=typeof pe=="function"?pe(te):pe;return typeof Fe=="string"&&(Fe=Fe.includes("?")||Fe.includes("#")?Fe=T(Fe):{path:Fe},Fe.params={}),Cn({query:te.query,hash:te.hash,params:Fe.path!=null?{}:te.params},Fe)}}function A(te,me){const pe=u=y(te),Fe=l.value,Pe=te.state,ye=te.force,Z=te.replace===!0,ie=S(pe);if(ie)return A(Cn(T(ie),{state:typeof ie=="object"?Cn({},Pe,ie.state):Pe,force:ye,replace:Z}),me||pe);const Ce=pe;Ce.redirectedFrom=me;let $e;return!ye&&Xfe(r,Fe,pe)&&($e=pc(16,{to:Ce,from:Fe}),re(Fe,Fe,!0,!1)),($e?Promise.resolve($e):O(Ce,Fe)).catch(Se=>Co(Se)?Co(Se,2)?Se:X(Se):W(Se,Ce,Fe)).then(Se=>{if(Se){if(Co(Se,2))return A(Cn({replace:Z},T(Se.to),{state:typeof Se.to=="object"?Cn({},Pe,Se.to.state):Pe,force:ye}),me||Ce)}else Se=N(Ce,Fe,!0,Z,Pe);return V(Ce,Fe,Se),Se})}function I(te,me){const pe=b(te,me);return pe?Promise.reject(pe):Promise.resolve()}function D(te){const me=be.values().next().value;return me&&typeof me.runWithContext=="function"?me.runWithContext(te):te()}function O(te,me){let pe;const[Fe,Pe,ye]=Lpe(te,me);pe=P0(Fe.reverse(),"beforeRouteLeave",te,me);for(const ie of Fe)ie.leaveGuards.forEach(Ce=>{pe.push(ws(Ce,te,me))});const Z=I.bind(null,te,me);return pe.push(Z),ve(pe).then(()=>{pe=[];for(const ie of i.list())pe.push(ws(ie,te,me));return pe.push(Z),ve(pe)}).then(()=>{pe=P0(Pe,"beforeRouteUpdate",te,me);for(const ie of Pe)ie.updateGuards.forEach(Ce=>{pe.push(ws(Ce,te,me))});return pe.push(Z),ve(pe)}).then(()=>{pe=[];for(const ie of ye)if(ie.beforeEnter)if(ki(ie.beforeEnter))for(const Ce of ie.beforeEnter)pe.push(ws(Ce,te,me));else pe.push(ws(ie.beforeEnter,te,me));return pe.push(Z),ve(pe)}).then(()=>(te.matched.forEach(ie=>ie.enterCallbacks={}),pe=P0(ye,"beforeRouteEnter",te,me,D),pe.push(Z),ve(pe))).then(()=>{pe=[];for(const ie of o.list())pe.push(ws(ie,te,me));return pe.push(Z),ve(pe)}).catch(ie=>Co(ie,8)?ie:Promise.reject(ie))}function V(te,me,pe){s.list().forEach(Fe=>D(()=>Fe(te,me,pe)))}function N(te,me,pe,Fe,Pe){const ye=b(te,me);if(ye)return ye;const Z=me===hs,ie=Su?history.state:{};pe&&(Fe||Z?a.replace(te.fullPath,Cn({scroll:Z&&ie&&ie.scroll},Pe)):a.push(te.fullPath,Pe)),l.value=te,re(te,me,pe,Z),X()}let K;function Y(){K||(K=a.listen((te,me,pe)=>{if(!_e.listening)return;const Fe=y(te),Pe=S(Fe);if(Pe){A(Cn(Pe,{replace:!0,force:!0}),Fe).catch(Qd);return}u=Fe;const ye=l.value;Su&&ape(ix(ye.fullPath,pe.delta),rg()),O(Fe,ye).catch(Z=>Co(Z,12)?Z:Co(Z,2)?(A(Cn(T(Z.to),{force:!0}),Fe).then(ie=>{Co(ie,20)&&!pe.delta&&pe.type===$f.pop&&a.go(-1,!1)}).catch(Qd),Promise.reject()):(pe.delta&&a.go(-pe.delta,!1),W(Z,Fe,ye))).then(Z=>{Z=Z||N(Fe,ye,!1),Z&&(pe.delta&&!Co(Z,8)?a.go(-pe.delta,!1):pe.type===$f.pop&&Co(Z,20)&&a.go(-1,!1)),V(Fe,ye,Z)}).catch(Qd)}))}let q=md(),$=md(),j;function W(te,me,pe){X(te);const Fe=$.list();return Fe.length?Fe.forEach(Pe=>Pe(te,me,pe)):console.error(te),Promise.reject(te)}function H(){return j&&l.value!==hs?Promise.resolve():new Promise((te,me)=>{q.add([te,me])})}function X(te){return j||(j=!te,Y(),q.list().forEach(([me,pe])=>te?pe(te):me()),q.reset()),te}function re(te,me,pe,Fe){const{scrollBehavior:Pe}=e;if(!Su||!Pe)return Promise.resolve();const ye=!pe&&ipe(ix(te.fullPath,0))||(Fe||!pe)&&history.state&&history.state.scroll||null;return it().then(()=>Pe(te,me,ye)).then(Z=>Z&&rpe(Z)).catch(Z=>W(Z,te,me))}const le=te=>a.go(te);let ne;const be=new Set,_e={currentRoute:l,listening:!0,addRoute:h,removeRoute:v,clearRoutes:t.clearRoutes,hasRoute:g,getRoutes:m,resolve:y,options:e,push:_,replace:w,go:le,back:()=>le(-1),forward:()=>le(1),beforeEach:i.add,beforeResolve:o.add,afterEach:s.add,onError:$.add,isReady:H,install(te){const me=this;te.component("RouterLink",Dpe),te.component("RouterView",Mpe),te.config.globalProperties.$router=me,Object.defineProperty(te.config.globalProperties,"$route",{enumerable:!0,get:()=>f(l)}),Su&&!ne&&l.value===hs&&(ne=!0,_(a.location).catch(Pe=>{}));const pe={};for(const Pe in hs)Object.defineProperty(pe,Pe,{get:()=>l.value[Pe],enumerable:!0});te.provide(ag,me),te.provide($2,x_(pe)),te.provide(Rb,l);const Fe=te.unmount;be.add(te),te.unmount=function(){be.delete(te),be.size<1&&(u=hs,K&&K(),K=null,l.value=hs,ne=!1,j=!1),Fe()}}};function ve(te){return te.reduce((me,pe)=>me.then(()=>D(pe)),Promise.resolve())}return _e}function Lpe(e,t){const n=[],r=[],a=[],i=Math.max(t.matched.length,e.matched.length);for(let o=0;o<i;o++){const s=t.matched[o];s&&(e.matched.find(u=>fc(u,s))?r.push(s):n.push(s));const l=e.matched[o];l&&(t.matched.find(u=>fc(u,l))||a.push(l))}return[n,r,a]}function vo(){return Qe(ag)}function Npe(e){return Qe($2)}function uM(e,t){return function(){return e.apply(t,arguments)}}const{toString:Fpe}=Object.prototype,{getPrototypeOf:B2}=Object,ig=(e=>t=>{const n=Fpe.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ri=e=>(e=e.toLowerCase(),t=>ig(t)===e),og=e=>t=>typeof t===e,{isArray:zc}=Array,Bf=og("undefined");function $pe(e){return e!==null&&!Bf(e)&&e.constructor!==null&&!Bf(e.constructor)&&Va(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const cM=Ri("ArrayBuffer");function Bpe(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&cM(e.buffer),t}const Vpe=og("string"),Va=og("function"),dM=og("number"),sg=e=>e!==null&&typeof e=="object",Upe=e=>e===!0||e===!1,Xh=e=>{if(ig(e)!=="object")return!1;const t=B2(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Hpe=Ri("Date"),zpe=Ri("File"),jpe=Ri("Blob"),Wpe=Ri("FileList"),Kpe=e=>sg(e)&&Va(e.pipe),qpe=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Va(e.append)&&((t=ig(e))==="formdata"||t==="object"&&Va(e.toString)&&e.toString()==="[object FormData]"))},Gpe=Ri("URLSearchParams"),[Ype,Xpe,Qpe,Jpe]=["ReadableStream","Request","Response","Headers"].map(Ri),Zpe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Sp(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,a;if(typeof e!="object"&&(e=[e]),zc(e))for(r=0,a=e.length;r<a;r++)t.call(null,e[r],r,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),o=i.length;let s;for(r=0;r<o;r++)s=i[r],t.call(null,e[s],s,e)}}function fM(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,a;for(;r-- >0;)if(a=n[r],t===a.toLowerCase())return a;return null}const bl=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),pM=e=>!Bf(e)&&e!==bl;function Lb(){const{caseless:e}=pM(this)&&this||{},t={},n=(r,a)=>{const i=e&&fM(t,a)||a;Xh(t[i])&&Xh(r)?t[i]=Lb(t[i],r):Xh(r)?t[i]=Lb({},r):zc(r)?t[i]=r.slice():t[i]=r};for(let r=0,a=arguments.length;r<a;r++)arguments[r]&&Sp(arguments[r],n);return t}const ehe=(e,t,n,{allOwnKeys:r}={})=>(Sp(t,(a,i)=>{n&&Va(a)?e[i]=uM(a,n):e[i]=a},{allOwnKeys:r}),e),the=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),nhe=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},rhe=(e,t,n,r)=>{let a,i,o;const s={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),i=a.length;i-- >0;)o=a[i],(!r||r(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=n!==!1&&B2(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},ahe=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},ihe=e=>{if(!e)return null;if(zc(e))return e;let t=e.length;if(!dM(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},ohe=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&B2(Uint8Array)),she=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let a;for(;(a=r.next())&&!a.done;){const i=a.value;t.call(e,i[0],i[1])}},lhe=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},uhe=Ri("HTMLFormElement"),che=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,a){return r.toUpperCase()+a}),_x=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),dhe=Ri("RegExp"),hM=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Sp(n,(a,i)=>{let o;(o=t(a,i,e))!==!1&&(r[i]=o||a)}),Object.defineProperties(e,r)},fhe=e=>{hM(e,(t,n)=>{if(Va(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Va(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},phe=(e,t)=>{const n={},r=a=>{a.forEach(i=>{n[i]=!0})};return zc(e)?r(e):r(String(e).split(t)),n},hhe=()=>{},mhe=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function vhe(e){return!!(e&&Va(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const ghe=e=>{const t=new Array(10),n=(r,a)=>{if(sg(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[a]=r;const i=zc(r)?[]:{};return Sp(r,(o,s)=>{const l=n(o,a+1);!Bf(l)&&(i[s]=l)}),t[a]=void 0,i}}return r};return n(e,0)},yhe=Ri("AsyncFunction"),bhe=e=>e&&(sg(e)||Va(e))&&Va(e.then)&&Va(e.catch),mM=((e,t)=>e?setImmediate:t?((n,r)=>(bl.addEventListener("message",({source:a,data:i})=>{a===bl&&i===n&&r.length&&r.shift()()},!1),a=>{r.push(a),bl.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Va(bl.postMessage)),_he=typeof queueMicrotask<"u"?queueMicrotask.bind(bl):typeof process<"u"&&process.nextTick||mM,Je={isArray:zc,isArrayBuffer:cM,isBuffer:$pe,isFormData:qpe,isArrayBufferView:Bpe,isString:Vpe,isNumber:dM,isBoolean:Upe,isObject:sg,isPlainObject:Xh,isReadableStream:Ype,isRequest:Xpe,isResponse:Qpe,isHeaders:Jpe,isUndefined:Bf,isDate:Hpe,isFile:zpe,isBlob:jpe,isRegExp:dhe,isFunction:Va,isStream:Kpe,isURLSearchParams:Gpe,isTypedArray:ohe,isFileList:Wpe,forEach:Sp,merge:Lb,extend:ehe,trim:Zpe,stripBOM:the,inherits:nhe,toFlatObject:rhe,kindOf:ig,kindOfTest:Ri,endsWith:ahe,toArray:ihe,forEachEntry:she,matchAll:lhe,isHTMLForm:uhe,hasOwnProperty:_x,hasOwnProp:_x,reduceDescriptors:hM,freezeMethods:fhe,toObjectSet:phe,toCamelCase:che,noop:hhe,toFiniteNumber:mhe,findKey:fM,global:bl,isContextDefined:pM,isSpecCompliantForm:vhe,toJSONObject:ghe,isAsyncFn:yhe,isThenable:bhe,setImmediate:mM,asap:_he};function en(e,t,n,r,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),a&&(this.response=a,this.status=a.status?a.status:null)}Je.inherits(en,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Je.toJSONObject(this.config),code:this.code,status:this.status}}});const vM=en.prototype,gM={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{gM[e]={value:e}});Object.defineProperties(en,gM);Object.defineProperty(vM,"isAxiosError",{value:!0});en.from=(e,t,n,r,a,i)=>{const o=Object.create(vM);return Je.toFlatObject(e,o,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),en.call(o,e.message,t,n,r,a),o.cause=e,o.name=e.name,i&&Object.assign(o,i),o};const The=null;function Nb(e){return Je.isPlainObject(e)||Je.isArray(e)}function yM(e){return Je.endsWith(e,"[]")?e.slice(0,-2):e}function Tx(e,t,n){return e?e.concat(t).map(function(a,i){return a=yM(a),!n&&i?"["+a+"]":a}).join(n?".":""):t}function whe(e){return Je.isArray(e)&&!e.some(Nb)}const She=Je.toFlatObject(Je,{},null,function(t){return/^is[A-Z]/.test(t)});function lg(e,t,n){if(!Je.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Je.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,g){return!Je.isUndefined(g[m])});const r=n.metaTokens,a=n.visitor||c,i=n.dots,o=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&Je.isSpecCompliantForm(t);if(!Je.isFunction(a))throw new TypeError("visitor must be a function");function u(v){if(v===null)return"";if(Je.isDate(v))return v.toISOString();if(!l&&Je.isBlob(v))throw new en("Blob is not supported. Use a Buffer instead.");return Je.isArrayBuffer(v)||Je.isTypedArray(v)?l&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function c(v,m,g){let y=v;if(v&&!g&&typeof v=="object"){if(Je.endsWith(m,"{}"))m=r?m:m.slice(0,-2),v=JSON.stringify(v);else if(Je.isArray(v)&&whe(v)||(Je.isFileList(v)||Je.endsWith(m,"[]"))&&(y=Je.toArray(v)))return m=yM(m),y.forEach(function(b,_){!(Je.isUndefined(b)||b===null)&&t.append(o===!0?Tx([m],_,i):o===null?m:m+"[]",u(b))}),!1}return Nb(v)?!0:(t.append(Tx(g,m,i),u(v)),!1)}const d=[],p=Object.assign(She,{defaultVisitor:c,convertValue:u,isVisitable:Nb});function h(v,m){if(!Je.isUndefined(v)){if(d.indexOf(v)!==-1)throw Error("Circular reference detected in "+m.join("."));d.push(v),Je.forEach(v,function(y,T){(!(Je.isUndefined(y)||y===null)&&a.call(t,y,Je.isString(T)?T.trim():T,m,p))===!0&&h(y,m?m.concat(T):[T])}),d.pop()}}if(!Je.isObject(e))throw new TypeError("data must be an object");return h(e),t}function wx(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function V2(e,t){this._pairs=[],e&&lg(e,this,t)}const bM=V2.prototype;bM.append=function(t,n){this._pairs.push([t,n])};bM.toString=function(t){const n=t?function(r){return t.call(this,r,wx)}:wx;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function Che(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function _M(e,t,n){if(!t)return e;const r=n&&n.encode||Che;Je.isFunction(n)&&(n={serialize:n});const a=n&&n.serialize;let i;if(a?i=a(t,n):i=Je.isURLSearchParams(t)?t.toString():new V2(t,n).toString(r),i){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Ehe{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Je.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Sx=Ehe,TM={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},xhe=typeof URLSearchParams<"u"?URLSearchParams:V2,khe=typeof FormData<"u"?FormData:null,Ahe=typeof Blob<"u"?Blob:null,Dhe={isBrowser:!0,classes:{URLSearchParams:xhe,FormData:khe,Blob:Ahe},protocols:["http","https","file","blob","url","data"]},U2=typeof window<"u"&&typeof document<"u",Fb=typeof navigator=="object"&&navigator||void 0,Ihe=U2&&(!Fb||["ReactNative","NativeScript","NS"].indexOf(Fb.product)<0),Phe=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Ohe=U2&&window.location.href||"http://localhost",Mhe=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:U2,hasStandardBrowserEnv:Ihe,hasStandardBrowserWebWorkerEnv:Phe,navigator:Fb,origin:Ohe},Symbol.toStringTag,{value:"Module"})),Vr={...Mhe,...Dhe};function Rhe(e,t){return lg(e,new Vr.classes.URLSearchParams,Object.assign({visitor:function(n,r,a,i){return Vr.isNode&&Je.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function Lhe(e){return Je.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Nhe(e){const t={},n=Object.keys(e);let r;const a=n.length;let i;for(r=0;r<a;r++)i=n[r],t[i]=e[i];return t}function wM(e){function t(n,r,a,i){let o=n[i++];if(o==="__proto__")return!0;const s=Number.isFinite(+o),l=i>=n.length;return o=!o&&Je.isArray(a)?a.length:o,l?(Je.hasOwnProp(a,o)?a[o]=[a[o],r]:a[o]=r,!s):((!a[o]||!Je.isObject(a[o]))&&(a[o]=[]),t(n,r,a[o],i)&&Je.isArray(a[o])&&(a[o]=Nhe(a[o])),!s)}if(Je.isFormData(e)&&Je.isFunction(e.entries)){const n={};return Je.forEachEntry(e,(r,a)=>{t(Lhe(r),a,n,0)}),n}return null}function Fhe(e,t,n){if(Je.isString(e))try{return(t||JSON.parse)(e),Je.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const H2={transitional:TM,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",a=r.indexOf("application/json")>-1,i=Je.isObject(t);if(i&&Je.isHTMLForm(t)&&(t=new FormData(t)),Je.isFormData(t))return a?JSON.stringify(wM(t)):t;if(Je.isArrayBuffer(t)||Je.isBuffer(t)||Je.isStream(t)||Je.isFile(t)||Je.isBlob(t)||Je.isReadableStream(t))return t;if(Je.isArrayBufferView(t))return t.buffer;if(Je.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Rhe(t,this.formSerializer).toString();if((s=Je.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return lg(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||a?(n.setContentType("application/json",!1),Fhe(t)):t}],transformResponse:[function(t){const n=this.transitional||H2.transitional,r=n&&n.forcedJSONParsing,a=this.responseType==="json";if(Je.isResponse(t)||Je.isReadableStream(t))return t;if(t&&Je.isString(t)&&(r&&!this.responseType||a)){const o=!(n&&n.silentJSONParsing)&&a;try{return JSON.parse(t)}catch(s){if(o)throw s.name==="SyntaxError"?en.from(s,en.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Vr.classes.FormData,Blob:Vr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Je.forEach(["delete","get","head","post","put","patch"],e=>{H2.headers[e]={}});const z2=H2,$he=Je.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Bhe=e=>{const t={};let n,r,a;return e&&e.split(`
`).forEach(function(o){a=o.indexOf(":"),n=o.substring(0,a).trim().toLowerCase(),r=o.substring(a+1).trim(),!(!n||t[n]&&$he[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Cx=Symbol("internals");function vd(e){return e&&String(e).trim().toLowerCase()}function Qh(e){return e===!1||e==null?e:Je.isArray(e)?e.map(Qh):String(e)}function Vhe(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const Uhe=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function O0(e,t,n,r,a){if(Je.isFunction(r))return r.call(this,t,n);if(a&&(t=n),!!Je.isString(t)){if(Je.isString(r))return t.indexOf(r)!==-1;if(Je.isRegExp(r))return r.test(t)}}function Hhe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function zhe(e,t){const n=Je.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(a,i,o){return this[r].call(this,t,a,i,o)},configurable:!0})})}class ug{constructor(t){t&&this.set(t)}set(t,n,r){const a=this;function i(s,l,u){const c=vd(l);if(!c)throw new Error("header name must be a non-empty string");const d=Je.findKey(a,c);(!d||a[d]===void 0||u===!0||u===void 0&&a[d]!==!1)&&(a[d||l]=Qh(s))}const o=(s,l)=>Je.forEach(s,(u,c)=>i(u,c,l));if(Je.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(Je.isString(t)&&(t=t.trim())&&!Uhe(t))o(Bhe(t),n);else if(Je.isHeaders(t))for(const[s,l]of t.entries())i(l,s,r);else t!=null&&i(n,t,r);return this}get(t,n){if(t=vd(t),t){const r=Je.findKey(this,t);if(r){const a=this[r];if(!n)return a;if(n===!0)return Vhe(a);if(Je.isFunction(n))return n.call(this,a,r);if(Je.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=vd(t),t){const r=Je.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||O0(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let a=!1;function i(o){if(o=vd(o),o){const s=Je.findKey(r,o);s&&(!n||O0(r,r[s],s,n))&&(delete r[s],a=!0)}}return Je.isArray(t)?t.forEach(i):i(t),a}clear(t){const n=Object.keys(this);let r=n.length,a=!1;for(;r--;){const i=n[r];(!t||O0(this,this[i],i,t,!0))&&(delete this[i],a=!0)}return a}normalize(t){const n=this,r={};return Je.forEach(this,(a,i)=>{const o=Je.findKey(r,i);if(o){n[o]=Qh(a),delete n[i];return}const s=t?Hhe(i):String(i).trim();s!==i&&delete n[i],n[s]=Qh(a),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Je.forEach(this,(r,a)=>{r!=null&&r!==!1&&(n[a]=t&&Je.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(a=>r.set(a)),r}static accessor(t){const r=(this[Cx]=this[Cx]={accessors:{}}).accessors,a=this.prototype;function i(o){const s=vd(o);r[s]||(zhe(a,o),r[s]=!0)}return Je.isArray(t)?t.forEach(i):i(t),this}}ug.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Je.reduceDescriptors(ug.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});Je.freezeMethods(ug);const bi=ug;function M0(e,t){const n=this||z2,r=t||n,a=bi.from(r.headers);let i=r.data;return Je.forEach(e,function(s){i=s.call(n,i,a.normalize(),t?t.status:void 0)}),a.normalize(),i}function SM(e){return!!(e&&e.__CANCEL__)}function jc(e,t,n){en.call(this,e??"canceled",en.ERR_CANCELED,t,n),this.name="CanceledError"}Je.inherits(jc,en,{__CANCEL__:!0});function CM(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new en("Request failed with status code "+n.status,[en.ERR_BAD_REQUEST,en.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function jhe(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Whe(e,t){e=e||10;const n=new Array(e),r=new Array(e);let a=0,i=0,o;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=r[i];o||(o=u),n[a]=l,r[a]=u;let d=i,p=0;for(;d!==a;)p+=n[d++],d=d%e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),u-o<t)return;const h=c&&u-c;return h?Math.round(p*1e3/h):void 0}}function Khe(e,t){let n=0,r=1e3/t,a,i;const o=(u,c=Date.now())=>{n=c,a=null,i&&(clearTimeout(i),i=null),e.apply(null,u)};return[(...u)=>{const c=Date.now(),d=c-n;d>=r?o(u,c):(a=u,i||(i=setTimeout(()=>{i=null,o(a)},r-d)))},()=>a&&o(a)]}const Vm=(e,t,n=3)=>{let r=0;const a=Whe(50,250);return Khe(i=>{const o=i.loaded,s=i.lengthComputable?i.total:void 0,l=o-r,u=a(l),c=o<=s;r=o;const d={loaded:o,total:s,progress:s?o/s:void 0,bytes:l,rate:u||void 0,estimated:u&&s&&c?(s-o)/u:void 0,event:i,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(d)},n)},Ex=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},xx=e=>(...t)=>Je.asap(()=>e(...t)),qhe=Vr.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Vr.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Vr.origin),Vr.navigator&&/(msie|trident)/i.test(Vr.navigator.userAgent)):()=>!0,Ghe=Vr.hasStandardBrowserEnv?{write(e,t,n,r,a,i){const o=[e+"="+encodeURIComponent(t)];Je.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),Je.isString(r)&&o.push("path="+r),Je.isString(a)&&o.push("domain="+a),i===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Yhe(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Xhe(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function EM(e,t,n){let r=!Yhe(t);return e&&(r||n==!1)?Xhe(e,t):t}const kx=e=>e instanceof bi?{...e}:e;function Bl(e,t){t=t||{};const n={};function r(u,c,d,p){return Je.isPlainObject(u)&&Je.isPlainObject(c)?Je.merge.call({caseless:p},u,c):Je.isPlainObject(c)?Je.merge({},c):Je.isArray(c)?c.slice():c}function a(u,c,d,p){if(Je.isUndefined(c)){if(!Je.isUndefined(u))return r(void 0,u,d,p)}else return r(u,c,d,p)}function i(u,c){if(!Je.isUndefined(c))return r(void 0,c)}function o(u,c){if(Je.isUndefined(c)){if(!Je.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function s(u,c,d){if(d in t)return r(u,c);if(d in e)return r(void 0,u)}const l={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(u,c,d)=>a(kx(u),kx(c),d,!0)};return Je.forEach(Object.keys(Object.assign({},e,t)),function(c){const d=l[c]||a,p=d(e[c],t[c],c);Je.isUndefined(p)&&d!==s||(n[c]=p)}),n}const xM=e=>{const t=Bl({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:a,xsrfCookieName:i,headers:o,auth:s}=t;t.headers=o=bi.from(o),t.url=_M(EM(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&o.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(Je.isFormData(n)){if(Vr.hasStandardBrowserEnv||Vr.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((l=o.getContentType())!==!1){const[u,...c]=l?l.split(";").map(d=>d.trim()).filter(Boolean):[];o.setContentType([u||"multipart/form-data",...c].join("; "))}}if(Vr.hasStandardBrowserEnv&&(r&&Je.isFunction(r)&&(r=r(t)),r||r!==!1&&qhe(t.url))){const u=a&&i&&Ghe.read(i);u&&o.set(a,u)}return t},Qhe=typeof XMLHttpRequest<"u",Jhe=Qhe&&function(e){return new Promise(function(n,r){const a=xM(e);let i=a.data;const o=bi.from(a.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:u}=a,c,d,p,h,v;function m(){h&&h(),v&&v(),a.cancelToken&&a.cancelToken.unsubscribe(c),a.signal&&a.signal.removeEventListener("abort",c)}let g=new XMLHttpRequest;g.open(a.method.toUpperCase(),a.url,!0),g.timeout=a.timeout;function y(){if(!g)return;const b=bi.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),w={data:!s||s==="text"||s==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:b,config:e,request:g};CM(function(A){n(A),m()},function(A){r(A),m()},w),g=null}"onloadend"in g?g.onloadend=y:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(y)},g.onabort=function(){g&&(r(new en("Request aborted",en.ECONNABORTED,e,g)),g=null)},g.onerror=function(){r(new en("Network Error",en.ERR_NETWORK,e,g)),g=null},g.ontimeout=function(){let _=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const w=a.transitional||TM;a.timeoutErrorMessage&&(_=a.timeoutErrorMessage),r(new en(_,w.clarifyTimeoutError?en.ETIMEDOUT:en.ECONNABORTED,e,g)),g=null},i===void 0&&o.setContentType(null),"setRequestHeader"in g&&Je.forEach(o.toJSON(),function(_,w){g.setRequestHeader(w,_)}),Je.isUndefined(a.withCredentials)||(g.withCredentials=!!a.withCredentials),s&&s!=="json"&&(g.responseType=a.responseType),u&&([p,v]=Vm(u,!0),g.addEventListener("progress",p)),l&&g.upload&&([d,h]=Vm(l),g.upload.addEventListener("progress",d),g.upload.addEventListener("loadend",h)),(a.cancelToken||a.signal)&&(c=b=>{g&&(r(!b||b.type?new jc(null,e,g):b),g.abort(),g=null)},a.cancelToken&&a.cancelToken.subscribe(c),a.signal&&(a.signal.aborted?c():a.signal.addEventListener("abort",c)));const T=jhe(a.url);if(T&&Vr.protocols.indexOf(T)===-1){r(new en("Unsupported protocol "+T+":",en.ERR_BAD_REQUEST,e));return}g.send(i||null)})},Zhe=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,a;const i=function(u){if(!a){a=!0,s();const c=u instanceof Error?u:this.reason;r.abort(c instanceof en?c:new jc(c instanceof Error?c.message:c))}};let o=t&&setTimeout(()=>{o=null,i(new en(`timeout ${t} of ms exceeded`,en.ETIMEDOUT))},t);const s=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(i):u.removeEventListener("abort",i)}),e=null)};e.forEach(u=>u.addEventListener("abort",i));const{signal:l}=r;return l.unsubscribe=()=>Je.asap(s),l}},eme=Zhe,tme=function*(e,t){let n=e.byteLength;if(!t||n<t){yield e;return}let r=0,a;for(;r<n;)a=r+t,yield e.slice(r,a),r=a},nme=async function*(e,t){for await(const n of rme(e))yield*tme(n,t)},rme=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},Ax=(e,t,n,r)=>{const a=nme(e,t);let i=0,o,s=l=>{o||(o=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:u,value:c}=await a.next();if(u){s(),l.close();return}let d=c.byteLength;if(n){let p=i+=d;n(p)}l.enqueue(new Uint8Array(c))}catch(u){throw s(u),u}},cancel(l){return s(l),a.return()}},{highWaterMark:2})},cg=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",kM=cg&&typeof ReadableStream=="function",ame=cg&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),AM=(e,...t)=>{try{return!!e(...t)}catch{return!1}},ime=kM&&AM(()=>{let e=!1;const t=new Request(Vr.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Dx=64*1024,$b=kM&&AM(()=>Je.isReadableStream(new Response("").body)),Um={stream:$b&&(e=>e.body)};cg&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Um[t]&&(Um[t]=Je.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new en(`Response type '${t}' is not supported`,en.ERR_NOT_SUPPORT,r)})})})(new Response);const ome=async e=>{if(e==null)return 0;if(Je.isBlob(e))return e.size;if(Je.isSpecCompliantForm(e))return(await new Request(Vr.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(Je.isArrayBufferView(e)||Je.isArrayBuffer(e))return e.byteLength;if(Je.isURLSearchParams(e)&&(e=e+""),Je.isString(e))return(await ame(e)).byteLength},sme=async(e,t)=>{const n=Je.toFiniteNumber(e.getContentLength());return n??ome(t)},lme=cg&&(async e=>{let{url:t,method:n,data:r,signal:a,cancelToken:i,timeout:o,onDownloadProgress:s,onUploadProgress:l,responseType:u,headers:c,withCredentials:d="same-origin",fetchOptions:p}=xM(e);u=u?(u+"").toLowerCase():"text";let h=eme([a,i&&i.toAbortSignal()],o),v;const m=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let g;try{if(l&&ime&&n!=="get"&&n!=="head"&&(g=await sme(c,r))!==0){let w=new Request(t,{method:"POST",body:r,duplex:"half"}),S;if(Je.isFormData(r)&&(S=w.headers.get("content-type"))&&c.setContentType(S),w.body){const[A,I]=Ex(g,Vm(xx(l)));r=Ax(w.body,Dx,A,I)}}Je.isString(d)||(d=d?"include":"omit");const y="credentials"in Request.prototype;v=new Request(t,{...p,signal:h,method:n.toUpperCase(),headers:c.normalize().toJSON(),body:r,duplex:"half",credentials:y?d:void 0});let T=await fetch(v);const b=$b&&(u==="stream"||u==="response");if($b&&(s||b&&m)){const w={};["status","statusText","headers"].forEach(D=>{w[D]=T[D]});const S=Je.toFiniteNumber(T.headers.get("content-length")),[A,I]=s&&Ex(S,Vm(xx(s),!0))||[];T=new Response(Ax(T.body,Dx,A,()=>{I&&I(),m&&m()}),w)}u=u||"text";let _=await Um[Je.findKey(Um,u)||"text"](T,e);return!b&&m&&m(),await new Promise((w,S)=>{CM(w,S,{data:_,headers:bi.from(T.headers),status:T.status,statusText:T.statusText,config:e,request:v})})}catch(y){throw m&&m(),y&&y.name==="TypeError"&&/fetch/i.test(y.message)?Object.assign(new en("Network Error",en.ERR_NETWORK,e,v),{cause:y.cause||y}):en.from(y,y&&y.code,e,v)}}),Bb={http:The,xhr:Jhe,fetch:lme};Je.forEach(Bb,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Ix=e=>`- ${e}`,ume=e=>Je.isFunction(e)||e===null||e===!1,DM={getAdapter:e=>{e=Je.isArray(e)?e:[e];const{length:t}=e;let n,r;const a={};for(let i=0;i<t;i++){n=e[i];let o;if(r=n,!ume(n)&&(r=Bb[(o=String(n)).toLowerCase()],r===void 0))throw new en(`Unknown adapter '${o}'`);if(r)break;a[o||"#"+i]=r}if(!r){const i=Object.entries(a).map(([s,l])=>`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let o=t?i.length>1?`since :
`+i.map(Ix).join(`
`):" "+Ix(i[0]):"as no adapter specified";throw new en("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return r},adapters:Bb};function R0(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new jc(null,e)}function Px(e){return R0(e),e.headers=bi.from(e.headers),e.data=M0.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),DM.getAdapter(e.adapter||z2.adapter)(e).then(function(r){return R0(e),r.data=M0.call(e,e.transformResponse,r),r.headers=bi.from(r.headers),r},function(r){return SM(r)||(R0(e),r&&r.response&&(r.response.data=M0.call(e,e.transformResponse,r.response),r.response.headers=bi.from(r.response.headers))),Promise.reject(r)})}const IM="1.8.4",dg={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{dg[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Ox={};dg.transitional=function(t,n,r){function a(i,o){return"[Axios v"+IM+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return(i,o,s)=>{if(t===!1)throw new en(a(o," has been removed"+(n?" in "+n:"")),en.ERR_DEPRECATED);return n&&!Ox[o]&&(Ox[o]=!0,console.warn(a(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,o,s):!0}};dg.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function cme(e,t,n){if(typeof e!="object")throw new en("options must be an object",en.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let a=r.length;for(;a-- >0;){const i=r[a],o=t[i];if(o){const s=e[i],l=s===void 0||o(s,i,e);if(l!==!0)throw new en("option "+i+" must be "+l,en.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new en("Unknown option "+i,en.ERR_BAD_OPTION)}}const Jh={assertOptions:cme,validators:dg},Bi=Jh.validators;class Hm{constructor(t){this.defaults=t,this.interceptors={request:new Sx,response:new Sx}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;const i=a.stack?a.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`
`+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Bl(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:i}=n;r!==void 0&&Jh.assertOptions(r,{silentJSONParsing:Bi.transitional(Bi.boolean),forcedJSONParsing:Bi.transitional(Bi.boolean),clarifyTimeoutError:Bi.transitional(Bi.boolean)},!1),a!=null&&(Je.isFunction(a)?n.paramsSerializer={serialize:a}:Jh.assertOptions(a,{encode:Bi.function,serialize:Bi.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Jh.assertOptions(n,{baseUrl:Bi.spelling("baseURL"),withXsrfToken:Bi.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=i&&Je.merge(i.common,i[n.method]);i&&Je.forEach(["delete","get","head","post","put","patch","common"],v=>{delete i[v]}),n.headers=bi.concat(o,i);const s=[];let l=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(l=l&&m.synchronous,s.unshift(m.fulfilled,m.rejected))});const u=[];this.interceptors.response.forEach(function(m){u.push(m.fulfilled,m.rejected)});let c,d=0,p;if(!l){const v=[Px.bind(this),void 0];for(v.unshift.apply(v,s),v.push.apply(v,u),p=v.length,c=Promise.resolve(n);d<p;)c=c.then(v[d++],v[d++]);return c}p=s.length;let h=n;for(d=0;d<p;){const v=s[d++],m=s[d++];try{h=v(h)}catch(g){m.call(this,g);break}}try{c=Px.call(this,h)}catch(v){return Promise.reject(v)}for(d=0,p=u.length;d<p;)c=c.then(u[d++],u[d++]);return c}getUri(t){t=Bl(this.defaults,t);const n=EM(t.baseURL,t.url,t.allowAbsoluteUrls);return _M(n,t.params,t.paramsSerializer)}}Je.forEach(["delete","get","head","options"],function(t){Hm.prototype[t]=function(n,r){return this.request(Bl(r||{},{method:t,url:n,data:(r||{}).data}))}});Je.forEach(["post","put","patch"],function(t){function n(r){return function(i,o,s){return this.request(Bl(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}Hm.prototype[t]=n(),Hm.prototype[t+"Form"]=n(!0)});const Zh=Hm;class j2{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(a=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](a);r._listeners=null}),this.promise.then=a=>{let i;const o=new Promise(s=>{r.subscribe(s),i=s}).then(a);return o.cancel=function(){r.unsubscribe(i)},o},t(function(i,o,s){r.reason||(r.reason=new jc(i,o,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new j2(function(a){t=a}),cancel:t}}}const dme=j2;function fme(e){return function(n){return e.apply(null,n)}}function pme(e){return Je.isObject(e)&&e.isAxiosError===!0}const Vb={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Vb).forEach(([e,t])=>{Vb[t]=e});const hme=Vb;function PM(e){const t=new Zh(e),n=uM(Zh.prototype.request,t);return Je.extend(n,Zh.prototype,t,{allOwnKeys:!0}),Je.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return PM(Bl(e,a))},n}const ur=PM(z2);ur.Axios=Zh;ur.CanceledError=jc;ur.CancelToken=dme;ur.isCancel=SM;ur.VERSION=IM;ur.toFormData=lg;ur.AxiosError=en;ur.Cancel=ur.CanceledError;ur.all=function(t){return Promise.all(t)};ur.spread=fme;ur.isAxiosError=pme;ur.mergeConfig=Bl;ur.AxiosHeaders=bi;ur.formToJSON=e=>wM(Je.isHTMLForm(e)?new FormData(e):e);ur.getAdapter=DM.getAdapter;ur.HttpStatusCode=hme;ur.default=ur;const mme=ur,vme={class:"loader"},gme=J({__name:"Loading",props:{msg:{}},setup(e){return(t,n)=>gt((x(),U("div",vme,n[0]||(n[0]=[gD('<div class="loader-container" data-v-f4c312d6><div class="dot" data-v-f4c312d6></div><div class="dot" data-v-f4c312d6></div><div class="dot" data-v-f4c312d6></div><div class="dot" data-v-f4c312d6></div><div class="dot" data-v-f4c312d6></div></div>',1)]),512)),[[zt,e.msg.show]])}}),yme=En(gme,[["__scopeId","data-v-f4c312d6"]]),em=Ct({show:!1,title:"拼命加载中..."}),bme=Cv(yme,{msg:em}).mount(document.createElement("div")),L0={start(e){em.show=!0,em.title=e,document.body.appendChild(bme.$el),document.body.style.overflow="hidden"},close(){em.show=!1,document.body.style.overflow="auto"}},_me=e=>{const t={key:"auth-token",value:e};localStorage.setItem("auth",JSON.stringify(t))},OM=()=>JSON.parse(localStorage.getItem("auth")),Tme=()=>{localStorage.removeItem("auth")};let gd=0;const MM=e=>new Promise((t,n)=>{const r=mme.create({baseURL:"/api",timeout:8e4});r.interceptors.request.use(a=>{gd++,L0.start("");let i=OM();return i&&i.value.length>0&&(a.headers[i.key]=i.value),a},a=>Promise.reject(a)),r.interceptors.response.use(a=>{gd--,gd==0&&L0.close();let i=a.headers["new-token"];return i&&i.length>0&&_me(i),a.data},a=>(gd--,gd==0&&L0.close(),a.response.status==401?(ew.replace("/login"),at.error(a.response.data.msg)):a.response.status==403?at.error("无访问权限!!!"):at.error("服务器繁忙,请稍后再试"),Promise.reject(a))),r(e).then(a=>{t(a)}).catch(a=>{n(a)})}),tn=(e,t)=>MM({url:e,method:"get",params:t}),er=(e,t)=>MM({url:e,method:"post",data:t}),fi={FILM_HISTORY:"filmHistory"},pi={setCookie(e,t,n=30){let r=new Date;r.setTime(r.getTime()+n*24*60*60*1e3);let a="expires="+r.toUTCString();document.cookie=e+"="+encodeURIComponent(t)+"; "+a+": path=/"},getCookie(e){let t=document.cookie.split("; ");for(let n=0;n<t.length;n++){let[r,a]=t[n].split("=");if(r==e)return decodeURIComponent(a)}return""},clearCookie(e){let t=new Date;t.setTime(-1);let n="expires="+t.toUTCString();document.cookie=e+"=''; "+n}},wme={class:"header"},Sme={class:"nav_left"},Cme={href:"/",class:"site"},Eme={class:"search_group"},xme={class:"nav_right"},kme={class:"nav_link"},Ame=["href"],Dme=["href"],Ime={key:0,class:"dropdown-container"},Pme={class:"history-h"},Ome={key:0,class:"history-c"},Mme=["href"],Rme={class:"history-c-item-t"},Lme={class:"history-c-item-e"},Nme={href:"/search",class:"hidden-md-and-up"},Fme=J({__name:"Header",setup(e){const t=z(""),n=Ct({historyFlag:!1,historyList:[{}],nav:Array,site:Object}),r=l=>{if(n.historyFlag=l,l){let u=pi.getCookie(fi.FILM_HISTORY)?JSON.parse(pi.getCookie(fi.FILM_HISTORY)):null,c=[];if(u){for(let d in u)c.push(u[d]);c.sort((d,p)=>p.timeStamp-d.timeStamp)}n.historyList=c}},a=()=>{pi.clearCookie(fi.FILM_HISTORY),n.historyList=[]};vo();const i=()=>{if(t.value.length<=0){at.error({message:"请先输入影片名称关键字再进行搜索",duration:1500});return}location.href=`/search?search=${t.value}`},o=Ct({cartoon:{},film:{},tv:{},variety:{}}),s=()=>{tn("/config/basic").then(l=>{l.code===0?n.site=l.data:at.error({message:l.msg})})};return ht(()=>{tn("/navCategory").then(l=>{l.code===0?n.nav=l.data:at.error({message:"导航分类信息获取失败",duration:1e3})}),s()}),(l,u)=>{const c=_n,d=$c,p=et;return x(),U("div",wme,[M("div",Sme,[M("a",Cme,de(n.site.siteName),1),M("div",Eme,[gt(M("input",{"onUpdate:modelValue":u[0]||(u[0]=h=>t.value=h),onKeydown:u[1]||(u[1]=h=>{h.keyCode==13&&i()}),placeholder:"搜索 动漫,剧集,电影 ",class:"search"},null,544),[[no,t.value]]),E(c,{onClick:i,icon:f(Tf)},null,8,["icon"])])]),M("div",xme,[M("div",kme,[u[4]||(u[4]=M("a",{href:"/"},"首页",-1)),(x(!0),U(Ge,null,mt(n.nav,h=>(x(),U("a",{href:`/filmClassify?Pid=${h.id}`},de(h.name),9,Ame))),256))]),M("div",{class:"history-link hidden-md-and-down",onMouseenter:u[2]||(u[2]=h=>r(!0)),onMouseleave:u[3]||(u[3]=h=>r(!1))},[M("a",{href:`/filmClassify?Pid=${o.variety.id}`},u[5]||(u[5]=[M("b",{style:{"font-size":"22px"},class:"iconfont icon-history"},null,-1)]),8,Dme),E(lr,{name:"fade-slide",duration:"300"},{default:P(()=>[n.historyFlag?(x(),U("div",Ime,[M("div",Pme,[u[6]||(u[6]=M("b",{class:"iconfont icon-record history-h-icon"},null,-1)),u[7]||(u[7]=M("span",{class:"history-h-title"},"历史观看记录",-1)),n.historyList.length>0?(x(),U("a",{key:0,class:"iconfont icon-clear1 history-del",onClick:a})):oe("",!0)]),n.historyList.length>0?(x(),U("div",Ome,[(x(!0),U(Ge,null,mt(n.historyList,h=>(x(),U("a",{href:h.link,class:"history-c-item"},[M("span",Rme,de(h.name),1),M("span",Lme,de(h.episode),1)],8,Mme))),256))])):(x(),he(d,{key:1,style:{padding:"10px 0"},description:"暂无观看记录"}))])):oe("",!0)]),_:1})],32),M("a",Nme,[E(p,{style:{"font-size":"18px"}},{default:P(()=>[E(f(Tf))]),_:1})])])])}}}),$me=En(Fme,[["__scopeId","data-v-a8630ab5"]]),Bme={class:"custom-footer"},Vme={key:0,class:"nav-bottom"},Ume=J({__name:"Footer",setup(e){const t=Qe("global");return(n,r)=>(x(),U("div",Bme,[f(t).isMobile?(x(),U("div",Vme,r[0]||(r[0]=[gD('<a href="/" data-v-78d3b7e0><b class="iconfont icon-ziyuan" data-v-78d3b7e0></b>首页</a><a href="javascript:void(0)" data-v-78d3b7e0><b class="iconfont icon-gengxin" data-v-78d3b7e0></b>更新</a><a href="/history" data-v-78d3b7e0><b class="iconfont icon-lishi" data-v-78d3b7e0></b>历史</a><a href="javascript:void(0)" data-v-78d3b7e0><b class="iconfont icon-shoucang2" data-v-78d3b7e0></b>收藏</a><a href="javascript:void(0)" data-v-78d3b7e0><b class="iconfont icon-ziyuan-copy" data-v-78d3b7e0></b>我的</a>',5)]))):oe("",!0),r[1]||(r[1]=M("p",null,"本站所有内容均来自互联网分享站点所提供的公开引用资源,未提供资源上传、存储服务。",-1))]))}}),Hme=En(Ume,[["__scopeId","data-v-78d3b7e0"]]),zme=J({__name:"IndexHome",setup(e){const t=navigator.userAgent.toLowerCase();let n=/Mobile|Tablet|Android|iPhone|iPad|iPod|BlackBerry|webOS|Windows Phone|SymbianOS|IEMobile|Opera Mini/i.test(t);return Vt("global",{isMobile:n}),(r,a)=>{const i=B1,o=Rt("router-view"),s=V1,l=cO,u=$1;return x(),he(u,null,{default:P(()=>[E(i,null,{default:P(()=>[E($me)]),_:1}),E(s,null,{default:P(()=>[E(o)]),_:1}),E(l,null,{default:P(()=>[E(Hme)]),_:1})]),_:1})}}}),jme=En(zme,[["__scopeId","data-v-32a398cc"]]),Wme={key:0,class:"c_content"},Kme={key:0,class:"hidden-md-and-up"},qme=["href"],Gme={class:"tag_group"},Yme={class:"cus_tag"},Xme={class:"cus_tag"},Qme={class:"cus_tag"},Jme={class:"cus_remark hidden-md-and-up"},Zme=["src","alt"],eve=["href"],tve={class:"cus_remark hidden-md-and-down"},nve={key:1,class:"film-card-inner"},rve={class:"film-card-front"},ave=["href"],ive={class:"tag_group"},ove={class:"cus_tag"},sve={class:"cus_tag"},lve={class:"cus_tag"},uve={class:"cus_remark hidden-md-and-up"},cve=["src","alt"],dve=["onClick"],fve={class:"card-title"},pve={class:"card-blurb"},hve=["href"],mve=J({__name:"FilmList",props:{list:Array,col:Number},setup(e){const t=e,n=Ct({col:0,list:Array,width:0}),r=Qe("global"),a=o=>{o.target.style.display="none"},i=o=>{location.href=`/filmDetail?link=${o}`};return _r(()=>{const o=navigator.userAgent.toLowerCase();let s=/mobile|android|iphone|ipad|phone/i.test(o),l=s?3:t.col?t.col:0,u=t.list,c=u.length;if(n.width=s?31:Math.floor(100/l),c%l!=0)for(let d=0;d<l-c%l;d++){let p={...u[0]};p.id=-99,u.push(p)}n.list=u}),(o,s)=>{const l=_n,u=$c;return n.list?(x(),U("div",Wme,[n.list.length>0?(x(!0),U(Ge,{key:0},mt(n.list,c=>{var d,p;return x(),U("div",{class:"item film-card",style:tt({width:`calc(${n.width-1}%)`})},[c.id!=-99&&f(r).isMobile?(x(),U("div",Kme,[M("a",{href:`/filmDetail?link=${c.id}`,class:"default_image link_content"},[M("div",Gme,[M("span",Yme,de(c.year?c.year.slice(0,4):"未知"),1),M("span",Xme,de(c.cName),1),M("span",Qme,de(c.area.split(",")[0]),1)]),M("span",Jme,de(c.remarks),1),M("img",{src:c.picture,alt:(d=c.name)==null?void 0:d.split("[")[0],onError:a},null,40,Zme)],8,qme),M("a",{href:`/filmDetail?link=${c.id}`,class:"content_text_tag"},de(c.name.split("[")[0]),9,eve),M("span",tve,de(c.remarks),1)])):oe("",!0),f(r).isMobile?oe("",!0):(x(),U("div",nve,[M("div",rve,[M("a",{href:`/filmDetail?link=${c.id}`,class:"link_content"},[M("div",ive,[M("span",ove,de(c.year?c.year.slice(0,4):"未知"),1),M("span",sve,de(c.cName),1),M("span",lve,de(c.area.split(",")[0]),1)]),M("span",uve,de(c.remarks),1),M("img",{src:c.picture,alt:(p=c.name)==null?void 0:p.split("[")[0],onError:a},null,40,cve)],8,ave)]),M("div",{class:"film-card-back",onClick:h=>i(c.id)},[M("p",fve,de(c.name),1),gt(M("p",{class:"card-blurb"},de(c.blurb),513),[[zt,c.blurb!=""]]),gt(M("p",pve," 暂无简介 ",512),[[zt,c.blurb==""]]),E(l,{class:"card-detail",icon:f(fz),color:"#626aef",plain:"",round:"",onClick:h=>i(c.id)},{default:P(()=>s[0]||(s[0]=[we("详情")])),_:2},1032,["icon","onClick"])],8,dve)])),f(r).isMobile?oe("",!0):(x(),U("a",{key:2,href:`/filmDetail?link=${c.id}`,class:"content_text_tag hidden-sm-and-down"},de(c.name.split("[")[0]),9,hve))],4)}),256)):oe("",!0),n.list.length<=0?(x(),he(u,{key:1,style:{padding:"10px 0",margin:"0 auto"},description:"暂无相关数据"})):oe("",!0)])):oe("",!0)}}}),zu=En(mve,[["__scopeId","data-v-1f297049"]]),vve={class:"container"},gve={class:"carousel-title"},yve={class:"preview"},bve={class:"carousel-tags"},_ve={class:"carousel-title"},Tve={class:"content_item"},wve=["href"],Sve={key:0,class:"nav_ul"},Cve={key:0,class:"nav_category"},Eve=["href"],xve={class:"nav_category"},kve=["href"],Ave={class:"hot_title"},Dve={class:"content_right_item"},Ive=["href"],Pve={class:"top_item"},Ove=J({__name:"Home",setup(e){const t=Ct({info:{},banner:{current:{},touch:{index:0,star:0,end:0}}}),n=vo(),r=Qe("global"),a=u=>{t.banner.current=t.info.banners[u]},i=()=>{t.banner.current.mid&&n.push("/filmDetail?link="+t.banner.current.mid)},o=z(),s=u=>{t.banner.touch.star=u.changedTouches[0].pageX},l=u=>{var d,p;t.banner.touch.end=u.changedTouches[0].pageX;let c=t.banner.touch.end-t.banner.touch.star;c>=50?(d=o.value)==null||d.prev():c<=-50&&((p=o.value)==null||p.next())};return Hl(()=>{tn("/index").then(u=>{u.code==0?(t.info=u.data,t.banner.current=t.info.banners[0]):at.error({message:u.msg})})}),(u,c)=>{const d=qv,p=$P,h=FP,v=eO,m=u3;return x(),U("div",vve,[f(r).isMobile?(x(),U("div",{key:0,class:"banner_wrap",onTouchstart:s,onTouchend:l,onClick:i},[E(h,{modelValue:t.banner.current,"onUpdate:modelValue":c[0]||(c[0]=g=>t.banner.current=g),ref_key:"wrap",ref:o,"pause-on-hover":!1,interval:5e3,trigger:"hover",height:"200px",arrow:"never",onChange:a},{default:P(()=>[(x(!0),U(Ge,null,mt(t.info.banners,g=>(x(),he(p,{key:g},{default:P(()=>[E(d,{style:{width:"100%",height:"100%"},src:g.poster,fit:"fill"},null,8,["src"]),M("p",gve,de(g.name),1)]),_:2},1024))),128))]),_:1},8,["modelValue"])],32)):oe("",!0),f(r).isMobile?oe("",!0):(x(),U("div",{key:1,class:"banner",style:tt({background:`url(${t.banner.current.poster})`,backgroundRepeat:"no-repeat",backgroundSize:"cover"}),onClick:i},[M("div",yve,[E(h,{onChange:a,interval:5e3,height:"240px",arrow:"always"},{default:P(()=>[(x(!0),U(Ge,null,mt(t.info.banners,g=>(x(),he(p,{key:g.id},{default:P(()=>[E(d,{style:{width:"60%",height:"80%","border-radius":"5px"},src:g.picture,fit:"contain"},null,8,["src"]),M("div",bve,[M("span",null,de(g.year),1),M("span",null,de(g.cName),1)]),M("p",_ve,de(g.name),1)]),_:2},1024))),128))]),_:1})])],4)),(x(!0),U(Ge,null,mt(t.info.content,g=>(x(),U("div",Tve,[g.nav.show?(x(),U(Ge,{key:0},[E(m,{class:"row-bg cus_nav",justify:"space-between"},{default:P(()=>[E(v,{span:12,class:"title"},{default:P(()=>[M("span",{class:F(`iconfont ${g.nav.name.search("电影")!=-1?"icon-film":g.nav.name.search("剧")!=-1?"icon-tv":g.nav.name.search("动漫")!=-1?"icon-cartoon":"icon-variety"}`),style:{color:"#79bbff","font-size":"32px","margin-right":"10px","line-height":"130%"}},null,2),M("a",{href:`/filmClassify?Pid=${g.nav.id}`},de(g.nav.name),9,wve)]),_:2},1024),E(v,{span:12},{default:P(()=>[f(r).isMobile?oe("",!0):(x(),U("ul",Sve,[(x(!0),U(Ge,null,mt(g.nav.children,(y,T)=>(x(),U(Ge,null,[y.show&&T<6?(x(),U("li",Cve,[M("a",{href:`/filmClassifySearch?Pid=${y.pid}&Category=${y.id}`},de(y.name),9,Eve)])):oe("",!0)],64))),256)),M("li",xve,[M("a",{href:`/filmClassify?Pid=${g.nav.id}`},"更多 >",8,kve)])]))]),_:2},1024)]),_:2},1024),E(m,{class:"cus_content"},{default:P(()=>[E(v,{md:24,lg:20,xl:20,class:"cus_content"},{default:P(()=>[g.movies?(x(),he(zu,{key:0,col:6,list:g.movies.slice(0,12)},null,8,["list"])):oe("",!0)]),_:2},1024),f(r).isMobile?oe("",!0):(x(),he(v,{key:0,md:0,lg:4,xl:4,class:"content_right hidden-sm-and-down"},{default:P(()=>[M("h3",Ave,"🔥热播"+de(g.nav.name),1),(x(!0),U(Ge,null,mt(g.hot.slice(0,12),(y,T)=>(x(),U("div",Dve,[M("a",{href:`/filmDetail?link=${y.mid}`},[M("b",Pve,de(T+1+"."),1),M("span",null,de(y.name),1)],8,Ive)]))),256))]),_:2},1024))]),_:2},1024)],64)):oe("",!0)]))),256))])}}}),Mve=En(Ove,[["__scopeId","data-v-7b942148"]]),Rve={class:"relate_container"},Lve=J({__name:"RelateList",props:{relateList:Array},setup(e){return(t,n)=>(x(),U("div",Rve,[n[0]||(n[0]=M("p",{class:"title"},"相关推荐",-1)),E(zu,{col:7,list:e.relateList},null,8,["list"])]))}}),RM=En(Lve,[["__scopeId","data-v-7fb740c1"]]),Nve={class:"film"},Fve={class:"hidden-sm-and-up"},$ve={class:"title_mt"},Bve={class:"title_mt_right"},Vve={class:"tags"},Uve={style:{margin:"2px 0"}},Hve={key:0},zve={class:"mt_content"},jve=["innerHTML"],Wve={class:"title hidden-sm-and-down"},Kve={class:"tags"},qve={class:"t_c"},Gve=["href"],Yve={key:0},Xve={key:0},Qve={id:"score"},Jve={class:"cus_wap"},Zve=["innerHTML"],ege={class:"play-module"},tge={class:"play-module-item"},nge={class:"module-heading"},rge={class:"play-tab-group"},age=["onClick"],ige={class:"play-list"},oge={class:"play-list-item"},sge=["onClick"],lge={class:"correlation"},uge=J({__name:"FilmDetails",setup(e){const t=vo(),n=Ct({detail:{id:"",cid:"",pid:"",name:"",picture:"",playFrom:[],DownFrom:"",playList:[[]],downloadList:"",descriptor:{subTitle:"",cName:"",enName:"",initial:"",classTag:"",actor:"",director:"",writer:"",blurb:"",remarks:"",releaseDate:"",area:"",language:"",year:"",state:"",updateTime:"",addTime:"",dbId:"",dbScore:"",hits:"",content:""},list:[]},relate:[],loading:!1,currentTabId:""}),r=u=>{let c="";return u.split(",").forEach((d,p)=>{p<3&&(c+=`${d} `)}),c.trimEnd()},a=u=>{n.currentTabId=u},i=u=>{t.push({path:"/play",query:{id:`${t.currentRoute.value.query.link}`,...u}})},o=z({state:!1,text:"展开"}),s=z(),l=u=>{if(u){o.value={state:!u,text:"展开"},s.value.style.webkitLineClamp=2;return}o.value={state:!u,text:"收起"},s.value.style.webkitLineClamp=8};return Hl(()=>{let u=t.currentRoute.value.query.link;tn("/filmDetail",{id:u}).then(c=>{c.code===0?(n.detail=c.data.detail,n.detail.name=n.detail.name.replace(/(.*)/g,""),n.detail.descriptor.content=n.detail.descriptor.content.replace(/(&.*;)|( )|(  )|(\n)|(<[^>]+>)/g,""),n.relate=c.data.relate,n.detail.descriptor.actor=r(n.detail.descriptor.actor),n.detail.descriptor.director=r(n.detail.descriptor.director),n.currentTabId=c.data.detail.list[0].id,n.loading=!0):at({type:"error",dangerouslyUseHTMLString:!0,message:c.msg})})}),(u,c)=>{const d=et,p=_n;return gt((x(),U("div",Nve,[M("div",Fve,[M("div",$ve,[M("a",{class:"picture_mt",href:"",style:tt({backgroundImage:`url('${n.detail.picture}')`})},null,4),M("div",Bve,[M("h3",null,de(n.detail.name),1),M("ul",Vve,[M("li",Uve,de(n.detail.descriptor.classTag?`${n.detail.descriptor.classTag}`.replaceAll(","," | "):"未知"),1)]),M("p",null,[c[2]||(c[2]=M("span",null,"导演:",-1)),we(" "+de(n.detail.descriptor.director),1)]),M("p",null,[c[3]||(c[3]=M("span",null,"主演:",-1)),we(" "+de(r(n.detail.descriptor.actor)),1)]),M("p",null,[c[4]||(c[4]=M("span",null,"上映:",-1)),we(" "+de(n.detail.descriptor.releaseDate),1)]),M("p",null,[c[5]||(c[5]=M("span",null,"地区:",-1)),we(" "+de(n.detail.descriptor.area),1)]),n.detail.descriptor.remarks?(x(),U("p",Hve,[c[6]||(c[6]=M("span",null,"连载:",-1)),we(de(n.detail.descriptor.remarks),1)])):oe("",!0)])]),M("div",zve,[M("p",{innerHTML:`${n.detail.descriptor.content}`.replaceAll("  ","")},null,8,jve)])]),M("div",Wve,[M("a",{class:"picture",href:"",style:tt({backgroundImage:`url('${n.detail.picture}')`})},null,4),M("h2",null,de(n.detail.name),1),M("ul",Kve,[M("li",qve,[M("a",{href:`/filmClassifySearch?Pid=${n.detail.pid}&Category=${n.detail.cid}`},[E(d,null,{default:P(()=>[E(f(f1))]),_:1}),we(" "+de(n.detail.descriptor.cName),1)],8,Gve)]),n.detail.descriptor.classTag?(x(),U("li",Yve,de(`${n.detail.descriptor.classTag}`.replaceAll(",","")),1)):oe("",!0),M("li",null,de(n.detail.descriptor.year),1),M("li",null,de(n.detail.descriptor.area),1)]),M("p",null,[c[7]||(c[7]=M("span",null,"导演:",-1)),we(" "+de(n.detail.descriptor.director),1)]),M("p",null,[c[8]||(c[8]=M("span",null,"主演:",-1)),we(" "+de(n.detail.descriptor.actor),1)]),M("p",null,[c[9]||(c[9]=M("span",null,"上映:",-1)),we(" "+de(n.detail.descriptor.releaseDate),1)]),n.detail.descriptor.remarks?(x(),U("p",Xve,[c[10]||(c[10]=M("span",null,"连载:",-1)),we(de(n.detail.descriptor.remarks),1)])):oe("",!0),M("p",null,[c[11]||(c[11]=M("span",null,"评分:",-1)),M("b",Qve,de(n.detail.descriptor.dbScore),1)]),M("div",Jve,[c[12]||(c[12]=M("p",{style:{"min-width":"40px"}},[M("span",null,"剧情:")],-1)),M("p",{ref_key:"textContent",ref:s,class:"text_content"},[`${n.detail.descriptor.content}`.length>140?(x(),he(p,{key:0,class:"multi_text",style:{color:"#a574b7"},onClick:c[0]||(c[0]=h=>l(o.value.state)),link:""},{default:P(()=>[we(de(o.value.text),1)]),_:1})):oe("",!0),M("span",{class:"cus_info",innerHTML:n.detail.descriptor.content},null,8,Zve)],512)]),M("p",null,[E(p,{type:"warning",class:"player",size:"large",onClick:c[1]||(c[1]=h=>i({episode:0,source:n.detail.list[0].id})),round:""},{default:P(()=>[E(d,null,{default:P(()=>[E(f(Fv))]),_:1}),c[13]||(c[13]=we(" 立即播放 "))]),_:1})])]),M("div",ege,[M("div",tge,[M("div",nge,[c[14]||(c[14]=M("p",{class:"play-module-title"},"播放列表",-1)),M("div",rge,[(x(!0),U(Ge,null,mt(n.detail.list,h=>(x(),U("a",{href:"javascript:;",class:F(`play-tab-item ${n.currentTabId==h.id?"tab-active":""}`),onClick:v=>a(h.id)},de(h.name),11,age))),256))])]),M("div",ige,[(x(!0),U(Ge,null,mt(n.detail.list,h=>gt((x(),U("div",oge,[(x(!0),U(Ge,null,mt(h.linkList,(v,m)=>(x(),U("a",{class:"play-link",href:"javascript:;",onClick:g=>i({source:h.id,episode:m})},de(v.episode),9,sge))),256))],512)),[[zt,n.currentTabId==h.id]])),256))])])]),M("div",lge,[E(RM,{"relate-list":n.relate},null,8,["relate-list"])])],512)),[[zt,n.loading]])}}}),cge=En(uge,[["__scopeId","data-v-d51f8599"]]),LM="/assets/play-bb9c8990.png";var Dd;typeof window<"u"?Dd=window:typeof Sa<"u"?Dd=Sa:typeof self<"u"?Dd=self:Dd={};var fg=Dd;const Te=xr(fg),dge={},fge=Object.freeze(Object.defineProperty({__proto__:null,default:dge},Symbol.toStringTag,{value:"Module"})),pge=DP(fge);var Mx=typeof Sa<"u"?Sa:typeof window<"u"?window:{},hge=pge,Id;typeof document<"u"?Id=document:(Id=Mx["__GLOBAL_DOCUMENT_CACHE@4"],Id||(Id=Mx["__GLOBAL_DOCUMENT_CACHE@4"]=hge));var NM=Id;const vt=xr(NM);function oi(){return oi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oi.apply(null,arguments)}const mge=Object.freeze(Object.defineProperty({__proto__:null,get default(){return oi}},Symbol.toStringTag,{value:"Module"}));var Ub={exports:{}};(function(e,t){function n(l){if(l&&typeof l=="object"){var u=l.which||l.keyCode||l.charCode;u&&(l=u)}if(typeof l=="number")return o[l];var c=String(l),d=r[c.toLowerCase()];if(d)return d;var d=a[c.toLowerCase()];if(d)return d;if(c.length===1)return c.charCodeAt(0)}n.isEventKey=function(u,c){if(u&&typeof u=="object"){var d=u.which||u.keyCode||u.charCode;if(d==null)return!1;if(typeof c=="string"){var p=r[c.toLowerCase()];if(p)return p===d;var p=a[c.toLowerCase()];if(p)return p===d}else if(typeof c=="number")return c===d;return!1}},t=e.exports=n;var r=t.code=t.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},a=t.aliases={windows:91,"⇧":16,"⌥":18,"⌃":17,"⌘":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};/*!
* Programatically add the following
*/for(i=97;i<123;i++)r[String.fromCharCode(i)]=i-32;for(var i=48;i<58;i++)r[i-48]=i;for(i=1;i<13;i++)r["f"+i]=i+111;for(i=0;i<10;i++)r["numpad "+i]=i+96;var o=t.names=t.title={};for(i in r)o[r[i]]=i;for(var s in a)r[s]=a[s]})(Ub,Ub.exports);var vge=Ub.exports;const Jt=xr(vge);function Qt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hc(e,t){return hc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},hc(e,t)}function Tt(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,hc(e,t)}var gge=yge;function yge(e,t){var n,r=null;try{n=JSON.parse(e,t)}catch(a){r=a}return[r,n]}const bge=xr(gge);var W2={exports:{}};const _ge=DP(mge);var Tge=Sge,wge=Object.prototype.toString;function Sge(e){if(!e)return!1;var t=wge.call(e);return t==="[object Function]"||typeof e=="function"&&t!=="[object RegExp]"||typeof window<"u"&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)}var Cge=fg,Ege=function(t,n){return n===void 0&&(n=!1),function(r,a,i){if(r){t(r);return}if(a.statusCode>=400&&a.statusCode<=599){var o=i;if(n)if(Cge.TextDecoder){var s=xge(a.headers&&a.headers["content-type"]);try{o=new TextDecoder(s).decode(i)}catch{}}else o=String.fromCharCode.apply(null,new Uint8Array(i));t({cause:o});return}t(null,i)}};function xge(e){return e===void 0&&(e=""),e.toLowerCase().split(";").reduce(function(t,n){var r=n.split("="),a=r[0],i=r[1];return a.trim()==="charset"?i.trim():t},"utf-8")}var kge=Ege,FM=fg,Age=_ge,Dge=Tge;Ji.httpHandler=kge;/**
* @license
* slighly modified parse-headers 2.0.2 <https://github.com/kesla/parse-headers/>
* Copyright (c) 2014 David Björklund
* Available under the MIT license
* <https://github.com/kesla/parse-headers/blob/master/LICENCE>
*/var Ige=function(t){var n={};return t&&t.trim().split(`
`).forEach(function(r){var a=r.indexOf(":"),i=r.slice(0,a).trim().toLowerCase(),o=r.slice(a+1).trim();typeof n[i]>"u"?n[i]=o:Array.isArray(n[i])?n[i].push(o):n[i]=[n[i],o]}),n};W2.exports=Ji;W2.exports.default=Ji;Ji.XMLHttpRequest=FM.XMLHttpRequest||Rge;Ji.XDomainRequest="withCredentials"in new Ji.XMLHttpRequest?Ji.XMLHttpRequest:FM.XDomainRequest;Pge(["get","put","post","patch","head","delete"],function(e){Ji[e==="delete"?"del":e]=function(t,n,r){return n=$M(t,n,r),n.method=e.toUpperCase(),BM(n)}});function Pge(e,t){for(var n=0;n<e.length;n++)t(e[n])}function Oge(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}function $M(e,t,n){var r=e;return Dge(t)?(n=t,typeof e=="string"&&(r={uri:e})):r=Age({},t,{uri:e}),r.callback=n,r}function Ji(e,t,n){return t=$M(e,t,n),BM(t)}function BM(e){if(typeof e.callback>"u")throw new Error("callback argument missing");var t=!1,n=function(b,_,w){t||(t=!0,e.callback(b,_,w))};function r(){s.readyState===4&&setTimeout(o,0)}function a(){var T=void 0;if(s.response?T=s.response:T=s.responseText||Mge(s),m)try{T=JSON.parse(T)}catch{}return T}function i(T){return clearTimeout(g),T instanceof Error||(T=new Error(""+(T||"Unknown XMLHttpRequest Error"))),T.statusCode=0,n(T,y)}function o(){if(!u){var T;clearTimeout(g),e.useXDR&&s.status===void 0?T=200:T=s.status===1223?204:s.status;var b=y,_=null;return T!==0?(b={body:a(),statusCode:T,method:d,headers:{},url:c,rawRequest:s},s.getAllResponseHeaders&&(b.headers=Ige(s.getAllResponseHeaders()))):_=new Error("Internal XMLHttpRequest Error"),n(_,b,b.body)}}var s=e.xhr||null;s||(e.cors||e.useXDR?s=new Ji.XDomainRequest:s=new Ji.XMLHttpRequest);var l,u,c=s.url=e.uri||e.url,d=s.method=e.method||"GET",p=e.body||e.data,h=s.headers=e.headers||{},v=!!e.sync,m=!1,g,y={body:void 0,headers:{},statusCode:0,method:d,url:c,rawRequest:s};if("json"in e&&e.json!==!1&&(m=!0,h.accept||h.Accept||(h.Accept="application/json"),d!=="GET"&&d!=="HEAD"&&(h["content-type"]||h["Content-Type"]||(h["Content-Type"]="application/json"),p=JSON.stringify(e.json===!0?p:e.json))),s.onreadystatechange=r,s.onload=o,s.onerror=i,s.onprogress=function(){},s.onabort=function(){u=!0},s.ontimeout=i,s.open(d,c,!v,e.username,e.password),v||(s.withCredentials=!!e.withCredentials),!v&&e.timeout>0&&(g=setTimeout(function(){if(!u){u=!0,s.abort("timeout");var T=new Error("XMLHttpRequest timeout");T.code="ETIMEDOUT",i(T)}},e.timeout)),s.setRequestHeader)for(l in h)h.hasOwnProperty(l)&&s.setRequestHeader(l,h[l]);else if(e.headers&&!Oge(e.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in e&&(s.responseType=e.responseType),"beforeSend"in e&&typeof e.beforeSend=="function"&&e.beforeSend(s),s.send(p||null),s}function Mge(e){try{if(e.responseType==="document")return e.responseXML;var t=e.responseXML&&e.responseXML.documentElement.nodeName==="parsererror";if(e.responseType===""&&!t)return e.responseXML}catch{}return null}function Rge(){}var Lge=W2.exports;const VM=xr(Lge);var UM={exports:{}},Rx=NM,K2=Object.create||function(){function e(){}return function(t){if(arguments.length!==1)throw new Error("Object.create shim only accepts one parameter.");return e.prototype=t,new e}}();function Ma(e,t){this.name="ParsingError",this.code=e.code,this.message=t||e.message}Ma.prototype=K2(Error.prototype);Ma.prototype.constructor=Ma;Ma.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}};function q2(e){function t(r,a,i,o){return(r|0)*3600+(a|0)*60+(i|0)+(o|0)/1e3}var n=e.match(/^(\d+):(\d{1,2})(:\d{1,2})?\.(\d{3})/);return n?n[3]?t(n[1],n[2],n[3].replace(":",""),n[4]):n[1]>59?t(n[1],n[2],0,n[4]):t(0,n[1],n[2],n[4]):null}function Zd(){this.values=K2(null)}Zd.prototype={set:function(e,t){!this.get(e)&&t!==""&&(this.values[e]=t)},get:function(e,t,n){return n?this.has(e)?this.values[e]:t[n]:this.has(e)?this.values[e]:t},has:function(e){return e in this.values},alt:function(e,t,n){for(var r=0;r<n.length;++r)if(t===n[r]){this.set(e,t);break}},integer:function(e,t){/^-?\d+$/.test(t)&&this.set(e,parseInt(t,10))},percent:function(e,t){return t.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&(t=parseFloat(t),t>=0&&t<=100)?(this.set(e,t),!0):!1}};function Pd(e,t,n,r){var a=r?e.split(r):[e];for(var i in a)if(typeof a[i]=="string"){var o=a[i].split(n);if(o.length===2){var s=o[0].trim(),l=o[1].trim();t(s,l)}}}function Nge(e,t,n){var r=e;function a(){var s=q2(e);if(s===null)throw new Ma(Ma.Errors.BadTimeStamp,"Malformed timestamp: "+r);return e=e.replace(/^[^\sa-zA-Z-]+/,""),s}function i(s,l){var u=new Zd;Pd(s,function(c,d){switch(c){case"region":for(var p=n.length-1;p>=0;p--)if(n[p].id===d){u.set(c,n[p].region);break}break;case"vertical":u.alt(c,d,["rl","lr"]);break;case"line":var h=d.split(","),v=h[0];u.integer(c,v),u.percent(c,v)&&u.set("snapToLines",!1),u.alt(c,v,["auto"]),h.length===2&&u.alt("lineAlign",h[1],["start","center","end"]);break;case"position":h=d.split(","),u.percent(c,h[0]),h.length===2&&u.alt("positionAlign",h[1],["start","center","end"]);break;case"size":u.percent(c,d);break;case"align":u.alt(c,d,["start","center","end","left","right"]);break}},/:/,/\s/),l.region=u.get("region",null),l.vertical=u.get("vertical","");try{l.line=u.get("line","auto")}catch{}l.lineAlign=u.get("lineAlign","start"),l.snapToLines=u.get("snapToLines",!0),l.size=u.get("size",100);try{l.align=u.get("align","center")}catch{l.align=u.get("align","middle")}try{l.position=u.get("position","auto")}catch{l.position=u.get("position",{start:0,left:0,center:50,middle:50,end:100,right:100},l.align)}l.positionAlign=u.get("positionAlign",{start:"start",left:"start",center:"center",middle:"center",end:"end",right:"end"},l.align)}function o(){e=e.replace(/^\s+/,"")}if(o(),t.startTime=a(),o(),e.substr(0,3)!=="-->")throw new Ma(Ma.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '-->'): "+r);e=e.substr(3),o(),t.endTime=a(),o(),i(e,t)}var N0=Rx.createElement&&Rx.createElement("textarea"),Fge={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},Lx={white:"rgba(255,255,255,1)",lime:"rgba(0,255,0,1)",cyan:"rgba(0,255,255,1)",red:"rgba(255,0,0,1)",yellow:"rgba(255,255,0,1)",magenta:"rgba(255,0,255,1)",blue:"rgba(0,0,255,1)",black:"rgba(0,0,0,1)"},$ge={v:"title",lang:"lang"},Nx={rt:"ruby"};function HM(e,t){function n(){if(!t)return null;function v(g){return t=t.substr(g.length),g}var m=t.match(/^([^<]*)(<[^>]*>?)?/);return v(m[1]?m[1]:m[2])}function r(v){return N0.innerHTML=v,v=N0.textContent,N0.textContent="",v}function a(v,m){return!Nx[m.localName]||Nx[m.localName]===v.localName}function i(v,m){var g=Fge[v];if(!g)return null;var y=e.document.createElement(g),T=$ge[v];return T&&m&&(y[T]=m.trim()),y}for(var o=e.document.createElement("div"),s=o,l,u=[];(l=n())!==null;){if(l[0]==="<"){if(l[1]==="/"){u.length&&u[u.length-1]===l.substr(2).replace(">","")&&(u.pop(),s=s.parentNode);continue}var c=q2(l.substr(1,l.length-2)),d;if(c){d=e.document.createProcessingInstruction("timestamp",c),s.appendChild(d);continue}var p=l.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!p||(d=i(p[1],p[3]),!d)||!a(s,d))continue;if(p[2]){var h=p[2].split(".");h.forEach(function(v){var m=/^bg_/.test(v),g=m?v.slice(3):v;if(Lx.hasOwnProperty(g)){var y=m?"background-color":"color",T=Lx[g];d.style[y]=T}}),d.className=h.join(" ")}u.push(p[1]),s.appendChild(d),s=d;continue}s.appendChild(e.document.createTextNode(r(l)))}return o}var Fx=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];function Bge(e){for(var t=0;t<Fx.length;t++){var n=Fx[t];if(e>=n[0]&&e<=n[1])return!0}return!1}function Vge(e){var t=[],n="",r;if(!e||!e.childNodes)return"ltr";function a(s,l){for(var u=l.childNodes.length-1;u>=0;u--)s.push(l.childNodes[u])}function i(s){if(!s||!s.length)return null;var l=s.pop(),u=l.textContent||l.innerText;if(u){var c=u.match(/^.*(\n|\r)/);return c?(s.length=0,c[0]):u}if(l.tagName==="ruby")return i(s);if(l.childNodes)return a(s,l),i(s)}for(a(t,e);n=i(t);)for(var o=0;o<n.length;o++)if(r=n.charCodeAt(o),Bge(r))return"rtl";return"ltr"}function Uge(e){if(typeof e.line=="number"&&(e.snapToLines||e.line>=0&&e.line<=100))return e.line;if(!e.track||!e.track.textTrackList||!e.track.textTrackList.mediaElement)return-1;for(var t=e.track,n=t.textTrackList,r=0,a=0;a<n.length&&n[a]!==t;a++)n[a].mode==="showing"&&r++;return++r*-1}function pg(){}pg.prototype.applyStyles=function(e,t){t=t||this.div;for(var n in e)e.hasOwnProperty(n)&&(t.style[n]=e[n])};pg.prototype.formatStyle=function(e,t){return e===0?0:e+t};function zm(e,t,n){pg.call(this),this.cue=t,this.cueDiv=HM(e,t.text);var r={color:"rgba(255, 255, 255, 1)",backgroundColor:"rgba(0, 0, 0, 0.8)",position:"relative",left:0,right:0,top:0,bottom:0,display:"inline",writingMode:t.vertical===""?"horizontal-tb":t.vertical==="lr"?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext"};this.applyStyles(r,this.cueDiv),this.div=e.document.createElement("div"),r={direction:Vge(this.cueDiv),writingMode:t.vertical===""?"horizontal-tb":t.vertical==="lr"?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext",textAlign:t.align==="middle"?"center":t.align,font:n.font,whiteSpace:"pre-line",position:"absolute"},this.applyStyles(r),this.div.appendChild(this.cueDiv);var a=0;switch(t.positionAlign){case"start":case"line-left":a=t.position;break;case"center":a=t.position-t.size/2;break;case"end":case"line-right":a=t.position-t.size;break}t.vertical===""?this.applyStyles({left:this.formatStyle(a,"%"),width:this.formatStyle(t.size,"%")}):this.applyStyles({top:this.formatStyle(a,"%"),height:this.formatStyle(t.size,"%")}),this.move=function(i){this.applyStyles({top:this.formatStyle(i.top,"px"),bottom:this.formatStyle(i.bottom,"px"),left:this.formatStyle(i.left,"px"),right:this.formatStyle(i.right,"px"),height:this.formatStyle(i.height,"px"),width:this.formatStyle(i.width,"px")})}}zm.prototype=K2(pg.prototype);zm.prototype.constructor=zm;function ta(e){var t,n,r,a;if(e.div){n=e.div.offsetHeight,r=e.div.offsetWidth,a=e.div.offsetTop;var i=(i=e.div.childNodes)&&(i=i[0])&&i.getClientRects&&i.getClientRects();e=e.div.getBoundingClientRect(),t=i?Math.max(i[0]&&i[0].height||0,e.height/i.length):0}this.left=e.left,this.right=e.right,this.top=e.top||a,this.height=e.height||n,this.bottom=e.bottom||a+(e.height||n),this.width=e.width||r,this.lineHeight=t!==void 0?t:e.lineHeight}ta.prototype.move=function(e,t){switch(t=t!==void 0?t:this.lineHeight,e){case"+x":this.left+=t,this.right+=t;break;case"-x":this.left-=t,this.right-=t;break;case"+y":this.top+=t,this.bottom+=t;break;case"-y":this.top-=t,this.bottom-=t;break}};ta.prototype.overlaps=function(e){return this.left<e.right&&this.right>e.left&&this.top<e.bottom&&this.bottom>e.top};ta.prototype.overlapsAny=function(e){for(var t=0;t<e.length;t++)if(this.overlaps(e[t]))return!0;return!1};ta.prototype.within=function(e){return this.top>=e.top&&this.bottom<=e.bottom&&this.left>=e.left&&this.right<=e.right};ta.prototype.overlapsOppositeAxis=function(e,t){switch(t){case"+x":return this.left<e.left;case"-x":return this.right>e.right;case"+y":return this.top<e.top;case"-y":return this.bottom>e.bottom}};ta.prototype.intersectPercentage=function(e){var t=Math.max(0,Math.min(this.right,e.right)-Math.max(this.left,e.left)),n=Math.max(0,Math.min(this.bottom,e.bottom)-Math.max(this.top,e.top)),r=t*n;return r/(this.height*this.width)};ta.prototype.toCSSCompatValues=function(e){return{top:this.top-e.top,bottom:e.bottom-this.bottom,left:this.left-e.left,right:e.right-this.right,height:this.height,width:this.width}};ta.getSimpleBoxPosition=function(e){var t=e.div?e.div.offsetHeight:e.tagName?e.offsetHeight:0,n=e.div?e.div.offsetWidth:e.tagName?e.offsetWidth:0,r=e.div?e.div.offsetTop:e.tagName?e.offsetTop:0;e=e.div?e.div.getBoundingClientRect():e.tagName?e.getBoundingClientRect():e;var a={left:e.left,right:e.right,top:e.top||r,height:e.height||t,bottom:e.bottom||r+(e.height||t),width:e.width||n};return a};function Hge(e,t,n,r){function a(g,y){for(var T,b=new ta(g),_=1,w=0;w<y.length;w++){for(;g.overlapsOppositeAxis(n,y[w])||g.within(n)&&g.overlapsAny(r);)g.move(y[w]);if(g.within(n))return g;var S=g.intersectPercentage(n);_>S&&(T=new ta(g),_=S),g=new ta(b)}return T||b}var i=new ta(t),o=t.cue,s=Uge(o),l=[];if(o.snapToLines){var u;switch(o.vertical){case"":l=["+y","-y"],u="height";break;case"rl":l=["+x","-x"],u="width";break;case"lr":l=["-x","+x"],u="width";break}var c=i.lineHeight,d=c*Math.round(s),p=n[u]+c,h=l[0];Math.abs(d)>p&&(d=d<0?-1:1,d*=Math.ceil(p/c)*c),s<0&&(d+=o.vertical===""?n.height:n.width,l=l.reverse()),i.move(h,d)}else{var v=i.lineHeight/n.height*100;switch(o.lineAlign){case"center":s-=v/2;break;case"end":s-=v;break}switch(o.vertical){case"":t.applyStyles({top:t.formatStyle(s,"%")});break;case"rl":t.applyStyles({left:t.formatStyle(s,"%")});break;case"lr":t.applyStyles({right:t.formatStyle(s,"%")});break}l=["+y","-x","+x","-y"],i=new ta(t)}var m=a(i,l);t.move(m.toCSSCompatValues(n))}function Wc(){}Wc.StringDecoder=function(){return{decode:function(e){if(!e)return"";if(typeof e!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}};Wc.convertCueToDOMTree=function(e,t){return!e||!t?null:HM(e,t)};var zge=.05,jge="sans-serif",Wge="1.5%";Wc.processCues=function(e,t,n){if(!e||!t||!n)return null;for(;n.firstChild;)n.removeChild(n.firstChild);var r=e.document.createElement("div");r.style.position="absolute",r.style.left="0",r.style.right="0",r.style.top="0",r.style.bottom="0",r.style.margin=Wge,n.appendChild(r);function a(c){for(var d=0;d<c.length;d++)if(c[d].hasBeenReset||!c[d].displayState)return!0;return!1}if(!a(t)){for(var i=0;i<t.length;i++)r.appendChild(t[i].displayState);return}var o=[],s=ta.getSimpleBoxPosition(r),l=Math.round(s.height*zge*100)/100,u={font:l+"px "+jge};(function(){for(var c,d,p=0;p<t.length;p++)d=t[p],c=new zm(e,d,u),r.appendChild(c.div),Hge(e,c,s,o),d.displayState=c.div,o.push(ta.getSimpleBoxPosition(c))})()};Wc.Parser=function(e,t,n){n||(n=t,t={}),t||(t={}),this.window=e,this.vttjs=t,this.state="INITIAL",this.buffer="",this.decoder=n||new TextDecoder("utf8"),this.regionList=[]};Wc.Parser.prototype={reportOrThrowError:function(e){if(e instanceof Ma)this.onparsingerror&&this.onparsingerror(e);else throw e},parse:function(e){var t=this;e&&(t.buffer+=t.decoder.decode(e,{stream:!0}));function n(){for(var c=t.buffer,d=0;d<c.length&&c[d]!=="\r"&&c[d]!==`
`;)++d;var p=c.substr(0,d);return c[d]==="\r"&&++d,c[d]===`
`&&++d,t.buffer=c.substr(d),p}function r(c){var d=new Zd;if(Pd(c,function(h,v){switch(h){case"id":d.set(h,v);break;case"width":d.percent(h,v);break;case"lines":d.integer(h,v);break;case"regionanchor":case"viewportanchor":var m=v.split(",");if(m.length!==2)break;var g=new Zd;if(g.percent("x",m[0]),g.percent("y",m[1]),!g.has("x")||!g.has("y"))break;d.set(h+"X",g.get("x")),d.set(h+"Y",g.get("y"));break;case"scroll":d.alt(h,v,["up"]);break}},/=/,/\s/),d.has("id")){var p=new(t.vttjs.VTTRegion||t.window.VTTRegion);p.width=d.get("width",100),p.lines=d.get("lines",3),p.regionAnchorX=d.get("regionanchorX",0),p.regionAnchorY=d.get("regionanchorY",100),p.viewportAnchorX=d.get("viewportanchorX",0),p.viewportAnchorY=d.get("viewportanchorY",100),p.scroll=d.get("scroll",""),t.onregion&&t.onregion(p),t.regionList.push({id:d.get("id"),region:p})}}function a(c){var d=new Zd;Pd(c,function(p,h){switch(p){case"MPEGT":d.integer(p+"S",h);break;case"LOCA":d.set(p+"L",q2(h));break}},/[^\d]:/,/,/),t.ontimestampmap&&t.ontimestampmap({MPEGTS:d.get("MPEGTS"),LOCAL:d.get("LOCAL")})}function i(c){c.match(/X-TIMESTAMP-MAP/)?Pd(c,function(d,p){switch(d){case"X-TIMESTAMP-MAP":a(p);break}},/=/):Pd(c,function(d,p){switch(d){case"Region":r(p);break}},/:/)}try{var o;if(t.state==="INITIAL"){if(!/\r\n|\n/.test(t.buffer))return this;o=n();var s=o.match(/^WEBVTT([ \t].*)?$/);if(!s||!s[0])throw new Ma(Ma.Errors.BadSignature);t.state="HEADER"}for(var l=!1;t.buffer;){if(!/\r\n|\n/.test(t.buffer))return this;switch(l?l=!1:o=n(),t.state){case"HEADER":/:/.test(o)?i(o):o||(t.state="ID");continue;case"NOTE":o||(t.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(o)){t.state="NOTE";break}if(!o)continue;t.cue=new(t.vttjs.VTTCue||t.window.VTTCue)(0,0,"");try{t.cue.align="center"}catch{t.cue.align="middle"}if(t.state="CUE",o.indexOf("-->")===-1){t.cue.id=o;continue}case"CUE":try{Nge(o,t.cue,t.regionList)}catch(c){t.reportOrThrowError(c),t.cue=null,t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":var u=o.indexOf("-->")!==-1;if(!o||u&&(l=!0)){t.oncue&&t.oncue(t.cue),t.cue=null,t.state="ID";continue}t.cue.text&&(t.cue.text+=`
`),t.cue.text+=o.replace(/\u2028/g,`
`).replace(/u2029/g,`
`);continue;case"BADCUE":o||(t.state="ID");continue}}}catch(c){t.reportOrThrowError(c),t.state==="CUETEXT"&&t.cue&&t.oncue&&t.oncue(t.cue),t.cue=null,t.state=t.state==="INITIAL"?"BADWEBVTT":"BADCUE"}return this},flush:function(){var e=this;try{if(e.buffer+=e.decoder.decode(),(e.cue||e.state==="HEADER")&&(e.buffer+=`
`,e.parse()),e.state==="INITIAL")throw new Ma(Ma.Errors.BadSignature)}catch(t){e.reportOrThrowError(t)}return e.onflush&&e.onflush(),this}};var Kge=Wc,qge="auto",Gge={"":1,lr:1,rl:1},Yge={start:1,center:1,end:1,left:1,right:1,auto:1,"line-left":1,"line-right":1};function Xge(e){if(typeof e!="string")return!1;var t=Gge[e.toLowerCase()];return t?e.toLowerCase():!1}function F0(e){if(typeof e!="string")return!1;var t=Yge[e.toLowerCase()];return t?e.toLowerCase():!1}function zM(e,t,n){this.hasBeenReset=!1;var r="",a=!1,i=e,o=t,s=n,l=null,u="",c=!0,d="auto",p="start",h="auto",v="auto",m=100,g="center";Object.defineProperties(this,{id:{enumerable:!0,get:function(){return r},set:function(y){r=""+y}},pauseOnExit:{enumerable:!0,get:function(){return a},set:function(y){a=!!y}},startTime:{enumerable:!0,get:function(){return i},set:function(y){if(typeof y!="number")throw new TypeError("Start time must be set to a number.");i=y,this.hasBeenReset=!0}},endTime:{enumerable:!0,get:function(){return o},set:function(y){if(typeof y!="number")throw new TypeError("End time must be set to a number.");o=y,this.hasBeenReset=!0}},text:{enumerable:!0,get:function(){return s},set:function(y){s=""+y,this.hasBeenReset=!0}},region:{enumerable:!0,get:function(){return l},set:function(y){l=y,this.hasBeenReset=!0}},vertical:{enumerable:!0,get:function(){return u},set:function(y){var T=Xge(y);if(T===!1)throw new SyntaxError("Vertical: an invalid or illegal direction string was specified.");u=T,this.hasBeenReset=!0}},snapToLines:{enumerable:!0,get:function(){return c},set:function(y){c=!!y,this.hasBeenReset=!0}},line:{enumerable:!0,get:function(){return d},set:function(y){if(typeof y!="number"&&y!==qge)throw new SyntaxError("Line: an invalid number or illegal string was specified.");d=y,this.hasBeenReset=!0}},lineAlign:{enumerable:!0,get:function(){return p},set:function(y){var T=F0(y);T?(p=T,this.hasBeenReset=!0):console.warn("lineAlign: an invalid or illegal string was specified.")}},position:{enumerable:!0,get:function(){return h},set:function(y){if(y<0||y>100)throw new Error("Position must be between 0 and 100.");h=y,this.hasBeenReset=!0}},positionAlign:{enumerable:!0,get:function(){return v},set:function(y){var T=F0(y);T?(v=T,this.hasBeenReset=!0):console.warn("positionAlign: an invalid or illegal string was specified.")}},size:{enumerable:!0,get:function(){return m},set:function(y){if(y<0||y>100)throw new Error("Size must be between 0 and 100.");m=y,this.hasBeenReset=!0}},align:{enumerable:!0,get:function(){return g},set:function(y){var T=F0(y);if(!T)throw new SyntaxError("align: an invalid or illegal alignment string was specified.");g=T,this.hasBeenReset=!0}}}),this.displayState=void 0}zM.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)};var Qge=zM,Jge={"":!0,up:!0};function Zge(e){if(typeof e!="string")return!1;var t=Jge[e.toLowerCase()];return t?e.toLowerCase():!1}function yd(e){return typeof e=="number"&&e>=0&&e<=100}function e0e(){var e=100,t=3,n=0,r=100,a=0,i=100,o="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return e},set:function(s){if(!yd(s))throw new Error("Width must be between 0 and 100.");e=s}},lines:{enumerable:!0,get:function(){return t},set:function(s){if(typeof s!="number")throw new TypeError("Lines must be set to a number.");t=s}},regionAnchorY:{enumerable:!0,get:function(){return r},set:function(s){if(!yd(s))throw new Error("RegionAnchorX must be between 0 and 100.");r=s}},regionAnchorX:{enumerable:!0,get:function(){return n},set:function(s){if(!yd(s))throw new Error("RegionAnchorY must be between 0 and 100.");n=s}},viewportAnchorY:{enumerable:!0,get:function(){return i},set:function(s){if(!yd(s))throw new Error("ViewportAnchorY must be between 0 and 100.");i=s}},viewportAnchorX:{enumerable:!0,get:function(){return a},set:function(s){if(!yd(s))throw new Error("ViewportAnchorX must be between 0 and 100.");a=s}},scroll:{enumerable:!0,get:function(){return o},set:function(s){var l=Zge(s);l===!1?console.warn("Scroll: an invalid or illegal string was specified."):o=l}}})}var t0e=e0e,qo=fg,Xl=UM.exports={WebVTT:Kge,VTTCue:Qge,VTTRegion:t0e};qo.vttjs=Xl;qo.WebVTT=Xl.WebVTT;var n0e=Xl.VTTCue,r0e=Xl.VTTRegion,a0e=qo.VTTCue,i0e=qo.VTTRegion;Xl.shim=function(){qo.VTTCue=n0e,qo.VTTRegion=r0e};Xl.restore=function(){qo.VTTCue=a0e,qo.VTTRegion=i0e};qo.VTTCue||Xl.shim();var o0e=UM.exports;const $x=xr(o0e);function jM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(jM=function(){return!!e})()}function WM(e,t,n){if(jM())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var a=new(e.bind.apply(e,r));return n&&hc(a,n.prototype),a}function s0e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&hc(e,t)}var KM={exports:{}};(function(e,t){(function(n){var r=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,a=/^(?=([^\/?#]*))\1([^]*)$/,i=/(?:\/|^)\.(?=\/)/g,o=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,s={buildAbsoluteURL:function(l,u,c){if(c=c||{},l=l.trim(),u=u.trim(),!u){if(!c.alwaysNormalize)return l;var d=s.parseURL(l);if(!d)throw new Error("Error trying to parse base URL.");return d.path=s.normalizePath(d.path),s.buildURLFromParts(d)}var p=s.parseURL(u);if(!p)throw new Error("Error trying to parse relative URL.");if(p.scheme)return c.alwaysNormalize?(p.path=s.normalizePath(p.path),s.buildURLFromParts(p)):u;var h=s.parseURL(l);if(!h)throw new Error("Error trying to parse base URL.");if(!h.netLoc&&h.path&&h.path[0]!=="/"){var v=a.exec(h.path);h.netLoc=v[1],h.path=v[2]}h.netLoc&&!h.path&&(h.path="/");var m={scheme:h.scheme,netLoc:p.netLoc,path:null,params:p.params,query:p.query,fragment:p.fragment};if(!p.netLoc&&(m.netLoc=h.netLoc,p.path[0]!=="/"))if(!p.path)m.path=h.path,p.params||(m.params=h.params,p.query||(m.query=h.query));else{var g=h.path,y=g.substring(0,g.lastIndexOf("/")+1)+p.path;m.path=s.normalizePath(y)}return m.path===null&&(m.path=c.alwaysNormalize?s.normalizePath(p.path):p.path),s.buildURLFromParts(m)},parseURL:function(l){var u=r.exec(l);return u?{scheme:u[1]||"",netLoc:u[2]||"",path:u[3]||"",params:u[4]||"",query:u[5]||"",fragment:u[6]||""}:null},normalizePath:function(l){for(l=l.split("").reverse().join("").replace(i,"");l.length!==(l=l.replace(o,"")).length;);return l.split("").reverse().join("")},buildURLFromParts:function(l){return l.scheme+l.netLoc+l.path+l.params+l.query+l.fragment}};e.exports=s})()})(KM);var l0e=KM.exports;const Bx=xr(l0e);var Vx="http://example.com",hg=function(t,n){if(/^[a-z]+:/i.test(n))return n;/^data:/.test(t)&&(t=Te.location&&Te.location.href||"");var r=typeof Te.URL=="function",a=/^\/\//.test(t),i=!Te.location&&!/\/\//i.test(t);if(r?t=new Te.URL(t,Te.location||Vx):/\/\//i.test(t)||(t=Bx.buildAbsoluteURL(Te.location&&Te.location.href||"",t)),r){var o=new URL(n,t);return i?o.href.slice(Vx.length):a?o.href.slice(o.protocol.length):o.href}return Bx.buildAbsoluteURL(t,n)},G2=function(){function e(){this.listeners={}}var t=e.prototype;return t.on=function(r,a){this.listeners[r]||(this.listeners[r]=[]),this.listeners[r].push(a)},t.off=function(r,a){if(!this.listeners[r])return!1;var i=this.listeners[r].indexOf(a);return this.listeners[r]=this.listeners[r].slice(0),this.listeners[r].splice(i,1),i>-1},t.trigger=function(r){var a=this.listeners[r];if(a)if(arguments.length===2)for(var i=a.length,o=0;o<i;++o)a[o].call(this,arguments[1]);else for(var s=Array.prototype.slice.call(arguments,1),l=a.length,u=0;u<l;++u)a[u].apply(this,s)},t.dispose=function(){this.listeners={}},t.pipe=function(r){this.on("data",function(a){r.push(a)})},e}(),u0e=function(t){return Te.atob?Te.atob(t):Buffer.from(t,"base64").toString("binary")};function qM(e){for(var t=u0e(e),n=new Uint8Array(t.length),r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n}/*! @name m3u8-parser @version 4.8.0 @license Apache-2.0 */var c0e=function(e){Tt(t,e);function t(){var r;return r=e.call(this)||this,r.buffer="",r}var n=t.prototype;return n.push=function(a){var i;for(this.buffer+=a,i=this.buffer.indexOf(`
`);i>-1;i=this.buffer.indexOf(`
`))this.trigger("data",this.buffer.substring(0,i)),this.buffer=this.buffer.substring(i+1)},t}(G2),d0e=String.fromCharCode(9),$0=function(t){var n=/([0-9.]*)?@?([0-9.]*)?/.exec(t||""),r={};return n[1]&&(r.length=parseInt(n[1],10)),n[2]&&(r.offset=parseInt(n[2],10)),r},f0e=function(){var t="[^=]*",n='"[^"]*"|[^,]*',r="(?:"+t+")=(?:"+n+")";return new RegExp("(?:^|,)("+r+")")},li=function(t){for(var n=t.split(f0e()),r={},a=n.length,i;a--;)n[a]!==""&&(i=/([^=]*)=(.*)/.exec(n[a]).slice(1),i[0]=i[0].replace(/^\s+|\s+$/g,""),i[1]=i[1].replace(/^\s+|\s+$/g,""),i[1]=i[1].replace(/^['"](.*)['"]$/g,"$1"),r[i[0]]=i[1]);return r},p0e=function(e){Tt(t,e);function t(){var r;return r=e.call(this)||this,r.customParsers=[],r.tagMappers=[],r}var n=t.prototype;return n.push=function(a){var i=this,o,s;if(a=a.trim(),a.length!==0){if(a[0]!=="#"){this.trigger("data",{type:"uri",uri:a});return}var l=this.tagMappers.reduce(function(u,c){var d=c(a);return d===a?u:u.concat([d])},[a]);l.forEach(function(u){for(var c=0;c<i.customParsers.length;c++)if(i.customParsers[c].call(i,u))return;if(u.indexOf("#EXT")!==0){i.trigger("data",{type:"comment",text:u.slice(1)});return}if(u=u.replace("\r",""),o=/^#EXTM3U/.exec(u),o){i.trigger("data",{type:"tag",tagType:"m3u"});return}if(o=/^#EXTINF:?([0-9\.]*)?,?(.*)?$/.exec(u),o){s={type:"tag",tagType:"inf"},o[1]&&(s.duration=parseFloat(o[1])),o[2]&&(s.title=o[2]),i.trigger("data",s);return}if(o=/^#EXT-X-TARGETDURATION:?([0-9.]*)?/.exec(u),o){s={type:"tag",tagType:"targetduration"},o[1]&&(s.duration=parseInt(o[1],10)),i.trigger("data",s);return}if(o=/^#EXT-X-VERSION:?([0-9.]*)?/.exec(u),o){s={type:"tag",tagType:"version"},o[1]&&(s.version=parseInt(o[1],10)),i.trigger("data",s);return}if(o=/^#EXT-X-MEDIA-SEQUENCE:?(\-?[0-9.]*)?/.exec(u),o){s={type:"tag",tagType:"media-sequence"},o[1]&&(s.number=parseInt(o[1],10)),i.trigger("data",s);return}if(o=/^#EXT-X-DISCONTINUITY-SEQUENCE:?(\-?[0-9.]*)?/.exec(u),o){s={type:"tag",tagType:"discontinuity-sequence"},o[1]&&(s.number=parseInt(o[1],10)),i.trigger("data",s);return}if(o=/^#EXT-X-PLAYLIST-TYPE:?(.*)?$/.exec(u),o){s={type:"tag",tagType:"playlist-type"},o[1]&&(s.playlistType=o[1]),i.trigger("data",s);return}if(o=/^#EXT-X-BYTERANGE:?(.*)?$/.exec(u),o){s=oi($0(o[1]),{type:"tag",tagType:"byterange"}),i.trigger("data",s);return}if(o=/^#EXT-X-ALLOW-CACHE:?(YES|NO)?/.exec(u),o){s={type:"tag",tagType:"allow-cache"},o[1]&&(s.allowed=!/NO/.test(o[1])),i.trigger("data",s);return}if(o=/^#EXT-X-MAP:?(.*)$/.exec(u),o){if(s={type:"tag",tagType:"map"},o[1]){var d=li(o[1]);d.URI&&(s.uri=d.URI),d.BYTERANGE&&(s.byterange=$0(d.BYTERANGE))}i.trigger("data",s);return}if(o=/^#EXT-X-STREAM-INF:?(.*)$/.exec(u),o){if(s={type:"tag",tagType:"stream-inf"},o[1]){if(s.attributes=li(o[1]),s.attributes.RESOLUTION){var p=s.attributes.RESOLUTION.split("x"),h={};p[0]&&(h.width=parseInt(p[0],10)),p[1]&&(h.height=parseInt(p[1],10)),s.attributes.RESOLUTION=h}s.attributes.BANDWIDTH&&(s.attributes.BANDWIDTH=parseInt(s.attributes.BANDWIDTH,10)),s.attributes["FRAME-RATE"]&&(s.attributes["FRAME-RATE"]=parseFloat(s.attributes["FRAME-RATE"])),s.attributes["PROGRAM-ID"]&&(s.attributes["PROGRAM-ID"]=parseInt(s.attributes["PROGRAM-ID"],10))}i.trigger("data",s);return}if(o=/^#EXT-X-MEDIA:?(.*)$/.exec(u),o){s={type:"tag",tagType:"media"},o[1]&&(s.attributes=li(o[1])),i.trigger("data",s);return}if(o=/^#EXT-X-ENDLIST/.exec(u),o){i.trigger("data",{type:"tag",tagType:"endlist"});return}if(o=/^#EXT-X-DISCONTINUITY/.exec(u),o){i.trigger("data",{type:"tag",tagType:"discontinuity"});return}if(o=/^#EXT-X-PROGRAM-DATE-TIME:?(.*)$/.exec(u),o){s={type:"tag",tagType:"program-date-time"},o[1]&&(s.dateTimeString=o[1],s.dateTimeObject=new Date(o[1])),i.trigger("data",s);return}if(o=/^#EXT-X-KEY:?(.*)$/.exec(u),o){s={type:"tag",tagType:"key"},o[1]&&(s.attributes=li(o[1]),s.attributes.IV&&(s.attributes.IV.substring(0,2).toLowerCase()==="0x"&&(s.attributes.IV=s.attributes.IV.substring(2)),s.attributes.IV=s.attributes.IV.match(/.{8}/g),s.attributes.IV[0]=parseInt(s.attributes.IV[0],16),s.attributes.IV[1]=parseInt(s.attributes.IV[1],16),s.attributes.IV[2]=parseInt(s.attributes.IV[2],16),s.attributes.IV[3]=parseInt(s.attributes.IV[3],16),s.attributes.IV=new Uint32Array(s.attributes.IV))),i.trigger("data",s);return}if(o=/^#EXT-X-START:?(.*)$/.exec(u),o){s={type:"tag",tagType:"start"},o[1]&&(s.attributes=li(o[1]),s.attributes["TIME-OFFSET"]=parseFloat(s.attributes["TIME-OFFSET"]),s.attributes.PRECISE=/YES/.test(s.attributes.PRECISE)),i.trigger("data",s);return}if(o=/^#EXT-X-CUE-OUT-CONT:?(.*)?$/.exec(u),o){s={type:"tag",tagType:"cue-out-cont"},o[1]?s.data=o[1]:s.data="",i.trigger("data",s);return}if(o=/^#EXT-X-CUE-OUT:?(.*)?$/.exec(u),o){s={type:"tag",tagType:"cue-out"},o[1]?s.data=o[1]:s.data="",i.trigger("data",s);return}if(o=/^#EXT-X-CUE-IN:?(.*)?$/.exec(u),o){s={type:"tag",tagType:"cue-in"},o[1]?s.data=o[1]:s.data="",i.trigger("data",s);return}if(o=/^#EXT-X-SKIP:(.*)$/.exec(u),o&&o[1]){s={type:"tag",tagType:"skip"},s.attributes=li(o[1]),s.attributes.hasOwnProperty("SKIPPED-SEGMENTS")&&(s.attributes["SKIPPED-SEGMENTS"]=parseInt(s.attributes["SKIPPED-SEGMENTS"],10)),s.attributes.hasOwnProperty("RECENTLY-REMOVED-DATERANGES")&&(s.attributes["RECENTLY-REMOVED-DATERANGES"]=s.attributes["RECENTLY-REMOVED-DATERANGES"].split(d0e)),i.trigger("data",s);return}if(o=/^#EXT-X-PART:(.*)$/.exec(u),o&&o[1]){s={type:"tag",tagType:"part"},s.attributes=li(o[1]),["DURATION"].forEach(function(v){s.attributes.hasOwnProperty(v)&&(s.attributes[v]=parseFloat(s.attributes[v]))}),["INDEPENDENT","GAP"].forEach(function(v){s.attributes.hasOwnProperty(v)&&(s.attributes[v]=/YES/.test(s.attributes[v]))}),s.attributes.hasOwnProperty("BYTERANGE")&&(s.attributes.byterange=$0(s.attributes.BYTERANGE)),i.trigger("data",s);return}if(o=/^#EXT-X-SERVER-CONTROL:(.*)$/.exec(u),o&&o[1]){s={type:"tag",tagType:"server-control"},s.attributes=li(o[1]),["CAN-SKIP-UNTIL","PART-HOLD-BACK","HOLD-BACK"].forEach(function(v){s.attributes.hasOwnProperty(v)&&(s.attributes[v]=parseFloat(s.attributes[v]))}),["CAN-SKIP-DATERANGES","CAN-BLOCK-RELOAD"].forEach(function(v){s.attributes.hasOwnProperty(v)&&(s.attributes[v]=/YES/.test(s.attributes[v]))}),i.trigger("data",s);return}if(o=/^#EXT-X-PART-INF:(.*)$/.exec(u),o&&o[1]){s={type:"tag",tagType:"part-inf"},s.attributes=li(o[1]),["PART-TARGET"].forEach(function(v){s.attributes.hasOwnProperty(v)&&(s.attributes[v]=parseFloat(s.attributes[v]))}),i.trigger("data",s);return}if(o=/^#EXT-X-PRELOAD-HINT:(.*)$/.exec(u),o&&o[1]){s={type:"tag",tagType:"preload-hint"},s.attributes=li(o[1]),["BYTERANGE-START","BYTERANGE-LENGTH"].forEach(function(v){if(s.attributes.hasOwnProperty(v)){s.attributes[v]=parseInt(s.attributes[v],10);var m=v==="BYTERANGE-LENGTH"?"length":"offset";s.attributes.byterange=s.attributes.byterange||{},s.attributes.byterange[m]=s.attributes[v],delete s.attributes[v]}}),i.trigger("data",s);return}if(o=/^#EXT-X-RENDITION-REPORT:(.*)$/.exec(u),o&&o[1]){s={type:"tag",tagType:"rendition-report"},s.attributes=li(o[1]),["LAST-MSN","LAST-PART"].forEach(function(v){s.attributes.hasOwnProperty(v)&&(s.attributes[v]=parseInt(s.attributes[v],10))}),i.trigger("data",s);return}i.trigger("data",{type:"tag",data:u.slice(4)})})}},n.addParser=function(a){var i=this,o=a.expression,s=a.customType,l=a.dataParser,u=a.segment;typeof l!="function"&&(l=function(d){return d}),this.customParsers.push(function(c){var d=o.exec(c);if(d)return i.trigger("data",{type:"custom",data:l(c),customType:s,segment:u}),!0})},n.addTagMapper=function(a){var i=a.expression,o=a.map,s=function(u){return i.test(u)?o(u):u};this.tagMappers.push(s)},t}(G2),h0e=function(t){return t.toLowerCase().replace(/-(\w)/g,function(n){return n[1].toUpperCase()})},cu=function(t){var n={};return Object.keys(t).forEach(function(r){n[h0e(r)]=t[r]}),n},B0=function(t){var n=t.serverControl,r=t.targetDuration,a=t.partTargetDuration;if(n){var i="#EXT-X-SERVER-CONTROL",o="holdBack",s="partHoldBack",l=r&&r*3,u=a&&a*2;r&&!n.hasOwnProperty(o)&&(n[o]=l,this.trigger("info",{message:i+" defaulting HOLD-BACK to targetDuration * 3 ("+l+")."})),l&&n[o]<l&&(this.trigger("warn",{message:i+" clamping HOLD-BACK ("+n[o]+") to targetDuration * 3 ("+l+")"}),n[o]=l),a&&!n.hasOwnProperty(s)&&(n[s]=a*3,this.trigger("info",{message:i+" defaulting PART-HOLD-BACK to partTargetDuration * 3 ("+n[s]+")."})),a&&n[s]<u&&(this.trigger("warn",{message:i+" clamping PART-HOLD-BACK ("+n[s]+") to partTargetDuration * 2 ("+u+")."}),n[s]=u)}},m0e=function(e){Tt(t,e);function t(){var r;r=e.call(this)||this,r.lineStream=new c0e,r.parseStream=new p0e,r.lineStream.pipe(r.parseStream);var a=Qt(r),i=[],o={},s,l,u=!1,c=function(){},d={AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},p="urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed",h=0;r.manifest={allowCache:!0,discontinuityStarts:[],segments:[]};var v=0,m=0;return r.on("end",function(){o.uri||!o.parts&&!o.preloadHints||(!o.map&&s&&(o.map=s),!o.key&&l&&(o.key=l),!o.timeline&&typeof h=="number"&&(o.timeline=h),r.manifest.preloadSegment=o)}),r.parseStream.on("data",function(g){var y,T;({tag:function(){({version:function(){g.version&&(this.manifest.version=g.version)},"allow-cache":function(){this.manifest.allowCache=g.allowed,"allowed"in g||(this.trigger("info",{message:"defaulting allowCache to YES"}),this.manifest.allowCache=!0)},byterange:function(){var w={};"length"in g&&(o.byterange=w,w.length=g.length,"offset"in g||(g.offset=v)),"offset"in g&&(o.byterange=w,w.offset=g.offset),v=w.offset+w.length},endlist:function(){this.manifest.endList=!0},inf:function(){"mediaSequence"in this.manifest||(this.manifest.mediaSequence=0,this.trigger("info",{message:"defaulting media sequence to zero"})),"discontinuitySequence"in this.manifest||(this.manifest.discontinuitySequence=0,this.trigger("info",{message:"defaulting discontinuity sequence to zero"})),g.duration>0&&(o.duration=g.duration),g.duration===0&&(o.duration=.01,this.trigger("info",{message:"updating zero segment duration to a small value"})),this.manifest.segments=i},key:function(){if(!g.attributes){this.trigger("warn",{message:"ignoring key declaration without attribute list"});return}if(g.attributes.METHOD==="NONE"){l=null;return}if(!g.attributes.URI){this.trigger("warn",{message:"ignoring key declaration without URI"});return}if(g.attributes.KEYFORMAT==="com.apple.streamingkeydelivery"){this.manifest.contentProtection=this.manifest.contentProtection||{},this.manifest.contentProtection["com.apple.fps.1_0"]={attributes:g.attributes};return}if(g.attributes.KEYFORMAT==="com.microsoft.playready"){this.manifest.contentProtection=this.manifest.contentProtection||{},this.manifest.contentProtection["com.microsoft.playready"]={uri:g.attributes.URI};return}if(g.attributes.KEYFORMAT===p){var w=["SAMPLE-AES","SAMPLE-AES-CTR","SAMPLE-AES-CENC"];if(w.indexOf(g.attributes.METHOD)===-1){this.trigger("warn",{message:"invalid key method provided for Widevine"});return}if(g.attributes.METHOD==="SAMPLE-AES-CENC"&&this.trigger("warn",{message:"SAMPLE-AES-CENC is deprecated, please use SAMPLE-AES-CTR instead"}),g.attributes.URI.substring(0,23)!=="data:text/plain;base64,"){this.trigger("warn",{message:"invalid key URI provided for Widevine"});return}if(!(g.attributes.KEYID&&g.attributes.KEYID.substring(0,2)==="0x")){this.trigger("warn",{message:"invalid key ID provided for Widevine"});return}this.manifest.contentProtection=this.manifest.contentProtection||{},this.manifest.contentProtection["com.widevine.alpha"]={attributes:{schemeIdUri:g.attributes.KEYFORMAT,keyId:g.attributes.KEYID.substring(2)},pssh:qM(g.attributes.URI.split(",")[1])};return}g.attributes.METHOD||this.trigger("warn",{message:"defaulting key method to AES-128"}),l={method:g.attributes.METHOD||"AES-128",uri:g.attributes.URI},typeof g.attributes.IV<"u"&&(l.iv=g.attributes.IV)},"media-sequence":function(){if(!isFinite(g.number)){this.trigger("warn",{message:"ignoring invalid media sequence: "+g.number});return}this.manifest.mediaSequence=g.number},"discontinuity-sequence":function(){if(!isFinite(g.number)){this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+g.number});return}this.manifest.discontinuitySequence=g.number,h=g.number},"playlist-type":function(){if(!/VOD|EVENT/.test(g.playlistType)){this.trigger("warn",{message:"ignoring unknown playlist type: "+g.playlist});return}this.manifest.playlistType=g.playlistType},map:function(){s={},g.uri&&(s.uri=g.uri),g.byterange&&(s.byterange=g.byterange),l&&(s.key=l)},"stream-inf":function(){if(this.manifest.playlists=i,this.manifest.mediaGroups=this.manifest.mediaGroups||d,!g.attributes){this.trigger("warn",{message:"ignoring empty stream-inf attributes"});return}o.attributes||(o.attributes={}),oi(o.attributes,g.attributes)},media:function(){if(this.manifest.mediaGroups=this.manifest.mediaGroups||d,!(g.attributes&&g.attributes.TYPE&&g.attributes["GROUP-ID"]&&g.attributes.NAME)){this.trigger("warn",{message:"ignoring incomplete or missing media group"});return}var w=this.manifest.mediaGroups[g.attributes.TYPE];w[g.attributes["GROUP-ID"]]=w[g.attributes["GROUP-ID"]]||{},y=w[g.attributes["GROUP-ID"]],T={default:/yes/i.test(g.attributes.DEFAULT)},T.default?T.autoselect=!0:T.autoselect=/yes/i.test(g.attributes.AUTOSELECT),g.attributes.LANGUAGE&&(T.language=g.attributes.LANGUAGE),g.attributes.URI&&(T.uri=g.attributes.URI),g.attributes["INSTREAM-ID"]&&(T.instreamId=g.attributes["INSTREAM-ID"]),g.attributes.CHARACTERISTICS&&(T.characteristics=g.attributes.CHARACTERISTICS),g.attributes.FORCED&&(T.forced=/yes/i.test(g.attributes.FORCED)),y[g.attributes.NAME]=T},discontinuity:function(){h+=1,o.discontinuity=!0,this.manifest.discontinuityStarts.push(i.length)},"program-date-time":function(){typeof this.manifest.dateTimeString>"u"&&(this.manifest.dateTimeString=g.dateTimeString,this.manifest.dateTimeObject=g.dateTimeObject),o.dateTimeString=g.dateTimeString,o.dateTimeObject=g.dateTimeObject},targetduration:function(){if(!isFinite(g.duration)||g.duration<0){this.trigger("warn",{message:"ignoring invalid target duration: "+g.duration});return}this.manifest.targetDuration=g.duration,B0.call(this,this.manifest)},start:function(){if(!g.attributes||isNaN(g.attributes["TIME-OFFSET"])){this.trigger("warn",{message:"ignoring start declaration without appropriate attribute list"});return}this.manifest.start={timeOffset:g.attributes["TIME-OFFSET"],precise:g.attributes.PRECISE}},"cue-out":function(){o.cueOut=g.data},"cue-out-cont":function(){o.cueOutCont=g.data},"cue-in":function(){o.cueIn=g.data},skip:function(){this.manifest.skip=cu(g.attributes),this.warnOnMissingAttributes_("#EXT-X-SKIP",g.attributes,["SKIPPED-SEGMENTS"])},part:function(){var w=this;u=!0;var S=this.manifest.segments.length,A=cu(g.attributes);o.parts=o.parts||[],o.parts.push(A),A.byterange&&(A.byterange.hasOwnProperty("offset")||(A.byterange.offset=m),m=A.byterange.offset+A.byterange.length);var I=o.parts.length-1;this.warnOnMissingAttributes_("#EXT-X-PART #"+I+" for segment #"+S,g.attributes,["URI","DURATION"]),this.manifest.renditionReports&&this.manifest.renditionReports.forEach(function(D,O){D.hasOwnProperty("lastPart")||w.trigger("warn",{message:"#EXT-X-RENDITION-REPORT #"+O+" lacks required attribute(s): LAST-PART"})})},"server-control":function(){var w=this.manifest.serverControl=cu(g.attributes);w.hasOwnProperty("canBlockReload")||(w.canBlockReload=!1,this.trigger("info",{message:"#EXT-X-SERVER-CONTROL defaulting CAN-BLOCK-RELOAD to false"})),B0.call(this,this.manifest),w.canSkipDateranges&&!w.hasOwnProperty("canSkipUntil")&&this.trigger("warn",{message:"#EXT-X-SERVER-CONTROL lacks required attribute CAN-SKIP-UNTIL which is required when CAN-SKIP-DATERANGES is set"})},"preload-hint":function(){var w=this.manifest.segments.length,S=cu(g.attributes),A=S.type&&S.type==="PART";o.preloadHints=o.preloadHints||[],o.preloadHints.push(S),S.byterange&&(S.byterange.hasOwnProperty("offset")||(S.byterange.offset=A?m:0,A&&(m=S.byterange.offset+S.byterange.length)));var I=o.preloadHints.length-1;if(this.warnOnMissingAttributes_("#EXT-X-PRELOAD-HINT #"+I+" for segment #"+w,g.attributes,["TYPE","URI"]),!!S.type)for(var D=0;D<o.preloadHints.length-1;D++){var O=o.preloadHints[D];O.type&&O.type===S.type&&this.trigger("warn",{message:"#EXT-X-PRELOAD-HINT #"+I+" for segment #"+w+" has the same TYPE "+S.type+" as preload hint #"+D})}},"rendition-report":function(){var w=cu(g.attributes);this.manifest.renditionReports=this.manifest.renditionReports||[],this.manifest.renditionReports.push(w);var S=this.manifest.renditionReports.length-1,A=["LAST-MSN","URI"];u&&A.push("LAST-PART"),this.warnOnMissingAttributes_("#EXT-X-RENDITION-REPORT #"+S,g.attributes,A)},"part-inf":function(){this.manifest.partInf=cu(g.attributes),this.warnOnMissingAttributes_("#EXT-X-PART-INF",g.attributes,["PART-TARGET"]),this.manifest.partInf.partTarget&&(this.manifest.partTargetDuration=this.manifest.partInf.partTarget),B0.call(this,this.manifest)}}[g.tagType]||c).call(a)},uri:function(){o.uri=g.uri,i.push(o),this.manifest.targetDuration&&!("duration"in o)&&(this.trigger("warn",{message:"defaulting segment duration to the target duration"}),o.duration=this.manifest.targetDuration),l&&(o.key=l),o.timeline=h,s&&(o.map=s),m=0,o={}},comment:function(){},custom:function(){g.segment?(o.custom=o.custom||{},o.custom[g.customType]=g.data):(this.manifest.custom=this.manifest.custom||{},this.manifest.custom[g.customType]=g.data)}})[g.type].call(a)}),r}var n=t.prototype;return n.warnOnMissingAttributes_=function(a,i,o){var s=[];o.forEach(function(l){i.hasOwnProperty(l)||s.push(l)}),s.length&&this.trigger("warn",{message:a+" lacks required attribute(s): "+s.join(", ")})},n.push=function(a){this.lineStream.push(a)},n.end=function(){this.lineStream.push(`
`),this.trigger("end")},n.addParser=function(a){this.parseStream.addParser(a)},n.addTagMapper=function(a){this.parseStream.addTagMapper(a)},t}(G2),xl={mp4:/^(av0?1|avc0?[1234]|vp0?9|flac|opus|mp3|mp4a|mp4v|stpp.ttml.im1t)/,webm:/^(vp0?[89]|av0?1|opus|vorbis)/,ogg:/^(vp0?[89]|theora|flac|opus|vorbis)/,video:/^(av0?1|avc0?[1234]|vp0?[89]|hvc1|hev1|theora|mp4v)/,audio:/^(mp4a|flac|vorbis|opus|ac-[34]|ec-3|alac|mp3|speex|aac)/,text:/^(stpp.ttml.im1t)/,muxerVideo:/^(avc0?1)/,muxerAudio:/^(mp4a)/,muxerText:/a^/},v0e=["video","audio","text"],Ux=["Video","Audio","Text"],GM=function(t){return t&&t.replace(/avc1\.(\d+)\.(\d+)/i,function(n,r,a){var i=("00"+Number(r).toString(16)).slice(-2),o=("00"+Number(a).toString(16)).slice(-2);return"avc1."+i+"00"+o})},Hi=function(t){t===void 0&&(t="");var n=t.split(","),r=[];return n.forEach(function(a){a=a.trim();var i;v0e.forEach(function(o){var s=xl[o].exec(a.toLowerCase());if(!(!s||s.length<=1)){i=o;var l=a.substring(0,s[1].length),u=a.replace(l,"");r.push({type:l,details:u,mediaType:o})}}),i||r.push({type:a,details:"",mediaType:"unknown"})}),r},g0e=function(t,n){if(!t.mediaGroups.AUDIO||!n)return null;var r=t.mediaGroups.AUDIO[n];if(!r)return null;for(var a in r){var i=r[a];if(i.default&&i.playlists)return Hi(i.playlists[0].attributes.CODECS)}return null},YM=function(t){return t===void 0&&(t=""),xl.audio.test(t.trim().toLowerCase())},y0e=function(t){return t===void 0&&(t=""),xl.text.test(t.trim().toLowerCase())},Vf=function(t){if(!(!t||typeof t!="string")){var n=t.toLowerCase().split(",").map(function(i){return GM(i.trim())}),r="video";n.length===1&&YM(n[0])?r="audio":n.length===1&&y0e(n[0])&&(r="application");var a="mp4";return n.every(function(i){return xl.mp4.test(i)})?a="mp4":n.every(function(i){return xl.webm.test(i)})?a="webm":n.every(function(i){return xl.ogg.test(i)})&&(a="ogg"),r+"/"+a+';codecs="'+t+'"'}},tm=function(t){return t===void 0&&(t=""),Te.MediaSource&&Te.MediaSource.isTypeSupported&&Te.MediaSource.isTypeSupported(Vf(t))||!1},V0=function(t){return t===void 0&&(t=""),t.toLowerCase().split(",").every(function(n){n=n.trim();for(var r=0;r<Ux.length;r++){var a=Ux[r];if(xl["muxer"+a].test(n))return!0}return!1})},Hx="mp4a.40.2",b0e="avc1.4d400d",_0e=/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i,T0e=/^application\/dash\+xml/i,XM=function(t){return _0e.test(t)?"hls":T0e.test(t)?"dash":t==="application/vnd.videojs.vhs+json"?"vhs-json":null},w0e=function(t){return t.toString(2).length},S0e=function(t){return Math.ceil(w0e(t)/8)},QM=function(t){return ArrayBuffer.isView==="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer},C0e=function(t){return QM(t)},jt=function(t){return t instanceof Uint8Array?t:(!Array.isArray(t)&&!C0e(t)&&!(t instanceof ArrayBuffer)&&(typeof t!="number"||typeof t=="number"&&t!==t?t=0:t=[t]),new Uint8Array(t&&t.buffer||t,t&&t.byteOffset||0,t&&t.byteLength||0))},Ar=Te.BigInt||Number,Hb=[Ar("0x1"),Ar("0x100"),Ar("0x10000"),Ar("0x1000000"),Ar("0x100000000"),Ar("0x10000000000"),Ar("0x1000000000000"),Ar("0x100000000000000"),Ar("0x10000000000000000")];(function(){var e=new Uint16Array([65484]),t=new Uint8Array(e.buffer,e.byteOffset,e.byteLength);return t[0]===255?"big":t[0]===204?"little":"unknown"})();var E0e=function(t,n){var r=n===void 0?{}:n,a=r.signed,i=a===void 0?!1:a,o=r.le,s=o===void 0?!1:o;t=jt(t);var l=s?"reduce":"reduceRight",u=t[l]?t[l]:Array.prototype[l],c=u.call(t,function(p,h,v){var m=s?v:Math.abs(v+1-t.length);return p+Ar(h)*Hb[m]},Ar(0));if(i){var d=Hb[t.length]/Ar(2)-Ar(1);c=Ar(c),c>d&&(c-=d,c-=d,c-=Ar(2))}return Number(c)},x0e=function(t,n){var r=n===void 0?{}:n,a=r.le,i=a===void 0?!1:a;(typeof t!="bigint"&&typeof t!="number"||typeof t=="number"&&t!==t)&&(t=0),t=Ar(t);for(var o=S0e(t),s=new Uint8Array(new ArrayBuffer(o)),l=0;l<o;l++){var u=i?l:Math.abs(l+1-s.length);s[u]=Number(t/Hb[l]&Ar(255)),t<0&&(s[u]=Math.abs(~s[u]),s[u]-=l===0?1:2)}return s},JM=function(t,n){if(typeof t!="string"&&t&&typeof t.toString=="function"&&(t=t.toString()),typeof t!="string")return new Uint8Array;n||(t=unescape(encodeURIComponent(t)));for(var r=new Uint8Array(t.length),a=0;a<t.length;a++)r[a]=t.charCodeAt(a);return r},k0e=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(n=n.filter(function(s){return s&&(s.byteLength||s.length)&&typeof s!="string"}),n.length<=1)return jt(n[0]);var a=n.reduce(function(s,l,u){return s+(l.byteLength||l.length)},0),i=new Uint8Array(a),o=0;return n.forEach(function(s){s=jt(s),i.set(s,o),o+=s.byteLength}),i},zn=function(t,n,r){var a=r===void 0?{}:r,i=a.offset,o=i===void 0?0:i,s=a.mask,l=s===void 0?[]:s;t=jt(t),n=jt(n);var u=n.every?n.every:Array.prototype.every;return n.length&&t.length-o>=n.length&&u.call(n,function(c,d){var p=l[d]?l[d]&t[o+d]:t[o+d];return c===p})},A0e=function(t,n,r){n.forEach(function(a){for(var i in t.mediaGroups[a])for(var o in t.mediaGroups[a][i]){var s=t.mediaGroups[a][i][o];r(s,a,i,o)}})},qs={},is={};function D0e(e,t,n){if(n===void 0&&(n=Array.prototype),e&&typeof n.find=="function")return n.find.call(e,t);for(var r=0;r<e.length;r++)if(Object.prototype.hasOwnProperty.call(e,r)){var a=e[r];if(t.call(void 0,a,r,e))return a}}function Y2(e,t){return t===void 0&&(t=Object),t&&typeof t.freeze=="function"?t.freeze(e):e}function I0e(e,t){if(e===null||typeof e!="object")throw new TypeError("target is not an object");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}var ZM=Y2({HTML:"text/html",isHTML:function(e){return e===ZM.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),eR=Y2({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(e){return e===eR.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});is.assign=I0e;is.find=D0e;is.freeze=Y2;is.MIME_TYPE=ZM;is.NAMESPACE=eR;var tR=is,Zi=tR.find,Uf=tR.NAMESPACE;function P0e(e){return e!==""}function O0e(e){return e?e.split(/[\t\n\f\r ]+/).filter(P0e):[]}function M0e(e,t){return e.hasOwnProperty(t)||(e[t]=!0),e}function zx(e){if(!e)return[];var t=O0e(e);return Object.keys(t.reduce(M0e,{}))}function R0e(e){return function(t){return e&&e.indexOf(t)!==-1}}function Cp(e,t){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}function Ca(e,t){var n=e.prototype;if(!(n instanceof t)){let a=function(){};var r=a;a.prototype=t.prototype,a=new a,Cp(n,a),e.prototype=n=a}n.constructor!=e&&(typeof e!="function"&&console.error("unknown Class:"+e),n.constructor=e)}var Ea={},_i=Ea.ELEMENT_NODE=1,mc=Ea.ATTRIBUTE_NODE=2,jm=Ea.TEXT_NODE=3,nR=Ea.CDATA_SECTION_NODE=4,rR=Ea.ENTITY_REFERENCE_NODE=5,L0e=Ea.ENTITY_NODE=6,aR=Ea.PROCESSING_INSTRUCTION_NODE=7,iR=Ea.COMMENT_NODE=8,oR=Ea.DOCUMENT_NODE=9,sR=Ea.DOCUMENT_TYPE_NODE=10,Go=Ea.DOCUMENT_FRAGMENT_NODE=11,N0e=Ea.NOTATION_NODE=12,zr={},Sr={};zr.INDEX_SIZE_ERR=(Sr[1]="Index size error",1);zr.DOMSTRING_SIZE_ERR=(Sr[2]="DOMString size error",2);var ga=zr.HIERARCHY_REQUEST_ERR=(Sr[3]="Hierarchy request error",3);zr.WRONG_DOCUMENT_ERR=(Sr[4]="Wrong document",4);zr.INVALID_CHARACTER_ERR=(Sr[5]="Invalid character",5);zr.NO_DATA_ALLOWED_ERR=(Sr[6]="No data allowed",6);zr.NO_MODIFICATION_ALLOWED_ERR=(Sr[7]="No modification allowed",7);var lR=zr.NOT_FOUND_ERR=(Sr[8]="Not found",8);zr.NOT_SUPPORTED_ERR=(Sr[9]="Not supported",9);var jx=zr.INUSE_ATTRIBUTE_ERR=(Sr[10]="Attribute in use",10);zr.INVALID_STATE_ERR=(Sr[11]="Invalid state",11);zr.SYNTAX_ERR=(Sr[12]="Syntax error",12);zr.INVALID_MODIFICATION_ERR=(Sr[13]="Invalid modification",13);zr.NAMESPACE_ERR=(Sr[14]="Invalid namespace",14);zr.INVALID_ACCESS_ERR=(Sr[15]="Invalid access",15);function tr(e,t){if(t instanceof Error)var n=t;else n=this,Error.call(this,Sr[e]),this.message=Sr[e],Error.captureStackTrace&&Error.captureStackTrace(this,tr);return n.code=e,t&&(this.message=this.message+": "+t),n}tr.prototype=Error.prototype;Cp(zr,tr);function Bo(){}Bo.prototype={length:0,item:function(e){return e>=0&&e<this.length?this[e]:null},toString:function(e,t){for(var n=[],r=0;r<this.length;r++)ku(this[r],n,e,t);return n.join("")},filter:function(e){return Array.prototype.filter.call(this,e)},indexOf:function(e){return Array.prototype.indexOf.call(this,e)}};function vc(e,t){this._node=e,this._refresh=t,X2(this)}function X2(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!==t){var n=e._refresh(e._node);if(_R(e,"length",n.length),!e.$$length||n.length<e.$$length)for(var r=n.length;r in e;r++)Object.prototype.hasOwnProperty.call(e,r)&&delete e[r];Cp(n,e),e._inc=t}}vc.prototype.item=function(e){return X2(this),this[e]||null};Ca(vc,Bo);function Wm(){}function uR(e,t){for(var n=e.length;n--;)if(e[n]===t)return n}function Wx(e,t,n,r){if(r?t[uR(t,r)]=n:t[t.length++]=n,e){n.ownerElement=e;var a=e.ownerDocument;a&&(r&&fR(a,e,r),F0e(a,e,n))}}function Kx(e,t,n){var r=uR(t,n);if(r>=0){for(var a=t.length-1;r<a;)t[r]=t[++r];if(t.length=a,e){var i=e.ownerDocument;i&&(fR(i,e,n),n.ownerElement=null)}}else throw new tr(lR,new Error(e.tagName+"@"+n))}Wm.prototype={length:0,item:Bo.prototype.item,getNamedItem:function(e){for(var t=this.length;t--;){var n=this[t];if(n.nodeName==e)return n}},setNamedItem:function(e){var t=e.ownerElement;if(t&&t!=this._ownerElement)throw new tr(jx);var n=this.getNamedItem(e.nodeName);return Wx(this._ownerElement,this,e,n),n},setNamedItemNS:function(e){var t=e.ownerElement,n;if(t&&t!=this._ownerElement)throw new tr(jx);return n=this.getNamedItemNS(e.namespaceURI,e.localName),Wx(this._ownerElement,this,e,n),n},removeNamedItem:function(e){var t=this.getNamedItem(e);return Kx(this._ownerElement,this,t),t},removeNamedItemNS:function(e,t){var n=this.getNamedItemNS(e,t);return Kx(this._ownerElement,this,n),n},getNamedItemNS:function(e,t){for(var n=this.length;n--;){var r=this[n];if(r.localName==t&&r.namespaceURI==e)return r}return null}};function cR(){}cR.prototype={hasFeature:function(e,t){return!0},createDocument:function(e,t,n){var r=new Ep;if(r.implementation=this,r.childNodes=new Bo,r.doctype=n||null,n&&r.appendChild(n),t){var a=r.createElementNS(e,t);r.appendChild(a)}return r},createDocumentType:function(e,t,n){var r=new mg;return r.name=e,r.nodeName=e,r.publicId=t||"",r.systemId=n||"",r}};function An(){}An.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(e,t){return Km(this,e,t)},replaceChild:function(e,t){Km(this,e,t,hR),t&&this.removeChild(t)},removeChild:function(e){return pR(this,e)},appendChild:function(e){return this.insertBefore(e,null)},hasChildNodes:function(){return this.firstChild!=null},cloneNode:function(e){return zb(this.ownerDocument||this,this,e)},normalize:function(){for(var e=this.firstChild;e;){var t=e.nextSibling;t&&t.nodeType==jm&&e.nodeType==jm?(this.removeChild(t),e.appendData(t.data)):(e.normalize(),e=t)}},isSupported:function(e,t){return this.ownerDocument.implementation.hasFeature(e,t)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(e){for(var t=this;t;){var n=t._nsMap;if(n){for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)&&n[r]===e)return r}t=t.nodeType==mc?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(e){for(var t=this;t;){var n=t._nsMap;if(n&&Object.prototype.hasOwnProperty.call(n,e))return n[e];t=t.nodeType==mc?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){var t=this.lookupPrefix(e);return t==null}};function dR(e){return e=="<"&&"&lt;"||e==">"&&"&gt;"||e=="&"&&"&amp;"||e=='"'&&"&quot;"||"&#"+e.charCodeAt()+";"}Cp(Ea,An);Cp(Ea,An.prototype);function Hf(e,t){if(t(e))return!0;if(e=e.firstChild)do if(Hf(e,t))return!0;while(e=e.nextSibling)}function Ep(){this.ownerDocument=this}function F0e(e,t,n){e&&e._inc++;var r=n.namespaceURI;r===Uf.XMLNS&&(t._nsMap[n.prefix?n.localName:""]=n.value)}function fR(e,t,n,r){e&&e._inc++;var a=n.namespaceURI;a===Uf.XMLNS&&delete t._nsMap[n.prefix?n.localName:""]}function Q2(e,t,n){if(e&&e._inc){e._inc++;var r=t.childNodes;if(n)r[r.length++]=n;else{for(var a=t.firstChild,i=0;a;)r[i++]=a,a=a.nextSibling;r.length=i,delete r[r.length]}}}function pR(e,t){var n=t.previousSibling,r=t.nextSibling;return n?n.nextSibling=r:e.firstChild=r,r?r.previousSibling=n:e.lastChild=n,t.parentNode=null,t.previousSibling=null,t.nextSibling=null,Q2(e.ownerDocument,e),t}function $0e(e){return e&&(e.nodeType===An.DOCUMENT_NODE||e.nodeType===An.DOCUMENT_FRAGMENT_NODE||e.nodeType===An.ELEMENT_NODE)}function B0e(e){return e&&(eo(e)||J2(e)||Yo(e)||e.nodeType===An.DOCUMENT_FRAGMENT_NODE||e.nodeType===An.COMMENT_NODE||e.nodeType===An.PROCESSING_INSTRUCTION_NODE)}function Yo(e){return e&&e.nodeType===An.DOCUMENT_TYPE_NODE}function eo(e){return e&&e.nodeType===An.ELEMENT_NODE}function J2(e){return e&&e.nodeType===An.TEXT_NODE}function qx(e,t){var n=e.childNodes||[];if(Zi(n,eo)||Yo(t))return!1;var r=Zi(n,Yo);return!(t&&r&&n.indexOf(r)>n.indexOf(t))}function Gx(e,t){var n=e.childNodes||[];function r(i){return eo(i)&&i!==t}if(Zi(n,r))return!1;var a=Zi(n,Yo);return!(t&&a&&n.indexOf(a)>n.indexOf(t))}function V0e(e,t,n){if(!$0e(e))throw new tr(ga,"Unexpected parent node type "+e.nodeType);if(n&&n.parentNode!==e)throw new tr(lR,"child not in parent");if(!B0e(t)||Yo(t)&&e.nodeType!==An.DOCUMENT_NODE)throw new tr(ga,"Unexpected node type "+t.nodeType+" for parent node type "+e.nodeType)}function U0e(e,t,n){var r=e.childNodes||[],a=t.childNodes||[];if(t.nodeType===An.DOCUMENT_FRAGMENT_NODE){var i=a.filter(eo);if(i.length>1||Zi(a,J2))throw new tr(ga,"More than one element or text in fragment");if(i.length===1&&!qx(e,n))throw new tr(ga,"Element in fragment can not be inserted before doctype")}if(eo(t)&&!qx(e,n))throw new tr(ga,"Only one element can be added and only after doctype");if(Yo(t)){if(Zi(r,Yo))throw new tr(ga,"Only one doctype is allowed");var o=Zi(r,eo);if(n&&r.indexOf(o)<r.indexOf(n))throw new tr(ga,"Doctype can only be inserted before an element");if(!n&&o)throw new tr(ga,"Doctype can not be appended since element is present")}}function hR(e,t,n){var r=e.childNodes||[],a=t.childNodes||[];if(t.nodeType===An.DOCUMENT_FRAGMENT_NODE){var i=a.filter(eo);if(i.length>1||Zi(a,J2))throw new tr(ga,"More than one element or text in fragment");if(i.length===1&&!Gx(e,n))throw new tr(ga,"Element in fragment can not be inserted before doctype")}if(eo(t)&&!Gx(e,n))throw new tr(ga,"Only one element can be added and only after doctype");if(Yo(t)){let l=function(u){return Yo(u)&&u!==n};var s=l;if(Zi(r,l))throw new tr(ga,"Only one doctype is allowed");var o=Zi(r,eo);if(n&&r.indexOf(o)<r.indexOf(n))throw new tr(ga,"Doctype can only be inserted before an element")}}function Km(e,t,n,r){V0e(e,t,n),e.nodeType===An.DOCUMENT_NODE&&(r||U0e)(e,t,n);var a=t.parentNode;if(a&&a.removeChild(t),t.nodeType===Go){var i=t.firstChild;if(i==null)return t;var o=t.lastChild}else i=o=t;var s=n?n.previousSibling:e.lastChild;i.previousSibling=s,o.nextSibling=n,s?s.nextSibling=i:e.firstChild=i,n==null?e.lastChild=o:n.previousSibling=o;do i.parentNode=e;while(i!==o&&(i=i.nextSibling));return Q2(e.ownerDocument||e,e),t.nodeType==Go&&(t.firstChild=t.lastChild=null),t}function H0e(e,t){return t.parentNode&&t.parentNode.removeChild(t),t.parentNode=e,t.previousSibling=e.lastChild,t.nextSibling=null,t.previousSibling?t.previousSibling.nextSibling=t:e.firstChild=t,e.lastChild=t,Q2(e.ownerDocument,e,t),t}Ep.prototype={nodeName:"#document",nodeType:oR,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType==Go){for(var n=e.firstChild;n;){var r=n.nextSibling;this.insertBefore(n,t),n=r}return e}return Km(this,e,t),e.ownerDocument=this,this.documentElement===null&&e.nodeType===_i&&(this.documentElement=e),e},removeChild:function(e){return this.documentElement==e&&(this.documentElement=null),pR(this,e)},replaceChild:function(e,t){Km(this,e,t,hR),e.ownerDocument=this,t&&this.removeChild(t),eo(e)&&(this.documentElement=e)},importNode:function(e,t){return bR(this,e,t)},getElementById:function(e){var t=null;return Hf(this.documentElement,function(n){if(n.nodeType==_i&&n.getAttribute("id")==e)return t=n,!0}),t},getElementsByClassName:function(e){var t=zx(e);return new vc(this,function(n){var r=[];return t.length>0&&Hf(n.documentElement,function(a){if(a!==n&&a.nodeType===_i){var i=a.getAttribute("class");if(i){var o=e===i;if(!o){var s=zx(i);o=t.every(R0e(s))}o&&r.push(a)}}}),r})},createElement:function(e){var t=new Vl;t.ownerDocument=this,t.nodeName=e,t.tagName=e,t.localName=e,t.childNodes=new Bo;var n=t.attributes=new Wm;return n._ownerElement=t,t},createDocumentFragment:function(){var e=new vg;return e.ownerDocument=this,e.childNodes=new Bo,e},createTextNode:function(e){var t=new Z2;return t.ownerDocument=this,t.appendData(e),t},createComment:function(e){var t=new eT;return t.ownerDocument=this,t.appendData(e),t},createCDATASection:function(e){var t=new tT;return t.ownerDocument=this,t.appendData(e),t},createProcessingInstruction:function(e,t){var n=new rT;return n.ownerDocument=this,n.tagName=n.nodeName=n.target=e,n.nodeValue=n.data=t,n},createAttribute:function(e){var t=new qm;return t.ownerDocument=this,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){var t=new nT;return t.ownerDocument=this,t.nodeName=e,t},createElementNS:function(e,t){var n=new Vl,r=t.split(":"),a=n.attributes=new Wm;return n.childNodes=new Bo,n.ownerDocument=this,n.nodeName=t,n.tagName=t,n.namespaceURI=e,r.length==2?(n.prefix=r[0],n.localName=r[1]):n.localName=t,a._ownerElement=n,n},createAttributeNS:function(e,t){var n=new qm,r=t.split(":");return n.ownerDocument=this,n.nodeName=t,n.name=t,n.namespaceURI=e,n.specified=!0,r.length==2?(n.prefix=r[0],n.localName=r[1]):n.localName=t,n}};Ca(Ep,An);function Vl(){this._nsMap={}}Vl.prototype={nodeType:_i,hasAttribute:function(e){return this.getAttributeNode(e)!=null},getAttribute:function(e){var t=this.getAttributeNode(e);return t&&t.value||""},getAttributeNode:function(e){return this.attributes.getNamedItem(e)},setAttribute:function(e,t){var n=this.ownerDocument.createAttribute(e);n.value=n.nodeValue=""+t,this.setAttributeNode(n)},removeAttribute:function(e){var t=this.getAttributeNode(e);t&&this.removeAttributeNode(t)},appendChild:function(e){return e.nodeType===Go?this.insertBefore(e,null):H0e(this,e)},setAttributeNode:function(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);n&&this.removeAttributeNode(n)},hasAttributeNS:function(e,t){return this.getAttributeNodeNS(e,t)!=null},getAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);return n&&n.value||""},setAttributeNS:function(e,t,n){var r=this.ownerDocument.createAttributeNS(e,t);r.value=r.nodeValue=""+n,this.setAttributeNode(r)},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t)},getElementsByTagName:function(e){return new vc(this,function(t){var n=[];return Hf(t,function(r){r!==t&&r.nodeType==_i&&(e==="*"||r.tagName==e)&&n.push(r)}),n})},getElementsByTagNameNS:function(e,t){return new vc(this,function(n){var r=[];return Hf(n,function(a){a!==n&&a.nodeType===_i&&(e==="*"||a.namespaceURI===e)&&(t==="*"||a.localName==t)&&r.push(a)}),r})}};Ep.prototype.getElementsByTagName=Vl.prototype.getElementsByTagName;Ep.prototype.getElementsByTagNameNS=Vl.prototype.getElementsByTagNameNS;Ca(Vl,An);function qm(){}qm.prototype.nodeType=mc;Ca(qm,An);function xp(){}xp.prototype={data:"",substringData:function(e,t){return this.data.substring(e,e+t)},appendData:function(e){e=this.data+e,this.nodeValue=this.data=e,this.length=e.length},insertData:function(e,t){this.replaceData(e,0,t)},appendChild:function(e){throw new Error(Sr[ga])},deleteData:function(e,t){this.replaceData(e,t,"")},replaceData:function(e,t,n){var r=this.data.substring(0,e),a=this.data.substring(e+t);n=r+n+a,this.nodeValue=this.data=n,this.length=n.length}};Ca(xp,An);function Z2(){}Z2.prototype={nodeName:"#text",nodeType:jm,splitText:function(e){var t=this.data,n=t.substring(e);t=t.substring(0,e),this.data=this.nodeValue=t,this.length=t.length;var r=this.ownerDocument.createTextNode(n);return this.parentNode&&this.parentNode.insertBefore(r,this.nextSibling),r}};Ca(Z2,xp);function eT(){}eT.prototype={nodeName:"#comment",nodeType:iR};Ca(eT,xp);function tT(){}tT.prototype={nodeName:"#cdata-section",nodeType:nR};Ca(tT,xp);function mg(){}mg.prototype.nodeType=sR;Ca(mg,An);function mR(){}mR.prototype.nodeType=N0e;Ca(mR,An);function vR(){}vR.prototype.nodeType=L0e;Ca(vR,An);function nT(){}nT.prototype.nodeType=rR;Ca(nT,An);function vg(){}vg.prototype.nodeName="#document-fragment";vg.prototype.nodeType=Go;Ca(vg,An);function rT(){}rT.prototype.nodeType=aR;Ca(rT,An);function gR(){}gR.prototype.serializeToString=function(e,t,n){return yR.call(e,t,n)};An.prototype.toString=yR;function yR(e,t){var n=[],r=this.nodeType==9&&this.documentElement||this,a=r.prefix,i=r.namespaceURI;if(i&&a==null){var a=r.lookupPrefix(i);if(a==null)var o=[{namespace:i,prefix:null}]}return ku(this,n,e,t,o),n.join("")}function Yx(e,t,n){var r=e.prefix||"",a=e.namespaceURI;if(!a||r==="xml"&&a===Uf.XML||a===Uf.XMLNS)return!1;for(var i=n.length;i--;){var o=n[i];if(o.prefix===r)return o.namespace!==a}return!0}function U0(e,t,n){e.push(" ",t,'="',n.replace(/[<>&"\t\n\r]/g,dR),'"')}function ku(e,t,n,r,a){if(a||(a=[]),r)if(e=r(e),e){if(typeof e=="string"){t.push(e);return}}else return;switch(e.nodeType){case _i:var i=e.attributes,o=i.length,y=e.firstChild,s=e.tagName;n=Uf.isHTML(e.namespaceURI)||n;var l=s;if(!n&&!e.prefix&&e.namespaceURI){for(var u,c=0;c<i.length;c++)if(i.item(c).name==="xmlns"){u=i.item(c).value;break}if(!u)for(var d=a.length-1;d>=0;d--){var p=a[d];if(p.prefix===""&&p.namespace===e.namespaceURI){u=p.namespace;break}}if(u!==e.namespaceURI)for(var d=a.length-1;d>=0;d--){var p=a[d];if(p.namespace===e.namespaceURI){p.prefix&&(l=p.prefix+":"+s);break}}}t.push("<",l);for(var h=0;h<o;h++){var v=i.item(h);v.prefix=="xmlns"?a.push({prefix:v.localName,namespace:v.value}):v.nodeName=="xmlns"&&a.push({prefix:"",namespace:v.value})}for(var h=0;h<o;h++){var v=i.item(h);if(Yx(v,n,a)){var m=v.prefix||"",g=v.namespaceURI;U0(t,m?"xmlns:"+m:"xmlns",g),a.push({prefix:m,namespace:g})}ku(v,t,n,r,a)}if(s===l&&Yx(e,n,a)){var m=e.prefix||"",g=e.namespaceURI;U0(t,m?"xmlns:"+m:"xmlns",g),a.push({prefix:m,namespace:g})}if(y||n&&!/^(?:meta|link|img|br|hr|input)$/i.test(s)){if(t.push(">"),n&&/^script$/i.test(s))for(;y;)y.data?t.push(y.data):ku(y,t,n,r,a.slice()),y=y.nextSibling;else for(;y;)ku(y,t,n,r,a.slice()),y=y.nextSibling;t.push("</",l,">")}else t.push("/>");return;case oR:case Go:for(var y=e.firstChild;y;)ku(y,t,n,r,a.slice()),y=y.nextSibling;return;case mc:return U0(t,e.name,e.value);case jm:return t.push(e.data.replace(/[<&>]/g,dR));case nR:return t.push("<![CDATA[",e.data,"]]>");case iR:return t.push("<!--",e.data,"-->");case sR:var T=e.publicId,b=e.systemId;if(t.push("<!DOCTYPE ",e.name),T)t.push(" PUBLIC ",T),b&&b!="."&&t.push(" ",b),t.push(">");else if(b&&b!=".")t.push(" SYSTEM ",b,">");else{var _=e.internalSubset;_&&t.push(" [",_,"]"),t.push(">")}return;case aR:return t.push("<?",e.target," ",e.data,"?>");case rR:return t.push("&",e.nodeName,";");default:t.push("??",e.nodeName)}}function bR(e,t,n){var r;switch(t.nodeType){case _i:r=t.cloneNode(!1),r.ownerDocument=e;case Go:break;case mc:n=!0;break}if(r||(r=t.cloneNode(!1)),r.ownerDocument=e,r.parentNode=null,n)for(var a=t.firstChild;a;)r.appendChild(bR(e,a,n)),a=a.nextSibling;return r}function zb(e,t,n){var r=new t.constructor;for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a)){var i=t[a];typeof i!="object"&&i!=r[a]&&(r[a]=i)}switch(t.childNodes&&(r.childNodes=new Bo),r.ownerDocument=e,r.nodeType){case _i:var o=t.attributes,s=r.attributes=new Wm,l=o.length;s._ownerElement=r;for(var u=0;u<l;u++)r.setAttributeNode(zb(e,o.item(u),!0));break;case mc:n=!0}if(n)for(var c=t.firstChild;c;)r.appendChild(zb(e,c,n)),c=c.nextSibling;return r}function _R(e,t,n){e[t]=n}try{if(Object.defineProperty){let e=function(t){switch(t.nodeType){case _i:case Go:var n=[];for(t=t.firstChild;t;)t.nodeType!==7&&t.nodeType!==8&&n.push(e(t)),t=t.nextSibling;return n.join("");default:return t.nodeValue}};var dEe=e;Object.defineProperty(vc.prototype,"length",{get:function(){return X2(this),this.$$length}}),Object.defineProperty(An.prototype,"textContent",{get:function(){return e(this)},set:function(t){switch(this.nodeType){case _i:case Go:for(;this.firstChild;)this.removeChild(this.firstChild);(t||String(t))&&this.appendChild(this.ownerDocument.createTextNode(t));break;default:this.data=t,this.value=t,this.nodeValue=t}}}),_R=function(t,n,r){t["$$"+n]=r}}}catch{}qs.DocumentType=mg;qs.DOMException=tr;qs.DOMImplementation=cR;qs.Element=Vl;qs.Node=An;qs.NodeList=Bo;qs.XMLSerializer=gR;var gg={},TR={};(function(e){var t=is.freeze;e.XML_ENTITIES=t({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),e.HTML_ENTITIES=t({Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"",backsim:"∽",backsimeq:"⋍",Backslash:"",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"",Bernoullis:"",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"",Breve:"˘",breve:"˘",brvbar:"¦",Bscr:"",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"",caps:"∩︀",caret:"",caron:"ˇ",Cayleys:"",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"",cfr:"𝔠",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"",copf:"𝕔",coprod:"∐",Coproduct:"∐",COPY:"©",copy:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"",cross:"✗",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"",dd:"",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"Ê",ecirc:"ê",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:"",emsp13:"",emsp14:"",ENG:"Ŋ",eng:"ŋ",ensp:"",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"",escr:"",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"",ExponentialE:"",exponentiale:"",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"",frown:"⌢",Fscr:"",fscr:"𝒻",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"",gsim:"≳",gsime:"⪎",gsiml:"⪐",Gt:"≫",GT:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:"",half:"½",hamilt:"",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"",hfr:"𝔥",HilbertSpace:"",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"",hopf:"𝕙",horbar:"―",HorizontalLine:"─",Hscr:"",hscr:"𝒽",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"",hyphen:"",Iacute:"Í",iacute:"í",ic:"",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",Ifr:"",ifr:"𝔦",Igrave:"Ì",igrave:"ì",ii:"",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"",Imacr:"Ī",imacr:"ī",image:"",ImaginaryI:"",imagline:"",imagpart:"",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"",InvisibleTimes:"",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"",iscr:"𝒾",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"",laquo:"«",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"",Lscr:"",lscr:"𝓁",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"",lsquor:"",Lstrok:"Ł",lstrok:"ł",Lt:"≪",LT:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:"",Mellintrf:"",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",mid:"",midast:"*",midcir:"⫰",middot:"·",minus:"",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",Mscr:"",mscr:"𝓂",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:`
`,nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"",NonBreakingSpace:" ",Nopf:"",nopf:"𝕟",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:"",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",ocir:"⊚",Ocirc:"Ô",ocirc:"ô",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"",operp:"⦹",oplus:"⊕",Or:"⩔",or:"",orarr:"↻",ord:"⩝",order:"",orderof:"",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"",pointint:"⨕",Popf:"",popf:"𝕡",pound:"£",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"",primes:"",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:"",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",Qopf:"",qopf:"𝕢",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"",rationals:"",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"",real:"",realine:"",realpart:"",reals:"",rect:"▭",REG:"®",reg:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"",rfr:"𝔯",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"",Rscr:"",rscr:"𝓇",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"",rsquor:"",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"",setmn:"",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"",smashp:"⨳",smeparsl:"⧤",smid:"",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:" ",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"",ThickSpace:"",thinsp:"",ThinSpace:"",thkap:"≈",thksim:"",THORN:"Þ",thorn:"þ",Tilde:"",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"",topbot:"⌶",topcir:"⫱",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"",vee:"",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:"",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"",ZeroWidthSpace:"",Zeta:"Ζ",zeta:"ζ",Zfr:"",zfr:"𝔷",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"",zopf:"𝕫",Zscr:"𝒵",zscr:"𝓏",zwj:"",zwnj:""}),e.entityMap=e.HTML_ENTITIES})(TR);var aT={},zf=is.NAMESPACE,jb=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,Xx=new RegExp("[\\-\\.0-9"+jb.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),Qx=new RegExp("^"+jb.source+Xx.source+"*(?::"+jb.source+Xx.source+"*)?$"),bd=0,ms=1,du=2,_d=3,fu=4,pu=5,Td=6,gh=7;function gc(e,t){this.message=e,this.locator=t,Error.captureStackTrace&&Error.captureStackTrace(this,gc)}gc.prototype=new Error;gc.prototype.name=gc.name;function wR(){}wR.prototype={parse:function(e,t,n){var r=this.domBuilder;r.startDocument(),SR(t,t={}),z0e(e,t,n,r,this.errorHandler),r.endDocument()}};function z0e(e,t,n,r,a){function i($){if($>65535){$-=65536;var j=55296+($>>10),W=56320+($&1023);return String.fromCharCode(j,W)}else return String.fromCharCode($)}function o($){var j=$.slice(1,-1);return Object.hasOwnProperty.call(n,j)?n[j]:j.charAt(0)==="#"?i(parseInt(j.substr(1).replace("x","0x"))):(a.error("entity not found:"+$),$)}function s($){if($>m){var j=e.substring(m,$).replace(/&#?\w+;/g,o);p&&l(m),r.characters(j,0,$-m),m=$}}function l($,j){for(;$>=c&&(j=d.exec(e));)u=j.index,c=u+j[0].length,p.lineNumber++;p.columnNumber=$-u+1}for(var u=0,c=0,d=/.*(?:\r\n?|\n)|.*$/g,p=r.locator,h=[{currentNSMap:t}],v={},m=0;;){try{var g=e.indexOf("<",m);if(g<0){if(!e.substr(m).match(/^\s*$/)){var y=r.doc,T=y.createTextNode(e.substr(m));y.appendChild(T),r.currentElement=T}return}switch(g>m&&s(g),e.charAt(g+1)){case"/":var V=e.indexOf(">",g+3),b=e.substring(g+2,V).replace(/[ \t\n\r]+$/g,""),_=h.pop();V<0?(b=e.substring(g+2).replace(/[\s<].*/,""),a.error("end tag name: "+b+" is not complete:"+_.tagName),V=g+1+b.length):b.match(/\s</)&&(b=b.replace(/[\s<].*/,""),a.error("end tag name: "+b+" maybe not complete"),V=g+1+b.length);var w=_.localNSMap,S=_.tagName==b,A=S||_.tagName&&_.tagName.toLowerCase()==b.toLowerCase();if(A){if(r.endElement(_.uri,_.localName,b),w)for(var I in w)Object.prototype.hasOwnProperty.call(w,I)&&r.endPrefixMapping(I);S||a.fatalError("end tag name: "+b+" is not match the current start tagName:"+_.tagName)}else h.push(_);V++;break;case"?":p&&l(g),V=G0e(e,g,r);break;case"!":p&&l(g),V=q0e(e,g,r,a);break;default:p&&l(g);var D=new CR,O=h[h.length-1].currentNSMap,V=j0e(e,g,D,O,o,a),N=D.length;if(!D.closed&&K0e(e,V,D.tagName,v)&&(D.closed=!0,n.nbsp||a.warning("unclosed xml attribute")),p&&N){for(var K=Jx(p,{}),Y=0;Y<N;Y++){var q=D[Y];l(q.offset),q.locator=Jx(p,{})}r.locator=K,Zx(D,r,O)&&h.push(D),r.locator=p}else Zx(D,r,O)&&h.push(D);zf.isHTML(D.uri)&&!D.closed?V=W0e(e,V,D.tagName,o,r):V++}}catch($){if($ instanceof gc)throw $;a.error("element parse error: "+$),V=-1}V>m?m=V:s(Math.max(g,m)+1)}}function Jx(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function j0e(e,t,n,r,a,i){function o(p,h,v){n.attributeNames.hasOwnProperty(p)&&i.fatalError("Attribute "+p+" redefined"),n.addValue(p,h.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,a),v)}for(var s,l,u=++t,c=bd;;){var d=e.charAt(u);switch(d){case"=":if(c===ms)s=e.slice(t,u),c=_d;else if(c===du)c=_d;else throw new Error("attribute equal must after attrName");break;case"'":case'"':if(c===_d||c===ms)if(c===ms&&(i.warning('attribute value must after "="'),s=e.slice(t,u)),t=u+1,u=e.indexOf(d,t),u>0)l=e.slice(t,u),o(s,l,t-1),c=pu;else throw new Error("attribute value no end '"+d+"' match");else if(c==fu)l=e.slice(t,u),o(s,l,t),i.warning('attribute "'+s+'" missed start quot('+d+")!!"),t=u+1,c=pu;else throw new Error('attribute value must after "="');break;case"/":switch(c){case bd:n.setTagName(e.slice(t,u));case pu:case Td:case gh:c=gh,n.closed=!0;case fu:case ms:break;case du:n.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return i.error("unexpected end of input"),c==bd&&n.setTagName(e.slice(t,u)),u;case">":switch(c){case bd:n.setTagName(e.slice(t,u));case pu:case Td:case gh:break;case fu:case ms:l=e.slice(t,u),l.slice(-1)==="/"&&(n.closed=!0,l=l.slice(0,-1));case du:c===du&&(l=s),c==fu?(i.warning('attribute "'+l+'" missed quot(")!'),o(s,l,t)):((!zf.isHTML(r[""])||!l.match(/^(?:disabled|checked|selected)$/i))&&i.warning('attribute "'+l+'" missed value!! "'+l+'" instead!!'),o(l,l,t));break;case _d:throw new Error("attribute value missed!!")}return u;case"€":d=" ";default:if(d<=" ")switch(c){case bd:n.setTagName(e.slice(t,u)),c=Td;break;case ms:s=e.slice(t,u),c=du;break;case fu:var l=e.slice(t,u);i.warning('attribute "'+l+'" missed quot(")!!'),o(s,l,t);case pu:c=Td;break}else switch(c){case du:n.tagName,(!zf.isHTML(r[""])||!s.match(/^(?:disabled|checked|selected)$/i))&&i.warning('attribute "'+s+'" missed value!! "'+s+'" instead2!!'),o(s,s,t),t=u,c=ms;break;case pu:i.warning('attribute space is required"'+s+'"!!');case Td:c=ms,t=u;break;case _d:c=fu,t=u;break;case gh:throw new Error("elements closed character '/' and '>' must be connected to")}}u++}}function Zx(e,t,n){for(var r=e.tagName,a=null,d=e.length;d--;){var i=e[d],o=i.qName,s=i.value,p=o.indexOf(":");if(p>0)var l=i.prefix=o.slice(0,p),u=o.slice(p+1),c=l==="xmlns"&&u;else u=o,l=null,c=o==="xmlns"&&"";i.localName=u,c!==!1&&(a==null&&(a={},SR(n,n={})),n[c]=a[c]=s,i.uri=zf.XMLNS,t.startPrefixMapping(c,s))}for(var d=e.length;d--;){i=e[d];var l=i.prefix;l&&(l==="xml"&&(i.uri=zf.XML),l!=="xmlns"&&(i.uri=n[l||""]))}var p=r.indexOf(":");p>0?(l=e.prefix=r.slice(0,p),u=e.localName=r.slice(p+1)):(l=null,u=e.localName=r);var h=e.uri=n[l||""];if(t.startElement(h,u,r,e),e.closed){if(t.endElement(h,u,r),a)for(l in a)Object.prototype.hasOwnProperty.call(a,l)&&t.endPrefixMapping(l)}else return e.currentNSMap=n,e.localNSMap=a,!0}function W0e(e,t,n,r,a){if(/^(?:script|textarea)$/i.test(n)){var i=e.indexOf("</"+n+">",t),o=e.substring(t+1,i);if(/[&<]/.test(o))return/^script$/i.test(n)?(a.characters(o,0,o.length),i):(o=o.replace(/&#?\w+;/g,r),a.characters(o,0,o.length),i)}return t+1}function K0e(e,t,n,r){var a=r[n];return a==null&&(a=e.lastIndexOf("</"+n+">"),a<t&&(a=e.lastIndexOf("</"+n)),r[n]=a),a<t}function SR(e,t){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}function q0e(e,t,n,r){var a=e.charAt(t+2);switch(a){case"-":if(e.charAt(t+3)==="-"){var i=e.indexOf("-->",t+4);return i>t?(n.comment(e,t+4,i-t-4),i+3):(r.error("Unclosed comment"),-1)}else return-1;default:if(e.substr(t+3,6)=="CDATA["){var i=e.indexOf("]]>",t+9);return n.startCDATA(),n.characters(e,t+9,i-t-9),n.endCDATA(),i+3}var o=Y0e(e,t),s=o.length;if(s>1&&/!doctype/i.test(o[0][0])){var l=o[1][0],u=!1,c=!1;s>3&&(/^public$/i.test(o[2][0])?(u=o[3][0],c=s>4&&o[4][0]):/^system$/i.test(o[2][0])&&(c=o[3][0]));var d=o[s-1];return n.startDTD(l,u,c),n.endDTD(),d.index+d[0].length}}return-1}function G0e(e,t,n){var r=e.indexOf("?>",t);if(r){var a=e.substring(t,r).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);return a?(a[0].length,n.processingInstruction(a[1],a[2]),r+2):-1}return-1}function CR(){this.attributeNames={}}CR.prototype={setTagName:function(e){if(!Qx.test(e))throw new Error("invalid tagName:"+e);this.tagName=e},addValue:function(e,t,n){if(!Qx.test(e))throw new Error("invalid attribute:"+e);this.attributeNames[e]=this.length,this[this.length++]={qName:e,value:t,offset:n}},length:0,getLocalName:function(e){return this[e].localName},getLocator:function(e){return this[e].locator},getQName:function(e){return this[e].qName},getURI:function(e){return this[e].uri},getValue:function(e){return this[e].value}};function Y0e(e,t){var n,r=[],a=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(a.lastIndex=t,a.exec(e);n=a.exec(e);)if(r.push(n),n[1])return r}aT.XMLReader=wR;aT.ParseError=gc;var X0e=is,Q0e=qs,ek=TR,ER=aT,J0e=Q0e.DOMImplementation,tk=X0e.NAMESPACE,Z0e=ER.ParseError,eye=ER.XMLReader;function xR(e){return e.replace(/\r[\n\u0085]/g,`
`).replace(/[\r\u0085\u2028]/g,`
`)}function kR(e){this.options=e||{locator:{}}}kR.prototype.parseFromString=function(e,t){var n=this.options,r=new eye,a=n.domBuilder||new kp,i=n.errorHandler,o=n.locator,s=n.xmlns||{},l=/\/x?html?$/.test(t),u=l?ek.HTML_ENTITIES:ek.XML_ENTITIES;o&&a.setDocumentLocator(o),r.errorHandler=tye(i,a,o),r.domBuilder=n.domBuilder||a,l&&(s[""]=tk.HTML),s.xml=s.xml||tk.XML;var c=n.normalizeLineEndings||xR;return e&&typeof e=="string"?r.parse(c(e),s,u):r.errorHandler.error("invalid doc source"),a.doc};function tye(e,t,n){if(!e){if(t instanceof kp)return t;e=t}var r={},a=e instanceof Function;n=n||{};function i(o){var s=e[o];!s&&a&&(s=e.length==2?function(l){e(o,l)}:e),r[o]=s&&function(l){s("[xmldom "+o+"] "+l+Wb(n))}||function(){}}return i("warning"),i("error"),i("fatalError"),r}function kp(){this.cdata=!1}function hu(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}kp.prototype={startDocument:function(){this.doc=new J0e().createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(e,t,n,r){var a=this.doc,i=a.createElementNS(e,n||t),o=r.length;yh(this,i),this.currentElement=i,this.locator&&hu(this.locator,i);for(var s=0;s<o;s++){var e=r.getURI(s),l=r.getValue(s),n=r.getQName(s),u=a.createAttributeNS(e,n);this.locator&&hu(r.getLocator(s),u),u.value=u.nodeValue=l,i.setAttributeNode(u)}},endElement:function(e,t,n){var r=this.currentElement;r.tagName,this.currentElement=r.parentNode},startPrefixMapping:function(e,t){},endPrefixMapping:function(e){},processingInstruction:function(e,t){var n=this.doc.createProcessingInstruction(e,t);this.locator&&hu(this.locator,n),yh(this,n)},ignorableWhitespace:function(e,t,n){},characters:function(e,t,n){if(e=nk.apply(this,arguments),e){if(this.cdata)var r=this.doc.createCDATASection(e);else var r=this.doc.createTextNode(e);this.currentElement?this.currentElement.appendChild(r):/^\s*$/.test(e)&&this.doc.appendChild(r),this.locator&&hu(this.locator,r)}},skippedEntity:function(e){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(e){(this.locator=e)&&(e.lineNumber=0)},comment:function(e,t,n){e=nk.apply(this,arguments);var r=this.doc.createComment(e);this.locator&&hu(this.locator,r),yh(this,r)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(e,t,n){var r=this.doc.implementation;if(r&&r.createDocumentType){var a=r.createDocumentType(e,t,n);this.locator&&hu(this.locator,a),yh(this,a),this.doc.doctype=a}},warning:function(e){console.warn("[xmldom warning] "+e,Wb(this.locator))},error:function(e){console.error("[xmldom error] "+e,Wb(this.locator))},fatalError:function(e){throw new Z0e(e,this.locator)}};function Wb(e){if(e)return`
@`+(e.systemId||"")+"#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"}function nk(e,t,n){return typeof e=="string"?e.substr(t,n):e.length>=t+n||t?new java.lang.String(e,t,n)+"":e}"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(e){kp.prototype[e]=function(){return null}});function yh(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}gg.__DOMHandler=kp;gg.normalizeLineEndings=xR;gg.DOMParser=kR;var nye=gg.DOMParser;/*! @name mpd-parser @version 0.22.1 @license Apache-2.0 */var rk=function(t){return!!t&&typeof t=="object"},na=function e(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.reduce(function(a,i){return typeof i!="object"||Object.keys(i).forEach(function(o){Array.isArray(a[o])&&Array.isArray(i[o])?a[o]=a[o].concat(i[o]):rk(a[o])&&rk(i[o])?a[o]=e(a[o],i[o]):a[o]=i[o]}),a},{})},AR=function(t){return Object.keys(t).map(function(n){return t[n]})},rye=function(t,n){for(var r=[],a=t;a<n;a++)r.push(a);return r},yg=function(t){return t.reduce(function(n,r){return n.concat(r)},[])},DR=function(t){if(!t.length)return[];for(var n=[],r=0;r<t.length;r++)n.push(t[r]);return n},aye=function(t,n){return t.reduce(function(r,a,i){return a[n]&&r.push(i),r},[])},Kb=function(t,n){for(var r=0;r<t.length;r++)if(n(t[r]))return r;return-1},iye=function(t,n){return AR(t.reduce(function(r,a){return a.forEach(function(i){r[n(i)]=i}),r},{}))},yc={INVALID_NUMBER_OF_PERIOD:"INVALID_NUMBER_OF_PERIOD",DASH_EMPTY_MANIFEST:"DASH_EMPTY_MANIFEST",DASH_INVALID_XML:"DASH_INVALID_XML",NO_BASE_URL:"NO_BASE_URL",MISSING_SEGMENT_INFORMATION:"MISSING_SEGMENT_INFORMATION",SEGMENT_TIME_UNSPECIFIED:"SEGMENT_TIME_UNSPECIFIED",UNSUPPORTED_UTC_TIMING_SCHEME:"UNSUPPORTED_UTC_TIMING_SCHEME"},jf=function(t){var n=t.baseUrl,r=n===void 0?"":n,a=t.source,i=a===void 0?"":a,o=t.range,s=o===void 0?"":o,l=t.indexRange,u=l===void 0?"":l,c={uri:i,resolvedUri:hg(r||"",i)};if(s||u){var d=s||u,p=d.split("-"),h=Te.BigInt?Te.BigInt(p[0]):parseInt(p[0],10),v=Te.BigInt?Te.BigInt(p[1]):parseInt(p[1],10);h<Number.MAX_SAFE_INTEGER&&typeof h=="bigint"&&(h=Number(h)),v<Number.MAX_SAFE_INTEGER&&typeof v=="bigint"&&(v=Number(v));var m;typeof v=="bigint"||typeof h=="bigint"?m=Te.BigInt(v)-Te.BigInt(h)+Te.BigInt(1):m=v-h+1,typeof m=="bigint"&&m<Number.MAX_SAFE_INTEGER&&(m=Number(m)),c.byterange={length:m,offset:h}}return c},oye=function(t){var n;return typeof t.offset=="bigint"||typeof t.length=="bigint"?n=Te.BigInt(t.offset)+Te.BigInt(t.length)-Te.BigInt(1):n=t.offset+t.length-1,t.offset+"-"+n},ak=function(t){return t&&typeof t!="number"&&(t=parseInt(t,10)),isNaN(t)?null:t},sye={static:function(t){var n=t.duration,r=t.timescale,a=r===void 0?1:r,i=t.sourceDuration,o=t.periodDuration,s=ak(t.endNumber),l=n/a;return typeof s=="number"?{start:0,end:s}:typeof o=="number"?{start:0,end:o/l}:{start:0,end:i/l}},dynamic:function(t){var n=t.NOW,r=t.clientOffset,a=t.availabilityStartTime,i=t.timescale,o=i===void 0?1:i,s=t.duration,l=t.periodStart,u=l===void 0?0:l,c=t.minimumUpdatePeriod,d=c===void 0?0:c,p=t.timeShiftBufferDepth,h=p===void 0?1/0:p,v=ak(t.endNumber),m=(n+r)/1e3,g=a+u,y=m+d,T=y-g,b=Math.ceil(T*o/s),_=Math.floor((m-g-h)*o/s),w=Math.floor((m-g)*o/s);return{start:Math.max(0,_),end:typeof v=="number"?v:Math.min(b,w)}}},lye=function(t){return function(n){var r=t.duration,a=t.timescale,i=a===void 0?1:a,o=t.periodStart,s=t.startNumber,l=s===void 0?1:s;return{number:l+n,duration:r/i,timeline:o,time:n*r}}},iT=function(t){var n=t.type,r=t.duration,a=t.timescale,i=a===void 0?1:a,o=t.periodDuration,s=t.sourceDuration,l=sye[n](t),u=l.start,c=l.end,d=rye(u,c).map(lye(t));if(n==="static"){var p=d.length-1,h=typeof o=="number"?o:s;d[p].duration=h-r/i*p}return d},IR=function(t){var n=t.baseUrl,r=t.initialization,a=r===void 0?{}:r,i=t.sourceDuration,o=t.indexRange,s=o===void 0?"":o,l=t.periodStart,u=t.presentationTime,c=t.number,d=c===void 0?0:c,p=t.duration;if(!n)throw new Error(yc.NO_BASE_URL);var h=jf({baseUrl:n,source:a.sourceURL,range:a.range}),v=jf({baseUrl:n,source:n,indexRange:s});if(v.map=h,p){var m=iT(t);m.length&&(v.duration=m[0].duration,v.timeline=m[0].timeline)}else i&&(v.duration=i,v.timeline=l);return v.presentationTime=u||l,v.number=d,[v]},oT=function(t,n,r){var a=t.sidx.map?t.sidx.map:null,i=t.sidx.duration,o=t.timeline||0,s=t.sidx.byterange,l=s.offset+s.length,u=n.timescale,c=n.references.filter(function(D){return D.referenceType!==1}),d=[],p=t.endList?"static":"dynamic",h=t.sidx.timeline,v=h,m=t.mediaSequence||0,g;typeof n.firstOffset=="bigint"?g=Te.BigInt(l)+n.firstOffset:g=l+n.firstOffset;for(var y=0;y<c.length;y++){var T=n.references[y],b=T.referencedSize,_=T.subsegmentDuration,w=void 0;typeof g=="bigint"?w=g+Te.BigInt(b)-Te.BigInt(1):w=g+b-1;var S=g+"-"+w,A={baseUrl:r,timescale:u,timeline:o,periodStart:h,presentationTime:v,number:m,duration:_,sourceDuration:i,indexRange:S,type:p},I=IR(A)[0];a&&(I.map=a),d.push(I),typeof g=="bigint"?g+=Te.BigInt(b):g+=b,v+=_/u,m++}return t.segments=d,t},uye=["AUDIO","SUBTITLES"],cye=1/60,PR=function(t){return iye(t,function(n){var r=n.timeline;return r}).sort(function(n,r){return n.timeline>r.timeline?1:-1})},dye=function(t,n){for(var r=0;r<t.length;r++)if(t[r].attributes.NAME===n)return t[r];return null},ik=function(t){var n=[];return A0e(t,uye,function(r,a,i,o){n=n.concat(r.playlists||[])}),n},ok=function(t){var n=t.playlist,r=t.mediaSequence;n.mediaSequence=r,n.segments.forEach(function(a,i){a.number=n.mediaSequence+i})},fye=function(t){var n=t.oldPlaylists,r=t.newPlaylists,a=t.timelineStarts;r.forEach(function(i){i.discontinuitySequence=Kb(a,function(c){var d=c.timeline;return d===i.timeline});var o=dye(n,i.attributes.NAME);if(o&&!i.sidx){var s=i.segments[0],l=Kb(o.segments,function(c){return Math.abs(c.presentationTime-s.presentationTime)<cye});if(l===-1){ok({playlist:i,mediaSequence:o.mediaSequence+o.segments.length}),i.segments[0].discontinuity=!0,i.discontinuityStarts.unshift(0),(!o.segments.length&&i.timeline>o.timeline||o.segments.length&&i.timeline>o.segments[o.segments.length-1].timeline)&&i.discontinuitySequence--;return}var u=o.segments[l];u.discontinuity&&!s.discontinuity&&(s.discontinuity=!0,i.discontinuityStarts.unshift(0),i.discontinuitySequence--),ok({playlist:i,mediaSequence:o.segments[l].number})}})},pye=function(t){var n=t.oldManifest,r=t.newManifest,a=n.playlists.concat(ik(n)),i=r.playlists.concat(ik(r));return r.timelineStarts=PR([n.timelineStarts,r.timelineStarts]),fye({oldPlaylists:a,newPlaylists:i,timelineStarts:r.timelineStarts}),r},bg=function(t){return t&&t.uri+"-"+oye(t.byterange)},H0=function(t){var n=AR(t.reduce(function(r,a){var i=a.attributes.id+(a.attributes.lang||"");if(!r[i])r[i]=a,r[i].attributes.timelineStarts=[];else{if(a.segments){var o;a.segments[0]&&(a.segments[0].discontinuity=!0),(o=r[i].segments).push.apply(o,a.segments)}a.attributes.contentProtection&&(r[i].attributes.contentProtection=a.attributes.contentProtection)}return r[i].attributes.timelineStarts.push({start:a.attributes.periodStart,timeline:a.attributes.periodStart}),r},{}));return n.map(function(r){return r.discontinuityStarts=aye(r.segments||[],"discontinuity"),r})},sT=function(t,n){var r=bg(t.sidx),a=r&&n[r]&&n[r].sidx;return a&&oT(t,a,t.sidx.resolvedUri),t},hye=function(t,n){if(n===void 0&&(n={}),!Object.keys(n).length)return t;for(var r in t)t[r]=sT(t[r],n);return t},mye=function(t,n){var r,a=t.attributes,i=t.segments,o=t.sidx,s=t.mediaSequence,l=t.discontinuitySequence,u=t.discontinuityStarts,c={attributes:(r={NAME:a.id,BANDWIDTH:a.bandwidth,CODECS:a.codecs},r["PROGRAM-ID"]=1,r),uri:"",endList:a.type==="static",timeline:a.periodStart,resolvedUri:"",targetDuration:a.duration,discontinuitySequence:l,discontinuityStarts:u,timelineStarts:a.timelineStarts,mediaSequence:s,segments:i};return a.contentProtection&&(c.contentProtection=a.contentProtection),o&&(c.sidx=o),n&&(c.attributes.AUDIO="audio",c.attributes.SUBTITLES="subs"),c},vye=function(t){var n,r=t.attributes,a=t.segments,i=t.mediaSequence,o=t.discontinuityStarts,s=t.discontinuitySequence;typeof a>"u"&&(a=[{uri:r.baseUrl,timeline:r.periodStart,resolvedUri:r.baseUrl||"",duration:r.sourceDuration,number:0}],r.duration=r.sourceDuration);var l=(n={NAME:r.id,BANDWIDTH:r.bandwidth},n["PROGRAM-ID"]=1,n);return r.codecs&&(l.CODECS=r.codecs),{attributes:l,uri:"",endList:r.type==="static",timeline:r.periodStart,resolvedUri:r.baseUrl||"",targetDuration:r.duration,timelineStarts:r.timelineStarts,discontinuityStarts:o,discontinuitySequence:s,mediaSequence:i,segments:a}},gye=function(t,n,r){n===void 0&&(n={}),r===void 0&&(r=!1);var a,i=t.reduce(function(s,l){var u=l.attributes.role&&l.attributes.role.value||"",c=l.attributes.lang||"",d=l.attributes.label||"main";if(c&&!l.attributes.label){var p=u?" ("+u+")":"";d=""+l.attributes.lang+p}s[d]||(s[d]={language:c,autoselect:!0,default:u==="main",playlists:[],uri:""});var h=sT(mye(l,r),n);return s[d].playlists.push(h),typeof a>"u"&&u==="main"&&(a=l,a.default=!0),s},{});if(!a){var o=Object.keys(i)[0];i[o].default=!0}return i},yye=function(t,n){return n===void 0&&(n={}),t.reduce(function(r,a){var i=a.attributes.lang||"text";return r[i]||(r[i]={language:i,default:!1,autoselect:!1,playlists:[],uri:""}),r[i].playlists.push(sT(vye(a),n)),r},{})},bye=function(t){return t.reduce(function(n,r){return r&&r.forEach(function(a){var i=a.channel,o=a.language;n[o]={autoselect:!1,default:!1,instreamId:i,language:o},a.hasOwnProperty("aspectRatio")&&(n[o].aspectRatio=a.aspectRatio),a.hasOwnProperty("easyReader")&&(n[o].easyReader=a.easyReader),a.hasOwnProperty("3D")&&(n[o]["3D"]=a["3D"])}),n},{})},_ye=function(t){var n,r=t.attributes,a=t.segments,i=t.sidx,o=t.discontinuityStarts,s={attributes:(n={NAME:r.id,AUDIO:"audio",SUBTITLES:"subs",RESOLUTION:{width:r.width,height:r.height},CODECS:r.codecs,BANDWIDTH:r.bandwidth},n["PROGRAM-ID"]=1,n),uri:"",endList:r.type==="static",timeline:r.periodStart,resolvedUri:"",targetDuration:r.duration,discontinuityStarts:o,timelineStarts:r.timelineStarts,segments:a};return r.frameRate&&(s.attributes["FRAME-RATE"]=r.frameRate),r.contentProtection&&(s.contentProtection=r.contentProtection),i&&(s.sidx=i),s},Tye=function(t){var n=t.attributes;return n.mimeType==="video/mp4"||n.mimeType==="video/webm"||n.contentType==="video"},wye=function(t){var n=t.attributes;return n.mimeType==="audio/mp4"||n.mimeType==="audio/webm"||n.contentType==="audio"},Sye=function(t){var n=t.attributes;return n.mimeType==="text/vtt"||n.contentType==="text"},Cye=function(t,n){t.forEach(function(r){r.mediaSequence=0,r.discontinuitySequence=Kb(n,function(a){var i=a.timeline;return i===r.timeline}),r.segments&&r.segments.forEach(function(a,i){a.number=i})})},sk=function(t){return t?Object.keys(t).reduce(function(n,r){var a=t[r];return n.concat(a.playlists)},[]):[]},Eye=function(t){var n,r=t.dashPlaylists,a=t.locations,i=t.sidxMapping,o=i===void 0?{}:i,s=t.previousManifest;if(!r.length)return{};var l=r[0].attributes,u=l.sourceDuration,c=l.type,d=l.suggestedPresentationDelay,p=l.minimumUpdatePeriod,h=H0(r.filter(Tye)).map(_ye),v=H0(r.filter(wye)),m=H0(r.filter(Sye)),g=r.map(function(A){return A.attributes.captionServices}).filter(Boolean),y={allowCache:!0,discontinuityStarts:[],segments:[],endList:!0,mediaGroups:(n={AUDIO:{},VIDEO:{}},n["CLOSED-CAPTIONS"]={},n.SUBTITLES={},n),uri:"",duration:u,playlists:hye(h,o)};p>=0&&(y.minimumUpdatePeriod=p*1e3),a&&(y.locations=a),c==="dynamic"&&(y.suggestedPresentationDelay=d);var T=y.playlists.length===0,b=v.length?gye(v,o,T):null,_=m.length?yye(m,o):null,w=h.concat(sk(b),sk(_)),S=w.map(function(A){var I=A.timelineStarts;return I});return y.timelineStarts=PR(S),Cye(w,y.timelineStarts),b&&(y.mediaGroups.AUDIO.audio=b),_&&(y.mediaGroups.SUBTITLES.subs=_),g.length&&(y.mediaGroups["CLOSED-CAPTIONS"].cc=bye(g)),s?pye({oldManifest:s,newManifest:y}):y},xye=function(t,n,r){var a=t.NOW,i=t.clientOffset,o=t.availabilityStartTime,s=t.timescale,l=s===void 0?1:s,u=t.periodStart,c=u===void 0?0:u,d=t.minimumUpdatePeriod,p=d===void 0?0:d,h=(a+i)/1e3,v=o+c,m=h+p,g=m-v;return Math.ceil((g*l-n)/r)},OR=function(t,n){for(var r=t.type,a=t.minimumUpdatePeriod,i=a===void 0?0:a,o=t.media,s=o===void 0?"":o,l=t.sourceDuration,u=t.timescale,c=u===void 0?1:u,d=t.startNumber,p=d===void 0?1:d,h=t.periodStart,v=[],m=-1,g=0;g<n.length;g++){var y=n[g],T=y.d,b=y.r||0,_=y.t||0;m<0&&(m=_),_&&_>m&&(m=_);var w=void 0;if(b<0){var S=g+1;S===n.length?r==="dynamic"&&i>0&&s.indexOf("$Number$")>0?w=xye(t,m,T):w=(l*c-m)/T:w=(n[S].t-m)/T}else w=b+1;for(var A=p+v.length+w,I=p+v.length;I<A;)v.push({number:I,duration:T/c,time:m,timeline:h}),m+=T,I++}return v},kye=/\$([A-z]*)(?:(%0)([0-9]+)d)?\$/g,Aye=function(t){return function(n,r,a,i){if(n==="$$")return"$";if(typeof t[r]>"u")return n;var o=""+t[r];return r==="RepresentationID"||(a?i=parseInt(i,10):i=1,o.length>=i)?o:""+new Array(i-o.length+1).join("0")+o}},lk=function(t,n){return t.replace(kye,Aye(n))},Dye=function(t,n){return!t.duration&&!n?[{number:t.startNumber||1,duration:t.sourceDuration,time:0,timeline:t.periodStart}]:t.duration?iT(t):OR(t,n)},Iye=function(t,n){var r={RepresentationID:t.id,Bandwidth:t.bandwidth||0},a=t.initialization,i=a===void 0?{sourceURL:"",range:""}:a,o=jf({baseUrl:t.baseUrl,source:lk(i.sourceURL,r),range:i.range}),s=Dye(t,n);return s.map(function(l){r.Number=l.number,r.Time=l.time;var u=lk(t.media||"",r),c=t.timescale||1,d=t.presentationTimeOffset||0,p=t.periodStart+(l.time-d)/c,h={uri:u,timeline:l.timeline,duration:l.duration,resolvedUri:hg(t.baseUrl||"",u),map:o,number:l.number,presentationTime:p};return h})},Pye=function(t,n){var r=t.baseUrl,a=t.initialization,i=a===void 0?{}:a,o=jf({baseUrl:r,source:i.sourceURL,range:i.range}),s=jf({baseUrl:r,source:n.media,range:n.mediaRange});return s.map=o,s},Oye=function(t,n){var r=t.duration,a=t.segmentUrls,i=a===void 0?[]:a,o=t.periodStart;if(!r&&!n||r&&n)throw new Error(yc.SEGMENT_TIME_UNSPECIFIED);var s=i.map(function(c){return Pye(t,c)}),l;r&&(l=iT(t)),n&&(l=OR(t,n));var u=l.map(function(c,d){if(s[d]){var p=s[d],h=t.timescale||1,v=t.presentationTimeOffset||0;return p.timeline=c.timeline,p.duration=c.duration,p.number=c.number,p.presentationTime=o+(c.time-v)/h,p}}).filter(function(c){return c});return u},Mye=function(t){var n=t.attributes,r=t.segmentInfo,a,i;r.template?(i=Iye,a=na(n,r.template)):r.base?(i=IR,a=na(n,r.base)):r.list&&(i=Oye,a=na(n,r.list));var o={attributes:n};if(!i)return o;var s=i(a,r.segmentTimeline);if(a.duration){var l=a,u=l.duration,c=l.timescale,d=c===void 0?1:c;a.duration=u/d}else s.length?a.duration=s.reduce(function(p,h){return Math.max(p,Math.ceil(h.duration))},0):a.duration=0;return o.attributes=a,o.segments=s,r.base&&a.indexRange&&(o.sidx=s[0],o.segments=[]),o},Rye=function(t){return t.map(Mye)},Jn=function(t,n){return DR(t.childNodes).filter(function(r){var a=r.tagName;return a===n})},lT=function(t){return t.textContent.trim()},Lye=function(t){return parseFloat(t.split("/").reduce(function(n,r){return n/r}))},mu=function(t){var n=31536e3,r=30*24*60*60,a=24*60*60,i=60*60,o=60,s=/P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/,l=s.exec(t);if(!l)return 0;var u=l.slice(1),c=u[0],d=u[1],p=u[2],h=u[3],v=u[4],m=u[5];return parseFloat(c||0)*n+parseFloat(d||0)*r+parseFloat(p||0)*a+parseFloat(h||0)*i+parseFloat(v||0)*o+parseFloat(m||0)},Nye=function(t){var n=/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/;return n.test(t)&&(t+="Z"),Date.parse(t)},uk={mediaPresentationDuration:function(t){return mu(t)},availabilityStartTime:function(t){return Nye(t)/1e3},minimumUpdatePeriod:function(t){return mu(t)},suggestedPresentationDelay:function(t){return mu(t)},type:function(t){return t},timeShiftBufferDepth:function(t){return mu(t)},start:function(t){return mu(t)},width:function(t){return parseInt(t,10)},height:function(t){return parseInt(t,10)},bandwidth:function(t){return parseInt(t,10)},frameRate:function(t){return Lye(t)},startNumber:function(t){return parseInt(t,10)},timescale:function(t){return parseInt(t,10)},presentationTimeOffset:function(t){return parseInt(t,10)},duration:function(t){var n=parseInt(t,10);return isNaN(n)?mu(t):n},d:function(t){return parseInt(t,10)},t:function(t){return parseInt(t,10)},r:function(t){return parseInt(t,10)},DEFAULT:function(t){return t}},Lr=function(t){return t&&t.attributes?DR(t.attributes).reduce(function(n,r){var a=uk[r.name]||uk.DEFAULT;return n[r.name]=a(r.value),n},{}):{}},Fye={"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime"},_g=function(t,n){return n.length?yg(t.map(function(r){return n.map(function(a){return hg(r,lT(a))})})):t},uT=function(t){var n=Jn(t,"SegmentTemplate")[0],r=Jn(t,"SegmentList")[0],a=r&&Jn(r,"SegmentURL").map(function(p){return na({tag:"SegmentURL"},Lr(p))}),i=Jn(t,"SegmentBase")[0],o=r||n,s=o&&Jn(o,"SegmentTimeline")[0],l=r||i||n,u=l&&Jn(l,"Initialization")[0],c=n&&Lr(n);c&&u?c.initialization=u&&Lr(u):c&&c.initialization&&(c.initialization={sourceURL:c.initialization});var d={template:c,segmentTimeline:s&&Jn(s,"S").map(function(p){return Lr(p)}),list:r&&na(Lr(r),{segmentUrls:a,initialization:Lr(u)}),base:i&&na(Lr(i),{initialization:Lr(u)})};return Object.keys(d).forEach(function(p){d[p]||delete d[p]}),d},$ye=function(t,n,r){return function(a){var i=Jn(a,"BaseURL"),o=_g(n,i),s=na(t,Lr(a)),l=uT(a);return o.map(function(u){return{segmentInfo:na(r,l),attributes:na(s,{baseUrl:u})}})}},Bye=function(t){return t.reduce(function(n,r){var a=Lr(r);a.schemeIdUri&&(a.schemeIdUri=a.schemeIdUri.toLowerCase());var i=Fye[a.schemeIdUri];if(i){n[i]={attributes:a};var o=Jn(r,"cenc:pssh")[0];if(o){var s=lT(o);n[i].pssh=s&&qM(s)}}return n},{})},Vye=function(t){if(t.schemeIdUri==="urn:scte:dash:cc:cea-608:2015"){var n=typeof t.value!="string"?[]:t.value.split(";");return n.map(function(a){var i,o;if(o=a,/^CC\d=/.test(a)){var s=a.split("=");i=s[0],o=s[1]}else/^CC\d$/.test(a)&&(i=a);return{channel:i,language:o}})}else if(t.schemeIdUri==="urn:scte:dash:cc:cea-708:2015"){var r=typeof t.value!="string"?[]:t.value.split(";");return r.map(function(a){var i={channel:void 0,language:void 0,aspectRatio:1,easyReader:0,"3D":0};if(/=/.test(a)){var o=a.split("="),s=o[0],l=o[1],u=l===void 0?"":l;i.channel=s,i.language=a,u.split(",").forEach(function(c){var d=c.split(":"),p=d[0],h=d[1];p==="lang"?i.language=h:p==="er"?i.easyReader=Number(h):p==="war"?i.aspectRatio=Number(h):p==="3D"&&(i["3D"]=Number(h))})}else i.language=a;return i.channel&&(i.channel="SERVICE"+i.channel),i})}},Uye=function(t,n,r){return function(a){var i=Lr(a),o=_g(n,Jn(a,"BaseURL")),s=Jn(a,"Role")[0],l={role:Lr(s)},u=na(t,i,l),c=Jn(a,"Accessibility")[0],d=Vye(Lr(c));d&&(u=na(u,{captionServices:d}));var p=Jn(a,"Label")[0];if(p&&p.childNodes.length){var h=p.childNodes[0].nodeValue.trim();u=na(u,{label:h})}var v=Bye(Jn(a,"ContentProtection"));Object.keys(v).length&&(u=na(u,{contentProtection:v}));var m=uT(a),g=Jn(a,"Representation"),y=na(r,m);return yg(g.map($ye(u,o,y)))}},Hye=function(t,n){return function(r,a){var i=_g(n,Jn(r.node,"BaseURL")),o=na(t,{periodStart:r.attributes.start});typeof r.attributes.duration=="number"&&(o.periodDuration=r.attributes.duration);var s=Jn(r.node,"AdaptationSet"),l=uT(r.node);return yg(s.map(Uye(o,i,l)))}},zye=function(t){var n=t.attributes,r=t.priorPeriodAttributes,a=t.mpdType;return typeof n.start=="number"?n.start:r&&typeof r.start=="number"&&typeof r.duration=="number"?r.start+r.duration:!r&&a==="static"?0:null},jye=function(t,n){n===void 0&&(n={});var r=n,a=r.manifestUri,i=a===void 0?"":a,o=r.NOW,s=o===void 0?Date.now():o,l=r.clientOffset,u=l===void 0?0:l,c=Jn(t,"Period");if(!c.length)throw new Error(yc.INVALID_NUMBER_OF_PERIOD);var d=Jn(t,"Location"),p=Lr(t),h=_g([i],Jn(t,"BaseURL"));p.type=p.type||"static",p.sourceDuration=p.mediaPresentationDuration||0,p.NOW=s,p.clientOffset=u,d.length&&(p.locations=d.map(lT));var v=[];return c.forEach(function(m,g){var y=Lr(m),T=v[g-1];y.start=zye({attributes:y,priorPeriodAttributes:T?T.attributes:null,mpdType:p.type}),v.push({node:m,attributes:y})}),{locations:p.locations,representationInfo:yg(v.map(Hye(p,h)))}},MR=function(t){if(t==="")throw new Error(yc.DASH_EMPTY_MANIFEST);var n=new nye,r,a;try{r=n.parseFromString(t,"application/xml"),a=r&&r.documentElement.tagName==="MPD"?r.documentElement:null}catch{}if(!a||a&&a.getElementsByTagName("parsererror").length>0)throw new Error(yc.DASH_INVALID_XML);return a},Wye=function(t){var n=Jn(t,"UTCTiming")[0];if(!n)return null;var r=Lr(n);switch(r.schemeIdUri){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":r.method="HEAD";break;case"urn:mpeg:dash:utc:http-xsdate:2014":case"urn:mpeg:dash:utc:http-iso:2014":case"urn:mpeg:dash:utc:http-xsdate:2012":case"urn:mpeg:dash:utc:http-iso:2012":r.method="GET";break;case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":r.method="DIRECT",r.value=Date.parse(r.value);break;case"urn:mpeg:dash:utc:http-ntp:2014":case"urn:mpeg:dash:utc:ntp:2014":case"urn:mpeg:dash:utc:sntp:2014":default:throw new Error(yc.UNSUPPORTED_UTC_TIMING_SCHEME)}return r},Kye=function(t,n){n===void 0&&(n={});var r=jye(MR(t),n),a=Rye(r.representationInfo);return Eye({dashPlaylists:a,locations:r.locations,sidxMapping:n.sidxMapping,previousManifest:n.previousManifest})},qye=function(t){return Wye(MR(t))},RR=Math.pow(2,32),Gye=function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),n;return t.getBigUint64?(n=t.getBigUint64(0),n<Number.MAX_SAFE_INTEGER?Number(n):n):t.getUint32(0)*RR+t.getUint32(4)},Yye={getUint64:Gye,MAX_UINT32:RR},ck=Yye.getUint64,Xye=function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),n={version:e[0],flags:new Uint8Array(e.subarray(1,4)),references:[],referenceId:t.getUint32(4),timescale:t.getUint32(8)},r=12;n.version===0?(n.earliestPresentationTime=t.getUint32(r),n.firstOffset=t.getUint32(r+4),r+=8):(n.earliestPresentationTime=ck(e.subarray(r)),n.firstOffset=ck(e.subarray(r+8)),r+=16),r+=2;var a=t.getUint16(r);for(r+=2;a>0;r+=12,a--)n.references.push({referenceType:(e[r]&128)>>>7,referencedSize:t.getUint32(r)&2147483647,subsegmentDuration:t.getUint32(r+4),startsWithSap:!!(e[r+8]&128),sapType:(e[r+8]&112)>>>4,sapDeltaTime:t.getUint32(r+8)&268435455});return n},Qye=Xye;const Jye=xr(Qye);var Zye=jt([73,68,51]),ebe=function(t,n){n===void 0&&(n=0),t=jt(t);var r=t[n+5],a=t[n+6]<<21|t[n+7]<<14|t[n+8]<<7|t[n+9],i=(r&16)>>4;return i?a+20:a+10},Od=function e(t,n){return n===void 0&&(n=0),t=jt(t),t.length-n<10||!zn(t,Zye,{offset:n})?n:(n+=ebe(t,n),e(t,n))},dk=function(t){return typeof t=="string"?JM(t):t},tbe=function(t){return Array.isArray(t)?t.map(function(n){return dk(n)}):[dk(t)]},nbe=function e(t,n,r){r===void 0&&(r=!1),n=tbe(n),t=jt(t);var a=[];if(!n.length)return a;for(var i=0;i<t.length;){var o=(t[i]<<24|t[i+1]<<16|t[i+2]<<8|t[i+3])>>>0,s=t.subarray(i+4,i+8);if(o===0)break;var l=i+o;if(l>t.length){if(r)break;l=t.length}var u=t.subarray(i+8,l);zn(s,n[0])&&(n.length===1?a.push(u):a.push.apply(a,e(u,n.slice(1),r))),i=l}return a},bh={EBML:jt([26,69,223,163]),DocType:jt([66,130]),Segment:jt([24,83,128,103]),SegmentInfo:jt([21,73,169,102]),Tracks:jt([22,84,174,107]),Track:jt([174]),TrackNumber:jt([215]),DefaultDuration:jt([35,227,131]),TrackEntry:jt([174]),TrackType:jt([131]),FlagDefault:jt([136]),CodecID:jt([134]),CodecPrivate:jt([99,162]),VideoTrack:jt([224]),AudioTrack:jt([225]),Cluster:jt([31,67,182,117]),Timestamp:jt([231]),TimestampScale:jt([42,215,177]),BlockGroup:jt([160]),BlockDuration:jt([155]),Block:jt([161]),SimpleBlock:jt([163])},qb=[128,64,32,16,8,4,2,1],rbe=function(t){for(var n=1,r=0;r<qb.length&&!(t&qb[r]);r++)n++;return n},Gm=function(t,n,r,a){r===void 0&&(r=!0),a===void 0&&(a=!1);var i=rbe(t[n]),o=t.subarray(n,n+i);return r&&(o=Array.prototype.slice.call(t,n,n+i),o[0]^=qb[i-1]),{length:i,value:E0e(o,{signed:a}),bytes:o}},fk=function e(t){return typeof t=="string"?t.match(/.{1,2}/g).map(function(n){return e(n)}):typeof t=="number"?x0e(t):t},abe=function(t){return Array.isArray(t)?t.map(function(n){return fk(n)}):[fk(t)]},ibe=function e(t,n,r){if(r>=n.length)return n.length;var a=Gm(n,r,!1);if(zn(t.bytes,a.bytes))return r;var i=Gm(n,r+a.length);return e(t,n,r+i.length+i.value+a.length)},pk=function e(t,n){n=abe(n),t=jt(t);var r=[];if(!n.length)return r;for(var a=0;a<t.length;){var i=Gm(t,a,!1),o=Gm(t,a+i.length),s=a+i.length+o.length;o.value===127&&(o.value=ibe(i,t,s),o.value!==t.length&&(o.value-=s));var l=s+o.value>t.length?t.length:s+o.value,u=t.subarray(s,l);zn(n[0],i.bytes)&&(n.length===1?r.push(u):r=r.concat(e(u,n.slice(1))));var c=i.length+o.length+u.length;a+=c}return r},obe=jt([0,0,0,1]),sbe=jt([0,0,1]),lbe=jt([0,0,3]),ube=function(t){for(var n=[],r=1;r<t.length-2;)zn(t.subarray(r,r+3),lbe)&&(n.push(r+2),r++),r++;if(n.length===0)return t;var a=t.length-n.length,i=new Uint8Array(a),o=0;for(r=0;r<a;o++,r++)o===n[0]&&(o++,n.shift()),i[r]=t[o];return i},LR=function(t,n,r,a){a===void 0&&(a=1/0),t=jt(t),r=[].concat(r);for(var i=0,o,s=0;i<t.length&&(s<a||o);){var l=void 0;if(zn(t.subarray(i),obe)?l=4:zn(t.subarray(i),sbe)&&(l=3),!l){i++;continue}if(s++,o)return ube(t.subarray(o,i));var u=void 0;n==="h264"?u=t[i+l]&31:n==="h265"&&(u=t[i+l]>>1&63),r.indexOf(u)!==-1&&(o=i+l),i+=l+(n==="h264"?1:2)}return t.subarray(0,0)},cbe=function(t,n,r){return LR(t,"h264",n,r)},dbe=function(t,n,r){return LR(t,"h265",n,r)},Gr={webm:jt([119,101,98,109]),matroska:jt([109,97,116,114,111,115,107,97]),flac:jt([102,76,97,67]),ogg:jt([79,103,103,83]),ac3:jt([11,119]),riff:jt([82,73,70,70]),avi:jt([65,86,73]),wav:jt([87,65,86,69]),"3gp":jt([102,116,121,112,51,103]),mp4:jt([102,116,121,112]),fmp4:jt([115,116,121,112]),mov:jt([102,116,121,112,113,116]),moov:jt([109,111,111,118]),moof:jt([109,111,111,102])},bc={aac:function(t){var n=Od(t);return zn(t,[255,16],{offset:n,mask:[255,22]})},mp3:function(t){var n=Od(t);return zn(t,[255,2],{offset:n,mask:[255,6]})},webm:function(t){var n=pk(t,[bh.EBML,bh.DocType])[0];return zn(n,Gr.webm)},mkv:function(t){var n=pk(t,[bh.EBML,bh.DocType])[0];return zn(n,Gr.matroska)},mp4:function(t){if(bc["3gp"](t)||bc.mov(t))return!1;if(zn(t,Gr.mp4,{offset:4})||zn(t,Gr.fmp4,{offset:4})||zn(t,Gr.moof,{offset:4})||zn(t,Gr.moov,{offset:4}))return!0},mov:function(t){return zn(t,Gr.mov,{offset:4})},"3gp":function(t){return zn(t,Gr["3gp"],{offset:4})},ac3:function(t){var n=Od(t);return zn(t,Gr.ac3,{offset:n})},ts:function(t){if(t.length<189&&t.length>=1)return t[0]===71;for(var n=0;n+188<t.length&&n<188;){if(t[n]===71&&t[n+188]===71)return!0;n+=1}return!1},flac:function(t){var n=Od(t);return zn(t,Gr.flac,{offset:n})},ogg:function(t){return zn(t,Gr.ogg)},avi:function(t){return zn(t,Gr.riff)&&zn(t,Gr.avi,{offset:8})},wav:function(t){return zn(t,Gr.riff)&&zn(t,Gr.wav,{offset:8})},h264:function(t){return cbe(t,7,3).length},h265:function(t){return dbe(t,[32,33],3).length}},Gb=Object.keys(bc).filter(function(e){return e!=="ts"&&e!=="h264"&&e!=="h265"}).concat(["ts","h264","h265"]);Gb.forEach(function(e){var t=bc[e];bc[e]=function(n){return t(jt(n))}});var fbe=bc,cT=function(t){t=jt(t);for(var n=0;n<Gb.length;n++){var r=Gb[n];if(fbe[r](t))return r}return""},pbe=function(t){return nbe(t,["moof"]).length>0},dT=9e4,fT,pT,Tg,hT,NR,FR,$R;fT=function(e){return e*dT};pT=function(e,t){return e*t};Tg=function(e){return e/dT};hT=function(e,t){return e/t};NR=function(e,t){return fT(hT(e,t))};FR=function(e,t){return pT(Tg(e),t)};$R=function(e,t,n){return Tg(n?e:e-t)};var Ym={ONE_SECOND_IN_TS:dT,secondsToVideoTs:fT,secondsToAudioTs:pT,videoTsToSeconds:Tg,audioTsToSeconds:hT,audioTsToVideoTs:NR,videoTsToAudioTs:FR,metadataTsToSeconds:$R};function Yb(e){return Yb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Yb(e)}function hbe(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function Xb(e){var t=typeof Map=="function"?new Map:void 0;return Xb=function(r){if(r===null||!hbe(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,a)}function a(){return WM(r,arguments,Yb(this).constructor)}return a.prototype=Object.create(r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),hc(a,r)},Xb(e)}/**
* @license
* Video.js 7.21.7 <http://videojs.com/>
* Copyright Brightcove, Inc. <https://www.brightcove.com/>
* Available under Apache License Version 2.0
* <https://github.com/videojs/video.js/blob/main/LICENSE>
*
* Includes vtt.js <https://github.com/mozilla/vtt.js>
* Available under Apache License Version 2.0
* <https://github.com/mozilla/vtt.js/blob/main/LICENSE>
*/var BR="7.21.7",Lo={},$s=function(t,n){return Lo[t]=Lo[t]||[],n&&(Lo[t]=Lo[t].concat(n)),Lo[t]},mbe=function(t,n){$s(t,n)},VR=function(t,n){var r=$s(t).indexOf(n);return r<=-1?!1:(Lo[t]=Lo[t].slice(),Lo[t].splice(r,1),!0)},vbe=function(t,n){$s(t,[].concat(n).map(function(r){var a=function i(){return VR(t,i),r.apply(void 0,arguments)};return a}))},Xm={prefixed:!0},nm=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror","fullscreen"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror","-moz-full-screen"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError","-ms-fullscreen"]],hk=nm[0],Md;for(var _h=0;_h<nm.length;_h++)if(nm[_h][1]in vt){Md=nm[_h];break}if(Md){for(var Th=0;Th<Md.length;Th++)Xm[hk[Th]]=Md[Th];Xm.prefixed=Md[0]!==hk[0]}var va=[],gbe=function(t,n){return function(r,a,i){var o=n.levels[a],s=new RegExp("^("+o+")$");if(r!=="log"&&i.unshift(r.toUpperCase()+":"),i.unshift(t+":"),va){va.push([].concat(i));var l=va.length-1e3;va.splice(0,l>0?l:0)}if(Te.console){var u=Te.console[r];!u&&r==="debug"&&(u=Te.console.info||Te.console.log),!(!u||!o||!s.test(r))&&u[Array.isArray(i)?"apply":"call"](Te.console,i)}}};function UR(e){var t="info",n,r=function(){for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];n("log",t,o)};return n=gbe(e,r),r.createLogger=function(a){return UR(e+": "+a)},r.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:t},r.level=function(a){if(typeof a=="string"){if(!r.levels.hasOwnProperty(a))throw new Error('"'+a+'" in not a valid log level');t=a}return t},r.history=function(){return va?[].concat(va):[]},r.history.filter=function(a){return(va||[]).filter(function(i){return new RegExp(".*"+a+".*").test(i[0])})},r.history.clear=function(){va&&(va.length=0)},r.history.disable=function(){va!==null&&(va.length=0,va=null)},r.history.enable=function(){va===null&&(va=[])},r.error=function(){for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n("error",t,i)},r.warn=function(){for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n("warn",t,i)},r.debug=function(){for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n("debug",t,i)},r}var on=UR("VIDEOJS"),HR=on.createLogger,ybe=Object.prototype.toString,zR=function(t){return Xo(t)?Object.keys(t):[]};function ju(e,t){zR(e).forEach(function(n){return t(e[n],n)})}function bbe(e,t,n){return n===void 0&&(n=0),zR(e).reduce(function(r,a){return t(r,e[a],a)},n)}function Yn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Object.assign?oi.apply(void 0,[e].concat(n)):(n.forEach(function(a){a&&ju(a,function(i,o){e[o]=i})}),e)}function Xo(e){return!!e&&typeof e=="object"}function Wf(e){return Xo(e)&&ybe.call(e)==="[object Object]"&&e.constructor===Object}function Kf(e,t){if(!e||!t)return"";if(typeof Te.getComputedStyle=="function"){var n;try{n=Te.getComputedStyle(e)}catch{return""}return n?n.getPropertyValue(t)||n[t]:""}return""}var Tr=Te.navigator&&Te.navigator.userAgent||"",mk=/AppleWebKit\/([\d.]+)/i.exec(Tr),_be=mk?parseFloat(mk.pop()):null,jR=/iPod/i.test(Tr),Tbe=function(){var e=Tr.match(/OS (\d+)_/i);return e&&e[1]?e[1]:null}(),os=/Android/i.test(Tr),mT=function(){var e=Tr.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!e)return null;var t=e[1]&&parseFloat(e[1]),n=e[2]&&parseFloat(e[2]);return t&&n?parseFloat(e[1]+"."+e[2]):t||null}(),WR=os&&mT<5&&_be<537,KR=/Firefox/i.test(Tr),Ap=/Edg/i.test(Tr),ss=!Ap&&(/Chrome/i.test(Tr)||/CriOS/i.test(Tr)),qR=function(){var e=Tr.match(/(Chrome|CriOS)\/(\d+)/);return e&&e[2]?parseFloat(e[2]):null}(),Dp=function(){var e=/MSIE\s(\d+)\.\d/.exec(Tr),t=e&&parseFloat(e[1]);return!t&&/Trident\/7.0/i.test(Tr)&&/rv:11.0/.test(Tr)&&(t=11),t}(),vT=/Safari/i.test(Tr)&&!ss&&!os&&!Ap,GR=/Windows/i.test(Tr),_c=!!(Kc()&&("ontouchstart"in Te||Te.navigator.maxTouchPoints||Te.DocumentTouch&&Te.document instanceof Te.DocumentTouch)),gT=/iPad/i.test(Tr)||vT&&_c&&!/iPhone/i.test(Tr),yT=/iPhone/i.test(Tr)&&!gT,la=yT||gT||jR,wg=(vT||la)&&!ss,wbe=Object.freeze({__proto__:null,IS_IPOD:jR,IOS_VERSION:Tbe,IS_ANDROID:os,ANDROID_VERSION:mT,IS_NATIVE_ANDROID:WR,IS_FIREFOX:KR,IS_EDGE:Ap,IS_CHROME:ss,CHROME_VERSION:qR,IE_VERSION:Dp,IS_SAFARI:vT,IS_WINDOWS:GR,TOUCH_ENABLED:_c,IS_IPAD:gT,IS_IPHONE:yT,IS_IOS:la,IS_ANY_SAFARI:wg});function vk(e){return typeof e=="string"&&!!e.trim()}function YR(e){if(e.indexOf(" ")>=0)throw new Error("class has illegal whitespace characters")}function Sbe(e){return new RegExp("(^|\\s)"+e+"($|\\s)")}function Kc(){return vt===Te.document}function qc(e){return Xo(e)&&e.nodeType===1}function XR(){try{return Te.parent!==Te.self}catch{return!0}}function QR(e){return function(t,n){if(!vk(t))return vt[e](null);vk(n)&&(n=vt.querySelector(n));var r=qc(n)?n:vt;return r[e]&&r[e](t)}}function gn(e,t,n,r){e===void 0&&(e="div"),t===void 0&&(t={}),n===void 0&&(n={});var a=vt.createElement(e);return Object.getOwnPropertyNames(t).forEach(function(i){var o=t[i];i.indexOf("aria-")!==-1||i==="role"||i==="type"?(on.warn(`Setting attributes in the second argument of createEl()
has been deprecated. Use the third argument instead.
`+("createEl(type, properties, attributes). Attempting to set "+i+" to "+o+".")),a.setAttribute(i,o)):i==="textContent"?Ql(a,o):(a[i]!==o||i==="tabIndex")&&(a[i]=o)}),Object.getOwnPropertyNames(n).forEach(function(i){a.setAttribute(i,n[i])}),r&&_T(a,r),a}function Ql(e,t){return typeof e.textContent>"u"?e.innerText=t:e.textContent=t,e}function Qb(e,t){t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)}function kl(e,t){return YR(t),e.classList?e.classList.contains(t):Sbe(t).test(e.className)}function Vo(e,t){return e.classList?e.classList.add(t):kl(e,t)||(e.className=(e.className+" "+t).trim()),e}function Ip(e,t){return e?(e.classList?e.classList.remove(t):(YR(t),e.className=e.className.split(/\s+/).filter(function(n){return n!==t}).join(" ")),e):(on.warn("removeClass was called with an element that doesn't exist"),null)}function JR(e,t,n){var r=kl(e,t);if(typeof n=="function"&&(n=n(e,t)),typeof n!="boolean"&&(n=!r),n!==r)return n?Vo(e,t):Ip(e,t),e}function ZR(e,t){Object.getOwnPropertyNames(t).forEach(function(n){var r=t[n];r===null||typeof r>"u"||r===!1?e.removeAttribute(n):e.setAttribute(n,r===!0?"":r)})}function Ao(e){var t={},n=",autoplay,controls,playsinline,loop,muted,default,defaultMuted,";if(e&&e.attributes&&e.attributes.length>0)for(var r=e.attributes,a=r.length-1;a>=0;a--){var i=r[a].name,o=r[a].value;(typeof e[i]=="boolean"||n.indexOf(","+i+",")!==-1)&&(o=o!==null),t[i]=o}return t}function eL(e,t){return e.getAttribute(t)}function Tc(e,t,n){e.setAttribute(t,n)}function Sg(e,t){e.removeAttribute(t)}function tL(){vt.body.focus(),vt.onselectstart=function(){return!1}}function nL(){vt.onselectstart=function(){return!0}}function wc(e){if(e&&e.getBoundingClientRect&&e.parentNode){var t=e.getBoundingClientRect(),n={};return["bottom","height","left","right","top","width"].forEach(function(r){t[r]!==void 0&&(n[r]=t[r])}),n.height||(n.height=parseFloat(Kf(e,"height"))),n.width||(n.width=parseFloat(Kf(e,"width"))),n}}function qf(e){if(!e||e&&!e.offsetParent)return{left:0,top:0,width:0,height:0};for(var t=e.offsetWidth,n=e.offsetHeight,r=0,a=0;e.offsetParent&&e!==vt[Xm.fullscreenElement];)r+=e.offsetLeft,a+=e.offsetTop,e=e.offsetParent;return{left:r,top:a,width:t,height:n}}function Cg(e,t){var n={x:0,y:0};if(la)for(var r=e;r&&r.nodeName.toLowerCase()!=="html";){var a=Kf(r,"transform");if(/^matrix/.test(a)){var i=a.slice(7,-1).split(/,\s/).map(Number);n.x+=i[4],n.y+=i[5]}else if(/^matrix3d/.test(a)){var o=a.slice(9,-1).split(/,\s/).map(Number);n.x+=o[12],n.y+=o[13]}r=r.parentNode}var s={},l=qf(t.target),u=qf(e),c=u.width,d=u.height,p=t.offsetY-(u.top-l.top),h=t.offsetX-(u.left-l.left);return t.changedTouches&&(h=t.changedTouches[0].pageX-u.left,p=t.changedTouches[0].pageY+u.top,la&&(h-=n.x,p-=n.y)),s.y=1-Math.max(0,Math.min(1,p/d)),s.x=Math.max(0,Math.min(1,h/c)),s}function rL(e){return Xo(e)&&e.nodeType===3}function bT(e){for(;e.firstChild;)e.removeChild(e.firstChild);return e}function aL(e){return typeof e=="function"&&(e=e()),(Array.isArray(e)?e:[e]).map(function(t){if(typeof t=="function"&&(t=t()),qc(t)||rL(t))return t;if(typeof t=="string"&&/\S/.test(t))return vt.createTextNode(t)}).filter(function(t){return t})}function _T(e,t){return aL(t).forEach(function(n){return e.appendChild(n)}),e}function iL(e,t){return _T(bT(e),t)}function Gf(e){return e.button===void 0&&e.buttons===void 0||e.button===0&&e.buttons===void 0||e.type==="mouseup"&&e.button===0&&e.buttons===0?!0:!(e.button!==0||e.buttons!==1)}var Bs=QR("querySelector"),oL=QR("querySelectorAll"),sL=Object.freeze({__proto__:null,isReal:Kc,isEl:qc,isInFrame:XR,createEl:gn,textContent:Ql,prependTo:Qb,hasClass:kl,addClass:Vo,removeClass:Ip,toggleClass:JR,setAttributes:ZR,getAttributes:Ao,getAttribute:eL,setAttribute:Tc,removeAttribute:Sg,blockTextSelection:tL,unblockTextSelection:nL,getBoundingClientRect:wc,findPosition:qf,getPointerPosition:Cg,isTextNode:rL,emptyEl:bT,normalizeContent:aL,appendContent:_T,insertContent:iL,isSingleLeftClick:Gf,$:Bs,$$:oL}),lL=!1,Jb,Cbe=function(){if(Jb.options.autoSetup!==!1){var t=Array.prototype.slice.call(vt.getElementsByTagName("video")),n=Array.prototype.slice.call(vt.getElementsByTagName("audio")),r=Array.prototype.slice.call(vt.getElementsByTagName("video-js")),a=t.concat(n,r);if(a&&a.length>0)for(var i=0,o=a.length;i<o;i++){var s=a[i];if(s&&s.getAttribute){if(s.player===void 0){var l=s.getAttribute("data-setup");l!==null&&Jb(s)}}else{Zb(1);break}}else lL||Zb(1)}};function Zb(e,t){Kc()&&(t&&(Jb=t),Te.setTimeout(Cbe,e))}function e_(){lL=!0,Te.removeEventListener("load",e_)}Kc()&&(vt.readyState==="complete"?e_():Te.addEventListener("load",e_));var uL=function(t){var n=vt.createElement("style");return n.className=t,n},cL=function(t,n){t.styleSheet?t.styleSheet.cssText=n:t.textContent=n},Ebe=3,xbe=Ebe;function ls(){return xbe++}var dL;Te.WeakMap||(dL=function(){function e(){this.vdata="vdata"+Math.floor(Te.performance&&Te.performance.now()||Date.now()),this.data={}}var t=e.prototype;return t.set=function(r,a){var i=r[this.vdata]||ls();return r[this.vdata]||(r[this.vdata]=i),this.data[i]=a,this},t.get=function(r){var a=r[this.vdata];if(a)return this.data[a];on("We have no data for this element",r)},t.has=function(r){var a=r[this.vdata];return a in this.data},t.delete=function(r){var a=r[this.vdata];a&&(delete this.data[a],delete r[this.vdata])},e}());var ra=Te.WeakMap?new WeakMap:new dL;function gk(e,t){if(ra.has(e)){var n=ra.get(e);n.handlers[t].length===0&&(delete n.handlers[t],e.removeEventListener?e.removeEventListener(t,n.dispatcher,!1):e.detachEvent&&e.detachEvent("on"+t,n.dispatcher)),Object.getOwnPropertyNames(n.handlers).length<=0&&(delete n.handlers,delete n.dispatcher,delete n.disabled),Object.getOwnPropertyNames(n).length===0&&ra.delete(e)}}function TT(e,t,n,r){n.forEach(function(a){e(t,a,r)})}function Eg(e){if(e.fixed_)return e;function t(){return!0}function n(){return!1}if(!e||!e.isPropagationStopped||!e.isImmediatePropagationStopped){var r=e||Te.event;e={};for(var a in r)a!=="layerX"&&a!=="layerY"&&a!=="keyLocation"&&a!=="webkitMovementX"&&a!=="webkitMovementY"&&a!=="path"&&(a==="returnValue"&&r.preventDefault||(e[a]=r[a]));if(e.target||(e.target=e.srcElement||vt),e.relatedTarget||(e.relatedTarget=e.fromElement===e.target?e.toElement:e.fromElement),e.preventDefault=function(){r.preventDefault&&r.preventDefault(),e.returnValue=!1,r.returnValue=!1,e.defaultPrevented=!0},e.defaultPrevented=!1,e.stopPropagation=function(){r.stopPropagation&&r.stopPropagation(),e.cancelBubble=!0,r.cancelBubble=!0,e.isPropagationStopped=t},e.isPropagationStopped=n,e.stopImmediatePropagation=function(){r.stopImmediatePropagation&&r.stopImmediatePropagation(),e.isImmediatePropagationStopped=t,e.stopPropagation()},e.isImmediatePropagationStopped=n,e.clientX!==null&&e.clientX!==void 0){var i=vt.documentElement,o=vt.body;e.pageX=e.clientX+(i&&i.scrollLeft||o&&o.scrollLeft||0)-(i&&i.clientLeft||o&&o.clientLeft||0),e.pageY=e.clientY+(i&&i.scrollTop||o&&o.scrollTop||0)-(i&&i.clientTop||o&&o.clientTop||0)}e.which=e.charCode||e.keyCode,e.button!==null&&e.button!==void 0&&(e.button=e.button&1?0:e.button&4?1:e.button&2?2:0)}return e.fixed_=!0,e}var wh,kbe=function(){if(typeof wh!="boolean"){wh=!1;try{var t=Object.defineProperty({},"passive",{get:function(){wh=!0}});Te.addEventListener("test",null,t),Te.removeEventListener("test",null,t)}catch{}}return wh},Abe=["touchstart","touchmove"];function Ha(e,t,n){if(Array.isArray(t))return TT(Ha,e,t,n);ra.has(e)||ra.set(e,{});var r=ra.get(e);if(r.handlers||(r.handlers={}),r.handlers[t]||(r.handlers[t]=[]),n.guid||(n.guid=ls()),r.handlers[t].push(n),r.dispatcher||(r.disabled=!1,r.dispatcher=function(i,o){if(!r.disabled){i=Eg(i);var s=r.handlers[i.type];if(s)for(var l=s.slice(0),u=0,c=l.length;u<c&&!i.isImmediatePropagationStopped();u++)try{l[u].call(e,i,o)}catch(d){on.error(d)}}}),r.handlers[t].length===1)if(e.addEventListener){var a=!1;kbe()&&Abe.indexOf(t)>-1&&(a={passive:!0}),e.addEventListener(t,r.dispatcher,a)}else e.attachEvent&&e.attachEvent("on"+t,r.dispatcher)}function Hr(e,t,n){if(ra.has(e)){var r=ra.get(e);if(r.handlers){if(Array.isArray(t))return TT(Hr,e,t,n);var a=function(u,c){r.handlers[c]=[],gk(u,c)};if(t===void 0){for(var i in r.handlers)Object.prototype.hasOwnProperty.call(r.handlers||{},i)&&a(e,i);return}var o=r.handlers[t];if(o){if(!n){a(e,t);return}if(n.guid)for(var s=0;s<o.length;s++)o[s].guid===n.guid&&o.splice(s--,1);gk(e,t)}}}}function Gc(e,t,n){var r=ra.has(e)?ra.get(e):{},a=e.parentNode||e.ownerDocument;if(typeof t=="string"?t={type:t,target:e}:t.target||(t.target=e),t=Eg(t),r.dispatcher&&r.dispatcher.call(e,t,n),a&&!t.isPropagationStopped()&&t.bubbles===!0)Gc.call(null,a,t,n);else if(!a&&!t.defaultPrevented&&t.target&&t.target[t.type]){ra.has(t.target)||ra.set(t.target,{});var i=ra.get(t.target);t.target[t.type]&&(i.disabled=!0,typeof t.target[t.type]=="function"&&t.target[t.type](),i.disabled=!1)}return!t.defaultPrevented}function xg(e,t,n){if(Array.isArray(t))return TT(xg,e,t,n);var r=function a(){Hr(e,t,a),n.apply(this,arguments)};r.guid=n.guid=n.guid||ls(),Ha(e,t,r)}function fL(e,t,n){var r=function a(){Hr(e,t,a),n.apply(this,arguments)};r.guid=n.guid=n.guid||ls(),Ha(e,t,r)}var Dbe=Object.freeze({__proto__:null,fixEvent:Eg,on:Ha,off:Hr,trigger:Gc,one:xg,any:fL}),Ai=30,Hn=function(t,n,r){n.guid||(n.guid=ls());var a=n.bind(t);return a.guid=r?r+"_"+n.guid:n.guid,a},Qo=function(t,n){var r=Te.performance.now(),a=function(){var o=Te.performance.now();o-r>=n&&(t.apply(void 0,arguments),r=o)};return a},Ibe=function(t,n,r,a){a===void 0&&(a=Te);var i,o=function(){a.clearTimeout(i),i=null},s=function(){var u=this,c=arguments,d=function(){i=null,d=null,r||t.apply(u,c)};!i&&r&&t.apply(u,c),a.clearTimeout(i),i=a.setTimeout(d,n)};return s.cancel=o,s},Cr=function(){};Cr.prototype.allowedEvents_={};Cr.prototype.on=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},Ha(this,e,t),this.addEventListener=n};Cr.prototype.addEventListener=Cr.prototype.on;Cr.prototype.off=function(e,t){Hr(this,e,t)};Cr.prototype.removeEventListener=Cr.prototype.off;Cr.prototype.one=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},xg(this,e,t),this.addEventListener=n};Cr.prototype.any=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},fL(this,e,t),this.addEventListener=n};Cr.prototype.trigger=function(e){var t=e.type||e;typeof e=="string"&&(e={type:t}),e=Eg(e),this.allowedEvents_[t]&&this["on"+t]&&this["on"+t](e),Gc(this,e)};Cr.prototype.dispatchEvent=Cr.prototype.trigger;var wd;Cr.prototype.queueTrigger=function(e){var t=this;wd||(wd=new Map);var n=e.type||e,r=wd.get(this);r||(r=new Map,wd.set(this,r));var a=r.get(n);r.delete(n),Te.clearTimeout(a);var i=Te.setTimeout(function(){r.delete(n),r.size===0&&(r=null,wd.delete(t)),t.trigger(e)},0);r.set(n,i)};var kg=function(t){return typeof t.name=="function"?t.name():typeof t.name=="string"?t.name:t.name_?t.name_:t.constructor&&t.constructor.name?t.constructor.name:typeof t},Uo=function(t){return t instanceof Cr||!!t.eventBusEl_&&["on","one","off","trigger"].every(function(n){return typeof t[n]=="function"})},Pbe=function(t,n){Uo(t)?n():(t.eventedCallbacks||(t.eventedCallbacks=[]),t.eventedCallbacks.push(n))},t_=function(t){return typeof t=="string"&&/\S/.test(t)||Array.isArray(t)&&!!t.length},Qm=function(t,n,r){if(!t||!t.nodeName&&!Uo(t))throw new Error("Invalid target for "+kg(n)+"#"+r+"; must be a DOM node or evented object.")},pL=function(t,n,r){if(!t_(t))throw new Error("Invalid event type for "+kg(n)+"#"+r+"; must be a non-empty string or array.")},hL=function(t,n,r){if(typeof t!="function")throw new Error("Invalid listener for "+kg(n)+"#"+r+"; must be a function.")},z0=function(t,n,r){var a=n.length<3||n[0]===t||n[0]===t.eventBusEl_,i,o,s;return a?(i=t.eventBusEl_,n.length>=3&&n.shift(),o=n[0],s=n[1]):(i=n[0],o=n[1],s=n[2]),Qm(i,t,r),pL(o,t,r),hL(s,t,r),s=Hn(t,s),{isTargetingSelf:a,target:i,type:o,listener:s}},ol=function(t,n,r,a){Qm(t,t,n),t.nodeName?Dbe[n](t,r,a):t[n](r,a)},Obe={on:function(){for(var t=this,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];var i=z0(this,r,"on"),o=i.isTargetingSelf,s=i.target,l=i.type,u=i.listener;if(ol(s,"on",l,u),!o){var c=function(){return t.off(s,l,u)};c.guid=u.guid;var d=function(){return t.off("dispose",c)};d.guid=u.guid,ol(this,"on","dispose",c),ol(s,"on","dispose",d)}},one:function(){for(var t=this,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];var i=z0(this,r,"one"),o=i.isTargetingSelf,s=i.target,l=i.type,u=i.listener;if(o)ol(s,"one",l,u);else{var c=function d(){t.off(s,l,d);for(var p=arguments.length,h=new Array(p),v=0;v<p;v++)h[v]=arguments[v];u.apply(null,h)};c.guid=u.guid,ol(s,"one",l,c)}},any:function(){for(var t=this,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];var i=z0(this,r,"any"),o=i.isTargetingSelf,s=i.target,l=i.type,u=i.listener;if(o)ol(s,"any",l,u);else{var c=function d(){t.off(s,l,d);for(var p=arguments.length,h=new Array(p),v=0;v<p;v++)h[v]=arguments[v];u.apply(null,h)};c.guid=u.guid,ol(s,"any",l,c)}},off:function(t,n,r){if(!t||t_(t))Hr(this.eventBusEl_,t,n);else{var a=t,i=n;Qm(a,this,"off"),pL(i,this,"off"),hL(r,this,"off"),r=Hn(this,r),this.off("dispose",r),a.nodeName?(Hr(a,i,r),Hr(a,"dispose",r)):Uo(a)&&(a.off(i,r),a.off("dispose",r))}},trigger:function(t,n){Qm(this.eventBusEl_,this,"trigger");var r=t&&typeof t!="string"?t.type:t;if(!t_(r)){var a="Invalid event type for "+kg(this)+"#trigger; must be a non-empty string or object with a type key that has a non-empty value.";if(t)(this.log||on).error(a);else throw new Error(a)}return Gc(this.eventBusEl_,t,n)}};function wT(e,t){t===void 0&&(t={});var n=t,r=n.eventBusKey;if(r){if(!e[r].nodeName)throw new Error('The eventBusKey "'+r+'" does not refer to an element.');e.eventBusEl_=e[r]}else e.eventBusEl_=gn("span",{className:"vjs-event-bus"});return Yn(e,Obe),e.eventedCallbacks&&e.eventedCallbacks.forEach(function(a){a()}),e.on("dispose",function(){e.off(),[e,e.el_,e.eventBusEl_].forEach(function(a){a&&ra.has(a)&&ra.delete(a)}),Te.setTimeout(function(){e.eventBusEl_=null},0)}),e}var Mbe={state:{},setState:function(t){var n=this;typeof t=="function"&&(t=t());var r;return ju(t,function(a,i){n.state[i]!==a&&(r=r||{},r[i]={from:n.state[i],to:a}),n.state[i]=a}),r&&Uo(this)&&this.trigger({changes:r,type:"statechanged"}),r}};function mL(e,t){return Yn(e,Mbe),e.state=Yn({},e.state,t),typeof e.handleStateChanged=="function"&&Uo(e)&&e.on("statechanged",e.handleStateChanged),e}var rm=function(t){return typeof t!="string"?t:t.replace(/./,function(n){return n.toLowerCase()})},Zn=function(t){return typeof t!="string"?t:t.replace(/./,function(n){return n.toUpperCase()})},Rbe=function(t,n){return Zn(t)===Zn(n)};function Un(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(a){a&&ju(a,function(i,o){if(!Wf(i)){e[o]=i;return}Wf(e[o])||(e[o]={}),e[o]=Un(e[o],i)})}),e}var Lbe=function(){function e(){this.map_={}}var t=e.prototype;return t.has=function(r){return r in this.map_},t.delete=function(r){var a=this.has(r);return delete this.map_[r],a},t.set=function(r,a){return this.map_[r]=a,this},t.forEach=function(r,a){for(var i in this.map_)r.call(a,this.map_[i],i,this)},e}(),Nbe=Te.Map?Te.Map:Lbe,Fbe=function(){function e(){this.set_={}}var t=e.prototype;return t.has=function(r){return r in this.set_},t.delete=function(r){var a=this.has(r);return delete this.set_[r],a},t.add=function(r){return this.set_[r]=1,this},t.forEach=function(r,a){for(var i in this.set_)r.call(a,i,i,this)},e}(),j0=Te.Set?Te.Set:Fbe,ut=function(){function e(n,r,a){var i=this;if(!n&&this.play?this.player_=n=this:this.player_=n,this.isDisposed_=!1,this.parentComponent_=null,this.options_=Un({},this.options_),r=this.options_=Un(this.options_,r),this.id_=r.id||r.el&&r.el.id,!this.id_){var o=n&&n.id&&n.id()||"no_player";this.id_=o+"_component_"+ls()}this.name_=r.name||null,r.el?this.el_=r.el:r.createEl!==!1&&(this.el_=this.createEl()),r.className&&this.el_&&r.className.split(" ").forEach(function(s){return i.addClass(s)}),r.evented!==!1&&(wT(this,{eventBusKey:this.el_?"el_":null}),this.handleLanguagechange=this.handleLanguagechange.bind(this),this.on(this.player_,"languagechange",this.handleLanguagechange)),mL(this,this.constructor.defaultState),this.children_=[],this.childIndex_={},this.childNameIndex_={},this.setTimeoutIds_=new j0,this.setIntervalIds_=new j0,this.rafIds_=new j0,this.namedRafs_=new Nbe,this.clearingTimersOnDispose_=!1,r.initChildren!==!1&&this.initChildren(),this.ready(a),r.reportTouchActivity!==!1&&this.enableTouchActivity()}var t=e.prototype;return t.dispose=function(r){if(r===void 0&&(r={}),!this.isDisposed_){if(this.readyQueue_&&(this.readyQueue_.length=0),this.trigger({type:"dispose",bubbles:!1}),this.isDisposed_=!0,this.children_)for(var a=this.children_.length-1;a>=0;a--)this.children_[a].dispose&&this.children_[a].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.parentComponent_=null,this.el_&&(this.el_.parentNode&&(r.restoreEl?this.el_.parentNode.replaceChild(r.restoreEl,this.el_):this.el_.parentNode.removeChild(this.el_)),this.el_=null),this.player_=null}},t.isDisposed=function(){return!!this.isDisposed_},t.player=function(){return this.player_},t.options=function(r){return r?(this.options_=Un(this.options_,r),this.options_):this.options_},t.el=function(){return this.el_},t.createEl=function(r,a,i){return gn(r,a,i)},t.localize=function(r,a,i){i===void 0&&(i=r);var o=this.player_.language&&this.player_.language(),s=this.player_.languages&&this.player_.languages(),l=s&&s[o],u=o&&o.split("-")[0],c=s&&s[u],d=i;return l&&l[r]?d=l[r]:c&&c[r]&&(d=c[r]),a&&(d=d.replace(/\{(\d+)\}/g,function(p,h){var v=a[h-1],m=v;return typeof v>"u"&&(m=p),m})),d},t.handleLanguagechange=function(){},t.contentEl=function(){return this.contentEl_||this.el_},t.id=function(){return this.id_},t.name=function(){return this.name_},t.children=function(){return this.children_},t.getChildById=function(r){return this.childIndex_[r]},t.getChild=function(r){if(r)return this.childNameIndex_[r]},t.getDescendant=function(){for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];a=a.reduce(function(l,u){return l.concat(u)},[]);for(var o=this,s=0;s<a.length;s++)if(o=o.getChild(a[s]),!o||!o.getChild)return;return o},t.addChild=function(r,a,i){a===void 0&&(a={}),i===void 0&&(i=this.children_.length);var o,s;if(typeof r=="string"){s=Zn(r);var l=a.componentClass||s;a.name=s;var u=e.getComponent(l);if(!u)throw new Error("Component "+l+" does not exist");if(typeof u!="function")return null;o=new u(this.player_||this,a)}else o=r;if(o.parentComponent_&&o.parentComponent_.removeChild(o),this.children_.splice(i,0,o),o.parentComponent_=this,typeof o.id=="function"&&(this.childIndex_[o.id()]=o),s=s||o.name&&Zn(o.name()),s&&(this.childNameIndex_[s]=o,this.childNameIndex_[rm(s)]=o),typeof o.el=="function"&&o.el()){var c=null;this.children_[i+1]&&(this.children_[i+1].el_?c=this.children_[i+1].el_:qc(this.children_[i+1])&&(c=this.children_[i+1])),this.contentEl().insertBefore(o.el(),c)}return o},t.removeChild=function(r){if(typeof r=="string"&&(r=this.getChild(r)),!(!r||!this.children_)){for(var a=!1,i=this.children_.length-1;i>=0;i--)if(this.children_[i]===r){a=!0,this.children_.splice(i,1);break}if(a){r.parentComponent_=null,this.childIndex_[r.id()]=null,this.childNameIndex_[Zn(r.name())]=null,this.childNameIndex_[rm(r.name())]=null;var o=r.el();o&&o.parentNode===this.contentEl()&&this.contentEl().removeChild(r.el())}}},t.initChildren=function(){var r=this,a=this.options_.children;if(a){var i=this.options_,o=function(c){var d=c.name,p=c.opts;if(i[d]!==void 0&&(p=i[d]),p!==!1){p===!0&&(p={}),p.playerOptions=r.options_.playerOptions;var h=r.addChild(d,p);h&&(r[d]=h)}},s,l=e.getComponent("Tech");Array.isArray(a)?s=a:s=Object.keys(a),s.concat(Object.keys(this.options_).filter(function(u){return!s.some(function(c){return typeof c=="string"?u===c:u===c.name})})).map(function(u){var c,d;return typeof u=="string"?(c=u,d=a[c]||r.options_[c]||{}):(c=u.name,d=u),{name:c,opts:d}}).filter(function(u){var c=e.getComponent(u.opts.componentClass||Zn(u.name));return c&&!l.isTech(c)}).forEach(o)}},t.buildCSSClass=function(){return""},t.ready=function(r,a){if(a===void 0&&(a=!1),!!r){if(!this.isReady_){this.readyQueue_=this.readyQueue_||[],this.readyQueue_.push(r);return}a?r.call(this):this.setTimeout(r,1)}},t.triggerReady=function(){this.isReady_=!0,this.setTimeout(function(){var r=this.readyQueue_;this.readyQueue_=[],r&&r.length>0&&r.forEach(function(a){a.call(this)},this),this.trigger("ready")},1)},t.$=function(r,a){return Bs(r,a||this.contentEl())},t.$$=function(r,a){return oL(r,a||this.contentEl())},t.hasClass=function(r){return kl(this.el_,r)},t.addClass=function(r){Vo(this.el_,r)},t.removeClass=function(r){Ip(this.el_,r)},t.toggleClass=function(r,a){JR(this.el_,r,a)},t.show=function(){this.removeClass("vjs-hidden")},t.hide=function(){this.addClass("vjs-hidden")},t.lockShowing=function(){this.addClass("vjs-lock-showing")},t.unlockShowing=function(){this.removeClass("vjs-lock-showing")},t.getAttribute=function(r){return eL(this.el_,r)},t.setAttribute=function(r,a){Tc(this.el_,r,a)},t.removeAttribute=function(r){Sg(this.el_,r)},t.width=function(r,a){return this.dimension("width",r,a)},t.height=function(r,a){return this.dimension("height",r,a)},t.dimensions=function(r,a){this.width(r,!0),this.height(a)},t.dimension=function(r,a,i){if(a!==void 0){(a===null||a!==a)&&(a=0),(""+a).indexOf("%")!==-1||(""+a).indexOf("px")!==-1?this.el_.style[r]=a:a==="auto"?this.el_.style[r]="":this.el_.style[r]=a+"px",i||this.trigger("componentresize");return}if(!this.el_)return 0;var o=this.el_.style[r],s=o.indexOf("px");return parseInt(s!==-1?o.slice(0,s):this.el_["offset"+Zn(r)],10)},t.currentDimension=function(r){var a=0;if(r!=="width"&&r!=="height")throw new Error("currentDimension only accepts width or height value");if(a=Kf(this.el_,r),a=parseFloat(a),a===0||isNaN(a)){var i="offset"+Zn(r);a=this.el_[i]}return a},t.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},t.currentWidth=function(){return this.currentDimension("width")},t.currentHeight=function(){return this.currentDimension("height")},t.focus=function(){this.el_.focus()},t.blur=function(){this.el_.blur()},t.handleKeyDown=function(r){this.player_&&(Jt.isEventKey(r,"Tab")||r.stopPropagation(),this.player_.handleKeyDown(r))},t.handleKeyPress=function(r){this.handleKeyDown(r)},t.emitTapEvents=function(){var r=0,a=null,i=10,o=200,s;this.on("touchstart",function(u){u.touches.length===1&&(a={pageX:u.touches[0].pageX,pageY:u.touches[0].pageY},r=Te.performance.now(),s=!0)}),this.on("touchmove",function(u){if(u.touches.length>1)s=!1;else if(a){var c=u.touches[0].pageX-a.pageX,d=u.touches[0].pageY-a.pageY,p=Math.sqrt(c*c+d*d);p>i&&(s=!1)}});var l=function(){s=!1};this.on("touchleave",l),this.on("touchcancel",l),this.on("touchend",function(u){if(a=null,s===!0){var c=Te.performance.now()-r;c<o&&(u.preventDefault(),this.trigger("tap"))}})},t.enableTouchActivity=function(){if(!(!this.player()||!this.player().reportUserActivity)){var r=Hn(this.player(),this.player().reportUserActivity),a;this.on("touchstart",function(){r(),this.clearInterval(a),a=this.setInterval(r,250)});var i=function(s){r(),this.clearInterval(a)};this.on("touchmove",r),this.on("touchend",i),this.on("touchcancel",i)}},t.setTimeout=function(r,a){var i=this,o;return r=Hn(this,r),this.clearTimersOnDispose_(),o=Te.setTimeout(function(){i.setTimeoutIds_.has(o)&&i.setTimeoutIds_.delete(o),r()},a),this.setTimeoutIds_.add(o),o},t.clearTimeout=function(r){return this.setTimeoutIds_.has(r)&&(this.setTimeoutIds_.delete(r),Te.clearTimeout(r)),r},t.setInterval=function(r,a){r=Hn(this,r),this.clearTimersOnDispose_();var i=Te.setInterval(r,a);return this.setIntervalIds_.add(i),i},t.clearInterval=function(r){return this.setIntervalIds_.has(r)&&(this.setIntervalIds_.delete(r),Te.clearInterval(r)),r},t.requestAnimationFrame=function(r){var a=this;if(!this.supportsRaf_)return this.setTimeout(r,1e3/60);this.clearTimersOnDispose_();var i;return r=Hn(this,r),i=Te.requestAnimationFrame(function(){a.rafIds_.has(i)&&a.rafIds_.delete(i),r()}),this.rafIds_.add(i),i},t.requestNamedAnimationFrame=function(r,a){var i=this;if(!this.namedRafs_.has(r)){this.clearTimersOnDispose_(),a=Hn(this,a);var o=this.requestAnimationFrame(function(){a(),i.namedRafs_.has(r)&&i.namedRafs_.delete(r)});return this.namedRafs_.set(r,o),r}},t.cancelNamedAnimationFrame=function(r){this.namedRafs_.has(r)&&(this.cancelAnimationFrame(this.namedRafs_.get(r)),this.namedRafs_.delete(r))},t.cancelAnimationFrame=function(r){return this.supportsRaf_?(this.rafIds_.has(r)&&(this.rafIds_.delete(r),Te.cancelAnimationFrame(r)),r):this.clearTimeout(r)},t.clearTimersOnDispose_=function(){var r=this;this.clearingTimersOnDispose_||(this.clearingTimersOnDispose_=!0,this.one("dispose",function(){[["namedRafs_","cancelNamedAnimationFrame"],["rafIds_","cancelAnimationFrame"],["setTimeoutIds_","clearTimeout"],["setIntervalIds_","clearInterval"]].forEach(function(a){var i=a[0],o=a[1];r[i].forEach(function(s,l){return r[o](l)})}),r.clearingTimersOnDispose_=!1}))},e.registerComponent=function(r,a){if(typeof r!="string"||!r)throw new Error('Illegal component name, "'+r+'"; must be a non-empty string.');var i=e.getComponent("Tech"),o=i&&i.isTech(a),s=e===a||e.prototype.isPrototypeOf(a.prototype);if(o||!s){var l;throw o?l="techs must be registered using Tech.registerTech()":l="must be a Component subclass",new Error('Illegal component, "'+r+'"; '+l+".")}r=Zn(r),e.components_||(e.components_={});var u=e.getComponent("Player");if(r==="Player"&&u&&u.players){var c=u.players,d=Object.keys(c);if(c&&d.length>0&&d.map(function(p){return c[p]}).every(Boolean))throw new Error("Can not register Player component after player has been created.")}return e.components_[r]=a,e.components_[rm(r)]=a,a},e.getComponent=function(r){if(!(!r||!e.components_))return e.components_[r]},e}();ut.prototype.supportsRaf_=typeof Te.requestAnimationFrame=="function"&&typeof Te.cancelAnimationFrame=="function";ut.registerComponent("Component",ut);function $be(e,t,n){if(typeof t!="number"||t<0||t>n)throw new Error("Failed to execute '"+e+"' on 'TimeRanges': The index provided ("+t+") is non-numeric or out of bounds (0-"+n+").")}function yk(e,t,n,r){return $be(e,r,n.length-1),n[r][t]}function W0(e){var t;return e===void 0||e.length===0?t={length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:t={length:e.length,start:yk.bind(null,"start",0,e),end:yk.bind(null,"end",1,e)},Te.Symbol&&Te.Symbol.iterator&&(t[Te.Symbol.iterator]=function(){return(e||[]).values()}),t}function Al(e,t){return Array.isArray(e)?W0(e):e===void 0||t===void 0?W0():W0([[e,t]])}function vL(e,t){var n=0,r,a;if(!t)return 0;(!e||!e.length)&&(e=Al(0,0));for(var i=0;i<e.length;i++)r=e.start(i),a=e.end(i),a>t&&(a=t),n+=a-r;return n/t}function aa(e){if(e instanceof aa)return e;typeof e=="number"?this.code=e:typeof e=="string"?this.message=e:Xo(e)&&(typeof e.code=="number"&&(this.code=e.code),Yn(this,e)),this.message||(this.message=aa.defaultMessages[this.code]||"")}aa.prototype.code=0;aa.prototype.message="";aa.prototype.status=null;aa.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"];aa.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail part-way.",3:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.",4:"The media could not be loaded, either because the server or network failed or because the format is not supported.",5:"The media is encrypted and we do not have the keys to decrypt it."};for(var vu=0;vu<aa.errorTypes.length;vu++)aa[aa.errorTypes[vu]]=vu,aa.prototype[aa.errorTypes[vu]]=vu;function ef(e){return e!=null&&typeof e.then=="function"}function qi(e){ef(e)&&e.then(null,function(t){})}var n_=function(t){var n=["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce(function(r,a,i){return t[a]&&(r[a]=t[a]),r},{cues:t.cues&&Array.prototype.map.call(t.cues,function(r){return{startTime:r.startTime,endTime:r.endTime,text:r.text,id:r.id}})});return n},Bbe=function(t){var n=t.$$("track"),r=Array.prototype.map.call(n,function(i){return i.track}),a=Array.prototype.map.call(n,function(i){var o=n_(i.track);return i.src&&(o.src=i.src),o});return a.concat(Array.prototype.filter.call(t.textTracks(),function(i){return r.indexOf(i)===-1}).map(n_))},Vbe=function(t,n){return t.forEach(function(r){var a=n.addRemoteTextTrack(r).track;!r.src&&r.cues&&r.cues.forEach(function(i){return a.addCue(i)})}),n.textTracks()},bk={textTracksToJson:Bbe,jsonToTextTracks:Vbe,trackToJson_:n_},K0="vjs-modal-dialog",Yc=function(e){Tt(t,e);function t(r,a){var i;return i=e.call(this,r,a)||this,i.handleKeyDown_=function(o){return i.handleKeyDown(o)},i.close_=function(o){return i.close(o)},i.opened_=i.hasBeenOpened_=i.hasBeenFilled_=!1,i.closeable(!i.options_.uncloseable),i.content(i.options_.content),i.contentEl_=gn("div",{className:K0+"-content"},{role:"document"}),i.descEl_=gn("p",{className:K0+"-description vjs-control-text",id:i.el().getAttribute("aria-describedby")}),Ql(i.descEl_,i.description()),i.el_.appendChild(i.descEl_),i.el_.appendChild(i.contentEl_),i}var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"_description","aria-hidden":"true","aria-label":this.label(),role:"dialog"})},n.dispose=function(){this.contentEl_=null,this.descEl_=null,this.previouslyActiveEl_=null,e.prototype.dispose.call(this)},n.buildCSSClass=function(){return K0+" vjs-hidden "+e.prototype.buildCSSClass.call(this)},n.label=function(){return this.localize(this.options_.label||"Modal Window")},n.description=function(){var a=this.options_.description||this.localize("This is a modal window.");return this.closeable()&&(a+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),a},n.open=function(){if(!this.opened_){var a=this.player();this.trigger("beforemodalopen"),this.opened_=!0,(this.options_.fillAlways||!this.hasBeenOpened_&&!this.hasBeenFilled_)&&this.fill(),this.wasPlaying_=!a.paused(),this.options_.pauseOnOpen&&this.wasPlaying_&&a.pause(),this.on("keydown",this.handleKeyDown_),this.hadControls_=a.controls(),a.controls(!1),this.show(),this.conditionalFocus_(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0}},n.opened=function(a){return typeof a=="boolean"&&this[a?"open":"close"](),this.opened_},n.close=function(){if(this.opened_){var a=this.player();this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&&this.options_.pauseOnOpen&&a.play(),this.off("keydown",this.handleKeyDown_),this.hadControls_&&a.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger("modalclose"),this.conditionalBlur_(),this.options_.temporary&&this.dispose()}},n.closeable=function(a){if(typeof a=="boolean"){var i=this.closeable_=!!a,o=this.getChild("closeButton");if(i&&!o){var s=this.contentEl_;this.contentEl_=this.el_,o=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.contentEl_=s,this.on(o,"close",this.close_)}!i&&o&&(this.off(o,"close",this.close_),this.removeChild(o),o.dispose())}return this.closeable_},n.fill=function(){this.fillWith(this.content())},n.fillWith=function(a){var i=this.contentEl(),o=i.parentNode,s=i.nextSibling;this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,o.removeChild(i),this.empty(),iL(i,a),this.trigger("modalfill"),s?o.insertBefore(i,s):o.appendChild(i);var l=this.getChild("closeButton");l&&o.appendChild(l.el_)},n.empty=function(){this.trigger("beforemodalempty"),bT(this.contentEl()),this.trigger("modalempty")},n.content=function(a){return typeof a<"u"&&(this.content_=a),this.content_},n.conditionalFocus_=function(){var a=vt.activeElement,i=this.player_.el_;this.previouslyActiveEl_=null,(i.contains(a)||i===a)&&(this.previouslyActiveEl_=a,this.focus())},n.conditionalBlur_=function(){this.previouslyActiveEl_&&(this.previouslyActiveEl_.focus(),this.previouslyActiveEl_=null)},n.handleKeyDown=function(a){if(a.stopPropagation(),Jt.isEventKey(a,"Escape")&&this.closeable()){a.preventDefault(),this.close();return}if(Jt.isEventKey(a,"Tab")){for(var i=this.focusableEls_(),o=this.el_.querySelector(":focus"),s,l=0;l<i.length;l++)if(o===i[l]){s=l;break}vt.activeElement===this.el_&&(s=0),a.shiftKey&&s===0?(i[i.length-1].focus(),a.preventDefault()):!a.shiftKey&&s===i.length-1&&(i[0].focus(),a.preventDefault())}},n.focusableEls_=function(){var a=this.el_.querySelectorAll("*");return Array.prototype.filter.call(a,function(i){return(i instanceof Te.HTMLAnchorElement||i instanceof Te.HTMLAreaElement)&&i.hasAttribute("href")||(i instanceof Te.HTMLInputElement||i instanceof Te.HTMLSelectElement||i instanceof Te.HTMLTextAreaElement||i instanceof Te.HTMLButtonElement)&&!i.hasAttribute("disabled")||i instanceof Te.HTMLIFrameElement||i instanceof Te.HTMLObjectElement||i instanceof Te.HTMLEmbedElement||i.hasAttribute("tabindex")&&i.getAttribute("tabindex")!==-1||i.hasAttribute("contenteditable")})},t}(ut);Yc.prototype.options_={pauseOnOpen:!0,temporary:!0};ut.registerComponent("ModalDialog",Yc);var Sc=function(e){Tt(t,e);function t(r){var a;r===void 0&&(r=[]),a=e.call(this)||this,a.tracks_=[],Object.defineProperty(Qt(a),"length",{get:function(){return this.tracks_.length}});for(var i=0;i<r.length;i++)a.addTrack(r[i]);return a}var n=t.prototype;return n.addTrack=function(a){var i=this,o=this.tracks_.length;""+o in this||Object.defineProperty(this,o,{get:function(){return this.tracks_[o]}}),this.tracks_.indexOf(a)===-1&&(this.tracks_.push(a),this.trigger({track:a,type:"addtrack",target:this})),a.labelchange_=function(){i.trigger({track:a,type:"labelchange",target:i})},Uo(a)&&a.addEventListener("labelchange",a.labelchange_)},n.removeTrack=function(a){for(var i,o=0,s=this.length;o<s;o++)if(this[o]===a){i=this[o],i.off&&i.off(),this.tracks_.splice(o,1);break}i&&this.trigger({track:i,type:"removetrack",target:this})},n.getTrackById=function(a){for(var i=null,o=0,s=this.length;o<s;o++){var l=this[o];if(l.id===a){i=l;break}}return i},t}(Cr);Sc.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack",labelchange:"labelchange"};for(var Ube in Sc.prototype.allowedEvents_)Sc.prototype["on"+Ube]=null;var q0=function(t,n){for(var r=0;r<t.length;r++)!Object.keys(t[r]).length||n.id===t[r].id||(t[r].enabled=!1)},Hbe=function(e){Tt(t,e);function t(r){var a;r===void 0&&(r=[]);for(var i=r.length-1;i>=0;i--)if(r[i].enabled){q0(r,r[i]);break}return a=e.call(this,r)||this,a.changing_=!1,a}var n=t.prototype;return n.addTrack=function(a){var i=this;a.enabled&&q0(this,a),e.prototype.addTrack.call(this,a),a.addEventListener&&(a.enabledChange_=function(){i.changing_||(i.changing_=!0,q0(i,a),i.changing_=!1,i.trigger("change"))},a.addEventListener("enabledchange",a.enabledChange_))},n.removeTrack=function(a){e.prototype.removeTrack.call(this,a),a.removeEventListener&&a.enabledChange_&&(a.removeEventListener("enabledchange",a.enabledChange_),a.enabledChange_=null)},t}(Sc),G0=function(t,n){for(var r=0;r<t.length;r++)!Object.keys(t[r]).length||n.id===t[r].id||(t[r].selected=!1)},zbe=function(e){Tt(t,e);function t(r){var a;r===void 0&&(r=[]);for(var i=r.length-1;i>=0;i--)if(r[i].selected){G0(r,r[i]);break}return a=e.call(this,r)||this,a.changing_=!1,Object.defineProperty(Qt(a),"selectedIndex",{get:function(){for(var s=0;s<this.length;s++)if(this[s].selected)return s;return-1},set:function(){}}),a}var n=t.prototype;return n.addTrack=function(a){var i=this;a.selected&&G0(this,a),e.prototype.addTrack.call(this,a),a.addEventListener&&(a.selectedChange_=function(){i.changing_||(i.changing_=!0,G0(i,a),i.changing_=!1,i.trigger("change"))},a.addEventListener("selectedchange",a.selectedChange_))},n.removeTrack=function(a){e.prototype.removeTrack.call(this,a),a.removeEventListener&&a.selectedChange_&&(a.removeEventListener("selectedchange",a.selectedChange_),a.selectedChange_=null)},t}(Sc),gL=function(e){Tt(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.addTrack=function(a){var i=this;e.prototype.addTrack.call(this,a),this.queueChange_||(this.queueChange_=function(){return i.queueTrigger("change")}),this.triggerSelectedlanguagechange||(this.triggerSelectedlanguagechange_=function(){return i.trigger("selectedlanguagechange")}),a.addEventListener("modechange",this.queueChange_);var o=["metadata","chapters"];o.indexOf(a.kind)===-1&&a.addEventListener("modechange",this.triggerSelectedlanguagechange_)},n.removeTrack=function(a){e.prototype.removeTrack.call(this,a),a.removeEventListener&&(this.queueChange_&&a.removeEventListener("modechange",this.queueChange_),this.selectedlanguagechange_&&a.removeEventListener("modechange",this.triggerSelectedlanguagechange_))},t}(Sc),jbe=function(){function e(n){n===void 0&&(n=[]),this.trackElements_=[],Object.defineProperty(this,"length",{get:function(){return this.trackElements_.length}});for(var r=0,a=n.length;r<a;r++)this.addTrackElement_(n[r])}var t=e.prototype;return t.addTrackElement_=function(r){var a=this.trackElements_.length;""+a in this||Object.defineProperty(this,a,{get:function(){return this.trackElements_[a]}}),this.trackElements_.indexOf(r)===-1&&this.trackElements_.push(r)},t.getTrackElementByTrack_=function(r){for(var a,i=0,o=this.trackElements_.length;i<o;i++)if(r===this.trackElements_[i].track){a=this.trackElements_[i];break}return a},t.removeTrackElement_=function(r){for(var a=0,i=this.trackElements_.length;a<i;a++)if(r===this.trackElements_[a]){this.trackElements_[a].track&&typeof this.trackElements_[a].track.off=="function"&&this.trackElements_[a].track.off(),typeof this.trackElements_[a].off=="function"&&this.trackElements_[a].off(),this.trackElements_.splice(a,1);break}},e}(),_k=function(){function e(n){e.prototype.setCues_.call(this,n),Object.defineProperty(this,"length",{get:function(){return this.length_}})}var t=e.prototype;return t.setCues_=function(r){var a=this.length||0,i=0,o=r.length;this.cues_=r,this.length_=r.length;var s=function(u){""+u in this||Object.defineProperty(this,""+u,{get:function(){return this.cues_[u]}})};if(a<o)for(i=a;i<o;i++)s.call(this,i)},t.getCueById=function(r){for(var a=null,i=0,o=this.length;i<o;i++){var s=this[i];if(s.id===r){a=s;break}}return a},e}(),Wbe={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},Kbe={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},qbe={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},Tk={disabled:"disabled",hidden:"hidden",showing:"showing"},ST=function(e){Tt(t,e);function t(n){var r;n===void 0&&(n={}),r=e.call(this)||this;var a={id:n.id||"vjs_track_"+ls(),kind:n.kind||"",language:n.language||""},i=n.label||"",o=function(u){Object.defineProperty(Qt(r),u,{get:function(){return a[u]},set:function(){}})};for(var s in a)o(s);return Object.defineProperty(Qt(r),"label",{get:function(){return i},set:function(u){u!==i&&(i=u,this.trigger("labelchange"))}}),r}return t}(Cr),CT=function(t){var n=["protocol","hostname","port","pathname","search","hash","host"],r=vt.createElement("a");r.href=t;for(var a={},i=0;i<n.length;i++)a[n[i]]=r[n[i]];return a.protocol==="http:"&&(a.host=a.host.replace(/:80$/,"")),a.protocol==="https:"&&(a.host=a.host.replace(/:443$/,"")),a.protocol||(a.protocol=Te.location.protocol),a.host||(a.host=Te.location.host),a},yL=function(t){if(!t.match(/^https?:\/\//)){var n=vt.createElement("a");n.href=t,t=n.href}return t},ET=function(t){if(typeof t=="string"){var n=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/,r=n.exec(t);if(r)return r.pop().toLowerCase()}return""},Ag=function(t,n){n===void 0&&(n=Te.location);var r=CT(t),a=r.protocol===":"?n.protocol:r.protocol,i=a+r.host!==n.protocol+n.host;return i},Gbe=Object.freeze({__proto__:null,parseUrl:CT,getAbsoluteURL:yL,getFileExtension:ET,isCrossOrigin:Ag}),wk=function(t,n){var r=new Te.WebVTT.Parser(Te,Te.vttjs,Te.WebVTT.StringDecoder()),a=[];r.oncue=function(i){n.addCue(i)},r.onparsingerror=function(i){a.push(i)},r.onflush=function(){n.trigger({type:"loadeddata",target:n})},r.parse(t),a.length>0&&(Te.console&&Te.console.groupCollapsed&&Te.console.groupCollapsed("Text Track parsing errors for "+n.src),a.forEach(function(i){return on.error(i)}),Te.console&&Te.console.groupEnd&&Te.console.groupEnd()),r.flush()},Sk=function(t,n){var r={uri:t},a=Ag(t);a&&(r.cors=a);var i=n.tech_.crossOrigin()==="use-credentials";i&&(r.withCredentials=i),VM(r,Hn(this,function(o,s,l){if(o)return on.error(o,s);n.loaded_=!0,typeof Te.WebVTT!="function"?n.tech_&&n.tech_.any(["vttjsloaded","vttjserror"],function(u){if(u.type==="vttjserror"){on.error("vttjs failed to load, stopping trying to process "+n.src);return}return wk(l,n)}):wk(l,n)}))},Pp=function(e){Tt(t,e);function t(r){var a;if(r===void 0&&(r={}),!r.tech)throw new Error("A tech was not provided.");var i=Un(r,{kind:qbe[r.kind]||"subtitles",language:r.language||r.srclang||""}),o=Tk[i.mode]||"disabled",s=i.default;(i.kind==="metadata"||i.kind==="chapters")&&(o="hidden"),a=e.call(this,i)||this,a.tech_=i.tech,a.cues_=[],a.activeCues_=[],a.preload_=a.tech_.preloadTextTracks!==!1;var l=new _k(a.cues_),u=new _k(a.activeCues_),c=!1;a.timeupdateHandler=Hn(Qt(a),function(p){if(p===void 0&&(p={}),!this.tech_.isDisposed()){if(!this.tech_.isReady_){p.type!=="timeupdate"&&(this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler));return}this.activeCues=this.activeCues,c&&(this.trigger("cuechange"),c=!1),p.type!=="timeupdate"&&(this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler))}});var d=function(){a.stopTracking()};return a.tech_.one("dispose",d),o!=="disabled"&&a.startTracking(),Object.defineProperties(Qt(a),{default:{get:function(){return s},set:function(){}},mode:{get:function(){return o},set:function(h){Tk[h]&&o!==h&&(o=h,!this.preload_&&o!=="disabled"&&this.cues.length===0&&Sk(this.src,this),this.stopTracking(),o!=="disabled"&&this.startTracking(),this.trigger("modechange"))}},cues:{get:function(){return this.loaded_?l:null},set:function(){}},activeCues:{get:function(){if(!this.loaded_)return null;if(this.cues.length===0)return u;for(var h=this.tech_.currentTime(),v=[],m=0,g=this.cues.length;m<g;m++){var y=this.cues[m];(y.startTime<=h&&y.endTime>=h||y.startTime===y.endTime&&y.startTime<=h&&y.startTime+.5>=h)&&v.push(y)}if(c=!1,v.length!==this.activeCues_.length)c=!0;else for(var T=0;T<v.length;T++)this.activeCues_.indexOf(v[T])===-1&&(c=!0);return this.activeCues_=v,u.setCues_(this.activeCues_),u},set:function(){}}}),i.src?(a.src=i.src,a.preload_||(a.loaded_=!0),(a.preload_||i.kind!=="subtitles"&&i.kind!=="captions")&&Sk(a.src,Qt(a))):a.loaded_=!0,a}var n=t.prototype;return n.startTracking=function(){this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler),this.tech_.on("timeupdate",this.timeupdateHandler)},n.stopTracking=function(){this.rvf_&&(this.tech_.cancelVideoFrameCallback(this.rvf_),this.rvf_=void 0),this.tech_.off("timeupdate",this.timeupdateHandler)},n.addCue=function(a){var i=a;if(!("getCueAsHTML"in i)){i=new Te.vttjs.VTTCue(a.startTime,a.endTime,a.text);for(var o in a)o in i||(i[o]=a[o]);i.id=a.id,i.originalCue_=a}for(var s=this.tech_.textTracks(),l=0;l<s.length;l++)s[l]!==this&&s[l].removeCue(i);this.cues_.push(i),this.cues.setCues_(this.cues_)},n.removeCue=function(a){for(var i=this.cues_.length;i--;){var o=this.cues_[i];if(o===a||o.originalCue_&&o.originalCue_===a){this.cues_.splice(i,1),this.cues.setCues_(this.cues_);break}}},t}(ST);Pp.prototype.allowedEvents_={cuechange:"cuechange"};var bL=function(e){Tt(t,e);function t(n){var r;n===void 0&&(n={});var a=Un(n,{kind:Kbe[n.kind]||""});r=e.call(this,a)||this;var i=!1;return Object.defineProperty(Qt(r),"enabled",{get:function(){return i},set:function(s){typeof s!="boolean"||s===i||(i=s,this.trigger("enabledchange"))}}),a.enabled&&(r.enabled=a.enabled),r.loaded_=!0,r}return t}(ST),_L=function(e){Tt(t,e);function t(n){var r;n===void 0&&(n={});var a=Un(n,{kind:Wbe[n.kind]||""});r=e.call(this,a)||this;var i=!1;return Object.defineProperty(Qt(r),"selected",{get:function(){return i},set:function(s){typeof s!="boolean"||s===i||(i=s,this.trigger("selectedchange"))}}),a.selected&&(r.selected=a.selected),r}return t}(ST),TL=0,Ybe=1,wL=2,Xbe=3,Xc=function(e){Tt(t,e);function t(n){var r;n===void 0&&(n={}),r=e.call(this)||this;var a,i=new Pp(n);return r.kind=i.kind,r.src=i.src,r.srclang=i.language,r.label=i.label,r.default=i.default,Object.defineProperties(Qt(r),{readyState:{get:function(){return a}},track:{get:function(){return i}}}),a=TL,i.addEventListener("loadeddata",function(){a=wL,r.trigger({type:"load",target:Qt(r)})}),r}return t}(Cr);Xc.prototype.allowedEvents_={load:"load"};Xc.NONE=TL;Xc.LOADING=Ybe;Xc.LOADED=wL;Xc.ERROR=Xbe;var Za={audio:{ListClass:Hbe,TrackClass:bL,capitalName:"Audio"},video:{ListClass:zbe,TrackClass:_L,capitalName:"Video"},text:{ListClass:gL,TrackClass:Pp,capitalName:"Text"}};Object.keys(Za).forEach(function(e){Za[e].getterName=e+"Tracks",Za[e].privateName=e+"Tracks_"});var Cc={remoteText:{ListClass:gL,TrackClass:Pp,capitalName:"RemoteText",getterName:"remoteTextTracks",privateName:"remoteTextTracks_"},remoteTextEl:{ListClass:jbe,TrackClass:Xc,capitalName:"RemoteTextTrackEls",getterName:"remoteTextTrackEls",privateName:"remoteTextTrackEls_"}},Zr=oi({},Za,Cc);Cc.names=Object.keys(Cc);Za.names=Object.keys(Za);Zr.names=[].concat(Cc.names).concat(Za.names);function Qbe(e,t,n,r,a){a===void 0&&(a={});var i=e.textTracks();a.kind=t,n&&(a.label=n),r&&(a.language=r),a.tech=e;var o=new Zr.text.TrackClass(a);return i.addTrack(o),o}var Rn=function(e){Tt(t,e);function t(r,a){var i;return r===void 0&&(r={}),a===void 0&&(a=function(){}),r.reportTouchActivity=!1,i=e.call(this,null,r,a)||this,i.onDurationChange_=function(o){return i.onDurationChange(o)},i.trackProgress_=function(o){return i.trackProgress(o)},i.trackCurrentTime_=function(o){return i.trackCurrentTime(o)},i.stopTrackingCurrentTime_=function(o){return i.stopTrackingCurrentTime(o)},i.disposeSourceHandler_=function(o){return i.disposeSourceHandler(o)},i.queuedHanders_=new Set,i.hasStarted_=!1,i.on("playing",function(){this.hasStarted_=!0}),i.on("loadstart",function(){this.hasStarted_=!1}),Zr.names.forEach(function(o){var s=Zr[o];r&&r[s.getterName]&&(i[s.privateName]=r[s.getterName])}),i.featuresProgressEvents||i.manualProgressOn(),i.featuresTimeupdateEvents||i.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach(function(o){r["native"+o+"Tracks"]===!1&&(i["featuresNative"+o+"Tracks"]=!1)}),r.nativeCaptions===!1||r.nativeTextTracks===!1?i.featuresNativeTextTracks=!1:(r.nativeCaptions===!0||r.nativeTextTracks===!0)&&(i.featuresNativeTextTracks=!0),i.featuresNativeTextTracks||i.emulateTextTracks(),i.preloadTextTracks=r.preloadTextTracks!==!1,i.autoRemoteTextTracks_=new Zr.text.ListClass,i.initTrackListeners(),r.nativeControlsForTouch||i.emitTapEvents(),i.constructor&&(i.name_=i.constructor.name||"Unknown Tech"),i}var n=t.prototype;return n.triggerSourceset=function(a){var i=this;this.isReady_||this.one("ready",function(){return i.setTimeout(function(){return i.triggerSourceset(a)},1)}),this.trigger({src:a,type:"sourceset"})},n.manualProgressOn=function(){this.on("durationchange",this.onDurationChange_),this.manualProgress=!0,this.one("ready",this.trackProgress_)},n.manualProgressOff=function(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange_)},n.trackProgress=function(a){this.stopTrackingProgress(),this.progressInterval=this.setInterval(Hn(this,function(){var i=this.bufferedPercent();this.bufferedPercent_!==i&&this.trigger("progress"),this.bufferedPercent_=i,i===1&&this.stopTrackingProgress()}),500)},n.onDurationChange=function(a){this.duration_=this.duration()},n.buffered=function(){return Al(0,0)},n.bufferedPercent=function(){return vL(this.buffered(),this.duration_)},n.stopTrackingProgress=function(){this.clearInterval(this.progressInterval)},n.manualTimeUpdatesOn=function(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime_),this.on("pause",this.stopTrackingCurrentTime_)},n.manualTimeUpdatesOff=function(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime_),this.off("pause",this.stopTrackingCurrentTime_)},n.trackCurrentTime=function(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval(function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},250)},n.stopTrackingCurrentTime=function(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},n.dispose=function(){this.clearTracks(Za.names),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),e.prototype.dispose.call(this)},n.clearTracks=function(a){var i=this;a=[].concat(a),a.forEach(function(o){for(var s=i[o+"Tracks"]()||[],l=s.length;l--;){var u=s[l];o==="text"&&i.removeRemoteTextTrack(u),s.removeTrack(u)}})},n.cleanupAutoTextTracks=function(){for(var a=this.autoRemoteTextTracks_||[],i=a.length;i--;){var o=a[i];this.removeRemoteTextTrack(o)}},n.reset=function(){},n.crossOrigin=function(){},n.setCrossOrigin=function(){},n.error=function(a){return a!==void 0&&(this.error_=new aa(a),this.trigger("error")),this.error_},n.played=function(){return this.hasStarted_?Al(0,0):Al()},n.play=function(){},n.setScrubbing=function(){},n.scrubbing=function(){},n.setCurrentTime=function(){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},n.initTrackListeners=function(){var a=this;Za.names.forEach(function(i){var o=Za[i],s=function(){a.trigger(i+"trackchange")},l=a[o.getterName]();l.addEventListener("removetrack",s),l.addEventListener("addtrack",s),a.on("dispose",function(){l.removeEventListener("removetrack",s),l.removeEventListener("addtrack",s)})})},n.addWebVttScript_=function(){var a=this;if(!Te.WebVTT)if(vt.body.contains(this.el())){if(!this.options_["vtt.js"]&&Wf($x)&&Object.keys($x).length>0){this.trigger("vttjsloaded");return}var i=vt.createElement("script");i.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.14.1/vtt.min.js",i.onload=function(){a.trigger("vttjsloaded")},i.onerror=function(){a.trigger("vttjserror")},this.on("dispose",function(){i.onload=null,i.onerror=null}),Te.WebVTT=!0,this.el().parentNode.appendChild(i)}else this.ready(this.addWebVttScript_)},n.emulateTextTracks=function(){var a=this,i=this.textTracks(),o=this.remoteTextTracks(),s=function(p){return i.addTrack(p.track)},l=function(p){return i.removeTrack(p.track)};o.on("addtrack",s),o.on("removetrack",l),this.addWebVttScript_();var u=function(){return a.trigger("texttrackchange")},c=function(){u();for(var p=0;p<i.length;p++){var h=i[p];h.removeEventListener("cuechange",u),h.mode==="showing"&&h.addEventListener("cuechange",u)}};c(),i.addEventListener("change",c),i.addEventListener("addtrack",c),i.addEventListener("removetrack",c),this.on("dispose",function(){o.off("addtrack",s),o.off("removetrack",l),i.removeEventListener("change",c),i.removeEventListener("addtrack",c),i.removeEventListener("removetrack",c);for(var d=0;d<i.length;d++){var p=i[d];p.removeEventListener("cuechange",u)}})},n.addTextTrack=function(a,i,o){if(!a)throw new Error("TextTrack kind is required but was not provided");return Qbe(this,a,i,o)},n.createRemoteTextTrack=function(a){var i=Un(a,{tech:this});return new Cc.remoteTextEl.TrackClass(i)},n.addRemoteTextTrack=function(a,i){var o=this;a===void 0&&(a={});var s=this.createRemoteTextTrack(a);return i!==!0&&i!==!1&&(on.warn('Calling addRemoteTextTrack without explicitly setting the "manualCleanup" parameter to `true` is deprecated and default to `false` in future version of video.js'),i=!0),this.remoteTextTrackEls().addTrackElement_(s),this.remoteTextTracks().addTrack(s.track),i!==!0&&this.ready(function(){return o.autoRemoteTextTracks_.addTrack(s.track)}),s},n.removeRemoteTextTrack=function(a){var i=this.remoteTextTrackEls().getTrackElementByTrack_(a);this.remoteTextTrackEls().removeTrackElement_(i),this.remoteTextTracks().removeTrack(a),this.autoRemoteTextTracks_.removeTrack(a)},n.getVideoPlaybackQuality=function(){return{}},n.requestPictureInPicture=function(){var a=this.options_.Promise||Te.Promise;if(a)return a.reject()},n.disablePictureInPicture=function(){return!0},n.setDisablePictureInPicture=function(){},n.requestVideoFrameCallback=function(a){var i=this,o=ls();return!this.isReady_||this.paused()?(this.queuedHanders_.add(o),this.one("playing",function(){i.queuedHanders_.has(o)&&(i.queuedHanders_.delete(o),a())})):this.requestNamedAnimationFrame(o,a),o},n.cancelVideoFrameCallback=function(a){this.queuedHanders_.has(a)?this.queuedHanders_.delete(a):this.cancelNamedAnimationFrame(a)},n.setPoster=function(){},n.playsinline=function(){},n.setPlaysinline=function(){},n.overrideNativeAudioTracks=function(){},n.overrideNativeVideoTracks=function(){},n.canPlayType=function(){return""},t.canPlayType=function(){return""},t.canPlaySource=function(a,i){return t.canPlayType(a.type)},t.isTech=function(a){return a.prototype instanceof t||a instanceof t||a===t},t.registerTech=function(a,i){if(t.techs_||(t.techs_={}),!t.isTech(i))throw new Error("Tech "+a+" must be a Tech");if(!t.canPlayType)throw new Error("Techs must have a static canPlayType method on them");if(!t.canPlaySource)throw new Error("Techs must have a static canPlaySource method on them");return a=Zn(a),t.techs_[a]=i,t.techs_[rm(a)]=i,a!=="Tech"&&t.defaultTechOrder_.push(a),i},t.getTech=function(a){if(a){if(t.techs_&&t.techs_[a])return t.techs_[a];if(a=Zn(a),Te&&Te.videojs&&Te.videojs[a])return on.warn("The "+a+" tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)"),Te.videojs[a]}},t}(ut);Zr.names.forEach(function(e){var t=Zr[e];Rn.prototype[t.getterName]=function(){return this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName]}});Rn.prototype.featuresVolumeControl=!0;Rn.prototype.featuresMuteControl=!0;Rn.prototype.featuresFullscreenResize=!1;Rn.prototype.featuresPlaybackRate=!1;Rn.prototype.featuresProgressEvents=!1;Rn.prototype.featuresSourceset=!1;Rn.prototype.featuresTimeupdateEvents=!1;Rn.prototype.featuresNativeTextTracks=!1;Rn.prototype.featuresVideoFrameCallback=!1;Rn.withSourceHandlers=function(e){e.registerSourceHandler=function(n,r){var a=e.sourceHandlers;a||(a=e.sourceHandlers=[]),r===void 0&&(r=a.length),a.splice(r,0,n)},e.canPlayType=function(n){for(var r=e.sourceHandlers||[],a,i=0;i<r.length;i++)if(a=r[i].canPlayType(n),a)return a;return""},e.selectSourceHandler=function(n,r){for(var a=e.sourceHandlers||[],i,o=0;o<a.length;o++)if(i=a[o].canHandleSource(n,r),i)return a[o];return null},e.canPlaySource=function(n,r){var a=e.selectSourceHandler(n,r);return a?a.canHandleSource(n,r):""};var t=["seekable","seeking","duration"];t.forEach(function(n){var r=this[n];typeof r=="function"&&(this[n]=function(){return this.sourceHandler_&&this.sourceHandler_[n]?this.sourceHandler_[n].apply(this.sourceHandler_,arguments):r.apply(this,arguments)})},e.prototype),e.prototype.setSource=function(n){var r=e.selectSourceHandler(n,this.options_);r||(e.nativeSourceHandler?r=e.nativeSourceHandler:on.error("No source handler found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler_),r!==e.nativeSourceHandler&&(this.currentSource_=n),this.sourceHandler_=r.handleSource(n,this,this.options_),this.one("dispose",this.disposeSourceHandler_)},e.prototype.disposeSourceHandler=function(){this.currentSource_&&(this.clearTracks(["audio","video"]),this.currentSource_=null),this.cleanupAutoTextTracks(),this.sourceHandler_&&(this.sourceHandler_.dispose&&this.sourceHandler_.dispose(),this.sourceHandler_=null)}};ut.registerComponent("Tech",Rn);Rn.registerTech("Tech",Rn);Rn.defaultTechOrder_=[];var Dl={},r_={},Jm={};function Jbe(e,t){Dl[e]=Dl[e]||[],Dl[e].push(t)}function Zbe(e,t,n){e.setTimeout(function(){return ul(t,Dl[t.type],n,e)},1)}function e_e(e,t){e.forEach(function(n){return n.setTech&&n.setTech(t)})}function t_e(e,t,n){return e.reduceRight(xT(n),t[n]())}function n_e(e,t,n,r){return t[n](e.reduce(xT(n),r))}function Ck(e,t,n,r){r===void 0&&(r=null);var a="call"+Zn(n),i=e.reduce(xT(a),r),o=i===Jm,s=o?null:t[n](i);return i_e(e,n,s,o),s}var r_e={buffered:1,currentTime:1,duration:1,muted:1,played:1,paused:1,seekable:1,volume:1,ended:1},a_e={setCurrentTime:1,setMuted:1,setVolume:1},Ek={play:1,pause:1};function xT(e){return function(t,n){return t===Jm?Jm:n[e]?n[e](t):t}}function i_e(e,t,n,r){for(var a=e.length-1;a>=0;a--){var i=e[a];i[t]&&i[t](r,n)}}function o_e(e){r_[e.id()]=null}function s_e(e,t){var n=r_[e.id()],r=null;if(n==null)return r=t(e),r_[e.id()]=[[t,r]],r;for(var a=0;a<n.length;a++){var i=n[a],o=i[0],s=i[1];o===t&&(r=s)}return r===null&&(r=t(e),n.push([t,r])),r}function ul(e,t,n,r,a,i){e===void 0&&(e={}),t===void 0&&(t=[]),a===void 0&&(a=[]),i===void 0&&(i=!1);var o=t,s=o[0],l=o.slice(1);if(typeof s=="string")ul(e,Dl[s],n,r,a,i);else if(s){var u=s_e(r,s);if(!u.setSource)return a.push(u),ul(e,l,n,r,a,i);u.setSource(Yn({},e),function(c,d){if(c)return ul(e,l,n,r,a,i);a.push(u),ul(d,e.type===d.type?l:Dl[d.type],n,r,a,i)})}else l.length?ul(e,l,n,r,a,i):i?n(e,a):ul(e,Dl["*"],n,r,a,!0)}var l_e={opus:"video/ogg",ogv:"video/ogg",mp4:"video/mp4",mov:"video/mp4",m4v:"video/mp4",mkv:"video/x-matroska",m4a:"audio/mp4",mp3:"audio/mpeg",aac:"audio/aac",caf:"audio/x-caf",flac:"audio/flac",oga:"audio/ogg",wav:"audio/wav",m3u8:"application/x-mpegURL",mpd:"application/dash+xml",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",png:"image/png",svg:"image/svg+xml",webp:"image/webp"},Zm=function(t){t===void 0&&(t="");var n=ET(t),r=l_e[n.toLowerCase()];return r||""},u_e=function(t,n){if(!n)return"";if(t.cache_.source.src===n&&t.cache_.source.type)return t.cache_.source.type;var r=t.cache_.sources.filter(function(s){return s.src===n});if(r.length)return r[0].type;for(var a=t.$$("source"),i=0;i<a.length;i++){var o=a[i];if(o.type&&o.src&&o.src===n)return o.type}return Zm(n)},c_e=function e(t){if(Array.isArray(t)){var n=[];t.forEach(function(r){r=e(r),Array.isArray(r)?n=n.concat(r):Xo(r)&&n.push(r)}),t=n}else typeof t=="string"&&t.trim()?t=[xk({src:t})]:Xo(t)&&typeof t.src=="string"&&t.src&&t.src.trim()?t=[xk(t)]:t=[];return t};function xk(e){if(!e.type){var t=Zm(e.src);t&&(e.type=t)}return e}var d_e=function(e){Tt(t,e);function t(n,r,a){var i,o=Un({createEl:!1},r);if(i=e.call(this,n,o,a)||this,!r.playerOptions.sources||r.playerOptions.sources.length===0)for(var s=0,l=r.playerOptions.techOrder;s<l.length;s++){var u=Zn(l[s]),c=Rn.getTech(u);if(u||(c=ut.getComponent(u)),c&&c.isSupported()){n.loadTech_(u);break}}else n.src(r.playerOptions.sources);return i}return t}(ut);ut.registerComponent("MediaLoader",d_e);var Dg=function(e){Tt(t,e);function t(r,a){var i;return i=e.call(this,r,a)||this,i.options_.controlText&&i.controlText(i.options_.controlText),i.handleMouseOver_=function(o){return i.handleMouseOver(o)},i.handleMouseOut_=function(o){return i.handleMouseOut(o)},i.handleClick_=function(o){return i.handleClick(o)},i.handleKeyDown_=function(o){return i.handleKeyDown(o)},i.emitTapEvents(),i.enable(),i}var n=t.prototype;return n.createEl=function(a,i,o){a===void 0&&(a="div"),i===void 0&&(i={}),o===void 0&&(o={}),i=Yn({className:this.buildCSSClass(),tabIndex:0},i),a==="button"&&on.error("Creating a ClickableComponent with an HTML element of "+a+" is not supported; use a Button instead."),o=Yn({role:"button"},o),this.tabIndex_=i.tabIndex;var s=gn(a,i,o);return s.appendChild(gn("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(s),s},n.dispose=function(){this.controlTextEl_=null,e.prototype.dispose.call(this)},n.createControlTextEl=function(a){return this.controlTextEl_=gn("span",{className:"vjs-control-text"},{"aria-live":"polite"}),a&&a.appendChild(this.controlTextEl_),this.controlText(this.controlText_,a),this.controlTextEl_},n.controlText=function(a,i){if(i===void 0&&(i=this.el()),a===void 0)return this.controlText_||"Need Text";var o=this.localize(a);this.controlText_=a,Ql(this.controlTextEl_,o),!this.nonIconControl&&!this.player_.options_.noUITitleAttributes&&i.setAttribute("title",o)},n.buildCSSClass=function(){return"vjs-control vjs-button "+e.prototype.buildCSSClass.call(this)},n.enable=function(){this.enabled_||(this.enabled_=!0,this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),typeof this.tabIndex_<"u"&&this.el_.setAttribute("tabIndex",this.tabIndex_),this.on(["tap","click"],this.handleClick_),this.on("keydown",this.handleKeyDown_))},n.disable=function(){this.enabled_=!1,this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),typeof this.tabIndex_<"u"&&this.el_.removeAttribute("tabIndex"),this.off("mouseover",this.handleMouseOver_),this.off("mouseout",this.handleMouseOut_),this.off(["tap","click"],this.handleClick_),this.off("keydown",this.handleKeyDown_)},n.handleLanguagechange=function(){this.controlText(this.controlText_)},n.handleClick=function(a){this.options_.clickHandler&&this.options_.clickHandler.call(this,arguments)},n.handleKeyDown=function(a){Jt.isEventKey(a,"Space")||Jt.isEventKey(a,"Enter")?(a.preventDefault(),a.stopPropagation(),this.trigger("click")):e.prototype.handleKeyDown.call(this,a)},t}(ut);ut.registerComponent("ClickableComponent",Dg);var f_e=function(e){Tt(t,e);function t(r,a){var i;return i=e.call(this,r,a)||this,i.update(),i.update_=function(o){return i.update(o)},r.on("posterchange",i.update_),i}var n=t.prototype;return n.dispose=function(){this.player().off("posterchange",this.update_),e.prototype.dispose.call(this)},n.createEl=function(){var a=gn("div",{className:"vjs-poster",tabIndex:-1});return a},n.update=function(a){var i=this.player().poster();this.setSrc(i),i?this.show():this.hide()},n.setSrc=function(a){var i="";a&&(i='url("'+a+'")'),this.el_.style.backgroundImage=i},n.handleClick=function(a){if(this.player_.controls()){var i=this.player_.usingPlugin("eme")&&this.player_.eme.sessions&&this.player_.eme.sessions.length>0;this.player_.tech(!0)&&!((Dp||Ap)&&i)&&this.player_.tech(!0).focus(),this.player_.paused()?qi(this.player_.play()):this.player_.pause()}},t}(Dg);ut.registerComponent("PosterImage",f_e);var Wa="#222",kk="#ccc",p_e={monospace:"monospace",sansSerif:"sans-serif",serif:"serif",monospaceSansSerif:'"Andale Mono", "Lucida Console", monospace',monospaceSerif:'"Courier New", monospace',proportionalSansSerif:"sans-serif",proportionalSerif:"serif",casual:'"Comic Sans MS", Impact, fantasy',script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'};function Y0(e,t){var n;if(e.length===4)n=e[1]+e[1]+e[2]+e[2]+e[3]+e[3];else if(e.length===7)n=e.slice(1);else throw new Error("Invalid color code provided, "+e+"; must be formatted as e.g. #f0e or #f604e2.");return"rgba("+parseInt(n.slice(0,2),16)+","+parseInt(n.slice(2,4),16)+","+parseInt(n.slice(4,6),16)+","+t+")"}function X0(e,t,n){try{e.style[t]=n}catch{return}}var h_e=function(e){Tt(t,e);function t(r,a,i){var o;o=e.call(this,r,a,i)||this;var s=function(u){return o.updateDisplay(u)};return r.on("loadstart",function(l){return o.toggleDisplay(l)}),r.on("texttrackchange",s),r.on("loadedmetadata",function(l){return o.preselectTrack(l)}),r.ready(Hn(Qt(o),function(){if(r.tech_&&r.tech_.featuresNativeTextTracks){this.hide();return}r.on("fullscreenchange",s),r.on("playerresize",s),Te.addEventListener("orientationchange",s),r.on("dispose",function(){return Te.removeEventListener("orientationchange",s)});for(var l=this.options_.playerOptions.tracks||[],u=0;u<l.length;u++)this.player_.addRemoteTextTrack(l[u],!0);this.preselectTrack()})),o}var n=t.prototype;return n.preselectTrack=function(){for(var a={captions:1,subtitles:1},i=this.player_.textTracks(),o=this.player_.cache_.selectedLanguage,s,l,u,c=0;c<i.length;c++){var d=i[c];o&&o.enabled&&o.language&&o.language===d.language&&d.kind in a?d.kind===o.kind?u=d:u||(u=d):o&&!o.enabled?(u=null,s=null,l=null):d.default&&(d.kind==="descriptions"&&!s?s=d:d.kind in a&&!l&&(l=d))}u?u.mode="showing":l?l.mode="showing":s&&(s.mode="showing")},n.toggleDisplay=function(){this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()},n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-text-track-display"},{translate:"yes","aria-live":"off","aria-atomic":"true"})},n.clearDisplay=function(){typeof Te.WebVTT=="function"&&Te.WebVTT.processCues(Te,[],this.el_)},n.updateDisplay=function(){var a=this.player_.textTracks(),i=this.options_.allowMultipleShowingTracks;if(this.clearDisplay(),i){for(var o=[],s=0;s<a.length;++s){var l=a[s];l.mode==="showing"&&o.push(l)}this.updateForTrack(o);return}for(var u=null,c=null,d=a.length;d--;){var p=a[d];p.mode==="showing"&&(p.kind==="descriptions"?u=p:c=p)}c?(this.getAttribute("aria-live")!=="off"&&this.setAttribute("aria-live","off"),this.updateForTrack(c)):u&&(this.getAttribute("aria-live")!=="assertive"&&this.setAttribute("aria-live","assertive"),this.updateForTrack(u))},n.updateDisplayState=function(a){for(var i=this.player_.textTrackSettings.getValues(),o=a.activeCues,s=o.length;s--;){var l=o[s];if(l){var u=l.displayState;if(i.color&&(u.firstChild.style.color=i.color),i.textOpacity&&X0(u.firstChild,"color",Y0(i.color||"#fff",i.textOpacity)),i.backgroundColor&&(u.firstChild.style.backgroundColor=i.backgroundColor),i.backgroundOpacity&&X0(u.firstChild,"backgroundColor",Y0(i.backgroundColor||"#000",i.backgroundOpacity)),i.windowColor&&(i.windowOpacity?X0(u,"backgroundColor",Y0(i.windowColor,i.windowOpacity)):u.style.backgroundColor=i.windowColor),i.edgeStyle&&(i.edgeStyle==="dropshadow"?u.firstChild.style.textShadow="2px 2px 3px "+Wa+", 2px 2px 4px "+Wa+", 2px 2px 5px "+Wa:i.edgeStyle==="raised"?u.firstChild.style.textShadow="1px 1px "+Wa+", 2px 2px "+Wa+", 3px 3px "+Wa:i.edgeStyle==="depressed"?u.firstChild.style.textShadow="1px 1px "+kk+", 0 1px "+kk+", -1px -1px "+Wa+", 0 -1px "+Wa:i.edgeStyle==="uniform"&&(u.firstChild.style.textShadow="0 0 4px "+Wa+", 0 0 4px "+Wa+", 0 0 4px "+Wa+", 0 0 4px "+Wa)),i.fontPercent&&i.fontPercent!==1){var c=Te.parseFloat(u.style.fontSize);u.style.fontSize=c*i.fontPercent+"px",u.style.height="auto",u.style.top="auto"}i.fontFamily&&i.fontFamily!=="default"&&(i.fontFamily==="small-caps"?u.firstChild.style.fontVariant="small-caps":u.firstChild.style.fontFamily=p_e[i.fontFamily])}}},n.updateForTrack=function(a){if(Array.isArray(a)||(a=[a]),!(typeof Te.WebVTT!="function"||a.every(function(h){return!h.activeCues}))){for(var i=[],o=0;o<a.length;++o)for(var s=a[o],l=0;l<s.activeCues.length;++l)i.push(s.activeCues[l]);Te.WebVTT.processCues(Te,i,this.el_);for(var u=0;u<a.length;++u){for(var c=a[u],d=0;d<c.activeCues.length;++d){var p=c.activeCues[d].displayState;Vo(p,"vjs-text-track-cue"),Vo(p,"vjs-text-track-cue-"+(c.language?c.language:u)),c.language&&Tc(p,"lang",c.language)}this.player_.textTrackSettings&&this.updateDisplayState(c)}}},t}(ut);ut.registerComponent("TextTrackDisplay",h_e);var m_e=function(e){Tt(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.createEl=function(){var a=this.player_.isAudio(),i=this.localize(a?"Audio Player":"Video Player"),o=gn("span",{className:"vjs-control-text",textContent:this.localize("{1} is loading.",[i])}),s=e.prototype.createEl.call(this,"div",{className:"vjs-loading-spinner",dir:"ltr"});return s.appendChild(o),s},t}(ut);ut.registerComponent("LoadingSpinner",m_e);var Ti=function(e){Tt(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.createEl=function(a,i,o){i===void 0&&(i={}),o===void 0&&(o={}),a="button",i=Yn({className:this.buildCSSClass()},i),o=Yn({type:"button"},o);var s=gn(a,i,o);return s.appendChild(gn("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(s),s},n.addChild=function(a,i){i===void 0&&(i={});var o=this.constructor.name;return on.warn("Adding an actionable (user controllable) child to a Button ("+o+") is not supported; use a ClickableComponent instead."),ut.prototype.addChild.call(this,a,i)},n.enable=function(){e.prototype.enable.call(this),this.el_.removeAttribute("disabled")},n.disable=function(){e.prototype.disable.call(this),this.el_.setAttribute("disabled","disabled")},n.handleKeyDown=function(a){if(Jt.isEventKey(a,"Space")||Jt.isEventKey(a,"Enter")){a.stopPropagation();return}e.prototype.handleKeyDown.call(this,a)},t}(Dg);ut.registerComponent("Button",Ti);var SL=function(e){Tt(t,e);function t(r,a){var i;return i=e.call(this,r,a)||this,i.mouseused_=!1,i.on("mousedown",function(o){return i.handleMouseDown(o)}),i}var n=t.prototype;return n.buildCSSClass=function(){return"vjs-big-play-button"},n.handleClick=function(a){var i=this.player_.play();if(this.mouseused_&&a.clientX&&a.clientY){var o=this.player_.usingPlugin("eme")&&this.player_.eme.sessions&&this.player_.eme.sessions.length>0;qi(i),this.player_.tech(!0)&&!((Dp||Ap)&&o)&&this.player_.tech(!0).focus();return}var s=this.player_.getChild("controlBar"),l=s&&s.getChild("playToggle");if(!l){this.player_.tech(!0).focus();return}var u=function(){return l.focus()};ef(i)?i.then(u,function(){}):this.setTimeout(u,1)},n.handleKeyDown=function(a){this.mouseused_=!1,e.prototype.handleKeyDown.call(this,a)},n.handleMouseDown=function(a){this.mouseused_=!0},t}(Ti);SL.prototype.controlText_="Play Video";ut.registerComponent("BigPlayButton",SL);var v_e=function(e){Tt(t,e);function t(r,a){var i;return i=e.call(this,r,a)||this,i.controlText(a&&a.controlText||i.localize("Close")),i}var n=t.prototype;return n.buildCSSClass=function(){return"vjs-close-button "+e.prototype.buildCSSClass.call(this)},n.handleClick=function(a){this.trigger({type:"close",bubbles:!1})},n.handleKeyDown=function(a){Jt.isEventKey(a,"Esc")?(a.preventDefault(),a.stopPropagation(),this.trigger("click")):e.prototype.handleKeyDown.call(this,a)},t}(Ti);ut.registerComponent("CloseButton",v_e);var CL=function(e){Tt(t,e);function t(r,a){var i;return a===void 0&&(a={}),i=e.call(this,r,a)||this,a.replay=a.replay===void 0||a.replay,i.on(r,"play",function(o){return i.handlePlay(o)}),i.on(r,"pause",function(o){return i.handlePause(o)}),a.replay&&i.on(r,"ended",function(o){return i.handleEnded(o)}),i}var n=t.prototype;return n.buildCSSClass=function(){return"vjs-play-control "+e.prototype.buildCSSClass.call(this)},n.handleClick=function(a){this.player_.paused()?qi(this.player_.play()):this.player_.pause()},n.handleSeeked=function(a){this.removeClass("vjs-ended"),this.player_.paused()?this.handlePause(a):this.handlePlay(a)},n.handlePlay=function(a){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},n.handlePause=function(a){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},n.handleEnded=function(a){var i=this;this.removeClass("vjs-playing"),this.addClass("vjs-ended"),this.controlText("Replay"),this.one(this.player_,"seeked",function(o){return i.handleSeeked(o)})},t}(Ti);CL.prototype.controlText_="Play";ut.registerComponent("PlayToggle",CL);var EL=function(t,n){t=t<0?0:t;var r=Math.floor(t%60),a=Math.floor(t/60%60),i=Math.floor(t/3600),o=Math.floor(n/60%60),s=Math.floor(n/3600);return(isNaN(t)||t===1/0)&&(i=a=r="-"),i=i>0||s>0?i+":":"",a=((i||o>=10)&&a<10?"0"+a:a)+":",r=r<10?"0"+r:r,i+a+r},kT=EL;function g_e(e){kT=e}function y_e(){kT=EL}function Ec(e,t){return t===void 0&&(t=e),kT(e,t)}var Qc=function(e){Tt(t,e);function t(r,a){var i;return i=e.call(this,r,a)||this,i.on(r,["timeupdate","ended"],function(o){return i.updateContent(o)}),i.updateTextNode_(),i}var n=t.prototype;return n.createEl=function(){var a=this.buildCSSClass(),i=e.prototype.createEl.call(this,"div",{className:a+" vjs-time-control vjs-control"}),o=gn("span",{className:"vjs-control-text",textContent:this.localize(this.labelText_)+" "},{role:"presentation"});return i.appendChild(o),this.contentEl_=gn("span",{className:a+"-display"},{"aria-live":"off",role:"presentation"}),i.appendChild(this.contentEl_),i},n.dispose=function(){this.contentEl_=null,this.textNode_=null,e.prototype.dispose.call(this)},n.updateTextNode_=function(a){var i=this;a===void 0&&(a=0),a=Ec(a),this.formattedTime_!==a&&(this.formattedTime_=a,this.requestNamedAnimationFrame("TimeDisplay#updateTextNode_",function(){if(i.contentEl_){var o=i.textNode_;o&&i.contentEl_.firstChild!==o&&(o=null,on.warn("TimeDisplay#updateTextnode_: Prevented replacement of text node element since it was no longer a child of this node. Appending a new node instead.")),i.textNode_=vt.createTextNode(i.formattedTime_),i.textNode_&&(o?i.contentEl_.replaceChild(i.textNode_,o):i.contentEl_.appendChild(i.textNode_))}}))},n.updateContent=function(a){},t}(ut);Qc.prototype.labelText_="Time";Qc.prototype.controlText_="Time";ut.registerComponent("TimeDisplay",Qc);var AT=function(e){Tt(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.buildCSSClass=function(){return"vjs-current-time"},n.updateContent=function(a){var i;this.player_.ended()?i=this.player_.duration():i=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),this.updateTextNode_(i)},t}(Qc);AT.prototype.labelText_="Current Time";AT.prototype.controlText_="Current Time";ut.registerComponent("CurrentTimeDisplay",AT);var DT=function(e){Tt(t,e);function t(r,a){var i;i=e.call(this,r,a)||this;var o=function(l){return i.updateContent(l)};return i.on(r,"durationchange",o),i.on(r,"loadstart",o),i.on(r,"loadedmetadata",o),i}var n=t.prototype;return n.buildCSSClass=function(){return"vjs-duration"},n.updateContent=function(a){var i=this.player_.duration();this.updateTextNode_(i)},t}(Qc);DT.prototype.labelText_="Duration";DT.prototype.controlText_="Duration";ut.registerComponent("DurationDisplay",DT);var b_e=function(e){Tt(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.createEl=function(){var a=e.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider"},{"aria-hidden":!0}),i=e.prototype.createEl.call(this,"div"),o=e.prototype.createEl.call(this,"span",{textContent:"/"});return i.appendChild(o),a.appendChild(i),a},t}(ut);ut.registerComponent("TimeDivider",b_e);var IT=function(e){Tt(t,e);function t(r,a){var i;return i=e.call(this,r,a)||this,i.on(r,"durationchange",function(o){return i.updateContent(o)}),i}var n=t.prototype;return n.buildCSSClass=function(){return"vjs-remaining-time"},n.createEl=function(){var a=e.prototype.createEl.call(this);return this.options_.displayNegative!==!1&&a.insertBefore(gn("span",{},{"aria-hidden":!0},"-"),this.contentEl_),a},n.updateContent=function(a){if(typeof this.player_.duration()=="number"){var i;this.player_.ended()?i=0:this.player_.remainingTimeDisplay?i=this.player_.remainingTimeDisplay():i=this.player_.remainingTime(),this.updateTextNode_(i)}},t}(Qc);IT.prototype.labelText_="Remaining Time";IT.prototype.controlText_="Remaining Time";ut.registerComponent("RemainingTimeDisplay",IT);var __e=function(e){Tt(t,e);function t(r,a){var i;return i=e.call(this,r,a)||this,i.updateShowing(),i.on(i.player(),"durationchange",function(o){return i.updateShowing(o)}),i}var n=t.prototype;return n.createEl=function(){var a=e.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.contentEl_=gn("div",{className:"vjs-live-display"},{"aria-live":"off"}),this.contentEl_.appendChild(gn("span",{className:"vjs-control-text",textContent:this.localize("Stream Type")+" "})),this.contentEl_.appendChild(vt.createTextNode(this.localize("LIVE"))),a.appendChild(this.contentEl_),a},n.dispose=function(){this.contentEl_=null,e.prototype.dispose.call(this)},n.updateShowing=function(a){this.player().duration()===1/0?this.show():this.hide()},t}(ut);ut.registerComponent("LiveDisplay",__e);var xL=function(e){Tt(t,e);function t(r,a){var i;return i=e.call(this,r,a)||this,i.updateLiveEdgeStatus(),i.player_.liveTracker&&(i.updateLiveEdgeStatusHandler_=function(o){return i.updateLiveEdgeStatus(o)},i.on(i.player_.liveTracker,"liveedgechange",i.updateLiveEdgeStatusHandler_)),i}var n=t.prototype;return n.createEl=function(){var a=e.prototype.createEl.call(this,"button",{className:"vjs-seek-to-live-control vjs-control"});return this.textEl_=gn("span",{className:"vjs-seek-to-live-text",textContent:this.localize("LIVE")},{"aria-hidden":"true"}),a.appendChild(this.textEl_),a},n.updateLiveEdgeStatus=function(){!this.player_.liveTracker||this.player_.liveTracker.atLiveEdge()?(this.setAttribute("aria-disabled",!0),this.addClass("vjs-at-live-edge"),this.controlText("Seek to live, currently playing live")):(this.setAttribute("aria-disabled",!1),this.removeClass("vjs-at-live-edge"),this.controlText("Seek to live, currently behind live"))},n.handleClick=function(){this.player_.liveTracker.seekToLiveEdge()},n.dispose=function(){this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.updateLiveEdgeStatusHandler_),this.textEl_=null,e.prototype.dispose.call(this)},t}(Ti);xL.prototype.controlText_="Seek to live, currently playing live";ut.registerComponent("SeekToLive",xL);var Ig=function(t,n,r){return t=Number(t),Math.min(r,Math.max(n,isNaN(t)?n:t))},PT=function(e){Tt(t,e);function t(r,a){var i;return i=e.call(this,r,a)||this,i.handleMouseDown_=function(o){return i.handleMouseDown(o)},i.handleMouseUp_=function(o){return i.handleMouseUp(o)},i.handleKeyDown_=function(o){return i.handleKeyDown(o)},i.handleClick_=function(o){return i.handleClick(o)},i.handleMouseMove_=function(o){return i.handleMouseMove(o)},i.update_=function(o){return i.update(o)},i.bar=i.getChild(i.options_.barName),i.vertical(!!i.options_.vertical),i.enable(),i}var n=t.prototype;return n.enabled=function(){return this.enabled_},n.enable=function(){this.enabled()||(this.on("mousedown",this.handleMouseDown_),this.on("touchstart",this.handleMouseDown_),this.on("keydown",this.handleKeyDown_),this.on("click",this.handleClick_),this.on(this.player_,"controlsvisible",this.update),this.playerEvent&&this.on(this.player_,this.playerEvent,this.update),this.removeClass("disabled"),this.setAttribute("tabindex",0),this.enabled_=!0)},n.disable=function(){if(this.enabled()){var a=this.bar.el_.ownerDocument;this.off("mousedown",this.handleMouseDown_),this.off("touchstart",this.handleMouseDown_),this.off("keydown",this.handleKeyDown_),this.off("click",this.handleClick_),this.off(this.player_,"controlsvisible",this.update_),this.off(a,"mousemove",this.handleMouseMove_),this.off(a,"mouseup",this.handleMouseUp_),this.off(a,"touchmove",this.handleMouseMove_),this.off(a,"touchend",this.handleMouseUp_),this.removeAttribute("tabindex"),this.addClass("disabled"),this.playerEvent&&this.off(this.player_,this.playerEvent,this.update),this.enabled_=!1}},n.createEl=function(a,i,o){return i===void 0&&(i={}),o===void 0&&(o={}),i.className=i.className+" vjs-slider",i=Yn({tabIndex:0},i),o=Yn({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},o),e.prototype.createEl.call(this,a,i,o)},n.handleMouseDown=function(a){var i=this.bar.el_.ownerDocument;a.type==="mousedown"&&a.preventDefault(),a.type==="touchstart"&&!ss&&a.preventDefault(),tL(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(i,"mousemove",this.handleMouseMove_),this.on(i,"mouseup",this.handleMouseUp_),this.on(i,"touchmove",this.handleMouseMove_),this.on(i,"touchend",this.handleMouseUp_),this.handleMouseMove(a,!0)},n.handleMouseMove=function(a){},n.handleMouseUp=function(){var a=this.bar.el_.ownerDocument;nL(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(a,"mousemove",this.handleMouseMove_),this.off(a,"mouseup",this.handleMouseUp_),this.off(a,"touchmove",this.handleMouseMove_),this.off(a,"touchend",this.handleMouseUp_),this.update()},n.update=function(){var a=this;if(!(!this.el_||!this.bar)){var i=this.getProgress();return i===this.progress_||(this.progress_=i,this.requestNamedAnimationFrame("Slider#update",function(){var o=a.vertical()?"height":"width";a.bar.el().style[o]=(i*100).toFixed(2)+"%"})),i}},n.getProgress=function(){return Number(Ig(this.getPercent(),0,1).toFixed(4))},n.calculateDistance=function(a){var i=Cg(this.el_,a);return this.vertical()?i.y:i.x},n.handleKeyDown=function(a){Jt.isEventKey(a,"Left")||Jt.isEventKey(a,"Down")?(a.preventDefault(),a.stopPropagation(),this.stepBack()):Jt.isEventKey(a,"Right")||Jt.isEventKey(a,"Up")?(a.preventDefault(),a.stopPropagation(),this.stepForward()):e.prototype.handleKeyDown.call(this,a)},n.handleClick=function(a){a.stopPropagation(),a.preventDefault()},n.vertical=function(a){if(a===void 0)return this.vertical_||!1;this.vertical_=!!a,this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal")},t}(ut);ut.registerComponent("Slider",PT);var Q0=function(t,n){return Ig(t/n*100,0,100).toFixed(2)+"%"},T_e=function(e){Tt(t,e);function t(r,a){var i;return i=e.call(this,r,a)||this,i.partEls_=[],i.on(r,"progress",function(o){return i.update(o)}),i}var n=t.prototype;return n.createEl=function(){var a=e.prototype.createEl.call(this,"div",{className:"vjs-load-progress"}),i=gn("span",{className:"vjs-control-text"}),o=gn("span",{textContent:this.localize("Loaded")}),s=vt.createTextNode(": ");return this.percentageEl_=gn("span",{className:"vjs-control-text-loaded-percentage",textContent:"0%"}),a.appendChild(i),i.appendChild(o),i.appendChild(s),i.appendChild(this.percentageEl_),a},n.dispose=function(){this.partEls_=null,this.percentageEl_=null,e.prototype.dispose.call(this)},n.update=function(a){var i=this;this.requestNamedAnimationFrame("LoadProgressBar#update",function(){var o=i.player_.liveTracker,s=i.player_.buffered(),l=o&&o.isLive()?o.seekableEnd():i.player_.duration(),u=i.player_.bufferedEnd(),c=i.partEls_,d=Q0(u,l);i.percent_!==d&&(i.el_.style.width=d,Ql(i.percentageEl_,d),i.percent_=d);for(var p=0;p<s.length;p++){var h=s.start(p),v=s.end(p),m=c[p];m||(m=i.el_.appendChild(gn()),c[p]=m),!(m.dataset.start===h&&m.dataset.end===v)&&(m.dataset.start=h,m.dataset.end=v,m.style.left=Q0(h,u),m.style.width=Q0(v-h,u))}for(var g=c.length;g>s.length;g--)i.el_.removeChild(c[g-1]);c.length=s.length})},t}(ut);ut.registerComponent("LoadProgressBar",T_e);var w_e=function(e){Tt(t,e);function t(r,a){var i;return i=e.call(this,r,a)||this,i.update=Qo(Hn(Qt(i),i.update),Ai),i}var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-time-tooltip"},{"aria-hidden":"true"})},n.update=function(a,i,o){var s=qf(this.el_),l=wc(this.player_.el()),u=a.width*i;if(!(!l||!s)){var c=a.left-l.left+u,d=a.width-u+(l.right-a.right),p=s.width/2;c<p?p+=p-c:d<p&&(p=d),p<0?p=0:p>s.width&&(p=s.width),p=Math.round(p),this.el_.style.right="-"+p+"px",this.write(o)}},n.write=function(a){Ql(this.el_,a)},n.updateTime=function(a,i,o,s){var l=this;this.requestNamedAnimationFrame("TimeTooltip#updateTime",function(){var u,c=l.player_.duration();if(l.player_.liveTracker&&l.player_.liveTracker.isLive()){var d=l.player_.liveTracker.liveWindow(),p=d-i*d;u=(p<1?"":"-")+Ec(p,d)}else u=Ec(o,c);l.update(a,i,u),s&&s()})},t}(ut);ut.registerComponent("TimeTooltip",w_e);var OT=function(e){Tt(t,e);function t(r,a){var i;return i=e.call(this,r,a)||this,i.update=Qo(Hn(Qt(i),i.update),Ai),i}var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar"},{"aria-hidden":"true"})},n.update=function(a,i){var o=this.getChild("timeTooltip");if(o){var s=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();o.updateTime(a,i,s)}},t}(ut);OT.prototype.options_={children:[]};!la&&!os&&OT.prototype.options_.children.push("timeTooltip");ut.registerComponent("PlayProgressBar",OT);var kL=function(e){Tt(t,e);function t(r,a){var i;return i=e.call(this,r,a)||this,i.update=Qo(Hn(Qt(i),i.update),Ai),i}var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},n.update=function(a,i){var o=this,s=i*this.player_.duration();this.getChild("timeTooltip").updateTime(a,i,s,function(){o.el_.style.left=a.width*i+"px"})},t}(ut);kL.prototype.options_={children:["timeTooltip"]};ut.registerComponent("MouseTimeDisplay",kL);var Sh=5,Ak=12,MT=function(e){Tt(t,e);function t(r,a){var i;return i=e.call(this,r,a)||this,i.setEventHandlers_(),i}var n=t.prototype;return n.setEventHandlers_=function(){var a=this;this.update_=Hn(this,this.update),this.update=Qo(this.update_,Ai),this.on(this.player_,["ended","durationchange","timeupdate"],this.update),this.player_.liveTracker&&this.on(this.player_.liveTracker,"liveedgechange",this.update),this.updateInterval=null,this.enableIntervalHandler_=function(i){return a.enableInterval_(i)},this.disableIntervalHandler_=function(i){return a.disableInterval_(i)},this.on(this.player_,["playing"],this.enableIntervalHandler_),this.on(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in vt&&"visibilityState"in vt&&this.on(vt,"visibilitychange",this.toggleVisibility_)},n.toggleVisibility_=function(a){vt.visibilityState==="hidden"?(this.cancelNamedAnimationFrame("SeekBar#update"),this.cancelNamedAnimationFrame("Slider#update"),this.disableInterval_(a)):(!this.player_.ended()&&!this.player_.paused()&&this.enableInterval_(),this.update())},n.enableInterval_=function(){this.updateInterval||(this.updateInterval=this.setInterval(this.update,Ai))},n.disableInterval_=function(a){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&a&&a.type!=="ended"||this.updateInterval&&(this.clearInterval(this.updateInterval),this.updateInterval=null)},n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})},n.update=function(a){var i=this;if(vt.visibilityState!=="hidden"){var o=e.prototype.update.call(this);return this.requestNamedAnimationFrame("SeekBar#update",function(){var s=i.player_.ended()?i.player_.duration():i.getCurrentTime_(),l=i.player_.liveTracker,u=i.player_.duration();l&&l.isLive()&&(u=i.player_.liveTracker.liveCurrentTime()),i.percent_!==o&&(i.el_.setAttribute("aria-valuenow",(o*100).toFixed(2)),i.percent_=o),(i.currentTime_!==s||i.duration_!==u)&&(i.el_.setAttribute("aria-valuetext",i.localize("progress bar timing: currentTime={1} duration={2}",[Ec(s,u),Ec(u,u)],"{1} of {2}")),i.currentTime_=s,i.duration_=u),i.bar&&i.bar.update(wc(i.el()),i.getProgress())}),o}},n.userSeek_=function(a){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&this.player_.liveTracker.nextSeekedFromUser(),this.player_.currentTime(a)},n.getCurrentTime_=function(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()},n.getPercent=function(){var a=this.getCurrentTime_(),i,o=this.player_.liveTracker;return o&&o.isLive()?(i=(a-o.seekableStart())/o.liveWindow(),o.atLiveEdge()&&(i=1)):i=a/this.player_.duration(),i},n.handleMouseDown=function(a){Gf(a)&&(a.stopPropagation(),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),e.prototype.handleMouseDown.call(this,a))},n.handleMouseMove=function(a,i){if(i===void 0&&(i=!1),!!Gf(a)){!i&&!this.player_.scrubbing()&&this.player_.scrubbing(!0);var o,s=this.calculateDistance(a),l=this.player_.liveTracker;if(!l||!l.isLive())o=s*this.player_.duration(),o===this.player_.duration()&&(o=o-.1);else{if(s>=.99){l.seekToLiveEdge();return}var u=l.seekableStart(),c=l.liveCurrentTime();if(o=u+s*l.liveWindow(),o>=c&&(o=c),o<=u&&(o=u+.1),o===1/0)return}this.userSeek_(o)}},n.enable=function(){e.prototype.enable.call(this);var a=this.getChild("mouseTimeDisplay");a&&a.show()},n.disable=function(){e.prototype.disable.call(this);var a=this.getChild("mouseTimeDisplay");a&&a.hide()},n.handleMouseUp=function(a){e.prototype.handleMouseUp.call(this,a),a&&a.stopPropagation(),this.player_.scrubbing(!1),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying?qi(this.player_.play()):this.update_()},n.stepForward=function(){this.userSeek_(this.player_.currentTime()+Sh)},n.stepBack=function(){this.userSeek_(this.player_.currentTime()-Sh)},n.handleAction=function(a){this.player_.paused()?this.player_.play():this.player_.pause()},n.handleKeyDown=function(a){var i=this.player_.liveTracker;if(Jt.isEventKey(a,"Space")||Jt.isEventKey(a,"Enter"))a.preventDefault(),a.stopPropagation(),this.handleAction(a);else if(Jt.isEventKey(a,"Home"))a.preventDefault(),a.stopPropagation(),this.userSeek_(0);else if(Jt.isEventKey(a,"End"))a.preventDefault(),a.stopPropagation(),i&&i.isLive()?this.userSeek_(i.liveCurrentTime()):this.userSeek_(this.player_.duration());else if(/^[0-9]$/.test(Jt(a))){a.preventDefault(),a.stopPropagation();var o=(Jt.codes[Jt(a)]-Jt.codes[0])*10/100;i&&i.isLive()?this.userSeek_(i.seekableStart()+i.liveWindow()*o):this.userSeek_(this.player_.duration()*o)}else Jt.isEventKey(a,"PgDn")?(a.preventDefault(),a.stopPropagation(),this.userSeek_(this.player_.currentTime()-Sh*Ak)):Jt.isEventKey(a,"PgUp")?(a.preventDefault(),a.stopPropagation(),this.userSeek_(this.player_.currentTime()+Sh*Ak)):e.prototype.handleKeyDown.call(this,a)},n.dispose=function(){this.disableInterval_(),this.off(this.player_,["ended","durationchange","timeupdate"],this.update),this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.update),this.off(this.player_,["playing"],this.enableIntervalHandler_),this.off(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in vt&&"visibilityState"in vt&&this.off(vt,"visibilitychange",this.toggleVisibility_),e.prototype.dispose.call(this)},t}(PT);MT.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"};!la&&!os&&MT.prototype.options_.children.splice(1,0,"mouseTimeDisplay");ut.registerComponent("SeekBar",MT);var AL=function(e){Tt(t,e);function t(r,a){var i;return i=e.call(this,r,a)||this,i.handleMouseMove=Qo(Hn(Qt(i),i.handleMouseMove),Ai),i.throttledHandleMouseSeek=Qo(Hn(Qt(i),i.handleMouseSeek),Ai),i.handleMouseUpHandler_=function(o){return i.handleMouseUp(o)},i.handleMouseDownHandler_=function(o){return i.handleMouseDown(o)},i.enable(),i}var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},n.handleMouseMove=function(a){var i=this.getChild("seekBar");if(i){var o=i.getChild("playProgressBar"),s=i.getChild("mouseTimeDisplay");if(!(!o&&!s)){var l=i.el(),u=qf(l),c=Cg(l,a).x;c=Ig(c,0,1),s&&s.update(u,c),o&&o.update(u,i.getProgress())}}},n.handleMouseSeek=function(a){var i=this.getChild("seekBar");i&&i.handleMouseMove(a)},n.enabled=function(){return this.enabled_},n.disable=function(){if(this.children().forEach(function(i){return i.disable&&i.disable()}),!!this.enabled()&&(this.off(["mousedown","touchstart"],this.handleMouseDownHandler_),this.off(this.el_,"mousemove",this.handleMouseMove),this.removeListenersAddedOnMousedownAndTouchstart(),this.addClass("disabled"),this.enabled_=!1,this.player_.scrubbing())){var a=this.getChild("seekBar");this.player_.scrubbing(!1),a.videoWasPlaying&&qi(this.player_.play())}},n.enable=function(){this.children().forEach(function(a){return a.enable&&a.enable()}),!this.enabled()&&(this.on(["mousedown","touchstart"],this.handleMouseDownHandler_),this.on(this.el_,"mousemove",this.handleMouseMove),this.removeClass("disabled"),this.enabled_=!0)},n.removeListenersAddedOnMousedownAndTouchstart=function(){var a=this.el_.ownerDocument;this.off(a,"mousemove",this.throttledHandleMouseSeek),this.off(a,"touchmove",this.throttledHandleMouseSeek),this.off(a,"mouseup",this.handleMouseUpHandler_),this.off(a,"touchend",this.handleMouseUpHandler_)},n.handleMouseDown=function(a){var i=this.el_.ownerDocument,o=this.getChild("seekBar");o&&o.handleMouseDown(a),this.on(i,"mousemove",this.throttledHandleMouseSeek),this.on(i,"touchmove",this.throttledHandleMouseSeek),this.on(i,"mouseup",this.handleMouseUpHandler_),this.on(i,"touchend",this.handleMouseUpHandler_)},n.handleMouseUp=function(a){var i=this.getChild("seekBar");i&&i.handleMouseUp(a),this.removeListenersAddedOnMousedownAndTouchstart()},t}(ut);AL.prototype.options_={children:["seekBar"]};ut.registerComponent("ProgressControl",AL);var DL=function(e){Tt(t,e);function t(r,a){var i;return i=e.call(this,r,a)||this,i.on(r,["enterpictureinpicture","leavepictureinpicture"],function(o){return i.handlePictureInPictureChange(o)}),i.on(r,["disablepictureinpicturechanged","loadedmetadata"],function(o){return i.handlePictureInPictureEnabledChange(o)}),i.on(r,["loadedmetadata","audioonlymodechange","audiopostermodechange"],function(){var o=r.currentType().substring(0,5)==="audio";o||r.audioPosterMode()||r.audioOnlyMode()?(r.isInPictureInPicture()&&r.exitPictureInPicture(),i.hide()):i.show()}),i.disable(),i}var n=t.prototype;return n.buildCSSClass=function(){return"vjs-picture-in-picture-control "+e.prototype.buildCSSClass.call(this)},n.handlePictureInPictureEnabledChange=function(){vt.pictureInPictureEnabled&&this.player_.disablePictureInPicture()===!1?this.enable():this.disable()},n.handlePictureInPictureChange=function(a){this.player_.isInPictureInPicture()?this.controlText("Exit Picture-in-Picture"):this.controlText("Picture-in-Picture"),this.handlePictureInPictureEnabledChange()},n.handleClick=function(a){this.player_.isInPictureInPicture()?this.player_.exitPictureInPicture():this.player_.requestPictureInPicture()},t}(Ti);DL.prototype.controlText_="Picture-in-Picture";ut.registerComponent("PictureInPictureToggle",DL);var IL=function(e){Tt(t,e);function t(r,a){var i;return i=e.call(this,r,a)||this,i.on(r,"fullscreenchange",function(o){return i.handleFullscreenChange(o)}),vt[r.fsApi_.fullscreenEnabled]===!1&&i.disable(),i}var n=t.prototype;return n.buildCSSClass=function(){return"vjs-fullscreen-control "+e.prototype.buildCSSClass.call(this)},n.handleFullscreenChange=function(a){this.player_.isFullscreen()?this.controlText("Non-Fullscreen"):this.controlText("Fullscreen")},n.handleClick=function(a){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()},t}(Ti);IL.prototype.controlText_="Fullscreen";ut.registerComponent("FullscreenToggle",IL);var S_e=function(t,n){n.tech_&&!n.tech_.featuresVolumeControl&&t.addClass("vjs-hidden"),t.on(n,"loadstart",function(){n.tech_.featuresVolumeControl?t.removeClass("vjs-hidden"):t.addClass("vjs-hidden")})},C_e=function(e){Tt(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.createEl=function(){var a=e.prototype.createEl.call(this,"div",{className:"vjs-volume-level"});return a.appendChild(e.prototype.createEl.call(this,"span",{className:"vjs-control-text"})),a},t}(ut);ut.registerComponent("VolumeLevel",C_e);var E_e=function(e){Tt(t,e);function t(r,a){var i;return i=e.call(this,r,a)||this,i.update=Qo(Hn(Qt(i),i.update),Ai),i}var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-tooltip"},{"aria-hidden":"true"})},n.update=function(a,i,o,s){if(!o){var l=wc(this.el_),u=wc(this.player_.el()),c=a.width*i;if(!u||!l)return;var d=a.left-u.left+c,p=a.width-c+(u.right-a.right),h=l.width/2;d<h?h+=h-d:p<h&&(h=p),h<0?h=0:h>l.width&&(h=l.width),this.el_.style.right="-"+h+"px"}this.write(s+"%")},n.write=function(a){Ql(this.el_,a)},n.updateVolume=function(a,i,o,s,l){var u=this;this.requestNamedAnimationFrame("VolumeLevelTooltip#updateVolume",function(){u.update(a,i,o,s.toFixed(0)),l&&l()})},t}(ut);ut.registerComponent("VolumeLevelTooltip",E_e);var PL=function(e){Tt(t,e);function t(r,a){var i;return i=e.call(this,r,a)||this,i.update=Qo(Hn(Qt(i),i.update),Ai),i}var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},n.update=function(a,i,o){var s=this,l=100*i;this.getChild("volumeLevelTooltip").updateVolume(a,i,o,l,function(){o?s.el_.style.bottom=a.height*i+"px":s.el_.style.left=a.width*i+"px"})},t}(ut);PL.prototype.options_={children:["volumeLevelTooltip"]};ut.registerComponent("MouseVolumeLevelDisplay",PL);var Pg=function(e){Tt(t,e);function t(r,a){var i;return i=e.call(this,r,a)||this,i.on("slideractive",function(o){return i.updateLastVolume_(o)}),i.on(r,"volumechange",function(o){return i.updateARIAAttributes(o)}),r.ready(function(){return i.updateARIAAttributes()}),i}var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})},n.handleMouseDown=function(a){Gf(a)&&e.prototype.handleMouseDown.call(this,a)},n.handleMouseMove=function(a){var i=this.getChild("mouseVolumeLevelDisplay");if(i){var o=this.el(),s=wc(o),l=this.vertical(),u=Cg(o,a);u=l?u.y:u.x,u=Ig(u,0,1),i.update(s,u,l)}Gf(a)&&(this.checkMuted(),this.player_.volume(this.calculateDistance(a)))},n.checkMuted=function(){this.player_.muted()&&this.player_.muted(!1)},n.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},n.stepForward=function(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)},n.stepBack=function(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)},n.updateARIAAttributes=function(a){var i=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",i),this.el_.setAttribute("aria-valuetext",i+"%")},n.volumeAsPercentage_=function(){return Math.round(this.player_.volume()*100)},n.updateLastVolume_=function(){var a=this,i=this.player_.volume();this.one("sliderinactive",function(){a.player_.volume()===0&&a.player_.lastVolume_(i)})},t}(PT);Pg.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"};!la&&!os&&Pg.prototype.options_.children.splice(0,0,"mouseVolumeLevelDisplay");Pg.prototype.playerEvent="volumechange";ut.registerComponent("VolumeBar",Pg);var OL=function(e){Tt(t,e);function t(r,a){var i;return a===void 0&&(a={}),a.vertical=a.vertical||!1,(typeof a.volumeBar>"u"||Wf(a.volumeBar))&&(a.volumeBar=a.volumeBar||{},a.volumeBar.vertical=a.vertical),i=e.call(this,r,a)||this,S_e(Qt(i),r),i.throttledHandleMouseMove=Qo(Hn(Qt(i),i.handleMouseMove),Ai),i.handleMouseUpHandler_=function(o){return i.handleMouseUp(o)},i.on("mousedown",function(o){return i.handleMouseDown(o)}),i.on("touchstart",function(o){return i.handleMouseDown(o)}),i.on("mousemove",function(o){return i.handleMouseMove(o)}),i.on(i.volumeBar,["focus","slideractive"],function(){i.volumeBar.addClass("vjs-slider-active"),i.addClass("vjs-slider-active"),i.trigger("slideractive")}),i.on(i.volumeBar,["blur","sliderinactive"],function(){i.volumeBar.removeClass("vjs-slider-active"),i.removeClass("vjs-slider-active"),i.trigger("sliderinactive")}),i}var n=t.prototype;return n.createEl=function(){var a="vjs-volume-horizontal";return this.options_.vertical&&(a="vjs-volume-vertical"),e.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control "+a})},n.handleMouseDown=function(a){var i=this.el_.ownerDocument;this.on(i,"mousemove",this.throttledHandleMouseMove),this.on(i,"touchmove",this.throttledHandleMouseMove),this.on(i,"mouseup",this.handleMouseUpHandler_),this.on(i,"touchend",this.handleMouseUpHandler_)},n.handleMouseUp=function(a){var i=this.el_.ownerDocument;this.off(i,"mousemove",this.throttledHandleMouseMove),this.off(i,"touchmove",this.throttledHandleMouseMove),this.off(i,"mouseup",this.handleMouseUpHandler_),this.off(i,"touchend",this.handleMouseUpHandler_)},n.handleMouseMove=function(a){this.volumeBar.handleMouseMove(a)},t}(ut);OL.prototype.options_={children:["volumeBar"]};ut.registerComponent("VolumeControl",OL);var x_e=function(t,n){n.tech_&&!n.tech_.featuresMuteControl&&t.addClass("vjs-hidden"),t.on(n,"loadstart",function(){n.tech_.featuresMuteControl?t.removeClass("vjs-hidden"):t.addClass("vjs-hidden")})},ML=function(e){Tt(t,e);function t(r,a){var i;return i=e.call(this,r,a)||this,x_e(Qt(i),r),i.on(r,["loadstart","volumechange"],function(o){return i.update(o)}),i}var n=t.prototype;return n.buildCSSClass=function(){return"vjs-mute-control "+e.prototype.buildCSSClass.call(this)},n.handleClick=function(a){var i=this.player_.volume(),o=this.player_.lastVolume_();if(i===0){var s=o<.1?.1:o;this.player_.volume(s),this.player_.muted(!1)}else this.player_.muted(!this.player_.muted())},n.update=function(a){this.updateIcon_(),this.updateControlText_()},n.updateIcon_=function(){var a=this.player_.volume(),i=3;la&&this.player_.tech_&&this.player_.tech_.el_&&this.player_.muted(this.player_.tech_.el_.muted),a===0||this.player_.muted()?i=0:a<.33?i=1:a<.67&&(i=2);for(var o=0;o<4;o++)Ip(this.el_,"vjs-vol-"+o);Vo(this.el_,"vjs-vol-"+i)},n.updateControlText_=function(){var a=this.player_.muted()||this.player_.volume()===0,i=a?"Unmute":"Mute";this.controlText()!==i&&this.controlText(i)},t}(Ti);ML.prototype.controlText_="Mute";ut.registerComponent("MuteToggle",ML);var RL=function(e){Tt(t,e);function t(r,a){var i;return a===void 0&&(a={}),typeof a.inline<"u"?a.inline=a.inline:a.inline=!0,(typeof a.volumeControl>"u"||Wf(a.volumeControl))&&(a.volumeControl=a.volumeControl||{},a.volumeControl.vertical=!a.inline),i=e.call(this,r,a)||this,i.handleKeyPressHandler_=function(o){return i.handleKeyPress(o)},i.on(r,["loadstart"],function(o){return i.volumePanelState_(o)}),i.on(i.muteToggle,"keyup",function(o){return i.handleKeyPress(o)}),i.on(i.volumeControl,"keyup",function(o){return i.handleVolumeControlKeyUp(o)}),i.on("keydown",function(o){return i.handleKeyPress(o)}),i.on("mouseover",function(o){return i.handleMouseOver(o)}),i.on("mouseout",function(o){return i.handleMouseOut(o)}),i.on(i.volumeControl,["slideractive"],i.sliderActive_),i.on(i.volumeControl,["sliderinactive"],i.sliderInactive_),i}var n=t.prototype;return n.sliderActive_=function(){this.addClass("vjs-slider-active")},n.sliderInactive_=function(){this.removeClass("vjs-slider-active")},n.volumePanelState_=function(){this.volumeControl.hasClass("vjs-hidden")&&this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-hidden"),this.volumeControl.hasClass("vjs-hidden")&&!this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-mute-toggle-only")},n.createEl=function(){var a="vjs-volume-panel-horizontal";return this.options_.inline||(a="vjs-volume-panel-vertical"),e.prototype.createEl.call(this,"div",{className:"vjs-volume-panel vjs-control "+a})},n.dispose=function(){this.handleMouseOut(),e.prototype.dispose.call(this)},n.handleVolumeControlKeyUp=function(a){Jt.isEventKey(a,"Esc")&&this.muteToggle.focus()},n.handleMouseOver=function(a){this.addClass("vjs-hover"),Ha(vt,"keyup",this.handleKeyPressHandler_)},n.handleMouseOut=function(a){this.removeClass("vjs-hover"),Hr(vt,"keyup",this.handleKeyPressHandler_)},n.handleKeyPress=function(a){Jt.isEventKey(a,"Esc")&&this.handleMouseOut()},t}(ut);RL.prototype.options_={children:["muteToggle","volumeControl"]};ut.registerComponent("VolumePanel",RL);var LL=function(e){Tt(t,e);function t(r,a){var i;return i=e.call(this,r,a)||this,a&&(i.menuButton_=a.menuButton),i.focusedChild_=-1,i.on("keydown",function(o){return i.handleKeyDown(o)}),i.boundHandleBlur_=function(o){return i.handleBlur(o)},i.boundHandleTapClick_=function(o){return i.handleTapClick(o)},i}var n=t.prototype;return n.addEventListenerForItem=function(a){a instanceof ut&&(this.on(a,"blur",this.boundHandleBlur_),this.on(a,["tap","click"],this.boundHandleTapClick_))},n.removeEventListenerForItem=function(a){a instanceof ut&&(this.off(a,"blur",this.boundHandleBlur_),this.off(a,["tap","click"],this.boundHandleTapClick_))},n.removeChild=function(a){typeof a=="string"&&(a=this.getChild(a)),this.removeEventListenerForItem(a),e.prototype.removeChild.call(this,a)},n.addItem=function(a){var i=this.addChild(a);i&&this.addEventListenerForItem(i)},n.createEl=function(){var a=this.options_.contentElType||"ul";this.contentEl_=gn(a,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");var i=e.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return i.appendChild(this.contentEl_),Ha(i,"click",function(o){o.preventDefault(),o.stopImmediatePropagation()}),i},n.dispose=function(){this.contentEl_=null,this.boundHandleBlur_=null,this.boundHandleTapClick_=null,e.prototype.dispose.call(this)},n.handleBlur=function(a){var i=a.relatedTarget||vt.activeElement;if(!this.children().some(function(s){return s.el()===i})){var o=this.menuButton_;o&&o.buttonPressed_&&i!==o.el().firstChild&&o.unpressButton()}},n.handleTapClick=function(a){if(this.menuButton_){this.menuButton_.unpressButton();var i=this.children();if(!Array.isArray(i))return;var o=i.filter(function(s){return s.el()===a.target})[0];if(!o)return;o.name()!=="CaptionSettingsMenuItem"&&this.menuButton_.focus()}},n.handleKeyDown=function(a){Jt.isEventKey(a,"Left")||Jt.isEventKey(a,"Down")?(a.preventDefault(),a.stopPropagation(),this.stepForward()):(Jt.isEventKey(a,"Right")||Jt.isEventKey(a,"Up"))&&(a.preventDefault(),a.stopPropagation(),this.stepBack())},n.stepForward=function(){var a=0;this.focusedChild_!==void 0&&(a=this.focusedChild_+1),this.focus(a)},n.stepBack=function(){var a=0;this.focusedChild_!==void 0&&(a=this.focusedChild_-1),this.focus(a)},n.focus=function(a){a===void 0&&(a=0);var i=this.children().slice(),o=i.length&&i[0].hasClass("vjs-menu-title");o&&i.shift(),i.length>0&&(a<0?a=0:a>=i.length&&(a=i.length-1),this.focusedChild_=a,i[a].el_.focus())},t}(ut);ut.registerComponent("Menu",LL);var RT=function(e){Tt(t,e);function t(r,a){var i;a===void 0&&(a={}),i=e.call(this,r,a)||this,i.menuButton_=new Ti(r,a),i.menuButton_.controlText(i.controlText_),i.menuButton_.el_.setAttribute("aria-haspopup","true");var o=Ti.prototype.buildCSSClass();i.menuButton_.el_.className=i.buildCSSClass()+" "+o,i.menuButton_.removeClass("vjs-control"),i.addChild(i.menuButton_),i.update(),i.enabled_=!0;var s=function(u){return i.handleClick(u)};return i.handleMenuKeyUp_=function(l){return i.handleMenuKeyUp(l)},i.on(i.menuButton_,"tap",s),i.on(i.menuButton_,"click",s),i.on(i.menuButton_,"keydown",function(l){return i.handleKeyDown(l)}),i.on(i.menuButton_,"mouseenter",function(){i.addClass("vjs-hover"),i.menu.show(),Ha(vt,"keyup",i.handleMenuKeyUp_)}),i.on("mouseleave",function(l){return i.handleMouseLeave(l)}),i.on("keydown",function(l){return i.handleSubmenuKeyDown(l)}),i}var n=t.prototype;return n.update=function(){var a=this.createMenu();this.menu&&(this.menu.dispose(),this.removeChild(this.menu)),this.menu=a,this.addChild(a),this.buttonPressed_=!1,this.menuButton_.el_.setAttribute("aria-expanded","false"),this.items&&this.items.length<=this.hideThreshold_?(this.hide(),this.menu.contentEl_.removeAttribute("role")):(this.show(),this.menu.contentEl_.setAttribute("role","menu"))},n.createMenu=function(){var a=new LL(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){var i=gn("li",{className:"vjs-menu-title",textContent:Zn(this.options_.title),tabIndex:-1}),o=new ut(this.player_,{el:i});a.addItem(o)}if(this.items=this.createItems(),this.items)for(var s=0;s<this.items.length;s++)a.addItem(this.items[s]);return a},n.createItems=function(){},n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildWrapperCSSClass()},{})},n.buildWrapperCSSClass=function(){var a="vjs-menu-button";this.options_.inline===!0?a+="-inline":a+="-popup";var i=Ti.prototype.buildCSSClass();return"vjs-menu-button "+a+" "+i+" "+e.prototype.buildCSSClass.call(this)},n.buildCSSClass=function(){var a="vjs-menu-button";return this.options_.inline===!0?a+="-inline":a+="-popup","vjs-menu-button "+a+" "+e.prototype.buildCSSClass.call(this)},n.controlText=function(a,i){return i===void 0&&(i=this.menuButton_.el()),this.menuButton_.controlText(a,i)},n.dispose=function(){this.handleMouseLeave(),e.prototype.dispose.call(this)},n.handleClick=function(a){this.buttonPressed_?this.unpressButton():this.pressButton()},n.handleMouseLeave=function(a){this.removeClass("vjs-hover"),Hr(vt,"keyup",this.handleMenuKeyUp_)},n.focus=function(){this.menuButton_.focus()},n.blur=function(){this.menuButton_.blur()},n.handleKeyDown=function(a){Jt.isEventKey(a,"Esc")||Jt.isEventKey(a,"Tab")?(this.buttonPressed_&&this.unpressButton(),Jt.isEventKey(a,"Tab")||(a.preventDefault(),this.menuButton_.focus())):(Jt.isEventKey(a,"Up")||Jt.isEventKey(a,"Down"))&&(this.buttonPressed_||(a.preventDefault(),this.pressButton()))},n.handleMenuKeyUp=function(a){(Jt.isEventKey(a,"Esc")||Jt.isEventKey(a,"Tab"))&&this.removeClass("vjs-hover")},n.handleSubmenuKeyPress=function(a){this.handleSubmenuKeyDown(a)},n.handleSubmenuKeyDown=function(a){(Jt.isEventKey(a,"Esc")||Jt.isEventKey(a,"Tab"))&&(this.buttonPressed_&&this.unpressButton(),Jt.isEventKey(a,"Tab")||(a.preventDefault(),this.menuButton_.focus()))},n.pressButton=function(){if(this.enabled_){if(this.buttonPressed_=!0,this.menu.show(),this.menu.lockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","true"),la&&XR())return;this.menu.focus()}},n.unpressButton=function(){this.enabled_&&(this.buttonPressed_=!1,this.menu.unlockShowing(),this.menu.hide(),this.menuButton_.el_.setAttribute("aria-expanded","false"))},n.disable=function(){this.unpressButton(),this.enabled_=!1,this.addClass("vjs-disabled"),this.menuButton_.disable()},n.enable=function(){this.enabled_=!0,this.removeClass("vjs-disabled"),this.menuButton_.enable()},t}(ut);ut.registerComponent("MenuButton",RT);var LT=function(e){Tt(t,e);function t(n,r){var a,i=r.tracks;if(a=e.call(this,n,r)||this,a.items.length<=1&&a.hide(),!i)return Qt(a);var o=Hn(Qt(a),a.update);return i.addEventListener("removetrack",o),i.addEventListener("addtrack",o),i.addEventListener("labelchange",o),a.player_.on("ready",o),a.player_.on("dispose",function(){i.removeEventListener("removetrack",o),i.removeEventListener("addtrack",o),i.removeEventListener("labelchange",o)}),a}return t}(RT);ut.registerComponent("TrackButton",LT);var k_e=["Tab","Esc","Up","Down","Right","Left"],Op=function(e){Tt(t,e);function t(r,a){var i;return i=e.call(this,r,a)||this,i.selectable=a.selectable,i.isSelected_=a.selected||!1,i.multiSelectable=a.multiSelectable,i.selected(i.isSelected_),i.selectable?i.multiSelectable?i.el_.setAttribute("role","menuitemcheckbox"):i.el_.setAttribute("role","menuitemradio"):i.el_.setAttribute("role","menuitem"),i}var n=t.prototype;return n.createEl=function(a,i,o){this.nonIconControl=!0;var s=e.prototype.createEl.call(this,"li",Yn({className:"vjs-menu-item",tabIndex:-1},i),o);return s.replaceChild(gn("span",{className:"vjs-menu-item-text",textContent:this.localize(this.options_.label)}),s.querySelector(".vjs-icon-placeholder")),s},n.handleKeyDown=function(a){k_e.some(function(i){return Jt.isEventKey(a,i)})||e.prototype.handleKeyDown.call(this,a)},n.handleClick=function(a){this.selected(!0)},n.selected=function(a){this.selectable&&(a?(this.addClass("vjs-selected"),this.el_.setAttribute("aria-checked","true"),this.controlText(", selected"),this.isSelected_=!0):(this.removeClass("vjs-selected"),this.el_.setAttribute("aria-checked","false"),this.controlText(""),this.isSelected_=!1))},t}(Dg);ut.registerComponent("MenuItem",Op);var Mp=function(e){Tt(t,e);function t(r,a){var i,o=a.track,s=r.textTracks();a.label=o.label||o.language||"Unknown",a.selected=o.mode==="showing",i=e.call(this,r,a)||this,i.track=o,i.kinds=(a.kinds||[a.kind||i.track.kind]).filter(Boolean);var l=function(){for(var p=arguments.length,h=new Array(p),v=0;v<p;v++)h[v]=arguments[v];i.handleTracksChange.apply(Qt(i),h)},u=function(){for(var p=arguments.length,h=new Array(p),v=0;v<p;v++)h[v]=arguments[v];i.handleSelectedLanguageChange.apply(Qt(i),h)};if(r.on(["loadstart","texttrackchange"],l),s.addEventListener("change",l),s.addEventListener("selectedlanguagechange",u),i.on("dispose",function(){r.off(["loadstart","texttrackchange"],l),s.removeEventListener("change",l),s.removeEventListener("selectedlanguagechange",u)}),s.onchange===void 0){var c;i.on(["tap","click"],function(){if(typeof Te.Event!="object")try{c=new Te.Event("change")}catch{}c||(c=vt.createEvent("Event"),c.initEvent("change",!0,!0)),s.dispatchEvent(c)})}return i.handleTracksChange(),i}var n=t.prototype;return n.handleClick=function(a){var i=this.track,o=this.player_.textTracks();if(e.prototype.handleClick.call(this,a),!!o)for(var s=0;s<o.length;s++){var l=o[s];this.kinds.indexOf(l.kind)!==-1&&(l===i?l.mode!=="showing"&&(l.mode="showing"):l.mode!=="disabled"&&(l.mode="disabled"))}},n.handleTracksChange=function(a){var i=this.track.mode==="showing";i!==this.isSelected_&&this.selected(i)},n.handleSelectedLanguageChange=function(a){if(this.track.mode==="showing"){var i=this.player_.cache_.selectedLanguage;if(i&&i.enabled&&i.language===this.track.language&&i.kind!==this.track.kind)return;this.player_.cache_.selectedLanguage={enabled:!0,language:this.track.language,kind:this.track.kind}}},n.dispose=function(){this.track=null,e.prototype.dispose.call(this)},t}(Op);ut.registerComponent("TextTrackMenuItem",Mp);var NL=function(e){Tt(t,e);function t(r,a){return a.track={player:r,kind:a.kind,kinds:a.kinds,default:!1,mode:"disabled"},a.kinds||(a.kinds=[a.kind]),a.label?a.track.label=a.label:a.track.label=a.kinds.join(" and ")+" off",a.selectable=!0,a.multiSelectable=!1,e.call(this,r,a)||this}var n=t.prototype;return n.handleTracksChange=function(a){for(var i=this.player().textTracks(),o=!0,s=0,l=i.length;s<l;s++){var u=i[s];if(this.options_.kinds.indexOf(u.kind)>-1&&u.mode==="showing"){o=!1;break}}o!==this.isSelected_&&this.selected(o)},n.handleSelectedLanguageChange=function(a){for(var i=this.player().textTracks(),o=!0,s=0,l=i.length;s<l;s++){var u=i[s];if(["captions","descriptions","subtitles"].indexOf(u.kind)>-1&&u.mode==="showing"){o=!1;break}}o&&(this.player_.cache_.selectedLanguage={enabled:!1})},t}(Mp);ut.registerComponent("OffTextTrackMenuItem",NL);var Jc=function(e){Tt(t,e);function t(r,a){return a===void 0&&(a={}),a.tracks=r.textTracks(),e.call(this,r,a)||this}var n=t.prototype;return n.createItems=function(a,i){a===void 0&&(a=[]),i===void 0&&(i=Mp);var o;this.label_&&(o=this.label_+" off"),a.push(new NL(this.player_,{kinds:this.kinds_,kind:this.kind_,label:o})),this.hideThreshold_+=1;var s=this.player_.textTracks();Array.isArray(this.kinds_)||(this.kinds_=[this.kind_]);for(var l=0;l<s.length;l++){var u=s[l];if(this.kinds_.indexOf(u.kind)>-1){var c=new i(this.player_,{track:u,kinds:this.kinds_,kind:this.kind_,selectable:!0,multiSelectable:!1});c.addClass("vjs-"+u.kind+"-menu-item"),a.push(c)}}return a},t}(LT);ut.registerComponent("TextTrackButton",Jc);var FL=function(e){Tt(t,e);function t(r,a){var i,o=a.track,s=a.cue,l=r.currentTime();return a.selectable=!0,a.multiSelectable=!1,a.label=s.text,a.selected=s.startTime<=l&&l<s.endTime,i=e.call(this,r,a)||this,i.track=o,i.cue=s,i}var n=t.prototype;return n.handleClick=function(a){e.prototype.handleClick.call(this),this.player_.currentTime(this.cue.startTime)},t}(Op);ut.registerComponent("ChaptersTrackMenuItem",FL);var NT=function(e){Tt(t,e);function t(r,a,i){var o;return o=e.call(this,r,a,i)||this,o.selectCurrentItem_=function(){o.items.forEach(function(s){s.selected(o.track_.activeCues[0]===s.cue)})},o}var n=t.prototype;return n.buildCSSClass=function(){return"vjs-chapters-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-chapters-button "+e.prototype.buildWrapperCSSClass.call(this)},n.update=function(a){if(!(a&&a.track&&a.track.kind!=="chapters")){var i=this.findChaptersTrack();i!==this.track_?(this.setTrack(i),e.prototype.update.call(this)):(!this.items||i&&i.cues&&i.cues.length!==this.items.length)&&e.prototype.update.call(this)}},n.setTrack=function(a){if(this.track_!==a){if(this.updateHandler_||(this.updateHandler_=this.update.bind(this)),this.track_){var i=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);i&&i.removeEventListener("load",this.updateHandler_),this.track_.removeEventListener("cuechange",this.selectCurrentItem_),this.track_=null}if(this.track_=a,this.track_){this.track_.mode="hidden";var o=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);o&&o.addEventListener("load",this.updateHandler_),this.track_.addEventListener("cuechange",this.selectCurrentItem_)}}},n.findChaptersTrack=function(){for(var a=this.player_.textTracks()||[],i=a.length-1;i>=0;i--){var o=a[i];if(o.kind===this.kind_)return o}},n.getMenuCaption=function(){return this.track_&&this.track_.label?this.track_.label:this.localize(Zn(this.kind_))},n.createMenu=function(){return this.options_.title=this.getMenuCaption(),e.prototype.createMenu.call(this)},n.createItems=function(){var a=[];if(!this.track_)return a;var i=this.track_.cues;if(!i)return a;for(var o=0,s=i.length;o<s;o++){var l=i[o],u=new FL(this.player_,{track:this.track_,cue:l});a.push(u)}return a},t}(Jc);NT.prototype.kind_="chapters";NT.prototype.controlText_="Chapters";ut.registerComponent("ChaptersButton",NT);var FT=function(e){Tt(t,e);function t(r,a,i){var o;o=e.call(this,r,a,i)||this;var s=r.textTracks(),l=Hn(Qt(o),o.handleTracksChange);return s.addEventListener("change",l),o.on("dispose",function(){s.removeEventListener("change",l)}),o}var n=t.prototype;return n.handleTracksChange=function(a){for(var i=this.player().textTracks(),o=!1,s=0,l=i.length;s<l;s++){var u=i[s];if(u.kind!==this.kind_&&u.mode==="showing"){o=!0;break}}o?this.disable():this.enable()},n.buildCSSClass=function(){return"vjs-descriptions-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-descriptions-button "+e.prototype.buildWrapperCSSClass.call(this)},t}(Jc);FT.prototype.kind_="descriptions";FT.prototype.controlText_="Descriptions";ut.registerComponent("DescriptionsButton",FT);var $T=function(e){Tt(t,e);function t(r,a,i){return e.call(this,r,a,i)||this}var n=t.prototype;return n.buildCSSClass=function(){return"vjs-subtitles-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-subtitles-button "+e.prototype.buildWrapperCSSClass.call(this)},t}(Jc);$T.prototype.kind_="subtitles";$T.prototype.controlText_="Subtitles";ut.registerComponent("SubtitlesButton",$T);var BT=function(e){Tt(t,e);function t(r,a){var i;return a.track={player:r,kind:a.kind,label:a.kind+" settings",selectable:!1,default:!1,mode:"disabled"},a.selectable=!1,a.name="CaptionSettingsMenuItem",i=e.call(this,r,a)||this,i.addClass("vjs-texttrack-settings"),i.controlText(", opens "+a.kind+" settings dialog"),i}var n=t.prototype;return n.handleClick=function(a){this.player().getChild("textTrackSettings").open()},t}(Mp);ut.registerComponent("CaptionSettingsMenuItem",BT);var VT=function(e){Tt(t,e);function t(r,a,i){return e.call(this,r,a,i)||this}var n=t.prototype;return n.buildCSSClass=function(){return"vjs-captions-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-captions-button "+e.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(){var a=[];return!(this.player().tech_&&this.player().tech_.featuresNativeTextTracks)&&this.player().getChild("textTrackSettings")&&(a.push(new BT(this.player_,{kind:this.kind_})),this.hideThreshold_+=1),e.prototype.createItems.call(this,a)},t}(Jc);VT.prototype.kind_="captions";VT.prototype.controlText_="Captions";ut.registerComponent("CaptionsButton",VT);var $L=function(e){Tt(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.createEl=function(a,i,o){var s=e.prototype.createEl.call(this,a,i,o),l=s.querySelector(".vjs-menu-item-text");return this.options_.track.kind==="captions"&&(l.appendChild(gn("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),l.appendChild(gn("span",{className:"vjs-control-text",textContent:" "+this.localize("Captions")}))),s},t}(Mp);ut.registerComponent("SubsCapsMenuItem",$L);var UT=function(e){Tt(t,e);function t(r,a){var i;return a===void 0&&(a={}),i=e.call(this,r,a)||this,i.label_="subtitles",["en","en-us","en-ca","fr-ca"].indexOf(i.player_.language_)>-1&&(i.label_="captions"),i.menuButton_.controlText(Zn(i.label_)),i}var n=t.prototype;return n.buildCSSClass=function(){return"vjs-subs-caps-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-subs-caps-button "+e.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(){var a=[];return!(this.player().tech_&&this.player().tech_.featuresNativeTextTracks)&&this.player().getChild("textTrackSettings")&&(a.push(new BT(this.player_,{kind:this.label_})),this.hideThreshold_+=1),a=e.prototype.createItems.call(this,a,$L),a},t}(Jc);UT.prototype.kinds_=["captions","subtitles"];UT.prototype.controlText_="Subtitles";ut.registerComponent("SubsCapsButton",UT);var BL=function(e){Tt(t,e);function t(r,a){var i,o=a.track,s=r.audioTracks();a.label=o.label||o.language||"Unknown",a.selected=o.enabled,i=e.call(this,r,a)||this,i.track=o,i.addClass("vjs-"+o.kind+"-menu-item");var l=function(){for(var c=arguments.length,d=new Array(c),p=0;p<c;p++)d[p]=arguments[p];i.handleTracksChange.apply(Qt(i),d)};return s.addEventListener("change",l),i.on("dispose",function(){s.removeEventListener("change",l)}),i}var n=t.prototype;return n.createEl=function(a,i,o){var s=e.prototype.createEl.call(this,a,i,o),l=s.querySelector(".vjs-menu-item-text");return this.options_.track.kind==="main-desc"&&(l.appendChild(gn("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),l.appendChild(gn("span",{className:"vjs-control-text",textContent:" "+this.localize("Descriptions")}))),s},n.handleClick=function(a){if(e.prototype.handleClick.call(this,a),this.track.enabled=!0,this.player_.tech_.featuresNativeAudioTracks)for(var i=this.player_.audioTracks(),o=0;o<i.length;o++){var s=i[o];s!==this.track&&(s.enabled=s===this.track)}},n.handleTracksChange=function(a){this.selected(this.track.enabled)},t}(Op);ut.registerComponent("AudioTrackMenuItem",BL);var VL=function(e){Tt(t,e);function t(r,a){return a===void 0&&(a={}),a.tracks=r.audioTracks(),e.call(this,r,a)||this}var n=t.prototype;return n.buildCSSClass=function(){return"vjs-audio-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-audio-button "+e.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(a){a===void 0&&(a=[]),this.hideThreshold_=1;for(var i=this.player_.audioTracks(),o=0;o<i.length;o++){var s=i[o];a.push(new BL(this.player_,{track:s,selectable:!0,multiSelectable:!1}))}return a},t}(LT);VL.prototype.controlText_="Audio Track";ut.registerComponent("AudioTrackButton",VL);var HT=function(e){Tt(t,e);function t(r,a){var i,o=a.rate,s=parseFloat(o,10);return a.label=o,a.selected=s===r.playbackRate(),a.selectable=!0,a.multiSelectable=!1,i=e.call(this,r,a)||this,i.label=o,i.rate=s,i.on(r,"ratechange",function(l){return i.update(l)}),i}var n=t.prototype;return n.handleClick=function(a){e.prototype.handleClick.call(this),this.player().playbackRate(this.rate)},n.update=function(a){this.selected(this.player().playbackRate()===this.rate)},t}(Op);HT.prototype.contentElType="button";ut.registerComponent("PlaybackRateMenuItem",HT);var UL=function(e){Tt(t,e);function t(r,a){var i;return i=e.call(this,r,a)||this,i.menuButton_.el_.setAttribute("aria-describedby",i.labelElId_),i.updateVisibility(),i.updateLabel(),i.on(r,"loadstart",function(o){return i.updateVisibility(o)}),i.on(r,"ratechange",function(o){return i.updateLabel(o)}),i.on(r,"playbackrateschange",function(o){return i.handlePlaybackRateschange(o)}),i}var n=t.prototype;return n.createEl=function(){var a=e.prototype.createEl.call(this);return this.labelElId_="vjs-playback-rate-value-label-"+this.id_,this.labelEl_=gn("div",{className:"vjs-playback-rate-value",id:this.labelElId_,textContent:"1x"}),a.appendChild(this.labelEl_),a},n.dispose=function(){this.labelEl_=null,e.prototype.dispose.call(this)},n.buildCSSClass=function(){return"vjs-playback-rate "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-playback-rate "+e.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(){for(var a=this.playbackRates(),i=[],o=a.length-1;o>=0;o--)i.push(new HT(this.player(),{rate:a[o]+"x"}));return i},n.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},n.handleClick=function(a){var i=this.player().playbackRate(),o=this.playbackRates(),s=o.indexOf(i),l=(s+1)%o.length;this.player().playbackRate(o[l])},n.handlePlaybackRateschange=function(a){this.update()},n.playbackRates=function(){var a=this.player();return a.playbackRates&&a.playbackRates()||[]},n.playbackRateSupported=function(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0},n.updateVisibility=function(a){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},n.updateLabel=function(a){this.playbackRateSupported()&&(this.labelEl_.textContent=this.player().playbackRate()+"x")},t}(RT);UL.prototype.controlText_="Playback Rate";ut.registerComponent("PlaybackRateMenuButton",UL);var HL=function(e){Tt(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.buildCSSClass=function(){return"vjs-spacer "+e.prototype.buildCSSClass.call(this)},n.createEl=function(a,i,o){return a===void 0&&(a="div"),i===void 0&&(i={}),o===void 0&&(o={}),i.className||(i.className=this.buildCSSClass()),e.prototype.createEl.call(this,a,i,o)},t}(ut);ut.registerComponent("Spacer",HL);var A_e=function(e){Tt(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.buildCSSClass=function(){return"vjs-custom-control-spacer "+e.prototype.buildCSSClass.call(this)},n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),textContent:" "})},t}(HL);ut.registerComponent("CustomControlSpacer",A_e);var ev=function(e){Tt(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-control-bar",dir:"ltr"})},t}(ut);ev.prototype.options_={children:["playToggle","volumePanel","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","seekToLive","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subsCapsButton","audioTrackButton","fullscreenToggle"]};"exitPictureInPicture"in vt&&ev.prototype.options_.children.splice(ev.prototype.options_.children.length-1,0,"pictureInPictureToggle");ut.registerComponent("ControlBar",ev);var zL=function(e){Tt(t,e);function t(r,a){var i;return i=e.call(this,r,a)||this,i.on(r,"error",function(o){return i.open(o)}),i}var n=t.prototype;return n.buildCSSClass=function(){return"vjs-error-display "+e.prototype.buildCSSClass.call(this)},n.content=function(){var a=this.player().error();return a?this.localize(a.message):""},t}(Yc);zL.prototype.options_=oi({},Yc.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0});ut.registerComponent("ErrorDisplay",zL);var J0="vjs-text-track-settings",Dk=["#000","Black"],Ik=["#00F","Blue"],Pk=["#0FF","Cyan"],Ok=["#0F0","Green"],Mk=["#F0F","Magenta"],Rk=["#F00","Red"],Lk=["#FFF","White"],Nk=["#FF0","Yellow"],Z0=["1","Opaque"],ey=["0.5","Semi-Transparent"],Fk=["0","Transparent"],pl={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[Dk,Lk,Rk,Ok,Ik,Nk,Mk,Pk]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Transparency",options:[Z0,ey,Fk]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"Color",options:[Lk,Dk,Rk,Ok,Ik,Nk,Mk,Pk]},edgeStyle:{selector:".vjs-edge-style > select",id:"%s",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Dropshadow"]]},fontFamily:{selector:".vjs-font-family > select",id:"captions-font-family-%s",label:"Font Family",options:[["proportionalSansSerif","Proportional Sans-Serif"],["monospaceSansSerif","Monospace Sans-Serif"],["proportionalSerif","Proportional Serif"],["monospaceSerif","Monospace Serif"],["casual","Casual"],["script","Script"],["small-caps","Small Caps"]]},fontPercent:{selector:".vjs-font-percent > select",id:"captions-font-size-%s",label:"Font Size",options:[["0.50","50%"],["0.75","75%"],["1.00","100%"],["1.25","125%"],["1.50","150%"],["1.75","175%"],["2.00","200%"],["3.00","300%"],["4.00","400%"]],default:2,parser:function(t){return t==="1.00"?null:Number(t)}},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Transparency",options:[Z0,ey]},windowColor:{selector:".vjs-window-color > select",id:"captions-window-color-%s",label:"Color"},windowOpacity:{selector:".vjs-window-opacity > select",id:"captions-window-opacity-%s",label:"Transparency",options:[Fk,ey,Z0]}};pl.windowColor.options=pl.backgroundColor.options;function jL(e,t){if(t&&(e=t(e)),e&&e!=="none")return e}function D_e(e,t){var n=e.options[e.options.selectedIndex].value;return jL(n,t)}function I_e(e,t,n){if(t){for(var r=0;r<e.options.length;r++)if(jL(e.options[r].value,n)===t){e.selectedIndex=r;break}}}var P_e=function(e){Tt(t,e);function t(r,a){var i;return a.temporary=!1,i=e.call(this,r,a)||this,i.updateDisplay=i.updateDisplay.bind(Qt(i)),i.fill(),i.hasBeenOpened_=i.hasBeenFilled_=!0,i.endDialog=gn("p",{className:"vjs-control-text",textContent:i.localize("End of dialog window.")}),i.el().appendChild(i.endDialog),i.setDefaults(),a.persistTextTrackSettings===void 0&&(i.options_.persistTextTrackSettings=i.options_.playerOptions.persistTextTrackSettings),i.on(i.$(".vjs-done-button"),"click",function(){i.saveSettings(),i.close()}),i.on(i.$(".vjs-default-button"),"click",function(){i.setDefaults(),i.updateDisplay()}),ju(pl,function(o){i.on(i.$(o.selector),"change",i.updateDisplay)}),i.options_.persistTextTrackSettings&&i.restoreSettings(),i}var n=t.prototype;return n.dispose=function(){this.endDialog=null,e.prototype.dispose.call(this)},n.createElSelect_=function(a,i,o){var s=this;i===void 0&&(i=""),o===void 0&&(o="label");var l=pl[a],u=l.id.replace("%s",this.id_),c=[i,u].join(" ").trim();return["<"+o+' id="'+u+'" class="'+(o==="label"?"vjs-label":"")+'">',this.localize(l.label),"</"+o+">",'<select aria-labelledby="'+c+'">'].concat(l.options.map(function(d){var p=u+"-"+d[1].replace(/\W+/g,"");return['<option id="'+p+'" value="'+d[0]+'" ','aria-labelledby="'+c+" "+p+'">',s.localize(d[1]),"</option>"].join("")})).concat("</select>").join("")},n.createElFgColor_=function(){var a="captions-text-legend-"+this.id_;return['<fieldset class="vjs-fg-color vjs-track-setting">','<legend id="'+a+'">',this.localize("Text"),"</legend>",this.createElSelect_("color",a),'<span class="vjs-text-opacity vjs-opacity">',this.createElSelect_("textOpacity",a),"</span>","</fieldset>"].join("")},n.createElBgColor_=function(){var a="captions-background-"+this.id_;return['<fieldset class="vjs-bg-color vjs-track-setting">','<legend id="'+a+'">',this.localize("Background"),"</legend>",this.createElSelect_("backgroundColor",a),'<span class="vjs-bg-opacity vjs-opacity">',this.createElSelect_("backgroundOpacity",a),"</span>","</fieldset>"].join("")},n.createElWinColor_=function(){var a="captions-window-"+this.id_;return['<fieldset class="vjs-window-color vjs-track-setting">','<legend id="'+a+'">',this.localize("Window"),"</legend>",this.createElSelect_("windowColor",a),'<span class="vjs-window-opacity vjs-opacity">',this.createElSelect_("windowOpacity",a),"</span>","</fieldset>"].join("")},n.createElColors_=function(){return gn("div",{className:"vjs-track-settings-colors",innerHTML:[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()].join("")})},n.createElFont_=function(){return gn("div",{className:"vjs-track-settings-font",innerHTML:['<fieldset class="vjs-font-percent vjs-track-setting">',this.createElSelect_("fontPercent","","legend"),"</fieldset>",'<fieldset class="vjs-edge-style vjs-track-setting">',this.createElSelect_("edgeStyle","","legend"),"</fieldset>",'<fieldset class="vjs-font-family vjs-track-setting">',this.createElSelect_("fontFamily","","legend"),"</fieldset>"].join("")})},n.createElControls_=function(){var a=this.localize("restore all settings to the default values");return gn("div",{className:"vjs-track-settings-controls",innerHTML:['<button type="button" class="vjs-default-button" title="'+a+'">',this.localize("Reset"),'<span class="vjs-control-text"> '+a+"</span>","</button>",'<button type="button" class="vjs-done-button">'+this.localize("Done")+"</button>"].join("")})},n.content=function(){return[this.createElColors_(),this.createElFont_(),this.createElControls_()]},n.label=function(){return this.localize("Caption Settings Dialog")},n.description=function(){return this.localize("Beginning of dialog window. Escape will cancel and close the window.")},n.buildCSSClass=function(){return e.prototype.buildCSSClass.call(this)+" vjs-text-track-settings"},n.getValues=function(){var a=this;return bbe(pl,function(i,o,s){var l=D_e(a.$(o.selector),o.parser);return l!==void 0&&(i[s]=l),i},{})},n.setValues=function(a){var i=this;ju(pl,function(o,s){I_e(i.$(o.selector),a[s],o.parser)})},n.setDefaults=function(){var a=this;ju(pl,function(i){var o=i.hasOwnProperty("default")?i.default:0;a.$(i.selector).selectedIndex=o})},n.restoreSettings=function(){var a;try{a=JSON.parse(Te.localStorage.getItem(J0))}catch(i){on.warn(i)}a&&this.setValues(a)},n.saveSettings=function(){if(this.options_.persistTextTrackSettings){var a=this.getValues();try{Object.keys(a).length?Te.localStorage.setItem(J0,JSON.stringify(a)):Te.localStorage.removeItem(J0)}catch(i){on.warn(i)}}},n.updateDisplay=function(){var a=this.player_.getChild("textTrackDisplay");a&&a.updateDisplay()},n.conditionalBlur_=function(){this.previouslyActiveEl_=null;var a=this.player_.controlBar,i=a&&a.subsCapsButton,o=a&&a.captionsButton;i?i.focus():o&&o.focus()},t}(Yc);ut.registerComponent("TextTrackSettings",P_e);var O_e=function(e){Tt(t,e);function t(r,a){var i,o=a.ResizeObserver||Te.ResizeObserver;a.ResizeObserver===null&&(o=!1);var s=Un({createEl:!o,reportTouchActivity:!1},a);return i=e.call(this,r,s)||this,i.ResizeObserver=a.ResizeObserver||Te.ResizeObserver,i.loadListener_=null,i.resizeObserver_=null,i.debouncedHandler_=Ibe(function(){i.resizeHandler()},100,!1,Qt(i)),o?(i.resizeObserver_=new i.ResizeObserver(i.debouncedHandler_),i.resizeObserver_.observe(r.el())):(i.loadListener_=function(){if(!(!i.el_||!i.el_.contentWindow)){var l=i.debouncedHandler_,u=i.unloadListener_=function(){Hr(this,"resize",l),Hr(this,"unload",u),u=null};Ha(i.el_.contentWindow,"unload",u),Ha(i.el_.contentWindow,"resize",l)}},i.one("load",i.loadListener_)),i}var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"iframe",{className:"vjs-resize-manager",tabIndex:-1,title:this.localize("No content")},{"aria-hidden":"true"})},n.resizeHandler=function(){!this.player_||!this.player_.trigger||this.player_.trigger("playerresize")},n.dispose=function(){this.debouncedHandler_&&this.debouncedHandler_.cancel(),this.resizeObserver_&&(this.player_.el()&&this.resizeObserver_.unobserve(this.player_.el()),this.resizeObserver_.disconnect()),this.loadListener_&&this.off("load",this.loadListener_),this.el_&&this.el_.contentWindow&&this.unloadListener_&&this.unloadListener_.call(this.el_.contentWindow),this.ResizeObserver=null,this.resizeObserver=null,this.debouncedHandler_=null,this.loadListener_=null,e.prototype.dispose.call(this)},t}(ut);ut.registerComponent("ResizeManager",O_e);var M_e={trackingThreshold:20,liveTolerance:15},R_e=function(e){Tt(t,e);function t(r,a){var i,o=Un(M_e,a,{createEl:!1});return i=e.call(this,r,o)||this,i.handleVisibilityChange_=function(s){return i.handleVisibilityChange(s)},i.trackLiveHandler_=function(){return i.trackLive_()},i.handlePlay_=function(s){return i.handlePlay(s)},i.handleFirstTimeupdate_=function(s){return i.handleFirstTimeupdate(s)},i.handleSeeked_=function(s){return i.handleSeeked(s)},i.seekToLiveEdge_=function(s){return i.seekToLiveEdge(s)},i.reset_(),i.on(i.player_,"durationchange",function(s){return i.handleDurationchange(s)}),i.on(i.player_,"canplay",function(){return i.toggleTracking()}),Dp&&"hidden"in vt&&"visibilityState"in vt&&i.on(vt,"visibilitychange",i.handleVisibilityChange_),i}var n=t.prototype;return n.handleVisibilityChange=function(){this.player_.duration()===1/0&&(vt.hidden?this.stopTracking():this.startTracking())},n.trackLive_=function(){var a=this.player_.seekable();if(!(!a||!a.length)){var i=Number(Te.performance.now().toFixed(4)),o=this.lastTime_===-1?0:(i-this.lastTime_)/1e3;this.lastTime_=i,this.pastSeekEnd_=this.pastSeekEnd()+o;var s=this.liveCurrentTime(),l=this.player_.currentTime(),u=this.player_.paused()||this.seekedBehindLive_||Math.abs(s-l)>this.options_.liveTolerance;(!this.timeupdateSeen_||s===1/0)&&(u=!1),u!==this.behindLiveEdge_&&(this.behindLiveEdge_=u,this.trigger("liveedgechange"))}},n.handleDurationchange=function(){this.toggleTracking()},n.toggleTracking=function(){this.player_.duration()===1/0&&this.liveWindow()>=this.options_.trackingThreshold?(this.player_.options_.liveui&&this.player_.addClass("vjs-liveui"),this.startTracking()):(this.player_.removeClass("vjs-liveui"),this.stopTracking())},n.startTracking=function(){this.isTracking()||(this.timeupdateSeen_||(this.timeupdateSeen_=this.player_.hasStarted()),this.trackingInterval_=this.setInterval(this.trackLiveHandler_,Ai),this.trackLive_(),this.on(this.player_,["play","pause"],this.trackLiveHandler_),this.timeupdateSeen_?this.on(this.player_,"seeked",this.handleSeeked_):(this.one(this.player_,"play",this.handlePlay_),this.one(this.player_,"timeupdate",this.handleFirstTimeupdate_)))},n.handleFirstTimeupdate=function(){this.timeupdateSeen_=!0,this.on(this.player_,"seeked",this.handleSeeked_)},n.handleSeeked=function(){var a=Math.abs(this.liveCurrentTime()-this.player_.currentTime());this.seekedBehindLive_=this.nextSeekedFromUser_&&a>2,this.nextSeekedFromUser_=!1,this.trackLive_()},n.handlePlay=function(){this.one(this.player_,"timeupdate",this.seekToLiveEdge_)},n.reset_=function(){this.lastTime_=-1,this.pastSeekEnd_=0,this.lastSeekEnd_=-1,this.behindLiveEdge_=!0,this.timeupdateSeen_=!1,this.seekedBehindLive_=!1,this.nextSeekedFromUser_=!1,this.clearInterval(this.trackingInterval_),this.trackingInterval_=null,this.off(this.player_,["play","pause"],this.trackLiveHandler_),this.off(this.player_,"seeked",this.handleSeeked_),this.off(this.player_,"play",this.handlePlay_),this.off(this.player_,"timeupdate",this.handleFirstTimeupdate_),this.off(this.player_,"timeupdate",this.seekToLiveEdge_)},n.nextSeekedFromUser=function(){this.nextSeekedFromUser_=!0},n.stopTracking=function(){this.isTracking()&&(this.reset_(),this.trigger("liveedgechange"))},n.seekableEnd=function(){for(var a=this.player_.seekable(),i=[],o=a?a.length:0;o--;)i.push(a.end(o));return i.length?i.sort()[i.length-1]:1/0},n.seekableStart=function(){for(var a=this.player_.seekable(),i=[],o=a?a.length:0;o--;)i.push(a.start(o));return i.length?i.sort()[0]:0},n.liveWindow=function(){var a=this.liveCurrentTime();return a===1/0?0:a-this.seekableStart()},n.isLive=function(){return this.isTracking()},n.atLiveEdge=function(){return!this.behindLiveEdge()},n.liveCurrentTime=function(){return this.pastSeekEnd()+this.seekableEnd()},n.pastSeekEnd=function(){var a=this.seekableEnd();return this.lastSeekEnd_!==-1&&a!==this.lastSeekEnd_&&(this.pastSeekEnd_=0),this.lastSeekEnd_=a,this.pastSeekEnd_},n.behindLiveEdge=function(){return this.behindLiveEdge_},n.isTracking=function(){return typeof this.trackingInterval_=="number"},n.seekToLiveEdge=function(){this.seekedBehindLive_=!1,!this.atLiveEdge()&&(this.nextSeekedFromUser_=!1,this.player_.currentTime(this.liveCurrentTime()))},n.dispose=function(){this.off(vt,"visibilitychange",this.handleVisibilityChange_),this.stopTracking(),e.prototype.dispose.call(this)},t}(ut);ut.registerComponent("LiveTracker",R_e);var a_=function(t){var n=t.el();if(n.hasAttribute("src"))return t.triggerSourceset(n.src),!0;var r=t.$$("source"),a=[],i="";if(!r.length)return!1;for(var o=0;o<r.length;o++){var s=r[o].src;s&&a.indexOf(s)===-1&&a.push(s)}return a.length?(a.length===1&&(i=a[0]),t.triggerSourceset(i),!0):!1},L_e=Object.defineProperty({},"innerHTML",{get:function(){return this.cloneNode(!0).innerHTML},set:function(t){var n=vt.createElement(this.nodeName.toLowerCase());n.innerHTML=t;for(var r=vt.createDocumentFragment();n.childNodes.length;)r.appendChild(n.childNodes[0]);return this.innerText="",Te.Element.prototype.appendChild.call(this,r),this.innerHTML}}),WL=function(t,n){for(var r={},a=0;a<t.length&&(r=Object.getOwnPropertyDescriptor(t[a],n),!(r&&r.set&&r.get));a++);return r.enumerable=!0,r.configurable=!0,r},N_e=function(t){return WL([t.el(),Te.HTMLMediaElement.prototype,Te.Element.prototype,L_e],"innerHTML")},$k=function(t){var n=t.el();if(!n.resetSourceWatch_){var r={},a=N_e(t),i=function(s){return function(){for(var l=arguments.length,u=new Array(l),c=0;c<l;c++)u[c]=arguments[c];var d=s.apply(n,u);return a_(t),d}};["append","appendChild","insertAdjacentHTML"].forEach(function(o){n[o]&&(r[o]=n[o],n[o]=i(r[o]))}),Object.defineProperty(n,"innerHTML",Un(a,{set:i(a.set)})),n.resetSourceWatch_=function(){n.resetSourceWatch_=null,Object.keys(r).forEach(function(o){n[o]=r[o]}),Object.defineProperty(n,"innerHTML",a)},t.one("sourceset",n.resetSourceWatch_)}},F_e=Object.defineProperty({},"src",{get:function(){return this.hasAttribute("src")?yL(Te.Element.prototype.getAttribute.call(this,"src")):""},set:function(t){return Te.Element.prototype.setAttribute.call(this,"src",t),t}}),$_e=function(t){return WL([t.el(),Te.HTMLMediaElement.prototype,F_e],"src")},B_e=function(t){if(t.featuresSourceset){var n=t.el();if(!n.resetSourceset_){var r=$_e(t),a=n.setAttribute,i=n.load;Object.defineProperty(n,"src",Un(r,{set:function(s){var l=r.set.call(n,s);return t.triggerSourceset(n.src),l}})),n.setAttribute=function(o,s){var l=a.call(n,o,s);return/src/i.test(o)&&t.triggerSourceset(n.src),l},n.load=function(){var o=i.call(n);return a_(t)||(t.triggerSourceset(""),$k(t)),o},n.currentSrc?t.triggerSourceset(n.currentSrc):a_(t)||$k(t),n.resetSourceset_=function(){n.resetSourceset_=null,n.load=i,n.setAttribute=a,Object.defineProperty(n,"src",r),n.resetSourceWatch_&&n.resetSourceWatch_()}}}},zT=function(t,n,r,a){a===void 0&&(a=!0);var i=function(l){return Object.defineProperty(t,n,{value:l,enumerable:!0,writable:!0})},o={configurable:!0,enumerable:!0,get:function(){var l=r();return i(l),l}};return a&&(o.set=i),Object.defineProperty(t,n,o)},At=function(e){Tt(t,e);function t(r,a){var i;i=e.call(this,r,a)||this;var o=r.source,s=!1;if(i.featuresVideoFrameCallback=i.featuresVideoFrameCallback&&i.el_.tagName==="VIDEO",o&&(i.el_.currentSrc!==o.src||r.tag&&r.tag.initNetworkState_===3)?i.setSource(o):i.handleLateInit_(i.el_),r.enableSourceset&&i.setupSourcesetHandling_(),i.isScrubbing_=!1,i.el_.hasChildNodes()){for(var l=i.el_.childNodes,u=l.length,c=[];u--;){var d=l[u],p=d.nodeName.toLowerCase();p==="track"&&(i.featuresNativeTextTracks?(i.remoteTextTrackEls().addTrackElement_(d),i.remoteTextTracks().addTrack(d.track),i.textTracks().addTrack(d.track),!s&&!i.el_.hasAttribute("crossorigin")&&Ag(d.src)&&(s=!0)):c.push(d))}for(var h=0;h<c.length;h++)i.el_.removeChild(c[h])}return i.proxyNativeTracks_(),i.featuresNativeTextTracks&&s&&on.warn(`Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.
This may prevent text tracks from loading.`),i.restoreMetadataTracksInIOSNativePlayer_(),(_c||yT||WR)&&r.nativeControlsForTouch===!0&&i.setControls(!0),i.proxyWebkitFullscreen_(),i.triggerReady(),i}var n=t.prototype;return n.dispose=function(){this.el_&&this.el_.resetSourceset_&&this.el_.resetSourceset_(),t.disposeMediaElement(this.el_),this.options_=null,e.prototype.dispose.call(this)},n.setupSourcesetHandling_=function(){B_e(this)},n.restoreMetadataTracksInIOSNativePlayer_=function(){var a=this.textTracks(),i,o=function(){i=[];for(var u=0;u<a.length;u++){var c=a[u];c.kind==="metadata"&&i.push({track:c,storedMode:c.mode})}};o(),a.addEventListener("change",o),this.on("dispose",function(){return a.removeEventListener("change",o)});var s=function l(){for(var u=0;u<i.length;u++){var c=i[u];c.track.mode==="disabled"&&c.track.mode!==c.storedMode&&(c.track.mode=c.storedMode)}a.removeEventListener("change",l)};this.on("webkitbeginfullscreen",function(){a.removeEventListener("change",o),a.removeEventListener("change",s),a.addEventListener("change",s)}),this.on("webkitendfullscreen",function(){a.removeEventListener("change",o),a.addEventListener("change",o),a.removeEventListener("change",s)})},n.overrideNative_=function(a,i){var o=this;if(i===this["featuresNative"+a+"Tracks"]){var s=a.toLowerCase();this[s+"TracksListeners_"]&&Object.keys(this[s+"TracksListeners_"]).forEach(function(l){var u=o.el()[s+"Tracks"];u.removeEventListener(l,o[s+"TracksListeners_"][l])}),this["featuresNative"+a+"Tracks"]=!i,this[s+"TracksListeners_"]=null,this.proxyNativeTracksForType_(s)}},n.overrideNativeAudioTracks=function(a){this.overrideNative_("Audio",a)},n.overrideNativeVideoTracks=function(a){this.overrideNative_("Video",a)},n.proxyNativeTracksForType_=function(a){var i=this,o=Za[a],s=this.el()[o.getterName],l=this[o.getterName]();if(!(!this["featuresNative"+o.capitalName+"Tracks"]||!s||!s.addEventListener)){var u={change:function(p){var h={type:"change",target:l,currentTarget:l,srcElement:l};l.trigger(h),a==="text"&&i[Cc.remoteText.getterName]().trigger(h)},addtrack:function(p){l.addTrack(p.track)},removetrack:function(p){l.removeTrack(p.track)}},c=function(){for(var p=[],h=0;h<l.length;h++){for(var v=!1,m=0;m<s.length;m++)if(s[m]===l[h]){v=!0;break}v||p.push(l[h])}for(;p.length;)l.removeTrack(p.shift())};this[o.getterName+"Listeners_"]=u,Object.keys(u).forEach(function(d){var p=u[d];s.addEventListener(d,p),i.on("dispose",function(h){return s.removeEventListener(d,p)})}),this.on("loadstart",c),this.on("dispose",function(d){return i.off("loadstart",c)})}},n.proxyNativeTracks_=function(){var a=this;Za.names.forEach(function(i){a.proxyNativeTracksForType_(i)})},n.createEl=function(){var a=this.options_.tag;if(!a||!(this.options_.playerElIngest||this.movingMediaElementInDOM)){if(a){var i=a.cloneNode(!0);a.parentNode&&a.parentNode.insertBefore(i,a),t.disposeMediaElement(a),a=i}else{a=vt.createElement("video");var o=this.options_.tag&&Ao(this.options_.tag),s=Un({},o);(!_c||this.options_.nativeControlsForTouch!==!0)&&delete s.controls,ZR(a,Yn(s,{id:this.options_.techId,class:"vjs-tech"}))}a.playerId=this.options_.playerId}typeof this.options_.preload<"u"&&Tc(a,"preload",this.options_.preload),this.options_.disablePictureInPicture!==void 0&&(a.disablePictureInPicture=this.options_.disablePictureInPicture);for(var l=["loop","muted","playsinline","autoplay"],u=0;u<l.length;u++){var c=l[u],d=this.options_[c];typeof d<"u"&&(d?Tc(a,c,c):Sg(a,c),a[c]=d)}return a},n.handleLateInit_=function(a){if(!(a.networkState===0||a.networkState===3)){if(a.readyState===0){var i=!1,o=function(){i=!0};this.on("loadstart",o);var s=function(){i||this.trigger("loadstart")};this.on("loadedmetadata",s),this.ready(function(){this.off("loadstart",o),this.off("loadedmetadata",s),i||this.trigger("loadstart")});return}var l=["loadstart"];l.push("loadedmetadata"),a.readyState>=2&&l.push("loadeddata"),a.readyState>=3&&l.push("canplay"),a.readyState>=4&&l.push("canplaythrough"),this.ready(function(){l.forEach(function(u){this.trigger(u)},this)})}},n.setScrubbing=function(a){this.isScrubbing_=a},n.scrubbing=function(){return this.isScrubbing_},n.setCurrentTime=function(a){try{this.isScrubbing_&&this.el_.fastSeek&&wg?this.el_.fastSeek(a):this.el_.currentTime=a}catch(i){on(i,"Video is not ready. (Video.js)")}},n.duration=function(){var a=this;if(this.el_.duration===1/0&&os&&ss&&this.el_.currentTime===0){var i=function o(){a.el_.currentTime>0&&(a.el_.duration===1/0&&a.trigger("durationchange"),a.off("timeupdate",o))};return this.on("timeupdate",i),NaN}return this.el_.duration||NaN},n.width=function(){return this.el_.offsetWidth},n.height=function(){return this.el_.offsetHeight},n.proxyWebkitFullscreen_=function(){var a=this;if("webkitDisplayingFullscreen"in this.el_){var i=function(){this.trigger("fullscreenchange",{isFullscreen:!1}),this.el_.controls&&!this.options_.nativeControlsForTouch&&this.controls()&&(this.el_.controls=!1)},o=function(){"webkitPresentationMode"in this.el_&&this.el_.webkitPresentationMode!=="picture-in-picture"&&(this.one("webkitendfullscreen",i),this.trigger("fullscreenchange",{isFullscreen:!0,nativeIOSFullscreen:!0}))};this.on("webkitbeginfullscreen",o),this.on("dispose",function(){a.off("webkitbeginfullscreen",o),a.off("webkitendfullscreen",i)})}},n.supportsFullScreen=function(){if(typeof this.el_.webkitEnterFullScreen=="function"){var a=Te.navigator&&Te.navigator.userAgent||"";if(/Android/.test(a)||!/Chrome|Mac OS X 10.5/.test(a))return!0}return!1},n.enterFullScreen=function(){var a=this.el_;if(a.paused&&a.networkState<=a.HAVE_METADATA)qi(this.el_.play()),this.setTimeout(function(){a.pause();try{a.webkitEnterFullScreen()}catch(i){this.trigger("fullscreenerror",i)}},0);else try{a.webkitEnterFullScreen()}catch(i){this.trigger("fullscreenerror",i)}},n.exitFullScreen=function(){if(!this.el_.webkitDisplayingFullscreen){this.trigger("fullscreenerror",new Error("The video is not fullscreen"));return}this.el_.webkitExitFullScreen()},n.requestPictureInPicture=function(){return this.el_.requestPictureInPicture()},n.requestVideoFrameCallback=function(a){return this.featuresVideoFrameCallback&&!this.el_.webkitKeys?this.el_.requestVideoFrameCallback(a):e.prototype.requestVideoFrameCallback.call(this,a)},n.cancelVideoFrameCallback=function(a){this.featuresVideoFrameCallback&&!this.el_.webkitKeys?this.el_.cancelVideoFrameCallback(a):e.prototype.cancelVideoFrameCallback.call(this,a)},n.src=function(a){if(a===void 0)return this.el_.src;this.setSrc(a)},n.reset=function(){t.resetMediaElement(this.el_)},n.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc},n.setControls=function(a){this.el_.controls=!!a},n.addTextTrack=function(a,i,o){return this.featuresNativeTextTracks?this.el_.addTextTrack(a,i,o):e.prototype.addTextTrack.call(this,a,i,o)},n.createRemoteTextTrack=function(a){if(!this.featuresNativeTextTracks)return e.prototype.createRemoteTextTrack.call(this,a);var i=vt.createElement("track");return a.kind&&(i.kind=a.kind),a.label&&(i.label=a.label),(a.language||a.srclang)&&(i.srclang=a.language||a.srclang),a.default&&(i.default=a.default),a.id&&(i.id=a.id),a.src&&(i.src=a.src),i},n.addRemoteTextTrack=function(a,i){var o=e.prototype.addRemoteTextTrack.call(this,a,i);return this.featuresNativeTextTracks&&this.el().appendChild(o),o},n.removeRemoteTextTrack=function(a){if(e.prototype.removeRemoteTextTrack.call(this,a),this.featuresNativeTextTracks)for(var i=this.$$("track"),o=i.length;o--;)(a===i[o]||a===i[o].track)&&this.el().removeChild(i[o])},n.getVideoPlaybackQuality=function(){if(typeof this.el().getVideoPlaybackQuality=="function")return this.el().getVideoPlaybackQuality();var a={};return typeof this.el().webkitDroppedFrameCount<"u"&&typeof this.el().webkitDecodedFrameCount<"u"&&(a.droppedVideoFrames=this.el().webkitDroppedFrameCount,a.totalVideoFrames=this.el().webkitDecodedFrameCount),Te.performance&&typeof Te.performance.now=="function"?a.creationTime=Te.performance.now():Te.performance&&Te.performance.timing&&typeof Te.performance.timing.navigationStart=="number"&&(a.creationTime=Te.Date.now()-Te.performance.timing.navigationStart),a},t}(Rn);zT(At,"TEST_VID",function(){if(Kc()){var e=vt.createElement("video"),t=vt.createElement("track");return t.kind="captions",t.srclang="en",t.label="English",e.appendChild(t),e}});At.isSupported=function(){try{At.TEST_VID.volume=.5}catch{return!1}return!!(At.TEST_VID&&At.TEST_VID.canPlayType)};At.canPlayType=function(e){return At.TEST_VID.canPlayType(e)};At.canPlaySource=function(e,t){return At.canPlayType(e.type)};At.canControlVolume=function(){try{var e=At.TEST_VID.volume;At.TEST_VID.volume=e/2+.1;var t=e!==At.TEST_VID.volume;return t&&la?(Te.setTimeout(function(){At&&At.prototype&&(At.prototype.featuresVolumeControl=e!==At.TEST_VID.volume)}),!1):t}catch{return!1}};At.canMuteVolume=function(){try{var e=At.TEST_VID.muted;return At.TEST_VID.muted=!e,At.TEST_VID.muted?Tc(At.TEST_VID,"muted","muted"):Sg(At.TEST_VID,"muted","muted"),e!==At.TEST_VID.muted}catch{return!1}};At.canControlPlaybackRate=function(){if(os&&ss&&qR<58)return!1;try{var e=At.TEST_VID.playbackRate;return At.TEST_VID.playbackRate=e/2+.1,e!==At.TEST_VID.playbackRate}catch{return!1}};At.canOverrideAttributes=function(){try{var e=function(){};Object.defineProperty(vt.createElement("video"),"src",{get:e,set:e}),Object.defineProperty(vt.createElement("audio"),"src",{get:e,set:e}),Object.defineProperty(vt.createElement("video"),"innerHTML",{get:e,set:e}),Object.defineProperty(vt.createElement("audio"),"innerHTML",{get:e,set:e})}catch{return!1}return!0};At.supportsNativeTextTracks=function(){return wg||la&&ss};At.supportsNativeVideoTracks=function(){return!!(At.TEST_VID&&At.TEST_VID.videoTracks)};At.supportsNativeAudioTracks=function(){return!!(At.TEST_VID&&At.TEST_VID.audioTracks)};At.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","resize","volumechange"];[["featuresMuteControl","canMuteVolume"],["featuresPlaybackRate","canControlPlaybackRate"],["featuresSourceset","canOverrideAttributes"],["featuresNativeTextTracks","supportsNativeTextTracks"],["featuresNativeVideoTracks","supportsNativeVideoTracks"],["featuresNativeAudioTracks","supportsNativeAudioTracks"]].forEach(function(e){var t=e[0],n=e[1];zT(At.prototype,t,function(){return At[n]()},!0)});At.prototype.featuresVolumeControl=At.canControlVolume();At.prototype.movingMediaElementInDOM=!la;At.prototype.featuresFullscreenResize=!0;At.prototype.featuresProgressEvents=!0;At.prototype.featuresTimeupdateEvents=!0;At.prototype.featuresVideoFrameCallback=!!(At.TEST_VID&&At.TEST_VID.requestVideoFrameCallback);var tv;At.patchCanPlayType=function(){mT>=4&&!KR&&!ss&&(tv=At.TEST_VID&&At.TEST_VID.constructor.prototype.canPlayType,At.TEST_VID.constructor.prototype.canPlayType=function(e){var t=/^application\/(?:x-|vnd\.apple\.)mpegurl/i;return e&&t.test(e)?"maybe":tv.call(this,e)})};At.unpatchCanPlayType=function(){var e=At.TEST_VID.constructor.prototype.canPlayType;return tv&&(At.TEST_VID.constructor.prototype.canPlayType=tv),e};At.patchCanPlayType();At.disposeMediaElement=function(e){if(e){for(e.parentNode&&e.parentNode.removeChild(e);e.hasChildNodes();)e.removeChild(e.firstChild);e.removeAttribute("src"),typeof e.load=="function"&&function(){try{e.load()}catch{}}()}};At.resetMediaElement=function(e){if(e){for(var t=e.querySelectorAll("source"),n=t.length;n--;)e.removeChild(t[n]);e.removeAttribute("src"),typeof e.load=="function"&&function(){try{e.load()}catch{}}()}};["muted","defaultMuted","autoplay","controls","loop","playsinline"].forEach(function(e){At.prototype[e]=function(){return this.el_[e]||this.el_.hasAttribute(e)}});["muted","defaultMuted","autoplay","loop","playsinline"].forEach(function(e){At.prototype["set"+Zn(e)]=function(t){this.el_[e]=t,t?this.el_.setAttribute(e,e):this.el_.removeAttribute(e)}});["paused","currentTime","buffered","volume","poster","preload","error","seeking","seekable","ended","playbackRate","defaultPlaybackRate","disablePictureInPicture","played","networkState","readyState","videoWidth","videoHeight","crossOrigin"].forEach(function(e){At.prototype[e]=function(){return this.el_[e]}});["volume","src","poster","preload","playbackRate","defaultPlaybackRate","disablePictureInPicture","crossOrigin"].forEach(function(e){At.prototype["set"+Zn(e)]=function(t){this.el_[e]=t}});["pause","load","play"].forEach(function(e){At.prototype[e]=function(){return this.el_[e]()}});Rn.withSourceHandlers(At);At.nativeSourceHandler={};At.nativeSourceHandler.canPlayType=function(e){try{return At.TEST_VID.canPlayType(e)}catch{return""}};At.nativeSourceHandler.canHandleSource=function(e,t){if(e.type)return At.nativeSourceHandler.canPlayType(e.type);if(e.src){var n=ET(e.src);return At.nativeSourceHandler.canPlayType("video/"+n)}return""};At.nativeSourceHandler.handleSource=function(e,t,n){t.setSrc(e.src)};At.nativeSourceHandler.dispose=function(){};At.registerSourceHandler(At.nativeSourceHandler);Rn.registerTech("Html5",At);var KL=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","resize","volumechange","texttrackchange"],ty={canplay:"CanPlay",canplaythrough:"CanPlayThrough",playing:"Playing",seeked:"Seeked"},i_=["tiny","xsmall","small","medium","large","xlarge","huge"],am={};i_.forEach(function(e){var t=e.charAt(0)==="x"?"x-"+e.substring(1):e;am[e]="vjs-layout-"+t});var V_e={tiny:210,xsmall:320,small:425,medium:768,large:1440,xlarge:2560,huge:1/0},or=function(e){Tt(t,e);function t(r,a,i){var o;if(r.id=r.id||a.id||"vjs_video_"+ls(),a=Yn(t.getTagSettings(r),a),a.initChildren=!1,a.createEl=!1,a.evented=!1,a.reportTouchActivity=!1,!a.language)if(typeof r.closest=="function"){var s=r.closest("[lang]");s&&s.getAttribute&&(a.language=s.getAttribute("lang"))}else for(var l=r;l&&l.nodeType===1;){if(Ao(l).hasOwnProperty("lang")){a.language=l.getAttribute("lang");break}l=l.parentNode}if(o=e.call(this,null,a,i)||this,o.boundDocumentFullscreenChange_=function(p){return o.documentFullscreenChange_(p)},o.boundFullWindowOnEscKey_=function(p){return o.fullWindowOnEscKey(p)},o.boundUpdateStyleEl_=function(p){return o.updateStyleEl_(p)},o.boundApplyInitTime_=function(p){return o.applyInitTime_(p)},o.boundUpdateCurrentBreakpoint_=function(p){return o.updateCurrentBreakpoint_(p)},o.boundHandleTechClick_=function(p){return o.handleTechClick_(p)},o.boundHandleTechDoubleClick_=function(p){return o.handleTechDoubleClick_(p)},o.boundHandleTechTouchStart_=function(p){return o.handleTechTouchStart_(p)},o.boundHandleTechTouchMove_=function(p){return o.handleTechTouchMove_(p)},o.boundHandleTechTouchEnd_=function(p){return o.handleTechTouchEnd_(p)},o.boundHandleTechTap_=function(p){return o.handleTechTap_(p)},o.isFullscreen_=!1,o.log=HR(o.id_),o.fsApi_=Xm,o.isPosterFromTech_=!1,o.queuedCallbacks_=[],o.isReady_=!1,o.hasStarted_=!1,o.userActive_=!1,o.debugEnabled_=!1,o.audioOnlyMode_=!1,o.audioPosterMode_=!1,o.audioOnlyCache_={playerHeight:null,hiddenChildren:[]},!o.options_||!o.options_.techOrder||!o.options_.techOrder.length)throw new Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");if(o.tag=r,o.tagAttributes=r&&Ao(r),o.language(o.options_.language),a.languages){var u={};Object.getOwnPropertyNames(a.languages).forEach(function(p){u[p.toLowerCase()]=a.languages[p]}),o.languages_=u}else o.languages_=t.prototype.options_.languages;o.resetCache_(),o.poster_=a.poster||"",o.controls_=!!a.controls,r.controls=!1,r.removeAttribute("controls"),o.changingSrc_=!1,o.playCallbacks_=[],o.playTerminatedQueue_=[],r.hasAttribute("autoplay")?o.autoplay(!0):o.autoplay(o.options_.autoplay),a.plugins&&Object.keys(a.plugins).forEach(function(p){if(typeof o[p]!="function")throw new Error('plugin "'+p+'" does not exist')}),o.scrubbing_=!1,o.el_=o.createEl(),wT(Qt(o),{eventBusKey:"el_"}),o.fsApi_.requestFullscreen&&(Ha(vt,o.fsApi_.fullscreenchange,o.boundDocumentFullscreenChange_),o.on(o.fsApi_.fullscreenchange,o.boundDocumentFullscreenChange_)),o.fluid_&&o.on(["playerreset","resize"],o.boundUpdateStyleEl_);var c=Un(o.options_);a.plugins&&Object.keys(a.plugins).forEach(function(p){o[p](a.plugins[p])}),a.debug&&o.debug(!0),o.options_.playerOptions=c,o.middleware_=[],o.playbackRates(a.playbackRates),o.initChildren(),o.isAudio(r.nodeName.toLowerCase()==="audio"),o.controls()?o.addClass("vjs-controls-enabled"):o.addClass("vjs-controls-disabled"),o.el_.setAttribute("role","region"),o.isAudio()?o.el_.setAttribute("aria-label",o.localize("Audio Player")):o.el_.setAttribute("aria-label",o.localize("Video Player")),o.isAudio()&&o.addClass("vjs-audio"),o.flexNotSupported_()&&o.addClass("vjs-no-flex"),_c&&o.addClass("vjs-touch-enabled"),la||o.addClass("vjs-workinghover"),t.players[o.id_]=Qt(o);var d=BR.split(".")[0];return o.addClass("vjs-v"+d),o.userActive(!0),o.reportUserActivity(),o.one("play",function(p){return o.listenForUserActivity_(p)}),o.on("stageclick",function(p){return o.handleStageClick_(p)}),o.on("keydown",function(p){return o.handleKeyDown(p)}),o.on("languagechange",function(p){return o.handleLanguagechange(p)}),o.breakpoints(o.options_.breakpoints),o.responsive(o.options_.responsive),o.on("ready",function(){o.audioPosterMode(o.options_.audioPosterMode),o.audioOnlyMode(o.options_.audioOnlyMode)}),o}var n=t.prototype;return n.dispose=function(){var a=this;this.trigger("dispose"),this.off("dispose"),Hr(vt,this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),Hr(vt,"keydown",this.boundFullWindowOnEscKey_),this.styleEl_&&this.styleEl_.parentNode&&(this.styleEl_.parentNode.removeChild(this.styleEl_),this.styleEl_=null),t.players[this.id_]=null,this.tag&&this.tag.player&&(this.tag.player=null),this.el_&&this.el_.player&&(this.el_.player=null),this.tech_&&(this.tech_.dispose(),this.isPosterFromTech_=!1,this.poster_=""),this.playerElIngest_&&(this.playerElIngest_=null),this.tag&&(this.tag=null),o_e(this),Zr.names.forEach(function(i){var o=Zr[i],s=a[o.getterName]();s&&s.off&&s.off()}),e.prototype.dispose.call(this,{restoreEl:this.options_.restoreEl})},n.createEl=function(){var a=this.tag,i,o=this.playerElIngest_=a.parentNode&&a.parentNode.hasAttribute&&a.parentNode.hasAttribute("data-vjs-player"),s=this.tag.tagName.toLowerCase()==="video-js";o?i=this.el_=a.parentNode:s||(i=this.el_=e.prototype.createEl.call(this,"div"));var l=Ao(a);if(s){for(i=this.el_=a,a=this.tag=vt.createElement("video");i.children.length;)a.appendChild(i.firstChild);kl(i,"video-js")||Vo(i,"video-js"),i.appendChild(a),o=this.playerElIngest_=i,Object.keys(i).forEach(function(v){try{a[v]=i[v]}catch{}})}if(a.setAttribute("tabindex","-1"),l.tabindex="-1",(Dp||ss&&GR)&&(a.setAttribute("role","application"),l.role="application"),a.removeAttribute("width"),a.removeAttribute("height"),"width"in l&&delete l.width,"height"in l&&delete l.height,Object.getOwnPropertyNames(l).forEach(function(v){s&&v==="class"||i.setAttribute(v,l[v]),s&&a.setAttribute(v,l[v])}),a.playerId=a.id,a.id+="_html5_api",a.className="vjs-tech",a.player=i.player=this,this.addClass("vjs-paused"),Te.VIDEOJS_NO_DYNAMIC_STYLE!==!0){this.styleEl_=uL("vjs-styles-dimensions");var u=Bs(".vjs-styles-defaults"),c=Bs("head");c.insertBefore(this.styleEl_,u?u.nextSibling:c.firstChild)}this.fill_=!1,this.fluid_=!1,this.width(this.options_.width),this.height(this.options_.height),this.fill(this.options_.fill),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio),this.crossOrigin(this.options_.crossOrigin||this.options_.crossorigin);for(var d=a.getElementsByTagName("a"),p=0;p<d.length;p++){var h=d.item(p);Vo(h,"vjs-hidden"),h.setAttribute("hidden","hidden")}return a.initNetworkState_=a.networkState,a.parentNode&&!o&&a.parentNode.insertBefore(i,a),Qb(a,i),this.children_.unshift(a),this.el_.setAttribute("lang",this.language_),this.el_.setAttribute("translate","no"),this.el_=i,i},n.crossOrigin=function(a){if(!a)return this.techGet_("crossOrigin");if(a!=="anonymous"&&a!=="use-credentials"){on.warn('crossOrigin must be "anonymous" or "use-credentials", given "'+a+'"');return}this.techCall_("setCrossOrigin",a)},n.width=function(a){return this.dimension("width",a)},n.height=function(a){return this.dimension("height",a)},n.dimension=function(a,i){var o=a+"_";if(i===void 0)return this[o]||0;if(i===""||i==="auto"){this[o]=void 0,this.updateStyleEl_();return}var s=parseFloat(i);if(isNaN(s)){on.error('Improper value "'+i+'" supplied for for '+a);return}this[o]=s,this.updateStyleEl_()},n.fluid=function(a){var i=this;if(a===void 0)return!!this.fluid_;this.fluid_=!!a,Uo(this)&&this.off(["playerreset","resize"],this.boundUpdateStyleEl_),a?(this.addClass("vjs-fluid"),this.fill(!1),Pbe(this,function(){i.on(["playerreset","resize"],i.boundUpdateStyleEl_)})):this.removeClass("vjs-fluid"),this.updateStyleEl_()},n.fill=function(a){if(a===void 0)return!!this.fill_;this.fill_=!!a,a?(this.addClass("vjs-fill"),this.fluid(!1)):this.removeClass("vjs-fill")},n.aspectRatio=function(a){if(a===void 0)return this.aspectRatio_;if(!/^\d+\:\d+$/.test(a))throw new Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.aspectRatio_=a,this.fluid(!0),this.updateStyleEl_()},n.updateStyleEl_=function(){if(Te.VIDEOJS_NO_DYNAMIC_STYLE===!0){var a=typeof this.width_=="number"?this.width_:this.options_.width,i=typeof this.height_=="number"?this.height_:this.options_.height,o=this.tech_&&this.tech_.el();o&&(a>=0&&(o.width=a),i>=0&&(o.height=i));return}var s,l,u,c;this.aspectRatio_!==void 0&&this.aspectRatio_!=="auto"?u=this.aspectRatio_:this.videoWidth()>0?u=this.videoWidth()+":"+this.videoHeight():u="16:9";var d=u.split(":"),p=d[1]/d[0];this.width_!==void 0?s=this.width_:this.height_!==void 0?s=this.height_/p:s=this.videoWidth()||300,this.height_!==void 0?l=this.height_:l=s*p,/^[^a-zA-Z]/.test(this.id())?c="dimensions-"+this.id():c=this.id()+"-dimensions",this.addClass(c),cL(this.styleEl_,`
.`+c+` {
width: `+s+`px;
height: `+l+`px;
}
.`+c+`.vjs-fluid:not(.vjs-audio-only-mode) {
padding-top: `+p*100+`%;
}
`)},n.loadTech_=function(a,i){var o=this;this.tech_&&this.unloadTech_();var s=Zn(a),l=a.charAt(0).toLowerCase()+a.slice(1);s!=="Html5"&&this.tag&&(Rn.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=s,this.isReady_=!1;var u=this.autoplay();(typeof this.autoplay()=="string"||this.autoplay()===!0&&this.options_.normalizeAutoplay)&&(u=!1);var c={source:i,autoplay:u,nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:this.id()+"_"+l+"_api",playsinline:this.options_.playsinline,preload:this.options_.preload,loop:this.options_.loop,disablePictureInPicture:this.options_.disablePictureInPicture,muted:this.options_.muted,poster:this.poster(),language:this.language(),playerElIngest:this.playerElIngest_||!1,"vtt.js":this.options_["vtt.js"],canOverridePoster:!!this.options_.techCanOverridePoster,enableSourceset:this.options_.enableSourceset,Promise:this.options_.Promise};Zr.names.forEach(function(p){var h=Zr[p];c[h.getterName]=o[h.privateName]}),Yn(c,this.options_[s]),Yn(c,this.options_[l]),Yn(c,this.options_[a.toLowerCase()]),this.tag&&(c.tag=this.tag),i&&i.src===this.cache_.src&&this.cache_.currentTime>0&&(c.startTime=this.cache_.currentTime);var d=Rn.getTech(a);if(!d)throw new Error("No Tech named '"+s+"' exists! '"+s+"' should be registered using videojs.registerTech()'");this.tech_=new d(c),this.tech_.ready(Hn(this,this.handleTechReady_),!0),bk.jsonToTextTracks(this.textTracksJson_||[],this.tech_),KL.forEach(function(p){o.on(o.tech_,p,function(h){return o["handleTech"+Zn(p)+"_"](h)})}),Object.keys(ty).forEach(function(p){o.on(o.tech_,p,function(h){if(o.tech_.playbackRate()===0&&o.tech_.seeking()){o.queuedCallbacks_.push({callback:o["handleTech"+ty[p]+"_"].bind(o),event:h});return}o["handleTech"+ty[p]+"_"](h)})}),this.on(this.tech_,"loadstart",function(p){return o.handleTechLoadStart_(p)}),this.on(this.tech_,"sourceset",function(p){return o.handleTechSourceset_(p)}),this.on(this.tech_,"waiting",function(p){return o.handleTechWaiting_(p)}),this.on(this.tech_,"ended",function(p){return o.handleTechEnded_(p)}),this.on(this.tech_,"seeking",function(p){return o.handleTechSeeking_(p)}),this.on(this.tech_,"play",function(p){return o.handleTechPlay_(p)}),this.on(this.tech_,"firstplay",function(p){return o.handleTechFirstPlay_(p)}),this.on(this.tech_,"pause",function(p){return o.handleTechPause_(p)}),this.on(this.tech_,"durationchange",function(p){return o.handleTechDurationChange_(p)}),this.on(this.tech_,"fullscreenchange",function(p,h){return o.handleTechFullscreenChange_(p,h)}),this.on(this.tech_,"fullscreenerror",function(p,h){return o.handleTechFullscreenError_(p,h)}),this.on(this.tech_,"enterpictureinpicture",function(p){return o.handleTechEnterPictureInPicture_(p)}),this.on(this.tech_,"leavepictureinpicture",function(p){return o.handleTechLeavePictureInPicture_(p)}),this.on(this.tech_,"error",function(p){return o.handleTechError_(p)}),this.on(this.tech_,"posterchange",function(p){return o.handleTechPosterChange_(p)}),this.on(this.tech_,"textdata",function(p){return o.handleTechTextData_(p)}),this.on(this.tech_,"ratechange",function(p){return o.handleTechRateChange_(p)}),this.on(this.tech_,"loadedmetadata",this.boundUpdateStyleEl_),this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode!==this.el()&&(s!=="Html5"||!this.tag)&&Qb(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)},n.unloadTech_=function(){var a=this;Zr.names.forEach(function(i){var o=Zr[i];a[o.privateName]=a[o.getterName]()}),this.textTracksJson_=bk.textTracksToJson(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1,this.isPosterFromTech_&&(this.poster_="",this.trigger("posterchange")),this.isPosterFromTech_=!1},n.tech=function(a){return a===void 0&&on.warn(`Using the tech directly can be dangerous. I hope you know what you're doing.
See https://github.com/videojs/video.js/issues/2617 for more info.
`),this.tech_},n.addTechControlsListeners_=function(){this.removeTechControlsListeners_(),this.on(this.tech_,"click",this.boundHandleTechClick_),this.on(this.tech_,"dblclick",this.boundHandleTechDoubleClick_),this.on(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.on(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.on(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.on(this.tech_,"tap",this.boundHandleTechTap_)},n.removeTechControlsListeners_=function(){this.off(this.tech_,"tap",this.boundHandleTechTap_),this.off(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.off(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.off(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.off(this.tech_,"click",this.boundHandleTechClick_),this.off(this.tech_,"dblclick",this.boundHandleTechDoubleClick_)},n.handleTechReady_=function(){this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_()},n.handleTechLoadStart_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-seeking"),this.error(null),this.handleTechDurationChange_(),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay")),this.manualAutoplay_(this.autoplay()===!0&&this.options_.normalizeAutoplay?"play":this.autoplay())},n.manualAutoplay_=function(a){var i=this;if(!(!this.tech_||typeof a!="string")){var o=function(){var u=i.muted();i.muted(!0);var c=function(){i.muted(u)};i.playTerminatedQueue_.push(c);var d=i.play();if(ef(d))return d.catch(function(p){throw c(),new Error("Rejection at manualAutoplay. Restoring muted value. "+(p||""))})},s;if(a==="any"&&!this.muted()?(s=this.play(),ef(s)&&(s=s.catch(o))):a==="muted"&&!this.muted()?s=o():s=this.play(),!!ef(s))return s.then(function(){i.trigger({type:"autoplay-success",autoplay:a})}).catch(function(){i.trigger({type:"autoplay-failure",autoplay:a})})}},n.updateSourceCaches_=function(a){a===void 0&&(a="");var i=a,o="";typeof i!="string"&&(i=a.src,o=a.type),this.cache_.source=this.cache_.source||{},this.cache_.sources=this.cache_.sources||[],i&&!o&&(o=u_e(this,i)),this.cache_.source=Un({},a,{src:i,type:o});for(var s=this.cache_.sources.filter(function(h){return h.src&&h.src===i}),l=[],u=this.$$("source"),c=[],d=0;d<u.length;d++){var p=Ao(u[d]);l.push(p),p.src&&p.src===i&&c.push(p.src)}c.length&&!s.length?this.cache_.sources=l:s.length||(this.cache_.sources=[this.cache_.source]),this.cache_.src=i},n.handleTechSourceset_=function(a){var i=this;if(!this.changingSrc_){var o=function(c){return i.updateSourceCaches_(c)},s=this.currentSource().src,l=a.src;s&&!/^blob:/.test(s)&&/^blob:/.test(l)&&(!this.lastSource_||this.lastSource_.tech!==l&&this.lastSource_.player!==s)&&(o=function(){}),o(l),a.src||this.tech_.any(["sourceset","loadstart"],function(u){if(u.type!=="sourceset"){var c=i.techGet("currentSrc");i.lastSource_.tech=c,i.updateSourceCaches_(c)}})}this.lastSource_={player:this.currentSource().src,tech:a.src},this.trigger({src:a.src,type:"sourceset"})},n.hasStarted=function(a){if(a===void 0)return this.hasStarted_;a!==this.hasStarted_&&(this.hasStarted_=a,this.hasStarted_?(this.addClass("vjs-has-started"),this.trigger("firstplay")):this.removeClass("vjs-has-started"))},n.handleTechPlay_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")},n.handleTechRateChange_=function(){this.tech_.playbackRate()>0&&this.cache_.lastPlaybackRate===0&&(this.queuedCallbacks_.forEach(function(a){return a.callback(a.event)}),this.queuedCallbacks_=[]),this.cache_.lastPlaybackRate=this.tech_.playbackRate(),this.trigger("ratechange")},n.handleTechWaiting_=function(){var a=this;this.addClass("vjs-waiting"),this.trigger("waiting");var i=this.currentTime(),o=function s(){i!==a.currentTime()&&(a.removeClass("vjs-waiting"),a.off("timeupdate",s))};this.on("timeupdate",o)},n.handleTechCanPlay_=function(){this.removeClass("vjs-waiting"),this.trigger("canplay")},n.handleTechCanPlayThrough_=function(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")},n.handleTechPlaying_=function(){this.removeClass("vjs-waiting"),this.trigger("playing")},n.handleTechSeeking_=function(){this.addClass("vjs-seeking"),this.trigger("seeking")},n.handleTechSeeked_=function(){this.removeClass("vjs-seeking"),this.removeClass("vjs-ended"),this.trigger("seeked")},n.handleTechFirstPlay_=function(){this.options_.starttime&&(on.warn("Passing the `starttime` option to the player will be deprecated in 6.0"),this.currentTime(this.options_.starttime)),this.addClass("vjs-has-started"),this.trigger("firstplay")},n.handleTechPause_=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")},n.handleTechEnded_=function(){this.addClass("vjs-ended"),this.removeClass("vjs-waiting"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")},n.handleTechDurationChange_=function(){this.duration(this.techGet_("duration"))},n.handleTechClick_=function(a){this.controls_&&(this.options_===void 0||this.options_.userActions===void 0||this.options_.userActions.click===void 0||this.options_.userActions.click!==!1)&&(this.options_!==void 0&&this.options_.userActions!==void 0&&typeof this.options_.userActions.click=="function"?this.options_.userActions.click.call(this,a):this.paused()?qi(this.play()):this.pause())},n.handleTechDoubleClick_=function(a){if(this.controls_){var i=Array.prototype.some.call(this.$$(".vjs-control-bar, .vjs-modal-dialog"),function(o){return o.contains(a.target)});i||(this.options_===void 0||this.options_.userActions===void 0||this.options_.userActions.doubleClick===void 0||this.options_.userActions.doubleClick!==!1)&&(this.options_!==void 0&&this.options_.userActions!==void 0&&typeof this.options_.userActions.doubleClick=="function"?this.options_.userActions.doubleClick.call(this,a):this.isFullscreen()?this.exitFullscreen():this.requestFullscreen())}},n.handleTechTap_=function(){this.userActive(!this.userActive())},n.handleTechTouchStart_=function(){this.userWasActive=this.userActive()},n.handleTechTouchMove_=function(){this.userWasActive&&this.reportUserActivity()},n.handleTechTouchEnd_=function(a){a.cancelable&&a.preventDefault()},n.handleStageClick_=function(){this.reportUserActivity()},n.toggleFullscreenClass_=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},n.documentFullscreenChange_=function(a){var i=a.target.player;if(!(i&&i!==this)){var o=this.el(),s=vt[this.fsApi_.fullscreenElement]===o;!s&&o.matches?s=o.matches(":"+this.fsApi_.fullscreen):!s&&o.msMatchesSelector&&(s=o.msMatchesSelector(":"+this.fsApi_.fullscreen)),this.isFullscreen(s)}},n.handleTechFullscreenChange_=function(a,i){var o=this;i&&(i.nativeIOSFullscreen&&(this.addClass("vjs-ios-native-fs"),this.tech_.one("webkitendfullscreen",function(){o.removeClass("vjs-ios-native-fs")})),this.isFullscreen(i.isFullscreen))},n.handleTechFullscreenError_=function(a,i){this.trigger("fullscreenerror",i)},n.togglePictureInPictureClass_=function(){this.isInPictureInPicture()?this.addClass("vjs-picture-in-picture"):this.removeClass("vjs-picture-in-picture")},n.handleTechEnterPictureInPicture_=function(a){this.isInPictureInPicture(!0)},n.handleTechLeavePictureInPicture_=function(a){this.isInPictureInPicture(!1)},n.handleTechError_=function(){var a=this.tech_.error();this.error(a)},n.handleTechTextData_=function(){var a=null;arguments.length>1&&(a=arguments[1]),this.trigger("textdata",a)},n.getCache=function(){return this.cache_},n.resetCache_=function(){this.cache_={currentTime:0,initTime:0,inactivityTimeout:this.options_.inactivityTimeout,duration:NaN,lastVolume:1,lastPlaybackRate:this.defaultPlaybackRate(),media:null,src:"",source:{},sources:[],playbackRates:[],volume:1}},n.techCall_=function(a,i){this.ready(function(){if(a in a_e)return n_e(this.middleware_,this.tech_,a,i);if(a in Ek)return Ck(this.middleware_,this.tech_,a,i);try{this.tech_&&this.tech_[a](i)}catch(o){throw on(o),o}},!0)},n.techGet_=function(a){if(!(!this.tech_||!this.tech_.isReady_)){if(a in r_e)return t_e(this.middleware_,this.tech_,a);if(a in Ek)return Ck(this.middleware_,this.tech_,a);try{return this.tech_[a]()}catch(i){throw this.tech_[a]===void 0?(on("Video.js: "+a+" method not defined for "+this.techName_+" playback technology.",i),i):i.name==="TypeError"?(on("Video.js: "+a+" unavailable on "+this.techName_+" playback technology element.",i),this.tech_.isReady_=!1,i):(on(i),i)}}},n.play=function(){var a=this,i=this.options_.Promise||Te.Promise;return i?new i(function(o){a.play_(o)}):this.play_()},n.play_=function(a){var i=this;a===void 0&&(a=qi),this.playCallbacks_.push(a);var o=!!(!this.changingSrc_&&(this.src()||this.currentSrc())),s=!!(wg||la);if(this.waitToPlay_&&(this.off(["ready","loadstart"],this.waitToPlay_),this.waitToPlay_=null),!this.isReady_||!o){this.waitToPlay_=function(c){i.play_()},this.one(["ready","loadstart"],this.waitToPlay_),!o&&s&&this.load();return}var l=this.techGet_("play"),u=s&&this.hasClass("vjs-ended");u&&this.resetProgressBar_(),l===null?this.runPlayTerminatedQueue_():this.runPlayCallbacks_(l)},n.runPlayTerminatedQueue_=function(){var a=this.playTerminatedQueue_.slice(0);this.playTerminatedQueue_=[],a.forEach(function(i){i()})},n.runPlayCallbacks_=function(a){var i=this.playCallbacks_.slice(0);this.playCallbacks_=[],this.playTerminatedQueue_=[],i.forEach(function(o){o(a)})},n.pause=function(){this.techCall_("pause")},n.paused=function(){return this.techGet_("paused")!==!1},n.played=function(){return this.techGet_("played")||Al(0,0)},n.scrubbing=function(a){if(typeof a>"u")return this.scrubbing_;this.scrubbing_=!!a,this.techCall_("setScrubbing",this.scrubbing_),a?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing")},n.currentTime=function(a){if(typeof a<"u"){if(a<0&&(a=0),!this.isReady_||this.changingSrc_||!this.tech_||!this.tech_.isReady_){this.cache_.initTime=a,this.off("canplay",this.boundApplyInitTime_),this.one("canplay",this.boundApplyInitTime_);return}this.techCall_("setCurrentTime",a),this.cache_.initTime=0;return}return this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime},n.applyInitTime_=function(){this.currentTime(this.cache_.initTime)},n.duration=function(a){if(a===void 0)return this.cache_.duration!==void 0?this.cache_.duration:NaN;a=parseFloat(a),a<0&&(a=1/0),a!==this.cache_.duration&&(this.cache_.duration=a,a===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),isNaN(a)||this.trigger("durationchange"))},n.remainingTime=function(){return this.duration()-this.currentTime()},n.remainingTimeDisplay=function(){return Math.floor(this.duration())-Math.floor(this.currentTime())},n.buffered=function(){var a=this.techGet_("buffered");return(!a||!a.length)&&(a=Al(0,0)),a},n.bufferedPercent=function(){return vL(this.buffered(),this.duration())},n.bufferedEnd=function(){var a=this.buffered(),i=this.duration(),o=a.end(a.length-1);return o>i&&(o=i),o},n.volume=function(a){var i;if(a!==void 0){i=Math.max(0,Math.min(1,parseFloat(a))),this.cache_.volume=i,this.techCall_("setVolume",i),i>0&&this.lastVolume_(i);return}return i=parseFloat(this.techGet_("volume")),isNaN(i)?1:i},n.muted=function(a){if(a!==void 0){this.techCall_("setMuted",a);return}return this.techGet_("muted")||!1},n.defaultMuted=function(a){return a!==void 0?this.techCall_("setDefaultMuted",a):this.techGet_("defaultMuted")||!1},n.lastVolume_=function(a){if(a!==void 0&&a!==0){this.cache_.lastVolume=a;return}return this.cache_.lastVolume},n.supportsFullScreen=function(){return this.techGet_("supportsFullScreen")||!1},n.isFullscreen=function(a){if(a!==void 0){var i=this.isFullscreen_;this.isFullscreen_=!!a,this.isFullscreen_!==i&&this.fsApi_.prefixed&&this.trigger("fullscreenchange"),this.toggleFullscreenClass_();return}return this.isFullscreen_},n.requestFullscreen=function(a){var i=this.options_.Promise||Te.Promise;if(i){var o=this;return new i(function(s,l){function u(){o.off("fullscreenerror",d),o.off("fullscreenchange",c)}function c(){u(),s()}function d(h,v){u(),l(v)}o.one("fullscreenchange",c),o.one("fullscreenerror",d);var p=o.requestFullscreenHelper_(a);p&&(p.then(u,u),p.then(s,l))})}return this.requestFullscreenHelper_()},n.requestFullscreenHelper_=function(a){var i=this,o;if(this.fsApi_.prefixed||(o=this.options_.fullscreen&&this.options_.fullscreen.options||{},a!==void 0&&(o=a)),this.fsApi_.requestFullscreen){var s=this.el_[this.fsApi_.requestFullscreen](o);return s&&s.then(function(){return i.isFullscreen(!0)},function(){return i.isFullscreen(!1)}),s}else this.tech_.supportsFullScreen()&&!this.options_.preferFullWindow?this.techCall_("enterFullScreen"):this.enterFullWindow()},n.exitFullscreen=function(){var a=this.options_.Promise||Te.Promise;if(a){var i=this;return new a(function(o,s){function l(){i.off("fullscreenerror",c),i.off("fullscreenchange",u)}function u(){l(),o()}function c(p,h){l(),s(h)}i.one("fullscreenchange",u),i.one("fullscreenerror",c);var d=i.exitFullscreenHelper_();d&&(d.then(l,l),d.then(o,s))})}return this.exitFullscreenHelper_()},n.exitFullscreenHelper_=function(){var a=this;if(this.fsApi_.requestFullscreen){var i=vt[this.fsApi_.exitFullscreen]();return i&&qi(i.then(function(){return a.isFullscreen(!1)})),i}else this.tech_.supportsFullScreen()&&!this.options_.preferFullWindow?this.techCall_("exitFullScreen"):this.exitFullWindow()},n.enterFullWindow=function(){this.isFullscreen(!0),this.isFullWindow=!0,this.docOrigOverflow=vt.documentElement.style.overflow,Ha(vt,"keydown",this.boundFullWindowOnEscKey_),vt.documentElement.style.overflow="hidden",Vo(vt.body,"vjs-full-window"),this.trigger("enterFullWindow")},n.fullWindowOnEscKey=function(a){Jt.isEventKey(a,"Esc")&&this.isFullscreen()===!0&&(this.isFullWindow?this.exitFullWindow():this.exitFullscreen())},n.exitFullWindow=function(){this.isFullscreen(!1),this.isFullWindow=!1,Hr(vt,"keydown",this.boundFullWindowOnEscKey_),vt.documentElement.style.overflow=this.docOrigOverflow,Ip(vt.body,"vjs-full-window"),this.trigger("exitFullWindow")},n.disablePictureInPicture=function(a){if(a===void 0)return this.techGet_("disablePictureInPicture");this.techCall_("setDisablePictureInPicture",a),this.options_.disablePictureInPicture=a,this.trigger("disablepictureinpicturechanged")},n.isInPictureInPicture=function(a){if(a!==void 0){this.isInPictureInPicture_=!!a,this.togglePictureInPictureClass_();return}return!!this.isInPictureInPicture_},n.requestPictureInPicture=function(){if("pictureInPictureEnabled"in vt&&this.disablePictureInPicture()===!1)return this.techGet_("requestPictureInPicture")},n.exitPictureInPicture=function(){if("pictureInPictureEnabled"in vt)return vt.exitPictureInPicture()},n.handleKeyDown=function(a){var i=this.options_.userActions;if(!(!i||!i.hotkeys)){var o=function(l){var u=l.tagName.toLowerCase();if(l.isContentEditable)return!0;var c=["button","checkbox","hidden","radio","reset","submit"];if(u==="input")return c.indexOf(l.type)===-1;var d=["textarea"];return d.indexOf(u)!==-1};o(this.el_.ownerDocument.activeElement)||(typeof i.hotkeys=="function"?i.hotkeys.call(this,a):this.handleHotkeys(a))}},n.handleHotkeys=function(a){var i=this.options_.userActions?this.options_.userActions.hotkeys:{},o=i.fullscreenKey,s=o===void 0?function(m){return Jt.isEventKey(m,"f")}:o,l=i.muteKey,u=l===void 0?function(m){return Jt.isEventKey(m,"m")}:l,c=i.playPauseKey,d=c===void 0?function(m){return Jt.isEventKey(m,"k")||Jt.isEventKey(m,"Space")}:c;if(s.call(this,a)){a.preventDefault(),a.stopPropagation();var p=ut.getComponent("FullscreenToggle");vt[this.fsApi_.fullscreenEnabled]!==!1&&p.prototype.handleClick.call(this,a)}else if(u.call(this,a)){a.preventDefault(),a.stopPropagation();var h=ut.getComponent("MuteToggle");h.prototype.handleClick.call(this,a)}else if(d.call(this,a)){a.preventDefault(),a.stopPropagation();var v=ut.getComponent("PlayToggle");v.prototype.handleClick.call(this,a)}},n.canPlayType=function(a){for(var i,o=0,s=this.options_.techOrder;o<s.length;o++){var l=s[o],u=Rn.getTech(l);if(u||(u=ut.getComponent(l)),!u){on.error('The "'+l+'" tech is undefined. Skipped browser support check for that tech.');continue}if(u.isSupported()&&(i=u.canPlayType(a),i))return i}return""},n.selectSource=function(a){var i=this,o=this.options_.techOrder.map(function(d){return[d,Rn.getTech(d)]}).filter(function(d){var p=d[0],h=d[1];return h?h.isSupported():(on.error('The "'+p+'" tech is undefined. Skipped browser support check for that tech.'),!1)}),s=function(p,h,v){var m;return p.some(function(g){return h.some(function(y){if(m=v(g,y),m)return!0})}),m},l,u=function(p){return function(h,v){return p(v,h)}},c=function(p,h){var v=p[0],m=p[1];if(m.canPlaySource(h,i.options_[v.toLowerCase()]))return{source:h,tech:v}};return this.options_.sourceOrder?l=s(a,o,u(c)):l=s(o,a,c),l||!1},n.handleSrc_=function(a,i){var o=this;if(typeof a>"u")return this.cache_.src||"";this.resetRetryOnError_&&this.resetRetryOnError_();var s=c_e(a);if(!s.length){this.setTimeout(function(){this.error({code:4,message:this.options_.notSupportedMessage})},0);return}if(this.changingSrc_=!0,i||(this.cache_.sources=s),this.updateSourceCaches_(s[0]),Zbe(this,s[0],function(c,d){o.middleware_=d,i||(o.cache_.sources=s),o.updateSourceCaches_(c);var p=o.src_(c);if(p){if(s.length>1)return o.handleSrc_(s.slice(1));o.changingSrc_=!1,o.setTimeout(function(){this.error({code:4,message:this.options_.notSupportedMessage})},0),o.triggerReady();return}e_e(d,o.tech_)}),this.options_.retryOnError&&s.length>1){var l=function(){o.error(null),o.handleSrc_(s.slice(1),!0)},u=function(){o.off("error",l)};this.one("error",l),this.one("playing",u),this.resetRetryOnError_=function(){o.off("error",l),o.off("playing",u)}}},n.src=function(a){return this.handleSrc_(a,!1)},n.src_=function(a){var i=this,o=this.selectSource([a]);return o?Rbe(o.tech,this.techName_)?(this.ready(function(){this.tech_.constructor.prototype.hasOwnProperty("setSource")?this.techCall_("setSource",a):this.techCall_("src",a.src),this.changingSrc_=!1},!0),!1):(this.changingSrc_=!0,this.loadTech_(o.tech,o.source),this.tech_.ready(function(){i.changingSrc_=!1}),!1):!0},n.load=function(){this.techCall_("load")},n.reset=function(){var a=this,i=this.options_.Promise||Te.Promise;if(this.paused()||!i)this.doReset_();else{var o=this.play();qi(o.then(function(){return a.doReset_()}))}},n.doReset_=function(){this.tech_&&this.tech_.clearTracks("text"),this.resetCache_(),this.poster(""),this.loadTech_(this.options_.techOrder[0],null),this.techCall_("reset"),this.resetControlBarUI_(),Uo(this)&&this.trigger("playerreset")},n.resetControlBarUI_=function(){this.resetProgressBar_(),this.resetPlaybackRate_(),this.resetVolumeBar_()},n.resetProgressBar_=function(){this.currentTime(0);var a=this.controlBar||{},i=a.durationDisplay,o=a.remainingTimeDisplay;i&&i.updateContent(),o&&o.updateContent()},n.resetPlaybackRate_=function(){this.playbackRate(this.defaultPlaybackRate()),this.handleTechRateChange_()},n.resetVolumeBar_=function(){this.volume(1),this.trigger("volumechange")},n.currentSources=function(){var a=this.currentSource(),i=[];return Object.keys(a).length!==0&&i.push(a),this.cache_.sources||i},n.currentSource=function(){return this.cache_.source||{}},n.currentSrc=function(){return this.currentSource()&&this.currentSource().src||""},n.currentType=function(){return this.currentSource()&&this.currentSource().type||""},n.preload=function(a){if(a!==void 0){this.techCall_("setPreload",a),this.options_.preload=a;return}return this.techGet_("preload")},n.autoplay=function(a){if(a===void 0)return this.options_.autoplay||!1;var i;typeof a=="string"&&/(any|play|muted)/.test(a)||a===!0&&this.options_.normalizeAutoplay?(this.options_.autoplay=a,this.manualAutoplay_(typeof a=="string"?a:"play"),i=!1):a?this.options_.autoplay=!0:this.options_.autoplay=!1,i=typeof i>"u"?this.options_.autoplay:i,this.tech_&&this.techCall_("setAutoplay",i)},n.playsinline=function(a){return a!==void 0?(this.techCall_("setPlaysinline",a),this.options_.playsinline=a,this):this.techGet_("playsinline")},n.loop=function(a){if(a!==void 0){this.techCall_("setLoop",a),this.options_.loop=a;return}return this.techGet_("loop")},n.poster=function(a){if(a===void 0)return this.poster_;a||(a=""),a!==this.poster_&&(this.poster_=a,this.techCall_("setPoster",a),this.isPosterFromTech_=!1,this.trigger("posterchange"))},n.handleTechPosterChange_=function(){if((!this.poster_||this.options_.techCanOverridePoster)&&this.tech_&&this.tech_.poster){var a=this.tech_.poster()||"";a!==this.poster_&&(this.poster_=a,this.isPosterFromTech_=!0,this.trigger("posterchange"))}},n.controls=function(a){if(a===void 0)return!!this.controls_;a=!!a,this.controls_!==a&&(this.controls_=a,this.usingNativeControls()&&this.techCall_("setControls",a),this.controls_?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"),this.trigger("controlsenabled"),this.usingNativeControls()||this.addTechControlsListeners_()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.removeTechControlsListeners_()))},n.usingNativeControls=function(a){if(a===void 0)return!!this.usingNativeControls_;a=!!a,this.usingNativeControls_!==a&&(this.usingNativeControls_=a,this.usingNativeControls_?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols")))},n.error=function(a){var i=this;if(a===void 0)return this.error_||null;if($s("beforeerror").forEach(function(s){var l=s(i,a);if(!(Xo(l)&&!Array.isArray(l)||typeof l=="string"||typeof l=="number"||l===null)){i.log.error("please return a value that MediaError expects in beforeerror hooks");return}a=l}),this.options_.suppressNotSupportedError&&a&&a.code===4){var o=function(){this.error(a)};this.options_.suppressNotSupportedError=!1,this.any(["click","touchstart"],o),this.one("loadstart",function(){this.off(["click","touchstart"],o)});return}if(a===null){this.error_=a,this.removeClass("vjs-error"),this.errorDisplay&&this.errorDisplay.close();return}this.error_=new aa(a),this.addClass("vjs-error"),on.error("(CODE:"+this.error_.code+" "+aa.errorTypes[this.error_.code]+")",this.error_.message,this.error_),this.trigger("error"),$s("error").forEach(function(s){return s(i,i.error_)})},n.reportUserActivity=function(a){this.userActivity_=!0},n.userActive=function(a){if(a===void 0)return this.userActive_;if(a=!!a,a!==this.userActive_){if(this.userActive_=a,this.userActive_){this.userActivity_=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),this.trigger("useractive");return}this.tech_&&this.tech_.one("mousemove",function(i){i.stopPropagation(),i.preventDefault()}),this.userActivity_=!1,this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive")}},n.listenForUserActivity_=function(){var a,i,o,s=Hn(this,this.reportUserActivity),l=function(v){(v.screenX!==i||v.screenY!==o)&&(i=v.screenX,o=v.screenY,s())},u=function(){s(),this.clearInterval(a),a=this.setInterval(s,250)},c=function(v){s(),this.clearInterval(a)};this.on("mousedown",u),this.on("mousemove",l),this.on("mouseup",c),this.on("mouseleave",c);var d=this.getChild("controlBar");d&&!la&&!os&&(d.on("mouseenter",function(h){this.player().options_.inactivityTimeout!==0&&(this.player().cache_.inactivityTimeout=this.player().options_.inactivityTimeout),this.player().options_.inactivityTimeout=0}),d.on("mouseleave",function(h){this.player().options_.inactivityTimeout=this.player().cache_.inactivityTimeout})),this.on("keydown",s),this.on("keyup",s);var p;this.setInterval(function(){if(this.userActivity_){this.userActivity_=!1,this.userActive(!0),this.clearTimeout(p);var h=this.options_.inactivityTimeout;h<=0||(p=this.setTimeout(function(){this.userActivity_||this.userActive(!1)},h))}},250)},n.playbackRate=function(a){if(a!==void 0){this.techCall_("setPlaybackRate",a);return}return this.tech_&&this.tech_.featuresPlaybackRate?this.cache_.lastPlaybackRate||this.techGet_("playbackRate"):1},n.defaultPlaybackRate=function(a){return a!==void 0?this.techCall_("setDefaultPlaybackRate",a):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("defaultPlaybackRate"):1},n.isAudio=function(a){if(a!==void 0){this.isAudio_=!!a;return}return!!this.isAudio_},n.enableAudioOnlyUI_=function(){var a=this;this.addClass("vjs-audio-only-mode");var i=this.children(),o=this.getChild("ControlBar"),s=o&&o.currentHeight();i.forEach(function(l){l!==o&&l.el_&&!l.hasClass("vjs-hidden")&&(l.hide(),a.audioOnlyCache_.hiddenChildren.push(l))}),this.audioOnlyCache_.playerHeight=this.currentHeight(),this.height(s),this.trigger("audioonlymodechange")},n.disableAudioOnlyUI_=function(){this.removeClass("vjs-audio-only-mode"),this.audioOnlyCache_.hiddenChildren.forEach(function(a){return a.show()}),this.height(this.audioOnlyCache_.playerHeight),this.trigger("audioonlymodechange")},n.audioOnlyMode=function(a){var i=this;if(typeof a!="boolean"||a===this.audioOnlyMode_)return this.audioOnlyMode_;this.audioOnlyMode_=a;var o=this.options_.Promise||Te.Promise;if(o){if(a){var s=[];return this.isInPictureInPicture()&&s.push(this.exitPictureInPicture()),this.isFullscreen()&&s.push(this.exitFullscreen()),this.audioPosterMode()&&s.push(this.audioPosterMode(!1)),o.all(s).then(function(){return i.enableAudioOnlyUI_()})}return o.resolve().then(function(){return i.disableAudioOnlyUI_()})}a?(this.isInPictureInPicture()&&this.exitPictureInPicture(),this.isFullscreen()&&this.exitFullscreen(),this.enableAudioOnlyUI_()):this.disableAudioOnlyUI_()},n.enablePosterModeUI_=function(){var a=this.tech_&&this.tech_;a.hide(),this.addClass("vjs-audio-poster-mode"),this.trigger("audiopostermodechange")},n.disablePosterModeUI_=function(){var a=this.tech_&&this.tech_;a.show(),this.removeClass("vjs-audio-poster-mode"),this.trigger("audiopostermodechange")},n.audioPosterMode=function(a){var i=this;if(typeof a!="boolean"||a===this.audioPosterMode_)return this.audioPosterMode_;this.audioPosterMode_=a;var o=this.options_.Promise||Te.Promise;if(o){if(a){if(this.audioOnlyMode()){var s=this.audioOnlyMode(!1);return s.then(function(){i.enablePosterModeUI_()})}return o.resolve().then(function(){i.enablePosterModeUI_()})}return o.resolve().then(function(){i.disablePosterModeUI_()})}if(a){this.audioOnlyMode()&&this.audioOnlyMode(!1),this.enablePosterModeUI_();return}this.disablePosterModeUI_()},n.addTextTrack=function(a,i,o){if(this.tech_)return this.tech_.addTextTrack(a,i,o)},n.addRemoteTextTrack=function(a,i){if(this.tech_)return this.tech_.addRemoteTextTrack(a,i)},n.removeRemoteTextTrack=function(a){a===void 0&&(a={});var i=a,o=i.track;if(o||(o=a),this.tech_)return this.tech_.removeRemoteTextTrack(o)},n.getVideoPlaybackQuality=function(){return this.techGet_("getVideoPlaybackQuality")},n.videoWidth=function(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0},n.videoHeight=function(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0},n.language=function(a){if(a===void 0)return this.language_;this.language_!==String(a).toLowerCase()&&(this.language_=String(a).toLowerCase(),Uo(this)&&this.trigger("languagechange"))},n.languages=function(){return Un(t.prototype.options_.languages,this.languages_)},n.toJSON=function(){var a=Un(this.options_),i=a.tracks;a.tracks=[];for(var o=0;o<i.length;o++){var s=i[o];s=Un(s),s.player=void 0,a.tracks[o]=s}return a},n.createModal=function(a,i){var o=this;i=i||{},i.content=a||"";var s=new Yc(this,i);return this.addChild(s),s.on("dispose",function(){o.removeChild(s)}),s.open(),s},n.updateCurrentBreakpoint_=function(){if(this.responsive())for(var a=this.currentBreakpoint(),i=this.currentWidth(),o=0;o<i_.length;o++){var s=i_[o],l=this.breakpoints_[s];if(i<=l){if(a===s)return;a&&this.removeClass(am[a]),this.addClass(am[s]),this.breakpoint_=s;break}}},n.removeCurrentBreakpoint_=function(){var a=this.currentBreakpointClass();this.breakpoint_="",a&&this.removeClass(a)},n.breakpoints=function(a){return a===void 0?Yn(this.breakpoints_):(this.breakpoint_="",this.breakpoints_=Yn({},V_e,a),this.updateCurrentBreakpoint_(),Yn(this.breakpoints_))},n.responsive=function(a){if(a===void 0)return this.responsive_;a=!!a;var i=this.responsive_;if(a!==i)return this.responsive_=a,a?(this.on("playerresize",this.boundUpdateCurrentBreakpoint_),this.updateCurrentBreakpoint_()):(this.off("playerresize",this.boundUpdateCurrentBreakpoint_),this.removeCurrentBreakpoint_()),a},n.currentBreakpoint=function(){return this.breakpoint_},n.currentBreakpointClass=function(){return am[this.breakpoint_]||""},n.loadMedia=function(a,i){var o=this;if(!(!a||typeof a!="object")){this.reset(),this.cache_.media=Un(a);var s=this.cache_.media,l=s.artwork,u=s.poster,c=s.src,d=s.textTracks;!l&&u&&(this.cache_.media.artwork=[{src:u,type:Zm(u)}]),c&&this.src(c),u&&this.poster(u),Array.isArray(d)&&d.forEach(function(p){return o.addRemoteTextTrack(p,!1)}),this.ready(i)}},n.getMedia=function(){if(!this.cache_.media){var a=this.poster(),i=this.currentSources(),o=Array.prototype.map.call(this.remoteTextTracks(),function(l){return{kind:l.kind,label:l.label,language:l.language,src:l.src}}),s={src:i,textTracks:o};return a&&(s.poster=a,s.artwork=[{src:s.poster,type:Zm(s.poster)}]),s}return Un(this.cache_.media)},t.getTagSettings=function(a){var i={sources:[],tracks:[]},o=Ao(a),s=o["data-setup"];if(kl(a,"vjs-fill")&&(o.fill=!0),kl(a,"vjs-fluid")&&(o.fluid=!0),s!==null){var l=bge(s||"{}"),u=l[0],c=l[1];u&&on.error(u),Yn(o,c)}if(Yn(i,o),a.hasChildNodes())for(var d=a.childNodes,p=0,h=d.length;p<h;p++){var v=d[p],m=v.nodeName.toLowerCase();m==="source"?i.sources.push(Ao(v)):m==="track"&&i.tracks.push(Ao(v))}return i},n.flexNotSupported_=function(){var a=vt.createElement("i");return!("flexBasis"in a.style||"webkitFlexBasis"in a.style||"mozFlexBasis"in a.style||"msFlexBasis"in a.style||"msFlexOrder"in a.style)},n.debug=function(a){if(a===void 0)return this.debugEnabled_;a?(this.trigger("debugon"),this.previousLogLevel_=this.log.level,this.log.level("debug"),this.debugEnabled_=!0):(this.trigger("debugoff"),this.log.level(this.previousLogLevel_),this.previousLogLevel_=void 0,this.debugEnabled_=!1)},n.playbackRates=function(a){if(a===void 0)return this.cache_.playbackRates;Array.isArray(a)&&a.every(function(i){return typeof i=="number"})&&(this.cache_.playbackRates=a,this.trigger("playbackrateschange"))},t}(ut);Zr.names.forEach(function(e){var t=Zr[e];or.prototype[t.getterName]=function(){return this.tech_?this.tech_[t.getterName]():(this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName])}});or.prototype.crossorigin=or.prototype.crossOrigin;or.players={};var Sd=Te.navigator;or.prototype.options_={techOrder:Rn.defaultTechOrder_,html5:{},inactivityTimeout:2e3,playbackRates:[],liveui:!1,children:["mediaLoader","posterImage","textTrackDisplay","loadingSpinner","bigPlayButton","liveTracker","controlBar","errorDisplay","textTrackSettings","resizeManager"],language:Sd&&(Sd.languages&&Sd.languages[0]||Sd.userLanguage||Sd.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media.",normalizeAutoplay:!1,fullscreen:{options:{navigationUI:"hide"}},breakpoints:{},responsive:!1,audioOnlyMode:!1,audioPosterMode:!1};["ended","seeking","seekable","networkState","readyState"].forEach(function(e){or.prototype[e]=function(){return this.techGet_(e)}});KL.forEach(function(e){or.prototype["handleTech"+Zn(e)+"_"]=function(){return this.trigger(e)}});ut.registerComponent("Player",or);var nv="plugin",Wu="activePlugins_",Au={},rv=function(t){return Au.hasOwnProperty(t)},im=function(t){return rv(t)?Au[t]:void 0},qL=function(t,n){t[Wu]=t[Wu]||{},t[Wu][n]=!0},av=function(t,n,r){var a=(r?"before":"")+"pluginsetup";t.trigger(a,n),t.trigger(a+":"+n.name,n)},U_e=function(t,n){var r=function(){av(this,{name:t,plugin:n,instance:null},!0);var i=n.apply(this,arguments);return qL(this,t),av(this,{name:t,plugin:n,instance:i}),i};return Object.keys(n).forEach(function(a){r[a]=n[a]}),r},Bk=function(t,n){return n.prototype.name=t,function(){av(this,{name:t,plugin:n,instance:null},!0);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];var o=WM(n,[this].concat(a));return this[t]=function(){return o},av(this,o.getEventHash()),o}},lo=function(){function e(n){if(this.constructor===e)throw new Error("Plugin must be sub-classed; not directly instantiated.");this.player=n,this.log||(this.log=this.player.log.createLogger(this.name)),wT(this),delete this.trigger,mL(this,this.constructor.defaultState),qL(n,this.name),this.dispose=this.dispose.bind(this),n.on("dispose",this.dispose)}var t=e.prototype;return t.version=function(){return this.constructor.VERSION},t.getEventHash=function(r){return r===void 0&&(r={}),r.name=this.name,r.plugin=this.constructor,r.instance=this,r},t.trigger=function(r,a){return a===void 0&&(a={}),Gc(this.eventBusEl_,r,this.getEventHash(a))},t.handleStateChanged=function(r){},t.dispose=function(){var r=this.name,a=this.player;this.trigger("dispose"),this.off(),a.off("dispose",this.dispose),a[Wu][r]=!1,this.player=this.state=null,a[r]=Bk(r,Au[r])},e.isBasic=function(r){var a=typeof r=="string"?im(r):r;return typeof a=="function"&&!e.prototype.isPrototypeOf(a.prototype)},e.registerPlugin=function(r,a){if(typeof r!="string")throw new Error('Illegal plugin name, "'+r+'", must be a string, was '+typeof r+".");if(rv(r))on.warn('A plugin named "'+r+'" already exists. You may want to avoid re-registering plugins!');else if(or.prototype.hasOwnProperty(r))throw new Error('Illegal plugin name, "'+r+'", cannot share a name with an existing player method!');if(typeof a!="function")throw new Error('Illegal plugin for "'+r+'", must be a function, was '+typeof a+".");return Au[r]=a,r!==nv&&(e.isBasic(a)?or.prototype[r]=U_e(r,a):or.prototype[r]=Bk(r,a)),a},e.deregisterPlugin=function(r){if(r===nv)throw new Error("Cannot de-register base plugin.");rv(r)&&(delete Au[r],delete or.prototype[r])},e.getPlugins=function(r){r===void 0&&(r=Object.keys(Au));var a;return r.forEach(function(i){var o=im(i);o&&(a=a||{},a[i]=o)}),a},e.getPluginVersion=function(r){var a=im(r);return a&&a.VERSION||""},e}();lo.getPlugin=im;lo.BASE_PLUGIN_NAME=nv;lo.registerPlugin(nv,lo);or.prototype.usingPlugin=function(e){return!!this[Wu]&&this[Wu][e]===!0};or.prototype.hasPlugin=function(e){return!!rv(e)};var Vk=!1,H_e=function(t,n){n===void 0&&(n={}),Vk||(on.warn("videojs.extend is deprecated as of Video.js 7.22.0 and will be removed in Video.js 8.0.0"),Vk=!0);var r=function(){t.apply(this,arguments)},a={};typeof n=="object"?(n.constructor!==Object.prototype.constructor&&(r=n.constructor),a=n):typeof n=="function"&&(r=n),s0e(r,t),t&&(r.super_=t);for(var i in a)a.hasOwnProperty(i)&&(r.prototype[i]=a[i]);return r},GL=function(t){return t.indexOf("#")===0?t.slice(1):t};function Ne(e,t,n){var r=Ne.getPlayer(e);if(r)return t&&on.warn('Player "'+e+'" is already initialised. Options will not be applied.'),n&&r.ready(n),r;var a=typeof e=="string"?Bs("#"+GL(e)):e;if(!qc(a))throw new TypeError("The element or ID supplied is not valid. (videojs)");(!a.ownerDocument.defaultView||!a.ownerDocument.body.contains(a))&&on.warn("The element supplied is not included in the DOM"),t=t||{},t.restoreEl===!0&&(t.restoreEl=(a.parentNode&&a.parentNode.hasAttribute("data-vjs-player")?a.parentNode:a).cloneNode(!0)),$s("beforesetup").forEach(function(o){var s=o(a,Un(t));if(!Xo(s)||Array.isArray(s)){on.error("please return an object in beforesetup hooks");return}t=Un(t,s)});var i=ut.getComponent("Player");return r=new i(a,t,n),$s("setup").forEach(function(o){return o(r)}),r}Ne.hooks_=Lo;Ne.hooks=$s;Ne.hook=mbe;Ne.hookOnce=vbe;Ne.removeHook=VR;if(Te.VIDEOJS_NO_DYNAMIC_STYLE!==!0&&Kc()){var Ch=Bs(".vjs-styles-defaults");if(!Ch){Ch=uL("vjs-styles-defaults");var ny=Bs("head");ny&&ny.insertBefore(Ch,ny.firstChild),cL(Ch,`
.video-js {
width: 300px;
height: 150px;
}
.vjs-fluid:not(.vjs-audio-only-mode) {
padding-top: 56.25%
}
`)}}Zb(1,Ne);Ne.VERSION=BR;Ne.options=or.prototype.options_;Ne.getPlayers=function(){return or.players};Ne.getPlayer=function(e){var t=or.players,n;if(typeof e=="string"){var r=GL(e),a=t[r];if(a)return a;n=Bs("#"+r)}else n=e;if(qc(n)){var i=n,o=i.player,s=i.playerId;if(o||t[s])return o||t[s]}};Ne.getAllPlayers=function(){return Object.keys(or.players).map(function(e){return or.players[e]}).filter(Boolean)};Ne.players=or.players;Ne.getComponent=ut.getComponent;Ne.registerComponent=function(e,t){Rn.isTech(t)&&on.warn("The "+e+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),ut.registerComponent.call(ut,e,t)};Ne.getTech=Rn.getTech;Ne.registerTech=Rn.registerTech;Ne.use=Jbe;Object.defineProperty(Ne,"middleware",{value:{},writeable:!1,enumerable:!0});Object.defineProperty(Ne.middleware,"TERMINATOR",{value:Jm,writeable:!1,enumerable:!0});Ne.browser=wbe;Ne.TOUCH_ENABLED=_c;Ne.extend=H_e;Ne.mergeOptions=Un;Ne.bind=Hn;Ne.registerPlugin=lo.registerPlugin;Ne.deregisterPlugin=lo.deregisterPlugin;Ne.plugin=function(e,t){return on.warn("videojs.plugin() is deprecated; use videojs.registerPlugin() instead"),lo.registerPlugin(e,t)};Ne.getPlugins=lo.getPlugins;Ne.getPlugin=lo.getPlugin;Ne.getPluginVersion=lo.getPluginVersion;Ne.addLanguage=function(e,t){var n;return e=(""+e).toLowerCase(),Ne.options.languages=Un(Ne.options.languages,(n={},n[e]=t,n)),Ne.options.languages[e]};Ne.log=on;Ne.createLogger=HR;Ne.createTimeRange=Ne.createTimeRanges=Al;Ne.formatTime=Ec;Ne.setFormatTime=g_e;Ne.resetFormatTime=y_e;Ne.parseUrl=CT;Ne.isCrossOrigin=Ag;Ne.EventTarget=Cr;Ne.on=Ha;Ne.one=xg;Ne.off=Hr;Ne.trigger=Gc;Ne.xhr=VM;Ne.TextTrack=Pp;Ne.AudioTrack=bL;Ne.VideoTrack=_L;["isEl","isTextNode","createEl","hasClass","addClass","removeClass","toggleClass","setAttributes","getAttributes","emptyEl","appendContent","insertContent"].forEach(function(e){Ne[e]=function(){return on.warn("videojs."+e+"() is deprecated; use videojs.dom."+e+"() instead"),sL[e].apply(null,arguments)}});Ne.computedStyle=Kf;Ne.dom=sL;Ne.url=Gbe;Ne.defineLazyProperty=zT;Ne.addLanguage("en",{"Non-Fullscreen":"Exit Fullscreen"});/*! @name @videojs/http-streaming @version 2.16.3 @license Apache-2.0 */var di=hg,iv=function(t,n,r){return t&&r&&r.responseURL&&n!==r.responseURL?r.responseURL:n},Li=function(t){return Ne.log.debug?Ne.log.debug.bind(Ne,"VHS:",t+" >"):function(){}},Vs=1/30,Gi=Vs*3,YL=function(t,n){var r=[],a;if(t&&t.length)for(a=0;a<t.length;a++)n(t.start(a),t.end(a))&&r.push([t.start(a),t.end(a)]);return Ne.createTimeRanges(r)},Du=function(t,n){return YL(t,function(r,a){return r-Gi<=n&&a+Gi>=n})},Eh=function(t,n){return YL(t,function(r){return r-Vs>=n})},z_e=function(t){if(t.length<2)return Ne.createTimeRanges();for(var n=[],r=1;r<t.length;r++){var a=t.end(r-1),i=t.start(r);n.push([a,i])}return Ne.createTimeRanges(n)},j_e=function(t,n){var r=null,a=null,i=0,o=[],s=[];if(!t||!t.length||!n||!n.length)return Ne.createTimeRange();for(var l=t.length;l--;)o.push({time:t.start(l),type:"start"}),o.push({time:t.end(l),type:"end"});for(l=n.length;l--;)o.push({time:n.start(l),type:"start"}),o.push({time:n.end(l),type:"end"});for(o.sort(function(u,c){return u.time-c.time}),l=0;l<o.length;l++)o[l].type==="start"?(i++,i===2&&(r=o[l].time)):o[l].type==="end"&&(i--,i===1&&(a=o[l].time)),r!==null&&a!==null&&(s.push([r,a]),r=null,a=null);return Ne.createTimeRanges(s)},XL=function(t){var n=[];if(!t||!t.length)return"";for(var r=0;r<t.length;r++)n.push(t.start(r)+" => "+t.end(r));return n.join(", ")},W_e=function(t,n,r){r===void 0&&(r=1);var a=t.length?t.end(t.length-1):0;return(a-n)/r},_l=function(t){for(var n=[],r=0;r<t.length;r++)n.push({start:t.start(r),end:t.end(r)});return n},K_e=function(t,n){if(t===n)return!1;if(!t&&n||!n&&t||t.length!==n.length)return!0;for(var r=0;r<t.length;r++)if(t.start(r)!==n.start(r)||t.end(r)!==n.end(r))return!0;return!1},Uk=function(t){if(!(!t||!t.length||!t.end))return t.end(t.length-1)},jT=function(t,n){var r=0;if(!t||!t.length)return r;for(var a=0;a<t.length;a++){var i=t.start(a),o=t.end(a);if(!(n>o)){if(n>i&&n<=o){r+=o-n;continue}r+=o-i}}return r},Hk=Ne.createTimeRange,WT=function(t,n){if(!n.preload)return n.duration;var r=0;return(n.parts||[]).forEach(function(a){r+=a.duration}),(n.preloadHints||[]).forEach(function(a){a.type==="PART"&&(r+=t.partTargetDuration)}),r},o_=function(t){return(t.segments||[]).reduce(function(n,r,a){return r.parts?r.parts.forEach(function(i,o){n.push({duration:i.duration,segmentIndex:a,partIndex:o,part:i,segment:r})}):n.push({duration:r.duration,segmentIndex:a,partIndex:null,segment:r,part:null}),n},[])},QL=function(t){var n=t.segments&&t.segments.length&&t.segments[t.segments.length-1];return n&&n.parts||[]},JL=function(t){var n=t.preloadSegment;if(n){var r=n.parts,a=n.preloadHints,i=(a||[]).reduce(function(o,s){return o+(s.type==="PART"?1:0)},0);return i+=r&&r.length?r.length:0,i}},ZL=function(t,n){if(n.endList)return 0;if(t&&t.suggestedPresentationDelay)return t.suggestedPresentationDelay;var r=QL(n).length>0;return r&&n.serverControl&&n.serverControl.partHoldBack?n.serverControl.partHoldBack:r&&n.partTargetDuration?n.partTargetDuration*3:n.serverControl&&n.serverControl.holdBack?n.serverControl.holdBack:n.targetDuration?n.targetDuration*3:0},q_e=function(t,n){var r=0,a=n-t.mediaSequence,i=t.segments[a];if(i){if(typeof i.start<"u")return{result:i.start,precise:!0};if(typeof i.end<"u")return{result:i.end-i.duration,precise:!0}}for(;a--;){if(i=t.segments[a],typeof i.end<"u")return{result:r+i.end,precise:!0};if(r+=WT(t,i),typeof i.start<"u")return{result:r+i.start,precise:!0}}return{result:r,precise:!1}},G_e=function(t,n){for(var r=0,a,i=n-t.mediaSequence;i<t.segments.length;i++){if(a=t.segments[i],typeof a.start<"u")return{result:a.start-r,precise:!0};if(r+=WT(t,a),typeof a.end<"u")return{result:a.end-r,precise:!0}}return{result:-1,precise:!1}},eN=function(t,n,r){if(typeof n>"u"&&(n=t.mediaSequence+t.segments.length),n<t.mediaSequence)return 0;var a=q_e(t,n);if(a.precise)return a.result;var i=G_e(t,n);return i.precise?i.result:a.result+r},tN=function(t,n,r){if(!t)return 0;if(typeof r!="number"&&(r=0),typeof n>"u"){if(t.totalDuration)return t.totalDuration;if(!t.endList)return Te.Infinity}return eN(t,n,r)},tf=function(t){var n=t.defaultDuration,r=t.durationList,a=t.startIndex,i=t.endIndex,o=0;if(a>i){var s=[i,a];a=s[0],i=s[1]}if(a<0){for(var l=a;l<Math.min(0,i);l++)o+=n;a=0}for(var u=a;u<i;u++)o+=r[u].duration;return o},nN=function(t,n,r,a){if(!t||!t.segments)return null;if(t.endList)return tN(t);if(n===null)return null;n=n||0;var i=eN(t,t.mediaSequence+t.segments.length,n);return r&&(a=typeof a=="number"?a:ZL(null,t),i-=a),Math.max(0,i)},Y_e=function(t,n,r){var a=!0,i=n||0,o=nN(t,n,a,r);return o===null?Hk():Hk(i,o)},X_e=function(t){for(var n=t.playlist,r=t.currentTime,a=t.startingSegmentIndex,i=t.startingPartIndex,o=t.startTime,s=t.experimentalExactManifestTimings,l=r-o,u=o_(n),c=0,d=0;d<u.length;d++){var p=u[d];if(a===p.segmentIndex&&!(typeof i=="number"&&typeof p.partIndex=="number"&&i!==p.partIndex)){c=d;break}}if(l<0){if(c>0)for(var h=c-1;h>=0;h--){var v=u[h];if(l+=v.duration,s){if(l<0)continue}else if(l+Vs<=0)continue;return{partIndex:v.partIndex,segmentIndex:v.segmentIndex,startTime:o-tf({defaultDuration:n.targetDuration,durationList:u,startIndex:c,endIndex:h})}}return{partIndex:u[0]&&u[0].partIndex||null,segmentIndex:u[0]&&u[0].segmentIndex||0,startTime:r}}if(c<0){for(var m=c;m<0;m++)if(l-=n.targetDuration,l<0)return{partIndex:u[0]&&u[0].partIndex||null,segmentIndex:u[0]&&u[0].segmentIndex||0,startTime:r};c=0}for(var g=c;g<u.length;g++){var y=u[g];if(l-=y.duration,s){if(l>0)continue}else if(l-Vs>=0)continue;return{partIndex:y.partIndex,segmentIndex:y.segmentIndex,startTime:o+tf({defaultDuration:n.targetDuration,durationList:u,startIndex:c,endIndex:g})}}return{segmentIndex:u[u.length-1].segmentIndex,partIndex:u[u.length-1].partIndex,startTime:r}},rN=function(t){return t.excludeUntil&&t.excludeUntil>Date.now()},KT=function(t){return t.excludeUntil&&t.excludeUntil===1/0},Og=function(t){var n=rN(t);return!t.disabled&&!n},Q_e=function(t){return t.disabled},J_e=function(t){for(var n=0;n<t.segments.length;n++)if(t.segments[n].key)return!0;return!1},aN=function(t,n){return n.attributes&&n.attributes[t]},Z_e=function(t,n,r,a){if(a===void 0&&(a=0),!aN("BANDWIDTH",r))return NaN;var i=t*r.attributes.BANDWIDTH;return(i-a*8)/n},s_=function(t,n){if(t.playlists.length===1)return!0;var r=n.attributes.BANDWIDTH||Number.MAX_VALUE;return t.playlists.filter(function(a){return Og(a)?(a.attributes.BANDWIDTH||0)<r:!1}).length===0},qT=function(t,n){return!t&&!n||!t&&n||t&&!n?!1:!!(t===n||t.id&&n.id&&t.id===n.id||t.resolvedUri&&n.resolvedUri&&t.resolvedUri===n.resolvedUri||t.uri&&n.uri&&t.uri===n.uri)},zk=function(t,n){var r=t&&t.mediaGroups&&t.mediaGroups.AUDIO||{},a=!1;for(var i in r){for(var o in r[i])if(a=n(r[i][o]),a)break;if(a)break}return!!a},Rp=function(t){if(!t||!t.playlists||!t.playlists.length){var n=zk(t,function(o){return o.playlists&&o.playlists.length||o.uri});return n}for(var r=function(s){var l=t.playlists[s],u=l.attributes&&l.attributes.CODECS;if(u&&u.split(",").every(function(d){return YM(d)}))return"continue";var c=zk(t,function(d){return qT(l,d)});return c?"continue":{v:!1}},a=0;a<t.playlists.length;a++){var i=r(a);if(i!=="continue"&&typeof i=="object")return i.v}return!0},ya={liveEdgeDelay:ZL,duration:tN,seekable:Y_e,getMediaInfoForTime:X_e,isEnabled:Og,isDisabled:Q_e,isBlacklisted:rN,isIncompatible:KT,playlistEnd:nN,isAes:J_e,hasAttribute:aN,estimateSegmentRequestTime:Z_e,isLowestEnabledRendition:s_,isAudioOnly:Rp,playlistMatch:qT,segmentDurationWithParts:WT},iN=Ne.log,GT=function(t,n){return t+"-"+n},e1e=function(t,n,r){return"placeholder-uri-"+t+"-"+n+"-"+r},t1e=function(t){var n=t.onwarn,r=t.oninfo,a=t.manifestString,i=t.customTagParsers,o=i===void 0?[]:i,s=t.customTagMappers,l=s===void 0?[]:s,u=t.experimentalLLHLS,c=new m0e;n&&c.on("warn",n),r&&c.on("info",r),o.forEach(function(m){return c.addParser(m)}),l.forEach(function(m){return c.addTagMapper(m)}),c.push(a),c.end();var d=c.manifest;if(u||(["preloadSegment","skip","serverControl","renditionReports","partInf","partTargetDuration"].forEach(function(m){d.hasOwnProperty(m)&&delete d[m]}),d.segments&&d.segments.forEach(function(m){["parts","preloadHints"].forEach(function(g){m.hasOwnProperty(g)&&delete m[g]})})),!d.targetDuration){var p=10;d.segments&&d.segments.length&&(p=d.segments.reduce(function(m,g){return Math.max(m,g.duration)},0)),n&&n("manifest has no targetDuration defaulting to "+p),d.targetDuration=p}var h=QL(d);if(h.length&&!d.partTargetDuration){var v=h.reduce(function(m,g){return Math.max(m,g.duration)},0);n&&(n("manifest has no partTargetDuration defaulting to "+v),iN.error("LL-HLS manifest has parts but lacks required #EXT-X-PART-INF:PART-TARGET value. See https://datatracker.ietf.org/doc/html/draft-pantos-hls-rfc8216bis-09#section-4.4.3.7. Playback is not guaranteed.")),d.partTargetDuration=v}return d},Zc=function(t,n){t.mediaGroups&&["AUDIO","SUBTITLES"].forEach(function(r){if(t.mediaGroups[r])for(var a in t.mediaGroups[r])for(var i in t.mediaGroups[r][a]){var o=t.mediaGroups[r][a][i];n(o,r,a,i)}})},oN=function(t){var n=t.playlist,r=t.uri,a=t.id;n.id=a,n.playlistErrors_=0,r&&(n.uri=r),n.attributes=n.attributes||{}},n1e=function(t){for(var n=t.playlists.length;n--;){var r=t.playlists[n];oN({playlist:r,id:GT(n,r.uri)}),r.resolvedUri=di(t.uri,r.uri),t.playlists[r.id]=r,t.playlists[r.uri]=r,r.attributes.BANDWIDTH||iN.warn("Invalid playlist STREAM-INF detected. Missing BANDWIDTH attribute.")}},r1e=function(t){Zc(t,function(n){n.uri&&(n.resolvedUri=di(t.uri,n.uri))})},a1e=function(t,n){var r=GT(0,n),a={mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:Te.location.href,resolvedUri:Te.location.href,playlists:[{uri:n,id:r,resolvedUri:n,attributes:{}}]};return a.playlists[r]=a.playlists[0],a.playlists[n]=a.playlists[0],a},sN=function(t,n,r){r===void 0&&(r=e1e),t.uri=n;for(var a=0;a<t.playlists.length;a++)if(!t.playlists[a].uri){var i="placeholder-uri-"+a;t.playlists[a].uri=i}var o=Rp(t);Zc(t,function(s,l,u,c){if(!s.playlists||!s.playlists.length){if(o&&l==="AUDIO"&&!s.uri)for(var d=0;d<t.playlists.length;d++){var p=t.playlists[d];if(p.attributes&&p.attributes.AUDIO&&p.attributes.AUDIO===u)return}s.playlists=[oi({},s)]}s.playlists.forEach(function(h,v){var m=r(l,u,c,h),g=GT(v,m);h.uri?h.resolvedUri=h.resolvedUri||di(t.uri,h.uri):(h.uri=v===0?m:g,h.resolvedUri=h.uri),h.id=h.id||g,h.attributes=h.attributes||{},t.playlists[h.id]=h,t.playlists[h.uri]=h})}),n1e(t),r1e(t)},ov=Ne.mergeOptions,i1e=Ne.EventTarget,o1e=function(t,n){if(n.endList||!n.serverControl)return t;var r={};if(n.serverControl.canBlockReload){var a=n.preloadSegment,i=n.mediaSequence+n.segments.length;if(a){var o=a.parts||[],s=JL(n)-1;s>-1&&s!==o.length-1&&(r._HLS_part=s),(s>-1||o.length)&&i--}r._HLS_msn=i}if(n.serverControl&&n.serverControl.canSkipUntil&&(r._HLS_skip=n.serverControl.canSkipDateranges?"v2":"YES"),Object.keys(r).length){var l=new Te.URL(t);["_HLS_skip","_HLS_msn","_HLS_part"].forEach(function(u){r.hasOwnProperty(u)&&l.searchParams.set(u,r[u])}),t=l.toString()}return t},s1e=function(t,n){if(!t)return n;var r=ov(t,n);if(t.preloadHints&&!n.preloadHints&&delete r.preloadHints,t.parts&&!n.parts)delete r.parts;else if(t.parts&&n.parts)for(var a=0;a<n.parts.length;a++)t.parts&&t.parts[a]&&(r.parts[a]=ov(t.parts[a],n.parts[a]));return!t.skipped&&n.skipped&&(r.skipped=!1),t.preload&&!n.preload&&(r.preload=!1),r},l1e=function(t,n,r){var a=t.slice(),i=n.slice();r=r||0;for(var o=[],s,l=0;l<i.length;l++){var u=a[l+r],c=i[l];u?(s=u.map||s,o.push(s1e(u,c))):(s&&!c.map&&(c.map=s),o.push(c))}return o},lN=function(t,n){!t.resolvedUri&&t.uri&&(t.resolvedUri=di(n,t.uri)),t.key&&!t.key.resolvedUri&&(t.key.resolvedUri=di(n,t.key.uri)),t.map&&!t.map.resolvedUri&&(t.map.resolvedUri=di(n,t.map.uri)),t.map&&t.map.key&&!t.map.key.resolvedUri&&(t.map.key.resolvedUri=di(n,t.map.key.uri)),t.parts&&t.parts.length&&t.parts.forEach(function(r){r.resolvedUri||(r.resolvedUri=di(n,r.uri))}),t.preloadHints&&t.preloadHints.length&&t.preloadHints.forEach(function(r){r.resolvedUri||(r.resolvedUri=di(n,r.uri))})},uN=function(t){var n=t.segments||[],r=t.preloadSegment;if(r&&r.parts&&r.parts.length){if(r.preloadHints){for(var a=0;a<r.preloadHints.length;a++)if(r.preloadHints[a].type==="MAP")return n}r.duration=t.targetDuration,r.preload=!0,n.push(r)}return n},cN=function(t,n){return t===n||t.segments&&n.segments&&t.segments.length===n.segments.length&&t.endList===n.endList&&t.mediaSequence===n.mediaSequence&&t.preloadSegment===n.preloadSegment},l_=function(t,n,r){r===void 0&&(r=cN);var a=ov(t,{}),i=a.playlists[n.id];if(!i||r(i,n))return null;n.segments=uN(n);var o=ov(i,n);if(o.preloadSegment&&!n.preloadSegment&&delete o.preloadSegment,i.segments){if(n.skip){n.segments=n.segments||[];for(var s=0;s<n.skip.skippedSegments;s++)n.segments.unshift({skipped:!0})}o.segments=l1e(i.segments,n.segments,n.mediaSequence-i.mediaSequence)}o.segments.forEach(function(u){lN(u,o.resolvedUri)});for(var l=0;l<a.playlists.length;l++)a.playlists[l].id===n.id&&(a.playlists[l]=o);return a.playlists[n.id]=o,a.playlists[n.uri]=o,Zc(t,function(u,c,d,p){if(u.playlists)for(var h=0;h<u.playlists.length;h++)n.id===u.playlists[h].id&&(u.playlists[h]=o)}),a},u_=function(t,n){var r=t.segments||[],a=r[r.length-1],i=a&&a.parts&&a.parts[a.parts.length-1],o=i&&i.duration||a&&a.duration;return n&&o?o*1e3:(t.partTargetDuration||t.targetDuration||10)*500},Iu=function(e){Tt(t,e);function t(r,a,i){var o;if(i===void 0&&(i={}),o=e.call(this)||this,!r)throw new Error("A non-empty playlist URL or object is required");o.logger_=Li("PlaylistLoader");var s=i,l=s.withCredentials,u=l===void 0?!1:l,c=s.handleManifestRedirects,d=c===void 0?!1:c;o.src=r,o.vhs_=a,o.withCredentials=u,o.handleManifestRedirects=d;var p=a.options_;return o.customTagParsers=p&&p.customTagParsers||[],o.customTagMappers=p&&p.customTagMappers||[],o.experimentalLLHLS=p&&p.experimentalLLHLS||!1,Ne.browser.IE_VERSION&&(o.experimentalLLHLS=!1),o.state="HAVE_NOTHING",o.handleMediaupdatetimeout_=o.handleMediaupdatetimeout_.bind(Qt(o)),o.on("mediaupdatetimeout",o.handleMediaupdatetimeout_),o}var n=t.prototype;return n.handleMediaupdatetimeout_=function(){var a=this;if(this.state==="HAVE_METADATA"){var i=this.media(),o=di(this.master.uri,i.uri);this.experimentalLLHLS&&(o=o1e(o,i)),this.state="HAVE_CURRENT_METADATA",this.request=this.vhs_.xhr({uri:o,withCredentials:this.withCredentials},function(s,l){if(a.request){if(s)return a.playlistRequestError(a.request,a.media(),"HAVE_METADATA");a.haveMetadata({playlistString:a.request.responseText,url:a.media().uri,id:a.media().id})}})}},n.playlistRequestError=function(a,i,o){var s=i.uri,l=i.id;this.request=null,o&&(this.state=o),this.error={playlist:this.master.playlists[l],status:a.status,message:"HLS playlist request error at URL: "+s+".",responseText:a.responseText,code:a.status>=500?4:2},this.trigger("error")},n.parseManifest_=function(a){var i=this,o=a.url,s=a.manifestString;return t1e({onwarn:function(u){var c=u.message;return i.logger_("m3u8-parser warn for "+o+": "+c)},oninfo:function(u){var c=u.message;return i.logger_("m3u8-parser info for "+o+": "+c)},manifestString:s,customTagParsers:this.customTagParsers,customTagMappers:this.customTagMappers,experimentalLLHLS:this.experimentalLLHLS})},n.haveMetadata=function(a){var i=a.playlistString,o=a.playlistObject,s=a.url,l=a.id;this.request=null,this.state="HAVE_METADATA";var u=o||this.parseManifest_({url:s,manifestString:i});u.lastRequest=Date.now(),oN({playlist:u,uri:s,id:l});var c=l_(this.master,u);this.targetDuration=u.partTargetDuration||u.targetDuration,this.pendingMedia_=null,c?(this.master=c,this.media_=this.master.playlists[l]):this.trigger("playlistunchanged"),this.updateMediaUpdateTimeout_(u_(this.media(),!!c)),this.trigger("loadedplaylist")},n.dispose=function(){this.trigger("dispose"),this.stopRequest(),Te.clearTimeout(this.mediaUpdateTimeout),Te.clearTimeout(this.finalRenditionTimeout),this.off()},n.stopRequest=function(){if(this.request){var a=this.request;this.request=null,a.onreadystatechange=null,a.abort()}},n.media=function(a,i){var o=this;if(!a)return this.media_;if(this.state==="HAVE_NOTHING")throw new Error("Cannot switch media playlist from "+this.state);if(typeof a=="string"){if(!this.master.playlists[a])throw new Error("Unknown playlist URI: "+a);a=this.master.playlists[a]}if(Te.clearTimeout(this.finalRenditionTimeout),i){var s=(a.partTargetDuration||a.targetDuration)/2*1e3||5e3;this.finalRenditionTimeout=Te.setTimeout(this.media.bind(this,a,!1),s);return}var l=this.state,u=!this.media_||a.id!==this.media_.id,c=this.master.playlists[a.id];if(c&&c.endList||a.endList&&a.segments.length){this.request&&(this.request.onreadystatechange=null,this.request.abort(),this.request=null),this.state="HAVE_METADATA",this.media_=a,u&&(this.trigger("mediachanging"),l==="HAVE_MASTER"?this.trigger("loadedmetadata"):this.trigger("mediachange"));return}if(this.updateMediaUpdateTimeout_(u_(a,!0)),!!u){if(this.state="SWITCHING_MEDIA",this.request){if(a.resolvedUri===this.request.url)return;this.request.onreadystatechange=null,this.request.abort(),this.request=null}this.media_&&this.trigger("mediachanging"),this.pendingMedia_=a,this.request=this.vhs_.xhr({uri:a.resolvedUri,withCredentials:this.withCredentials},function(d,p){if(o.request){if(a.lastRequest=Date.now(),a.resolvedUri=iv(o.handleManifestRedirects,a.resolvedUri,p),d)return o.playlistRequestError(o.request,a,l);o.haveMetadata({playlistString:p.responseText,url:a.uri,id:a.id}),l==="HAVE_MASTER"?o.trigger("loadedmetadata"):o.trigger("mediachange")}})}},n.pause=function(){this.mediaUpdateTimeout&&(Te.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null),this.stopRequest(),this.state==="HAVE_NOTHING"&&(this.started=!1),this.state==="SWITCHING_MEDIA"?this.media_?this.state="HAVE_METADATA":this.state="HAVE_MASTER":this.state==="HAVE_CURRENT_METADATA"&&(this.state="HAVE_METADATA")},n.load=function(a){var i=this;this.mediaUpdateTimeout&&(Te.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null);var o=this.media();if(a){var s=o?(o.partTargetDuration||o.targetDuration)/2*1e3:5e3;this.mediaUpdateTimeout=Te.setTimeout(function(){i.mediaUpdateTimeout=null,i.load()},s);return}if(!this.started){this.start();return}o&&!o.endList?this.trigger("mediaupdatetimeout"):this.trigger("loadedplaylist")},n.updateMediaUpdateTimeout_=function(a){var i=this;this.mediaUpdateTimeout&&(Te.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null),!(!this.media()||this.media().endList)&&(this.mediaUpdateTimeout=Te.setTimeout(function(){i.mediaUpdateTimeout=null,i.trigger("mediaupdatetimeout"),i.updateMediaUpdateTimeout_(a)},a))},n.start=function(){var a=this;if(this.started=!0,typeof this.src=="object"){this.src.uri||(this.src.uri=Te.location.href),this.src.resolvedUri=this.src.uri,setTimeout(function(){a.setupInitialPlaylist(a.src)},0);return}this.request=this.vhs_.xhr({uri:this.src,withCredentials:this.withCredentials},function(i,o){if(a.request){if(a.request=null,i)return a.error={status:o.status,message:"HLS playlist request error at URL: "+a.src+".",responseText:o.responseText,code:2},a.state==="HAVE_NOTHING"&&(a.started=!1),a.trigger("error");a.src=iv(a.handleManifestRedirects,a.src,o);var s=a.parseManifest_({manifestString:o.responseText,url:a.src});a.setupInitialPlaylist(s)}})},n.srcUri=function(){return typeof this.src=="string"?this.src:this.src.uri},n.setupInitialPlaylist=function(a){if(this.state="HAVE_MASTER",a.playlists){this.master=a,sN(this.master,this.srcUri()),a.playlists.forEach(function(o){o.segments=uN(o),o.segments.forEach(function(s){lN(s,o.resolvedUri)})}),this.trigger("loadedplaylist"),this.request||this.media(this.master.playlists[0]);return}var i=this.srcUri()||Te.location.href;this.master=a1e(a,i),this.haveMetadata({playlistObject:a,url:i,id:this.master.playlists[0].id}),this.trigger("loadedmetadata")},t}(i1e),u1e=Ne.xhr,c1e=Ne.mergeOptions,c_=function(t,n,r,a){var i=t.responseType==="arraybuffer"?t.response:t.responseText;!n&&i&&(t.responseTime=Date.now(),t.roundTripTime=t.responseTime-t.requestTime,t.bytesReceived=i.byteLength||i.length,t.bandwidth||(t.bandwidth=Math.floor(t.bytesReceived/t.roundTripTime*8*1e3))),r.headers&&(t.responseHeaders=r.headers),n&&n.code==="ETIMEDOUT"&&(t.timedout=!0),!n&&!t.aborted&&r.statusCode!==200&&r.statusCode!==206&&r.statusCode!==0&&(n=new Error("XHR Failed with a response of: "+(t&&(i||t.responseText)))),a(n,t)},dN=function(){var t=function n(r,a){r=c1e({timeout:45e3},r);var i=n.beforeRequest||Ne.Vhs.xhr.beforeRequest;if(i&&typeof i=="function"){var o=i(r);o&&(r=o)}var s=Ne.Vhs.xhr.original===!0?u1e:Ne.Vhs.xhr,l=s(r,function(c,d){return c_(l,c,d,a)}),u=l.abort;return l.abort=function(){return l.aborted=!0,u.apply(l,arguments)},l.uri=r.uri,l.requestTime=Date.now(),l};return t.original=!0,t},d1e=function(t){var n,r=t.offset;return typeof t.offset=="bigint"||typeof t.length=="bigint"?n=Te.BigInt(t.offset)+Te.BigInt(t.length)-Te.BigInt(1):n=t.offset+t.length-1,"bytes="+r+"-"+n},d_=function(t){var n={};return t.byterange&&(n.Range=d1e(t.byterange)),n},f1e=function(t,n){return t.start(n)+"-"+t.end(n)},p1e=function(t,n){var r=t.toString(16);return"00".substring(0,2-r.length)+r+(n%2?" ":"")},h1e=function(t){return t>=32&&t<126?String.fromCharCode(t):"."},fN=function(t){var n={};return Object.keys(t).forEach(function(r){var a=t[r];QM(a)?n[r]={bytes:a.buffer,byteOffset:a.byteOffset,byteLength:a.byteLength}:n[r]=a}),n},sv=function(t){var n=t.byterange||{length:1/0,offset:0};return[n.length,n.offset,t.resolvedUri].join(",")},pN=function(t){return t.resolvedUri},hN=function(t){for(var n=Array.prototype.slice.call(t),r=16,a="",i,o,s=0;s<n.length/r;s++)i=n.slice(s*r,s*r+r).map(p1e).join(""),o=n.slice(s*r,s*r+r).map(h1e).join(""),a+=i+" "+o+`
`;return a},m1e=function(t){var n=t.bytes;return hN(n)},v1e=function(t){var n="",r;for(r=0;r<t.length;r++)n+=f1e(t,r)+" ";return n},g1e=Object.freeze({__proto__:null,createTransferableMessage:fN,initSegmentId:sv,segmentKeyId:pN,hexDump:hN,tagDump:m1e,textRanges:v1e}),mN=.25,y1e=function(t,n){if(!n.dateTimeObject)return null;var r=n.videoTimingInfo.transmuxerPrependedSeconds,a=n.videoTimingInfo.transmuxedPresentationStart,i=a+r,o=t-i;return new Date(n.dateTimeObject.getTime()+o*1e3)},b1e=function(t){return t.transmuxedPresentationEnd-t.transmuxedPresentationStart-t.transmuxerPrependedSeconds},_1e=function(t,n){var r;try{r=new Date(t)}catch{return null}if(!n||!n.segments||n.segments.length===0)return null;var a=n.segments[0];if(r<a.dateTimeObject)return null;for(var i=0;i<n.segments.length-1;i++){a=n.segments[i];var o=n.segments[i+1].dateTimeObject;if(r<o)break}var s=n.segments[n.segments.length-1],l=s.dateTimeObject,u=s.videoTimingInfo?b1e(s.videoTimingInfo):s.duration+s.duration*mN,c=new Date(l.getTime()+u*1e3);return r>c?null:(r>l&&(a=s),{segment:a,estimatedStart:a.videoTimingInfo?a.videoTimingInfo.transmuxedPresentationStart:ya.duration(n,n.mediaSequence+n.segments.indexOf(a)),type:a.videoTimingInfo?"accurate":"estimate"})},T1e=function(t,n){if(!n||!n.segments||n.segments.length===0)return null;for(var r=0,a,i=0;i<n.segments.length&&(a=n.segments[i],r=a.videoTimingInfo?a.videoTimingInfo.transmuxedPresentationEnd:r+a.duration,!(t<=r));i++);var o=n.segments[n.segments.length-1];if(o.videoTimingInfo&&o.videoTimingInfo.transmuxedPresentationEnd<t)return null;if(t>r){if(t>r+o.duration*mN)return null;a=o}return{segment:a,estimatedStart:a.videoTimingInfo?a.videoTimingInfo.transmuxedPresentationStart:r-a.duration,type:a.videoTimingInfo?"accurate":"estimate"}},w1e=function(t,n){var r,a;try{r=new Date(t),a=new Date(n)}catch{}var i=r.getTime(),o=a.getTime();return(o-i)/1e3},S1e=function(t){if(!t.segments||t.segments.length===0)return!1;for(var n=0;n<t.segments.length;n++){var r=t.segments[n];if(!r.dateTimeObject)return!1}return!0},C1e=function(t){var n=t.playlist,r=t.time,a=r===void 0?void 0:r,i=t.callback;if(!i)throw new Error("getProgramTime: callback must be provided");if(!n||a===void 0)return i({message:"getProgramTime: playlist and time must be provided"});var o=T1e(a,n);if(!o)return i({message:"valid programTime was not found"});if(o.type==="estimate")return i({message:"Accurate programTime could not be determined. Please seek to e.seekTime and try again",seekTime:o.estimatedStart});var s={mediaSeconds:a},l=y1e(a,o.segment);return l&&(s.programDateTime=l.toISOString()),i(null,s)},E1e=function e(t){var n=t.programTime,r=t.playlist,a=t.retryCount,i=a===void 0?2:a,o=t.seekTo,s=t.pauseAfterSeek,l=s===void 0?!0:s,u=t.tech,c=t.callback;if(!c)throw new Error("seekToProgramTime: callback must be provided");if(typeof n>"u"||!r||!o)return c({message:"seekToProgramTime: programTime, seekTo and playlist must be provided"});if(!r.endList&&!u.hasStarted_)return c({message:"player must be playing a live stream to start buffering"});if(!S1e(r))return c({message:"programDateTime tags must be provided in the manifest "+r.resolvedUri});var d=_1e(n,r);if(!d)return c({message:n+" was not found in the stream"});var p=d.segment,h=w1e(p.dateTimeObject,n);if(d.type==="estimate"){if(i===0)return c({message:n+" is not buffered yet. Try again"});o(d.estimatedStart+h),u.one("seeked",function(){e({programTime:n,playlist:r,retryCount:i-1,seekTo:o,pauseAfterSeek:l,tech:u,callback:c})});return}var v=p.start+h,m=function(){return c(null,u.currentTime())};u.one("seeked",m),l&&u.pause(),o(v)},ry=function(t,n){if(t.readyState===4)return n()},x1e=function(t,n,r){var a=[],i,o=!1,s=function(p,h,v,m){return h.abort(),o=!0,r(p,h,v,m)},l=function(p,h){if(!o){if(p)return s(p,h,"",a);var v=h.responseText.substring(a&&a.byteLength||0,h.responseText.length);if(a=k0e(a,JM(v,!0)),i=i||Od(a),a.length<10||i&&a.length<i+2)return ry(h,function(){return s(p,h,"",a)});var m=cT(a);return m==="ts"&&a.length<188?ry(h,function(){return s(p,h,"",a)}):!m&&a.length<376?ry(h,function(){return s(p,h,"",a)}):s(null,h,m,a)}},u={uri:t,beforeSend:function(p){p.overrideMimeType("text/plain; charset=x-user-defined"),p.addEventListener("progress",function(h){return h.total,h.loaded,c_(p,null,{statusCode:p.status},l)})}},c=n(u,function(d,p){return c_(c,d,p,l)});return c},k1e=Ne.EventTarget,vN=Ne.mergeOptions,jk=function(t,n){if(!cN(t,n)||t.sidx&&n.sidx&&(t.sidx.offset!==n.sidx.offset||t.sidx.length!==n.sidx.length))return!1;if(!t.sidx&&n.sidx||t.sidx&&!n.sidx||t.segments&&!n.segments||!t.segments&&n.segments)return!1;if(!t.segments&&!n.segments)return!0;for(var r=0;r<t.segments.length;r++){var a=t.segments[r],i=n.segments[r];if(a.uri!==i.uri)return!1;if(!(!a.byterange&&!i.byterange)){var o=a.byterange,s=i.byterange;if(o&&!s||!o&&s||o.offset!==s.offset||o.length!==s.length)return!1}}return!0},A1e=function(t,n,r,a){var i=a.attributes.NAME||r;return"placeholder-uri-"+t+"-"+n+"-"+i},D1e=function(t){var n=t.masterXml,r=t.srcUrl,a=t.clientOffset,i=t.sidxMapping,o=t.previousManifest,s=Kye(n,{manifestUri:r,clientOffset:a,sidxMapping:i,previousManifest:o});return sN(s,r,A1e),s},I1e=function(t,n){Zc(t,function(r,a,i,o){o in n.mediaGroups[a][i]||delete t.mediaGroups[a][i][o]})},P1e=function(t,n,r){for(var a=!0,i=vN(t,{duration:n.duration,minimumUpdatePeriod:n.minimumUpdatePeriod,timelineStarts:n.timelineStarts}),o=0;o<n.playlists.length;o++){var s=n.playlists[o];if(s.sidx){var l=bg(s.sidx);r&&r[l]&&r[l].sidx&&oT(s,r[l].sidx,s.sidx.resolvedUri)}var u=l_(i,s,jk);u&&(i=u,a=!1)}return Zc(n,function(c,d,p,h){if(c.playlists&&c.playlists.length){var v=c.playlists[0].id,m=l_(i,c.playlists[0],jk);m&&(i=m,h in i.mediaGroups[d][p]||(i.mediaGroups[d][p][h]=c),i.mediaGroups[d][p][h].playlists[0]=i.playlists[v],a=!1)}}),I1e(i,n),n.minimumUpdatePeriod!==t.minimumUpdatePeriod&&(a=!1),a?null:i},O1e=function(t,n){var r=!t.map&&!n.map,a=r||!!(t.map&&n.map&&t.map.byterange.offset===n.map.byterange.offset&&t.map.byterange.length===n.map.byterange.length);return a&&t.uri===n.uri&&t.byterange.offset===n.byterange.offset&&t.byterange.length===n.byterange.length},Wk=function(t,n){var r={};for(var a in t){var i=t[a],o=i.sidx;if(o){var s=bg(o);if(!n[s])break;var l=n[s].sidxInfo;O1e(l,o)&&(r[s]=n[s])}}return r},M1e=function(t,n){var r=Wk(t.playlists,n),a=r;return Zc(t,function(i,o,s,l){if(i.playlists&&i.playlists.length){var u=i.playlists;a=vN(a,Wk(u,n))}}),a},f_=function(e){Tt(t,e);function t(r,a,i,o){var s;i===void 0&&(i={}),s=e.call(this)||this,s.masterPlaylistLoader_=o||Qt(s),o||(s.isMaster_=!0);var l=i,u=l.withCredentials,c=u===void 0?!1:u,d=l.handleManifestRedirects,p=d===void 0?!1:d;if(s.vhs_=a,s.withCredentials=c,s.handleManifestRedirects=p,!r)throw new Error("A non-empty playlist URL or object is required");return s.on("minimumUpdatePeriod",function(){s.refreshXml_()}),s.on("mediaupdatetimeout",function(){s.refreshMedia_(s.media().id)}),s.state="HAVE_NOTHING",s.loadedPlaylists_={},s.logger_=Li("DashPlaylistLoader"),s.isMaster_?(s.masterPlaylistLoader_.srcUrl=r,s.masterPlaylistLoader_.sidxMapping_={}):s.childPlaylist_=r,s}var n=t.prototype;return n.requestErrored_=function(a,i,o){if(!this.request)return!0;if(this.request=null,a)return this.error=typeof a=="object"&&!(a instanceof Error)?a:{status:i.status,message:"DASH request error at URL: "+i.uri,response:i.response,code:2},o&&(this.state=o),this.trigger("error"),!0},n.addSidxSegments_=function(a,i,o){var s=this,l=a.sidx&&bg(a.sidx);if(!a.sidx||!l||this.masterPlaylistLoader_.sidxMapping_[l]){this.mediaRequest_=Te.setTimeout(function(){return o(!1)},0);return}var u=iv(this.handleManifestRedirects,a.sidx.resolvedUri),c=function(p,h){if(!s.requestErrored_(p,h,i)){var v=s.masterPlaylistLoader_.sidxMapping_,m;try{m=Jye(jt(h.response).subarray(8))}catch(g){s.requestErrored_(g,h,i);return}return v[l]={sidxInfo:a.sidx,sidx:m},oT(a,m,a.sidx.resolvedUri),o(!0)}};this.request=x1e(u,this.vhs_.xhr,function(d,p,h,v){if(d)return c(d,p);if(!h||h!=="mp4")return c({status:p.status,message:"Unsupported "+(h||"unknown")+" container type for sidx segment at URL: "+u,response:"",playlist:a,internal:!0,blacklistDuration:1/0,code:2},p);var m=a.sidx.byterange,g=m.offset,y=m.length;if(v.length>=y+g)return c(d,{response:v.subarray(g,g+y),status:p.status,uri:p.uri});s.request=s.vhs_.xhr({uri:u,responseType:"arraybuffer",headers:d_({byterange:a.sidx.byterange})},c)})},n.dispose=function(){this.trigger("dispose"),this.stopRequest(),this.loadedPlaylists_={},Te.clearTimeout(this.minimumUpdatePeriodTimeout_),Te.clearTimeout(this.mediaRequest_),Te.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.mediaRequest_=null,this.minimumUpdatePeriodTimeout_=null,this.masterPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.masterPlaylistLoader_.createMupOnMedia_),this.masterPlaylistLoader_.createMupOnMedia_=null),this.off()},n.hasPendingRequest=function(){return this.request||this.mediaRequest_},n.stopRequest=function(){if(this.request){var a=this.request;this.request=null,a.onreadystatechange=null,a.abort()}},n.media=function(a){var i=this;if(!a)return this.media_;if(this.state==="HAVE_NOTHING")throw new Error("Cannot switch media playlist from "+this.state);var o=this.state;if(typeof a=="string"){if(!this.masterPlaylistLoader_.master.playlists[a])throw new Error("Unknown playlist URI: "+a);a=this.masterPlaylistLoader_.master.playlists[a]}var s=!this.media_||a.id!==this.media_.id;if(s&&this.loadedPlaylists_[a.id]&&this.loadedPlaylists_[a.id].endList){this.state="HAVE_METADATA",this.media_=a,s&&(this.trigger("mediachanging"),this.trigger("mediachange"));return}s&&(this.media_&&this.trigger("mediachanging"),this.addSidxSegments_(a,o,function(l){i.haveMetadata({startingState:o,playlist:a})}))},n.haveMetadata=function(a){var i=a.startingState,o=a.playlist;this.state="HAVE_METADATA",this.loadedPlaylists_[o.id]=o,this.mediaRequest_=null,this.refreshMedia_(o.id),i==="HAVE_MASTER"?this.trigger("loadedmetadata"):this.trigger("mediachange")},n.pause=function(){this.masterPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.masterPlaylistLoader_.createMupOnMedia_),this.masterPlaylistLoader_.createMupOnMedia_=null),this.stopRequest(),Te.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.isMaster_&&(Te.clearTimeout(this.masterPlaylistLoader_.minimumUpdatePeriodTimeout_),this.masterPlaylistLoader_.minimumUpdatePeriodTimeout_=null),this.state==="HAVE_NOTHING"&&(this.started=!1)},n.load=function(a){var i=this;Te.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null;var o=this.media();if(a){var s=o?o.targetDuration/2*1e3:5e3;this.mediaUpdateTimeout=Te.setTimeout(function(){return i.load()},s);return}if(!this.started){this.start();return}o&&!o.endList?(this.isMaster_&&!this.minimumUpdatePeriodTimeout_&&(this.trigger("minimumUpdatePeriod"),this.updateMinimumUpdatePeriodTimeout_()),this.trigger("mediaupdatetimeout")):this.trigger("loadedplaylist")},n.start=function(){var a=this;if(this.started=!0,!this.isMaster_){this.mediaRequest_=Te.setTimeout(function(){return a.haveMaster_()},0);return}this.requestMaster_(function(i,o){a.haveMaster_(),!a.hasPendingRequest()&&!a.media_&&a.media(a.masterPlaylistLoader_.master.playlists[0])})},n.requestMaster_=function(a){var i=this;this.request=this.vhs_.xhr({uri:this.masterPlaylistLoader_.srcUrl,withCredentials:this.withCredentials},function(o,s){if(i.requestErrored_(o,s)){i.state==="HAVE_NOTHING"&&(i.started=!1);return}var l=s.responseText!==i.masterPlaylistLoader_.masterXml_;if(i.masterPlaylistLoader_.masterXml_=s.responseText,s.responseHeaders&&s.responseHeaders.date?i.masterLoaded_=Date.parse(s.responseHeaders.date):i.masterLoaded_=Date.now(),i.masterPlaylistLoader_.srcUrl=iv(i.handleManifestRedirects,i.masterPlaylistLoader_.srcUrl,s),l){i.handleMaster_(),i.syncClientServerClock_(function(){return a(s,l)});return}return a(s,l)})},n.syncClientServerClock_=function(a){var i=this,o=qye(this.masterPlaylistLoader_.masterXml_);if(o===null)return this.masterPlaylistLoader_.clientOffset_=this.masterLoaded_-Date.now(),a();if(o.method==="DIRECT")return this.masterPlaylistLoader_.clientOffset_=o.value-Date.now(),a();this.request=this.vhs_.xhr({uri:di(this.masterPlaylistLoader_.srcUrl,o.value),method:o.method,withCredentials:this.withCredentials},function(s,l){if(i.request){if(s)return i.masterPlaylistLoader_.clientOffset_=i.masterLoaded_-Date.now(),a();var u;o.method==="HEAD"?!l.responseHeaders||!l.responseHeaders.date?u=i.masterLoaded_:u=Date.parse(l.responseHeaders.date):u=Date.parse(l.responseText),i.masterPlaylistLoader_.clientOffset_=u-Date.now(),a()}})},n.haveMaster_=function(){this.state="HAVE_MASTER",this.isMaster_?this.trigger("loadedplaylist"):this.media_||this.media(this.childPlaylist_)},n.handleMaster_=function(){this.mediaRequest_=null;var a=this.masterPlaylistLoader_.master,i=D1e({masterXml:this.masterPlaylistLoader_.masterXml_,srcUrl:this.masterPlaylistLoader_.srcUrl,clientOffset:this.masterPlaylistLoader_.clientOffset_,sidxMapping:this.masterPlaylistLoader_.sidxMapping_,previousManifest:a});a&&(i=P1e(a,i,this.masterPlaylistLoader_.sidxMapping_)),this.masterPlaylistLoader_.master=i||a;var o=this.masterPlaylistLoader_.master.locations&&this.masterPlaylistLoader_.master.locations[0];return o&&o!==this.masterPlaylistLoader_.srcUrl&&(this.masterPlaylistLoader_.srcUrl=o),(!a||i&&i.minimumUpdatePeriod!==a.minimumUpdatePeriod)&&this.updateMinimumUpdatePeriodTimeout_(),!!i},n.updateMinimumUpdatePeriodTimeout_=function(){var a=this.masterPlaylistLoader_;a.createMupOnMedia_&&(a.off("loadedmetadata",a.createMupOnMedia_),a.createMupOnMedia_=null),a.minimumUpdatePeriodTimeout_&&(Te.clearTimeout(a.minimumUpdatePeriodTimeout_),a.minimumUpdatePeriodTimeout_=null);var i=a.master&&a.master.minimumUpdatePeriod;if(i===0&&(a.media()?i=a.media().targetDuration*1e3:(a.createMupOnMedia_=a.updateMinimumUpdatePeriodTimeout_,a.one("loadedmetadata",a.createMupOnMedia_))),typeof i!="number"||i<=0){i<0&&this.logger_("found invalid minimumUpdatePeriod of "+i+", not setting a timeout");return}this.createMUPTimeout_(i)},n.createMUPTimeout_=function(a){var i=this.masterPlaylistLoader_;i.minimumUpdatePeriodTimeout_=Te.setTimeout(function(){i.minimumUpdatePeriodTimeout_=null,i.trigger("minimumUpdatePeriod"),i.createMUPTimeout_(a)},a)},n.refreshXml_=function(){var a=this;this.requestMaster_(function(i,o){o&&(a.media_&&(a.media_=a.masterPlaylistLoader_.master.playlists[a.media_.id]),a.masterPlaylistLoader_.sidxMapping_=M1e(a.masterPlaylistLoader_.master,a.masterPlaylistLoader_.sidxMapping_),a.addSidxSegments_(a.media(),a.state,function(s){a.refreshMedia_(a.media().id)}))})},n.refreshMedia_=function(a){var i=this;if(!a)throw new Error("refreshMedia_ must take a media id");this.media_&&this.isMaster_&&this.handleMaster_();var o=this.masterPlaylistLoader_.master.playlists,s=!this.media_||this.media_!==o[a];if(s?this.media_=o[a]:this.trigger("playlistunchanged"),!this.mediaUpdateTimeout){var l=function u(){i.media().endList||(i.mediaUpdateTimeout=Te.setTimeout(function(){i.trigger("mediaupdatetimeout"),u()},u_(i.media(),!!s)))};l()}this.trigger("loadedplaylist")},t}(k1e),yr={GOAL_BUFFER_LENGTH:30,MAX_GOAL_BUFFER_LENGTH:60,BACK_BUFFER_LENGTH:30,GOAL_BUFFER_LENGTH_RATE:1,INITIAL_BANDWIDTH:4194304,BANDWIDTH_VARIANCE:1.2,BUFFER_LOW_WATER_LINE:0,MAX_BUFFER_LOW_WATER_LINE:30,EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:16,BUFFER_LOW_WATER_LINE_RATE:1,BUFFER_HIGH_WATER_LINE:30},R1e=function(t){for(var n=new Uint8Array(new ArrayBuffer(t.length)),r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n.buffer},gN=function(t){return t.on=t.addEventListener,t.off=t.removeEventListener,t},L1e=function(t){try{return URL.createObjectURL(new Blob([t],{type:"application/javascript"}))}catch{var n=new BlobBuilder;return n.append(t),URL.createObjectURL(n.getBlob())}},yN=function(t){return function(){var n=L1e(t),r=gN(new Worker(n));r.objURL=n;var a=r.terminate;return r.on=r.addEventListener,r.off=r.removeEventListener,r.terminate=function(){return URL.revokeObjectURL(n),a.call(this)},r}},bN=function(t){return"var browserWorkerPolyFill = "+gN.toString()+`;
browserWorkerPolyFill(self);
`+t},_N=function(t){return t.toString().replace(/^function.+?{/,"").slice(0,-1)},N1e=bN(_N(function(){var e=function(){this.init=function(){var C={};this.on=function(L,R){C[L]||(C[L]=[]),C[L]=C[L].concat(R)},this.off=function(L,R){var B;return C[L]?(B=C[L].indexOf(R),C[L]=C[L].slice(),C[L].splice(B,1),B>-1):!1},this.trigger=function(L){var R,B,G,Q;if(R=C[L],!!R)if(arguments.length===2)for(G=R.length,B=0;B<G;++B)R[B].call(this,arguments[1]);else{for(Q=[],B=arguments.length,B=1;B<arguments.length;++B)Q.push(arguments[B]);for(G=R.length,B=0;B<G;++B)R[B].apply(this,Q)}},this.dispose=function(){C={}}}};e.prototype.pipe=function(ee){return this.on("data",function(C){ee.push(C)}),this.on("done",function(C){ee.flush(C)}),this.on("partialdone",function(C){ee.partialFlush(C)}),this.on("endedtimeline",function(C){ee.endTimeline(C)}),this.on("reset",function(C){ee.reset(C)}),ee},e.prototype.push=function(ee){this.trigger("data",ee)},e.prototype.flush=function(ee){this.trigger("done",ee)},e.prototype.partialFlush=function(ee){this.trigger("partialdone",ee)},e.prototype.endTimeline=function(ee){this.trigger("endedtimeline",ee)},e.prototype.reset=function(ee){this.trigger("reset",ee)};var t=e,n=Math.pow(2,32),r=function(C){var L=new DataView(C.buffer,C.byteOffset,C.byteLength),R;return L.getBigUint64?(R=L.getBigUint64(0),R<Number.MAX_SAFE_INTEGER?Number(R):R):L.getUint32(0)*n+L.getUint32(4)},a={getUint64:r,MAX_UINT32:n},i=a.MAX_UINT32,o,s,l,u,c,d,p,h,v,m,g,y,T,b,_,w,S,A,I,D,O,V,N,K,Y,q,$,j,W,H,X,re,le,ne,be,_e;(function(){var ee;if(N={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],pasp:[],sdtp:[],smhd:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],styp:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[]},!(typeof Uint8Array>"u")){for(ee in N)N.hasOwnProperty(ee)&&(N[ee]=[ee.charCodeAt(0),ee.charCodeAt(1),ee.charCodeAt(2),ee.charCodeAt(3)]);K=new Uint8Array(["i".charCodeAt(0),"s".charCodeAt(0),"o".charCodeAt(0),"m".charCodeAt(0)]),q=new Uint8Array(["a".charCodeAt(0),"v".charCodeAt(0),"c".charCodeAt(0),"1".charCodeAt(0)]),Y=new Uint8Array([0,0,0,1]),$=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),j=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),W={video:$,audio:j},re=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),X=new Uint8Array([0,0,0,0,0,0,0,0]),le=new Uint8Array([0,0,0,0,0,0,0,0]),ne=le,be=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),_e=le,H=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}})(),o=function(C){var L=[],R=0,B,G,Q;for(B=1;B<arguments.length;B++)L.push(arguments[B]);for(B=L.length;B--;)R+=L[B].byteLength;for(G=new Uint8Array(R+8),Q=new DataView(G.buffer,G.byteOffset,G.byteLength),Q.setUint32(0,G.byteLength),G.set(C,4),B=0,R=8;B<L.length;B++)G.set(L[B],R),R+=L[B].byteLength;return G},s=function(){return o(N.dinf,o(N.dref,re))},l=function(C){return o(N.esds,new Uint8Array([0,0,0,0,3,25,0,0,0,4,17,64,21,0,6,0,0,0,218,192,0,0,218,192,5,2,C.audioobjecttype<<3|C.samplingfrequencyindex>>>1,C.samplingfrequencyindex<<7|C.channelcount<<3,6,1,2]))},u=function(){return o(N.ftyp,K,Y,K,q)},w=function(C){return o(N.hdlr,W[C])},c=function(C){return o(N.mdat,C)},_=function(C){var L=new Uint8Array([0,0,0,0,0,0,0,2,0,0,0,3,0,1,95,144,C.duration>>>24&255,C.duration>>>16&255,C.duration>>>8&255,C.duration&255,85,196,0,0]);return C.samplerate&&(L[12]=C.samplerate>>>24&255,L[13]=C.samplerate>>>16&255,L[14]=C.samplerate>>>8&255,L[15]=C.samplerate&255),o(N.mdhd,L)},b=function(C){return o(N.mdia,_(C),w(C.type),p(C))},d=function(C){return o(N.mfhd,new Uint8Array([0,0,0,0,(C&4278190080)>>24,(C&16711680)>>16,(C&65280)>>8,C&255]))},p=function(C){return o(N.minf,C.type==="video"?o(N.vmhd,H):o(N.smhd,X),s(),A(C))},h=function(C,L){for(var R=[],B=L.length;B--;)R[B]=D(L[B]);return o.apply(null,[N.moof,d(C)].concat(R))},v=function(C){for(var L=C.length,R=[];L--;)R[L]=y(C[L]);return o.apply(null,[N.moov,g(4294967295)].concat(R).concat(m(C)))},m=function(C){for(var L=C.length,R=[];L--;)R[L]=O(C[L]);return o.apply(null,[N.mvex].concat(R))},g=function(C){var L=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,2,0,1,95,144,(C&4278190080)>>24,(C&16711680)>>16,(C&65280)>>8,C&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return o(N.mvhd,L)},S=function(C){var L=C.samples||[],R=new Uint8Array(4+L.length),B,G;for(G=0;G<L.length;G++)B=L[G].flags,R[G+4]=B.dependsOn<<4|B.isDependedOn<<2|B.hasRedundancy;return o(N.sdtp,R)},A=function(C){return o(N.stbl,I(C),o(N.stts,_e),o(N.stsc,ne),o(N.stsz,be),o(N.stco,le))},function(){var ee,C;I=function(R){return o(N.stsd,new Uint8Array([0,0,0,0,0,0,0,1]),R.type==="video"?ee(R):C(R))},ee=function(R){var B=R.sps||[],G=R.pps||[],Q=[],se=[],ge,ke;for(ge=0;ge<B.length;ge++)Q.push((B[ge].byteLength&65280)>>>8),Q.push(B[ge].byteLength&255),Q=Q.concat(Array.prototype.slice.call(B[ge]));for(ge=0;ge<G.length;ge++)se.push((G[ge].byteLength&65280)>>>8),se.push(G[ge].byteLength&255),se=se.concat(Array.prototype.slice.call(G[ge]));if(ke=[N.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,(R.width&65280)>>8,R.width&255,(R.height&65280)>>8,R.height&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),o(N.avcC,new Uint8Array([1,R.profileIdc,R.profileCompatibility,R.levelIdc,255].concat([B.length],Q,[G.length],se))),o(N.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192]))],R.sarRatio){var Ee=R.sarRatio[0],Re=R.sarRatio[1];ke.push(o(N.pasp,new Uint8Array([(Ee&4278190080)>>24,(Ee&16711680)>>16,(Ee&65280)>>8,Ee&255,(Re&4278190080)>>24,(Re&16711680)>>16,(Re&65280)>>8,Re&255])))}return o.apply(null,ke)},C=function(R){return o(N.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,(R.channelcount&65280)>>8,R.channelcount&255,(R.samplesize&65280)>>8,R.samplesize&255,0,0,0,0,(R.samplerate&65280)>>8,R.samplerate&255,0,0]),l(R))}}(),T=function(C){var L=new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,(C.id&4278190080)>>24,(C.id&16711680)>>16,(C.id&65280)>>8,C.id&255,0,0,0,0,(C.duration&4278190080)>>24,(C.duration&16711680)>>16,(C.duration&65280)>>8,C.duration&255,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,(C.width&65280)>>8,C.width&255,0,0,(C.height&65280)>>8,C.height&255,0,0]);return o(N.tkhd,L)},D=function(C){var L,R,B,G,Q,se,ge;return L=o(N.tfhd,new Uint8Array([0,0,0,58,(C.id&4278190080)>>24,(C.id&16711680)>>16,(C.id&65280)>>8,C.id&255,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0])),se=Math.floor(C.baseMediaDecodeTime/i),ge=Math.floor(C.baseMediaDecodeTime%i),R=o(N.tfdt,new Uint8Array([1,0,0,0,se>>>24&255,se>>>16&255,se>>>8&255,se&255,ge>>>24&255,ge>>>16&255,ge>>>8&255,ge&255])),Q=32+20+8+16+8+8,C.type==="audio"?(B=V(C,Q),o(N.traf,L,R,B)):(G=S(C),B=V(C,G.length+Q),o(N.traf,L,R,B,G))},y=function(C){return C.duration=C.duration||4294967295,o(N.trak,T(C),b(C))},O=function(C){var L=new Uint8Array([0,0,0,0,(C.id&4278190080)>>24,(C.id&16711680)>>16,(C.id&65280)>>8,C.id&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return C.type!=="video"&&(L[L.length-1]=0),o(N.trex,L)},function(){var ee,C,L;L=function(B,G){var Q=0,se=0,ge=0,ke=0;return B.length&&(B[0].duration!==void 0&&(Q=1),B[0].size!==void 0&&(se=2),B[0].flags!==void 0&&(ge=4),B[0].compositionTimeOffset!==void 0&&(ke=8)),[0,0,Q|se|ge|ke,1,(B.length&4278190080)>>>24,(B.length&16711680)>>>16,(B.length&65280)>>>8,B.length&255,(G&4278190080)>>>24,(G&16711680)>>>16,(G&65280)>>>8,G&255]},C=function(B,G){var Q,se,ge,ke,Ee,Re;for(ke=B.samples||[],G+=8+12+16*ke.length,ge=L(ke,G),se=new Uint8Array(ge.length+ke.length*16),se.set(ge),Q=ge.length,Re=0;Re<ke.length;Re++)Ee=ke[Re],se[Q++]=(Ee.duration&4278190080)>>>24,se[Q++]=(Ee.duration&16711680)>>>16,se[Q++]=(Ee.duration&65280)>>>8,se[Q++]=Ee.duration&255,se[Q++]=(Ee.size&4278190080)>>>24,se[Q++]=(Ee.size&16711680)>>>16,se[Q++]=(Ee.size&65280)>>>8,se[Q++]=Ee.size&255,se[Q++]=Ee.flags.isLeading<<2|Ee.flags.dependsOn,se[Q++]=Ee.flags.isDependedOn<<6|Ee.flags.hasRedundancy<<4|Ee.flags.paddingValue<<1|Ee.flags.isNonSyncSample,se[Q++]=Ee.flags.degradationPriority&61440,se[Q++]=Ee.flags.degradationPriority&15,se[Q++]=(Ee.compositionTimeOffset&4278190080)>>>24,se[Q++]=(Ee.compositionTimeOffset&16711680)>>>16,se[Q++]=(Ee.compositionTimeOffset&65280)>>>8,se[Q++]=Ee.compositionTimeOffset&255;return o(N.trun,se)},ee=function(B,G){var Q,se,ge,ke,Ee,Re;for(ke=B.samples||[],G+=8+12+8*ke.length,ge=L(ke,G),Q=new Uint8Array(ge.length+ke.length*8),Q.set(ge),se=ge.length,Re=0;Re<ke.length;Re++)Ee=ke[Re],Q[se++]=(Ee.duration&4278190080)>>>24,Q[se++]=(Ee.duration&16711680)>>>16,Q[se++]=(Ee.duration&65280)>>>8,Q[se++]=Ee.duration&255,Q[se++]=(Ee.size&4278190080)>>>24,Q[se++]=(Ee.size&16711680)>>>16,Q[se++]=(Ee.size&65280)>>>8,Q[se++]=Ee.size&255;return o(N.trun,Q)},V=function(B,G){return B.type==="audio"?ee(B,G):C(B,G)}}();var ve={ftyp:u,mdat:c,moof:h,moov:v,initSegment:function(C){var L=u(),R=v(C),B;return B=new Uint8Array(L.byteLength+R.byteLength),B.set(L),B.set(R,L.byteLength),B}},te=function(C){var L,R,B=[],G=[];for(G.byteLength=0,G.nalCount=0,G.duration=0,B.byteLength=0,L=0;L<C.length;L++)R=C[L],R.nalUnitType==="access_unit_delimiter_rbsp"?(B.length&&(B.duration=R.dts-B.dts,G.byteLength+=B.byteLength,G.nalCount+=B.length,G.duration+=B.duration,G.push(B)),B=[R],B.byteLength=R.data.byteLength,B.pts=R.pts,B.dts=R.dts):(R.nalUnitType==="slice_layer_without_partitioning_rbsp_idr"&&(B.keyFrame=!0),B.duration=R.dts-B.dts,B.byteLength+=R.data.byteLength,B.push(R));return G.length&&(!B.duration||B.duration<=0)&&(B.duration=G[G.length-1].duration),G.byteLength+=B.byteLength,G.nalCount+=B.length,G.duration+=B.duration,G.push(B),G},me=function(C){var L,R,B=[],G=[];for(B.byteLength=0,B.nalCount=0,B.duration=0,B.pts=C[0].pts,B.dts=C[0].dts,G.byteLength=0,G.nalCount=0,G.duration=0,G.pts=C[0].pts,G.dts=C[0].dts,L=0;L<C.length;L++)R=C[L],R.keyFrame?(B.length&&(G.push(B),G.byteLength+=B.byteLength,G.nalCount+=B.nalCount,G.duration+=B.duration),B=[R],B.nalCount=R.length,B.byteLength=R.byteLength,B.pts=R.pts,B.dts=R.dts,B.duration=R.duration):(B.duration+=R.duration,B.nalCount+=R.length,B.byteLength+=R.byteLength,B.push(R));return G.length&&B.duration<=0&&(B.duration=G[G.length-1].duration),G.byteLength+=B.byteLength,G.nalCount+=B.nalCount,G.duration+=B.duration,G.push(B),G},pe=function(C){var L;return!C[0][0].keyFrame&&C.length>1&&(L=C.shift(),C.byteLength-=L.byteLength,C.nalCount-=L.nalCount,C[0][0].dts=L.dts,C[0][0].pts=L.pts,C[0][0].duration+=L.duration),C},Fe=function(){return{size:0,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0,degradationPriority:0,isNonSyncSample:1}}},Pe=function(C,L){var R=Fe();return R.dataOffset=L,R.compositionTimeOffset=C.pts-C.dts,R.duration=C.duration,R.size=4*C.length,R.size+=C.byteLength,C.keyFrame&&(R.flags.dependsOn=2,R.flags.isNonSyncSample=0),R},ye=function(C,L){var R,B,G,Q,se,ge=L||0,ke=[];for(R=0;R<C.length;R++)for(Q=C[R],B=0;B<Q.length;B++)se=Q[B],G=Pe(se,ge),ge+=G.size,ke.push(G);return ke},Z=function(C){var L,R,B,G,Q,se,ge=0,ke=C.byteLength,Ee=C.nalCount,Re=ke+4*Ee,Ze=new Uint8Array(Re),wt=new DataView(Ze.buffer);for(L=0;L<C.length;L++)for(G=C[L],R=0;R<G.length;R++)for(Q=G[R],B=0;B<Q.length;B++)se=Q[B],wt.setUint32(ge,se.data.byteLength),ge+=4,Ze.set(se.data,ge),ge+=se.data.byteLength;return Ze},ie=function(C,L){var R,B=L||0,G=[];return R=Pe(C,B),G.push(R),G},Ce=function(C){var L,R,B=0,G=C.byteLength,Q=C.length,se=G+4*Q,ge=new Uint8Array(se),ke=new DataView(ge.buffer);for(L=0;L<C.length;L++)R=C[L],ke.setUint32(B,R.data.byteLength),B+=4,ge.set(R.data,B),B+=R.data.byteLength;return ge},$e={groupNalsIntoFrames:te,groupFramesIntoGops:me,extendFirstKeyFrame:pe,generateSampleTable:ye,concatenateNalData:Z,generateSampleTableForFrame:ie,concatenateNalDataForFrame:Ce},Se=[33,16,5,32,164,27],De=[33,65,108,84,1,2,4,8,168,2,4,8,17,191,252],xe=function(C){for(var L=[];C--;)L.push(0);return L},Ve=function(C){return Object.keys(C).reduce(function(L,R){return L[R]=new Uint8Array(C[R].reduce(function(B,G){return B.concat(G)},[])),L},{})},ze,je=function(){if(!ze){var C={96e3:[Se,[227,64],xe(154),[56]],88200:[Se,[231],xe(170),[56]],64e3:[Se,[248,192],xe(240),[56]],48e3:[Se,[255,192],xe(268),[55,148,128],xe(54),[112]],44100:[Se,[255,192],xe(268),[55,163,128],xe(84),[112]],32e3:[Se,[255,192],xe(268),[55,234],xe(226),[112]],24e3:[Se,[255,192],xe(268),[55,255,128],xe(268),[111,112],xe(126),[224]],16e3:[Se,[255,192],xe(268),[55,255,128],xe(268),[111,255],xe(269),[223,108],xe(195),[1,192]],12e3:[De,xe(268),[3,127,248],xe(268),[6,255,240],xe(268),[13,255,224],xe(268),[27,253,128],xe(259),[56]],11025:[De,xe(268),[3,127,248],xe(268),[6,255,240],xe(268),[13,255,224],xe(268),[27,255,192],xe(268),[55,175,128],xe(108),[112]],8e3:[De,xe(268),[3,121,16],xe(47),[7]]};ze=Ve(C)}return ze},nt=9e4,Ae,Xe,ct,Dt,Pt,Bt,Ut;Ae=function(C){return C*nt},Xe=function(C,L){return C*L},ct=function(C){return C/nt},Dt=function(C,L){return C/L},Pt=function(C,L){return Ae(Dt(C,L))},Bt=function(C,L){return Xe(ct(C),L)},Ut=function(C,L,R){return ct(R?C:C-L)};var Nt={ONE_SECOND_IN_TS:nt,secondsToVideoTs:Ae,secondsToAudioTs:Xe,videoTsToSeconds:ct,audioTsToSeconds:Dt,audioTsToVideoTs:Pt,videoTsToAudioTs:Bt,metadataTsToSeconds:Ut},dt=function(C){var L,R,B=0;for(L=0;L<C.length;L++)R=C[L],B+=R.data.byteLength;return B},Oe=function(C,L,R,B){var G,Q=0,se=0,ge=0,ke=0,Ee,Re,Ze;if(L.length&&(G=Nt.audioTsToVideoTs(C.baseMediaDecodeTime,C.samplerate),Q=Math.ceil(Nt.ONE_SECOND_IN_TS/(C.samplerate/1024)),R&&B&&(se=G-Math.max(R,B),ge=Math.floor(se/Q),ke=ge*Q),!(ge<1||ke>Nt.ONE_SECOND_IN_TS/2))){for(Ee=je()[C.samplerate],Ee||(Ee=L[0].data),Re=0;Re<ge;Re++)Ze=L[0],L.splice(0,0,{data:Ee,dts:Ze.dts-Q,pts:Ze.pts-Q});return C.baseMediaDecodeTime-=Math.floor(Nt.videoTsToAudioTs(ke,C.samplerate)),ke}},ce=function(C,L,R){return L.minSegmentDts>=R?C:(L.minSegmentDts=1/0,C.filter(function(B){return B.dts>=R?(L.minSegmentDts=Math.min(L.minSegmentDts,B.dts),L.minSegmentPts=L.minSegmentDts,!0):!1}))},Me=function(C){var L,R,B=[];for(L=0;L<C.length;L++)R=C[L],B.push({size:R.data.byteLength,duration:1024});return B},ae=function(C){var L,R,B=0,G=new Uint8Array(dt(C));for(L=0;L<C.length;L++)R=C[L],G.set(R.data,B),B+=R.data.byteLength;return G},We={prefixWithSilence:Oe,trimAdtsFramesByEarliestDts:ce,generateSampleTable:Me,concatenateFrameData:ae},St=Nt.ONE_SECOND_IN_TS,kt=function(C,L){typeof L.pts=="number"&&(C.timelineStartInfo.pts===void 0&&(C.timelineStartInfo.pts=L.pts),C.minSegmentPts===void 0?C.minSegmentPts=L.pts:C.minSegmentPts=Math.min(C.minSegmentPts,L.pts),C.maxSegmentPts===void 0?C.maxSegmentPts=L.pts:C.maxSegmentPts=Math.max(C.maxSegmentPts,L.pts)),typeof L.dts=="number"&&(C.timelineStartInfo.dts===void 0&&(C.timelineStartInfo.dts=L.dts),C.minSegmentDts===void 0?C.minSegmentDts=L.dts:C.minSegmentDts=Math.min(C.minSegmentDts,L.dts),C.maxSegmentDts===void 0?C.maxSegmentDts=L.dts:C.maxSegmentDts=Math.max(C.maxSegmentDts,L.dts))},mn=function(C){delete C.minSegmentDts,delete C.maxSegmentDts,delete C.minSegmentPts,delete C.maxSegmentPts},fa=function(C,L){var R,B,G=C.minSegmentDts;return L||(G-=C.timelineStartInfo.dts),R=C.timelineStartInfo.baseMediaDecodeTime,R+=G,R=Math.max(0,R),C.type==="audio"&&(B=C.samplerate/St,R*=B,R=Math.floor(R)),R},bn={clearDtsInfo:mn,calculateTrackBaseMediaDecodeTime:fa,collectDtsInfo:kt},qn=4,Tn=128,vn=function(C){for(var L=0,R={payloadType:-1,payloadSize:0},B=0,G=0;L<C.byteLength&&C[L]!==Tn;){for(;C[L]===255;)B+=255,L++;for(B+=C[L++];C[L]===255;)G+=255,L++;if(G+=C[L++],!R.payload&&B===qn){var Q=String.fromCharCode(C[L+3],C[L+4],C[L+5],C[L+6]);if(Q==="GA94"){R.payloadType=B,R.payloadSize=G,R.payload=C.subarray(L,L+G);break}else R.payload=void 0}L+=G,B=0,G=0}return R},kr=function(C){return C.payload[0]!==181||(C.payload[1]<<8|C.payload[2])!==49||String.fromCharCode(C.payload[3],C.payload[4],C.payload[5],C.payload[6])!=="GA94"||C.payload[7]!==3?null:C.payload.subarray(8,C.payload.length-1)},Jl=function(C,L){var R=[],B,G,Q,se;if(!(L[0]&64))return R;for(G=L[0]&31,B=0;B<G;B++)Q=B*3,se={type:L[Q+2]&3,pts:C},L[Q+2]&4&&(se.ccData=L[Q+3]<<8|L[Q+4],R.push(se));return R},Gs=function(C){for(var L=C.byteLength,R=[],B=1,G,Q;B<L-2;)C[B]===0&&C[B+1]===0&&C[B+2]===3?(R.push(B+2),B+=2):B++;if(R.length===0)return C;G=L-R.length,Q=new Uint8Array(G);var se=0;for(B=0;B<G;se++,B++)se===R[0]&&(se++,R.shift()),Q[B]=C[se];return Q},xa={parseSei:vn,parseUserData:kr,parseCaptionPackets:Jl,discardEmulationPreventionBytes:Gs,USER_DATA_REGISTERED_ITU_T_T35:qn},gr=function ee(C){C=C||{},ee.prototype.init.call(this),this.parse708captions_=typeof C.parse708captions=="boolean"?C.parse708captions:!0,this.captionPackets_=[],this.ccStreams_=[new an(0,0),new an(0,1),new an(1,0),new an(1,1)],this.parse708captions_&&(this.cc708Stream_=new Sn({captionServices:C.captionServices})),this.reset(),this.ccStreams_.forEach(function(L){L.on("data",this.trigger.bind(this,"data")),L.on("partialdone",this.trigger.bind(this,"partialdone")),L.on("done",this.trigger.bind(this,"done"))},this),this.parse708captions_&&(this.cc708Stream_.on("data",this.trigger.bind(this,"data")),this.cc708Stream_.on("partialdone",this.trigger.bind(this,"partialdone")),this.cc708Stream_.on("done",this.trigger.bind(this,"done")))};gr.prototype=new t,gr.prototype.push=function(ee){var C,L,R;if(ee.nalUnitType==="sei_rbsp"&&(C=xa.parseSei(ee.escapedRBSP),!!C.payload&&C.payloadType===xa.USER_DATA_REGISTERED_ITU_T_T35&&(L=xa.parseUserData(C),!!L))){if(ee.dts<this.latestDts_){this.ignoreNextEqualDts_=!0;return}else if(ee.dts===this.latestDts_&&this.ignoreNextEqualDts_){this.numSameDts_--,this.numSameDts_||(this.ignoreNextEqualDts_=!1);return}R=xa.parseCaptionPackets(ee.pts,L),this.captionPackets_=this.captionPackets_.concat(R),this.latestDts_!==ee.dts&&(this.numSameDts_=0),this.numSameDts_++,this.latestDts_=ee.dts}},gr.prototype.flushCCStreams=function(ee){this.ccStreams_.forEach(function(C){return ee==="flush"?C.flush():C.partialFlush()},this)},gr.prototype.flushStream=function(ee){if(!this.captionPackets_.length){this.flushCCStreams(ee);return}this.captionPackets_.forEach(function(C,L){C.presortIndex=L}),this.captionPackets_.sort(function(C,L){return C.pts===L.pts?C.presortIndex-L.presortIndex:C.pts-L.pts}),this.captionPackets_.forEach(function(C){C.type<2?this.dispatchCea608Packet(C):this.dispatchCea708Packet(C)},this),this.captionPackets_.length=0,this.flushCCStreams(ee)},gr.prototype.flush=function(){return this.flushStream("flush")},gr.prototype.partialFlush=function(){return this.flushStream("partialFlush")},gr.prototype.reset=function(){this.latestDts_=null,this.ignoreNextEqualDts_=!1,this.numSameDts_=0,this.activeCea608Channel_=[null,null],this.ccStreams_.forEach(function(ee){ee.reset()})},gr.prototype.dispatchCea608Packet=function(ee){this.setsTextOrXDSActive(ee)?this.activeCea608Channel_[ee.type]=null:this.setsChannel1Active(ee)?this.activeCea608Channel_[ee.type]=0:this.setsChannel2Active(ee)&&(this.activeCea608Channel_[ee.type]=1),this.activeCea608Channel_[ee.type]!==null&&this.ccStreams_[(ee.type<<1)+this.activeCea608Channel_[ee.type]].push(ee)},gr.prototype.setsChannel1Active=function(ee){return(ee.ccData&30720)===4096},gr.prototype.setsChannel2Active=function(ee){return(ee.ccData&30720)===6144},gr.prototype.setsTextOrXDSActive=function(ee){return(ee.ccData&28928)===256||(ee.ccData&30974)===4138||(ee.ccData&30974)===6186},gr.prototype.dispatchCea708Packet=function(ee){this.parse708captions_&&this.cc708Stream_.push(ee)};var ed={127:9834,4128:32,4129:160,4133:8230,4138:352,4140:338,4144:9608,4145:8216,4146:8217,4147:8220,4148:8221,4149:8226,4153:8482,4154:353,4156:339,4157:8480,4159:376,4214:8539,4215:8540,4216:8541,4217:8542,4218:9168,4219:9124,4220:9123,4221:9135,4222:9126,4223:9121,4256:12600},us=function(C){var L=ed[C]||C;return C&4096&&C===L?"":String.fromCharCode(L)},go=function(C){return 32<=C&&C<=127||160<=C&&C<=255},ka=function(C){this.windowNum=C,this.reset()};ka.prototype.reset=function(){this.clearText(),this.pendingNewLine=!1,this.winAttr={},this.penAttr={},this.penLoc={},this.penColor={},this.visible=0,this.rowLock=0,this.columnLock=0,this.priority=0,this.relativePositioning=0,this.anchorVertical=0,this.anchorHorizontal=0,this.anchorPoint=0,this.rowCount=1,this.virtualRowCount=this.rowCount+1,this.columnCount=41,this.windowStyle=0,this.penStyle=0},ka.prototype.getText=function(){return this.rows.join(`
`)},ka.prototype.clearText=function(){this.rows=[""],this.rowIdx=0},ka.prototype.newLine=function(ee){for(this.rows.length>=this.virtualRowCount&&typeof this.beforeRowOverflow=="function"&&this.beforeRowOverflow(ee),this.rows.length>0&&(this.rows.push(""),this.rowIdx++);this.rows.length>this.virtualRowCount;)this.rows.shift(),this.rowIdx--},ka.prototype.isEmpty=function(){return this.rows.length===0?!0:this.rows.length===1?this.rows[0]==="":!1},ka.prototype.addText=function(ee){this.rows[this.rowIdx]+=ee},ka.prototype.backspace=function(){if(!this.isEmpty()){var ee=this.rows[this.rowIdx];this.rows[this.rowIdx]=ee.substr(0,ee.length-1)}};var cs=function(C,L,R){this.serviceNum=C,this.text="",this.currentWindow=new ka(-1),this.windows=[],this.stream=R,typeof L=="string"&&this.createTextDecoder(L)};cs.prototype.init=function(ee,C){this.startPts=ee;for(var L=0;L<8;L++)this.windows[L]=new ka(L),typeof C=="function"&&(this.windows[L].beforeRowOverflow=C)},cs.prototype.setCurrentWindow=function(ee){this.currentWindow=this.windows[ee]},cs.prototype.createTextDecoder=function(ee){if(typeof TextDecoder>"u")this.stream.trigger("log",{level:"warn",message:"The `encoding` option is unsupported without TextDecoder support"});else try{this.textDecoder_=new TextDecoder(ee)}catch(C){this.stream.trigger("log",{level:"warn",message:"TextDecoder could not be created with "+ee+" encoding. "+C})}};var Sn=function ee(C){C=C||{},ee.prototype.init.call(this);var L=this,R=C.captionServices||{},B={},G;Object.keys(R).forEach(function(Q){G=R[Q],/^SERVICE/.test(Q)&&(B[Q]=G.encoding)}),this.serviceEncodings=B,this.current708Packet=null,this.services={},this.push=function(Q){Q.type===3?(L.new708Packet(),L.add708Bytes(Q)):(L.current708Packet===null&&L.new708Packet(),L.add708Bytes(Q))}};Sn.prototype=new t,Sn.prototype.new708Packet=function(){this.current708Packet!==null&&this.push708Packet(),this.current708Packet={data:[],ptsVals:[]}},Sn.prototype.add708Bytes=function(ee){var C=ee.ccData,L=C>>>8,R=C&255;this.current708Packet.ptsVals.push(ee.pts),this.current708Packet.data.push(L),this.current708Packet.data.push(R)},Sn.prototype.push708Packet=function(){var ee=this.current708Packet,C=ee.data,L=null,R=null,B=0,G=C[B++];for(ee.seq=G>>6,ee.sizeCode=G&63;B<C.length;B++)G=C[B++],L=G>>5,R=G&31,L===7&&R>0&&(G=C[B++],L=G),this.pushServiceBlock(L,B,R),R>0&&(B+=R-1)},Sn.prototype.pushServiceBlock=function(ee,C,L){var R,B=C,G=this.current708Packet.data,Q=this.services[ee];for(Q||(Q=this.initService(ee,B));B<C+L&&B<G.length;B++)R=G[B],go(R)?B=this.handleText(B,Q):R===24?B=this.multiByteCharacter(B,Q):R===16?B=this.extendedCommands(B,Q):128<=R&&R<=135?B=this.setCurrentWindow(B,Q):152<=R&&R<=159?B=this.defineWindow(B,Q):R===136?B=this.clearWindows(B,Q):R===140?B=this.deleteWindows(B,Q):R===137?B=this.displayWindows(B,Q):R===138?B=this.hideWindows(B,Q):R===139?B=this.toggleWindows(B,Q):R===151?B=this.setWindowAttributes(B,Q):R===144?B=this.setPenAttributes(B,Q):R===145?B=this.setPenColor(B,Q):R===146?B=this.setPenLocation(B,Q):R===143?Q=this.reset(B,Q):R===8?Q.currentWindow.backspace():R===12?Q.currentWindow.clearText():R===13?Q.currentWindow.pendingNewLine=!0:R===14?Q.currentWindow.clearText():R===141&&B++},Sn.prototype.extendedCommands=function(ee,C){var L=this.current708Packet.data,R=L[++ee];return go(R)&&(ee=this.handleText(ee,C,{isExtended:!0})),ee},Sn.prototype.getPts=function(ee){return this.current708Packet.ptsVals[Math.floor(ee/2)]},Sn.prototype.initService=function(ee,C){var R="SERVICE"+ee,L=this,R,B;return R in this.serviceEncodings&&(B=this.serviceEncodings[R]),this.services[ee]=new cs(ee,B,L),this.services[ee].init(this.getPts(C),function(G){L.flushDisplayed(G,L.services[ee])}),this.services[ee]},Sn.prototype.handleText=function(ee,C,L){var R=L&&L.isExtended,B=L&&L.isMultiByte,G=this.current708Packet.data,Q=R?4096:0,se=G[ee],ge=G[ee+1],ke=C.currentWindow,Ee,Re;return C.textDecoder_&&!R?(B?(Re=[se,ge],ee++):Re=[se],Ee=C.textDecoder_.decode(new Uint8Array(Re))):Ee=us(Q|se),ke.pendingNewLine&&!ke.isEmpty()&&ke.newLine(this.getPts(ee)),ke.pendingNewLine=!1,ke.addText(Ee),ee},Sn.prototype.multiByteCharacter=function(ee,C){var L=this.current708Packet.data,R=L[ee+1],B=L[ee+2];return go(R)&&go(B)&&(ee=this.handleText(++ee,C,{isMultiByte:!0})),ee},Sn.prototype.setCurrentWindow=function(ee,C){var L=this.current708Packet.data,R=L[ee],B=R&7;return C.setCurrentWindow(B),ee},Sn.prototype.defineWindow=function(ee,C){var L=this.current708Packet.data,R=L[ee],B=R&7;C.setCurrentWindow(B);var G=C.currentWindow;return R=L[++ee],G.visible=(R&32)>>5,G.rowLock=(R&16)>>4,G.columnLock=(R&8)>>3,G.priority=R&7,R=L[++ee],G.relativePositioning=(R&128)>>7,G.anchorVertical=R&127,R=L[++ee],G.anchorHorizontal=R,R=L[++ee],G.anchorPoint=(R&240)>>4,G.rowCount=R&15,R=L[++ee],G.columnCount=R&63,R=L[++ee],G.windowStyle=(R&56)>>3,G.penStyle=R&7,G.virtualRowCount=G.rowCount+1,ee},Sn.prototype.setWindowAttributes=function(ee,C){var L=this.current708Packet.data,R=L[ee],B=C.currentWindow.winAttr;return R=L[++ee],B.fillOpacity=(R&192)>>6,B.fillRed=(R&48)>>4,B.fillGreen=(R&12)>>2,B.fillBlue=R&3,R=L[++ee],B.borderType=(R&192)>>6,B.borderRed=(R&48)>>4,B.borderGreen=(R&12)>>2,B.borderBlue=R&3,R=L[++ee],B.borderType+=(R&128)>>5,B.wordWrap=(R&64)>>6,B.printDirection=(R&48)>>4,B.scrollDirection=(R&12)>>2,B.justify=R&3,R=L[++ee],B.effectSpeed=(R&240)>>4,B.effectDirection=(R&12)>>2,B.displayEffect=R&3,ee},Sn.prototype.flushDisplayed=function(ee,C){for(var L=[],R=0;R<8;R++)C.windows[R].visible&&!C.windows[R].isEmpty()&&L.push(C.windows[R].getText());C.endPts=ee,C.text=L.join(`
`),this.pushCaption(C),C.startPts=ee},Sn.prototype.pushCaption=function(ee){ee.text!==""&&(this.trigger("data",{startPts:ee.startPts,endPts:ee.endPts,text:ee.text,stream:"cc708_"+ee.serviceNum}),ee.text="",ee.startPts=ee.endPts)},Sn.prototype.displayWindows=function(ee,C){var L=this.current708Packet.data,R=L[++ee],B=this.getPts(ee);this.flushDisplayed(B,C);for(var G=0;G<8;G++)R&1<<G&&(C.windows[G].visible=1);return ee},Sn.prototype.hideWindows=function(ee,C){var L=this.current708Packet.data,R=L[++ee],B=this.getPts(ee);this.flushDisplayed(B,C);for(var G=0;G<8;G++)R&1<<G&&(C.windows[G].visible=0);return ee},Sn.prototype.toggleWindows=function(ee,C){var L=this.current708Packet.data,R=L[++ee],B=this.getPts(ee);this.flushDisplayed(B,C);for(var G=0;G<8;G++)R&1<<G&&(C.windows[G].visible^=1);return ee},Sn.prototype.clearWindows=function(ee,C){var L=this.current708Packet.data,R=L[++ee],B=this.getPts(ee);this.flushDisplayed(B,C);for(var G=0;G<8;G++)R&1<<G&&C.windows[G].clearText();return ee},Sn.prototype.deleteWindows=function(ee,C){var L=this.current708Packet.data,R=L[++ee],B=this.getPts(ee);this.flushDisplayed(B,C);for(var G=0;G<8;G++)R&1<<G&&C.windows[G].reset();return ee},Sn.prototype.setPenAttributes=function(ee,C){var L=this.current708Packet.data,R=L[ee],B=C.currentWindow.penAttr;return R=L[++ee],B.textTag=(R&240)>>4,B.offset=(R&12)>>2,B.penSize=R&3,R=L[++ee],B.italics=(R&128)>>7,B.underline=(R&64)>>6,B.edgeType=(R&56)>>3,B.fontStyle=R&7,ee},Sn.prototype.setPenColor=function(ee,C){var L=this.current708Packet.data,R=L[ee],B=C.currentWindow.penColor;return R=L[++ee],B.fgOpacity=(R&192)>>6,B.fgRed=(R&48)>>4,B.fgGreen=(R&12)>>2,B.fgBlue=R&3,R=L[++ee],B.bgOpacity=(R&192)>>6,B.bgRed=(R&48)>>4,B.bgGreen=(R&12)>>2,B.bgBlue=R&3,R=L[++ee],B.edgeRed=(R&48)>>4,B.edgeGreen=(R&12)>>2,B.edgeBlue=R&3,ee},Sn.prototype.setPenLocation=function(ee,C){var L=this.current708Packet.data,R=L[ee],B=C.currentWindow.penLoc;return C.currentWindow.pendingNewLine=!0,R=L[++ee],B.row=R&15,R=L[++ee],B.column=R&63,ee},Sn.prototype.reset=function(ee,C){var L=this.getPts(ee);return this.flushDisplayed(L,C),this.initService(C.serviceNum,ee)};var td={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,304:174,305:176,306:189,307:191,308:8482,309:162,310:163,311:9834,312:224,313:160,314:232,315:226,316:234,317:238,318:244,319:251,544:193,545:201,546:211,547:218,548:220,549:252,550:8216,551:161,552:42,553:39,554:8212,555:169,556:8480,557:8226,558:8220,559:8221,560:192,561:194,562:199,563:200,564:202,565:203,566:235,567:206,568:207,569:239,570:212,571:217,572:249,573:219,574:171,575:187,800:195,801:227,802:205,803:204,804:236,805:210,806:242,807:213,808:245,809:123,810:125,811:92,812:94,813:95,814:124,815:126,816:196,817:228,818:214,819:246,820:223,821:165,822:164,823:9474,824:197,825:229,826:216,827:248,828:9484,829:9488,830:9492,831:9496},Ke=function(C){return C===null?"":(C=td[C]||C,String.fromCharCode(C))},yt=14,Zt=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152],xn=function(){for(var C=[],L=yt+1;L--;)C.push("");return C},an=function ee(C,L){ee.prototype.init.call(this),this.field_=C||0,this.dataChannel_=L||0,this.name_="CC"+((this.field_<<1|this.dataChannel_)+1),this.setConstants(),this.reset(),this.push=function(R){var B,G,Q,se,ge;if(B=R.ccData&32639,B===this.lastControlCode_){this.lastControlCode_=null;return}if((B&61440)===4096?this.lastControlCode_=B:B!==this.PADDING_&&(this.lastControlCode_=null),Q=B>>>8,se=B&255,B!==this.PADDING_)if(B===this.RESUME_CAPTION_LOADING_)this.mode_="popOn";else if(B===this.END_OF_CAPTION_)this.mode_="popOn",this.clearFormatting(R.pts),this.flushDisplayed(R.pts),G=this.displayed_,this.displayed_=this.nonDisplayed_,this.nonDisplayed_=G,this.startPts_=R.pts;else if(B===this.ROLL_UP_2_ROWS_)this.rollUpRows_=2,this.setRollUp(R.pts);else if(B===this.ROLL_UP_3_ROWS_)this.rollUpRows_=3,this.setRollUp(R.pts);else if(B===this.ROLL_UP_4_ROWS_)this.rollUpRows_=4,this.setRollUp(R.pts);else if(B===this.CARRIAGE_RETURN_)this.clearFormatting(R.pts),this.flushDisplayed(R.pts),this.shiftRowsUp_(),this.startPts_=R.pts;else if(B===this.BACKSPACE_)this.mode_==="popOn"?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1);else if(B===this.ERASE_DISPLAYED_MEMORY_)this.flushDisplayed(R.pts),this.displayed_=xn();else if(B===this.ERASE_NON_DISPLAYED_MEMORY_)this.nonDisplayed_=xn();else if(B===this.RESUME_DIRECT_CAPTIONING_)this.mode_!=="paintOn"&&(this.flushDisplayed(R.pts),this.displayed_=xn()),this.mode_="paintOn",this.startPts_=R.pts;else if(this.isSpecialCharacter(Q,se))Q=(Q&3)<<8,ge=Ke(Q|se),this[this.mode_](R.pts,ge),this.column_++;else if(this.isExtCharacter(Q,se))this.mode_==="popOn"?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1),Q=(Q&3)<<8,ge=Ke(Q|se),this[this.mode_](R.pts,ge),this.column_++;else if(this.isMidRowCode(Q,se))this.clearFormatting(R.pts),this[this.mode_](R.pts," "),this.column_++,(se&14)===14&&this.addFormatting(R.pts,["i"]),(se&1)===1&&this.addFormatting(R.pts,["u"]);else if(this.isOffsetControlCode(Q,se))this.column_+=se&3;else if(this.isPAC(Q,se)){var ke=Zt.indexOf(B&7968);this.mode_==="rollUp"&&(ke-this.rollUpRows_+1<0&&(ke=this.rollUpRows_-1),this.setRollUp(R.pts,ke)),ke!==this.row_&&(this.clearFormatting(R.pts),this.row_=ke),se&1&&this.formatting_.indexOf("u")===-1&&this.addFormatting(R.pts,["u"]),(B&16)===16&&(this.column_=((B&14)>>1)*4),this.isColorPAC(se)&&(se&14)===14&&this.addFormatting(R.pts,["i"])}else this.isNormalChar(Q)&&(se===0&&(se=null),ge=Ke(Q),ge+=Ke(se),this[this.mode_](R.pts,ge),this.column_+=ge.length)}};an.prototype=new t,an.prototype.flushDisplayed=function(ee){var C=this.displayed_.map(function(L,R){try{return L.trim()}catch{return this.trigger("log",{level:"warn",message:"Skipping a malformed 608 caption at index "+R+"."}),""}},this).join(`
`).replace(/^\n+|\n+$/g,"");C.length&&this.trigger("data",{startPts:this.startPts_,endPts:ee,text:C,stream:this.name_})},an.prototype.reset=function(){this.mode_="popOn",this.topRow_=0,this.startPts_=0,this.displayed_=xn(),this.nonDisplayed_=xn(),this.lastControlCode_=null,this.column_=0,this.row_=yt,this.rollUpRows_=2,this.formatting_=[]},an.prototype.setConstants=function(){this.dataChannel_===0?(this.BASE_=16,this.EXT_=17,this.CONTROL_=(20|this.field_)<<8,this.OFFSET_=23):this.dataChannel_===1&&(this.BASE_=24,this.EXT_=25,this.CONTROL_=(28|this.field_)<<8,this.OFFSET_=31),this.PADDING_=0,this.RESUME_CAPTION_LOADING_=this.CONTROL_|32,this.END_OF_CAPTION_=this.CONTROL_|47,this.ROLL_UP_2_ROWS_=this.CONTROL_|37,this.ROLL_UP_3_ROWS_=this.CONTROL_|38,this.ROLL_UP_4_ROWS_=this.CONTROL_|39,this.CARRIAGE_RETURN_=this.CONTROL_|45,this.RESUME_DIRECT_CAPTIONING_=this.CONTROL_|41,this.BACKSPACE_=this.CONTROL_|33,this.ERASE_DISPLAYED_MEMORY_=this.CONTROL_|44,this.ERASE_NON_DISPLAYED_MEMORY_=this.CONTROL_|46},an.prototype.isSpecialCharacter=function(ee,C){return ee===this.EXT_&&C>=48&&C<=63},an.prototype.isExtCharacter=function(ee,C){return(ee===this.EXT_+1||ee===this.EXT_+2)&&C>=32&&C<=63},an.prototype.isMidRowCode=function(ee,C){return ee===this.EXT_&&C>=32&&C<=47},an.prototype.isOffsetControlCode=function(ee,C){return ee===this.OFFSET_&&C>=33&&C<=35},an.prototype.isPAC=function(ee,C){return ee>=this.BASE_&&ee<this.BASE_+8&&C>=64&&C<=127},an.prototype.isColorPAC=function(ee){return ee>=64&&ee<=79||ee>=96&&ee<=127},an.prototype.isNormalChar=function(ee){return ee>=32&&ee<=127},an.prototype.setRollUp=function(ee,C){if(this.mode_!=="rollUp"&&(this.row_=yt,this.mode_="rollUp",this.flushDisplayed(ee),this.nonDisplayed_=xn(),this.displayed_=xn()),C!==void 0&&C!==this.row_)for(var L=0;L<this.rollUpRows_;L++)this.displayed_[C-L]=this.displayed_[this.row_-L],this.displayed_[this.row_-L]="";C===void 0&&(C=this.row_),this.topRow_=C-this.rollUpRows_+1},an.prototype.addFormatting=function(ee,C){this.formatting_=this.formatting_.concat(C);var L=C.reduce(function(R,B){return R+"<"+B+">"},"");this[this.mode_](ee,L)},an.prototype.clearFormatting=function(ee){if(this.formatting_.length){var C=this.formatting_.reverse().reduce(function(L,R){return L+"</"+R+">"},"");this.formatting_=[],this[this.mode_](ee,C)}},an.prototype.popOn=function(ee,C){var L=this.nonDisplayed_[this.row_];L+=C,this.nonDisplayed_[this.row_]=L},an.prototype.rollUp=function(ee,C){var L=this.displayed_[this.row_];L+=C,this.displayed_[this.row_]=L},an.prototype.shiftRowsUp_=function(){var ee;for(ee=0;ee<this.topRow_;ee++)this.displayed_[ee]="";for(ee=this.row_+1;ee<yt+1;ee++)this.displayed_[ee]="";for(ee=this.topRow_;ee<this.row_;ee++)this.displayed_[ee]=this.displayed_[ee+1];this.displayed_[this.row_]=""},an.prototype.paintOn=function(ee,C){var L=this.displayed_[this.row_];L+=C,this.displayed_[this.row_]=L};var Aa={CaptionStream:gr,Cea608Stream:an,Cea708Stream:Sn},Dn={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21},Ni=8589934592,yo=4294967296,ds="shared",qe=function(C,L){var R=1;for(C>L&&(R=-1);Math.abs(L-C)>yo;)C+=R*Ni;return C},bt=function ee(C){var L,R;ee.prototype.init.call(this),this.type_=C||ds,this.push=function(B){this.type_!==ds&&B.type!==this.type_||(R===void 0&&(R=B.dts),B.dts=qe(B.dts,R),B.pts=qe(B.pts,R),L=B.dts,this.trigger("data",B))},this.flush=function(){R=L,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.discontinuity=function(){R=void 0,L=void 0},this.reset=function(){this.discontinuity(),this.trigger("reset")}};bt.prototype=new t;var Ht={TimestampRolloverStream:bt,handleRollover:qe},Gt=function(C,L,R){var B,G="";for(B=L;B<R;B++)G+="%"+("00"+C[B].toString(16)).slice(-2);return G},Gn=function(C,L,R){return decodeURIComponent(Gt(C,L,R))},jr=function(C,L,R){return unescape(Gt(C,L,R))},za=function(C){return C[0]<<21|C[1]<<14|C[2]<<7|C[3]},bo={TXXX:function(C){var L;if(C.data[0]===3){for(L=1;L<C.data.length;L++)if(C.data[L]===0){C.description=Gn(C.data,1,L),C.value=Gn(C.data,L+1,C.data.length).replace(/\0*$/,"");break}C.data=C.value}},WXXX:function(C){var L;if(C.data[0]===3){for(L=1;L<C.data.length;L++)if(C.data[L]===0){C.description=Gn(C.data,1,L),C.url=Gn(C.data,L+1,C.data.length);break}}},PRIV:function(C){var L;for(L=0;L<C.data.length;L++)if(C.data[L]===0){C.owner=jr(C.data,0,L);break}C.privateData=C.data.subarray(L+1),C.data=C.privateData}},_o;_o=function(C){var L={descriptor:C&&C.descriptor},R=0,B=[],G=0,Q;if(_o.prototype.init.call(this),this.dispatchType=Dn.METADATA_STREAM_TYPE.toString(16),L.descriptor)for(Q=0;Q<L.descriptor.length;Q++)this.dispatchType+=("00"+L.descriptor[Q].toString(16)).slice(-2);this.push=function(se){var ge,ke,Ee,Re,Ze,wt;if(se.type==="timed-metadata"){if(se.dataAlignmentIndicator&&(G=0,B.length=0),B.length===0&&(se.data.length<10||se.data[0]!=="I".charCodeAt(0)||se.data[1]!=="D".charCodeAt(0)||se.data[2]!=="3".charCodeAt(0))){this.trigger("log",{level:"warn",message:"Skipping unrecognized metadata packet"});return}if(B.push(se),G+=se.data.byteLength,B.length===1&&(R=za(se.data.subarray(6,10)),R+=10),!(G<R)){for(ge={data:new Uint8Array(R),frames:[],pts:B[0].pts,dts:B[0].dts},Ze=0;Ze<R;)ge.data.set(B[0].data.subarray(0,R-Ze),Ze),Ze+=B[0].data.byteLength,G-=B[0].data.byteLength,B.shift();ke=10,ge.data[5]&64&&(ke+=4,ke+=za(ge.data.subarray(10,14)),R-=za(ge.data.subarray(16,20)));do{if(Ee=za(ge.data.subarray(ke+4,ke+8)),Ee<1){this.trigger("log",{level:"warn",message:"Malformed ID3 frame encountered. Skipping metadata parsing."});return}if(wt=String.fromCharCode(ge.data[ke],ge.data[ke+1],ge.data[ke+2],ge.data[ke+3]),Re={id:wt,data:ge.data.subarray(ke+10,ke+Ee+10)},Re.key=Re.id,bo[Re.id]&&(bo[Re.id](Re),Re.owner==="com.apple.streaming.transportStreamTimestamp")){var Ot=Re.data,pt=(Ot[3]&1)<<30|Ot[4]<<22|Ot[5]<<14|Ot[6]<<6|Ot[7]>>>2;pt*=4,pt+=Ot[7]&3,Re.timeStamp=pt,ge.pts===void 0&&ge.dts===void 0&&(ge.pts=Re.timeStamp,ge.dts=Re.timeStamp),this.trigger("timestamp",Re)}ge.frames.push(Re),ke+=10,ke+=Ee}while(ke<R);this.trigger("data",ge)}}}},_o.prototype=new t;var nw=_o,Mg=Ht.TimestampRolloverStream,Zl,Ys,Lp,eu=188,Rg=71;Zl=function(){var C=new Uint8Array(eu),L=0;Zl.prototype.init.call(this),this.push=function(R){var B=0,G=eu,Q;for(L?(Q=new Uint8Array(R.byteLength+L),Q.set(C.subarray(0,L)),Q.set(R,L),L=0):Q=R;G<Q.byteLength;){if(Q[B]===Rg&&Q[G]===Rg){this.trigger("data",Q.subarray(B,G)),B+=eu,G+=eu;continue}B++,G++}B<Q.byteLength&&(C.set(Q.subarray(B),0),L=Q.byteLength-B)},this.flush=function(){L===eu&&C[0]===Rg&&(this.trigger("data",C),L=0),this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.reset=function(){L=0,this.trigger("reset")}},Zl.prototype=new t,Ys=function(){var C,L,R,B;Ys.prototype.init.call(this),B=this,this.packetsWaitingForPmt=[],this.programMapTable=void 0,C=function(Q,se){var ge=0;se.payloadUnitStartIndicator&&(ge+=Q[ge]+1),se.type==="pat"?L(Q.subarray(ge),se):R(Q.subarray(ge),se)},L=function(Q,se){se.section_number=Q[7],se.last_section_number=Q[8],B.pmtPid=(Q[10]&31)<<8|Q[11],se.pmtPid=B.pmtPid},R=function(Q,se){var ge,ke,Ee,Re;if(Q[5]&1){for(B.programMapTable={video:null,audio:null,"timed-metadata":{}},ge=(Q[1]&15)<<8|Q[2],ke=3+ge-4,Ee=(Q[10]&15)<<8|Q[11],Re=12+Ee;Re<ke;){var Ze=Q[Re],wt=(Q[Re+1]&31)<<8|Q[Re+2];Ze===Dn.H264_STREAM_TYPE&&B.programMapTable.video===null?B.programMapTable.video=wt:Ze===Dn.ADTS_STREAM_TYPE&&B.programMapTable.audio===null?B.programMapTable.audio=wt:Ze===Dn.METADATA_STREAM_TYPE&&(B.programMapTable["timed-metadata"][wt]=Ze),Re+=((Q[Re+3]&15)<<8|Q[Re+4])+5}se.programMapTable=B.programMapTable}},this.push=function(G){var Q={},se=4;if(Q.payloadUnitStartIndicator=!!(G[1]&64),Q.pid=G[1]&31,Q.pid<<=8,Q.pid|=G[2],(G[3]&48)>>>4>1&&(se+=G[se]+1),Q.pid===0)Q.type="pat",C(G.subarray(se),Q),this.trigger("data",Q);else if(Q.pid===this.pmtPid)for(Q.type="pmt",C(G.subarray(se),Q),this.trigger("data",Q);this.packetsWaitingForPmt.length;)this.processPes_.apply(this,this.packetsWaitingForPmt.shift());else this.programMapTable===void 0?this.packetsWaitingForPmt.push([G,se,Q]):this.processPes_(G,se,Q)},this.processPes_=function(G,Q,se){se.pid===this.programMapTable.video?se.streamType=Dn.H264_STREAM_TYPE:se.pid===this.programMapTable.audio?se.streamType=Dn.ADTS_STREAM_TYPE:se.streamType=this.programMapTable["timed-metadata"][se.pid],se.type="pes",se.data=G.subarray(Q),this.trigger("data",se)}},Ys.prototype=new t,Ys.STREAM_TYPES={h264:27,adts:15},Lp=function(){var C=this,L=!1,R={data:[],size:0},B={data:[],size:0},G={data:[],size:0},Q,se=function(Ee,Re){var Ze,wt=Ee[0]<<16|Ee[1]<<8|Ee[2];Re.data=new Uint8Array,wt===1&&(Re.packetLength=6+(Ee[4]<<8|Ee[5]),Re.dataAlignmentIndicator=(Ee[6]&4)!==0,Ze=Ee[7],Ze&192&&(Re.pts=(Ee[9]&14)<<27|(Ee[10]&255)<<20|(Ee[11]&254)<<12|(Ee[12]&255)<<5|(Ee[13]&254)>>>3,Re.pts*=4,Re.pts+=(Ee[13]&6)>>>1,Re.dts=Re.pts,Ze&64&&(Re.dts=(Ee[14]&14)<<27|(Ee[15]&255)<<20|(Ee[16]&254)<<12|(Ee[17]&255)<<5|(Ee[18]&254)>>>3,Re.dts*=4,Re.dts+=(Ee[18]&6)>>>1)),Re.data=Ee.subarray(9+Ee[8]))},ge=function(Ee,Re,Ze){var wt=new Uint8Array(Ee.size),Ot={type:Re},pt=0,qt=0,cr=!1,Kr;if(!(!Ee.data.length||Ee.size<9)){for(Ot.trackId=Ee.data[0].pid,pt=0;pt<Ee.data.length;pt++)Kr=Ee.data[pt],wt.set(Kr.data,qt),qt+=Kr.data.byteLength;se(wt,Ot),cr=Re==="video"||Ot.packetLength<=Ee.size,(Ze||cr)&&(Ee.size=0,Ee.data.length=0),cr&&C.trigger("data",Ot)}};Lp.prototype.init.call(this),this.push=function(ke){({pat:function(){},pes:function(){var Re,Ze;switch(ke.streamType){case Dn.H264_STREAM_TYPE:Re=R,Ze="video";break;case Dn.ADTS_STREAM_TYPE:Re=B,Ze="audio";break;case Dn.METADATA_STREAM_TYPE:Re=G,Ze="timed-metadata";break;default:return}ke.payloadUnitStartIndicator&&ge(Re,Ze,!0),Re.data.push(ke),Re.size+=ke.data.byteLength},pmt:function(){var Re={type:"metadata",tracks:[]};Q=ke.programMapTable,Q.video!==null&&Re.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+Q.video,codec:"avc",type:"video"}),Q.audio!==null&&Re.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+Q.audio,codec:"adts",type:"audio"}),L=!0,C.trigger("data",Re)}})[ke.type]()},this.reset=function(){R.size=0,R.data.length=0,B.size=0,B.data.length=0,this.trigger("reset")},this.flushStreams_=function(){ge(R,"video"),ge(B,"audio"),ge(G,"timed-metadata")},this.flush=function(){if(!L&&Q){var ke={type:"metadata",tracks:[]};Q.video!==null&&ke.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+Q.video,codec:"avc",type:"video"}),Q.audio!==null&&ke.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+Q.audio,codec:"adts",type:"audio"}),C.trigger("data",ke)}L=!1,this.flushStreams_(),this.trigger("done")}},Lp.prototype=new t;var rw={PAT_PID:0,MP2T_PACKET_LENGTH:eu,TransportPacketStream:Zl,TransportParseStream:Ys,ElementaryStream:Lp,TimestampRolloverStream:Mg,CaptionStream:Aa.CaptionStream,Cea608Stream:Aa.Cea608Stream,Cea708Stream:Aa.Cea708Stream,MetadataStream:nw};for(var Lg in Dn)Dn.hasOwnProperty(Lg)&&(rw[Lg]=Dn[Lg]);var To=rw,zN=Nt.ONE_SECOND_IN_TS,Np,aw=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];Np=function(C){var L,R=0;Np.prototype.init.call(this),this.skipWarn_=function(B,G){this.trigger("log",{level:"warn",message:"adts skiping bytes "+B+" to "+G+" in frame "+R+" outside syncword"})},this.push=function(B){var G=0,Q,se,ge,ke,Ee;if(C||(R=0),B.type==="audio"){L&&L.length?(ge=L,L=new Uint8Array(ge.byteLength+B.data.byteLength),L.set(ge),L.set(B.data,ge.byteLength)):L=B.data;for(var Re;G+7<L.length;){if(L[G]!==255||(L[G+1]&246)!==240){typeof Re!="number"&&(Re=G),G++;continue}if(typeof Re=="number"&&(this.skipWarn_(Re,G),Re=null),se=(~L[G+1]&1)*2,Q=(L[G+3]&3)<<11|L[G+4]<<3|(L[G+5]&224)>>5,ke=((L[G+6]&3)+1)*1024,Ee=ke*zN/aw[(L[G+2]&60)>>>2],L.byteLength-G<Q)break;this.trigger("data",{pts:B.pts+R*Ee,dts:B.dts+R*Ee,sampleCount:ke,audioobjecttype:(L[G+2]>>>6&3)+1,channelcount:(L[G+2]&1)<<2|(L[G+3]&192)>>>6,samplerate:aw[(L[G+2]&60)>>>2],samplingfrequencyindex:(L[G+2]&60)>>>2,samplesize:16,data:L.subarray(G+7+se,G+Q)}),R++,G+=Q}typeof Re=="number"&&(this.skipWarn_(Re,G),Re=null),L=L.subarray(G)}},this.flush=function(){R=0,this.trigger("done")},this.reset=function(){L=void 0,this.trigger("reset")},this.endTimeline=function(){L=void 0,this.trigger("endedtimeline")}},Np.prototype=new t;var iw=Np,ow;ow=function(C){var L=C.byteLength,R=0,B=0;this.length=function(){return 8*L},this.bitsAvailable=function(){return 8*L+B},this.loadWord=function(){var G=C.byteLength-L,Q=new Uint8Array(4),se=Math.min(4,L);if(se===0)throw new Error("no bytes available");Q.set(C.subarray(G,G+se)),R=new DataView(Q.buffer).getUint32(0),B=se*8,L-=se},this.skipBits=function(G){var Q;B>G?(R<<=G,B-=G):(G-=B,Q=Math.floor(G/8),G-=Q*8,L-=Q,this.loadWord(),R<<=G,B-=G)},this.readBits=function(G){var Q=Math.min(B,G),se=R>>>32-Q;return B-=Q,B>0?R<<=Q:L>0&&this.loadWord(),Q=G-Q,Q>0?se<<Q|this.readBits(Q):se},this.skipLeadingZeros=function(){var G;for(G=0;G<B;++G)if(R&2147483648>>>G)return R<<=G,B-=G,G;return this.loadWord(),G+this.skipLeadingZeros()},this.skipUnsignedExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.skipExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.readUnsignedExpGolomb=function(){var G=this.skipLeadingZeros();return this.readBits(G+1)-1},this.readExpGolomb=function(){var G=this.readUnsignedExpGolomb();return 1&G?1+G>>>1:-1*(G>>>1)},this.readBoolean=function(){return this.readBits(1)===1},this.readUnsignedByte=function(){return this.readBits(8)},this.loadWord()};var jN=ow,Fp,nd,sw;nd=function(){var C=0,L,R;nd.prototype.init.call(this),this.push=function(B){var G;R?(G=new Uint8Array(R.byteLength+B.data.byteLength),G.set(R),G.set(B.data,R.byteLength),R=G):R=B.data;for(var Q=R.byteLength;C<Q-3;C++)if(R[C+2]===1){L=C+5;break}for(;L<Q;)switch(R[L]){case 0:if(R[L-1]!==0){L+=2;break}else if(R[L-2]!==0){L++;break}C+3!==L-2&&this.trigger("data",R.subarray(C+3,L-2));do L++;while(R[L]!==1&&L<Q);C=L-2,L+=3;break;case 1:if(R[L-1]!==0||R[L-2]!==0){L+=3;break}this.trigger("data",R.subarray(C+3,L-2)),C=L-2,L+=3;break;default:L+=3;break}R=R.subarray(C),L-=C,C=0},this.reset=function(){R=null,C=0,this.trigger("reset")},this.flush=function(){R&&R.byteLength>3&&this.trigger("data",R.subarray(C+3)),R=null,C=0,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")}},nd.prototype=new t,sw={100:!0,110:!0,122:!0,244:!0,44:!0,83:!0,86:!0,118:!0,128:!0,138:!0,139:!0,134:!0},Fp=function(){var C=new nd,L,R,B,G,Q,se,ge;Fp.prototype.init.call(this),L=this,this.push=function(ke){ke.type==="video"&&(R=ke.trackId,B=ke.pts,G=ke.dts,C.push(ke))},C.on("data",function(ke){var Ee={trackId:R,pts:B,dts:G,data:ke,nalUnitTypeCode:ke[0]&31};switch(Ee.nalUnitTypeCode){case 5:Ee.nalUnitType="slice_layer_without_partitioning_rbsp_idr";break;case 6:Ee.nalUnitType="sei_rbsp",Ee.escapedRBSP=Q(ke.subarray(1));break;case 7:Ee.nalUnitType="seq_parameter_set_rbsp",Ee.escapedRBSP=Q(ke.subarray(1)),Ee.config=se(Ee.escapedRBSP);break;case 8:Ee.nalUnitType="pic_parameter_set_rbsp";break;case 9:Ee.nalUnitType="access_unit_delimiter_rbsp";break}L.trigger("data",Ee)}),C.on("done",function(){L.trigger("done")}),C.on("partialdone",function(){L.trigger("partialdone")}),C.on("reset",function(){L.trigger("reset")}),C.on("endedtimeline",function(){L.trigger("endedtimeline")}),this.flush=function(){C.flush()},this.partialFlush=function(){C.partialFlush()},this.reset=function(){C.reset()},this.endTimeline=function(){C.endTimeline()},ge=function(Ee,Re){var Ze=8,wt=8,Ot,pt;for(Ot=0;Ot<Ee;Ot++)wt!==0&&(pt=Re.readExpGolomb(),wt=(Ze+pt+256)%256),Ze=wt===0?Ze:wt},Q=function(Ee){for(var Re=Ee.byteLength,Ze=[],wt=1,Ot,pt;wt<Re-2;)Ee[wt]===0&&Ee[wt+1]===0&&Ee[wt+2]===3?(Ze.push(wt+2),wt+=2):wt++;if(Ze.length===0)return Ee;Ot=Re-Ze.length,pt=new Uint8Array(Ot);var qt=0;for(wt=0;wt<Ot;qt++,wt++)qt===Ze[0]&&(qt++,Ze.shift()),pt[wt]=Ee[qt];return pt},se=function(Ee){var Re=0,Ze=0,wt=0,Ot=0,pt,qt,cr,Kr,Zs,Ug,xw,kw,Aw,Hg,Dw,Qn=[1,1],Iw,el;if(pt=new jN(Ee),qt=pt.readUnsignedByte(),Kr=pt.readUnsignedByte(),cr=pt.readUnsignedByte(),pt.skipUnsignedExpGolomb(),sw[qt]&&(Zs=pt.readUnsignedExpGolomb(),Zs===3&&pt.skipBits(1),pt.skipUnsignedExpGolomb(),pt.skipUnsignedExpGolomb(),pt.skipBits(1),pt.readBoolean()))for(Dw=Zs!==3?8:12,el=0;el<Dw;el++)pt.readBoolean()&&(el<6?ge(16,pt):ge(64,pt));if(pt.skipUnsignedExpGolomb(),Ug=pt.readUnsignedExpGolomb(),Ug===0)pt.readUnsignedExpGolomb();else if(Ug===1)for(pt.skipBits(1),pt.skipExpGolomb(),pt.skipExpGolomb(),xw=pt.readUnsignedExpGolomb(),el=0;el<xw;el++)pt.skipExpGolomb();if(pt.skipUnsignedExpGolomb(),pt.skipBits(1),kw=pt.readUnsignedExpGolomb(),Aw=pt.readUnsignedExpGolomb(),Hg=pt.readBits(1),Hg===0&&pt.skipBits(1),pt.skipBits(1),pt.readBoolean()&&(Re=pt.readUnsignedExpGolomb(),Ze=pt.readUnsignedExpGolomb(),wt=pt.readUnsignedExpGolomb(),Ot=pt.readUnsignedExpGolomb()),pt.readBoolean()&&pt.readBoolean()){switch(Iw=pt.readUnsignedByte(),Iw){case 1:Qn=[1,1];break;case 2:Qn=[12,11];break;case 3:Qn=[10,11];break;case 4:Qn=[16,11];break;case 5:Qn=[40,33];break;case 6:Qn=[24,11];break;case 7:Qn=[20,11];break;case 8:Qn=[32,11];break;case 9:Qn=[80,33];break;case 10:Qn=[18,11];break;case 11:Qn=[15,11];break;case 12:Qn=[64,33];break;case 13:Qn=[160,99];break;case 14:Qn=[4,3];break;case 15:Qn=[3,2];break;case 16:Qn=[2,1];break;case 255:{Qn=[pt.readUnsignedByte()<<8|pt.readUnsignedByte(),pt.readUnsignedByte()<<8|pt.readUnsignedByte()];break}}Qn&&Qn[0]/Qn[1]}return{profileIdc:qt,levelIdc:cr,profileCompatibility:Kr,width:(kw+1)*16-Re*2-Ze*2,height:(2-Hg)*(Aw+1)*16-wt*2-Ot*2,sarRatio:Qn}}},Fp.prototype=new t;var WN={H264Stream:Fp,NalByteStream:nd},KN=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],lw=function(C,L){var R=C[L+6]<<21|C[L+7]<<14|C[L+8]<<7|C[L+9],B=C[L+5],G=(B&16)>>4;return R=R>=0?R:0,G?R+20:R+10},qN=function ee(C,L){return C.length-L<10||C[L]!=="I".charCodeAt(0)||C[L+1]!=="D".charCodeAt(0)||C[L+2]!=="3".charCodeAt(0)?L:(L+=lw(C,L),ee(C,L))},GN=function(C){var L=qN(C,0);return C.length>=L+2&&(C[L]&255)===255&&(C[L+1]&240)===240&&(C[L+1]&22)===16},uw=function(C){return C[0]<<21|C[1]<<14|C[2]<<7|C[3]},YN=function(C,L,R){var B,G="";for(B=L;B<R;B++)G+="%"+("00"+C[B].toString(16)).slice(-2);return G},XN=function(C,L,R){return unescape(YN(C,L,R))},QN=function(C,L){var R=(C[L+5]&224)>>5,B=C[L+4]<<3,G=C[L+3]&6144;return G|B|R},JN=function(C,L){return C[L]==="I".charCodeAt(0)&&C[L+1]==="D".charCodeAt(0)&&C[L+2]==="3".charCodeAt(0)?"timed-metadata":C[L]&!0&&(C[L+1]&240)===240?"audio":null},ZN=function(C){for(var L=0;L+5<C.length;){if(C[L]!==255||(C[L+1]&246)!==240){L++;continue}return KN[(C[L+2]&60)>>>2]}return null},e8=function(C){var L,R,B,G;L=10,C[5]&64&&(L+=4,L+=uw(C.subarray(10,14)));do{if(R=uw(C.subarray(L+4,L+8)),R<1)return null;if(G=String.fromCharCode(C[L],C[L+1],C[L+2],C[L+3]),G==="PRIV"){B=C.subarray(L+10,L+R+10);for(var Q=0;Q<B.byteLength;Q++)if(B[Q]===0){var se=XN(B,0,Q);if(se==="com.apple.streaming.transportStreamTimestamp"){var ge=B.subarray(Q+1),ke=(ge[3]&1)<<30|ge[4]<<22|ge[5]<<14|ge[6]<<6|ge[7]>>>2;return ke*=4,ke+=ge[7]&3,ke}break}}L+=10,L+=R}while(L<C.byteLength);return null},$p={isLikelyAacData:GN,parseId3TagSize:lw,parseAdtsSize:QN,parseType:JN,parseSampleRate:ZN,parseAacTimestamp:e8},Bp;Bp=function(){var C=new Uint8Array,L=0;Bp.prototype.init.call(this),this.setTimestamp=function(R){L=R},this.push=function(R){var B=0,G=0,Q,se,ge,ke;for(C.length?(ke=C.length,C=new Uint8Array(R.byteLength+ke),C.set(C.subarray(0,ke)),C.set(R,ke)):C=R;C.length-G>=3;){if(C[G]==="I".charCodeAt(0)&&C[G+1]==="D".charCodeAt(0)&&C[G+2]==="3".charCodeAt(0)){if(C.length-G<10||(B=$p.parseId3TagSize(C,G),G+B>C.length))break;se={type:"timed-metadata",data:C.subarray(G,G+B)},this.trigger("data",se),G+=B;continue}else if((C[G]&255)===255&&(C[G+1]&240)===240){if(C.length-G<7||(B=$p.parseAdtsSize(C,G),G+B>C.length))break;ge={type:"audio",data:C.subarray(G,G+B),pts:L,dts:L},this.trigger("data",ge),G+=B;continue}G++}Q=C.length-G,Q>0?C=C.subarray(G):C=new Uint8Array},this.reset=function(){C=new Uint8Array,this.trigger("reset")},this.endTimeline=function(){C=new Uint8Array,this.trigger("endedtimeline")}},Bp.prototype=new t;var t8=Bp,n8=["audioobjecttype","channelcount","samplerate","samplingfrequencyindex","samplesize"],Ng=n8,r8=["width","height","profileIdc","levelIdc","profileCompatibility","sarRatio"],Fg=r8,a8=WN.H264Stream,i8=$p.isLikelyAacData,o8=Nt.ONE_SECOND_IN_TS,rd,tu,Vp,Xs,s8=function(C,L){L.stream=C,this.trigger("log",L)},cw=function(C,L){for(var R=Object.keys(L),B=0;B<R.length;B++){var G=R[B];G==="headOfPipeline"||!L[G].on||L[G].on("log",s8.bind(C,G))}},dw=function(C,L){var R;if(C.length!==L.length)return!1;for(R=0;R<C.length;R++)if(C[R]!==L[R])return!1;return!0},$g=function(C,L,R,B,G,Q){var se=R-L,ge=B-L,ke=G-R;return{start:{dts:C,pts:C+se},end:{dts:C+ge,pts:C+ke},prependedContentDuration:Q,baseMediaDecodeTime:C}};tu=function(C,L){var R=[],B,G=0,Q=0,se=1/0;L=L||{},B=L.firstSequenceNumber||0,tu.prototype.init.call(this),this.push=function(ge){bn.collectDtsInfo(C,ge),C&&Ng.forEach(function(ke){C[ke]=ge[ke]}),R.push(ge)},this.setEarliestDts=function(ge){G=ge},this.setVideoBaseMediaDecodeTime=function(ge){se=ge},this.setAudioAppendStart=function(ge){Q=ge},this.flush=function(){var ge,ke,Ee,Re,Ze,wt,Ot;if(R.length===0){this.trigger("done","AudioSegmentStream");return}ge=We.trimAdtsFramesByEarliestDts(R,C,G),C.baseMediaDecodeTime=bn.calculateTrackBaseMediaDecodeTime(C,L.keepOriginalTimestamps),Ot=We.prefixWithSilence(C,ge,Q,se),C.samples=We.generateSampleTable(ge),Ee=ve.mdat(We.concatenateFrameData(ge)),R=[],ke=ve.moof(B,[C]),Re=new Uint8Array(ke.byteLength+Ee.byteLength),B++,Re.set(ke),Re.set(Ee,ke.byteLength),bn.clearDtsInfo(C),Ze=Math.ceil(o8*1024/C.samplerate),ge.length&&(wt=ge.length*Ze,this.trigger("segmentTimingInfo",$g(Nt.audioTsToVideoTs(C.baseMediaDecodeTime,C.samplerate),ge[0].dts,ge[0].pts,ge[0].dts+wt,ge[0].pts+wt,Ot||0)),this.trigger("timingInfo",{start:ge[0].pts,end:ge[0].pts+wt})),this.trigger("data",{track:C,boxes:Re}),this.trigger("done","AudioSegmentStream")},this.reset=function(){bn.clearDtsInfo(C),R=[],this.trigger("reset")}},tu.prototype=new t,rd=function(C,L){var R,B=[],G=[],Q,se;L=L||{},R=L.firstSequenceNumber||0,rd.prototype.init.call(this),delete C.minPTS,this.gopCache_=[],this.push=function(ge){bn.collectDtsInfo(C,ge),ge.nalUnitType==="seq_parameter_set_rbsp"&&!Q&&(Q=ge.config,C.sps=[ge.data],Fg.forEach(function(ke){C[ke]=Q[ke]},this)),ge.nalUnitType==="pic_parameter_set_rbsp"&&!se&&(se=ge.data,C.pps=[ge.data]),B.push(ge)},this.flush=function(){for(var ge,ke,Ee,Re,Ze,wt,Ot=0,pt,qt;B.length&&B[0].nalUnitType!=="access_unit_delimiter_rbsp";)B.shift();if(B.length===0){this.resetStream_(),this.trigger("done","VideoSegmentStream");return}if(ge=$e.groupNalsIntoFrames(B),Ee=$e.groupFramesIntoGops(ge),Ee[0][0].keyFrame||(ke=this.getGopForFusion_(B[0],C),ke?(Ot=ke.duration,Ee.unshift(ke),Ee.byteLength+=ke.byteLength,Ee.nalCount+=ke.nalCount,Ee.pts=ke.pts,Ee.dts=ke.dts,Ee.duration+=ke.duration):Ee=$e.extendFirstKeyFrame(Ee)),G.length){var cr;if(L.alignGopsAtEnd?cr=this.alignGopsAtEnd_(Ee):cr=this.alignGopsAtStart_(Ee),!cr){this.gopCache_.unshift({gop:Ee.pop(),pps:C.pps,sps:C.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),B=[],this.resetStream_(),this.trigger("done","VideoSegmentStream");return}bn.clearDtsInfo(C),Ee=cr}bn.collectDtsInfo(C,Ee),C.samples=$e.generateSampleTable(Ee),Ze=ve.mdat($e.concatenateNalData(Ee)),C.baseMediaDecodeTime=bn.calculateTrackBaseMediaDecodeTime(C,L.keepOriginalTimestamps),this.trigger("processedGopsInfo",Ee.map(function(Kr){return{pts:Kr.pts,dts:Kr.dts,byteLength:Kr.byteLength}})),pt=Ee[0],qt=Ee[Ee.length-1],this.trigger("segmentTimingInfo",$g(C.baseMediaDecodeTime,pt.dts,pt.pts,qt.dts+qt.duration,qt.pts+qt.duration,Ot)),this.trigger("timingInfo",{start:Ee[0].pts,end:Ee[Ee.length-1].pts+Ee[Ee.length-1].duration}),this.gopCache_.unshift({gop:Ee.pop(),pps:C.pps,sps:C.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),B=[],this.trigger("baseMediaDecodeTime",C.baseMediaDecodeTime),this.trigger("timelineStartInfo",C.timelineStartInfo),Re=ve.moof(R,[C]),wt=new Uint8Array(Re.byteLength+Ze.byteLength),R++,wt.set(Re),wt.set(Ze,Re.byteLength),this.trigger("data",{track:C,boxes:wt}),this.resetStream_(),this.trigger("done","VideoSegmentStream")},this.reset=function(){this.resetStream_(),B=[],this.gopCache_.length=0,G.length=0,this.trigger("reset")},this.resetStream_=function(){bn.clearDtsInfo(C),Q=void 0,se=void 0},this.getGopForFusion_=function(ge){var ke=45e3,Ee=1e4,Re=1/0,Ze,wt,Ot,pt,qt;for(qt=0;qt<this.gopCache_.length;qt++)pt=this.gopCache_[qt],Ot=pt.gop,!(!(C.pps&&dw(C.pps[0],pt.pps[0]))||!(C.sps&&dw(C.sps[0],pt.sps[0])))&&(Ot.dts<C.timelineStartInfo.dts||(Ze=ge.dts-Ot.dts-Ot.duration,Ze>=-Ee&&Ze<=ke&&(!wt||Re>Ze)&&(wt=pt,Re=Ze)));return wt?wt.gop:null},this.alignGopsAtStart_=function(ge){var ke,Ee,Re,Ze,wt,Ot,pt,qt;for(wt=ge.byteLength,Ot=ge.nalCount,pt=ge.duration,ke=Ee=0;ke<G.length&&Ee<ge.length&&(Re=G[ke],Ze=ge[Ee],Re.pts!==Ze.pts);){if(Ze.pts>Re.pts){ke++;continue}Ee++,wt-=Ze.byteLength,Ot-=Ze.nalCount,pt-=Ze.duration}return Ee===0?ge:Ee===ge.length?null:(qt=ge.slice(Ee),qt.byteLength=wt,qt.duration=pt,qt.nalCount=Ot,qt.pts=qt[0].pts,qt.dts=qt[0].dts,qt)},this.alignGopsAtEnd_=function(ge){var ke,Ee,Re,Ze,wt,Ot;for(ke=G.length-1,Ee=ge.length-1,wt=null,Ot=!1;ke>=0&&Ee>=0;){if(Re=G[ke],Ze=ge[Ee],Re.pts===Ze.pts){Ot=!0;break}if(Re.pts>Ze.pts){ke--;continue}ke===G.length-1&&(wt=Ee),Ee--}if(!Ot&&wt===null)return null;var pt;if(Ot?pt=Ee:pt=wt,pt===0)return ge;var qt=ge.slice(pt),cr=qt.reduce(function(Kr,Zs){return Kr.byteLength+=Zs.byteLength,Kr.duration+=Zs.duration,Kr.nalCount+=Zs.nalCount,Kr},{byteLength:0,duration:0,nalCount:0});return qt.byteLength=cr.byteLength,qt.duration=cr.duration,qt.nalCount=cr.nalCount,qt.pts=qt[0].pts,qt.dts=qt[0].dts,qt},this.alignGopsWith=function(ge){G=ge}},rd.prototype=new t,Xs=function(C,L){this.numberOfTracks=0,this.metadataStream=L,C=C||{},typeof C.remux<"u"?this.remuxTracks=!!C.remux:this.remuxTracks=!0,typeof C.keepOriginalTimestamps=="boolean"?this.keepOriginalTimestamps=C.keepOriginalTimestamps:this.keepOriginalTimestamps=!1,this.pendingTracks=[],this.videoTrack=null,this.pendingBoxes=[],this.pendingCaptions=[],this.pendingMetadata=[],this.pendingBytes=0,this.emittedTracks=0,Xs.prototype.init.call(this),this.push=function(R){if(R.text)return this.pendingCaptions.push(R);if(R.frames)return this.pendingMetadata.push(R);this.pendingTracks.push(R.track),this.pendingBytes+=R.boxes.byteLength,R.track.type==="video"&&(this.videoTrack=R.track,this.pendingBoxes.push(R.boxes)),R.track.type==="audio"&&(this.audioTrack=R.track,this.pendingBoxes.unshift(R.boxes))}},Xs.prototype=new t,Xs.prototype.flush=function(ee){var C=0,L={captions:[],captionStreams:{},metadata:[],info:{}},R,B,G,Q=0,se;if(this.pendingTracks.length<this.numberOfTracks){if(ee!=="VideoSegmentStream"&&ee!=="AudioSegmentStream")return;if(this.remuxTracks)return;if(this.pendingTracks.length===0){this.emittedTracks++,this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0);return}}if(this.videoTrack?(Q=this.videoTrack.timelineStartInfo.pts,Fg.forEach(function(ge){L.info[ge]=this.videoTrack[ge]},this)):this.audioTrack&&(Q=this.audioTrack.timelineStartInfo.pts,Ng.forEach(function(ge){L.info[ge]=this.audioTrack[ge]},this)),this.videoTrack||this.audioTrack){for(this.pendingTracks.length===1?L.type=this.pendingTracks[0].type:L.type="combined",this.emittedTracks+=this.pendingTracks.length,G=ve.initSegment(this.pendingTracks),L.initSegment=new Uint8Array(G.byteLength),L.initSegment.set(G),L.data=new Uint8Array(this.pendingBytes),se=0;se<this.pendingBoxes.length;se++)L.data.set(this.pendingBoxes[se],C),C+=this.pendingBoxes[se].byteLength;for(se=0;se<this.pendingCaptions.length;se++)R=this.pendingCaptions[se],R.startTime=Nt.metadataTsToSeconds(R.startPts,Q,this.keepOriginalTimestamps),R.endTime=Nt.metadataTsToSeconds(R.endPts,Q,this.keepOriginalTimestamps),L.captionStreams[R.stream]=!0,L.captions.push(R);for(se=0;se<this.pendingMetadata.length;se++)B=this.pendingMetadata[se],B.cueTime=Nt.metadataTsToSeconds(B.pts,Q,this.keepOriginalTimestamps),L.metadata.push(B);for(L.metadata.dispatchType=this.metadataStream.dispatchType,this.pendingTracks.length=0,this.videoTrack=null,this.pendingBoxes.length=0,this.pendingCaptions.length=0,this.pendingBytes=0,this.pendingMetadata.length=0,this.trigger("data",L),se=0;se<L.captions.length;se++)R=L.captions[se],this.trigger("caption",R);for(se=0;se<L.metadata.length;se++)B=L.metadata[se],this.trigger("id3Frame",B)}this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0)},Xs.prototype.setRemux=function(ee){this.remuxTracks=ee},Vp=function(C){var L=this,R=!0,B,G;Vp.prototype.init.call(this),C=C||{},this.baseMediaDecodeTime=C.baseMediaDecodeTime||0,this.transmuxPipeline_={},this.setupAacPipeline=function(){var Q={};this.transmuxPipeline_=Q,Q.type="aac",Q.metadataStream=new To.MetadataStream,Q.aacStream=new t8,Q.audioTimestampRolloverStream=new To.TimestampRolloverStream("audio"),Q.timedMetadataTimestampRolloverStream=new To.TimestampRolloverStream("timed-metadata"),Q.adtsStream=new iw,Q.coalesceStream=new Xs(C,Q.metadataStream),Q.headOfPipeline=Q.aacStream,Q.aacStream.pipe(Q.audioTimestampRolloverStream).pipe(Q.adtsStream),Q.aacStream.pipe(Q.timedMetadataTimestampRolloverStream).pipe(Q.metadataStream).pipe(Q.coalesceStream),Q.metadataStream.on("timestamp",function(se){Q.aacStream.setTimestamp(se.timeStamp)}),Q.aacStream.on("data",function(se){se.type!=="timed-metadata"&&se.type!=="audio"||Q.audioSegmentStream||(G=G||{timelineStartInfo:{baseMediaDecodeTime:L.baseMediaDecodeTime},codec:"adts",type:"audio"},Q.coalesceStream.numberOfTracks++,Q.audioSegmentStream=new tu(G,C),Q.audioSegmentStream.on("log",L.getLogTrigger_("audioSegmentStream")),Q.audioSegmentStream.on("timingInfo",L.trigger.bind(L,"audioTimingInfo")),Q.adtsStream.pipe(Q.audioSegmentStream).pipe(Q.coalesceStream),L.trigger("trackinfo",{hasAudio:!!G,hasVideo:!!B}))}),Q.coalesceStream.on("data",this.trigger.bind(this,"data")),Q.coalesceStream.on("done",this.trigger.bind(this,"done")),cw(this,Q)},this.setupTsPipeline=function(){var Q={};this.transmuxPipeline_=Q,Q.type="ts",Q.metadataStream=new To.MetadataStream,Q.packetStream=new To.TransportPacketStream,Q.parseStream=new To.TransportParseStream,Q.elementaryStream=new To.ElementaryStream,Q.timestampRolloverStream=new To.TimestampRolloverStream,Q.adtsStream=new iw,Q.h264Stream=new a8,Q.captionStream=new To.CaptionStream(C),Q.coalesceStream=new Xs(C,Q.metadataStream),Q.headOfPipeline=Q.packetStream,Q.packetStream.pipe(Q.parseStream).pipe(Q.elementaryStream).pipe(Q.timestampRolloverStream),Q.timestampRolloverStream.pipe(Q.h264Stream),Q.timestampRolloverStream.pipe(Q.adtsStream),Q.timestampRolloverStream.pipe(Q.metadataStream).pipe(Q.coalesceStream),Q.h264Stream.pipe(Q.captionStream).pipe(Q.coalesceStream),Q.elementaryStream.on("data",function(se){var ge;if(se.type==="metadata"){for(ge=se.tracks.length;ge--;)!B&&se.tracks[ge].type==="video"?(B=se.tracks[ge],B.timelineStartInfo.baseMediaDecodeTime=L.baseMediaDecodeTime):!G&&se.tracks[ge].type==="audio"&&(G=se.tracks[ge],G.timelineStartInfo.baseMediaDecodeTime=L.baseMediaDecodeTime);B&&!Q.videoSegmentStream&&(Q.coalesceStream.numberOfTracks++,Q.videoSegmentStream=new rd(B,C),Q.videoSegmentStream.on("log",L.getLogTrigger_("videoSegmentStream")),Q.videoSegmentStream.on("timelineStartInfo",function(ke){G&&!C.keepOriginalTimestamps&&(G.timelineStartInfo=ke,Q.audioSegmentStream.setEarliestDts(ke.dts-L.baseMediaDecodeTime))}),Q.videoSegmentStream.on("processedGopsInfo",L.trigger.bind(L,"gopInfo")),Q.videoSegmentStream.on("segmentTimingInfo",L.trigger.bind(L,"videoSegmentTimingInfo")),Q.videoSegmentStream.on("baseMediaDecodeTime",function(ke){G&&Q.audioSegmentStream.setVideoBaseMediaDecodeTime(ke)}),Q.videoSegmentStream.on("timingInfo",L.trigger.bind(L,"videoTimingInfo")),Q.h264Stream.pipe(Q.videoSegmentStream).pipe(Q.coalesceStream)),G&&!Q.audioSegmentStream&&(Q.coalesceStream.numberOfTracks++,Q.audioSegmentStream=new tu(G,C),Q.audioSegmentStream.on("log",L.getLogTrigger_("audioSegmentStream")),Q.audioSegmentStream.on("timingInfo",L.trigger.bind(L,"audioTimingInfo")),Q.audioSegmentStream.on("segmentTimingInfo",L.trigger.bind(L,"audioSegmentTimingInfo")),Q.adtsStream.pipe(Q.audioSegmentStream).pipe(Q.coalesceStream)),L.trigger("trackinfo",{hasAudio:!!G,hasVideo:!!B})}}),Q.coalesceStream.on("data",this.trigger.bind(this,"data")),Q.coalesceStream.on("id3Frame",function(se){se.dispatchType=Q.metadataStream.dispatchType,L.trigger("id3Frame",se)}),Q.coalesceStream.on("caption",this.trigger.bind(this,"caption")),Q.coalesceStream.on("done",this.trigger.bind(this,"done")),cw(this,Q)},this.setBaseMediaDecodeTime=function(Q){var se=this.transmuxPipeline_;C.keepOriginalTimestamps||(this.baseMediaDecodeTime=Q),G&&(G.timelineStartInfo.dts=void 0,G.timelineStartInfo.pts=void 0,bn.clearDtsInfo(G),se.audioTimestampRolloverStream&&se.audioTimestampRolloverStream.discontinuity()),B&&(se.videoSegmentStream&&(se.videoSegmentStream.gopCache_=[]),B.timelineStartInfo.dts=void 0,B.timelineStartInfo.pts=void 0,bn.clearDtsInfo(B),se.captionStream.reset()),se.timestampRolloverStream&&se.timestampRolloverStream.discontinuity()},this.setAudioAppendStart=function(Q){G&&this.transmuxPipeline_.audioSegmentStream.setAudioAppendStart(Q)},this.setRemux=function(Q){var se=this.transmuxPipeline_;C.remux=Q,se&&se.coalesceStream&&se.coalesceStream.setRemux(Q)},this.alignGopsWith=function(Q){B&&this.transmuxPipeline_.videoSegmentStream&&this.transmuxPipeline_.videoSegmentStream.alignGopsWith(Q)},this.getLogTrigger_=function(Q){var se=this;return function(ge){ge.stream=Q,se.trigger("log",ge)}},this.push=function(Q){if(R){var se=i8(Q);se&&this.transmuxPipeline_.type!=="aac"?this.setupAacPipeline():!se&&this.transmuxPipeline_.type!=="ts"&&this.setupTsPipeline(),R=!1}this.transmuxPipeline_.headOfPipeline.push(Q)},this.flush=function(){R=!0,this.transmuxPipeline_.headOfPipeline.flush()},this.endTimeline=function(){this.transmuxPipeline_.headOfPipeline.endTimeline()},this.reset=function(){this.transmuxPipeline_.headOfPipeline&&this.transmuxPipeline_.headOfPipeline.reset()},this.resetCaptions=function(){this.transmuxPipeline_.captionStream&&this.transmuxPipeline_.captionStream.reset()}},Vp.prototype=new t;var l8={Transmuxer:Vp,VideoSegmentStream:rd,AudioSegmentStream:tu,AUDIO_PROPERTIES:Ng,VIDEO_PROPERTIES:Fg,generateSegmentTimingInfo:$g},u8=function(C){return C>>>0},c8=function(C){return("00"+C.toString(16)).slice(-2)},Up={toUnsigned:u8,toHexString:c8},d8=function(C){var L="";return L+=String.fromCharCode(C[0]),L+=String.fromCharCode(C[1]),L+=String.fromCharCode(C[2]),L+=String.fromCharCode(C[3]),L},Qs=d8,f8=Up.toUnsigned,p8=function ee(C,L){var R=[],B,G,Q,se,ge;if(!L.length)return null;for(B=0;B<C.byteLength;)G=f8(C[B]<<24|C[B+1]<<16|C[B+2]<<8|C[B+3]),Q=Qs(C.subarray(B+4,B+8)),se=G>1?B+G:C.byteLength,Q===L[0]&&(L.length===1?R.push(C.subarray(B+8,se)):(ge=ee(C.subarray(B+8,se),L.slice(1)),ge.length&&(R=R.concat(ge)))),B=se;return R},Bn=p8,h8=Up.toUnsigned,m8=a.getUint64,v8=function(C){var L={version:C[0],flags:new Uint8Array(C.subarray(1,4))};return L.version===1?L.baseMediaDecodeTime=m8(C.subarray(4)):L.baseMediaDecodeTime=h8(C[4]<<24|C[5]<<16|C[6]<<8|C[7]),L},fw=v8,g8=function(C){return{isLeading:(C[0]&12)>>>2,dependsOn:C[0]&3,isDependedOn:(C[1]&192)>>>6,hasRedundancy:(C[1]&48)>>>4,paddingValue:(C[1]&14)>>>1,isNonSyncSample:C[1]&1,degradationPriority:C[2]<<8|C[3]}},pw=g8,y8=function(C){var L={version:C[0],flags:new Uint8Array(C.subarray(1,4)),samples:[]},R=new DataView(C.buffer,C.byteOffset,C.byteLength),B=L.flags[2]&1,G=L.flags[2]&4,Q=L.flags[1]&1,se=L.flags[1]&2,ge=L.flags[1]&4,ke=L.flags[1]&8,Ee=R.getUint32(4),Re=8,Ze;for(B&&(L.dataOffset=R.getInt32(Re),Re+=4),G&&Ee&&(Ze={flags:pw(C.subarray(Re,Re+4))},Re+=4,Q&&(Ze.duration=R.getUint32(Re),Re+=4),se&&(Ze.size=R.getUint32(Re),Re+=4),ke&&(L.version===1?Ze.compositionTimeOffset=R.getInt32(Re):Ze.compositionTimeOffset=R.getUint32(Re),Re+=4),L.samples.push(Ze),Ee--);Ee--;)Ze={},Q&&(Ze.duration=R.getUint32(Re),Re+=4),se&&(Ze.size=R.getUint32(Re),Re+=4),ge&&(Ze.flags=pw(C.subarray(Re,Re+4)),Re+=4),ke&&(L.version===1?Ze.compositionTimeOffset=R.getInt32(Re):Ze.compositionTimeOffset=R.getUint32(Re),Re+=4),L.samples.push(Ze);return L},hw=y8,b8=function(C){var L=new DataView(C.buffer,C.byteOffset,C.byteLength),R={version:C[0],flags:new Uint8Array(C.subarray(1,4)),trackId:L.getUint32(4)},B=R.flags[2]&1,G=R.flags[2]&2,Q=R.flags[2]&8,se=R.flags[2]&16,ge=R.flags[2]&32,ke=R.flags[0]&65536,Ee=R.flags[0]&131072,Re;return Re=8,B&&(Re+=4,R.baseDataOffset=L.getUint32(12),Re+=4),G&&(R.sampleDescriptionIndex=L.getUint32(Re),Re+=4),Q&&(R.defaultSampleDuration=L.getUint32(Re),Re+=4),se&&(R.defaultSampleSize=L.getUint32(Re),Re+=4),ge&&(R.defaultSampleFlags=L.getUint32(Re)),ke&&(R.durationIsEmpty=!0),!B&&Ee&&(R.baseDataOffsetIsMoof=!0),R},mw=b8,vw=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ad;typeof window<"u"?ad=window:typeof vw<"u"?ad=vw:typeof self<"u"?ad=self:ad={};var id=ad,_8=xa.discardEmulationPreventionBytes,T8=Aa.CaptionStream,w8=function(C,L){for(var R=C,B=0;B<L.length;B++){var G=L[B];if(R<G.size)return G;R-=G.size}return null},S8=function(C,L,R){var B=new DataView(C.buffer,C.byteOffset,C.byteLength),G={logs:[],seiNals:[]},Q,se,ge,ke;for(se=0;se+4<C.length;se+=ge)if(ge=B.getUint32(se),se+=4,!(ge<=0))switch(C[se]&31){case 6:var Ee=C.subarray(se+1,se+1+ge),Re=w8(se,L);if(Q={nalUnitType:"sei_rbsp",size:ge,data:Ee,escapedRBSP:_8(Ee),trackId:R},Re)Q.pts=Re.pts,Q.dts=Re.dts,ke=Re;else if(ke)Q.pts=ke.pts,Q.dts=ke.dts;else{G.logs.push({level:"warn",message:"We've encountered a nal unit without data at "+se+" for trackId "+R+". See mux.js#223."});break}G.seiNals.push(Q);break}return G},C8=function(C,L,R){var B=L,G=R.defaultSampleDuration||0,Q=R.defaultSampleSize||0,se=R.trackId,ge=[];return C.forEach(function(ke){var Ee=hw(ke),Re=Ee.samples;Re.forEach(function(Ze){Ze.duration===void 0&&(Ze.duration=G),Ze.size===void 0&&(Ze.size=Q),Ze.trackId=se,Ze.dts=B,Ze.compositionTimeOffset===void 0&&(Ze.compositionTimeOffset=0),typeof B=="bigint"?(Ze.pts=B+id.BigInt(Ze.compositionTimeOffset),B+=id.BigInt(Ze.duration)):(Ze.pts=B+Ze.compositionTimeOffset,B+=Ze.duration)}),ge=ge.concat(Re)}),ge},E8=function(C,L){var R=Bn(C,["moof","traf"]),B=Bn(C,["mdat"]),G={},Q=[];return B.forEach(function(se,ge){var ke=R[ge];Q.push({mdat:se,traf:ke})}),Q.forEach(function(se){var ge=se.mdat,ke=se.traf,Ee=Bn(ke,["tfhd"]),Re=mw(Ee[0]),Ze=Re.trackId,wt=Bn(ke,["tfdt"]),Ot=wt.length>0?fw(wt[0]).baseMediaDecodeTime:0,pt=Bn(ke,["trun"]),qt,cr;L===Ze&&pt.length>0&&(qt=C8(pt,Ot,Re),cr=S8(ge,qt,Ze),G[Ze]||(G[Ze]={seiNals:[],logs:[]}),G[Ze].seiNals=G[Ze].seiNals.concat(cr.seiNals),G[Ze].logs=G[Ze].logs.concat(cr.logs))}),G},x8=function(C,L,R){var B;if(L===null)return null;B=E8(C,L);var G=B[L]||{};return{seiNals:G.seiNals,logs:G.logs,timescale:R}},k8=function(){var C=!1,L,R,B,G,Q,se;this.isInitialized=function(){return C},this.init=function(ge){L=new T8,C=!0,se=ge?ge.isPartial:!1,L.on("data",function(ke){ke.startTime=ke.startPts/G,ke.endTime=ke.endPts/G,Q.captions.push(ke),Q.captionStreams[ke.stream]=!0}),L.on("log",function(ke){Q.logs.push(ke)})},this.isNewInit=function(ge,ke){return ge&&ge.length===0||ke&&typeof ke=="object"&&Object.keys(ke).length===0?!1:B!==ge[0]||G!==ke[B]},this.parse=function(ge,ke,Ee){var Re;if(this.isInitialized()){if(!ke||!Ee)return null;if(this.isNewInit(ke,Ee))B=ke[0],G=Ee[B];else if(B===null||!G)return R.push(ge),null}else return null;for(;R.length>0;){var Ze=R.shift();this.parse(Ze,ke,Ee)}return Re=x8(ge,B,G),Re&&Re.logs&&(Q.logs=Q.logs.concat(Re.logs)),Re===null||!Re.seiNals?Q.logs.length?{logs:Q.logs,captions:[],captionStreams:[]}:null:(this.pushNals(Re.seiNals),this.flushStream(),Q)},this.pushNals=function(ge){if(!this.isInitialized()||!ge||ge.length===0)return null;ge.forEach(function(ke){L.push(ke)})},this.flushStream=function(){if(!this.isInitialized())return null;se?L.partialFlush():L.flush()},this.clearParsedCaptions=function(){Q.captions=[],Q.captionStreams={},Q.logs=[]},this.resetCaptionStream=function(){if(!this.isInitialized())return null;L.reset()},this.clearAllCaptions=function(){this.clearParsedCaptions(),this.resetCaptionStream()},this.reset=function(){R=[],B=null,G=null,Q?this.clearParsedCaptions():Q={captions:[],captionStreams:{},logs:[]},this.resetCaptionStream()},this.reset()},A8=k8,Hp=Up.toUnsigned,od=Up.toHexString,D8=a.getUint64,gw,yw,bw,_w,Tw,Bg;gw=function(C){var L={},R=Bn(C,["moov","trak"]);return R.reduce(function(B,G){var Q,se,ge,ke,Ee;return Q=Bn(G,["tkhd"])[0],!Q||(se=Q[0],ge=se===0?12:20,ke=Hp(Q[ge]<<24|Q[ge+1]<<16|Q[ge+2]<<8|Q[ge+3]),Ee=Bn(G,["mdia","mdhd"])[0],!Ee)?null:(se=Ee[0],ge=se===0?12:20,B[ke]=Hp(Ee[ge]<<24|Ee[ge+1]<<16|Ee[ge+2]<<8|Ee[ge+3]),B)},L)},yw=function(C,L){var R;R=Bn(L,["moof","traf"]);var B=R.reduce(function(G,Q){var se=Bn(Q,["tfhd"])[0],ge=Hp(se[4]<<24|se[5]<<16|se[6]<<8|se[7]),ke=C[ge]||9e4,Ee=Bn(Q,["tfdt"])[0],Re=new DataView(Ee.buffer,Ee.byteOffset,Ee.byteLength),Ze;Ee[0]===1?Ze=D8(Ee.subarray(4,12)):Ze=Re.getUint32(4);var wt;return typeof Ze=="bigint"?wt=Ze/id.BigInt(ke):typeof Ze=="number"&&!isNaN(Ze)&&(wt=Ze/ke),wt<Number.MAX_SAFE_INTEGER&&(wt=Number(wt)),wt<G&&(G=wt),G},1/0);return typeof B=="bigint"||isFinite(B)?B:0},bw=function(C,L){var R=Bn(L,["moof","traf"]),B=0,G=0,Q;if(R&&R.length){var se=Bn(R[0],["tfhd"])[0],ge=Bn(R[0],["trun"])[0],ke=Bn(R[0],["tfdt"])[0];if(se){var Ee=mw(se);Q=Ee.trackId}if(ke){var Re=fw(ke);B=Re.baseMediaDecodeTime}if(ge){var Ze=hw(ge);Ze.samples&&Ze.samples.length&&(G=Ze.samples[0].compositionTimeOffset||0)}}var wt=C[Q]||9e4;typeof B=="bigint"&&(G=id.BigInt(G),wt=id.BigInt(wt));var Ot=(B+G)/wt;return typeof Ot=="bigint"&&Ot<Number.MAX_SAFE_INTEGER&&(Ot=Number(Ot)),Ot},_w=function(C){var L=Bn(C,["moov","trak"]),R=[];return L.forEach(function(B){var G=Bn(B,["mdia","hdlr"]),Q=Bn(B,["tkhd"]);G.forEach(function(se,ge){var ke=Qs(se.subarray(8,12)),Ee=Q[ge],Re,Ze,wt;ke==="vide"&&(Re=new DataView(Ee.buffer,Ee.byteOffset,Ee.byteLength),Ze=Re.getUint8(0),wt=Ze===0?Re.getUint32(12):Re.getUint32(20),R.push(wt))})}),R},Bg=function(C){var L=C[0],R=L===0?12:20;return Hp(C[R]<<24|C[R+1]<<16|C[R+2]<<8|C[R+3])},Tw=function(C){var L=Bn(C,["moov","trak"]),R=[];return L.forEach(function(B){var G={},Q=Bn(B,["tkhd"])[0],se,ge;Q&&(se=new DataView(Q.buffer,Q.byteOffset,Q.byteLength),ge=se.getUint8(0),G.id=ge===0?se.getUint32(12):se.getUint32(20));var ke=Bn(B,["mdia","hdlr"])[0];if(ke){var Ee=Qs(ke.subarray(8,12));Ee==="vide"?G.type="video":Ee==="soun"?G.type="audio":G.type=Ee}var Re=Bn(B,["mdia","minf","stbl","stsd"])[0];if(Re){var Ze=Re.subarray(8);G.codec=Qs(Ze.subarray(4,8));var wt=Bn(Ze,[G.codec])[0],Ot,pt;wt&&(/^[asm]vc[1-9]$/i.test(G.codec)?(Ot=wt.subarray(78),pt=Qs(Ot.subarray(4,8)),pt==="avcC"&&Ot.length>11?(G.codec+=".",G.codec+=od(Ot[9]),G.codec+=od(Ot[10]),G.codec+=od(Ot[11])):G.codec="avc1.4d400d"):/^mp4[a,v]$/i.test(G.codec)?(Ot=wt.subarray(28),pt=Qs(Ot.subarray(4,8)),pt==="esds"&&Ot.length>20&&Ot[19]!==0?(G.codec+="."+od(Ot[19]),G.codec+="."+od(Ot[20]>>>2&63).replace(/^0/,"")):G.codec="mp4a.40.2"):G.codec=G.codec.toLowerCase())}var qt=Bn(B,["mdia","mdhd"])[0];qt&&(G.timescale=Bg(qt)),R.push(G)}),R};var ww={findBox:Bn,parseType:Qs,timescale:gw,startTime:yw,compositionStartTime:bw,videoTrackIds:_w,tracks:Tw,getTimescaleFromMediaHeader:Bg},Sw=function(C){var L=C[1]&31;return L<<=8,L|=C[2],L},zp=function(C){return!!(C[1]&64)},jp=function(C){var L=0;return(C[3]&48)>>>4>1&&(L+=C[4]+1),L},I8=function(C,L){var R=Sw(C);return R===0?"pat":R===L?"pmt":L?"pes":null},P8=function(C){var L=zp(C),R=4+jp(C);return L&&(R+=C[R]+1),(C[R+10]&31)<<8|C[R+11]},O8=function(C){var L={},R=zp(C),B=4+jp(C);if(R&&(B+=C[B]+1),!!(C[B+5]&1)){var G,Q,se;G=(C[B+1]&15)<<8|C[B+2],Q=3+G-4,se=(C[B+10]&15)<<8|C[B+11];for(var ge=12+se;ge<Q;){var ke=B+ge;L[(C[ke+1]&31)<<8|C[ke+2]]=C[ke],ge+=((C[ke+3]&15)<<8|C[ke+4])+5}return L}},M8=function(C,L){var R=Sw(C),B=L[R];switch(B){case Dn.H264_STREAM_TYPE:return"video";case Dn.ADTS_STREAM_TYPE:return"audio";case Dn.METADATA_STREAM_TYPE:return"timed-metadata";default:return null}},R8=function(C){var L=zp(C);if(!L)return null;var R=4+jp(C);if(R>=C.byteLength)return null;var B=null,G;return G=C[R+7],G&192&&(B={},B.pts=(C[R+9]&14)<<27|(C[R+10]&255)<<20|(C[R+11]&254)<<12|(C[R+12]&255)<<5|(C[R+13]&254)>>>3,B.pts*=4,B.pts+=(C[R+13]&6)>>>1,B.dts=B.pts,G&64&&(B.dts=(C[R+14]&14)<<27|(C[R+15]&255)<<20|(C[R+16]&254)<<12|(C[R+17]&255)<<5|(C[R+18]&254)>>>3,B.dts*=4,B.dts+=(C[R+18]&6)>>>1)),B},Vg=function(C){switch(C){case 5:return"slice_layer_without_partitioning_rbsp_idr";case 6:return"sei_rbsp";case 7:return"seq_parameter_set_rbsp";case 8:return"pic_parameter_set_rbsp";case 9:return"access_unit_delimiter_rbsp";default:return null}},L8=function(C){for(var L=4+jp(C),R=C.subarray(L),B=0,G=0,Q=!1,se;G<R.byteLength-3;G++)if(R[G+2]===1){B=G+5;break}for(;B<R.byteLength;)switch(R[B]){case 0:if(R[B-1]!==0){B+=2;break}else if(R[B-2]!==0){B++;break}G+3!==B-2&&(se=Vg(R[G+3]&31),se==="slice_layer_without_partitioning_rbsp_idr"&&(Q=!0));do B++;while(R[B]!==1&&B<R.length);G=B-2,B+=3;break;case 1:if(R[B-1]!==0||R[B-2]!==0){B+=3;break}se=Vg(R[G+3]&31),se==="slice_layer_without_partitioning_rbsp_idr"&&(Q=!0),G=B-2,B+=3;break;default:B+=3;break}return R=R.subarray(G),B-=G,G=0,R&&R.byteLength>3&&(se=Vg(R[G+3]&31),se==="slice_layer_without_partitioning_rbsp_idr"&&(Q=!0)),Q},N8={parseType:I8,parsePat:P8,parsePmt:O8,parsePayloadUnitStartIndicator:zp,parsePesType:M8,parsePesTime:R8,videoPacketContainsKeyFrame:L8},nu=Ht.handleRollover,kn={};kn.ts=N8,kn.aac=$p;var Js=Nt.ONE_SECOND_IN_TS,Wr=188,Fi=71,F8=function(C,L){for(var R=0,B=Wr,G,Q;B<C.byteLength;){if(C[R]===Fi&&C[B]===Fi){switch(G=C.subarray(R,B),Q=kn.ts.parseType(G,L.pid),Q){case"pat":L.pid=kn.ts.parsePat(G);break;case"pmt":var se=kn.ts.parsePmt(G);L.table=L.table||{},Object.keys(se).forEach(function(ge){L.table[ge]=se[ge]});break}R+=Wr,B+=Wr;continue}R++,B++}},Cw=function(C,L,R){for(var B=0,G=Wr,Q,se,ge,ke,Ee,Re=!1;G<=C.byteLength;){if(C[B]===Fi&&(C[G]===Fi||G===C.byteLength)){switch(Q=C.subarray(B,G),se=kn.ts.parseType(Q,L.pid),se){case"pes":ge=kn.ts.parsePesType(Q,L.table),ke=kn.ts.parsePayloadUnitStartIndicator(Q),ge==="audio"&&ke&&(Ee=kn.ts.parsePesTime(Q),Ee&&(Ee.type="audio",R.audio.push(Ee),Re=!0));break}if(Re)break;B+=Wr,G+=Wr;continue}B++,G++}for(G=C.byteLength,B=G-Wr,Re=!1;B>=0;){if(C[B]===Fi&&(C[G]===Fi||G===C.byteLength)){switch(Q=C.subarray(B,G),se=kn.ts.parseType(Q,L.pid),se){case"pes":ge=kn.ts.parsePesType(Q,L.table),ke=kn.ts.parsePayloadUnitStartIndicator(Q),ge==="audio"&&ke&&(Ee=kn.ts.parsePesTime(Q),Ee&&(Ee.type="audio",R.audio.push(Ee),Re=!0));break}if(Re)break;B-=Wr,G-=Wr;continue}B--,G--}},$8=function(C,L,R){for(var B=0,G=Wr,Q,se,ge,ke,Ee,Re,Ze,wt,Ot=!1,pt={data:[],size:0};G<C.byteLength;){if(C[B]===Fi&&C[G]===Fi){switch(Q=C.subarray(B,G),se=kn.ts.parseType(Q,L.pid),se){case"pes":if(ge=kn.ts.parsePesType(Q,L.table),ke=kn.ts.parsePayloadUnitStartIndicator(Q),ge==="video"&&(ke&&!Ot&&(Ee=kn.ts.parsePesTime(Q),Ee&&(Ee.type="video",R.video.push(Ee),Ot=!0)),!R.firstKeyFrame)){if(ke&&pt.size!==0){for(Re=new Uint8Array(pt.size),Ze=0;pt.data.length;)wt=pt.data.shift(),Re.set(wt,Ze),Ze+=wt.byteLength;if(kn.ts.videoPacketContainsKeyFrame(Re)){var qt=kn.ts.parsePesTime(Re);qt?(R.firstKeyFrame=qt,R.firstKeyFrame.type="video"):console.warn("Failed to extract PTS/DTS from PES at first keyframe. This could be an unusual TS segment, or else mux.js did not parse your TS segment correctly. If you know your TS segments do contain PTS/DTS on keyframes please file a bug report! You can try ffprobe to double check for yourself.")}pt.size=0}pt.data.push(Q),pt.size+=Q.byteLength}break}if(Ot&&R.firstKeyFrame)break;B+=Wr,G+=Wr;continue}B++,G++}for(G=C.byteLength,B=G-Wr,Ot=!1;B>=0;){if(C[B]===Fi&&C[G]===Fi){switch(Q=C.subarray(B,G),se=kn.ts.parseType(Q,L.pid),se){case"pes":ge=kn.ts.parsePesType(Q,L.table),ke=kn.ts.parsePayloadUnitStartIndicator(Q),ge==="video"&&ke&&(Ee=kn.ts.parsePesTime(Q),Ee&&(Ee.type="video",R.video.push(Ee),Ot=!0));break}if(Ot)break;B-=Wr,G-=Wr;continue}B--,G--}},B8=function(C,L){if(C.audio&&C.audio.length){var R=L;(typeof R>"u"||isNaN(R))&&(R=C.audio[0].dts),C.audio.forEach(function(Q){Q.dts=nu(Q.dts,R),Q.pts=nu(Q.pts,R),Q.dtsTime=Q.dts/Js,Q.ptsTime=Q.pts/Js})}if(C.video&&C.video.length){var B=L;if((typeof B>"u"||isNaN(B))&&(B=C.video[0].dts),C.video.forEach(function(Q){Q.dts=nu(Q.dts,B),Q.pts=nu(Q.pts,B),Q.dtsTime=Q.dts/Js,Q.ptsTime=Q.pts/Js}),C.firstKeyFrame){var G=C.firstKeyFrame;G.dts=nu(G.dts,B),G.pts=nu(G.pts,B),G.dtsTime=G.dts/Js,G.ptsTime=G.pts/Js}}},V8=function(C){for(var L=!1,R=0,B=null,G=null,Q=0,se=0,ge;C.length-se>=3;){var ke=kn.aac.parseType(C,se);switch(ke){case"timed-metadata":if(C.length-se<10){L=!0;break}if(Q=kn.aac.parseId3TagSize(C,se),Q>C.length){L=!0;break}G===null&&(ge=C.subarray(se,se+Q),G=kn.aac.parseAacTimestamp(ge)),se+=Q;break;case"audio":if(C.length-se<7){L=!0;break}if(Q=kn.aac.parseAdtsSize(C,se),Q>C.length){L=!0;break}B===null&&(ge=C.subarray(se,se+Q),B=kn.aac.parseSampleRate(ge)),R++,se+=Q;break;default:se++;break}if(L)return null}if(B===null||G===null)return null;var Ee=Js/B,Re={audio:[{type:"audio",dts:G,pts:G},{type:"audio",dts:G+R*1024*Ee,pts:G+R*1024*Ee}]};return Re},U8=function(C){var L={pid:null,table:null},R={};F8(C,L);for(var B in L.table)if(L.table.hasOwnProperty(B)){var G=L.table[B];switch(G){case Dn.H264_STREAM_TYPE:R.video=[],$8(C,L,R),R.video.length===0&&delete R.video;break;case Dn.ADTS_STREAM_TYPE:R.audio=[],Cw(C,L,R),R.audio.length===0&&delete R.audio;break}}return R},H8=function(C,L){var R=kn.aac.isLikelyAacData(C),B;return R?B=V8(C):B=U8(C),!B||!B.audio&&!B.video?null:(B8(B,L),B)},z8={inspect:H8,parseAudioPes_:Cw},j8=function(C,L){L.on("data",function(R){var B=R.initSegment;R.initSegment={data:B.buffer,byteOffset:B.byteOffset,byteLength:B.byteLength};var G=R.data;R.data=G.buffer,C.postMessage({action:"data",segment:R,byteOffset:G.byteOffset,byteLength:G.byteLength},[R.data])}),L.on("done",function(R){C.postMessage({action:"done"})}),L.on("gopInfo",function(R){C.postMessage({action:"gopInfo",gopInfo:R})}),L.on("videoSegmentTimingInfo",function(R){var B={start:{decode:Nt.videoTsToSeconds(R.start.dts),presentation:Nt.videoTsToSeconds(R.start.pts)},end:{decode:Nt.videoTsToSeconds(R.end.dts),presentation:Nt.videoTsToSeconds(R.end.pts)},baseMediaDecodeTime:Nt.videoTsToSeconds(R.baseMediaDecodeTime)};R.prependedContentDuration&&(B.prependedContentDuration=Nt.videoTsToSeconds(R.prependedContentDuration)),C.postMessage({action:"videoSegmentTimingInfo",videoSegmentTimingInfo:B})}),L.on("audioSegmentTimingInfo",function(R){var B={start:{decode:Nt.videoTsToSeconds(R.start.dts),presentation:Nt.videoTsToSeconds(R.start.pts)},end:{decode:Nt.videoTsToSeconds(R.end.dts),presentation:Nt.videoTsToSeconds(R.end.pts)},baseMediaDecodeTime:Nt.videoTsToSeconds(R.baseMediaDecodeTime)};R.prependedContentDuration&&(B.prependedContentDuration=Nt.videoTsToSeconds(R.prependedContentDuration)),C.postMessage({action:"audioSegmentTimingInfo",audioSegmentTimingInfo:B})}),L.on("id3Frame",function(R){C.postMessage({action:"id3Frame",id3Frame:R})}),L.on("caption",function(R){C.postMessage({action:"caption",caption:R})}),L.on("trackinfo",function(R){C.postMessage({action:"trackinfo",trackInfo:R})}),L.on("audioTimingInfo",function(R){C.postMessage({action:"audioTimingInfo",audioTimingInfo:{start:Nt.videoTsToSeconds(R.start),end:Nt.videoTsToSeconds(R.end)}})}),L.on("videoTimingInfo",function(R){C.postMessage({action:"videoTimingInfo",videoTimingInfo:{start:Nt.videoTsToSeconds(R.start),end:Nt.videoTsToSeconds(R.end)}})}),L.on("log",function(R){C.postMessage({action:"log",log:R})})},Ew=function(){function ee(L,R){this.options=R||{},this.self=L,this.init()}var C=ee.prototype;return C.init=function(){this.transmuxer&&this.transmuxer.dispose(),this.transmuxer=new l8.Transmuxer(this.options),j8(this.self,this.transmuxer)},C.pushMp4Captions=function(R){this.captionParser||(this.captionParser=new A8,this.captionParser.init());var B=new Uint8Array(R.data,R.byteOffset,R.byteLength),G=this.captionParser.parse(B,R.trackIds,R.timescales);this.self.postMessage({action:"mp4Captions",captions:G&&G.captions||[],logs:G&&G.logs||[],data:B.buffer},[B.buffer])},C.probeMp4StartTime=function(R){var B=R.timescales,G=R.data,Q=ww.startTime(B,G);this.self.postMessage({action:"probeMp4StartTime",startTime:Q,data:G},[G.buffer])},C.probeMp4Tracks=function(R){var B=R.data,G=ww.tracks(B);this.self.postMessage({action:"probeMp4Tracks",tracks:G,data:B},[B.buffer])},C.probeTs=function(R){var B=R.data,G=R.baseStartTime,Q=typeof G=="number"&&!isNaN(G)?G*Nt.ONE_SECOND_IN_TS:void 0,se=z8.inspect(B,Q),ge=null;se&&(ge={hasVideo:se.video&&se.video.length===2||!1,hasAudio:se.audio&&se.audio.length===2||!1},ge.hasVideo&&(ge.videoStart=se.video[0].ptsTime),ge.hasAudio&&(ge.audioStart=se.audio[0].ptsTime)),this.self.postMessage({action:"probeTs",result:ge,data:B},[B.buffer])},C.clearAllMp4Captions=function(){this.captionParser&&this.captionParser.clearAllCaptions()},C.clearParsedMp4Captions=function(){this.captionParser&&this.captionParser.clearParsedCaptions()},C.push=function(R){var B=new Uint8Array(R.data,R.byteOffset,R.byteLength);this.transmuxer.push(B)},C.reset=function(){this.transmuxer.reset()},C.setTimestampOffset=function(R){var B=R.timestampOffset||0;this.transmuxer.setBaseMediaDecodeTime(Math.round(Nt.secondsToVideoTs(B)))},C.setAudioAppendStart=function(R){this.transmuxer.setAudioAppendStart(Math.ceil(Nt.secondsToVideoTs(R.appendStart)))},C.setRemux=function(R){this.transmuxer.setRemux(R.remux)},C.flush=function(R){this.transmuxer.flush(),self.postMessage({action:"done",type:"transmuxed"})},C.endTimeline=function(){this.transmuxer.endTimeline(),self.postMessage({action:"endedtimeline",type:"transmuxed"})},C.alignGopsWith=function(R){this.transmuxer.alignGopsWith(R.gopsToAlignWith.slice())},ee}();self.onmessage=function(ee){if(ee.data.action==="init"&&ee.data.options){this.messageHandlers=new Ew(self,ee.data.options);return}this.messageHandlers||(this.messageHandlers=new Ew(self)),ee.data&&ee.data.action&&ee.data.action!=="init"&&this.messageHandlers[ee.data.action]&&this.messageHandlers[ee.data.action](ee.data)}})),F1e=yN(N1e),$1e=function(t,n,r){var a=t.data.segment,i=a.type,o=a.initSegment,s=a.captions,l=a.captionStreams,u=a.metadata,c=a.videoFrameDtsTime,d=a.videoFramePtsTime;n.buffer.push({captions:s,captionStreams:l,metadata:u});var p=t.data.segment.boxes||{data:t.data.segment.data},h={type:i,data:new Uint8Array(p.data,p.data.byteOffset,p.data.byteLength),initSegment:new Uint8Array(o.data,o.byteOffset,o.byteLength)};typeof c<"u"&&(h.videoFrameDtsTime=c),typeof d<"u"&&(h.videoFramePtsTime=d),r(h)},B1e=function(t){var n=t.transmuxedData,r=t.callback;n.buffer=[],r(n)},V1e=function(t,n){n.gopInfo=t.data.gopInfo},TN=function(t){var n=t.transmuxer,r=t.bytes,a=t.audioAppendStart,i=t.gopsToAlignWith,o=t.remux,s=t.onData,l=t.onTrackInfo,u=t.onAudioTimingInfo,c=t.onVideoTimingInfo,d=t.onVideoSegmentTimingInfo,p=t.onAudioSegmentTimingInfo,h=t.onId3,v=t.onCaptions,m=t.onDone,g=t.onEndedTimeline,y=t.onTransmuxerLog,T=t.isEndOfTimeline,b={buffer:[]},_=T,w=function(D){n.currentTransmux===t&&(D.data.action==="data"&&$1e(D,b,s),D.data.action==="trackinfo"&&l(D.data.trackInfo),D.data.action==="gopInfo"&&V1e(D,b),D.data.action==="audioTimingInfo"&&u(D.data.audioTimingInfo),D.data.action==="videoTimingInfo"&&c(D.data.videoTimingInfo),D.data.action==="videoSegmentTimingInfo"&&d(D.data.videoSegmentTimingInfo),D.data.action==="audioSegmentTimingInfo"&&p(D.data.audioSegmentTimingInfo),D.data.action==="id3Frame"&&h([D.data.id3Frame],D.data.id3Frame.dispatchType),D.data.action==="caption"&&v(D.data.caption),D.data.action==="endedtimeline"&&(_=!1,g()),D.data.action==="log"&&y(D.data.log),D.data.type==="transmuxed"&&(_||(n.onmessage=null,B1e({transmuxedData:b,callback:m}),wN(n))))};if(n.onmessage=w,a&&n.postMessage({action:"setAudioAppendStart",appendStart:a}),Array.isArray(i)&&n.postMessage({action:"alignGopsWith",gopsToAlignWith:i}),typeof o<"u"&&n.postMessage({action:"setRemux",remux:o}),r.byteLength){var S=r instanceof ArrayBuffer?r:r.buffer,A=r instanceof ArrayBuffer?0:r.byteOffset;n.postMessage({action:"push",data:S,byteOffset:A,byteLength:r.byteLength},[S])}T&&n.postMessage({action:"endTimeline"}),n.postMessage({action:"flush"})},wN=function(t){t.currentTransmux=null,t.transmuxQueue.length&&(t.currentTransmux=t.transmuxQueue.shift(),typeof t.currentTransmux=="function"?t.currentTransmux():TN(t.currentTransmux))},Kk=function(t,n){t.postMessage({action:n}),wN(t)},SN=function(t,n){if(!n.currentTransmux){n.currentTransmux=t,Kk(n,t);return}n.transmuxQueue.push(Kk.bind(null,n,t))},U1e=function(t){SN("reset",t)},H1e=function(t){SN("endTimeline",t)},CN=function(t){if(!t.transmuxer.currentTransmux){t.transmuxer.currentTransmux=t,TN(t);return}t.transmuxer.transmuxQueue.push(t)},z1e=function(t){var n=new F1e;n.currentTransmux=null,n.transmuxQueue=[];var r=n.terminate;return n.terminate=function(){return n.currentTransmux=null,n.transmuxQueue.length=0,r.call(n)},n.postMessage({action:"init",options:t}),n},ay={reset:U1e,endTimeline:H1e,transmux:CN,createTransmuxer:z1e},lv=function(t){var n=t.transmuxer,r=t.endAction||t.action,a=t.callback,i=oi({},t,{endAction:null,transmuxer:null,callback:null}),o=function u(c){c.data.action===r&&(n.removeEventListener("message",u),c.data.data&&(c.data.data=new Uint8Array(c.data.data,t.byteOffset||0,t.byteLength||c.data.data.byteLength),t.data&&(t.data=c.data.data)),a(c.data))};if(n.addEventListener("message",o),t.data){var s=t.data instanceof ArrayBuffer;i.byteOffset=s?0:t.data.byteOffset,i.byteLength=t.data.byteLength;var l=[s?t.data:t.data.buffer];n.postMessage(i,l)}else n.postMessage(i)},Yi={FAILURE:2,TIMEOUT:-101,ABORTED:-102},p_=function(t){t.forEach(function(n){n.abort()})},j1e=function(t){return{bandwidth:t.bandwidth,bytesReceived:t.bytesReceived||0,roundTripTime:t.roundTripTime||0}},W1e=function(t){var n=t.target,r=Date.now()-n.requestTime,a={bandwidth:1/0,bytesReceived:0,roundTripTime:r||0};return a.bytesReceived=t.loaded,a.bandwidth=Math.floor(a.bytesReceived/a.roundTripTime*8*1e3),a},YT=function(t,n){return n.timedout?{status:n.status,message:"HLS request timed-out at URL: "+n.uri,code:Yi.TIMEOUT,xhr:n}:n.aborted?{status:n.status,message:"HLS request aborted at URL: "+n.uri,code:Yi.ABORTED,xhr:n}:t?{status:n.status,message:"HLS request errored at URL: "+n.uri,code:Yi.FAILURE,xhr:n}:n.responseType==="arraybuffer"&&n.response.byteLength===0?{status:n.status,message:"Empty HLS response at URL: "+n.uri,code:Yi.FAILURE,xhr:n}:null},qk=function(t,n,r){return function(a,i){var o=i.response,s=YT(a,i);if(s)return r(s,t);if(o.byteLength!==16)return r({status:i.status,message:"Invalid HLS key at URL: "+i.uri,code:Yi.FAILURE,xhr:i},t);for(var l=new DataView(o),u=new Uint32Array([l.getUint32(0),l.getUint32(4),l.getUint32(8),l.getUint32(12)]),c=0;c<n.length;c++)n[c].bytes=u;return r(null,t)}},EN=function(t,n){var r=cT(t.map.bytes);if(r!=="mp4"){var a=t.map.resolvedUri||t.map.uri;return n({internal:!0,message:"Found unsupported "+(r||"unknown")+" container for initialization segment at URL: "+a,code:Yi.FAILURE})}lv({action:"probeMp4Tracks",data:t.map.bytes,transmuxer:t.transmuxer,callback:function(o){var s=o.tracks,l=o.data;return t.map.bytes=l,s.forEach(function(u){t.map.tracks=t.map.tracks||{},!t.map.tracks[u.type]&&(t.map.tracks[u.type]=u,typeof u.id=="number"&&u.timescale&&(t.map.timescales=t.map.timescales||{},t.map.timescales[u.id]=u.timescale))}),n(null)}})},K1e=function(t){var n=t.segment,r=t.finishProcessingFn;return function(a,i){var o=YT(a,i);if(o)return r(o,n);var s=new Uint8Array(i.response);if(n.map.key)return n.map.encryptedBytes=s,r(null,n);n.map.bytes=s,EN(n,function(l){if(l)return l.xhr=i,l.status=i.status,r(l,n);r(null,n)})}},q1e=function(t){var n=t.segment,r=t.finishProcessingFn,a=t.responseType;return function(i,o){var s=YT(i,o);if(s)return r(s,n);var l=a==="arraybuffer"||!o.responseText?o.response:R1e(o.responseText.substring(n.lastReachedChar||0));return n.stats=j1e(o),n.key?n.encryptedBytes=new Uint8Array(l):n.bytes=new Uint8Array(l),r(null,n)}},G1e=function(t){var n=t.segment,r=t.bytes,a=t.trackInfoFn,i=t.timingInfoFn,o=t.videoSegmentTimingInfoFn,s=t.audioSegmentTimingInfoFn,l=t.id3Fn,u=t.captionsFn,c=t.isEndOfTimeline,d=t.endedTimelineFn,p=t.dataFn,h=t.doneFn,v=t.onTransmuxerLog,m=n.map&&n.map.tracks||{},g=!!(m.audio&&m.video),y=i.bind(null,n,"audio","start"),T=i.bind(null,n,"audio","end"),b=i.bind(null,n,"video","start"),_=i.bind(null,n,"video","end"),w=function(){return CN({bytes:r,transmuxer:n.transmuxer,audioAppendStart:n.audioAppendStart,gopsToAlignWith:n.gopsToAlignWith,remux:g,onData:function(I){I.type=I.type==="combined"?"video":I.type,p(n,I)},onTrackInfo:function(I){a&&(g&&(I.isMuxed=!0),a(n,I))},onAudioTimingInfo:function(I){y&&typeof I.start<"u"&&(y(I.start),y=null),T&&typeof I.end<"u"&&T(I.end)},onVideoTimingInfo:function(I){b&&typeof I.start<"u"&&(b(I.start),b=null),_&&typeof I.end<"u"&&_(I.end)},onVideoSegmentTimingInfo:function(I){o(I)},onAudioSegmentTimingInfo:function(I){s(I)},onId3:function(I,D){l(n,I,D)},onCaptions:function(I){u(n,[I])},isEndOfTimeline:c,onEndedTimeline:function(){d()},onTransmuxerLog:v,onDone:function(I){h&&(I.type=I.type==="combined"?"video":I.type,h(null,n,I))}})};lv({action:"probeTs",transmuxer:n.transmuxer,data:r,baseStartTime:n.baseStartTime,callback:function(A){n.bytes=r=A.data;var I=A.result;I&&(a(n,{hasAudio:I.hasAudio,hasVideo:I.hasVideo,isMuxed:g}),a=null,I.hasAudio&&!g&&y(I.audioStart),I.hasVideo&&b(I.videoStart),y=null,b=null),w()}})},xN=function(t){var n=t.segment,r=t.bytes,a=t.trackInfoFn,i=t.timingInfoFn,o=t.videoSegmentTimingInfoFn,s=t.audioSegmentTimingInfoFn,l=t.id3Fn,u=t.captionsFn,c=t.isEndOfTimeline,d=t.endedTimelineFn,p=t.dataFn,h=t.doneFn,v=t.onTransmuxerLog,m=new Uint8Array(r);if(pbe(m)){n.isFmp4=!0;var g=n.map.tracks,y={isFmp4:!0,hasVideo:!!g.video,hasAudio:!!g.audio};g.audio&&g.audio.codec&&g.audio.codec!=="enca"&&(y.audioCodec=g.audio.codec),g.video&&g.video.codec&&g.video.codec!=="encv"&&(y.videoCodec=g.video.codec),g.video&&g.audio&&(y.isMuxed=!0),a(n,y);var T=function(_){p(n,{data:m,type:y.hasAudio&&!y.isMuxed?"audio":"video"}),_&&_.length&&u(n,_),h(null,n,{})};lv({action:"probeMp4StartTime",timescales:n.map.timescales,data:m,transmuxer:n.transmuxer,callback:function(_){var w=_.data,S=_.startTime;if(r=w.buffer,n.bytes=m=w,y.hasAudio&&!y.isMuxed&&i(n,"audio","start",S),y.hasVideo&&i(n,"video","start",S),!g.video||!w.byteLength||!n.transmuxer){T();return}lv({action:"pushMp4Captions",endAction:"mp4Captions",transmuxer:n.transmuxer,data:m,timescales:n.map.timescales,trackIds:[g.video.id],callback:function(I){r=I.data.buffer,n.bytes=m=I.data,I.logs.forEach(function(D){v(Ne.mergeOptions(D,{stream:"mp4CaptionParser"}))}),T(I.captions)}})}});return}if(!n.transmuxer){h(null,n,{});return}if(typeof n.container>"u"&&(n.container=cT(m)),n.container!=="ts"&&n.container!=="aac"){a(n,{hasAudio:!1,hasVideo:!1}),h(null,n,{});return}G1e({segment:n,bytes:r,trackInfoFn:a,timingInfoFn:i,videoSegmentTimingInfoFn:o,audioSegmentTimingInfoFn:s,id3Fn:l,captionsFn:u,isEndOfTimeline:c,endedTimelineFn:d,dataFn:p,doneFn:h,onTransmuxerLog:v})},kN=function(t,n){var r=t.id,a=t.key,i=t.encryptedBytes,o=t.decryptionWorker,s=function u(c){if(c.data.source===r){o.removeEventListener("message",u);var d=c.data.decrypted;n(new Uint8Array(d.bytes,d.byteOffset,d.byteLength))}};o.addEventListener("message",s);var l;a.bytes.slice?l=a.bytes.slice():l=new Uint32Array(Array.prototype.slice.call(a.bytes)),o.postMessage(fN({source:r,encrypted:i,key:l,iv:a.iv}),[i.buffer,l.buffer])},Y1e=function(t){var n=t.decryptionWorker,r=t.segment,a=t.trackInfoFn,i=t.timingInfoFn,o=t.videoSegmentTimingInfoFn,s=t.audioSegmentTimingInfoFn,l=t.id3Fn,u=t.captionsFn,c=t.isEndOfTimeline,d=t.endedTimelineFn,p=t.dataFn,h=t.doneFn,v=t.onTransmuxerLog;kN({id:r.requestId,key:r.key,encryptedBytes:r.encryptedBytes,decryptionWorker:n},function(m){r.bytes=m,xN({segment:r,bytes:r.bytes,trackInfoFn:a,timingInfoFn:i,videoSegmentTimingInfoFn:o,audioSegmentTimingInfoFn:s,id3Fn:l,captionsFn:u,isEndOfTimeline:c,endedTimelineFn:d,dataFn:p,doneFn:h,onTransmuxerLog:v})})},X1e=function(t){var n=t.activeXhrs,r=t.decryptionWorker,a=t.trackInfoFn,i=t.timingInfoFn,o=t.videoSegmentTimingInfoFn,s=t.audioSegmentTimingInfoFn,l=t.id3Fn,u=t.captionsFn,c=t.isEndOfTimeline,d=t.endedTimelineFn,p=t.dataFn,h=t.doneFn,v=t.onTransmuxerLog,m=0,g=!1;return function(y,T){if(!g){if(y)return g=!0,p_(n),h(y,T);if(m+=1,m===n.length){var b=function(){if(T.encryptedBytes)return Y1e({decryptionWorker:r,segment:T,trackInfoFn:a,timingInfoFn:i,videoSegmentTimingInfoFn:o,audioSegmentTimingInfoFn:s,id3Fn:l,captionsFn:u,isEndOfTimeline:c,endedTimelineFn:d,dataFn:p,doneFn:h,onTransmuxerLog:v});xN({segment:T,bytes:T.bytes,trackInfoFn:a,timingInfoFn:i,videoSegmentTimingInfoFn:o,audioSegmentTimingInfoFn:s,id3Fn:l,captionsFn:u,isEndOfTimeline:c,endedTimelineFn:d,dataFn:p,doneFn:h,onTransmuxerLog:v})};if(T.endOfAllRequests=Date.now(),T.map&&T.map.encryptedBytes&&!T.map.bytes)return kN({decryptionWorker:r,id:T.requestId+"-init",encryptedBytes:T.map.encryptedBytes,key:T.map.key},function(_){T.map.bytes=_,EN(T,function(w){if(w)return p_(n),h(w,T);b()})});b()}}}},Q1e=function(t){var n=t.loadendState,r=t.abortFn;return function(a){var i=a.target;i.aborted&&r&&!n.calledAbortFn&&(r(),n.calledAbortFn=!0)}},J1e=function(t){var n=t.segment,r=t.progressFn;return t.trackInfoFn,t.timingInfoFn,t.videoSegmentTimingInfoFn,t.audioSegmentTimingInfoFn,t.id3Fn,t.captionsFn,t.isEndOfTimeline,t.endedTimelineFn,t.dataFn,function(a){var i=a.target;if(!i.aborted)return n.stats=Ne.mergeOptions(n.stats,W1e(a)),!n.stats.firstBytesReceivedAt&&n.stats.bytesReceived&&(n.stats.firstBytesReceivedAt=Date.now()),r(a,n)}},Z1e=function(t){var n=t.xhr,r=t.xhrOptions,a=t.decryptionWorker,i=t.segment,o=t.abortFn,s=t.progressFn,l=t.trackInfoFn,u=t.timingInfoFn,c=t.videoSegmentTimingInfoFn,d=t.audioSegmentTimingInfoFn,p=t.id3Fn,h=t.captionsFn,v=t.isEndOfTimeline,m=t.endedTimelineFn,g=t.dataFn,y=t.doneFn,T=t.onTransmuxerLog,b=[],_=X1e({activeXhrs:b,decryptionWorker:a,trackInfoFn:l,timingInfoFn:u,videoSegmentTimingInfoFn:c,audioSegmentTimingInfoFn:d,id3Fn:p,captionsFn:h,isEndOfTimeline:v,endedTimelineFn:m,dataFn:g,doneFn:y,onTransmuxerLog:T});if(i.key&&!i.key.bytes){var w=[i.key];i.map&&!i.map.bytes&&i.map.key&&i.map.key.resolvedUri===i.key.resolvedUri&&w.push(i.map.key);var S=Ne.mergeOptions(r,{uri:i.key.resolvedUri,responseType:"arraybuffer"}),A=qk(i,w,_),I=n(S,A);b.push(I)}if(i.map&&!i.map.bytes){var D=i.map.key&&(!i.key||i.key.resolvedUri!==i.map.key.resolvedUri);if(D){var O=Ne.mergeOptions(r,{uri:i.map.key.resolvedUri,responseType:"arraybuffer"}),V=qk(i,[i.map.key],_),N=n(O,V);b.push(N)}var K=Ne.mergeOptions(r,{uri:i.map.resolvedUri,responseType:"arraybuffer",headers:d_(i.map)}),Y=K1e({segment:i,finishProcessingFn:_}),q=n(K,Y);b.push(q)}var $=Ne.mergeOptions(r,{uri:i.part&&i.part.resolvedUri||i.resolvedUri,responseType:"arraybuffer",headers:d_(i)}),j=q1e({segment:i,finishProcessingFn:_,responseType:$.responseType}),W=n($,j);W.addEventListener("progress",J1e({segment:i,progressFn:s,trackInfoFn:l,timingInfoFn:u,videoSegmentTimingInfoFn:c,audioSegmentTimingInfoFn:d,id3Fn:p,captionsFn:h,isEndOfTimeline:v,endedTimelineFn:m,dataFn:g})),b.push(W);var H={};return b.forEach(function(X){X.addEventListener("loadend",Q1e({loadendState:H,abortFn:o}))}),function(){return p_(b)}},e2e=Li("CodecUtils"),t2e=function(t){var n=t.attributes||{};if(n.CODECS)return Hi(n.CODECS)},AN=function(t,n){var r=n.attributes||{};return t&&t.mediaGroups&&t.mediaGroups.AUDIO&&r.AUDIO&&t.mediaGroups.AUDIO[r.AUDIO]},n2e=function(t,n){if(!AN(t,n))return!0;var r=n.attributes||{},a=t.mediaGroups.AUDIO[r.AUDIO];for(var i in a)if(!a[i].uri&&!a[i].playlists)return!0;return!1},uv=function(t){var n={};return t.forEach(function(r){var a=r.mediaType,i=r.type,o=r.details;n[a]=n[a]||[],n[a].push(GM(""+i+o))}),Object.keys(n).forEach(function(r){if(n[r].length>1){e2e("multiple "+r+" codecs found as attributes: "+n[r].join(", ")+". Setting playlist codecs to null so that we wait for mux.js to probe segments for real codecs."),n[r]=null;return}n[r]=n[r][0]}),n},Gk=function(t){var n=0;return t.audio&&n++,t.video&&n++,n},nf=function(t,n){var r=n.attributes||{},a=uv(t2e(n)||[]);if(AN(t,n)&&!a.audio&&!n2e(t,n)){var i=uv(g0e(t,r.AUDIO)||[]);i.audio&&(a.audio=i.audio)}return a},xh=Li("PlaylistSelector"),Yk=function(t){if(!(!t||!t.playlist)){var n=t.playlist;return JSON.stringify({id:n.id,bandwidth:t.bandwidth,width:t.width,height:t.height,codecs:n.attributes&&n.attributes.CODECS||""})}},cv=function(t,n){if(!t)return"";var r=Te.getComputedStyle(t);return r?r[n]:""},Ku=function(t,n){var r=t.slice();t.sort(function(a,i){var o=n(a,i);return o===0?r.indexOf(a)-r.indexOf(i):o})},XT=function(t,n){var r,a;return t.attributes.BANDWIDTH&&(r=t.attributes.BANDWIDTH),r=r||Te.Number.MAX_VALUE,n.attributes.BANDWIDTH&&(a=n.attributes.BANDWIDTH),a=a||Te.Number.MAX_VALUE,r-a},r2e=function(t,n){var r,a;return t.attributes.RESOLUTION&&t.attributes.RESOLUTION.width&&(r=t.attributes.RESOLUTION.width),r=r||Te.Number.MAX_VALUE,n.attributes.RESOLUTION&&n.attributes.RESOLUTION.width&&(a=n.attributes.RESOLUTION.width),a=a||Te.Number.MAX_VALUE,r===a&&t.attributes.BANDWIDTH&&n.attributes.BANDWIDTH?t.attributes.BANDWIDTH-n.attributes.BANDWIDTH:r-a},DN=function(t,n,r,a,i,o){if(t){var s={bandwidth:n,width:r,height:a,limitRenditionByPlayerDimensions:i},l=t.playlists;ya.isAudioOnly(t)&&(l=o.getAudioTrackPlaylists_(),s.audioOnly=!0);var u=l.map(function(O){var V,N=O.attributes&&O.attributes.RESOLUTION&&O.attributes.RESOLUTION.width,K=O.attributes&&O.attributes.RESOLUTION&&O.attributes.RESOLUTION.height;return V=O.attributes&&O.attributes.BANDWIDTH,V=V||Te.Number.MAX_VALUE,{bandwidth:V,width:N,height:K,playlist:O}});Ku(u,function(O,V){return O.bandwidth-V.bandwidth}),u=u.filter(function(O){return!ya.isIncompatible(O.playlist)});var c=u.filter(function(O){return ya.isEnabled(O.playlist)});c.length||(c=u.filter(function(O){return!ya.isDisabled(O.playlist)}));var d=c.filter(function(O){return O.bandwidth*yr.BANDWIDTH_VARIANCE<n}),p=d[d.length-1],h=d.filter(function(O){return O.bandwidth===p.bandwidth})[0];if(i===!1){var v=h||c[0]||u[0];if(v&&v.playlist){var m="sortedPlaylistReps";return h&&(m="bandwidthBestRep"),c[0]&&(m="enabledPlaylistReps"),xh("choosing "+Yk(v)+" using "+m+" with options",s),v.playlist}return xh("could not choose a playlist with options",s),null}var g=d.filter(function(O){return O.width&&O.height});Ku(g,function(O,V){return O.width-V.width});var y=g.filter(function(O){return O.width===r&&O.height===a});p=y[y.length-1];var T=y.filter(function(O){return O.bandwidth===p.bandwidth})[0],b,_,w;T||(b=g.filter(function(O){return O.width>r||O.height>a}),_=b.filter(function(O){return O.width===b[0].width&&O.height===b[0].height}),p=_[_.length-1],w=_.filter(function(O){return O.bandwidth===p.bandwidth})[0]);var S;if(o.experimentalLeastPixelDiffSelector){var A=g.map(function(O){return O.pixelDiff=Math.abs(O.width-r)+Math.abs(O.height-a),O});Ku(A,function(O,V){return O.pixelDiff===V.pixelDiff?V.bandwidth-O.bandwidth:O.pixelDiff-V.pixelDiff}),S=A[0]}var I=S||w||T||h||c[0]||u[0];if(I&&I.playlist){var D="sortedPlaylistReps";return S?D="leastPixelDiffRep":w?D="resolutionPlusOneRep":T?D="resolutionBestRep":h?D="bandwidthBestRep":c[0]&&(D="enabledPlaylistReps"),xh("choosing "+Yk(I)+" using "+D+" with options",s),I.playlist}return xh("could not choose a playlist with options",s),null}},Xk=function(){var t=this.useDevicePixelRatio&&Te.devicePixelRatio||1;return DN(this.playlists.master,this.systemBandwidth,parseInt(cv(this.tech_.el(),"width"),10)*t,parseInt(cv(this.tech_.el(),"height"),10)*t,this.limitRenditionByPlayerDimensions,this.masterPlaylistController_)},a2e=function(t){var n=-1,r=-1;if(t<0||t>1)throw new Error("Moving average bandwidth decay must be between 0 and 1.");return function(){var a=this.useDevicePixelRatio&&Te.devicePixelRatio||1;return n<0&&(n=this.systemBandwidth,r=this.systemBandwidth),this.systemBandwidth>0&&this.systemBandwidth!==r&&(n=t*this.systemBandwidth+(1-t)*n,r=this.systemBandwidth),DN(this.playlists.master,n,parseInt(cv(this.tech_.el(),"width"),10)*a,parseInt(cv(this.tech_.el(),"height"),10)*a,this.limitRenditionByPlayerDimensions,this.masterPlaylistController_)}},i2e=function(t){var n=t.master,r=t.currentTime,a=t.bandwidth,i=t.duration,o=t.segmentDuration,s=t.timeUntilRebuffer,l=t.currentTimeline,u=t.syncController,c=n.playlists.filter(function(m){return!ya.isIncompatible(m)}),d=c.filter(ya.isEnabled);d.length||(d=c.filter(function(m){return!ya.isDisabled(m)}));var p=d.filter(ya.hasAttribute.bind(null,"BANDWIDTH")),h=p.map(function(m){var g=u.getSyncPoint(m,i,l,r),y=g?1:2,T=ya.estimateSegmentRequestTime(o,a,m),b=T*y-s;return{playlist:m,rebufferingImpact:b}}),v=h.filter(function(m){return m.rebufferingImpact<=0});return Ku(v,function(m,g){return XT(g.playlist,m.playlist)}),v.length?v[0]:(Ku(h,function(m,g){return m.rebufferingImpact-g.rebufferingImpact}),h[0]||null)},o2e=function(){var t=this,n=this.playlists.master.playlists.filter(ya.isEnabled);Ku(n,function(a,i){return XT(a,i)});var r=n.filter(function(a){return!!nf(t.playlists.master,a).video});return r[0]||null},s2e=function(t){var n=0,r;return t.bytes&&(r=new Uint8Array(t.bytes),t.segments.forEach(function(a){r.set(a,n),n+=a.byteLength})),r},l2e=function(t,n,r){if(!t[r]){n.trigger({type:"usage",name:"vhs-608"}),n.trigger({type:"usage",name:"hls-608"});var a=r;/^cc708_/.test(r)&&(a="SERVICE"+r.split("_")[1]);var i=n.textTracks().getTrackById(a);if(i)t[r]=i;else{var o=n.options_.vhs&&n.options_.vhs.captionServices||{},s=r,l=r,u=!1,c=o[a];c&&(s=c.label,l=c.language,u=c.default),t[r]=n.addRemoteTextTrack({kind:"captions",id:a,default:u,label:s,language:l},!1).track}}},u2e=function(t){var n=t.inbandTextTracks,r=t.captionArray,a=t.timestampOffset;if(r){var i=Te.WebKitDataCue||Te.VTTCue;r.forEach(function(o){var s=o.stream;n[s].addCue(new i(o.startTime+a,o.endTime+a,o.text))})}},c2e=function(t){Object.defineProperties(t.frame,{id:{get:function(){return Ne.log.warn("cue.frame.id is deprecated. Use cue.value.key instead."),t.value.key}},value:{get:function(){return Ne.log.warn("cue.frame.value is deprecated. Use cue.value.data instead."),t.value.data}},privateData:{get:function(){return Ne.log.warn("cue.frame.privateData is deprecated. Use cue.value.data instead."),t.value.data}}})},d2e=function(t){var n=t.inbandTextTracks,r=t.metadataArray,a=t.timestampOffset,i=t.videoDuration;if(r){var o=Te.WebKitDataCue||Te.VTTCue,s=n.metadataTrack_;if(s&&(r.forEach(function(h){var v=h.cueTime+a;typeof v!="number"||Te.isNaN(v)||v<0||!(v<1/0)||h.frames.forEach(function(m){var g=new o(v,v,m.value||m.url||m.data||"");g.frame=m,g.value=m,c2e(g),s.addCue(g)})}),!(!s.cues||!s.cues.length))){for(var l=s.cues,u=[],c=0;c<l.length;c++)l[c]&&u.push(l[c]);var d=u.reduce(function(h,v){var m=h[v.startTime]||[];return m.push(v),h[v.startTime]=m,h},{}),p=Object.keys(d).sort(function(h,v){return Number(h)-Number(v)});p.forEach(function(h,v){var m=d[h],g=Number(p[v+1])||i;m.forEach(function(y){y.endTime=g})})}}},f2e=function(t,n,r){t.metadataTrack_||(t.metadataTrack_=r.addRemoteTextTrack({kind:"metadata",label:"Timed Metadata"},!1).track,t.metadataTrack_.inBandMetadataTrackDispatchType=n)},Rd=function(t,n,r){var a,i;if(r&&r.cues)for(a=r.cues.length;a--;)i=r.cues[a],i.startTime>=t&&i.endTime<=n&&r.removeCue(i)},p2e=function(t){var n=t.cues;if(n)for(var r=0;r<n.length;r++){for(var a=[],i=0,o=0;o<n.length;o++)n[r].startTime===n[o].startTime&&n[r].endTime===n[o].endTime&&n[r].text===n[o].text&&(i++,i>1&&a.push(n[o]));a.length&&a.forEach(function(s){return t.removeCue(s)})}},h2e=function(t,n,r){if(typeof n>"u"||n===null||!t.length)return[];var a=Math.ceil((n-r+3)*Ym.ONE_SECOND_IN_TS),i;for(i=0;i<t.length&&!(t[i].pts>a);i++);return t.slice(i)},m2e=function(t,n,r){if(!n.length)return t;if(r)return n.slice();var a=n[0].pts,i=0;for(i;i<t.length&&!(t[i].pts>=a);i++);return t.slice(0,i).concat(n)},v2e=function(t,n,r,a){for(var i=Math.ceil((n-a)*Ym.ONE_SECOND_IN_TS),o=Math.ceil((r-a)*Ym.ONE_SECOND_IN_TS),s=t.slice(),l=t.length;l--&&!(t[l].pts<=o););if(l===-1)return s;for(var u=l+1;u--&&!(t[u].pts<=i););return u=Math.max(u,0),s.splice(u,l-u+1),s},g2e=function(t,n){if(!t&&!n||!t&&n||t&&!n)return!1;if(t===n)return!0;var r=Object.keys(t).sort(),a=Object.keys(n).sort();if(r.length!==a.length)return!1;for(var i=0;i<r.length;i++){var o=r[i];if(o!==a[i]||t[o]!==n[o])return!1}return!0},IN=22,y2e=function(t,n,r){n=n||[];for(var a=[],i=0,o=0;o<n.length;o++){var s=n[o];if(t===s.timeline&&(a.push(o),i+=s.duration,i>r))return o}return a.length===0?0:a[a.length-1]},Cd=1,b2e=500,Qk=function(t){return typeof t=="number"&&isFinite(t)},kh=1/60,_2e=function(t,n,r){return t!=="main"||!n||!r?null:!r.hasAudio&&!r.hasVideo?"Neither audio nor video found in segment.":n.hasVideo&&!r.hasVideo?"Only audio found in segment when we expected video. We can't switch to audio only from a stream that had video. To get rid of this message, please add codec information to the manifest.":!n.hasVideo&&r.hasVideo?"Video found in segment when we expected only audio. We can't switch to a stream with video from an audio only stream. To get rid of this message, please add codec information to the manifest.":null},T2e=function(t,n,r){var a=n-yr.BACK_BUFFER_LENGTH;t.length&&(a=Math.max(a,t.start(0)));var i=n-r;return Math.min(i,a)},gu=function(t){var n=t.startOfSegment,r=t.duration,a=t.segment,i=t.part,o=t.playlist,s=o.mediaSequence,l=o.id,u=o.segments,c=u===void 0?[]:u,d=t.mediaIndex,p=t.partIndex,h=t.timeline,v=c.length-1,m="mediaIndex/partIndex increment";t.getMediaInfoForTime?m="getMediaInfoForTime ("+t.getMediaInfoForTime+")":t.isSyncRequest&&(m="getSyncSegmentCandidate (isSyncRequest)"),t.independent&&(m+=" with independent "+t.independent);var g=typeof p=="number",y=t.segment.uri?"segment":"pre-segment",T=g?JL({preloadSegment:a})-1:0;return y+" ["+(s+d)+"/"+(s+v)+"]"+(g?" part ["+p+"/"+T+"]":"")+(" segment start/end ["+a.start+" => "+a.end+"]")+(g?" part start/end ["+i.start+" => "+i.end+"]":"")+(" startOfSegment ["+n+"]")+(" duration ["+r+"]")+(" timeline ["+h+"]")+(" selected by ["+m+"]")+(" playlist ["+l+"]")},Jk=function(t){return t+"TimingInfo"},w2e=function(t){var n=t.segmentTimeline,r=t.currentTimeline,a=t.startOfSegment,i=t.buffered,o=t.overrideCheck;return!o&&n===r?null:n<r?a:i.length?i.end(i.length-1):a},Zk=function(t){var n=t.timelineChangeController,r=t.currentTimeline,a=t.segmentTimeline,i=t.loaderType,o=t.audioDisabled;if(r===a)return!1;if(i==="audio"){var s=n.lastTimelineChange({type:"main"});return!s||s.to!==a}if(i==="main"&&o){var l=n.pendingTimelineChange({type:"audio"});return!(l&&l.to===a)}return!1},S2e=function(t){var n=0;return["video","audio"].forEach(function(r){var a=t[r+"TimingInfo"];if(a){var i=a.start,o=a.end,s;typeof i=="bigint"||typeof o=="bigint"?s=Te.BigInt(o)-Te.BigInt(i):typeof i=="number"&&typeof o=="number"&&(s=o-i),typeof s<"u"&&s>n&&(n=s)}}),typeof n=="bigint"&&n<Number.MAX_SAFE_INTEGER&&(n=Number(n)),n},eA=function(t){var n=t.segmentDuration,r=t.maxDuration;return n?Math.round(n)>r+Vs:!1},C2e=function(t,n){if(n!=="hls")return null;var r=S2e({audioTimingInfo:t.audioTimingInfo,videoTimingInfo:t.videoTimingInfo});if(!r)return null;var a=t.playlist.targetDuration,i=eA({segmentDuration:r,maxDuration:a*2}),o=eA({segmentDuration:r,maxDuration:a}),s="Segment with index "+t.mediaIndex+" "+("from playlist "+t.playlist.id+" ")+("has a duration of "+r+" ")+("when the reported duration is "+t.duration+" ")+("and the target duration is "+a+". ")+"For HLS content, a duration in excess of the target duration may result in playback issues. See the HLS specification section on EXT-X-TARGETDURATION for more details: https://tools.ietf.org/html/draft-pantos-http-live-streaming-23#section-4.3.3.1";return i||o?{severity:i?"warn":"info",message:s}:null},h_=function(e){Tt(t,e);function t(r,a){var i;if(i=e.call(this)||this,!r)throw new TypeError("Initialization settings are required");if(typeof r.currentTime!="function")throw new TypeError("No currentTime getter specified");if(!r.mediaSource)throw new TypeError("No MediaSource specified");return i.bandwidth=r.bandwidth,i.throughput={rate:0,count:0},i.roundTrip=NaN,i.resetStats_(),i.mediaIndex=null,i.partIndex=null,i.hasPlayed_=r.hasPlayed,i.currentTime_=r.currentTime,i.seekable_=r.seekable,i.seeking_=r.seeking,i.duration_=r.duration,i.mediaSource_=r.mediaSource,i.vhs_=r.vhs,i.loaderType_=r.loaderType,i.currentMediaInfo_=void 0,i.startingMediaInfo_=void 0,i.segmentMetadataTrack_=r.segmentMetadataTrack,i.goalBufferLength_=r.goalBufferLength,i.sourceType_=r.sourceType,i.sourceUpdater_=r.sourceUpdater,i.inbandTextTracks_=r.inbandTextTracks,i.state_="INIT",i.timelineChangeController_=r.timelineChangeController,i.shouldSaveSegmentTimingInfo_=!0,i.parse708captions_=r.parse708captions,i.useDtsForTimestampOffset_=r.useDtsForTimestampOffset,i.captionServices_=r.captionServices,i.experimentalExactManifestTimings=r.experimentalExactManifestTimings,i.checkBufferTimeout_=null,i.error_=void 0,i.currentTimeline_=-1,i.pendingSegment_=null,i.xhrOptions_=null,i.pendingSegments_=[],i.audioDisabled_=!1,i.isPendingTimestampOffset_=!1,i.gopBuffer_=[],i.timeMapping_=0,i.safeAppend_=Ne.browser.IE_VERSION>=11,i.appendInitSegment_={audio:!0,video:!0},i.playlistOfLastInitSegment_={audio:null,video:null},i.callQueue_=[],i.loadQueue_=[],i.metadataQueue_={id3:[],caption:[]},i.waitingOnRemove_=!1,i.quotaExceededErrorRetryTimeout_=null,i.activeInitSegmentId_=null,i.initSegments_={},i.cacheEncryptionKeys_=r.cacheEncryptionKeys,i.keyCache_={},i.decrypter_=r.decrypter,i.syncController_=r.syncController,i.syncPoint_={segmentIndex:0,time:0},i.transmuxer_=i.createTransmuxer_(),i.triggerSyncInfoUpdate_=function(){return i.trigger("syncinfoupdate")},i.syncController_.on("syncinfoupdate",i.triggerSyncInfoUpdate_),i.mediaSource_.addEventListener("sourceopen",function(){i.isEndOfStream_()||(i.ended_=!1)}),i.fetchAtBuffer_=!1,i.logger_=Li("SegmentLoader["+i.loaderType_+"]"),Object.defineProperty(Qt(i),"state",{get:function(){return this.state_},set:function(s){s!==this.state_&&(this.logger_(this.state_+" -> "+s),this.state_=s,this.trigger("statechange"))}}),i.sourceUpdater_.on("ready",function(){i.hasEnoughInfoToAppend_()&&i.processCallQueue_()}),i.loaderType_==="main"&&i.timelineChangeController_.on("pendingtimelinechange",function(){i.hasEnoughInfoToAppend_()&&i.processCallQueue_()}),i.loaderType_==="audio"&&i.timelineChangeController_.on("timelinechange",function(){i.hasEnoughInfoToLoad_()&&i.processLoadQueue_(),i.hasEnoughInfoToAppend_()&&i.processCallQueue_()}),i}var n=t.prototype;return n.createTransmuxer_=function(){return ay.createTransmuxer({remux:!1,alignGopsAtEnd:this.safeAppend_,keepOriginalTimestamps:!0,parse708captions:this.parse708captions_,captionServices:this.captionServices_})},n.resetStats_=function(){this.mediaBytesTransferred=0,this.mediaRequests=0,this.mediaRequestsAborted=0,this.mediaRequestsTimedout=0,this.mediaRequestsErrored=0,this.mediaTransferDuration=0,this.mediaSecondsLoaded=0,this.mediaAppends=0},n.dispose=function(){this.trigger("dispose"),this.state="DISPOSED",this.pause(),this.abort_(),this.transmuxer_&&this.transmuxer_.terminate(),this.resetStats_(),this.checkBufferTimeout_&&Te.clearTimeout(this.checkBufferTimeout_),this.syncController_&&this.triggerSyncInfoUpdate_&&this.syncController_.off("syncinfoupdate",this.triggerSyncInfoUpdate_),this.off()},n.setAudio=function(a){this.audioDisabled_=!a,a?this.appendInitSegment_.audio=!0:this.sourceUpdater_.removeAudio(0,this.duration_())},n.abort=function(){if(this.state!=="WAITING"){this.pendingSegment_&&(this.pendingSegment_=null);return}this.abort_(),this.state="READY",this.paused()||this.monitorBuffer_()},n.abort_=function(){this.pendingSegment_&&this.pendingSegment_.abortRequests&&this.pendingSegment_.abortRequests(),this.pendingSegment_=null,this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.timelineChangeController_.clearPendingTimelineChange(this.loaderType_),this.waitingOnRemove_=!1,Te.clearTimeout(this.quotaExceededErrorRetryTimeout_),this.quotaExceededErrorRetryTimeout_=null},n.checkForAbort_=function(a){return this.state==="APPENDING"&&!this.pendingSegment_?(this.state="READY",!0):!this.pendingSegment_||this.pendingSegment_.requestId!==a},n.error=function(a){return typeof a<"u"&&(this.logger_("error occurred:",a),this.error_=a),this.pendingSegment_=null,this.error_},n.endOfStream=function(){this.ended_=!0,this.transmuxer_&&ay.reset(this.transmuxer_),this.gopBuffer_.length=0,this.pause(),this.trigger("ended")},n.buffered_=function(){var a=this.getMediaInfo_();if(!this.sourceUpdater_||!a)return Ne.createTimeRanges();if(this.loaderType_==="main"){var i=a.hasAudio,o=a.hasVideo,s=a.isMuxed;if(o&&i&&!this.audioDisabled_&&!s)return this.sourceUpdater_.buffered();if(o)return this.sourceUpdater_.videoBuffered()}return this.sourceUpdater_.audioBuffered()},n.initSegmentForMap=function(a,i){if(i===void 0&&(i=!1),!a)return null;var o=sv(a),s=this.initSegments_[o];return i&&!s&&a.bytes&&(this.initSegments_[o]=s={resolvedUri:a.resolvedUri,byterange:a.byterange,bytes:a.bytes,tracks:a.tracks,timescales:a.timescales}),s||a},n.segmentKey=function(a,i){if(i===void 0&&(i=!1),!a)return null;var o=pN(a),s=this.keyCache_[o];this.cacheEncryptionKeys_&&i&&!s&&a.bytes&&(this.keyCache_[o]=s={resolvedUri:a.resolvedUri,bytes:a.bytes});var l={resolvedUri:(s||a).resolvedUri};return s&&(l.bytes=s.bytes),l},n.couldBeginLoading_=function(){return this.playlist_&&!this.paused()},n.load=function(){if(this.monitorBuffer_(),!!this.playlist_){if(this.state==="INIT"&&this.couldBeginLoading_())return this.init_();!this.couldBeginLoading_()||this.state!=="READY"&&this.state!=="INIT"||(this.state="READY")}},n.init_=function(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()},n.playlist=function(a,i){if(i===void 0&&(i={}),!!a){var o=this.playlist_,s=this.pendingSegment_;this.playlist_=a,this.xhrOptions_=i,this.state==="INIT"&&(a.syncInfo={mediaSequence:a.mediaSequence,time:0},this.loaderType_==="main"&&this.syncController_.setDateTimeMappingForStart(a));var l=null;if(o&&(o.id?l=o.id:o.uri&&(l=o.uri)),this.logger_("playlist update ["+l+" => "+(a.id||a.uri)+"]"),this.trigger("syncinfoupdate"),this.state==="INIT"&&this.couldBeginLoading_())return this.init_();if(!o||o.uri!==a.uri){this.mediaIndex!==null&&(a.endList?this.resyncLoader():this.resetLoader()),this.currentMediaInfo_=void 0,this.trigger("playlistupdate");return}var u=a.mediaSequence-o.mediaSequence;if(this.logger_("live window shift ["+u+"]"),this.mediaIndex!==null)if(this.mediaIndex-=u,this.mediaIndex<0)this.mediaIndex=null,this.partIndex=null;else{var c=this.playlist_.segments[this.mediaIndex];if(this.partIndex&&(!c.parts||!c.parts.length||!c.parts[this.partIndex])){var d=this.mediaIndex;this.logger_("currently processing part (index "+this.partIndex+") no longer exists."),this.resetLoader(),this.mediaIndex=d}}s&&(s.mediaIndex-=u,s.mediaIndex<0?(s.mediaIndex=null,s.partIndex=null):(s.mediaIndex>=0&&(s.segment=a.segments[s.mediaIndex]),s.partIndex>=0&&s.segment.parts&&(s.part=s.segment.parts[s.partIndex]))),this.syncController_.saveExpiredSegmentInfo(o,a)}},n.pause=function(){this.checkBufferTimeout_&&(Te.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=null)},n.paused=function(){return this.checkBufferTimeout_===null},n.resetEverything=function(a){this.ended_=!1,this.activeInitSegmentId_=null,this.appendInitSegment_={audio:!0,video:!0},this.resetLoader(),this.remove(0,1/0,a),this.transmuxer_&&(this.transmuxer_.postMessage({action:"clearAllMp4Captions"}),this.transmuxer_.postMessage({action:"reset"}))},n.resetLoader=function(){this.fetchAtBuffer_=!1,this.resyncLoader()},n.resyncLoader=function(){this.transmuxer_&&ay.reset(this.transmuxer_),this.mediaIndex=null,this.partIndex=null,this.syncPoint_=null,this.isPendingTimestampOffset_=!1,this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.abort(),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})},n.remove=function(a,i,o,s){if(o===void 0&&(o=function(){}),s===void 0&&(s=!1),i===1/0&&(i=this.duration_()),i<=a){this.logger_("skipping remove because end ${end} is <= start ${start}");return}if(!this.sourceUpdater_||!this.getMediaInfo_()){this.logger_("skipping remove because no source updater or starting media info");return}var l=1,u=function(){l--,l===0&&o()};(s||!this.audioDisabled_)&&(l++,this.sourceUpdater_.removeAudio(a,i,u)),(s||this.loaderType_==="main")&&(this.gopBuffer_=v2e(this.gopBuffer_,a,i,this.timeMapping_),l++,this.sourceUpdater_.removeVideo(a,i,u));for(var c in this.inbandTextTracks_)Rd(a,i,this.inbandTextTracks_[c]);Rd(a,i,this.segmentMetadataTrack_),u()},n.monitorBuffer_=function(){this.checkBufferTimeout_&&Te.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=Te.setTimeout(this.monitorBufferTick_.bind(this),1)},n.monitorBufferTick_=function(){this.state==="READY"&&this.fillBuffer_(),this.checkBufferTimeout_&&Te.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=Te.setTimeout(this.monitorBufferTick_.bind(this),b2e)},n.fillBuffer_=function(){if(!this.sourceUpdater_.updating()){var a=this.chooseNextRequest_();a&&(typeof a.timestampOffset=="number"&&(this.isPendingTimestampOffset_=!1,this.timelineChangeController_.pendingTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:a.timeline})),this.loadSegment_(a))}},n.isEndOfStream_=function(a,i,o){if(a===void 0&&(a=this.mediaIndex),i===void 0&&(i=this.playlist_),o===void 0&&(o=this.partIndex),!i||!this.mediaSource_)return!1;var s=typeof a=="number"&&i.segments[a],l=a+1===i.segments.length,u=!s||!s.parts||o+1===s.parts.length;return i.endList&&this.mediaSource_.readyState==="open"&&l&&u},n.chooseNextRequest_=function(){var a=this.buffered_(),i=Uk(a)||0,o=jT(a,this.currentTime_()),s=!this.hasPlayed_()&&o>=1,l=o>=this.goalBufferLength_(),u=this.playlist_.segments;if(!u.length||s||l)return null;this.syncPoint_=this.syncPoint_||this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_());var c={partIndex:null,mediaIndex:null,startOfSegment:null,playlist:this.playlist_,isSyncRequest:!this.syncPoint_};if(c.isSyncRequest)c.mediaIndex=y2e(this.currentTimeline_,u,i);else if(this.mediaIndex!==null){var d=u[this.mediaIndex],p=typeof this.partIndex=="number"?this.partIndex:-1;c.startOfSegment=d.end?d.end:i,d.parts&&d.parts[p+1]?(c.mediaIndex=this.mediaIndex,c.partIndex=p+1):c.mediaIndex=this.mediaIndex+1}else{var h=ya.getMediaInfoForTime({experimentalExactManifestTimings:this.experimentalExactManifestTimings,playlist:this.playlist_,currentTime:this.fetchAtBuffer_?i:this.currentTime_(),startingPartIndex:this.syncPoint_.partIndex,startingSegmentIndex:this.syncPoint_.segmentIndex,startTime:this.syncPoint_.time}),v=h.segmentIndex,m=h.startTime,g=h.partIndex;c.getMediaInfoForTime=this.fetchAtBuffer_?"bufferedEnd "+i:"currentTime "+this.currentTime_(),c.mediaIndex=v,c.startOfSegment=m,c.partIndex=g}var y=u[c.mediaIndex],T=y&&typeof c.partIndex=="number"&&y.parts&&y.parts[c.partIndex];if(!y||typeof c.partIndex=="number"&&!T)return null;if(typeof c.partIndex!="number"&&y.parts&&(c.partIndex=0,T=y.parts[0]),!o&&T&&!T.independent)if(c.partIndex===0){var b=u[c.mediaIndex-1],_=b.parts&&b.parts.length&&b.parts[b.parts.length-1];_&&_.independent&&(c.mediaIndex-=1,c.partIndex=b.parts.length-1,c.independent="previous segment")}else y.parts[c.partIndex-1].independent&&(c.partIndex-=1,c.independent="previous part");var w=this.mediaSource_&&this.mediaSource_.readyState==="ended";return c.mediaIndex>=u.length-1&&w&&!this.seeking_()?null:this.generateSegmentInfo_(c)},n.generateSegmentInfo_=function(a){var i=a.independent,o=a.playlist,s=a.mediaIndex,l=a.startOfSegment,u=a.isSyncRequest,c=a.partIndex,d=a.forceTimestampOffset,p=a.getMediaInfoForTime,h=o.segments[s],v=typeof c=="number"&&h.parts[c],m={requestId:"segment-loader-"+Math.random(),uri:v&&v.resolvedUri||h.resolvedUri,mediaIndex:s,partIndex:v?c:null,isSyncRequest:u,startOfSegment:l,playlist:o,bytes:null,encryptedBytes:null,timestampOffset:null,timeline:h.timeline,duration:v&&v.duration||h.duration,segment:h,part:v,byteLength:0,transmuxer:this.transmuxer_,getMediaInfoForTime:p,independent:i},g=typeof d<"u"?d:this.isPendingTimestampOffset_;m.timestampOffset=this.timestampOffsetForSegment_({segmentTimeline:h.timeline,currentTimeline:this.currentTimeline_,startOfSegment:l,buffered:this.buffered_(),overrideCheck:g});var y=Uk(this.sourceUpdater_.audioBuffered());return typeof y=="number"&&(m.audioAppendStart=y-this.sourceUpdater_.audioTimestampOffset()),this.sourceUpdater_.videoBuffered().length&&(m.gopsToAlignWith=h2e(this.gopBuffer_,this.currentTime_()-this.sourceUpdater_.videoTimestampOffset(),this.timeMapping_)),m},n.timestampOffsetForSegment_=function(a){return w2e(a)},n.earlyAbortWhenNeeded_=function(a){if(!(this.vhs_.tech_.paused()||!this.xhrOptions_.timeout||!this.playlist_.attributes.BANDWIDTH)&&!(Date.now()-(a.firstBytesReceivedAt||Date.now())<1e3)){var i=this.currentTime_(),o=a.bandwidth,s=this.pendingSegment_.duration,l=ya.estimateSegmentRequestTime(s,o,this.playlist_,a.bytesReceived),u=W_e(this.buffered_(),i,this.vhs_.tech_.playbackRate())-1;if(!(l<=u)){var c=i2e({master:this.vhs_.playlists.master,currentTime:i,bandwidth:o,duration:this.duration_(),segmentDuration:s,timeUntilRebuffer:u,currentTimeline:this.currentTimeline_,syncController:this.syncController_});if(c){var d=l-u,p=d-c.rebufferingImpact,h=.5;u<=Vs&&(h=1),!(!c.playlist||c.playlist.uri===this.playlist_.uri||p<h)&&(this.bandwidth=c.playlist.attributes.BANDWIDTH*yr.BANDWIDTH_VARIANCE+1,this.trigger("earlyabort"))}}}},n.handleAbort_=function(a){this.logger_("Aborting "+gu(a)),this.mediaRequestsAborted+=1},n.handleProgress_=function(a,i){this.earlyAbortWhenNeeded_(i.stats),!this.checkForAbort_(i.requestId)&&this.trigger("progress")},n.handleTrackInfo_=function(a,i){this.earlyAbortWhenNeeded_(a.stats),!this.checkForAbort_(a.requestId)&&(this.checkForIllegalMediaSwitch(i)||(i=i||{},g2e(this.currentMediaInfo_,i)||(this.appendInitSegment_={audio:!0,video:!0},this.startingMediaInfo_=i,this.currentMediaInfo_=i,this.logger_("trackinfo update",i),this.trigger("trackinfo")),!this.checkForAbort_(a.requestId)&&(this.pendingSegment_.trackInfo=i,this.hasEnoughInfoToAppend_()&&this.processCallQueue_())))},n.handleTimingInfo_=function(a,i,o,s){if(this.earlyAbortWhenNeeded_(a.stats),!this.checkForAbort_(a.requestId)){var l=this.pendingSegment_,u=Jk(i);l[u]=l[u]||{},l[u][o]=s,this.logger_("timinginfo: "+i+" - "+o+" - "+s),this.hasEnoughInfoToAppend_()&&this.processCallQueue_()}},n.handleCaptions_=function(a,i){var o=this;if(this.earlyAbortWhenNeeded_(a.stats),!this.checkForAbort_(a.requestId)){if(i.length===0){this.logger_("SegmentLoader received no captions from a caption event");return}var s=this.pendingSegment_;if(!s.hasAppendedData_){this.metadataQueue_.caption.push(this.handleCaptions_.bind(this,a,i));return}var l=this.sourceUpdater_.videoTimestampOffset()===null?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset(),u={};i.forEach(function(c){u[c.stream]=u[c.stream]||{startTime:1/0,captions:[],endTime:0};var d=u[c.stream];d.startTime=Math.min(d.startTime,c.startTime+l),d.endTime=Math.max(d.endTime,c.endTime+l),d.captions.push(c)}),Object.keys(u).forEach(function(c){var d=u[c],p=d.startTime,h=d.endTime,v=d.captions,m=o.inbandTextTracks_;o.logger_("adding cues from "+p+" -> "+h+" for "+c),l2e(m,o.vhs_.tech_,c),Rd(p,h,m[c]),u2e({captionArray:v,inbandTextTracks:m,timestampOffset:l})}),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})}},n.handleId3_=function(a,i,o){if(this.earlyAbortWhenNeeded_(a.stats),!this.checkForAbort_(a.requestId)){var s=this.pendingSegment_;if(!s.hasAppendedData_){this.metadataQueue_.id3.push(this.handleId3_.bind(this,a,i,o));return}var l=this.sourceUpdater_.videoTimestampOffset()===null?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset();f2e(this.inbandTextTracks_,o,this.vhs_.tech_),d2e({inbandTextTracks:this.inbandTextTracks_,metadataArray:i,timestampOffset:l,videoDuration:this.duration_()})}},n.processMetadataQueue_=function(){this.metadataQueue_.id3.forEach(function(a){return a()}),this.metadataQueue_.caption.forEach(function(a){return a()}),this.metadataQueue_.id3=[],this.metadataQueue_.caption=[]},n.processCallQueue_=function(){var a=this.callQueue_;this.callQueue_=[],a.forEach(function(i){return i()})},n.processLoadQueue_=function(){var a=this.loadQueue_;this.loadQueue_=[],a.forEach(function(i){return i()})},n.hasEnoughInfoToLoad_=function(){if(this.loaderType_!=="audio")return!0;var a=this.pendingSegment_;return a?this.getCurrentMediaInfo_()?!Zk({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:a.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}):!0:!1},n.getCurrentMediaInfo_=function(a){return a===void 0&&(a=this.pendingSegment_),a&&a.trackInfo||this.currentMediaInfo_},n.getMediaInfo_=function(a){return a===void 0&&(a=this.pendingSegment_),this.getCurrentMediaInfo_(a)||this.startingMediaInfo_},n.getPendingSegmentPlaylist=function(){return this.pendingSegment_?this.pendingSegment_.playlist:null},n.hasEnoughInfoToAppend_=function(){if(!this.sourceUpdater_.ready()||this.waitingOnRemove_||this.quotaExceededErrorRetryTimeout_)return!1;var a=this.pendingSegment_,i=this.getCurrentMediaInfo_();if(!a||!i)return!1;var o=i.hasAudio,s=i.hasVideo,l=i.isMuxed;return!(s&&!a.videoTimingInfo||o&&!this.audioDisabled_&&!l&&!a.audioTimingInfo||Zk({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:a.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))},n.handleData_=function(a,i){if(this.earlyAbortWhenNeeded_(a.stats),!this.checkForAbort_(a.requestId)){if(this.callQueue_.length||!this.hasEnoughInfoToAppend_()){this.callQueue_.push(this.handleData_.bind(this,a,i));return}var o=this.pendingSegment_;if(this.setTimeMapping_(o.timeline),this.updateMediaSecondsLoaded_(o.part||o.segment),this.mediaSource_.readyState!=="closed"){if(a.map&&(a.map=this.initSegmentForMap(a.map,!0),o.segment.map=a.map),a.key&&this.segmentKey(a.key,!0),o.isFmp4=a.isFmp4,o.timingInfo=o.timingInfo||{},o.isFmp4)this.trigger("fmp4"),o.timingInfo.start=o[Jk(i.type)].start;else{var s=this.getCurrentMediaInfo_(),l=this.loaderType_==="main"&&s&&s.hasVideo,u;l&&(u=o.videoTimingInfo.start),o.timingInfo.start=this.trueSegmentStart_({currentStart:o.timingInfo.start,playlist:o.playlist,mediaIndex:o.mediaIndex,currentVideoTimestampOffset:this.sourceUpdater_.videoTimestampOffset(),useVideoTimingInfo:l,firstVideoFrameTimeForData:u,videoTimingInfo:o.videoTimingInfo,audioTimingInfo:o.audioTimingInfo})}if(this.updateAppendInitSegmentStatus(o,i.type),this.updateSourceBufferTimestampOffset_(o),o.isSyncRequest){this.updateTimingInfoEnd_(o),this.syncController_.saveSegmentTimingInfo({segmentInfo:o,shouldSaveTimelineMapping:this.loaderType_==="main"});var c=this.chooseNextRequest_();if(c.mediaIndex!==o.mediaIndex||c.partIndex!==o.partIndex){this.logger_("sync segment was incorrect, not appending");return}this.logger_("sync segment was correct, appending")}o.hasAppendedData_=!0,this.processMetadataQueue_(),this.appendData_(o,i)}}},n.updateAppendInitSegmentStatus=function(a,i){this.loaderType_==="main"&&typeof a.timestampOffset=="number"&&!a.changedTimestampOffset&&(this.appendInitSegment_={audio:!0,video:!0}),this.playlistOfLastInitSegment_[i]!==a.playlist&&(this.appendInitSegment_[i]=!0)},n.getInitSegmentAndUpdateState_=function(a){var i=a.type,o=a.initSegment,s=a.map,l=a.playlist;if(s){var u=sv(s);if(this.activeInitSegmentId_===u)return null;o=this.initSegmentForMap(s,!0).bytes,this.activeInitSegmentId_=u}return o&&this.appendInitSegment_[i]?(this.playlistOfLastInitSegment_[i]=l,this.appendInitSegment_[i]=!1,this.activeInitSegmentId_=null,o):null},n.handleQuotaExceededError_=function(a,i){var o=this,s=a.segmentInfo,l=a.type,u=a.bytes,c=this.sourceUpdater_.audioBuffered(),d=this.sourceUpdater_.videoBuffered();c.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the audio buffer: "+_l(c).join(", ")),d.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the video buffer: "+_l(d).join(", "));var p=c.length?c.start(0):0,h=c.length?c.end(c.length-1):0,v=d.length?d.start(0):0,m=d.length?d.end(d.length-1):0;if(h-p<=Cd&&m-v<=Cd){this.logger_("On QUOTA_EXCEEDED_ERR, single segment too large to append to buffer, triggering an error. "+("Appended byte length: "+u.byteLength+", ")+("audio buffer: "+_l(c).join(", ")+", ")+("video buffer: "+_l(d).join(", ")+", ")),this.error({message:"Quota exceeded error with append of a single segment of content",excludeUntil:1/0}),this.trigger("error");return}this.waitingOnRemove_=!0,this.callQueue_.push(this.appendToSourceBuffer_.bind(this,{segmentInfo:s,type:l,bytes:u}));var g=this.currentTime_(),y=g-Cd;this.logger_("On QUOTA_EXCEEDED_ERR, removing audio/video from 0 to "+y),this.remove(0,y,function(){o.logger_("On QUOTA_EXCEEDED_ERR, retrying append in "+Cd+"s"),o.waitingOnRemove_=!1,o.quotaExceededErrorRetryTimeout_=Te.setTimeout(function(){o.logger_("On QUOTA_EXCEEDED_ERR, re-processing call queue"),o.quotaExceededErrorRetryTimeout_=null,o.processCallQueue_()},Cd*1e3)},!0)},n.handleAppendError_=function(a,i){var o=a.segmentInfo,s=a.type,l=a.bytes;if(i){if(i.code===IN){this.handleQuotaExceededError_({segmentInfo:o,type:s,bytes:l});return}this.logger_("Received non QUOTA_EXCEEDED_ERR on append",i),this.error(s+" append of "+l.length+"b failed for segment "+("#"+o.mediaIndex+" in playlist "+o.playlist.id)),this.trigger("appenderror")}},n.appendToSourceBuffer_=function(a){var i=a.segmentInfo,o=a.type,s=a.initSegment,l=a.data,u=a.bytes;if(!u){var c=[l],d=l.byteLength;s&&(c.unshift(s),d+=s.byteLength),u=s2e({bytes:d,segments:c})}this.sourceUpdater_.appendBuffer({segmentInfo:i,type:o,bytes:u},this.handleAppendError_.bind(this,{segmentInfo:i,type:o,bytes:u}))},n.handleSegmentTimingInfo_=function(a,i,o){if(!(!this.pendingSegment_||i!==this.pendingSegment_.requestId)){var s=this.pendingSegment_.segment,l=a+"TimingInfo";s[l]||(s[l]={}),s[l].transmuxerPrependedSeconds=o.prependedContentDuration||0,s[l].transmuxedPresentationStart=o.start.presentation,s[l].transmuxedDecodeStart=o.start.decode,s[l].transmuxedPresentationEnd=o.end.presentation,s[l].transmuxedDecodeEnd=o.end.decode,s[l].baseMediaDecodeTime=o.baseMediaDecodeTime}},n.appendData_=function(a,i){var o=i.type,s=i.data;if(!(!s||!s.byteLength)&&!(o==="audio"&&this.audioDisabled_)){var l=this.getInitSegmentAndUpdateState_({type:o,initSegment:i.initSegment,playlist:a.playlist,map:a.isFmp4?a.segment.map:null});this.appendToSourceBuffer_({segmentInfo:a,type:o,initSegment:l,data:s})}},n.loadSegment_=function(a){var i=this;if(this.state="WAITING",this.pendingSegment_=a,this.trimBackBuffer_(a),typeof a.timestampOffset=="number"&&this.transmuxer_&&this.transmuxer_.postMessage({action:"clearAllMp4Captions"}),!this.hasEnoughInfoToLoad_()){this.loadQueue_.push(function(){var o=oi({},a,{forceTimestampOffset:!0});oi(a,i.generateSegmentInfo_(o)),i.isPendingTimestampOffset_=!1,i.updateTransmuxerAndRequestSegment_(a)});return}this.updateTransmuxerAndRequestSegment_(a)},n.updateTransmuxerAndRequestSegment_=function(a){var i=this;this.shouldUpdateTransmuxerTimestampOffset_(a.timestampOffset)&&(this.gopBuffer_.length=0,a.gopsToAlignWith=[],this.timeMapping_=0,this.transmuxer_.postMessage({action:"reset"}),this.transmuxer_.postMessage({action:"setTimestampOffset",timestampOffset:a.timestampOffset}));var o=this.createSimplifiedSegmentObj_(a),s=this.isEndOfStream_(a.mediaIndex,a.playlist,a.partIndex),l=this.mediaIndex!==null,u=a.timeline!==this.currentTimeline_&&a.timeline>0,c=s||l&&u;this.logger_("Requesting "+gu(a)),o.map&&!o.map.bytes&&(this.logger_("going to request init segment."),this.appendInitSegment_={video:!0,audio:!0}),a.abortRequests=Z1e({xhr:this.vhs_.xhr,xhrOptions:this.xhrOptions_,decryptionWorker:this.decrypter_,segment:o,abortFn:this.handleAbort_.bind(this,a),progressFn:this.handleProgress_.bind(this),trackInfoFn:this.handleTrackInfo_.bind(this),timingInfoFn:this.handleTimingInfo_.bind(this),videoSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"video",a.requestId),audioSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"audio",a.requestId),captionsFn:this.handleCaptions_.bind(this),isEndOfTimeline:c,endedTimelineFn:function(){i.logger_("received endedtimeline callback")},id3Fn:this.handleId3_.bind(this),dataFn:this.handleData_.bind(this),doneFn:this.segmentRequestFinished_.bind(this),onTransmuxerLog:function(p){var h=p.message,v=p.level,m=p.stream;i.logger_(gu(a)+" logged from transmuxer stream "+m+" as a "+v+": "+h)}})},n.trimBackBuffer_=function(a){var i=T2e(this.seekable_(),this.currentTime_(),this.playlist_.targetDuration||10);i>0&&this.remove(0,i)},n.createSimplifiedSegmentObj_=function(a){var i=a.segment,o=a.part,s={resolvedUri:o?o.resolvedUri:i.resolvedUri,byterange:o?o.byterange:i.byterange,requestId:a.requestId,transmuxer:a.transmuxer,audioAppendStart:a.audioAppendStart,gopsToAlignWith:a.gopsToAlignWith,part:a.part},l=a.playlist.segments[a.mediaIndex-1];if(l&&l.timeline===i.timeline&&(l.videoTimingInfo?s.baseStartTime=l.videoTimingInfo.transmuxedDecodeEnd:l.audioTimingInfo&&(s.baseStartTime=l.audioTimingInfo.transmuxedDecodeEnd)),i.key){var u=i.key.iv||new Uint32Array([0,0,0,a.mediaIndex+a.playlist.mediaSequence]);s.key=this.segmentKey(i.key),s.key.iv=u}return i.map&&(s.map=this.initSegmentForMap(i.map)),s},n.saveTransferStats_=function(a){this.mediaRequests+=1,a&&(this.mediaBytesTransferred+=a.bytesReceived,this.mediaTransferDuration+=a.roundTripTime)},n.saveBandwidthRelatedStats_=function(a,i){if(this.pendingSegment_.byteLength=i.bytesReceived,a<kh){this.logger_("Ignoring segment's bandwidth because its duration of "+a+(" is less than the min to record "+kh));return}this.bandwidth=i.bandwidth,this.roundTrip=i.roundTripTime},n.handleTimeout_=function(){this.mediaRequestsTimedout+=1,this.bandwidth=1,this.roundTrip=NaN,this.trigger("bandwidthupdate"),this.trigger("timeout")},n.segmentRequestFinished_=function(a,i,o){if(this.callQueue_.length){this.callQueue_.push(this.segmentRequestFinished_.bind(this,a,i,o));return}if(this.saveTransferStats_(i.stats),!!this.pendingSegment_&&i.requestId===this.pendingSegment_.requestId){if(a){if(this.pendingSegment_=null,this.state="READY",a.code===Yi.ABORTED)return;if(this.pause(),a.code===Yi.TIMEOUT){this.handleTimeout_();return}this.mediaRequestsErrored+=1,this.error(a),this.trigger("error");return}var s=this.pendingSegment_;this.saveBandwidthRelatedStats_(s.duration,i.stats),s.endOfAllRequests=i.endOfAllRequests,o.gopInfo&&(this.gopBuffer_=m2e(this.gopBuffer_,o.gopInfo,this.safeAppend_)),this.state="APPENDING",this.trigger("appending"),this.waitForAppendsToComplete_(s)}},n.setTimeMapping_=function(a){var i=this.syncController_.mappingForTimeline(a);i!==null&&(this.timeMapping_=i)},n.updateMediaSecondsLoaded_=function(a){typeof a.start=="number"&&typeof a.end=="number"?this.mediaSecondsLoaded+=a.end-a.start:this.mediaSecondsLoaded+=a.duration},n.shouldUpdateTransmuxerTimestampOffset_=function(a){return a===null?!1:this.loaderType_==="main"&&a!==this.sourceUpdater_.videoTimestampOffset()||!this.audioDisabled_&&a!==this.sourceUpdater_.audioTimestampOffset()},n.trueSegmentStart_=function(a){var i=a.currentStart,o=a.playlist,s=a.mediaIndex,l=a.firstVideoFrameTimeForData,u=a.currentVideoTimestampOffset,c=a.useVideoTimingInfo,d=a.videoTimingInfo,p=a.audioTimingInfo;if(typeof i<"u")return i;if(!c)return p.start;var h=o.segments[s-1];return s===0||!h||typeof h.start>"u"||h.end!==l+u?l:d.start},n.waitForAppendsToComplete_=function(a){var i=this.getCurrentMediaInfo_(a);if(!i){this.error({message:"No starting media returned, likely due to an unsupported media format.",blacklistDuration:1/0}),this.trigger("error");return}var o=i.hasAudio,s=i.hasVideo,l=i.isMuxed,u=this.loaderType_==="main"&&s,c=!this.audioDisabled_&&o&&!l;if(a.waitingOnAppends=0,!a.hasAppendedData_){!a.timingInfo&&typeof a.timestampOffset=="number"&&(this.isPendingTimestampOffset_=!0),a.timingInfo={start:0},a.waitingOnAppends++,this.isPendingTimestampOffset_||(this.updateSourceBufferTimestampOffset_(a),this.processMetadataQueue_()),this.checkAppendsDone_(a);return}u&&a.waitingOnAppends++,c&&a.waitingOnAppends++,u&&this.sourceUpdater_.videoQueueCallback(this.checkAppendsDone_.bind(this,a)),c&&this.sourceUpdater_.audioQueueCallback(this.checkAppendsDone_.bind(this,a))},n.checkAppendsDone_=function(a){this.checkForAbort_(a.requestId)||(a.waitingOnAppends--,a.waitingOnAppends===0&&this.handleAppendsDone_())},n.checkForIllegalMediaSwitch=function(a){var i=_2e(this.loaderType_,this.getCurrentMediaInfo_(),a);return i?(this.error({message:i,blacklistDuration:1/0}),this.trigger("error"),!0):!1},n.updateSourceBufferTimestampOffset_=function(a){if(!(a.timestampOffset===null||typeof a.timingInfo.start!="number"||a.changedTimestampOffset||this.loaderType_!=="main")){var i=!1;a.timestampOffset-=this.getSegmentStartTimeForTimestampOffsetCalculation_({videoTimingInfo:a.segment.videoTimingInfo,audioTimingInfo:a.segment.audioTimingInfo,timingInfo:a.timingInfo}),a.changedTimestampOffset=!0,a.timestampOffset!==this.sourceUpdater_.videoTimestampOffset()&&(this.sourceUpdater_.videoTimestampOffset(a.timestampOffset),i=!0),a.timestampOffset!==this.sourceUpdater_.audioTimestampOffset()&&(this.sourceUpdater_.audioTimestampOffset(a.timestampOffset),i=!0),i&&this.trigger("timestampoffset")}},n.getSegmentStartTimeForTimestampOffsetCalculation_=function(a){var i=a.videoTimingInfo,o=a.audioTimingInfo,s=a.timingInfo;return this.useDtsForTimestampOffset_?i&&typeof i.transmuxedDecodeStart=="number"?i.transmuxedDecodeStart:o&&typeof o.transmuxedDecodeStart=="number"?o.transmuxedDecodeStart:s.start:s.start},n.updateTimingInfoEnd_=function(a){a.timingInfo=a.timingInfo||{};var i=this.getMediaInfo_(),o=this.loaderType_==="main"&&i&&i.hasVideo,s=o&&a.videoTimingInfo?a.videoTimingInfo:a.audioTimingInfo;s&&(a.timingInfo.end=typeof s.end=="number"?s.end:s.start+a.duration)},n.handleAppendsDone_=function(){if(this.pendingSegment_&&this.trigger("appendsdone"),!this.pendingSegment_){this.state="READY",this.paused()||this.monitorBuffer_();return}var a=this.pendingSegment_;this.updateTimingInfoEnd_(a),this.shouldSaveSegmentTimingInfo_&&this.syncController_.saveSegmentTimingInfo({segmentInfo:a,shouldSaveTimelineMapping:this.loaderType_==="main"});var i=C2e(a,this.sourceType_);if(i&&(i.severity==="warn"?Ne.log.warn(i.message):this.logger_(i.message)),this.recordThroughput_(a),this.pendingSegment_=null,this.state="READY",a.isSyncRequest&&(this.trigger("syncinfoupdate"),!a.hasAppendedData_)){this.logger_("Throwing away un-appended sync request "+gu(a));return}this.logger_("Appended "+gu(a)),this.addSegmentMetadataCue_(a),this.fetchAtBuffer_=!0,this.currentTimeline_!==a.timeline&&(this.timelineChangeController_.lastTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:a.timeline}),this.loaderType_==="main"&&!this.audioDisabled_&&this.timelineChangeController_.lastTimelineChange({type:"audio",from:this.currentTimeline_,to:a.timeline})),this.currentTimeline_=a.timeline,this.trigger("syncinfoupdate");var o=a.segment,s=a.part,l=o.end&&this.currentTime_()-o.end>a.playlist.targetDuration*3,u=s&&s.end&&this.currentTime_()-s.end>a.playlist.partTargetDuration*3;if(l||u){this.logger_("bad "+(l?"segment":"part")+" "+gu(a)),this.resetEverything();return}var c=this.mediaIndex!==null;c&&this.trigger("bandwidthupdate"),this.trigger("progress"),this.mediaIndex=a.mediaIndex,this.partIndex=a.partIndex,this.isEndOfStream_(a.mediaIndex,a.playlist,a.partIndex)&&this.endOfStream(),this.trigger("appended"),a.hasAppendedData_&&this.mediaAppends++,this.paused()||this.monitorBuffer_()},n.recordThroughput_=function(a){if(a.duration<kh){this.logger_("Ignoring segment's throughput because its duration of "+a.duration+(" is less than the min to record "+kh));return}var i=this.throughput.rate,o=Date.now()-a.endOfAllRequests+1,s=Math.floor(a.byteLength/o*8*1e3);this.throughput.rate+=(s-i)/++this.throughput.count},n.addSegmentMetadataCue_=function(a){if(this.segmentMetadataTrack_){var i=a.segment,o=i.start,s=i.end;if(!(!Qk(o)||!Qk(s))){Rd(o,s,this.segmentMetadataTrack_);var l=Te.WebKitDataCue||Te.VTTCue,u={custom:i.custom,dateTimeObject:i.dateTimeObject,dateTimeString:i.dateTimeString,bandwidth:a.playlist.attributes.BANDWIDTH,resolution:a.playlist.attributes.RESOLUTION,codecs:a.playlist.attributes.CODECS,byteLength:a.byteLength,uri:a.uri,timeline:a.timeline,playlist:a.playlist.id,start:o,end:s},c=JSON.stringify(u),d=new l(o,s,c);d.value=u,this.segmentMetadataTrack_.addCue(d)}}},t}(Ne.EventTarget);function No(){}var PN=function(t){return typeof t!="string"?t:t.replace(/./,function(n){return n.toUpperCase()})},E2e=["video","audio"],m_=function(t,n){var r=n[t+"Buffer"];return r&&r.updating||n.queuePending[t]},x2e=function(t,n){for(var r=0;r<n.length;r++){var a=n[r];if(a.type==="mediaSource")return null;if(a.type===t)return r}return null},QT=function e(t,n){if(n.queue.length!==0){var r=0,a=n.queue[r];if(a.type==="mediaSource"){!n.updating()&&n.mediaSource.readyState!=="closed"&&(n.queue.shift(),a.action(n),a.doneFn&&a.doneFn(),e("audio",n),e("video",n));return}if(t!=="mediaSource"&&!(!n.ready()||n.mediaSource.readyState==="closed"||m_(t,n))){if(a.type!==t){if(r=x2e(t,n.queue),r===null)return;a=n.queue[r]}if(n.queue.splice(r,1),n.queuePending[t]=a,a.action(t,n),!a.doneFn){n.queuePending[t]=null,e(t,n);return}}}},ON=function(t,n){var r=n[t+"Buffer"],a=PN(t);r&&(r.removeEventListener("updateend",n["on"+a+"UpdateEnd_"]),r.removeEventListener("error",n["on"+a+"Error_"]),n.codecs[t]=null,n[t+"Buffer"]=null)},ji=function(t,n){return t&&n&&Array.prototype.indexOf.call(t.sourceBuffers,n)!==-1},Da={appendBuffer:function(t,n,r){return function(a,i){var o=i[a+"Buffer"];if(ji(i.mediaSource,o)){i.logger_("Appending segment "+n.mediaIndex+"'s "+t.length+" bytes to "+a+"Buffer");try{o.appendBuffer(t)}catch(s){i.logger_("Error with code "+s.code+" "+(s.code===IN?"(QUOTA_EXCEEDED_ERR) ":"")+("when appending segment "+n.mediaIndex+" to "+a+"Buffer")),i.queuePending[a]=null,r(s)}}}},remove:function(t,n){return function(r,a){var i=a[r+"Buffer"];if(ji(a.mediaSource,i)){a.logger_("Removing "+t+" to "+n+" from "+r+"Buffer");try{i.remove(t,n)}catch{a.logger_("Remove "+t+" to "+n+" from "+r+"Buffer failed")}}}},timestampOffset:function(t){return function(n,r){var a=r[n+"Buffer"];ji(r.mediaSource,a)&&(r.logger_("Setting "+n+"timestampOffset to "+t),a.timestampOffset=t)}},callback:function(t){return function(n,r){t()}},endOfStream:function(t){return function(n){if(n.mediaSource.readyState==="open"){n.logger_("Calling mediaSource endOfStream("+(t||"")+")");try{n.mediaSource.endOfStream(t)}catch(r){Ne.log.warn("Failed to call media source endOfStream",r)}}}},duration:function(t){return function(n){n.logger_("Setting mediaSource duration to "+t);try{n.mediaSource.duration=t}catch(r){Ne.log.warn("Failed to set media source duration",r)}}},abort:function(){return function(t,n){if(n.mediaSource.readyState==="open"){var r=n[t+"Buffer"];if(ji(n.mediaSource,r)){n.logger_("calling abort on "+t+"Buffer");try{r.abort()}catch(a){Ne.log.warn("Failed to abort on "+t+"Buffer",a)}}}}},addSourceBuffer:function(t,n){return function(r){var a=PN(t),i=Vf(n);r.logger_("Adding "+t+"Buffer with codec "+n+" to mediaSource");var o=r.mediaSource.addSourceBuffer(i);o.addEventListener("updateend",r["on"+a+"UpdateEnd_"]),o.addEventListener("error",r["on"+a+"Error_"]),r.codecs[t]=n,r[t+"Buffer"]=o}},removeSourceBuffer:function(t){return function(n){var r=n[t+"Buffer"];if(ON(t,n),!!ji(n.mediaSource,r)){n.logger_("Removing "+t+"Buffer with codec "+n.codecs[t]+" from mediaSource");try{n.mediaSource.removeSourceBuffer(r)}catch(a){Ne.log.warn("Failed to removeSourceBuffer "+t+"Buffer",a)}}}},changeType:function(t){return function(n,r){var a=r[n+"Buffer"],i=Vf(t);if(ji(r.mediaSource,a)&&r.codecs[n]!==t){r.logger_("changing "+n+"Buffer codec from "+r.codecs[n]+" to "+t);try{a.changeType(i),r.codecs[n]=t}catch(o){Ne.log.warn("Failed to changeType on "+n+"Buffer",o)}}}}},Ia=function(t){var n=t.type,r=t.sourceUpdater,a=t.action,i=t.doneFn,o=t.name;r.queue.push({type:n,action:a,doneFn:i,name:o}),QT(n,r)},tA=function(t,n){return function(r){if(n.queuePending[t]){var a=n.queuePending[t].doneFn;n.queuePending[t]=null,a&&a(n[t+"Error_"])}QT(t,n)}},MN=function(e){Tt(t,e);function t(r){var a;return a=e.call(this)||this,a.mediaSource=r,a.sourceopenListener_=function(){return QT("mediaSource",Qt(a))},a.mediaSource.addEventListener("sourceopen",a.sourceopenListener_),a.logger_=Li("SourceUpdater"),a.audioTimestampOffset_=0,a.videoTimestampOffset_=0,a.queue=[],a.queuePending={audio:null,video:null},a.delayedAudioAppendQueue_=[],a.videoAppendQueued_=!1,a.codecs={},a.onVideoUpdateEnd_=tA("video",Qt(a)),a.onAudioUpdateEnd_=tA("audio",Qt(a)),a.onVideoError_=function(i){a.videoError_=i},a.onAudioError_=function(i){a.audioError_=i},a.createdSourceBuffers_=!1,a.initializedEme_=!1,a.triggeredReady_=!1,a}var n=t.prototype;return n.initializedEme=function(){this.initializedEme_=!0,this.triggerReady()},n.hasCreatedSourceBuffers=function(){return this.createdSourceBuffers_},n.hasInitializedAnyEme=function(){return this.initializedEme_},n.ready=function(){return this.hasCreatedSourceBuffers()&&this.hasInitializedAnyEme()},n.createSourceBuffers=function(a){this.hasCreatedSourceBuffers()||(this.addOrChangeSourceBuffers(a),this.createdSourceBuffers_=!0,this.trigger("createdsourcebuffers"),this.triggerReady())},n.triggerReady=function(){this.ready()&&!this.triggeredReady_&&(this.triggeredReady_=!0,this.trigger("ready"))},n.addSourceBuffer=function(a,i){Ia({type:"mediaSource",sourceUpdater:this,action:Da.addSourceBuffer(a,i),name:"addSourceBuffer"})},n.abort=function(a){Ia({type:a,sourceUpdater:this,action:Da.abort(a),name:"abort"})},n.removeSourceBuffer=function(a){if(!this.canRemoveSourceBuffer()){Ne.log.error("removeSourceBuffer is not supported!");return}Ia({type:"mediaSource",sourceUpdater:this,action:Da.removeSourceBuffer(a),name:"removeSourceBuffer"})},n.canRemoveSourceBuffer=function(){return!Ne.browser.IE_VERSION&&!Ne.browser.IS_FIREFOX&&Te.MediaSource&&Te.MediaSource.prototype&&typeof Te.MediaSource.prototype.removeSourceBuffer=="function"},t.canChangeType=function(){return Te.SourceBuffer&&Te.SourceBuffer.prototype&&typeof Te.SourceBuffer.prototype.changeType=="function"},n.canChangeType=function(){return this.constructor.canChangeType()},n.changeType=function(a,i){if(!this.canChangeType()){Ne.log.error("changeType is not supported!");return}Ia({type:a,sourceUpdater:this,action:Da.changeType(i),name:"changeType"})},n.addOrChangeSourceBuffers=function(a){var i=this;if(!a||typeof a!="object"||Object.keys(a).length===0)throw new Error("Cannot addOrChangeSourceBuffers to undefined codecs");Object.keys(a).forEach(function(o){var s=a[o];if(!i.hasCreatedSourceBuffers())return i.addSourceBuffer(o,s);i.canChangeType()&&i.changeType(o,s)})},n.appendBuffer=function(a,i){var o=this,s=a.segmentInfo,l=a.type,u=a.bytes;if(this.processedAppend_=!0,l==="audio"&&this.videoBuffer&&!this.videoAppendQueued_){this.delayedAudioAppendQueue_.push([a,i]),this.logger_("delayed audio append of "+u.length+" until video append");return}var c=i;if(Ia({type:l,sourceUpdater:this,action:Da.appendBuffer(u,s||{mediaIndex:-1},c),doneFn:i,name:"appendBuffer"}),l==="video"){if(this.videoAppendQueued_=!0,!this.delayedAudioAppendQueue_.length)return;var d=this.delayedAudioAppendQueue_.slice();this.logger_("queuing delayed audio "+d.length+" appendBuffers"),this.delayedAudioAppendQueue_.length=0,d.forEach(function(p){o.appendBuffer.apply(o,p)})}},n.audioBuffered=function(){return ji(this.mediaSource,this.audioBuffer)&&this.audioBuffer.buffered?this.audioBuffer.buffered:Ne.createTimeRange()},n.videoBuffered=function(){return ji(this.mediaSource,this.videoBuffer)&&this.videoBuffer.buffered?this.videoBuffer.buffered:Ne.createTimeRange()},n.buffered=function(){var a=ji(this.mediaSource,this.videoBuffer)?this.videoBuffer:null,i=ji(this.mediaSource,this.audioBuffer)?this.audioBuffer:null;return i&&!a?this.audioBuffered():a&&!i?this.videoBuffered():j_e(this.audioBuffered(),this.videoBuffered())},n.setDuration=function(a,i){i===void 0&&(i=No),Ia({type:"mediaSource",sourceUpdater:this,action:Da.duration(a),name:"duration",doneFn:i})},n.endOfStream=function(a,i){a===void 0&&(a=null),i===void 0&&(i=No),typeof a!="string"&&(a=void 0),Ia({type:"mediaSource",sourceUpdater:this,action:Da.endOfStream(a),name:"endOfStream",doneFn:i})},n.removeAudio=function(a,i,o){if(o===void 0&&(o=No),!this.audioBuffered().length||this.audioBuffered().end(0)===0){o();return}Ia({type:"audio",sourceUpdater:this,action:Da.remove(a,i),doneFn:o,name:"remove"})},n.removeVideo=function(a,i,o){if(o===void 0&&(o=No),!this.videoBuffered().length||this.videoBuffered().end(0)===0){o();return}Ia({type:"video",sourceUpdater:this,action:Da.remove(a,i),doneFn:o,name:"remove"})},n.updating=function(){return!!(m_("audio",this)||m_("video",this))},n.audioTimestampOffset=function(a){return typeof a<"u"&&this.audioBuffer&&this.audioTimestampOffset_!==a&&(Ia({type:"audio",sourceUpdater:this,action:Da.timestampOffset(a),name:"timestampOffset"}),this.audioTimestampOffset_=a),this.audioTimestampOffset_},n.videoTimestampOffset=function(a){return typeof a<"u"&&this.videoBuffer&&this.videoTimestampOffset!==a&&(Ia({type:"video",sourceUpdater:this,action:Da.timestampOffset(a),name:"timestampOffset"}),this.videoTimestampOffset_=a),this.videoTimestampOffset_},n.audioQueueCallback=function(a){this.audioBuffer&&Ia({type:"audio",sourceUpdater:this,action:Da.callback(a),name:"callback"})},n.videoQueueCallback=function(a){this.videoBuffer&&Ia({type:"video",sourceUpdater:this,action:Da.callback(a),name:"callback"})},n.dispose=function(){var a=this;this.trigger("dispose"),E2e.forEach(function(i){a.abort(i),a.canRemoveSourceBuffer()?a.removeSourceBuffer(i):a[i+"QueueCallback"](function(){return ON(i,a)})}),this.videoAppendQueued_=!1,this.delayedAudioAppendQueue_.length=0,this.sourceopenListener_&&this.mediaSource.removeEventListener("sourceopen",this.sourceopenListener_),this.off()},t}(Ne.EventTarget),nA=function(t){return decodeURIComponent(escape(String.fromCharCode.apply(null,t)))},rA=new Uint8Array(`
`.split("").map(function(e){return e.charCodeAt(0)})),k2e=function(e){Tt(t,e);function t(){return e.call(this,"Trying to parse received VTT cues, but there is no WebVTT. Make sure vtt.js is loaded.")||this}return t}(Xb(Error)),A2e=function(e){Tt(t,e);function t(r,a){var i;return a===void 0&&(a={}),i=e.call(this,r,a)||this,i.mediaSource_=null,i.subtitlesTrack_=null,i.loaderType_="subtitle",i.featuresNativeTextTracks_=r.featuresNativeTextTracks,i.loadVttJs=r.loadVttJs,i.shouldSaveSegmentTimingInfo_=!1,i}var n=t.prototype;return n.createTransmuxer_=function(){return null},n.buffered_=function(){if(!this.subtitlesTrack_||!this.subtitlesTrack_.cues||!this.subtitlesTrack_.cues.length)return Ne.createTimeRanges();var a=this.subtitlesTrack_.cues,i=a[0].startTime,o=a[a.length-1].startTime;return Ne.createTimeRanges([[i,o]])},n.initSegmentForMap=function(a,i){if(i===void 0&&(i=!1),!a)return null;var o=sv(a),s=this.initSegments_[o];if(i&&!s&&a.bytes){var l=rA.byteLength+a.bytes.byteLength,u=new Uint8Array(l);u.set(a.bytes),u.set(rA,a.bytes.byteLength),this.initSegments_[o]=s={resolvedUri:a.resolvedUri,byterange:a.byterange,bytes:u}}return s||a},n.couldBeginLoading_=function(){return this.playlist_&&this.subtitlesTrack_&&!this.paused()},n.init_=function(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()},n.track=function(a){return typeof a>"u"?this.subtitlesTrack_:(this.subtitlesTrack_=a,this.state==="INIT"&&this.couldBeginLoading_()&&this.init_(),this.subtitlesTrack_)},n.remove=function(a,i){Rd(a,i,this.subtitlesTrack_)},n.fillBuffer_=function(){var a=this,i=this.chooseNextRequest_();if(i){if(this.syncController_.timestampOffsetForTimeline(i.timeline)===null){var o=function(){a.state="READY",a.paused()||a.monitorBuffer_()};this.syncController_.one("timestampoffset",o),this.state="WAITING_ON_TIMELINE";return}this.loadSegment_(i)}},n.timestampOffsetForSegment_=function(){return null},n.chooseNextRequest_=function(){return this.skipEmptySegments_(e.prototype.chooseNextRequest_.call(this))},n.skipEmptySegments_=function(a){for(;a&&a.segment.empty;){if(a.mediaIndex+1>=a.playlist.segments.length){a=null;break}a=this.generateSegmentInfo_({playlist:a.playlist,mediaIndex:a.mediaIndex+1,startOfSegment:a.startOfSegment+a.duration,isSyncRequest:a.isSyncRequest})}return a},n.stopForError=function(a){this.error(a),this.state="READY",this.pause(),this.trigger("error")},n.segmentRequestFinished_=function(a,i,o){var s=this;if(!this.subtitlesTrack_){this.state="READY";return}if(this.saveTransferStats_(i.stats),!this.pendingSegment_){this.state="READY",this.mediaRequestsAborted+=1;return}if(a){a.code===Yi.TIMEOUT&&this.handleTimeout_(),a.code===Yi.ABORTED?this.mediaRequestsAborted+=1:this.mediaRequestsErrored+=1,this.stopForError(a);return}var l=this.pendingSegment_;this.saveBandwidthRelatedStats_(l.duration,i.stats),i.key&&this.segmentKey(i.key,!0),this.state="APPENDING",this.trigger("appending");var u=l.segment;if(u.map&&(u.map.bytes=i.map.bytes),l.bytes=i.bytes,typeof Te.WebVTT!="function"&&typeof this.loadVttJs=="function"){this.state="WAITING_ON_VTTJS",this.loadVttJs().then(function(){return s.segmentRequestFinished_(a,i,o)},function(){return s.stopForError({message:"Error loading vtt.js"})});return}u.requested=!0;try{this.parseVTTCues_(l)}catch(c){this.stopForError({message:c.message});return}if(this.updateTimeMapping_(l,this.syncController_.timelines[l.timeline],this.playlist_),l.cues.length?l.timingInfo={start:l.cues[0].startTime,end:l.cues[l.cues.length-1].endTime}:l.timingInfo={start:l.startOfSegment,end:l.startOfSegment+l.duration},l.isSyncRequest){this.trigger("syncinfoupdate"),this.pendingSegment_=null,this.state="READY";return}l.byteLength=l.bytes.byteLength,this.mediaSecondsLoaded+=u.duration,l.cues.forEach(function(c){s.subtitlesTrack_.addCue(s.featuresNativeTextTracks_?new Te.VTTCue(c.startTime,c.endTime,c.text):c)}),p2e(this.subtitlesTrack_),this.handleAppendsDone_()},n.handleData_=function(){},n.updateTimingInfoEnd_=function(){},n.parseVTTCues_=function(a){var i,o=!1;if(typeof Te.WebVTT!="function")throw new k2e;typeof Te.TextDecoder=="function"?i=new Te.TextDecoder("utf8"):(i=Te.WebVTT.StringDecoder(),o=!0);var s=new Te.WebVTT.Parser(Te,Te.vttjs,i);if(a.cues=[],a.timestampmap={MPEGTS:0,LOCAL:0},s.oncue=a.cues.push.bind(a.cues),s.ontimestampmap=function(c){a.timestampmap=c},s.onparsingerror=function(c){Ne.log.warn("Error encountered when parsing cues: "+c.message)},a.segment.map){var l=a.segment.map.bytes;o&&(l=nA(l)),s.parse(l)}var u=a.bytes;o&&(u=nA(u)),s.parse(u),s.flush()},n.updateTimeMapping_=function(a,i,o){var s=a.segment;if(i){if(!a.cues.length){s.empty=!0;return}var l=a.timestampmap,u=l.MPEGTS/Ym.ONE_SECOND_IN_TS-l.LOCAL+i.mapping;if(a.cues.forEach(function(p){p.startTime+=u,p.endTime+=u}),!o.syncInfo){var c=a.cues[0].startTime,d=a.cues[a.cues.length-1].startTime;o.syncInfo={mediaSequence:o.mediaSequence+a.mediaIndex,time:Math.min(c,d-s.duration)}}}},t}(h_),D2e=function(t,n){for(var r=t.cues,a=0;a<r.length;a++){var i=r[a];if(n>=i.adStartTime&&n<=i.adEndTime)return i}return null},I2e=function(t,n,r){if(r===void 0&&(r=0),!!t.segments)for(var a=r,i,o=0;o<t.segments.length;o++){var s=t.segments[o];if(i||(i=D2e(n,a+s.duration/2)),i){if("cueIn"in s){i.endTime=a,i.adEndTime=a,a+=s.duration,i=null;continue}if(a<i.endTime){a+=s.duration;continue}i.endTime+=s.duration}else if("cueOut"in s&&(i=new Te.VTTCue(a,a+s.duration,s.cueOut),i.adStartTime=a,i.adEndTime=a+parseFloat(s.cueOut),n.addCue(i)),"cueOutCont"in s){var l=s.cueOutCont.split("/").map(parseFloat),u=l[0],c=l[1];i=new Te.VTTCue(a,a+s.duration,""),i.adStartTime=a-u,i.adEndTime=i.adStartTime+c,n.addCue(i)}a+=s.duration}},P2e=86400,aA=[{name:"VOD",run:function(t,n,r,a,i){if(r!==1/0){var o={time:0,segmentIndex:0,partIndex:null};return o}return null}},{name:"ProgramDateTime",run:function(t,n,r,a,i){if(!Object.keys(t.timelineToDatetimeMappings).length)return null;var o=null,s=null,l=o_(n);i=i||0;for(var u=0;u<l.length;u++){var c=n.endList||i===0?u:l.length-(u+1),d=l[c],p=d.segment,h=t.timelineToDatetimeMappings[p.timeline];if(!(!h||!p.dateTimeObject)){var v=p.dateTimeObject.getTime()/1e3,m=v+h;if(p.parts&&typeof d.partIndex=="number")for(var g=0;g<d.partIndex;g++)m+=p.parts[g].duration;var y=Math.abs(i-m);if(s!==null&&(y===0||s<y))break;s=y,o={time:m,segmentIndex:d.segmentIndex,partIndex:d.partIndex}}}return o}},{name:"Segment",run:function(t,n,r,a,i){var o=null,s=null;i=i||0;for(var l=o_(n),u=0;u<l.length;u++){var c=n.endList||i===0?u:l.length-(u+1),d=l[c],p=d.segment,h=d.part&&d.part.start||p&&p.start;if(p.timeline===a&&typeof h<"u"){var v=Math.abs(i-h);if(s!==null&&s<v)break;(!o||s===null||s>=v)&&(s=v,o={time:h,segmentIndex:d.segmentIndex,partIndex:d.partIndex})}}return o}},{name:"Discontinuity",run:function(t,n,r,a,i){var o=null;if(i=i||0,n.discontinuityStarts&&n.discontinuityStarts.length)for(var s=null,l=0;l<n.discontinuityStarts.length;l++){var u=n.discontinuityStarts[l],c=n.discontinuitySequence+l+1,d=t.discontinuities[c];if(d){var p=Math.abs(i-d.time);if(s!==null&&s<p)break;(!o||s===null||s>=p)&&(s=p,o={time:d.time,segmentIndex:u,partIndex:null})}}return o}},{name:"Playlist",run:function(t,n,r,a,i){if(n.syncInfo){var o={time:n.syncInfo.time,segmentIndex:n.syncInfo.mediaSequence-n.mediaSequence,partIndex:null};return o}return null}}],O2e=function(e){Tt(t,e);function t(r){var a;return a=e.call(this)||this,a.timelines=[],a.discontinuities=[],a.timelineToDatetimeMappings={},a.logger_=Li("SyncController"),a}var n=t.prototype;return n.getSyncPoint=function(a,i,o,s){var l=this.runStrategies_(a,i,o,s);return l.length?this.selectSyncPoint_(l,{key:"time",value:s}):null},n.getExpiredTime=function(a,i){if(!a||!a.segments)return null;var o=this.runStrategies_(a,i,a.discontinuitySequence,0);if(!o.length)return null;var s=this.selectSyncPoint_(o,{key:"segmentIndex",value:0});return s.segmentIndex>0&&(s.time*=-1),Math.abs(s.time+tf({defaultDuration:a.targetDuration,durationList:a.segments,startIndex:s.segmentIndex,endIndex:0}))},n.runStrategies_=function(a,i,o,s){for(var l=[],u=0;u<aA.length;u++){var c=aA[u],d=c.run(this,a,i,o,s);d&&(d.strategy=c.name,l.push({strategy:c.name,syncPoint:d}))}return l},n.selectSyncPoint_=function(a,i){for(var o=a[0].syncPoint,s=Math.abs(a[0].syncPoint[i.key]-i.value),l=a[0].strategy,u=1;u<a.length;u++){var c=Math.abs(a[u].syncPoint[i.key]-i.value);c<s&&(s=c,o=a[u].syncPoint,l=a[u].strategy)}return this.logger_("syncPoint for ["+i.key+": "+i.value+"] chosen with strategy"+(" ["+l+"]: [time:"+o.time+",")+(" segmentIndex:"+o.segmentIndex)+(typeof o.partIndex=="number"?",partIndex:"+o.partIndex:"")+"]"),o},n.saveExpiredSegmentInfo=function(a,i){var o=i.mediaSequence-a.mediaSequence;if(o>P2e){Ne.log.warn("Not saving expired segment info. Media sequence gap "+o+" is too large.");return}for(var s=o-1;s>=0;s--){var l=a.segments[s];if(l&&typeof l.start<"u"){i.syncInfo={mediaSequence:a.mediaSequence+s,time:l.start},this.logger_("playlist refresh sync: [time:"+i.syncInfo.time+","+(" mediaSequence: "+i.syncInfo.mediaSequence+"]")),this.trigger("syncinfoupdate");break}}},n.setDateTimeMappingForStart=function(a){if(this.timelineToDatetimeMappings={},a.segments&&a.segments.length&&a.segments[0].dateTimeObject){var i=a.segments[0],o=i.dateTimeObject.getTime()/1e3;this.timelineToDatetimeMappings[i.timeline]=-o}},n.saveSegmentTimingInfo=function(a){var i=a.segmentInfo,o=a.shouldSaveTimelineMapping,s=this.calculateSegmentTimeMapping_(i,i.timingInfo,o),l=i.segment;s&&(this.saveDiscontinuitySyncInfo_(i),i.playlist.syncInfo||(i.playlist.syncInfo={mediaSequence:i.playlist.mediaSequence+i.mediaIndex,time:l.start}));var u=l.dateTimeObject;l.discontinuity&&o&&u&&(this.timelineToDatetimeMappings[l.timeline]=-(u.getTime()/1e3))},n.timestampOffsetForTimeline=function(a){return typeof this.timelines[a]>"u"?null:this.timelines[a].time},n.mappingForTimeline=function(a){return typeof this.timelines[a]>"u"?null:this.timelines[a].mapping},n.calculateSegmentTimeMapping_=function(a,i,o){var s=a.segment,l=a.part,u=this.timelines[a.timeline],c,d;if(typeof a.timestampOffset=="number")u={time:a.startOfSegment,mapping:a.startOfSegment-i.start},o&&(this.timelines[a.timeline]=u,this.trigger("timestampoffset"),this.logger_("time mapping for timeline "+a.timeline+": "+("[time: "+u.time+"] [mapping: "+u.mapping+"]"))),c=a.startOfSegment,d=i.end+u.mapping;else if(u)c=i.start+u.mapping,d=i.end+u.mapping;else return!1;return l&&(l.start=c,l.end=d),(!s.start||c<s.start)&&(s.start=c),s.end=d,!0},n.saveDiscontinuitySyncInfo_=function(a){var i=a.playlist,o=a.segment;if(o.discontinuity)this.discontinuities[o.timeline]={time:o.start,accuracy:0};else if(i.discontinuityStarts&&i.discontinuityStarts.length)for(var s=0;s<i.discontinuityStarts.length;s++){var l=i.discontinuityStarts[s],u=i.discontinuitySequence+s+1,c=l-a.mediaIndex,d=Math.abs(c);if(!this.discontinuities[u]||this.discontinuities[u].accuracy>d){var p=void 0;c<0?p=o.start-tf({defaultDuration:i.targetDuration,durationList:i.segments,startIndex:a.mediaIndex,endIndex:l}):p=o.end+tf({defaultDuration:i.targetDuration,durationList:i.segments,startIndex:a.mediaIndex+1,endIndex:l}),this.discontinuities[u]={time:p,accuracy:d}}}},n.dispose=function(){this.trigger("dispose"),this.off()},t}(Ne.EventTarget),M2e=function(e){Tt(t,e);function t(){var r;return r=e.call(this)||this,r.pendingTimelineChanges_={},r.lastTimelineChanges_={},r}var n=t.prototype;return n.clearPendingTimelineChange=function(a){this.pendingTimelineChanges_[a]=null,this.trigger("pendingtimelinechange")},n.pendingTimelineChange=function(a){var i=a.type,o=a.from,s=a.to;return typeof o=="number"&&typeof s=="number"&&(this.pendingTimelineChanges_[i]={type:i,from:o,to:s},this.trigger("pendingtimelinechange")),this.pendingTimelineChanges_[i]},n.lastTimelineChange=function(a){var i=a.type,o=a.from,s=a.to;return typeof o=="number"&&typeof s=="number"&&(this.lastTimelineChanges_[i]={type:i,from:o,to:s},delete this.pendingTimelineChanges_[i],this.trigger("timelinechange")),this.lastTimelineChanges_[i]},n.dispose=function(){this.trigger("dispose"),this.pendingTimelineChanges_={},this.lastTimelineChanges_={},this.off()},t}(Ne.EventTarget),R2e=bN(_N(function(){var e=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function t(_,w,S){return S={path:w,exports:{},require:function(I,D){return n(I,D??S.path)}},_(S,S.exports),S.exports}function n(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var r=t(function(_){function w(A,I){for(var D=0;D<I.length;D++){var O=I[D];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(A,O.key,O)}}function S(A,I,D){return I&&w(A.prototype,I),D&&w(A,D),A}_.exports=S,_.exports.default=_.exports,_.exports.__esModule=!0}),a=t(function(_){function w(S,A){return _.exports=w=Object.setPrototypeOf||function(D,O){return D.__proto__=O,D},_.exports.default=_.exports,_.exports.__esModule=!0,w(S,A)}_.exports=w,_.exports.default=_.exports,_.exports.__esModule=!0}),i=t(function(_){function w(S,A){S.prototype=Object.create(A.prototype),S.prototype.constructor=S,a(S,A)}_.exports=w,_.exports.default=_.exports,_.exports.__esModule=!0}),o=function(){function _(){this.listeners={}}var w=_.prototype;return w.on=function(A,I){this.listeners[A]||(this.listeners[A]=[]),this.listeners[A].push(I)},w.off=function(A,I){if(!this.listeners[A])return!1;var D=this.listeners[A].indexOf(I);return this.listeners[A]=this.listeners[A].slice(0),this.listeners[A].splice(D,1),D>-1},w.trigger=function(A){var I=this.listeners[A];if(I)if(arguments.length===2)for(var D=I.length,O=0;O<D;++O)I[O].call(this,arguments[1]);else for(var V=Array.prototype.slice.call(arguments,1),N=I.length,K=0;K<N;++K)I[K].apply(this,V)},w.dispose=function(){this.listeners={}},w.pipe=function(A){this.on("data",function(I){A.push(I)})},_}();/*! @name pkcs7 @version 1.0.4 @license Apache-2.0 */function s(_){return _.subarray(0,_.byteLength-_[_.byteLength-1])}/*! @name aes-decrypter @version 3.1.3 @license Apache-2.0 */var l=function(){var w=[[[],[],[],[],[]],[[],[],[],[],[]]],S=w[0],A=w[1],I=S[4],D=A[4],O,V,N,K=[],Y=[],q,$,j,W,H,X;for(O=0;O<256;O++)Y[(K[O]=O<<1^(O>>7)*283)^O]=O;for(V=N=0;!I[V];V^=q||1,N=Y[N]||1)for(W=N^N<<1^N<<2^N<<3^N<<4,W=W>>8^W&255^99,I[V]=W,D[W]=V,j=K[$=K[q=K[V]]],X=j*16843009^$*65537^q*257^V*16843008,H=K[W]*257^W*16843008,O=0;O<4;O++)S[O][V]=H=H<<24^H>>>8,A[O][W]=X=X<<24^X>>>8;for(O=0;O<5;O++)S[O]=S[O].slice(0),A[O]=A[O].slice(0);return w},u=null,c=function(){function _(S){u||(u=l()),this._tables=[[u[0][0].slice(),u[0][1].slice(),u[0][2].slice(),u[0][3].slice(),u[0][4].slice()],[u[1][0].slice(),u[1][1].slice(),u[1][2].slice(),u[1][3].slice(),u[1][4].slice()]];var A,I,D,O=this._tables[0][4],V=this._tables[1],N=S.length,K=1;if(N!==4&&N!==6&&N!==8)throw new Error("Invalid aes key size");var Y=S.slice(0),q=[];for(this._key=[Y,q],A=N;A<4*N+28;A++)D=Y[A-1],(A%N===0||N===8&&A%N===4)&&(D=O[D>>>24]<<24^O[D>>16&255]<<16^O[D>>8&255]<<8^O[D&255],A%N===0&&(D=D<<8^D>>>24^K<<24,K=K<<1^(K>>7)*283)),Y[A]=Y[A-N]^D;for(I=0;A;I++,A--)D=Y[I&3?A:A-4],A<=4||I<4?q[I]=D:q[I]=V[0][O[D>>>24]]^V[1][O[D>>16&255]]^V[2][O[D>>8&255]]^V[3][O[D&255]]}var w=_.prototype;return w.decrypt=function(A,I,D,O,V,N){var K=this._key[1],Y=A^K[0],q=O^K[1],$=D^K[2],j=I^K[3],W,H,X,re=K.length/4-2,le,ne=4,be=this._tables[1],_e=be[0],ve=be[1],te=be[2],me=be[3],pe=be[4];for(le=0;le<re;le++)W=_e[Y>>>24]^ve[q>>16&255]^te[$>>8&255]^me[j&255]^K[ne],H=_e[q>>>24]^ve[$>>16&255]^te[j>>8&255]^me[Y&255]^K[ne+1],X=_e[$>>>24]^ve[j>>16&255]^te[Y>>8&255]^me[q&255]^K[ne+2],j=_e[j>>>24]^ve[Y>>16&255]^te[q>>8&255]^me[$&255]^K[ne+3],ne+=4,Y=W,q=H,$=X;for(le=0;le<4;le++)V[(3&-le)+N]=pe[Y>>>24]<<24^pe[q>>16&255]<<16^pe[$>>8&255]<<8^pe[j&255]^K[ne++],W=Y,Y=q,q=$,$=j,j=W},_}(),d=function(_){i(w,_);function w(){var A;return A=_.call(this,o)||this,A.jobs=[],A.delay=1,A.timeout_=null,A}var S=w.prototype;return S.processJob_=function(){this.jobs.shift()(),this.jobs.length?this.timeout_=setTimeout(this.processJob_.bind(this),this.delay):this.timeout_=null},S.push=function(I){this.jobs.push(I),this.timeout_||(this.timeout_=setTimeout(this.processJob_.bind(this),this.delay))},w}(o),p=function(w){return w<<24|(w&65280)<<8|(w&16711680)>>8|w>>>24},h=function(w,S,A){var I=new Int32Array(w.buffer,w.byteOffset,w.byteLength>>2),D=new c(Array.prototype.slice.call(S)),O=new Uint8Array(w.byteLength),V=new Int32Array(O.buffer),N,K,Y,q,$,j,W,H,X;for(N=A[0],K=A[1],Y=A[2],q=A[3],X=0;X<I.length;X+=4)$=p(I[X]),j=p(I[X+1]),W=p(I[X+2]),H=p(I[X+3]),D.decrypt($,j,W,H,V,X),V[X]=p(V[X]^N),V[X+1]=p(V[X+1]^K),V[X+2]=p(V[X+2]^Y),V[X+3]=p(V[X+3]^q),N=$,K=j,Y=W,q=H;return O},v=function(){function _(S,A,I,D){var O=_.STEP,V=new Int32Array(S.buffer),N=new Uint8Array(S.byteLength),K=0;for(this.asyncStream_=new d,this.asyncStream_.push(this.decryptChunk_(V.subarray(K,K+O),A,I,N)),K=O;K<V.length;K+=O)I=new Uint32Array([p(V[K-4]),p(V[K-3]),p(V[K-2]),p(V[K-1])]),this.asyncStream_.push(this.decryptChunk_(V.subarray(K,K+O),A,I,N));this.asyncStream_.push(function(){D(null,s(N))})}var w=_.prototype;return w.decryptChunk_=function(A,I,D,O){return function(){var V=h(A,I,D);O.set(V,A.byteOffset)}},r(_,null,[{key:"STEP",get:function(){return 32e3}}]),_}(),m;typeof window<"u"?m=window:typeof e<"u"?m=e:typeof self<"u"?m=self:m={};var g=m,y=function(w){return ArrayBuffer.isView==="function"?ArrayBuffer.isView(w):w&&w.buffer instanceof ArrayBuffer},T=g.BigInt||Number;T("0x1"),T("0x100"),T("0x10000"),T("0x1000000"),T("0x100000000"),T("0x10000000000"),T("0x1000000000000"),T("0x100000000000000"),T("0x10000000000000000");var b=function(w){var S={};return Object.keys(w).forEach(function(A){var I=w[A];y(I)?S[A]={bytes:I.buffer,byteOffset:I.byteOffset,byteLength:I.byteLength}:S[A]=I}),S};self.onmessage=function(_){var w=_.data,S=new Uint8Array(w.encrypted.bytes,w.encrypted.byteOffset,w.encrypted.byteLength),A=new Uint32Array(w.key.bytes,w.key.byteOffset,w.key.byteLength/4),I=new Uint32Array(w.iv.bytes,w.iv.byteOffset,w.iv.byteLength/4);new v(S,A,I,function(D,O){self.postMessage(b({source:w.source,decrypted:O}),[O.buffer])})}})),L2e=yN(R2e),N2e=function(t){var n=t.default?"main":"alternative";return t.characteristics&&t.characteristics.indexOf("public.accessibility.describes-video")>=0&&(n="main-desc"),n},dv=function(t,n){t.abort(),t.pause(),n&&n.activePlaylistLoader&&(n.activePlaylistLoader.pause(),n.activePlaylistLoader=null)},v_=function(t,n){n.activePlaylistLoader=t,t.load()},F2e=function(t,n){return function(){var r=n.segmentLoaders,a=r[t],i=r.main,o=n.mediaTypes[t],s=o.activeTrack(),l=o.getActiveGroup(),u=o.activePlaylistLoader,c=o.lastGroup_;if(!(l&&c&&l.id===c.id)&&(o.lastGroup_=l,o.lastTrack_=s,dv(a,o),!(!l||l.isMasterPlaylist))){if(!l.playlistLoader){u&&i.resetEverything();return}a.resyncLoader(),v_(l.playlistLoader,o)}}},$2e=function(t,n){return function(){var r=n.segmentLoaders[t],a=n.mediaTypes[t];a.lastGroup_=null,r.abort(),r.pause()}},B2e=function(t,n){return function(){var r=n.masterPlaylistLoader,a=n.segmentLoaders,i=a[t],o=a.main,s=n.mediaTypes[t],l=s.activeTrack(),u=s.getActiveGroup(),c=s.activePlaylistLoader,d=s.lastTrack_;if(!(d&&l&&d.id===l.id)&&(s.lastGroup_=u,s.lastTrack_=l,dv(i,s),!!u)){if(u.isMasterPlaylist){if(!l||!d||l.id===d.id)return;var p=n.vhs.masterPlaylistController_,h=p.selectPlaylist();if(p.media()===h)return;s.logger_("track change. Switching master audio from "+d.id+" to "+l.id),r.pause(),o.resetEverything(),p.fastQualityChange_(h);return}if(t==="AUDIO"){if(!u.playlistLoader){o.setAudio(!0),o.resetEverything();return}i.setAudio(!0),o.setAudio(!1)}if(c===u.playlistLoader){v_(u.playlistLoader,s);return}i.track&&i.track(l),i.resetEverything(),v_(u.playlistLoader,s)}}},fv={AUDIO:function(t,n){return function(){var r=n.segmentLoaders[t],a=n.mediaTypes[t],i=n.blacklistCurrentPlaylist;dv(r,a);var o=a.activeTrack(),s=a.activeGroup(),l=(s.filter(function(d){return d.default})[0]||s[0]).id,u=a.tracks[l];if(o===u){i({message:"Problem encountered loading the default audio track."});return}Ne.log.warn("Problem encountered loading the alternate audio track.Switching back to default.");for(var c in a.tracks)a.tracks[c].enabled=a.tracks[c]===u;a.onTrackChanged()}},SUBTITLES:function(t,n){return function(){var r=n.segmentLoaders[t],a=n.mediaTypes[t];Ne.log.warn("Problem encountered loading the subtitle track.Disabling subtitle track."),dv(r,a);var i=a.activeTrack();i&&(i.mode="disabled"),a.onTrackChanged()}}},iA={AUDIO:function(t,n,r){if(n){var a=r.tech,i=r.requestOptions,o=r.segmentLoaders[t];n.on("loadedmetadata",function(){var s=n.media();o.playlist(s,i),(!a.paused()||s.endList&&a.preload()!=="none")&&o.load()}),n.on("loadedplaylist",function(){o.playlist(n.media(),i),a.paused()||o.load()}),n.on("error",fv[t](t,r))}},SUBTITLES:function(t,n,r){var a=r.tech,i=r.requestOptions,o=r.segmentLoaders[t],s=r.mediaTypes[t];n.on("loadedmetadata",function(){var l=n.media();o.playlist(l,i),o.track(s.activeTrack()),(!a.paused()||l.endList&&a.preload()!=="none")&&o.load()}),n.on("loadedplaylist",function(){o.playlist(n.media(),i),a.paused()||o.load()}),n.on("error",fv[t](t,r))}},V2e={AUDIO:function(t,n){var r=n.vhs,a=n.sourceType,i=n.segmentLoaders[t],o=n.requestOptions,s=n.master.mediaGroups,l=n.mediaTypes[t],u=l.groups,c=l.tracks,d=l.logger_,p=n.masterPlaylistLoader,h=Rp(p.master);(!s[t]||Object.keys(s[t]).length===0)&&(s[t]={main:{default:{default:!0}}},h&&(s[t].main.default.playlists=p.master.playlists));for(var v in s[t]){u[v]||(u[v]=[]);for(var m in s[t][v]){var g=s[t][v][m],y=void 0;if(h?(d("AUDIO group '"+v+"' label '"+m+"' is a master playlist"),g.isMasterPlaylist=!0,y=null):a==="vhs-json"&&g.playlists?y=new Iu(g.playlists[0],r,o):g.resolvedUri?y=new Iu(g.resolvedUri,r,o):g.playlists&&a==="dash"?y=new f_(g.playlists[0],r,o,p):y=null,g=Ne.mergeOptions({id:m,playlistLoader:y},g),iA[t](t,g.playlistLoader,n),u[v].push(g),typeof c[m]>"u"){var T=new Ne.AudioTrack({id:m,kind:N2e(g),enabled:!1,language:g.language,default:g.default,label:m});c[m]=T}}}i.on("error",fv[t](t,n))},SUBTITLES:function(t,n){var r=n.tech,a=n.vhs,i=n.sourceType,o=n.segmentLoaders[t],s=n.requestOptions,l=n.master.mediaGroups,u=n.mediaTypes[t],c=u.groups,d=u.tracks,p=n.masterPlaylistLoader;for(var h in l[t]){c[h]||(c[h]=[]);for(var v in l[t][h])if(!l[t][h][v].forced){var m=l[t][h][v],g=void 0;if(i==="hls")g=new Iu(m.resolvedUri,a,s);else if(i==="dash"){var y=m.playlists.filter(function(b){return b.excludeUntil!==1/0});if(!y.length)return;g=new f_(m.playlists[0],a,s,p)}else i==="vhs-json"&&(g=new Iu(m.playlists?m.playlists[0]:m.resolvedUri,a,s));if(m=Ne.mergeOptions({id:v,playlistLoader:g},m),iA[t](t,m.playlistLoader,n),c[h].push(m),typeof d[v]>"u"){var T=r.addRemoteTextTrack({id:v,kind:"subtitles",default:m.default&&m.autoselect,language:m.language,label:v},!1).track;d[v]=T}}}o.on("error",fv[t](t,n))},"CLOSED-CAPTIONS":function(t,n){var r=n.tech,a=n.master.mediaGroups,i=n.mediaTypes[t],o=i.groups,s=i.tracks;for(var l in a[t]){o[l]||(o[l]=[]);for(var u in a[t][l]){var c=a[t][l][u];if(/^(?:CC|SERVICE)/.test(c.instreamId)){var d=r.options_.vhs&&r.options_.vhs.captionServices||{},p={label:u,language:c.language,instreamId:c.instreamId,default:c.default&&c.autoselect};if(d[p.instreamId]&&(p=Ne.mergeOptions(p,d[p.instreamId])),p.default===void 0&&delete p.default,o[l].push(Ne.mergeOptions({id:u},c)),typeof s[u]>"u"){var h=r.addRemoteTextTrack({id:p.instreamId,kind:"captions",default:p.default,language:p.language,label:p.label},!1).track;s[u]=h}}}}}},U2e=function e(t,n){for(var r=0;r<t.length;r++)if(qT(n,t[r])||t[r].playlists&&e(t[r].playlists,n))return!0;return!1},H2e=function(t,n){return function(r){var a=n.masterPlaylistLoader,i=n.mediaTypes[t].groups,o=a.media();if(!o)return null;var s=null;o.attributes[t]&&(s=i[o.attributes[t]]);var l=Object.keys(i);if(!s)if(t==="AUDIO"&&l.length>1&&Rp(n.master))for(var u=0;u<l.length;u++){var c=i[l[u]];if(U2e(c,o)){s=c;break}}else i.main?s=i.main:l.length===1&&(s=i[l[0]]);return typeof r>"u"?s:r===null||!s?null:s.filter(function(d){return d.id===r.id})[0]||null}},z2e={AUDIO:function(t,n){return function(){var r=n.mediaTypes[t].tracks;for(var a in r)if(r[a].enabled)return r[a];return null}},SUBTITLES:function(t,n){return function(){var r=n.mediaTypes[t].tracks;for(var a in r)if(r[a].mode==="showing"||r[a].mode==="hidden")return r[a];return null}}},j2e=function(t,n){var r=n.mediaTypes;return function(){var a=r[t].activeTrack();return a?r[t].activeGroup(a):null}},W2e=function(t){["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(function(v){V2e[v](v,t)});var n=t.mediaTypes,r=t.masterPlaylistLoader,a=t.tech,i=t.vhs,o=t.segmentLoaders,s=o.AUDIO,l=o.main;["AUDIO","SUBTITLES"].forEach(function(v){n[v].activeGroup=H2e(v,t),n[v].activeTrack=z2e[v](v,t),n[v].onGroupChanged=F2e(v,t),n[v].onGroupChanging=$2e(v,t),n[v].onTrackChanged=B2e(v,t),n[v].getActiveGroup=j2e(v,t)});var u=n.AUDIO.activeGroup();if(u){var c=(u.filter(function(v){return v.default})[0]||u[0]).id;n.AUDIO.tracks[c].enabled=!0,n.AUDIO.onGroupChanged(),n.AUDIO.onTrackChanged();var d=n.AUDIO.getActiveGroup();d.playlistLoader?(l.setAudio(!1),s.setAudio(!0)):l.setAudio(!0)}r.on("mediachange",function(){["AUDIO","SUBTITLES"].forEach(function(v){return n[v].onGroupChanged()})}),r.on("mediachanging",function(){["AUDIO","SUBTITLES"].forEach(function(v){return n[v].onGroupChanging()})});var p=function(){n.AUDIO.onTrackChanged(),a.trigger({type:"usage",name:"vhs-audio-change"}),a.trigger({type:"usage",name:"hls-audio-change"})};a.audioTracks().addEventListener("change",p),a.remoteTextTracks().addEventListener("change",n.SUBTITLES.onTrackChanged),i.on("dispose",function(){a.audioTracks().removeEventListener("change",p),a.remoteTextTracks().removeEventListener("change",n.SUBTITLES.onTrackChanged)}),a.clearTracks("audio");for(var h in n.AUDIO.tracks)a.audioTracks().addTrack(n.AUDIO.tracks[h])},K2e=function(){var t={};return["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(function(n){t[n]={groups:{},tracks:{},activePlaylistLoader:null,activeGroup:No,activeTrack:No,getActiveGroup:No,onGroupChanged:No,onTrackChanged:No,lastTrack_:null,logger_:Li("MediaGroups["+n+"]")}}),t},q2e=60*2,Eo,G2e=["mediaRequests","mediaRequestsAborted","mediaRequestsTimedout","mediaRequestsErrored","mediaTransferDuration","mediaBytesTransferred","mediaAppends"],Y2e=function(t){return this.audioSegmentLoader_[t]+this.mainSegmentLoader_[t]},X2e=function(t){var n=t.currentPlaylist,r=t.buffered,a=t.currentTime,i=t.nextPlaylist,o=t.bufferLowWaterLine,s=t.bufferHighWaterLine,l=t.duration,u=t.experimentalBufferBasedABR,c=t.log;if(!i)return Ne.log.warn("We received no playlist to switch to. Please check your stream."),!1;var d="allowing switch "+(n&&n.id||"null")+" -> "+i.id;if(!n)return c(d+" as current playlist is not set"),!0;if(i.id===n.id)return!1;var p=!!Du(r,a).length;if(!n.endList)return!p&&typeof n.partTargetDuration=="number"?(c("not "+d+" as current playlist is live llhls, but currentTime isn't in buffered."),!1):(c(d+" as current playlist is live"),!0);var h=jT(r,a),v=u?yr.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:yr.MAX_BUFFER_LOW_WATER_LINE;if(l<v)return c(d+" as duration < max low water line ("+l+" < "+v+")"),!0;var m=i.attributes.BANDWIDTH,g=n.attributes.BANDWIDTH;if(m<g&&(!u||h<s)){var y=d+" as next bandwidth < current bandwidth ("+m+" < "+g+")";return u&&(y+=" and forwardBuffer < bufferHighWaterLine ("+h+" < "+s+")"),c(y),!0}if((!u||m>g)&&h>=o){var T=d+" as forwardBuffer >= bufferLowWaterLine ("+h+" >= "+o+")";return u&&(T+=" and next bandwidth > current bandwidth ("+m+" > "+g+")"),c(T),!0}return c("not "+d+" as no switching criteria met"),!1},Q2e=function(e){Tt(t,e);function t(r){var a;a=e.call(this)||this;var i=r.src,o=r.handleManifestRedirects,s=r.withCredentials,l=r.tech,u=r.bandwidth,c=r.externVhs,d=r.useCueTags,p=r.blacklistDuration,h=r.enableLowInitialPlaylist,v=r.sourceType,m=r.cacheEncryptionKeys,g=r.experimentalBufferBasedABR,y=r.experimentalLeastPixelDiffSelector,T=r.captionServices;if(!i)throw new Error("A non-empty playlist URL or JSON manifest string is required");var b=r.maxPlaylistRetries;(b===null||typeof b>"u")&&(b=1/0),Eo=c,a.experimentalBufferBasedABR=!!g,a.experimentalLeastPixelDiffSelector=!!y,a.withCredentials=s,a.tech_=l,a.vhs_=l.vhs,a.sourceType_=v,a.useCueTags_=d,a.blacklistDuration=p,a.maxPlaylistRetries=b,a.enableLowInitialPlaylist=h,a.useCueTags_&&(a.cueTagsTrack_=a.tech_.addTextTrack("metadata","ad-cues"),a.cueTagsTrack_.inBandMetadataTrackDispatchType=""),a.requestOptions_={withCredentials:s,handleManifestRedirects:o,maxPlaylistRetries:b,timeout:null},a.on("error",a.pauseLoading),a.mediaTypes_=K2e(),a.mediaSource=new Te.MediaSource,a.handleDurationChange_=a.handleDurationChange_.bind(Qt(a)),a.handleSourceOpen_=a.handleSourceOpen_.bind(Qt(a)),a.handleSourceEnded_=a.handleSourceEnded_.bind(Qt(a)),a.mediaSource.addEventListener("durationchange",a.handleDurationChange_),a.mediaSource.addEventListener("sourceopen",a.handleSourceOpen_),a.mediaSource.addEventListener("sourceended",a.handleSourceEnded_),a.seekable_=Ne.createTimeRanges(),a.hasPlayed_=!1,a.syncController_=new O2e(r),a.segmentMetadataTrack_=l.addRemoteTextTrack({kind:"metadata",label:"segment-metadata"},!1).track,a.decrypter_=new L2e,a.sourceUpdater_=new MN(a.mediaSource),a.inbandTextTracks_={},a.timelineChangeController_=new M2e;var _={vhs:a.vhs_,parse708captions:r.parse708captions,useDtsForTimestampOffset:r.useDtsForTimestampOffset,captionServices:T,mediaSource:a.mediaSource,currentTime:a.tech_.currentTime.bind(a.tech_),seekable:function(){return a.seekable()},seeking:function(){return a.tech_.seeking()},duration:function(){return a.duration()},hasPlayed:function(){return a.hasPlayed_},goalBufferLength:function(){return a.goalBufferLength()},bandwidth:u,syncController:a.syncController_,decrypter:a.decrypter_,sourceType:a.sourceType_,inbandTextTracks:a.inbandTextTracks_,cacheEncryptionKeys:m,sourceUpdater:a.sourceUpdater_,timelineChangeController:a.timelineChangeController_,experimentalExactManifestTimings:r.experimentalExactManifestTimings};a.masterPlaylistLoader_=a.sourceType_==="dash"?new f_(i,a.vhs_,a.requestOptions_):new Iu(i,a.vhs_,a.requestOptions_),a.setupMasterPlaylistLoaderListeners_(),a.mainSegmentLoader_=new h_(Ne.mergeOptions(_,{segmentMetadataTrack:a.segmentMetadataTrack_,loaderType:"main"}),r),a.audioSegmentLoader_=new h_(Ne.mergeOptions(_,{loaderType:"audio"}),r),a.subtitleSegmentLoader_=new A2e(Ne.mergeOptions(_,{loaderType:"vtt",featuresNativeTextTracks:a.tech_.featuresNativeTextTracks,loadVttJs:function(){return new Promise(function(A,I){function D(){l.off("vttjserror",O),A()}function O(){l.off("vttjsloaded",D),I()}l.one("vttjsloaded",D),l.one("vttjserror",O),l.addWebVttScript_()})}}),r),a.setupSegmentLoaderListeners_(),a.experimentalBufferBasedABR&&(a.masterPlaylistLoader_.one("loadedplaylist",function(){return a.startABRTimer_()}),a.tech_.on("pause",function(){return a.stopABRTimer_()}),a.tech_.on("play",function(){return a.startABRTimer_()})),G2e.forEach(function(S){a[S+"_"]=Y2e.bind(Qt(a),S)}),a.logger_=Li("MPC"),a.triggeredFmp4Usage=!1,a.tech_.preload()==="none"?(a.loadOnPlay_=function(){a.loadOnPlay_=null,a.masterPlaylistLoader_.load()},a.tech_.one("play",a.loadOnPlay_)):a.masterPlaylistLoader_.load(),a.timeToLoadedData__=-1,a.mainAppendsToLoadedData__=-1,a.audioAppendsToLoadedData__=-1;var w=a.tech_.preload()==="none"?"play":"loadstart";return a.tech_.one(w,function(){var S=Date.now();a.tech_.one("loadeddata",function(){a.timeToLoadedData__=Date.now()-S,a.mainAppendsToLoadedData__=a.mainSegmentLoader_.mediaAppends,a.audioAppendsToLoadedData__=a.audioSegmentLoader_.mediaAppends})}),a}var n=t.prototype;return n.mainAppendsToLoadedData_=function(){return this.mainAppendsToLoadedData__},n.audioAppendsToLoadedData_=function(){return this.audioAppendsToLoadedData__},n.appendsToLoadedData_=function(){var a=this.mainAppendsToLoadedData_(),i=this.audioAppendsToLoadedData_();return a===-1||i===-1?-1:a+i},n.timeToLoadedData_=function(){return this.timeToLoadedData__},n.checkABR_=function(a){a===void 0&&(a="abr");var i=this.selectPlaylist();i&&this.shouldSwitchToMedia_(i)&&this.switchMedia_(i,a)},n.switchMedia_=function(a,i,o){var s=this.media(),l=s&&(s.id||s.uri),u=a.id||a.uri;l&&l!==u&&(this.logger_("switch media "+l+" -> "+u+" from "+i),this.tech_.trigger({type:"usage",name:"vhs-rendition-change-"+i})),this.masterPlaylistLoader_.media(a,o)},n.startABRTimer_=function(){var a=this;this.stopABRTimer_(),this.abrTimer_=Te.setInterval(function(){return a.checkABR_()},250)},n.stopABRTimer_=function(){this.tech_.scrubbing&&this.tech_.scrubbing()||(Te.clearInterval(this.abrTimer_),this.abrTimer_=null)},n.getAudioTrackPlaylists_=function(){var a=this.master(),i=a&&a.playlists||[];if(!a||!a.mediaGroups||!a.mediaGroups.AUDIO)return i;var o=a.mediaGroups.AUDIO,s=Object.keys(o),l;if(Object.keys(this.mediaTypes_.AUDIO.groups).length)l=this.mediaTypes_.AUDIO.activeTrack();else{var u=o.main||s.length&&o[s[0]];for(var c in u)if(u[c].default){l={label:c};break}}if(!l)return i;var d=[];for(var p in o)if(o[p][l.label]){var h=o[p][l.label];if(h.playlists&&h.playlists.length)d.push.apply(d,h.playlists);else if(h.uri)d.push(h);else if(a.playlists.length)for(var v=0;v<a.playlists.length;v++){var m=a.playlists[v];m.attributes&&m.attributes.AUDIO&&m.attributes.AUDIO===p&&d.push(m)}}return d.length?d:i},n.setupMasterPlaylistLoaderListeners_=function(){var a=this;this.masterPlaylistLoader_.on("loadedmetadata",function(){var i=a.masterPlaylistLoader_.media(),o=i.targetDuration*1.5*1e3;s_(a.masterPlaylistLoader_.master,a.masterPlaylistLoader_.media())?a.requestOptions_.timeout=0:a.requestOptions_.timeout=o,i.endList&&a.tech_.preload()!=="none"&&(a.mainSegmentLoader_.playlist(i,a.requestOptions_),a.mainSegmentLoader_.load()),W2e({sourceType:a.sourceType_,segmentLoaders:{AUDIO:a.audioSegmentLoader_,SUBTITLES:a.subtitleSegmentLoader_,main:a.mainSegmentLoader_},tech:a.tech_,requestOptions:a.requestOptions_,masterPlaylistLoader:a.masterPlaylistLoader_,vhs:a.vhs_,master:a.master(),mediaTypes:a.mediaTypes_,blacklistCurrentPlaylist:a.blacklistCurrentPlaylist.bind(a)}),a.triggerPresenceUsage_(a.master(),i),a.setupFirstPlay(),!a.mediaTypes_.AUDIO.activePlaylistLoader||a.mediaTypes_.AUDIO.activePlaylistLoader.media()?a.trigger("selectedinitialmedia"):a.mediaTypes_.AUDIO.activePlaylistLoader.one("loadedmetadata",function(){a.trigger("selectedinitialmedia")})}),this.masterPlaylistLoader_.on("loadedplaylist",function(){a.loadOnPlay_&&a.tech_.off("play",a.loadOnPlay_);var i=a.masterPlaylistLoader_.media();if(!i){a.excludeUnsupportedVariants_();var o;if(a.enableLowInitialPlaylist&&(o=a.selectInitialPlaylist()),o||(o=a.selectPlaylist()),!o||!a.shouldSwitchToMedia_(o))return;a.initialMedia_=o,a.switchMedia_(a.initialMedia_,"initial");var s=a.sourceType_==="vhs-json"&&a.initialMedia_.segments;if(!s)return;i=a.initialMedia_}a.handleUpdatedMediaPlaylist(i)}),this.masterPlaylistLoader_.on("error",function(){a.blacklistCurrentPlaylist(a.masterPlaylistLoader_.error)}),this.masterPlaylistLoader_.on("mediachanging",function(){a.mainSegmentLoader_.abort(),a.mainSegmentLoader_.pause()}),this.masterPlaylistLoader_.on("mediachange",function(){var i=a.masterPlaylistLoader_.media(),o=i.targetDuration*1.5*1e3;s_(a.masterPlaylistLoader_.master,a.masterPlaylistLoader_.media())?a.requestOptions_.timeout=0:a.requestOptions_.timeout=o,a.masterPlaylistLoader_.load(),a.mainSegmentLoader_.playlist(i,a.requestOptions_),a.mainSegmentLoader_.load(),a.tech_.trigger({type:"mediachange",bubbles:!0})}),this.masterPlaylistLoader_.on("playlistunchanged",function(){var i=a.masterPlaylistLoader_.media();if(i.lastExcludeReason_!=="playlist-unchanged"){var o=a.stuckAtPlaylistEnd_(i);o&&(a.blacklistCurrentPlaylist({message:"Playlist no longer updating.",reason:"playlist-unchanged"}),a.tech_.trigger("playliststuck"))}}),this.masterPlaylistLoader_.on("renditiondisabled",function(){a.tech_.trigger({type:"usage",name:"vhs-rendition-disabled"}),a.tech_.trigger({type:"usage",name:"hls-rendition-disabled"})}),this.masterPlaylistLoader_.on("renditionenabled",function(){a.tech_.trigger({type:"usage",name:"vhs-rendition-enabled"}),a.tech_.trigger({type:"usage",name:"hls-rendition-enabled"})})},n.handleUpdatedMediaPlaylist=function(a){this.useCueTags_&&this.updateAdCues_(a),this.mainSegmentLoader_.playlist(a,this.requestOptions_),this.updateDuration(!a.endList),this.tech_.paused()||(this.mainSegmentLoader_.load(),this.audioSegmentLoader_&&this.audioSegmentLoader_.load())},n.triggerPresenceUsage_=function(a,i){var o=a.mediaGroups||{},s=!0,l=Object.keys(o.AUDIO);for(var u in o.AUDIO)for(var c in o.AUDIO[u]){var d=o.AUDIO[u][c];d.uri||(s=!1)}s&&(this.tech_.trigger({type:"usage",name:"vhs-demuxed"}),this.tech_.trigger({type:"usage",name:"hls-demuxed"})),Object.keys(o.SUBTITLES).length&&(this.tech_.trigger({type:"usage",name:"vhs-webvtt"}),this.tech_.trigger({type:"usage",name:"hls-webvtt"})),Eo.Playlist.isAes(i)&&(this.tech_.trigger({type:"usage",name:"vhs-aes"}),this.tech_.trigger({type:"usage",name:"hls-aes"})),l.length&&Object.keys(o.AUDIO[l[0]]).length>1&&(this.tech_.trigger({type:"usage",name:"vhs-alternate-audio"}),this.tech_.trigger({type:"usage",name:"hls-alternate-audio"})),this.useCueTags_&&(this.tech_.trigger({type:"usage",name:"vhs-playlist-cue-tags"}),this.tech_.trigger({type:"usage",name:"hls-playlist-cue-tags"}))},n.shouldSwitchToMedia_=function(a){var i=this.masterPlaylistLoader_.media()||this.masterPlaylistLoader_.pendingMedia_,o=this.tech_.currentTime(),s=this.bufferLowWaterLine(),l=this.bufferHighWaterLine(),u=this.tech_.buffered();return X2e({buffered:u,currentTime:o,currentPlaylist:i,nextPlaylist:a,bufferLowWaterLine:s,bufferHighWaterLine:l,duration:this.duration(),experimentalBufferBasedABR:this.experimentalBufferBasedABR,log:this.logger_})},n.setupSegmentLoaderListeners_=function(){var a=this;this.mainSegmentLoader_.on("bandwidthupdate",function(){a.checkABR_("bandwidthupdate"),a.tech_.trigger("bandwidthupdate")}),this.mainSegmentLoader_.on("timeout",function(){a.experimentalBufferBasedABR&&a.mainSegmentLoader_.load()}),this.experimentalBufferBasedABR||this.mainSegmentLoader_.on("progress",function(){a.trigger("progress")}),this.mainSegmentLoader_.on("error",function(){a.blacklistCurrentPlaylist(a.mainSegmentLoader_.error())}),this.mainSegmentLoader_.on("appenderror",function(){a.error=a.mainSegmentLoader_.error_,a.trigger("error")}),this.mainSegmentLoader_.on("syncinfoupdate",function(){a.onSyncInfoUpdate_()}),this.mainSegmentLoader_.on("timestampoffset",function(){a.tech_.trigger({type:"usage",name:"vhs-timestamp-offset"}),a.tech_.trigger({type:"usage",name:"hls-timestamp-offset"})}),this.audioSegmentLoader_.on("syncinfoupdate",function(){a.onSyncInfoUpdate_()}),this.audioSegmentLoader_.on("appenderror",function(){a.error=a.audioSegmentLoader_.error_,a.trigger("error")}),this.mainSegmentLoader_.on("ended",function(){a.logger_("main segment loader ended"),a.onEndOfStream()}),this.mainSegmentLoader_.on("earlyabort",function(o){a.experimentalBufferBasedABR||(a.delegateLoaders_("all",["abort"]),a.blacklistCurrentPlaylist({message:"Aborted early because there isn't enough bandwidth to complete the request without rebuffering."},q2e))});var i=function(){if(!a.sourceUpdater_.hasCreatedSourceBuffers())return a.tryToCreateSourceBuffers_();var s=a.getCodecsOrExclude_();s&&a.sourceUpdater_.addOrChangeSourceBuffers(s)};this.mainSegmentLoader_.on("trackinfo",i),this.audioSegmentLoader_.on("trackinfo",i),this.mainSegmentLoader_.on("fmp4",function(){a.triggeredFmp4Usage||(a.tech_.trigger({type:"usage",name:"vhs-fmp4"}),a.tech_.trigger({type:"usage",name:"hls-fmp4"}),a.triggeredFmp4Usage=!0)}),this.audioSegmentLoader_.on("fmp4",function(){a.triggeredFmp4Usage||(a.tech_.trigger({type:"usage",name:"vhs-fmp4"}),a.tech_.trigger({type:"usage",name:"hls-fmp4"}),a.triggeredFmp4Usage=!0)}),this.audioSegmentLoader_.on("ended",function(){a.logger_("audioSegmentLoader ended"),a.onEndOfStream()})},n.mediaSecondsLoaded_=function(){return Math.max(this.audioSegmentLoader_.mediaSecondsLoaded+this.mainSegmentLoader_.mediaSecondsLoaded)},n.load=function(){this.mainSegmentLoader_.load(),this.mediaTypes_.AUDIO.activePlaylistLoader&&this.audioSegmentLoader_.load(),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&this.subtitleSegmentLoader_.load()},n.smoothQualityChange_=function(a){a===void 0&&(a=this.selectPlaylist()),this.fastQualityChange_(a)},n.fastQualityChange_=function(a){var i=this;if(a===void 0&&(a=this.selectPlaylist()),a===this.masterPlaylistLoader_.media()){this.logger_("skipping fastQualityChange because new media is same as old");return}this.switchMedia_(a,"fast-quality"),this.mainSegmentLoader_.resetEverything(function(){Ne.browser.IE_VERSION||Ne.browser.IS_EDGE?i.tech_.setCurrentTime(i.tech_.currentTime()+.04):i.tech_.setCurrentTime(i.tech_.currentTime())})},n.play=function(){if(!this.setupFirstPlay()){this.tech_.ended()&&this.tech_.setCurrentTime(0),this.hasPlayed_&&this.load();var a=this.tech_.seekable();if(this.tech_.duration()===1/0&&this.tech_.currentTime()<a.start(0))return this.tech_.setCurrentTime(a.end(a.length-1))}},n.setupFirstPlay=function(){var a=this,i=this.masterPlaylistLoader_.media();if(!i||this.tech_.paused()||this.hasPlayed_)return!1;if(!i.endList){var o=this.seekable();if(!o.length)return!1;if(Ne.browser.IE_VERSION&&this.tech_.readyState()===0)return this.tech_.one("loadedmetadata",function(){a.trigger("firstplay"),a.tech_.setCurrentTime(o.end(0)),a.hasPlayed_=!0}),!1;this.trigger("firstplay"),this.tech_.setCurrentTime(o.end(0))}return this.hasPlayed_=!0,this.load(),!0},n.handleSourceOpen_=function(){if(this.tryToCreateSourceBuffers_(),this.tech_.autoplay()){var a=this.tech_.play();typeof a<"u"&&typeof a.then=="function"&&a.then(null,function(i){})}this.trigger("sourceopen")},n.handleSourceEnded_=function(){if(this.inbandTextTracks_.metadataTrack_){var a=this.inbandTextTracks_.metadataTrack_.cues;if(!(!a||!a.length)){var i=this.duration();a[a.length-1].endTime=isNaN(i)||Math.abs(i)===1/0?Number.MAX_VALUE:i}}},n.handleDurationChange_=function(){this.tech_.trigger("durationchange")},n.onEndOfStream=function(){var a=this.mainSegmentLoader_.ended_;if(this.mediaTypes_.AUDIO.activePlaylistLoader){var i=this.mainSegmentLoader_.getCurrentMediaInfo_();!i||i.hasVideo?a=a&&this.audioSegmentLoader_.ended_:a=this.audioSegmentLoader_.ended_}a&&(this.stopABRTimer_(),this.sourceUpdater_.endOfStream())},n.stuckAtPlaylistEnd_=function(a){var i=this.seekable();if(!i.length)return!1;var o=this.syncController_.getExpiredTime(a,this.duration());if(o===null)return!1;var s=Eo.Playlist.playlistEnd(a,o),l=this.tech_.currentTime(),u=this.tech_.buffered();if(!u.length)return s-l<=Gi;var c=u.end(u.length-1);return c-l<=Gi&&s-c<=Gi},n.blacklistCurrentPlaylist=function(a,i){a===void 0&&(a={});var o=a.playlist||this.masterPlaylistLoader_.media();if(i=i||a.blacklistDuration||this.blacklistDuration,!o){this.error=a,this.mediaSource.readyState!=="open"?this.trigger("error"):this.sourceUpdater_.endOfStream("network");return}o.playlistErrors_++;var s=this.masterPlaylistLoader_.master.playlists,l=s.filter(Og),u=l.length===1&&l[0]===o;if(s.length===1&&i!==1/0)return Ne.log.warn("Problem encountered with playlist "+o.id+". Trying again since it is the only playlist."),this.tech_.trigger("retryplaylist"),this.masterPlaylistLoader_.load(u);if(u){var c=!1;s.forEach(function(y){if(y!==o){var T=y.excludeUntil;typeof T<"u"&&T!==1/0&&(c=!0,delete y.excludeUntil)}}),c&&(Ne.log.warn("Removing other playlists from the exclusion list because the last rendition is about to be excluded."),this.tech_.trigger("retryplaylist"))}var d;o.playlistErrors_>this.maxPlaylistRetries?d=1/0:d=Date.now()+i*1e3,o.excludeUntil=d,a.reason&&(o.lastExcludeReason_=a.reason),this.tech_.trigger("blacklistplaylist"),this.tech_.trigger({type:"usage",name:"vhs-rendition-blacklisted"}),this.tech_.trigger({type:"usage",name:"hls-rendition-blacklisted"});var p=this.selectPlaylist();if(!p){this.error="Playback cannot continue. No available working or supported playlists.",this.trigger("error");return}var h=a.internal?this.logger_:Ne.log.warn,v=a.message?" "+a.message:"";h((a.internal?"Internal problem":"Problem")+" encountered with playlist "+o.id+"."+(v+" Switching to playlist "+p.id+".")),p.attributes.AUDIO!==o.attributes.AUDIO&&this.delegateLoaders_("audio",["abort","pause"]),p.attributes.SUBTITLES!==o.attributes.SUBTITLES&&this.delegateLoaders_("subtitle",["abort","pause"]),this.delegateLoaders_("main",["abort","pause"]);var m=p.targetDuration/2*1e3||5*1e3,g=typeof p.lastRequest=="number"&&Date.now()-p.lastRequest<=m;return this.switchMedia_(p,"exclude",u||g)},n.pauseLoading=function(){this.delegateLoaders_("all",["abort","pause"]),this.stopABRTimer_()},n.delegateLoaders_=function(a,i){var o=this,s=[],l=a==="all";(l||a==="main")&&s.push(this.masterPlaylistLoader_);var u=[];(l||a==="audio")&&u.push("AUDIO"),(l||a==="subtitle")&&(u.push("CLOSED-CAPTIONS"),u.push("SUBTITLES")),u.forEach(function(c){var d=o.mediaTypes_[c]&&o.mediaTypes_[c].activePlaylistLoader;d&&s.push(d)}),["main","audio","subtitle"].forEach(function(c){var d=o[c+"SegmentLoader_"];d&&(a===c||a==="all")&&s.push(d)}),s.forEach(function(c){return i.forEach(function(d){typeof c[d]=="function"&&c[d]()})})},n.setCurrentTime=function(a){var i=Du(this.tech_.buffered(),a);if(!(this.masterPlaylistLoader_&&this.masterPlaylistLoader_.media())||!this.masterPlaylistLoader_.media().segments)return 0;if(i&&i.length)return a;this.mainSegmentLoader_.resetEverything(),this.mainSegmentLoader_.abort(),this.mediaTypes_.AUDIO.activePlaylistLoader&&(this.audioSegmentLoader_.resetEverything(),this.audioSegmentLoader_.abort()),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&(this.subtitleSegmentLoader_.resetEverything(),this.subtitleSegmentLoader_.abort()),this.load()},n.duration=function(){if(!this.masterPlaylistLoader_)return 0;var a=this.masterPlaylistLoader_.media();return a?a.endList?this.mediaSource?this.mediaSource.duration:Eo.Playlist.duration(a):1/0:0},n.seekable=function(){return this.seekable_},n.onSyncInfoUpdate_=function(){var a;if(this.masterPlaylistLoader_){var i=this.masterPlaylistLoader_.media();if(i){var o=this.syncController_.getExpiredTime(i,this.duration());if(o!==null){var s=this.masterPlaylistLoader_.master,l=Eo.Playlist.seekable(i,o,Eo.Playlist.liveEdgeDelay(s,i));if(l.length!==0&&!(this.mediaTypes_.AUDIO.activePlaylistLoader&&(i=this.mediaTypes_.AUDIO.activePlaylistLoader.media(),o=this.syncController_.getExpiredTime(i,this.duration()),o===null||(a=Eo.Playlist.seekable(i,o,Eo.Playlist.liveEdgeDelay(s,i)),a.length===0)))){var u,c;this.seekable_&&this.seekable_.length&&(u=this.seekable_.end(0),c=this.seekable_.start(0)),a?a.start(0)>l.end(0)||l.start(0)>a.end(0)?this.seekable_=l:this.seekable_=Ne.createTimeRanges([[a.start(0)>l.start(0)?a.start(0):l.start(0),a.end(0)<l.end(0)?a.end(0):l.end(0)]]):this.seekable_=l,!(this.seekable_&&this.seekable_.length&&this.seekable_.end(0)===u&&this.seekable_.start(0)===c)&&(this.logger_("seekable updated ["+XL(this.seekable_)+"]"),this.tech_.trigger("seekablechanged"))}}}}},n.updateDuration=function(a){if(this.updateDuration_&&(this.mediaSource.removeEventListener("sourceopen",this.updateDuration_),this.updateDuration_=null),this.mediaSource.readyState!=="open"){this.updateDuration_=this.updateDuration.bind(this,a),this.mediaSource.addEventListener("sourceopen",this.updateDuration_);return}if(a){var i=this.seekable();if(!i.length)return;(isNaN(this.mediaSource.duration)||this.mediaSource.duration<i.end(i.length-1))&&this.sourceUpdater_.setDuration(i.end(i.length-1));return}var o=this.tech_.buffered(),s=Eo.Playlist.duration(this.masterPlaylistLoader_.media());o.length>0&&(s=Math.max(s,o.end(o.length-1))),this.mediaSource.duration!==s&&this.sourceUpdater_.setDuration(s)},n.dispose=function(){var a=this;this.trigger("dispose"),this.decrypter_.terminate(),this.masterPlaylistLoader_.dispose(),this.mainSegmentLoader_.dispose(),this.loadOnPlay_&&this.tech_.off("play",this.loadOnPlay_),["AUDIO","SUBTITLES"].forEach(function(i){var o=a.mediaTypes_[i].groups;for(var s in o)o[s].forEach(function(l){l.playlistLoader&&l.playlistLoader.dispose()})}),this.audioSegmentLoader_.dispose(),this.subtitleSegmentLoader_.dispose(),this.sourceUpdater_.dispose(),this.timelineChangeController_.dispose(),this.stopABRTimer_(),this.updateDuration_&&this.mediaSource.removeEventListener("sourceopen",this.updateDuration_),this.mediaSource.removeEventListener("durationchange",this.handleDurationChange_),this.mediaSource.removeEventListener("sourceopen",this.handleSourceOpen_),this.mediaSource.removeEventListener("sourceended",this.handleSourceEnded_),this.off()},n.master=function(){return this.masterPlaylistLoader_.master},n.media=function(){return this.masterPlaylistLoader_.media()||this.initialMedia_},n.areMediaTypesKnown_=function(){var a=!!this.mediaTypes_.AUDIO.activePlaylistLoader,i=!!this.mainSegmentLoader_.getCurrentMediaInfo_(),o=a?!!this.audioSegmentLoader_.getCurrentMediaInfo_():!0;return!(!i||!o)},n.getCodecsOrExclude_=function(){var a=this,i={main:this.mainSegmentLoader_.getCurrentMediaInfo_()||{},audio:this.audioSegmentLoader_.getCurrentMediaInfo_()||{}},o=this.mainSegmentLoader_.getPendingSegmentPlaylist()||this.media();i.video=i.main;var s=nf(this.master(),o),l={},u=!!this.mediaTypes_.AUDIO.activePlaylistLoader;if(i.main.hasVideo&&(l.video=s.video||i.main.videoCodec||b0e),i.main.isMuxed&&(l.video+=","+(s.audio||i.main.audioCodec||Hx)),(i.main.hasAudio&&!i.main.isMuxed||i.audio.hasAudio||u)&&(l.audio=s.audio||i.main.audioCodec||i.audio.audioCodec||Hx,i.audio.isFmp4=i.main.hasAudio&&!i.main.isMuxed?i.main.isFmp4:i.audio.isFmp4),!l.audio&&!l.video){this.blacklistCurrentPlaylist({playlist:o,message:"Could not determine codecs for playlist.",blacklistDuration:1/0});return}var c=function(y,T){return y?tm(T):V0(T)},d={},p;if(["video","audio"].forEach(function(g){if(l.hasOwnProperty(g)&&!c(i[g].isFmp4,l[g])){var y=i[g].isFmp4?"browser":"muxer";d[y]=d[y]||[],d[y].push(l[g]),g==="audio"&&(p=y)}}),u&&p&&o.attributes.AUDIO){var h=o.attributes.AUDIO;this.master().playlists.forEach(function(g){var y=g.attributes&&g.attributes.AUDIO;y===h&&g!==o&&(g.excludeUntil=1/0)}),this.logger_("excluding audio group "+h+" as "+p+' does not support codec(s): "'+l.audio+'"')}if(Object.keys(d).length){var v=Object.keys(d).reduce(function(g,y){return g&&(g+=", "),g+=y+' does not support codec(s): "'+d[y].join(",")+'"',g},"")+".";this.blacklistCurrentPlaylist({playlist:o,internal:!0,message:v,blacklistDuration:1/0});return}if(this.sourceUpdater_.hasCreatedSourceBuffers()&&!this.sourceUpdater_.canChangeType()){var m=[];if(["video","audio"].forEach(function(g){var y=(Hi(a.sourceUpdater_.codecs[g]||"")[0]||{}).type,T=(Hi(l[g]||"")[0]||{}).type;y&&T&&y.toLowerCase()!==T.toLowerCase()&&m.push('"'+a.sourceUpdater_.codecs[g]+'" -> "'+l[g]+'"')}),m.length){this.blacklistCurrentPlaylist({playlist:o,message:"Codec switching not supported: "+m.join(", ")+".",blacklistDuration:1/0,internal:!0});return}}return l},n.tryToCreateSourceBuffers_=function(){if(!(this.mediaSource.readyState!=="open"||this.sourceUpdater_.hasCreatedSourceBuffers())&&this.areMediaTypesKnown_()){var a=this.getCodecsOrExclude_();if(a){this.sourceUpdater_.createSourceBuffers(a);var i=[a.video,a.audio].filter(Boolean).join(",");this.excludeIncompatibleVariants_(i)}}},n.excludeUnsupportedVariants_=function(){var a=this,i=this.master().playlists,o=[];Object.keys(i).forEach(function(s){var l=i[s];if(o.indexOf(l.id)===-1){o.push(l.id);var u=nf(a.master,l),c=[];u.audio&&!V0(u.audio)&&!tm(u.audio)&&c.push("audio codec "+u.audio),u.video&&!V0(u.video)&&!tm(u.video)&&c.push("video codec "+u.video),u.text&&u.text==="stpp.ttml.im1t"&&c.push("text codec "+u.text),c.length&&(l.excludeUntil=1/0,a.logger_("excluding "+l.id+" for unsupported: "+c.join(", ")))}})},n.excludeIncompatibleVariants_=function(a){var i=this,o=[],s=this.master().playlists,l=uv(Hi(a)),u=Gk(l),c=l.video&&Hi(l.video)[0]||null,d=l.audio&&Hi(l.audio)[0]||null;Object.keys(s).forEach(function(p){var h=s[p];if(!(o.indexOf(h.id)!==-1||h.excludeUntil===1/0)){o.push(h.id);var v=[],m=nf(i.masterPlaylistLoader_.master,h),g=Gk(m);if(!(!m.audio&&!m.video)){if(g!==u&&v.push('codec count "'+g+'" !== "'+u+'"'),!i.sourceUpdater_.canChangeType()){var y=m.video&&Hi(m.video)[0]||null,T=m.audio&&Hi(m.audio)[0]||null;y&&c&&y.type.toLowerCase()!==c.type.toLowerCase()&&v.push('video codec "'+y.type+'" !== "'+c.type+'"'),T&&d&&T.type.toLowerCase()!==d.type.toLowerCase()&&v.push('audio codec "'+T.type+'" !== "'+d.type+'"')}v.length&&(h.excludeUntil=1/0,i.logger_("blacklisting "+h.id+": "+v.join(" && ")))}}})},n.updateAdCues_=function(a){var i=0,o=this.seekable();o.length&&(i=o.start(0)),I2e(a,this.cueTagsTrack_,i)},n.goalBufferLength=function(){var a=this.tech_.currentTime(),i=yr.GOAL_BUFFER_LENGTH,o=yr.GOAL_BUFFER_LENGTH_RATE,s=Math.max(i,yr.MAX_GOAL_BUFFER_LENGTH);return Math.min(i+a*o,s)},n.bufferLowWaterLine=function(){var a=this.tech_.currentTime(),i=yr.BUFFER_LOW_WATER_LINE,o=yr.BUFFER_LOW_WATER_LINE_RATE,s=Math.max(i,yr.MAX_BUFFER_LOW_WATER_LINE),l=Math.max(i,yr.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE);return Math.min(i+a*o,this.experimentalBufferBasedABR?l:s)},n.bufferHighWaterLine=function(){return yr.BUFFER_HIGH_WATER_LINE},t}(Ne.EventTarget),J2e=function(t,n,r){return function(a){var i=t.master.playlists[n],o=KT(i),s=Og(i);return typeof a>"u"?s:(a?delete i.disabled:i.disabled=!0,a!==s&&!o&&(r(),a?t.trigger("renditionenabled"):t.trigger("renditiondisabled")),a)}},Z2e=function(t,n,r){var a=t.masterPlaylistController_,i=t.options_.smoothQualityChange,o=i?"smooth":"fast",s=a[o+"QualityChange_"].bind(a);if(n.attributes){var l=n.attributes.RESOLUTION;this.width=l&&l.width,this.height=l&&l.height,this.bandwidth=n.attributes.BANDWIDTH,this.frameRate=n.attributes["FRAME-RATE"]}this.codecs=nf(a.master(),n),this.playlist=n,this.id=r,this.enabled=J2e(t.playlists,n.id,s)},eTe=function(t){t.representations=function(){var n=t.masterPlaylistController_.master(),r=Rp(n)?t.masterPlaylistController_.getAudioTrackPlaylists_():n.playlists;return r?r.filter(function(a){return!KT(a)}).map(function(a,i){return new Z2e(t,a,a.id)}):[]}},oA=["seeking","seeked","pause","playing","error"],tTe=function(){function e(n){var r=this;this.masterPlaylistController_=n.masterPlaylistController,this.tech_=n.tech,this.seekable=n.seekable,this.allowSeeksWithinUnsafeLiveWindow=n.allowSeeksWithinUnsafeLiveWindow,this.liveRangeSafeTimeDelta=n.liveRangeSafeTimeDelta,this.media=n.media,this.consecutiveUpdates=0,this.lastRecordedTime=null,this.timer_=null,this.checkCurrentTimeTimeout_=null,this.logger_=Li("PlaybackWatcher"),this.logger_("initialize");var a=function(){return r.monitorCurrentTime_()},i=function(){return r.monitorCurrentTime_()},o=function(){return r.techWaiting_()},s=function(){return r.cancelTimer_()},l=this.masterPlaylistController_,u=["main","subtitle","audio"],c={};u.forEach(function(p){c[p]={reset:function(){return r.resetSegmentDownloads_(p)},updateend:function(){return r.checkSegmentDownloads_(p)}},l[p+"SegmentLoader_"].on("appendsdone",c[p].updateend),l[p+"SegmentLoader_"].on("playlistupdate",c[p].reset),r.tech_.on(["seeked","seeking"],c[p].reset)});var d=function(h){["main","audio"].forEach(function(v){l[v+"SegmentLoader_"][h]("appended",r.seekingAppendCheck_)})};this.seekingAppendCheck_=function(){r.fixesBadSeeks_()&&(r.consecutiveUpdates=0,r.lastRecordedTime=r.tech_.currentTime(),d("off"))},this.clearSeekingAppendCheck_=function(){return d("off")},this.watchForBadSeeking_=function(){r.clearSeekingAppendCheck_(),d("on")},this.tech_.on("seeked",this.clearSeekingAppendCheck_),this.tech_.on("seeking",this.watchForBadSeeking_),this.tech_.on("waiting",o),this.tech_.on(oA,s),this.tech_.on("canplay",i),this.tech_.one("play",a),this.dispose=function(){r.clearSeekingAppendCheck_(),r.logger_("dispose"),r.tech_.off("waiting",o),r.tech_.off(oA,s),r.tech_.off("canplay",i),r.tech_.off("play",a),r.tech_.off("seeking",r.watchForBadSeeking_),r.tech_.off("seeked",r.clearSeekingAppendCheck_),u.forEach(function(p){l[p+"SegmentLoader_"].off("appendsdone",c[p].updateend),l[p+"SegmentLoader_"].off("playlistupdate",c[p].reset),r.tech_.off(["seeked","seeking"],c[p].reset)}),r.checkCurrentTimeTimeout_&&Te.clearTimeout(r.checkCurrentTimeTimeout_),r.cancelTimer_()}}var t=e.prototype;return t.monitorCurrentTime_=function(){this.checkCurrentTime_(),this.checkCurrentTimeTimeout_&&Te.clearTimeout(this.checkCurrentTimeTimeout_),this.checkCurrentTimeTimeout_=Te.setTimeout(this.monitorCurrentTime_.bind(this),250)},t.resetSegmentDownloads_=function(r){var a=this.masterPlaylistController_[r+"SegmentLoader_"];this[r+"StalledDownloads_"]>0&&this.logger_("resetting possible stalled download count for "+r+" loader"),this[r+"StalledDownloads_"]=0,this[r+"Buffered_"]=a.buffered_()},t.checkSegmentDownloads_=function(r){var a=this.masterPlaylistController_,i=a[r+"SegmentLoader_"],o=i.buffered_(),s=K_e(this[r+"Buffered_"],o);if(this[r+"Buffered_"]=o,s){this.resetSegmentDownloads_(r);return}this[r+"StalledDownloads_"]++,this.logger_("found #"+this[r+"StalledDownloads_"]+" "+r+" appends that did not increase buffer (possible stalled download)",{playlistId:i.playlist_&&i.playlist_.id,buffered:_l(o)}),!(this[r+"StalledDownloads_"]<10)&&(this.logger_(r+" loader stalled download exclusion"),this.resetSegmentDownloads_(r),this.tech_.trigger({type:"usage",name:"vhs-"+r+"-download-exclusion"}),r!=="subtitle"&&a.blacklistCurrentPlaylist({message:"Excessive "+r+" segment downloading detected."},1/0))},t.checkCurrentTime_=function(){if(!(this.tech_.paused()||this.tech_.seeking())){var r=this.tech_.currentTime(),a=this.tech_.buffered();if(this.lastRecordedTime===r&&(!a.length||r+Gi>=a.end(a.length-1)))return this.techWaiting_();this.consecutiveUpdates>=5&&r===this.lastRecordedTime?(this.consecutiveUpdates++,this.waiting_()):r===this.lastRecordedTime?this.consecutiveUpdates++:(this.consecutiveUpdates=0,this.lastRecordedTime=r)}},t.cancelTimer_=function(){this.consecutiveUpdates=0,this.timer_&&(this.logger_("cancelTimer_"),clearTimeout(this.timer_)),this.timer_=null},t.fixesBadSeeks_=function(){var r=this.tech_.seeking();if(!r)return!1;var a=this.seekable(),i=this.tech_.currentTime(),o=this.afterSeekableWindow_(a,i,this.media(),this.allowSeeksWithinUnsafeLiveWindow),s;if(o){var l=a.end(a.length-1);s=l}if(this.beforeSeekableWindow_(a,i)){var u=a.start(0);s=u+(u===a.end(0)?0:Gi)}if(typeof s<"u")return this.logger_("Trying to seek outside of seekable at time "+i+" with "+("seekable range "+XL(a)+". Seeking to ")+(s+".")),this.tech_.setCurrentTime(s),!0;for(var c=this.masterPlaylistController_.sourceUpdater_,d=this.tech_.buffered(),p=c.audioBuffer?c.audioBuffered():null,h=c.videoBuffer?c.videoBuffered():null,v=this.media(),m=v.partTargetDuration?v.partTargetDuration:(v.targetDuration-Vs)*2,g=[p,h],y=0;y<g.length;y++)if(g[y]){var T=jT(g[y],i);if(T<m)return!1}var b=Eh(d,i);return b.length===0?!1:(s=b.start(0)+Gi,this.logger_("Buffered region starts ("+b.start(0)+") "+(" just beyond seek point ("+i+"). Seeking to "+s+".")),this.tech_.setCurrentTime(s),!0)},t.waiting_=function(){if(!this.techWaiting_()){var r=this.tech_.currentTime(),a=this.tech_.buffered(),i=Du(a,r);if(i.length&&r+3<=i.end(0)){this.cancelTimer_(),this.tech_.setCurrentTime(r),this.logger_("Stopped at "+r+" while inside a buffered region "+("["+i.start(0)+" -> "+i.end(0)+"]. Attempting to resume ")+"playback by seeking to the current time."),this.tech_.trigger({type:"usage",name:"vhs-unknown-waiting"}),this.tech_.trigger({type:"usage",name:"hls-unknown-waiting"});return}}},t.techWaiting_=function(){var r=this.seekable(),a=this.tech_.currentTime();if(this.tech_.seeking()||this.timer_!==null)return!0;if(this.beforeSeekableWindow_(r,a)){var i=r.end(r.length-1);return this.logger_("Fell out of live window at time "+a+". Seeking to "+("live point (seekable end) "+i)),this.cancelTimer_(),this.tech_.setCurrentTime(i),this.tech_.trigger({type:"usage",name:"vhs-live-resync"}),this.tech_.trigger({type:"usage",name:"hls-live-resync"}),!0}var o=this.tech_.vhs.masterPlaylistController_.sourceUpdater_,s=this.tech_.buffered(),l=this.videoUnderflow_({audioBuffered:o.audioBuffered(),videoBuffered:o.videoBuffered(),currentTime:a});if(l)return this.cancelTimer_(),this.tech_.setCurrentTime(a),this.tech_.trigger({type:"usage",name:"vhs-video-underflow"}),this.tech_.trigger({type:"usage",name:"hls-video-underflow"}),!0;var u=Eh(s,a);if(u.length>0){var c=u.start(0)-a;return this.logger_("Stopped at "+a+", setting timer for "+c+", seeking "+("to "+u.start(0))),this.cancelTimer_(),this.timer_=setTimeout(this.skipTheGap_.bind(this),c*1e3,a),!0}return!1},t.afterSeekableWindow_=function(r,a,i,o){if(o===void 0&&(o=!1),!r.length)return!1;var s=r.end(r.length-1)+Gi,l=!i.endList;return l&&o&&(s=r.end(r.length-1)+i.targetDuration*3),a>s},t.beforeSeekableWindow_=function(r,a){return!!(r.length&&r.start(0)>0&&a<r.start(0)-this.liveRangeSafeTimeDelta)},t.videoUnderflow_=function(r){var a=r.videoBuffered,i=r.audioBuffered,o=r.currentTime;if(a){var s;if(a.length&&i.length){var l=Du(a,o-3),u=Du(a,o),c=Du(i,o);c.length&&!u.length&&l.length&&(s={start:l.end(0),end:c.end(0)})}else{var d=Eh(a,o);d.length||(s=this.gapFromVideoUnderflow_(a,o))}return s?(this.logger_("Encountered a gap in video from "+s.start+" to "+s.end+". "+("Seeking to current time "+o)),!0):!1}},t.skipTheGap_=function(r){var a=this.tech_.buffered(),i=this.tech_.currentTime(),o=Eh(a,i);this.cancelTimer_(),!(o.length===0||i!==r)&&(this.logger_("skipTheGap_:","currentTime:",i,"scheduled currentTime:",r,"nextRange start:",o.start(0)),this.tech_.setCurrentTime(o.start(0)+Vs),this.tech_.trigger({type:"usage",name:"vhs-gap-skip"}),this.tech_.trigger({type:"usage",name:"hls-gap-skip"}))},t.gapFromVideoUnderflow_=function(r,a){for(var i=z_e(r),o=0;o<i.length;o++){var s=i.start(o),l=i.end(o);if(a-s<4&&a-s>2)return{start:s,end:l}}return null},e}(),nTe={errorInterval:30,getSource:function(t){var n=this.tech({IWillNotUseThisInPlugins:!0}),r=n.currentSource_||this.currentSource();return t(r)}},rTe=function e(t,n){var r=0,a=0,i=Ne.mergeOptions(nTe,n);t.ready(function(){t.trigger({type:"usage",name:"vhs-error-reload-initialized"}),t.trigger({type:"usage",name:"hls-error-reload-initialized"})});var o=function(){a&&t.currentTime(a)},s=function(p){p!=null&&(a=t.duration()!==1/0&&t.currentTime()||0,t.one("loadedmetadata",o),t.src(p),t.trigger({type:"usage",name:"vhs-error-reload"}),t.trigger({type:"usage",name:"hls-error-reload"}),t.play())},l=function(){if(Date.now()-r<i.errorInterval*1e3){t.trigger({type:"usage",name:"vhs-error-reload-canceled"}),t.trigger({type:"usage",name:"hls-error-reload-canceled"});return}if(!i.getSource||typeof i.getSource!="function"){Ne.log.error("ERROR: reloadSourceOnError - The option getSource must be a function!");return}return r=Date.now(),i.getSource.call(t,s)},u=function d(){t.off("loadedmetadata",o),t.off("error",l),t.off("dispose",d)},c=function(p){u(),e(t,p)};t.on("error",l),t.on("dispose",u),t.reloadSourceOnError=c},aTe=function(t){rTe(this,t)},RN="2.16.3",iTe="6.0.1",oTe="0.22.1",sTe="4.8.0",lTe="3.1.3",Ir={PlaylistLoader:Iu,Playlist:ya,utils:g1e,STANDARD_PLAYLIST_SELECTOR:Xk,INITIAL_PLAYLIST_SELECTOR:o2e,lastBandwidthSelector:Xk,movingAverageBandwidthSelector:a2e,comparePlaylistBandwidth:XT,comparePlaylistResolution:r2e,xhr:dN()};Object.keys(yr).forEach(function(e){Object.defineProperty(Ir,e,{get:function(){return Ne.log.warn("using Vhs."+e+" is UNSAFE be sure you know what you are doing"),yr[e]},set:function(n){if(Ne.log.warn("using Vhs."+e+" is UNSAFE be sure you know what you are doing"),typeof n!="number"||n<0){Ne.log.warn("value of Vhs."+e+" must be greater than or equal to 0");return}yr[e]=n}})});var LN="videojs-vhs",NN=function(t,n){for(var r=n.media(),a=-1,i=0;i<t.length;i++)if(t[i].id===r.id){a=i;break}t.selectedIndex_=a,t.trigger({selectedIndex:a,type:"change"})},uTe=function(t,n){n.representations().forEach(function(r){t.addQualityLevel(r)}),NN(t,n.playlists)};Ir.canPlaySource=function(){return Ne.log.warn("HLS is no longer a tech. Please remove it from your player's techOrder.")};var cTe=function(t,n,r){if(!t)return t;var a={};n&&n.attributes&&n.attributes.CODECS&&(a=uv(Hi(n.attributes.CODECS))),r&&r.attributes&&r.attributes.CODECS&&(a.audio=r.attributes.CODECS);var i=Vf(a.video),o=Vf(a.audio),s={};for(var l in t)s[l]={},o&&(s[l].audioContentType=o),i&&(s[l].videoContentType=i),n.contentProtection&&n.contentProtection[l]&&n.contentProtection[l].pssh&&(s[l].pssh=n.contentProtection[l].pssh),typeof t[l]=="string"&&(s[l].url=t[l]);return Ne.mergeOptions(t,s)},dTe=function(t,n){return t.reduce(function(r,a){if(!a.contentProtection)return r;var i=n.reduce(function(o,s){var l=a.contentProtection[s];return l&&l.pssh&&(o[s]={pssh:l.pssh}),o},{});return Object.keys(i).length&&r.push(i),r},[])},fTe=function(t){var n=t.player,r=t.sourceKeySystems,a=t.audioMedia,i=t.mainPlaylists;if(!n.eme.initializeMediaKeys)return Promise.resolve();var o=a?i.concat([a]):i,s=dTe(o,Object.keys(r)),l=[],u=[];return s.forEach(function(c){u.push(new Promise(function(d,p){n.tech_.one("keysessioncreated",d)})),l.push(new Promise(function(d,p){n.eme.initializeMediaKeys({keySystems:c},function(h){if(h){p(h);return}d()})}))}),Promise.race([Promise.all(l),Promise.race(u)])},pTe=function(t){var n=t.player,r=t.sourceKeySystems,a=t.media,i=t.audioMedia,o=cTe(r,a,i);return o?(n.currentSource().keySystems=o,o&&!n.eme?(Ne.log.warn("DRM encrypted source cannot be decrypted without a DRM plugin"),!1):!0):!1},FN=function(){if(!Te.localStorage)return null;var t=Te.localStorage.getItem(LN);if(!t)return null;try{return JSON.parse(t)}catch{return null}},hTe=function(t){if(!Te.localStorage)return!1;var n=FN();n=n?Ne.mergeOptions(n,t):t;try{Te.localStorage.setItem(LN,JSON.stringify(n))}catch{return!1}return n},mTe=function(t){return t.toLowerCase().indexOf("data:application/vnd.videojs.vhs+json,")===0?JSON.parse(t.substring(t.indexOf(",")+1)):t};Ir.supportsNativeHls=function(){if(!vt||!vt.createElement)return!1;var e=vt.createElement("video");if(!Ne.getTech("Html5").isSupported())return!1;var t=["application/vnd.apple.mpegurl","audio/mpegurl","audio/x-mpegurl","application/x-mpegurl","video/x-mpegurl","video/mpegurl","application/mpegurl"];return t.some(function(n){return/maybe|probably/i.test(e.canPlayType(n))})}();Ir.supportsNativeDash=function(){return!vt||!vt.createElement||!Ne.getTech("Html5").isSupported()?!1:/maybe|probably/i.test(vt.createElement("video").canPlayType("application/dash+xml"))}();Ir.supportsTypeNatively=function(e){return e==="hls"?Ir.supportsNativeHls:e==="dash"?Ir.supportsNativeDash:!1};Ir.isSupported=function(){return Ne.log.warn("HLS is no longer a tech. Please remove it from your player's techOrder.")};var vTe=Ne.getComponent("Component"),JT=function(e){Tt(t,e);function t(r,a,i){var o;if(o=e.call(this,a,Ne.mergeOptions(i.hls,i.vhs))||this,i.hls&&Object.keys(i.hls).length&&Ne.log.warn("Using hls options is deprecated. Please rename `hls` to `vhs` in your options object."),typeof i.initialBandwidth=="number"&&(o.options_.bandwidth=i.initialBandwidth),o.logger_=Li("VhsHandler"),a.options_&&a.options_.playerId){var s=Ne(a.options_.playerId);s.hasOwnProperty("hls")||Object.defineProperty(s,"hls",{get:function(){return Ne.log.warn("player.hls is deprecated. Use player.tech().vhs instead."),a.trigger({type:"usage",name:"hls-player-access"}),Qt(o)},configurable:!0}),s.hasOwnProperty("vhs")||Object.defineProperty(s,"vhs",{get:function(){return Ne.log.warn("player.vhs is deprecated. Use player.tech().vhs instead."),a.trigger({type:"usage",name:"vhs-player-access"}),Qt(o)},configurable:!0}),s.hasOwnProperty("dash")||Object.defineProperty(s,"dash",{get:function(){return Ne.log.warn("player.dash is deprecated. Use player.tech().vhs instead."),Qt(o)},configurable:!0}),o.player_=s}if(o.tech_=a,o.source_=r,o.stats={},o.ignoreNextSeekingEvent_=!1,o.setOptions_(),o.options_.overrideNative&&a.overrideNativeAudioTracks&&a.overrideNativeVideoTracks)a.overrideNativeAudioTracks(!0),a.overrideNativeVideoTracks(!0);else if(o.options_.overrideNative&&(a.featuresNativeVideoTracks||a.featuresNativeAudioTracks))throw new Error("Overriding native HLS requires emulated tracks. See https://git.io/vMpjB");return o.on(vt,["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(l){var u=vt.fullscreenElement||vt.webkitFullscreenElement||vt.mozFullScreenElement||vt.msFullscreenElement;u&&u.contains(o.tech_.el())?o.masterPlaylistController_.fastQualityChange_():o.masterPlaylistController_.checkABR_()}),o.on(o.tech_,"seeking",function(){if(this.ignoreNextSeekingEvent_){this.ignoreNextSeekingEvent_=!1;return}this.setCurrentTime(this.tech_.currentTime())}),o.on(o.tech_,"error",function(){this.tech_.error()&&this.masterPlaylistController_&&this.masterPlaylistController_.pauseLoading()}),o.on(o.tech_,"play",o.play),o}var n=t.prototype;return n.setOptions_=function(){var a=this;if(this.options_.withCredentials=this.options_.withCredentials||!1,this.options_.handleManifestRedirects=this.options_.handleManifestRedirects!==!1,this.options_.limitRenditionByPlayerDimensions=this.options_.limitRenditionByPlayerDimensions!==!1,this.options_.useDevicePixelRatio=this.options_.useDevicePixelRatio||!1,this.options_.smoothQualityChange=this.options_.smoothQualityChange||!1,this.options_.useBandwidthFromLocalStorage=typeof this.source_.useBandwidthFromLocalStorage<"u"?this.source_.useBandwidthFromLocalStorage:this.options_.useBandwidthFromLocalStorage||!1,this.options_.useNetworkInformationApi=this.options_.useNetworkInformationApi||!1,this.options_.useDtsForTimestampOffset=this.options_.useDtsForTimestampOffset||!1,this.options_.customTagParsers=this.options_.customTagParsers||[],this.options_.customTagMappers=this.options_.customTagMappers||[],this.options_.cacheEncryptionKeys=this.options_.cacheEncryptionKeys||!1,typeof this.options_.blacklistDuration!="number"&&(this.options_.blacklistDuration=5*60),typeof this.options_.bandwidth!="number"&&this.options_.useBandwidthFromLocalStorage){var i=FN();i&&i.bandwidth&&(this.options_.bandwidth=i.bandwidth,this.tech_.trigger({type:"usage",name:"vhs-bandwidth-from-local-storage"}),this.tech_.trigger({type:"usage",name:"hls-bandwidth-from-local-storage"})),i&&i.throughput&&(this.options_.throughput=i.throughput,this.tech_.trigger({type:"usage",name:"vhs-throughput-from-local-storage"}),this.tech_.trigger({type:"usage",name:"hls-throughput-from-local-storage"}))}typeof this.options_.bandwidth!="number"&&(this.options_.bandwidth=yr.INITIAL_BANDWIDTH),this.options_.enableLowInitialPlaylist=this.options_.enableLowInitialPlaylist&&this.options_.bandwidth===yr.INITIAL_BANDWIDTH,["withCredentials","useDevicePixelRatio","limitRenditionByPlayerDimensions","bandwidth","smoothQualityChange","customTagParsers","customTagMappers","handleManifestRedirects","cacheEncryptionKeys","playlistSelector","initialPlaylistSelector","experimentalBufferBasedABR","liveRangeSafeTimeDelta","experimentalLLHLS","useNetworkInformationApi","useDtsForTimestampOffset","experimentalExactManifestTimings","experimentalLeastPixelDiffSelector"].forEach(function(o){typeof a.source_[o]<"u"&&(a.options_[o]=a.source_[o])}),this.limitRenditionByPlayerDimensions=this.options_.limitRenditionByPlayerDimensions,this.useDevicePixelRatio=this.options_.useDevicePixelRatio},n.src=function(a,i){var o=this;if(a){this.setOptions_(),this.options_.src=mTe(this.source_.src),this.options_.tech=this.tech_,this.options_.externVhs=Ir,this.options_.sourceType=XM(i),this.options_.seekTo=function(u){o.tech_.setCurrentTime(u)},this.options_.smoothQualityChange&&Ne.log.warn("smoothQualityChange is deprecated and will be removed in the next major version"),this.masterPlaylistController_=new Q2e(this.options_);var s=Ne.mergeOptions({liveRangeSafeTimeDelta:Gi},this.options_,{seekable:function(){return o.seekable()},media:function(){return o.masterPlaylistController_.media()},masterPlaylistController:this.masterPlaylistController_});this.playbackWatcher_=new tTe(s),this.masterPlaylistController_.on("error",function(){var u=Ne.players[o.tech_.options_.playerId],c=o.masterPlaylistController_.error;typeof c=="object"&&!c.code?c.code=3:typeof c=="string"&&(c={message:c,code:3}),u.error(c)});var l=this.options_.experimentalBufferBasedABR?Ir.movingAverageBandwidthSelector(.55):Ir.STANDARD_PLAYLIST_SELECTOR;this.masterPlaylistController_.selectPlaylist=this.selectPlaylist?this.selectPlaylist.bind(this):l.bind(this),this.masterPlaylistController_.selectInitialPlaylist=Ir.INITIAL_PLAYLIST_SELECTOR.bind(this),this.playlists=this.masterPlaylistController_.masterPlaylistLoader_,this.mediaSource=this.masterPlaylistController_.mediaSource,Object.defineProperties(this,{selectPlaylist:{get:function(){return this.masterPlaylistController_.selectPlaylist},set:function(c){this.masterPlaylistController_.selectPlaylist=c.bind(this)}},throughput:{get:function(){return this.masterPlaylistController_.mainSegmentLoader_.throughput.rate},set:function(c){this.masterPlaylistController_.mainSegmentLoader_.throughput.rate=c,this.masterPlaylistController_.mainSegmentLoader_.throughput.count=1}},bandwidth:{get:function(){var c=this.masterPlaylistController_.mainSegmentLoader_.bandwidth,d=Te.navigator.connection||Te.navigator.mozConnection||Te.navigator.webkitConnection,p=1e7;if(this.options_.useNetworkInformationApi&&d){var h=d.downlink*1e3*1e3;h>=p&&c>=p?c=Math.max(c,h):c=h}return c},set:function(c){this.masterPlaylistController_.mainSegmentLoader_.bandwidth=c,this.masterPlaylistController_.mainSegmentLoader_.throughput={rate:0,count:0}}},systemBandwidth:{get:function(){var c=1/(this.bandwidth||1),d;this.throughput>0?d=1/this.throughput:d=0;var p=Math.floor(1/(c+d));return p},set:function(){Ne.log.error('The "systemBandwidth" property is read-only')}}}),this.options_.bandwidth&&(this.bandwidth=this.options_.bandwidth),this.options_.throughput&&(this.throughput=this.options_.throughput),Object.defineProperties(this.stats,{bandwidth:{get:function(){return o.bandwidth||0},enumerable:!0},mediaRequests:{get:function(){return o.masterPlaylistController_.mediaRequests_()||0},enumerable:!0},mediaRequestsAborted:{get:function(){return o.masterPlaylistController_.mediaRequestsAborted_()||0},enumerable:!0},mediaRequestsTimedout:{get:function(){return o.masterPlaylistController_.mediaRequestsTimedout_()||0},enumerable:!0},mediaRequestsErrored:{get:function(){return o.masterPlaylistController_.mediaRequestsErrored_()||0},enumerable:!0},mediaTransferDuration:{get:function(){return o.masterPlaylistController_.mediaTransferDuration_()||0},enumerable:!0},mediaBytesTransferred:{get:function(){return o.masterPlaylistController_.mediaBytesTransferred_()||0},enumerable:!0},mediaSecondsLoaded:{get:function(){return o.masterPlaylistController_.mediaSecondsLoaded_()||0},enumerable:!0},mediaAppends:{get:function(){return o.masterPlaylistController_.mediaAppends_()||0},enumerable:!0},mainAppendsToLoadedData:{get:function(){return o.masterPlaylistController_.mainAppendsToLoadedData_()||0},enumerable:!0},audioAppendsToLoadedData:{get:function(){return o.masterPlaylistController_.audioAppendsToLoadedData_()||0},enumerable:!0},appendsToLoadedData:{get:function(){return o.masterPlaylistController_.appendsToLoadedData_()||0},enumerable:!0},timeToLoadedData:{get:function(){return o.masterPlaylistController_.timeToLoadedData_()||0},enumerable:!0},buffered:{get:function(){return _l(o.tech_.buffered())},enumerable:!0},currentTime:{get:function(){return o.tech_.currentTime()},enumerable:!0},currentSource:{get:function(){return o.tech_.currentSource_},enumerable:!0},currentTech:{get:function(){return o.tech_.name_},enumerable:!0},duration:{get:function(){return o.tech_.duration()},enumerable:!0},master:{get:function(){return o.playlists.master},enumerable:!0},playerDimensions:{get:function(){return o.tech_.currentDimensions()},enumerable:!0},seekable:{get:function(){return _l(o.tech_.seekable())},enumerable:!0},timestamp:{get:function(){return Date.now()},enumerable:!0},videoPlaybackQuality:{get:function(){return o.tech_.getVideoPlaybackQuality()},enumerable:!0}}),this.tech_.one("canplay",this.masterPlaylistController_.setupFirstPlay.bind(this.masterPlaylistController_)),this.tech_.on("bandwidthupdate",function(){o.options_.useBandwidthFromLocalStorage&&hTe({bandwidth:o.bandwidth,throughput:Math.round(o.throughput)})}),this.masterPlaylistController_.on("selectedinitialmedia",function(){eTe(o)}),this.masterPlaylistController_.sourceUpdater_.on("createdsourcebuffers",function(){o.setupEme_()}),this.on(this.masterPlaylistController_,"progress",function(){this.tech_.trigger("progress")}),this.on(this.masterPlaylistController_,"firstplay",function(){this.ignoreNextSeekingEvent_=!0}),this.setupQualityLevels_(),this.tech_.el()&&(this.mediaSourceUrl_=Te.URL.createObjectURL(this.masterPlaylistController_.mediaSource),this.tech_.src(this.mediaSourceUrl_))}},n.createKeySessions_=function(){var a=this,i=this.masterPlaylistController_.mediaTypes_.AUDIO.activePlaylistLoader;this.logger_("waiting for EME key session creation"),fTe({player:this.player_,sourceKeySystems:this.source_.keySystems,audioMedia:i&&i.media(),mainPlaylists:this.playlists.master.playlists}).then(function(){a.logger_("created EME key session"),a.masterPlaylistController_.sourceUpdater_.initializedEme()}).catch(function(o){a.logger_("error while creating EME key session",o),a.player_.error({message:"Failed to initialize media keys for EME",code:3})})},n.handleWaitingForKey_=function(){this.logger_("waitingforkey fired, attempting to create any new key sessions"),this.createKeySessions_()},n.setupEme_=function(){var a=this,i=this.masterPlaylistController_.mediaTypes_.AUDIO.activePlaylistLoader,o=pTe({player:this.player_,sourceKeySystems:this.source_.keySystems,media:this.playlists.media(),audioMedia:i&&i.media()});if(this.player_.tech_.on("keystatuschange",function(s){if(s.status==="output-restricted"){var l=a.masterPlaylistController_.master();if(!(!l||!l.playlists)){var u=[];if(l.playlists.forEach(function(d){d&&d.attributes&&d.attributes.RESOLUTION&&d.attributes.RESOLUTION.height>=720&&(!d.excludeUntil||d.excludeUntil<1/0)&&(d.excludeUntil=1/0,u.push(d))}),u.length){var c;(c=Ne.log).warn.apply(c,['DRM keystatus changed to "output-restricted." Removing the following HD playlists that will most likely fail to play and clearing the buffer. This may be due to HDCP restrictions on the stream and the capabilities of the current device.'].concat(u)),a.masterPlaylistController_.fastQualityChange_()}}}}),this.handleWaitingForKey_=this.handleWaitingForKey_.bind(this),this.player_.tech_.on("waitingforkey",this.handleWaitingForKey_),Ne.browser.IE_VERSION===11||!o){this.masterPlaylistController_.sourceUpdater_.initializedEme();return}this.createKeySessions_()},n.setupQualityLevels_=function(){var a=this,i=Ne.players[this.tech_.options_.playerId];!i||!i.qualityLevels||this.qualityLevels_||(this.qualityLevels_=i.qualityLevels(),this.masterPlaylistController_.on("selectedinitialmedia",function(){uTe(a.qualityLevels_,a)}),this.playlists.on("mediachange",function(){NN(a.qualityLevels_,a.playlists)}))},t.version=function(){return{"@videojs/http-streaming":RN,"mux.js":iTe,"mpd-parser":oTe,"m3u8-parser":sTe,"aes-decrypter":lTe}},n.version=function(){return this.constructor.version()},n.canChangeType=function(){return MN.canChangeType()},n.play=function(){this.masterPlaylistController_.play()},n.setCurrentTime=function(a){this.masterPlaylistController_.setCurrentTime(a)},n.duration=function(){return this.masterPlaylistController_.duration()},n.seekable=function(){return this.masterPlaylistController_.seekable()},n.dispose=function(){this.playbackWatcher_&&this.playbackWatcher_.dispose(),this.masterPlaylistController_&&this.masterPlaylistController_.dispose(),this.qualityLevels_&&this.qualityLevels_.dispose(),this.player_&&(delete this.player_.vhs,delete this.player_.dash,delete this.player_.hls),this.tech_&&this.tech_.vhs&&delete this.tech_.vhs,this.tech_&&delete this.tech_.hls,this.mediaSourceUrl_&&Te.URL.revokeObjectURL&&(Te.URL.revokeObjectURL(this.mediaSourceUrl_),this.mediaSourceUrl_=null),this.tech_&&this.tech_.off("waitingforkey",this.handleWaitingForKey_),e.prototype.dispose.call(this)},n.convertToProgramTime=function(a,i){return C1e({playlist:this.masterPlaylistController_.media(),time:a,callback:i})},n.seekToProgramTime=function(a,i,o,s){return o===void 0&&(o=!0),s===void 0&&(s=2),E1e({programTime:a,playlist:this.masterPlaylistController_.media(),retryCount:s,pauseAfterSeek:o,seekTo:this.options_.seekTo,tech:this.options_.tech,callback:i})},t}(vTe),Yf={name:"videojs-http-streaming",VERSION:RN,canHandleSource:function(t,n){n===void 0&&(n={});var r=Ne.mergeOptions(Ne.options,n);return Yf.canPlayType(t.type,r)},handleSource:function(t,n,r){r===void 0&&(r={});var a=Ne.mergeOptions(Ne.options,r);return n.vhs=new JT(t,n,a),Ne.hasOwnProperty("hls")||Object.defineProperty(n,"hls",{get:function(){return Ne.log.warn("player.tech().hls is deprecated. Use player.tech().vhs instead."),n.vhs},configurable:!0}),n.vhs.xhr=dN(),n.vhs.src(t.src,t.type),n.vhs},canPlayType:function(t,n){var r=XM(t);if(!r)return"";var a=Yf.getOverrideNative(n),i=Ir.supportsTypeNatively(r),o=!i||a;return o?"maybe":""},getOverrideNative:function(t){t===void 0&&(t={});var n=t,r=n.vhs,a=r===void 0?{}:r,i=n.hls,o=i===void 0?{}:i,s=!(Ne.browser.IS_ANY_SAFARI||Ne.browser.IS_IOS),l=a.overrideNative,u=l===void 0?s:l,c=o.overrideNative,d=c===void 0?!1:c;return d||u}},gTe=function(){return tm("avc1.4d400d,mp4a.40.2")};gTe()&&Ne.getTech("Html5").registerSourceHandler(Yf,0);Ne.VhsHandler=JT;Object.defineProperty(Ne,"HlsHandler",{get:function(){return Ne.log.warn("videojs.HlsHandler is deprecated. Use videojs.VhsHandler instead."),JT},configurable:!0});Ne.VhsSourceHandler=Yf;Object.defineProperty(Ne,"HlsSourceHandler",{get:function(){return Ne.log.warn("videojs.HlsSourceHandler is deprecated. Use videojs.VhsSourceHandler instead."),Yf},configurable:!0});Ne.Vhs=Ir;Object.defineProperty(Ne,"Hls",{get:function(){return Ne.log.warn("videojs.Hls is deprecated. Use videojs.Vhs instead."),Ir},configurable:!0});Ne.use||(Ne.registerComponent("Hls",Ir),Ne.registerComponent("Vhs",Ir));Ne.options.vhs=Ne.options.vhs||{};Ne.options.hls=Ne.options.hls||{};if(!Ne.getPlugin||!Ne.getPlugin("reloadSourceOnError")){var yTe=Ne.registerPlugin||Ne.plugin;yTe("reloadSourceOnError",aTe)}function iy(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function"){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n}var bTe={src:{type:String,onChange:function(e,t){return e.src(t)}},width:{type:Number,onChange:function(e,t){return e.width(t)},onEvent:function(e,t){e.on(["playerresize","resize"],function(){return t(e.width())})}},height:{type:Number,onChange:function(e,t){return e.height(t)},onEvent:function(e,t){e.on(["playerresize","resize"],function(){return t(e.height())})}},preload:{type:String,onChange:function(e,t){return e.preload(t)}},loop:{type:Boolean,onChange:function(e,t){return e.loop(t)}},muted:{type:Boolean,onChange:function(e,t){return e.muted(t)},onEvent:function(e,t){return e.on("volumechange",function(){return t(e.muted())})}},poster:{type:String,onChange:function(e,t){return e.poster(t)},onEvent:function(e,t){return e.on("posterchange",function(){return t(e.poster())})}},controls:{type:Boolean,onChange:function(e,t){return e.controls(t)},onEvent:function(e,t){e.on("controlsenabled",function(){return t(!0)}),e.on("controlsdisabled",function(){return t(!1)})}},autoplay:{type:[Boolean,String],onChange:function(e,t){return e.autoplay(t)}},crossorigin:{type:String,onChange:function(e,t){return e.crossOrigin(t)}},crossOrigin:{type:String,onChange:function(e,t){return e.crossOrigin(t)}},playsinline:{type:Boolean,onChange:function(e,t){return e.playsinline(t)}},playsInline:{type:Boolean,onChange:function(e,t){return e.playsinline(t)}}},_Te={id:{type:String},sources:{type:Array,onChange:function(e,t){return e.src(t)}},tracks:{type:Array,onChange:function(e,t){for(var n=e.remoteTextTracks(),r=(n==null?void 0:n.length)||0;r--;)e.removeRemoteTextTrack(n[r]);e.ready(function(){t.forEach(function(a){return e.addRemoteTextTrack(a,!1)})})}},textTrackSettings:{type:Object,onChange:function(e,t){return e.textTrackSettings.options(t)}},language:{type:String,onChange:function(e,t){return e.language(t)},onEvent:function(e,t){return e.on("languagechange",function(){return t(e.language())})}},languages:{type:Object},playbackRates:{type:Array,onChange:function(e,t){return e.playbackRates(t??[])},onEvent:function(e,t){e.on("playbackrateschange",function(){return t(e.playbackRates())})}},audioOnlyMode:{type:Boolean,onChange:function(e,t){return e.audioOnlyMode(t)}},audioPosterMode:{type:Boolean,onChange:function(e,t){return e.audioPosterMode(t)}},responsive:{type:Boolean,onChange:function(e,t){return e.responsive(t)}},breakpoints:{type:Object,onChange:function(e,t){return e.breakpoints(t)}},fluid:{type:Boolean,onChange:function(e,t){return e.fluid(t)}},fill:{type:Boolean,onChange:function(e,t){return e.fill(t)}},aspectRatio:{type:String,onChange:function(e,t){return e.aspectRatio(t)}},fullscreen:{type:Object},liveui:{type:Boolean},liveTracker:{type:Object},disablePictureInPicture:{type:Boolean,onChange:function(e,t){return e.disablePictureInPicture(t)}},notSupportedMessage:{type:String},normalizeAutoplay:{type:Boolean},noUITitleAttributes:{type:Boolean},preferFullWindow:{type:Boolean},suppressNotSupportedError:{type:Boolean},techCanOverridePoster:{type:Boolean},reportTouchActivity:{type:Boolean},techOrder:{type:Array},inactivityTimeout:{type:Number},userActions:{type:Object},plugins:{type:Object},restoreEl:{type:[Boolean,Object]},"vtt.js":{type:String}},TTe={children:{type:[Array,Object]},controlBar:{type:Object,onChange:function(e,t){return e.controlBar.options(t)}}},wTe={html5:{type:Object}},STe={volume:{type:Number,onChange:function(e,t){return e.volume(t)},onEvent:function(e,t){return e.on("volumechange",function(){return t(e.volume())})}},playbackRate:{type:Number,onChange:function(e,t){e.playbackRate(t),e.defaultPlaybackRate(t)},onEvent:function(e,t){e.on("ratechange",function(){t(e.playbackRate())})}},options:{type:Object}},Xf=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},bTe),_Te),TTe),wTe),STe),ZT=Object.keys(Xf),$N=Object.assign(Object.assign(Object.assign(Object.assign({},{loadstart:"onLoadStart",suspend:"onSuspend",abort:"onAbort",error:"onError",emptied:"onEmptied",stalled:"onStalled",loadedmetadata:"onLoadedMetadata",loadeddata:"onLoadedData",canplay:"onCanPlay",canplaythrough:"onCanPlayThrough",playing:"onPlaying",waiting:"onWaiting",seeking:"onSeeking",seeked:"onSeeked",ended:"onEnded",durationchange:"onDurationChange",timeupdate:"onTimeUpdate",progress:"onProgress",play:"onPlay",pause:"onpause",ratechange:"onRateChange",resize:"onResize",volumechange:"onVolumeChange"}),{posterchange:"onPosterChange",languagechange:"onLanguageChange",fullscreenchange:"onFullscreenChange",playbackrateschange:"onPlaybackRatesChange",controlsdisabled:"onControlsDisabled",controlsenabled:"onControlsEnabled",enterFullWindow:"onEnterFullWindow",exitFullWindow:"onExitFullWindow",enterpictureinpicture:"onEnterPictureInPicture",leavepictureinpicture:"onLeavePictureInPicture",sourceset:"onSourceSet",texttrackchange:"onTextTrackChange",textdata:"onTextData",useractive:"onUserActive",userinactive:"onUserInactive",usingcustomcontrols:"onUsingCustomControls",usingnativecontrols:"onUsingNativeControls",dispose:"onDispose"}),{beforepluginsetup:"onBeforePluginSetup",pluginsetup:"onPluginSetup"}),{componentresize:"onComponentResize",playerresize:"onPlayerResize",ready:"onReady",tap:"onTap"}),BN=Object.keys($N);Object.values($N);var oy=function(e){var t,n=e==null?void 0:e.trim().replace(/\s+/g," ");return n&&(t=n.split(" "))!==null&&t!==void 0?t:[]},sy={src:{getter:function(e){return e.src()}},currentSrc:{getter:function(e){return e.currentSrc()}},currentSource:{getter:function(e){return e.currentSource()}},width:{events:["resize","playerresize"],getter:function(e){return e.width()}},height:{events:["resize","playerresize"],getter:function(e){return e.height()}},currentWidth:{events:["resize","playerresize"],getter:function(e){return e.currentWidth()}},currentHeight:{events:["resize","playerresize"],getter:function(e){return e.currentHeight()}},videoWidth:{events:["resize","playerresize"],getter:function(e){return e.videoWidth()}},videoHeight:{events:["resize","playerresize"],getter:function(e){return e.videoHeight()}},controls:{events:["controlsdisabled","controlsenabled"],getter:function(e){return e.controls()}},volume:{events:["volumechange"],getter:function(e){return e.volume()}},muted:{events:["volumechange"],getter:function(e){return e.muted()}},poster:{events:["posterchange"],getter:function(e){return e.poster()}},seeking:{events:["seeking"],getter:function(e){return e.seeking()}},paused:{events:["pause","play","playing"],getter:function(e){return e.paused()}},ended:{events:["ended","play"],getter:function(e){return e.ended()}},currentTime:{events:["timeupdate"],getter:function(e){return e.currentTime()}},duration:{events:["durationchange"],getter:function(e){return e.duration()}},playbackRate:{events:["ratechange"],getter:function(e){return e.playbackRate()}},playbackRates:{events:["playbackrateschange"],getter:function(e){return e.playbackRates()}},isFullscreen:{events:["fullscreenchange"],getter:function(e){return e.isFullscreen()}},isInPictureInPicture:{events:["enterpictureinpicture","leavepictureinpicture"],getter:function(e){return e.isInPictureInPicture()}},isLive:{getter:function(e){var t;return(t=e.liveTracker)===null||t===void 0?void 0:t.isLive()}},language:{events:["languagechange"],getter:function(e){return e.language()}},userActive:{events:["useractive","userinactive"],getter:function(e){return e.userActive()}},readyState:{events:["loadeddata"],getter:function(e){return e.readyState()}},networkState:{events:["loadeddata","error"],getter:function(e){return e.networkState()}},error:{events:["loadeddata","error"],getter:function(e){return e.error()}},buffered:{events:["progress"],getter:function(e){return e.buffered()}},bufferedPercent:{events:["progress"],getter:function(e){return e.bufferedPercent()}},played:{events:["timeupdate"],getter:function(e){return e.played()}},seekable:{events:["progress","seeked"],getter:function(e){return e.seekable()}},audioTracks:{getter:function(e){var t;return(t=e.audioTracks)===null||t===void 0?void 0:t.call(e)}},videoTracks:{getter:function(e){var t;return(t=e.videoTracks)===null||t===void 0?void 0:t.call(e)}},textTracks:{getter:function(e){var t;return(t=e.textTracks)===null||t===void 0?void 0:t.call(e)}}},VN=ZT.filter(function(e){return!!Xf[e].onEvent}),UN=function(e){return"update:"+e},CTe=BN.concat(VN.map(UN)),ETe=ZT.reduce(function(e,t){var n,r=Xf[t],a=Array.isArray(r.type)?r.type:[r.type],i=Object.assign({},r);return a.includes(Boolean)&&(i.default=void 0),Object.assign(Object.assign({},e),((n={})[t]=i,n))},{}),xTe=J({name:"VueVideoPlayer",props:Object.assign(Object.assign({},ETe),{class:[String,Object,Array]}),emits:CTe.concat(["mounted"],["unmounted"]),setup:function(e,t){var n=un(e),r=n.class,a=iy(n,["class"]),i=cn(!1),o=cn(null),s=cn(null),l=k(function(){return s.value?s.value.player:null}),u=z(null),c=k(function(){return u.value?Ul(u.value):null});return ht(function(){var d,p=function(h){var v,m=h.props,g=h.element,y=h.className,T=h.onEvent,b=m.options;b===void 0&&(b={});var _=iy(m,["options"]),w={};Object.keys(_).forEach(function(K){var Y=_[K];Y!==void 0&&(w[K]=Y)});var S=Object.assign(Object.assign({},w),b),A=S.volume,I=S.playbackRate,D=iy(S,["volume","playbackRate"]),O=Object.assign(Object.assign({},D),{playsinline:(v=D.playsinline)!==null&&v!==void 0?v:D.playsInline}),V=Ne(g,O,function(){var K=this;BN.forEach(function(Y){K.on(Y,function(q){T(Y,q)})}),D.src&&!D.sources&&this.src(D.src),A&&Number.isFinite(A)&&this.volume(A),I&&Number.isFinite(I)&&(this.defaultPlaybackRate(I),setTimeout(function(){K.playbackRate(I)},0))});y&&oy(y).map(function(K){return V.addClass(K)});var N=function(K){var Y;(Y=V.options)===null||Y===void 0||Y.call(V,K??{})};return{player:V,dispose:function(){return V.dispose()},updateClassNames:function(K,Y){oy(K).map(function(q){return V.removeClass(q)}),oy(Y).map(function(q){return V.addClass(q)})},updateOptions:N,updatePropOption:function(K,Y){var q,$,j;N(((q={})[K]=Y,q)),(j=($=Xf[K])===null||$===void 0?void 0:$.onChange)===null||j===void 0||j.call($,V,Y)}}}({element:o.value,props:a,onEvent:t.emit});d={player:p.player,onEvent:t.emit},VN.forEach(function(h){var v,m;(m=(v=Xf[h])===null||v===void 0?void 0:v.onEvent)===null||m===void 0||m.call(v,d.player,function(g){d.onEvent(UN(h),g)})}),Ie(function(){return e.class},function(h,v){var m=F(v),g=F(h);p.updateClassNames(m,g)},{immediate:!0}),Ie(function(){return e.options},function(h){return p.updateOptions(h??{})},{deep:!0}),ZT.filter(function(h){return h!=="options"}).forEach(function(h){Ie(function(){return e[h]},function(v){return p.updatePropOption(h,v)},{deep:!0})}),function(h,v){var m=Object.keys(sy),g=m.reduce(function(T,b){var _;return Object.assign(Object.assign({},T),((_={})[b]=sy[b].getter(h),_))},{playing:!1,waiting:!1}),y=function(T,b){g[T]=b,v.onUpdate(T,b,Object.assign({},g))};h.on(["pause","ended"],function(){y("playing",!1)}),h.on(["play","playing"],function(){y("playing",!0)}),h.on("waiting",function(){y("waiting",!0);var T=h.currentTime(),b=function(){T!==h.currentTime()&&(y("waiting",!1),h.off("timeupdate",b))};h.on("timeupdate",b)}),m.forEach(function(T){var b,_=sy[T];h.on(["loadstart","loadedmetadata"].concat((b=_.events)!==null&&b!==void 0?b:[]),function(){y(T,_.getter(h))})}),v.onInit(Object.assign({},g))}(p.player,{onInit:function(h){u.value=h},onUpdate:function(h,v){u.value&&(u.value[h]=v)}}),s.value=p,i.value=!0,t.emit("mounted",{video:o.value,player:l.value,state:c.value})}),fn(function(){s.value&&(s.value.dispose(),s.value=null,u.value=null,t.emit("unmounted"))}),function(){var d,p;return lt("div",{"data-vjs-player":"",class:F(r)},[lt("video",{class:["video-js","v-video-player"],ref:o}),i.value&&((p=(d=t.slots).default)===null||p===void 0?void 0:p.call(d,{video:o.value,player:l.value,state:c.value}))])}}}),HN=xTe;const rf={dateFormat(e,t="YYYY-mm-dd HH:MM:SS"){let n=new Date(e);const r={"Y+":n.getFullYear().toString(),"m+":(n.getMonth()+1).toString(),"d+":n.getDate().toString(),"H+":n.getHours().toString(),"M+":n.getMinutes().toString(),"S+":n.getSeconds().toString()};for(let a in r){let i=new RegExp("("+a+")").exec(t);i&&(t=t.replace(i[1],i[1].length==1?r[a]:r[a].padStart(i[1].length,"0")))}return t},secondToTime(e){const t=Math.floor(e/3600),n=Math.floor(e%3600/60),r=Math.floor(e%60);let a="";return a=t<10?`0${t}`:`${t}`,a+=n<10?`:0${n}`:`:${n}`,a+=r<10?`:0${r}`:`:${r}`,a}},kTe={class:"player_area"},ATe={class:"player_p"},DTe={class:"current_play_info"},ITe={class:"play_info_left"},PTe={class:"current_play_title"},OTe=["href"],MTe={class:"tags"},RTe=["href"],LTe={class:"hidden-sm-and-down"},NTe={class:"hidden-sm-and-down"},FTe={class:"play_info_right"},$Te={class:"play-module"},BTe={class:"play-module-item"},VTe={class:"module-heading"},UTe={class:"play-tab-group"},HTe=["onClick"],zTe={class:"play-list"},jTe={class:"play-list-item"},WTe=["onClick"],KTe={key:0,class:"loading-wave"},qTe={key:1,class:"loading-wave"},GTe={class:"correlation"},YTe=J({__name:"Play",setup(e){const t=m=>{n.currentTabId=m},n=Ct({loading:!1,detail:{id:"",cid:"",pid:"",name:"",picture:"",playFrom:[],DownFrom:"",playList:[[]],downloadList:"",descriptor:{subTitle:"",cName:"",enName:"",initial:"",classTag:"",actor:"",director:"",writer:"",blurb:"",remarks:"",releaseDate:"",area:"",language:"",year:"",state:"",updateTime:"",addTime:"",dbId:"",dbScore:"",hits:"",content:""},list:[]},current:{index:0,episode:"",link:""},relate:[],currentTabId:"",autoplay:!0,options:{title:"",src:"",volume:.6,currentTime:50}}),r=k(()=>{let m=!1;return n.detail.list.forEach(g=>{n.currentTabId==g.id&&(m=n.current.index!=g.linkList.length-1)}),m}),a=vo(),i=Qe("global"),o=m=>{n.detail.list.forEach(g=>{if(g.id==m.sourceId){let y=g.linkList[m.episodeIndex];n.current={index:m.episodeIndex,episode:y.episode,link:y.link},n.options.src=y.link,n.options.title=n.detail.name+" "+y.episode,n.currentTabId=m.sourceId}})},s=m=>{switch(m.preventDefault(),m.keyCode){case 32:m.target.paused?m.target.play():m.target.pause();break;case 37:m.target.currentTime=m.target.currentTime-5<0?0:m.target.currentTime-5;break;case 39:m.target.currentTime=m.target.currentTime+5>m.target.duration?m.target.duration:m.target.currentTime+5;break;case 38:n.options.volume=n.options.volume+.05>1?1:n.options.volume+.05;break;case 40:n.options.volume=n.options.volume-.05<0?0:n.options.volume-.05;break}},l=()=>{n.autoplay&&u()},u=()=>{r.value&&(o({sourceId:n.currentTabId,episodeIndex:n.current.index+1,target:""}),n.autoplay&&setTimeout(()=>{document.getElementsByTagName("video")[0].play()},1e3))},c=m=>{let g=document.getElementsByTagName("video")[0];g.focus();const y=document.createEvent("HTMLEvents");y.initEvent("keydown",!0,!1),y.keyCode=m,g.dispatchEvent(y)},d=m=>{let g=document.getElementsByClassName("vjs-button");for(let y of g)y.addEventListener("keydown",function(T){T.preventDefault(),c(T.keyCode)})},p=m=>{d()},h=m=>{let g=a.currentRoute.value.query.currentTime;g&&m.target.player.currentTime(g)},v=()=>{if(n.options.src.length>0){let m=document.getElementsByTagName("video")[0],g=pi.getCookie(fi.FILM_HISTORY)?JSON.parse(pi.getCookie(fi.FILM_HISTORY)):{},y=`/play?id=${n.detail.id}&source=${n.currentTabId}&episode=${n.current.index}&currentTime=${m.currentTime}`,T=new Date().getTime(),b=rf.dateFormat(T),_=`${rf.secondToTime(m.currentTime)} / ${rf.secondToTime(m.duration)}`;g[n.detail.id]={id:n.detail.id,name:n.detail.name,picture:n.detail.picture,episode:n.current.episode,time:b,timeStamp:T,source:n.currentTabId,link:y,currentTime:m.currentTime,duration:m.duration,progress:_,devices:i.isMobile},pi.setCookie(fi.FILM_HISTORY,JSON.stringify(g))}};return window.addEventListener("beforeunload",v),Hl(()=>{let m=a.currentRoute.value.query;tn("/filmPlayInfo",{id:m.id,playFrom:m.source,episode:m.episode}).then(g=>{g.code===0?(n.detail=g.data.detail,n.current={index:g.data.currentEpisode,...g.data.current},n.relate=g.data.relate,n.options.src=n.current.link,n.currentTabId=g.data.currentPlayFrom,n.loading=!0):at.error({message:g.msg})})}),(m,g)=>{const y=et;return gt((x(),U("div",kTe,[M("div",ATe,[E(f(HN),{onMounted:p,src:n.options.src,poster:f(LM),controls:"",onReady:h,onEnded:l,loop:!1,onKeydown:s,bufferedPercent:30,volume:n.options.volume,crossorigin:"anonymous",playsinline:"",class:"video-player","playback-rates":[.5,1,1.5,2]},null,8,["src","poster","volume"])]),M("div",DTe,[M("div",ITe,[M("h3",PTe,[M("a",{href:`/filmDetail?link=${n.detail.id}`},de(n.detail.name),9,OTe),we(de(n.current.episode),1)]),M("div",MTe,[M("a",{href:`/filmClassifySearch?Pid=${n.detail.pid}&Category=${n.detail.cid}`},[E(y,null,{default:P(()=>[E(f(f1))]),_:1}),we(" "+de(n.detail.descriptor.cName),1)],8,RTe),M("span",null,de(n.detail.descriptor.classTag?n.detail.descriptor.classTag.replaceAll(",","/"):"未知"),1),M("span",LTe,de(n.detail.descriptor.year),1),M("span",NTe,de(n.detail.descriptor.area),1)])]),M("div",FTe,[M("a",{href:"javascript:;",class:F(`iconfont icon-play1 ${n.autoplay?"p_r_active":""}`),onClick:g[0]||(g[0]=()=>{n.autoplay=!n.autoplay})},null,2),gt(M("a",{href:"javascript:;",class:"iconfont icon-iov-next",onClick:u},null,512),[[zt,r.value]])])]),M("div",$Te,[M("div",BTe,[M("div",VTe,[g[1]||(g[1]=M("p",{class:"play-module-title"},"播放列表",-1)),M("div",UTe,[(x(!0),U(Ge,null,mt(n.detail.list,T=>(x(),U("a",{href:"javascript:;",class:F(`play-tab-item ${n.currentTabId==T.id?"tab-active":""}`),onClick:b=>t(T.id)},de(T.name),11,HTe))),256))])]),M("div",zTe,[(x(!0),U(Ge,null,mt(n.detail.list,T=>gt((x(),U("div",jTe,[(x(!0),U(Ge,null,mt(T.linkList,(b,_)=>(x(),U("a",{class:F(`play-link ${b.link==n.current.link?"play-link-active":""}`),href:"javascript:;",onClick:w=>o({sourceId:T.id,episodeIndex:_,target:this})},[we(de(b.episode)+" ",1),b.link==n.current.link?(x(),U("div",KTe,g[2]||(g[2]=[M("div",{class:"loading-bar"},null,-1),M("div",{class:"loading-bar"},null,-1),M("div",{class:"loading-bar"},null,-1),M("div",{class:"loading-bar"},null,-1)]))):(x(),U("div",qTe))],10,WTe))),256))],512)),[[zt,n.currentTabId==T.id]])),256))])])]),M("div",GTe,[E(RM,{relateList:n.relate},null,8,["relateList"])])],512)),[[zt,n.loading]])}}}),XTe=En(YTe,[["__scopeId","data-v-cb8884b4"]]),QTe={class:"container"},JTe={class:"search_group"},ZTe={key:0,class:"search_res"},ewe={class:"title"},twe={class:"content"},nwe={class:"film_item"},rwe=["href"],awe={class:"film_intro"},iwe={class:"tags"},owe={class:"tag_c"},swe={class:"blurb"},lwe={class:"pagination_container"},uwe=J({__name:"SearchFilm",setup(e){const t=vo(),n=Npe(),r=Ct({list:[],page:{current:0},oldSearch:"",search:""});Ie([n],(l,u)=>{o(t.currentRoute.value.query.search,t.currentRoute.value.query.current)});const a=l=>{location.href=`/play?id=${l}&episode=0&source=0`},i=()=>{if(r.search.length<=0){at.error({message:"搜索信息不能为空",duration:1e3});return}location.href=location.href=`/search?search=${r.search}`},o=(l,u)=>{tn("/searchFilm",{keyword:l,current:u}).then(c=>{c.code==0?(r.list=c.data.list,r.page=c.data.page,r.oldSearch=l):at.warning({message:c.msg,duration:1e3})})};ht(()=>{t.currentRoute.value.query.search!=null&&o(t.currentRoute.value.query.search+"",t.currentRoute.value.query.current)});const s=l=>{let u=t.currentRoute.value.query;location.href=`/search?search=${u.search}&current=${l}`};return(l,u)=>{const c=_n,d=Vc,p=$c;return x(),U(Ge,null,[M("div",QTe,[M("div",JTe,[gt(M("input",{"onUpdate:modelValue":u[0]||(u[0]=h=>r.search=h),onKeydown:u[1]||(u[1]=h=>{h.keyCode==13&&i()}),placeholder:"输入关键字搜索 动漫,剧集,电影 ",class:"search"},null,544),[[no,r.search]]),E(c,{onClick:i,icon:f(Tf),style:{}},null,8,["icon"])]),r.list&&r.list.length>0?(x(),U("div",ZTe,[M("div",ewe,[M("h2",null,de(r.oldSearch),1),M("p",null,"共找到"+de(r.page.total)+'部与"'+de(r.oldSearch)+'"相关的影视作品',1)]),M("div",twe,[(x(!0),U(Ge,null,mt(r.list,h=>(x(),U("div",nwe,[M("a",{href:`/filmDetail?link=${h.id}`,style:tt({backgroundImage:`url('${h.picture}')`})},null,12,rwe),M("div",awe,[M("h3",null,de(h.name),1),M("p",iwe,[M("span",owe,de(h.cName),1),M("span",null,de(h.year),1),M("span",null,de(h.area),1)]),M("p",null,[u[3]||(u[3]=M("em",null,"导演:",-1)),we(de(h.director),1)]),M("p",null,[u[4]||(u[4]=M("em",null,"主演:",-1)),we(de(h.actor),1)]),M("p",swe,[u[5]||(u[5]=M("em",null,"剧情:",-1)),we(de(h.blurb.replaceAll("  ","")),1)]),E(c,{icon:f(Fv),onClick:v=>a(h.id)},{default:P(()=>u[6]||(u[6]=[we("立即播放")])),_:2},1032,["icon","onClick"])])]))),256))]),M("div",lwe,[E(d,{background:"",layout:"prev, pager, next","current-page":r.page.current,"onUpdate:currentPage":u[2]||(u[2]=h=>r.page.current=h),onCurrentChange:s,"pager-count":5,"page-size":r.page.pageSize,total:r.page.total,"prev-icon":f(BI),"next-icon":f(VI),"hide-on-single-page":"",class:"pagination"},null,8,["current-page","page-size","total","prev-icon","next-icon"])])])):oe("",!0)]),r.oldSearch!=""&&(!r.list||r.list.length==0)?(x(),he(p,{key:0,description:"未查询到对应影片"})):oe("",!0)],64)}}}),cwe=En(uwe,[["__scopeId","data-v-31fa3f00"]]),dwe="/assets/404-b813c94a.png",fwe={class:"container"},pwe=["src"],hwe={class:"btn-group"},mwe=J({__name:"Error404",setup(e){const t=vo(),n=r=>{switch(r){case"home":t.push("/");break;case"back":t.go(-1);break}};return(r,a)=>(x(),U("div",fwe,[oe("",!0),M("img",{src:f(dwe),alt:"404",class:"notfound-img"},null,8,pwe),a[5]||(a[5]=M("p",{class:"warning-txt"},"你好像走错地方了哦!!!",-1)),M("div",hwe,[M("button",{onClick:a[2]||(a[2]=i=>n("home"))},"主页"),M("button",{onClick:a[3]||(a[3]=i=>n("back"))},"返回")])]))}}),vwe=En(mwe,[["__scopeId","data-v-148e0a5e"]]),gwe={key:0,class:"container"},ywe={class:"title"},bwe=["href"],_we=["href"],Twe={class:"t_container"},wwe={class:"t_item"},Swe={class:"t_title"},Cwe={class:"tag_group"},Ewe=["onClick"],xwe={class:"pagination_container"},kwe=J({__name:"FilmClassifySearch",setup(e){const t=Ct({title:{},list:[],search:{sortList:[],titles:[],tags:[]},page:{current:0},searchParams:{Pid:"",Category:"",Plot:"",Area:"",Language:"",Year:"",Sort:""}}),n=vo(),r=s=>{i()},a=(s,l)=>{t.searchParams[s]=l,t.page.current=1,i()},i=()=>{let s="";for(let l in t.searchParams){let u=t.searchParams[l];u!=""&&(s+=`&${l}=${u}`)}location.href="/filmClassifySearch?"+s.slice(1)+`&current=${t.page.current}`},o=()=>{let s=n.currentRoute.value.query;tn("/filmClassifySearch",{...s}).then(l=>{l.code===0?(t.title=l.data.title,t.list=l.data.list,t.page=l.data.page,t.search=l.data.search,t.searchParams=l.data.params):at.error({message:"影片搜索结果异常,请稍后刷新重试",duration:1e3})})};return ht(()=>{o()}),(s,l)=>{const u=Vc;return t.title.name?(x(),U("div",gwe,[M("div",ywe,[M("a",{href:`/filmClassify?Pid=${t.title.id}`},de(t.title.name),9,bwe),l[1]||(l[1]=M("span",{class:"line"},null,-1)),M("a",{href:`/filmClassifySearch?Pid=${t.title.id}`,class:"h_active"},de(`${t.title.name}库`),9,_we)]),M("div",Twe,[(x(!0),U(Ge,null,mt(t.search.sortList,c=>(x(),U("div",wwe,[M("div",Swe,[we(de(t.search.titles[c])+" ",1),l[2]||(l[2]=M("b",{class:"iconfont icon-triangle"},null,-1))]),M("div",Cwe,[(x(!0),U(Ge,null,mt(t.search.tags[c],d=>(x(),U("a",{href:"javascript:void(false)",class:F(`tag ${d.Value===t.searchParams[c]?"t_active":""}`),onClick:p=>a(c,d.Value)},de(d.Name),11,Ewe))),256))])]))),256))]),E(zu,{col:7,list:t.list},null,8,["list"]),M("div",xwe,[E(u,{background:"",layout:"prev, pager, next","current-page":t.page.current,"onUpdate:currentPage":l[0]||(l[0]=c=>t.page.current=c),onCurrentChange:r,"pager-count":5,"page-size":t.page.pageSize,total:t.page.total,"prev-icon":f(BI),"next-icon":f(VI),"hide-on-single-page":"",class:"pagination"},null,8,["current-page","page-size","total","prev-icon","next-icon"])])])):oe("",!0)}}}),Awe=En(kwe,[["__scopeId","data-v-3e60ba97"]]),Dwe={key:0,class:"container"},Iwe={class:"title"},Pwe=["href"],Owe=["href"],Mwe={class:"content"},Rwe={class:"news"},Lwe={class:"c_nav"},Nwe=["href"],Fwe={class:"news"},$we={class:"c_nav"},Bwe=["href"],Vwe={class:"news"},Uwe={class:"c_nav"},Hwe=["href"],zwe=J({__name:"FilmClassify",setup(e){const t=Ct({title:{},content:{news:[],top:[],recent:[]}}),n=vo(),r=()=>{let a=n.currentRoute.value.query;tn("/filmClassify",{Pid:a.Pid}).then(i=>{i.code===0?(t.title=i.data.title,t.content=i.data.content):at.error({message:i.msg,duration:1e3})})};return ht(()=>{r()}),(a,i)=>t.content.news.length>0?(x(),U("div",Dwe,[M("div",Iwe,[M("a",{href:`/filmClassify?Pid=${t.title.id}`,class:"h_active"},de(t.title.name),9,Pwe),i[0]||(i[0]=M("span",{class:"line"},null,-1)),M("a",{href:`/filmClassifySearch?Pid=${t.title.id}`},de(`${t.title.name}库`),9,Owe)]),M("div",Mwe,[M("div",Rwe,[M("div",Lwe,[i[2]||(i[2]=M("span",{class:"c_nav_text silver"},"最新上映",-1)),M("a",{href:`/filmClassifySearch?Pid=${t.title.id}&Sort=release_stamp`,class:"c_nav_more"},i[1]||(i[1]=[we("更多"),M("b",{class:"iconfont icon-more"},null,-1)]),8,Nwe)]),E(zu,{col:7,list:t.content.news},null,8,["list"])]),M("div",Fwe,[M("div",$we,[i[4]||(i[4]=M("span",{class:"c_nav_text silver"},"排行榜",-1)),M("a",{href:`/filmClassifySearch?Pid=${t.title.id}&Sort=hits`,class:"c_nav_more"},i[3]||(i[3]=[we("更多"),M("b",{class:"iconfont icon-more"},null,-1)]),8,Bwe)]),E(zu,{col:7,list:t.content.top},null,8,["list"])]),M("div",Vwe,[M("div",Uwe,[i[6]||(i[6]=M("span",{class:"c_nav_text silver"},"最近更新",-1)),M("a",{href:`/filmClassifySearch?Pid=${t.title.id}&Sort=update_stamp`,class:"c_nav_more"},i[5]||(i[5]=[we("更多"),M("b",{class:"iconfont icon-more"},null,-1)]),8,Hwe)]),E(zu,{col:7,list:t.content.recent},null,8,["list"])])])])):oe("",!0)}}),jwe=En(zwe,[["__scopeId","data-v-c116421f"]]),Wwe={class:"container"},Kwe=J({__name:"Index",setup(e){return ht(()=>{tn("/manage/index").then(t=>{t.code==0?at.success({message:t.msg}):at.error({message:t.msg})})}),(t,n)=>(x(),U("div",Wwe,n[0]||(n[0]=[M("h3",null,"管理后台首页, 不知道放点啥, 先空着",-1)])))}}),qwe=En(Kwe,[["__scopeId","data-v-5d6b8cb4"]]),Gwe={class:"container"},Ywe={class:"container-form"},Xwe={class:"cus-form"},Qwe={class:"cus-form-item"},Jwe={class:"cus-form-item"},Zwe=["type"],eSe=J({__name:"Login",setup(e){const t=Ct({userName:"",password:"",pwdIsShow:!1}),n=vo(),r=()=>{er("/login",{userName:t.userName,password:t.password}).then(a=>{a.code===0?n.push("/manage/index"):at.error({message:a.msg})})};return(a,i)=>{const o=_n;return x(),U("div",Gwe,[oe("",!0),M("div",Ywe,[M("form",Xwe,[i[7]||(i[7]=M("h2",{class:"form-title"},"GoFilm Manage",-1)),M("div",Qwe,[gt(M("input",{type:"text","onUpdate:modelValue":i[0]||(i[0]=s=>t.userName=s),placeholder:"用户名 / 邮箱",class:"cus-input"},null,512),[[no,t.userName]]),i[3]||(i[3]=M("i",{class:"cus-item-icon iconfont icon-account"},null,-1))]),M("div",Jwe,[i[4]||(i[4]=M("i",{class:"cus-item-icon iconfont icon-password"},null,-1)),gt(M("input",{type:`${t.pwdIsShow?"text":"password"}`,"onUpdate:modelValue":i[1]||(i[1]=s=>t.password=s),placeholder:"密码",class:"cus-input",onKeydown:sn(r,["enter"])},null,40,Zwe),[[uB,t.password]]),M("i",{class:F(`cus-pwd iconfont ${t.pwdIsShow?"icon-eye2":"icon-eye"}`),onClick:i[2]||(i[2]=s=>t.pwdIsShow=!t.pwdIsShow)},null,2)]),E(o,{"native-type":"button",type:"primary",size:"large",color:"#9b49e7",round:"",onClick:r},{default:P(()=>i[5]||(i[5]=[we("登录")])),_:1}),E(o,{"native-type":"button",disabled:"",type:"primary",size:"large",color:"#9b49e7",round:""},{default:P(()=>i[6]||(i[6]=[we("注册")])),_:1})])])])}}}),tSe=En(eSe,[["__scopeId","data-v-2e64a78d"]]),nSe={class:"header_container"},rSe={class:"left"},aSe={class:"right"},iSe={class:"dropdown_user"},oSe={class:"dialog-footer"},sSe="^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)(?=.*[$@$!%*?&])[A-Za-z\\d$@$!%*?&]{8,12}$",lSe=J({__name:"ManageHeader",setup(e){const t=vo(),n=Ct({userInfo:{id:Number,userName:String,email:String,gender:Number,nickName:String,avatar:String,status:Number}}),r=Qe("collapse"),a=Ct({changePwd:!1}),i=Ct({changePwd:{password:"",newPassword:"",confirmPassword:""},type:{password:!1,newPassword:!1,confirmPassword:!1}}),l=Ct({password:[{required:!0,message:"原始密码信息不能为空",trigger:"blur"}],newPassword:[{required:!0,validator:(h,v,m)=>{v===""?m(new Error("新密码不能为空")):v.match(sSe)||m(new Error("密码必须为8-12位且包含大小写字母数字和特殊字符")),m()},trigger:"blur"}],confirmPassword:[{required:!0,validator:(h,v,m)=>{v===""?m(new Error("确认密码不能为空")):i.changePwd.newPassword!==""&&i.changePwd.newPassword!=i.changePwd.confirmPassword&&m(new Error("新密码与确认密码不一致")),m()},trigger:"blur"}]}),u=()=>{er("/changePassword",{password:i.changePwd.password,newPassword:i.changePwd.newPassword}).then(h=>{h.code===0?(i.changePwd={password:"",newPassword:"",confirmPassword:""},a.changePwd=!1,at.success({message:h.msg})):at.error({message:h.msg})})},c=()=>{a.changePwd=!1,i.changePwd={password:"",newPassword:"",confirmPassword:""}},d=()=>{tn("/logout").then(h=>{h.code===0?(Tme(),t.push("/login")):at.error({message:h.msg})})},p=()=>{tn("/manage/user/info").then(h=>{h.code===0?(h.data.avatar=h.data.avatar=="empty"?"https://s2.loli.net/2023/12/05/O2SEiUcMx5aWlv4.jpg":h.data.avatar,n.userInfo=h.data):at.error({message:h.msg})})};return ht(()=>{p()}),(h,v)=>{const m=O1,g=et,y=KO,T=qO,b=WO,_=Wn,w=ho,S=po,A=_n,I=Fc;return x(),U("div",nSe,[M("div",rSe,[M("a",{href:"javascript:;",onClick:v[0]||(v[0]=(...D)=>f(r).changeCollapse&&f(r).changeCollapse(...D)),class:F(`iconfont ${f(r).collapse.value?"icon-unfold":"icon-fold"}`)},null,2),v[9]||(v[9]=M("h3",null,"后台管理中心",-1))]),M("div",aSe,[E(b,{placement:"bottom"},{dropdown:P(()=>[E(T,null,{default:P(()=>[E(y,{command:"a"},{default:P(()=>v[10]||(v[10]=[M("em",{class:"iconfont icon-user-info"},null,-1),we("个人信息")])),_:1}),E(y,{command:"a",onClick:v[1]||(v[1]=D=>a.changePwd=!0)},{default:P(()=>v[11]||(v[11]=[M("em",{class:"iconfont icon-change-pwd2"},null,-1),we("修改密码 ")])),_:1}),E(y,{command:"e",divided:"",onClick:d},{default:P(()=>v[12]||(v[12]=[M("em",{class:"iconfont icon-logout"},null,-1),we("退出登录 ")])),_:1})]),_:1})]),default:P(()=>[M("div",iSe,[E(m,{class:"avatar",size:35,src:n.userInfo.avatar.toString(),alt:"admin"},null,8,["src"]),M("span",null,de(n.userInfo.nickName),1),E(g,{class:"el-icon--right"},{default:P(()=>[E(f(co))]),_:1})])]),_:1})]),E(I,{modelValue:a.changePwd,"onUpdate:modelValue":v[8]||(v[8]=D=>a.changePwd=D),width:"480px",title:"用户密码修改"},{footer:P(()=>[M("span",oSe,[E(A,{color:"#9b49e7",onClick:u},{default:P(()=>v[13]||(v[13]=[we("确认")])),_:1}),E(A,{onClick:c},{default:P(()=>v[14]||(v[14]=[we("取消")])),_:1})])]),default:P(()=>[E(S,{model:i.changePwd,rules:l,"label-width":"80px"},{default:P(()=>[E(w,{label:"原始密码",prop:"password"},{default:P(()=>[E(_,{modelValue:i.changePwd.password,"onUpdate:modelValue":v[2]||(v[2]=D=>i.changePwd.password=D),type:i.type.password?"text":"password"},null,8,["modelValue","type"]),M("i",{class:F(`cus-pwd iconfont ${i.type.password?"icon-eye2":"icon-eye"}`),onClick:v[3]||(v[3]=D=>i.type.password=!i.type.password)},null,2)]),_:1}),E(w,{label:"新密码",prop:"newPassword"},{default:P(()=>[E(_,{modelValue:i.changePwd.newPassword,"onUpdate:modelValue":v[4]||(v[4]=D=>i.changePwd.newPassword=D),type:i.type.newPassword?"text":"password"},null,8,["modelValue","type"]),M("i",{class:F(`cus-pwd iconfont ${i.type.newPassword?"icon-eye2":"icon-eye"}`),onClick:v[5]||(v[5]=D=>i.type.newPassword=!i.type.newPassword)},null,2)]),_:1}),E(w,{label:"确认密码",prop:"confirmPassword"},{default:P(()=>[E(_,{modelValue:i.changePwd.confirmPassword,"onUpdate:modelValue":v[6]||(v[6]=D=>i.changePwd.confirmPassword=D),type:i.type.confirmPassword?"text":"password"},null,8,["modelValue","type"]),M("i",{class:F(`cus-pwd iconfont ${i.type.confirmPassword?"icon-eye2":"icon-eye"}`),onClick:v[7]||(v[7]=D=>i.type.confirmPassword=!i.type.confirmPassword)},null,2)]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["modelValue"])])}}}),uSe=En(lSe,[["__scopeId","data-v-988e81de"]]),cSe={class:"site_name"},dSe=J({__name:"Sidebar",setup(e){const t=Qe("collapse"),n=Ct({site:{siteName:String,logo:String}}),r=()=>{window.open("/index")},a=()=>{tn("/manage/config/basic").then(i=>{i.code==0?n.site=i.data:at.error({message:i.msg})})};return ht(()=>{a()}),(i,o)=>{const s=O1,l=n3,u=et,c=r3,d=t3;return x(),U("div",null,[E(d,{"default-active":"2",class:"side-nav",router:"",collapse:f(t).collapse.value},{default:P(()=>[E(l,{index:"",onClick:r},{title:P(()=>[M("b",cSe,de(n.site.siteName),1)]),default:P(()=>[E(s,{class:"logo",size:30,src:n.site.logo.toString(),alt:"GoFilm"},null,8,["src"])]),_:1}),E(c,{index:"/manage/index"},{title:P(()=>[E(u,null,{default:P(()=>[E(f(kz))]),_:1}),o[0]||(o[0]=M("span",null,"网站管理",-1))]),default:P(()=>[E(l,{index:"/manage/system/webSite"},{default:P(()=>o[1]||(o[1]=[we("站点管理")])),_:1}),E(l,{index:"/manage/system/banners"},{default:P(()=>o[2]||(o[2]=[we("海报管理")])),_:1})]),_:1}),E(c,{index:"/manage/collect"},{title:P(()=>[E(u,null,{default:P(()=>[E(f(Mz))]),_:1}),o[3]||(o[3]=M("span",null,"采集管理",-1))]),default:P(()=>[E(l,{index:"/manage/collect/index"},{default:P(()=>o[4]||(o[4]=[we("影视采集")])),_:1}),E(l,{index:"/manage/collect/record"},{default:P(()=>o[5]||(o[5]=[we("失效记录")])),_:1})]),_:1}),E(c,{index:"/manage/cron"},{title:P(()=>[E(u,null,{default:P(()=>[E(f(pj))]),_:1}),o[6]||(o[6]=M("span",null,"定时任务",-1))]),default:P(()=>[E(l,{index:"/manage/cron/index"},{default:P(()=>o[7]||(o[7]=[we("任务管理")])),_:1})]),_:1}),E(c,{index:"/manage/film"},{title:P(()=>[E(u,null,{default:P(()=>[E(f(gz))]),_:1}),o[8]||(o[8]=M("span",null,"影片管理",-1))]),default:P(()=>[E(l,{index:"/manage/film/class"},{default:P(()=>o[9]||(o[9]=[we("影视分类")])),_:1}),E(l,{index:"/manage/film"},{default:P(()=>o[10]||(o[10]=[we("影视信息")])),_:1}),E(l,{index:"/manage/film/add"},{default:P(()=>o[11]||(o[11]=[we("影片添加")])),_:1}),E(l,{index:"/manage/film/detail"},{default:P(()=>o[12]||(o[12]=[we("视频详情")])),_:1})]),_:1}),E(c,{index:"/manage/file"},{title:P(()=>[E(u,null,{default:P(()=>[E(f(bz))]),_:1}),o[13]||(o[13]=M("span",null,"文件管理",-1))]),default:P(()=>[E(l,{index:"/manage/file/upload"},{default:P(()=>o[14]||(o[14]=[we("文件上传")])),_:1}),E(l,{index:"/manage/file/gallery"},{default:P(()=>o[15]||(o[15]=[we("图库管理")])),_:1})]),_:1})]),_:1},8,["collapse"])])}}}),fSe=En(dSe,[["__scopeId","data-v-85bbcc11"]]),pSe={class:"container"},hSe=J({__name:"ManageHome",setup(e){const t=z(!1);return Vt("collapse",{collapse:t,changeCollapse:()=>{t.value=!t.value}}),(r,a)=>{const i=uO,o=B1,s=Rt("router-view"),l=V1,u=$1;return x(),U("div",pSe,[E(u,null,{default:P(()=>[E(i,{width:t.value?"auto":"190px",class:"side"},{default:P(()=>[E(fSe)]),_:1},8,["width"]),E(u,null,{default:P(()=>[E(o,{class:"header"},{default:P(()=>[E(uSe)]),_:1}),E(l,{class:"view"},{default:P(()=>[E(s)]),_:1})]),_:1})]),_:1})])}}}),mSe=En(hSe,[["__scopeId","data-v-da813000"]]),vSe={class:"container"},gSe={class:"cus_util"},ySe={class:"dialog-footer"},bSe={class:"dialog-footer"},_Se={class:"dialog-footer"},TSe={class:"dialog-footer"},wSe={class:"dialog-footer"},SSe=J({__name:"CollectManage",setup(e){const t=Ct({siteList:[],collectDuration:[{time:24,label:"采集今日"},{time:168,label:"采集本周"},{time:-1,label:"采集全部"}],password:""}),n=Ct({addV:!1,editV:!1,batchV:!1,clear:!1,reCollect:!1}),r=Ct({add:{name:"",uri:"",resultModel:0,grade:1,collectType:0,syncPictures:!1,state:!1,interval:0},edit:{id:"",name:"",uri:"",resultModel:0,grade:1,collectType:0,syncPictures:!1,state:!1,interval:0},batch:{ids:[],time:0},options:[]}),a=()=>{n.batchV=!0,tn("/manage/collect/options").then(T=>{T.code===0?r.options=T.data:at.error({message:T.msg})})},i=()=>{er("/manage/spider/start",{ids:r.batch.ids,time:r.batch.time,batch:!0}).then(T=>{T.code===0?(at.success({message:T.msg}),v(),m()):at.error({message:T.msg})})},o=T=>{er("/manage/spider/start",{id:T.id,time:T.cd,batch:!1}).then(b=>{b.code===0?(at.success({message:b.msg}),m()):at.error({message:b.msg})})},s=T=>{switch(T){case 0:r.add.syncPictures=r.add.syncPictures&&r.add.grade==0;break;case 1:r.edit.syncPictures=r.edit.syncPictures&&r.edit.grade==0;break}},l=()=>{er("/manage/collect/add",r.add).then(T=>{T.code===0?(at.success({message:T.msg}),v(),m()):at.error({message:T.msg})})},u=T=>{er("/manage/collect/test",T).then(b=>{b.code===0?at.success({message:b.msg}):at.error({message:b.msg})})},c=T=>{tn("/manage/collect/find",{id:T}).then(b=>{b.code===0?r.edit=b.data:at.error({message:b.msg})}),n.editV=!0},d=T=>{er("/manage/collect/change",{id:T.id,state:T.state,syncPictures:T.syncPictures}).then(b=>{b.code===0?(at.success({message:b.msg}),m()):at.error({message:b.msg})})},p=T=>{er("/manage/collect/update",T).then(b=>{b.code===0?(at.success({message:b.msg}),n.editV=!1,m()):at.error({message:b.msg})})},h=T=>{tn("/manage/collect/del",{id:T}).then(b=>{b.code===0?(at.success({message:b.msg}),m()):at.error({message:b.msg})})},v=()=>{n.addV=!1,n.editV=!1,n.batchV=!1,r.add={name:"",uri:"",resultModel:0,grade:1,collectType:0,syncPictures:!1,state:!1,interval:0}},m=()=>{tn("/manage/collect/list").then(T=>{T.code===0?t.siteList=T.data.map(b=>{switch(b.collectType){case 0:b.collectTypeText="视频";break;case 1:b.collectTypeText="文章";break;case 2:b.collectTypeText="演员";break;case 3:b.collectTypeText="角色";break;case 4:b.collectTypeText="网站";break}return b.cd=24,b}):at.error({message:T.msg})})},g=()=>{if(t.password.length<=0){at.error({message:"操作失败, 密钥信息缺失"});return}tn("/manage/spider/clear",{password:t.password}).then(T=>{T.code===0?at.success({message:T.msg}):at.error({message:T.msg}),n.clear=!1,t.password=""})},y=()=>{if(t.password.length<=0){at.error({message:"操作失败, 密钥信息缺失"});return}tn("/manage/spider/zero",{password:t.password}).then(T=>{T.code===0?at.success({message:T.msg}):at.error({message:T.msg}),n.reCollect=!1,t.password=""})};return ht(()=>{m()}),(T,b)=>{const _=Yl,w=ai,S=XO,A=gp,I=Ko,D=ii,O=_n,V=Gl,N=Wn,K=ho,Y=vp,q=ar,$=zv,j=R1,W=po,H=Fc;return x(),U("div",vSe,[E(V,{data:t.siteList,style:{width:"100%"},border:"",size:"default","row-class-name":"cus-tr","table-layout":"auto"},{default:P(()=>[E(_,{prop:"name",label:"资源名称"}),E(_,{prop:"resultModel",align:"center",label:"数据类型"},{default:P(X=>[E(w,{"disable-transitions":""},{default:P(()=>[we(de(X.row.resultModel==0?"JSON":"XML"),1)]),_:2},1024)]),_:1}),E(_,{prop:"collectType",align:"center",label:"资源类型"},{default:P(X=>[E(w,{"disable-transitions":""},{default:P(()=>[we(de(X.row.collectTypeText),1)]),_:2},1024)]),_:1}),E(_,{prop:"uri",label:"资源站"},{default:P(X=>[E(S,{href:X.row.uri,target:"_blank"},{default:P(()=>[we(de(X.row.uri),1)]),_:2},1032,["href"])]),_:1}),E(_,{prop:"syncPictures",align:"center",label:"同步图片"},{default:P(X=>[E(A,{onChange:re=>d(X.row),disabled:X.row.grade==1,modelValue:X.row.syncPictures,"onUpdate:modelValue":re=>X.row.syncPictures=re,"inline-prompt":"","active-text":"开启","inactive-text":"关闭"},null,8,["onChange","disabled","modelValue","onUpdate:modelValue"])]),_:1}),E(_,{prop:"state",align:"center",label:"是否启用"},{default:P(X=>[E(A,{onChange:re=>d(X.row),modelValue:X.row.state,"onUpdate:modelValue":re=>X.row.state=re,"inline-prompt":"","active-text":"启用","inactive-text":"禁用"},null,8,["onChange","modelValue","onUpdate:modelValue"])]),_:1}),E(_,{prop:"grade",align:"center",label:"站点权重"},{default:P(X=>[E(w,{"disable-transitions":"",type:`${X.row.grade==0?"success":"info"}`},{default:P(()=>[we(de(X.row.grade==0?"采集主站":"附属站点"),1)]),_:2},1032,["type"])]),_:1}),E(_,{prop:"grade",align:"center",label:"采集间隔"},{default:P(X=>[E(w,{"disable-transitions":"",type:"success"},{default:P(()=>[we(de(X.row.interval>0?`${X.row.interval} ms`:"无限制"),1)]),_:2},1024)]),_:1}),E(_,{label:"采集方式"},{default:P(X=>[E(D,{modelValue:X.row.cd,"onUpdate:modelValue":re=>X.row.cd=re,class:"m-2",placeholder:"Select",size:"small"},{default:P(()=>[(x(!0),U(Ge,null,mt(t.collectDuration,re=>(x(),he(I,{key:re.time,label:re.label,value:re.time},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:1}),E(_,{label:"操作",align:"center"},{default:P(X=>[E(O,{type:"success",icon:f(uj),plain:"",circle:"",onClick:re=>o(X.row)},null,8,["icon","onClick"]),E(O,{type:"primary",icon:f(lp),plain:"",circle:"",onClick:re=>c(X.row.id)},null,8,["icon","onClick"]),E(O,{type:"danger",icon:f(Kl),plain:"",circle:"",onClick:re=>h(X.row.id)},null,8,["icon","onClick"])]),_:1})]),_:1},8,["data"]),M("div",gSe,[E(O,{color:"#9b49e7",icon:f(HI),onClick:b[0]||(b[0]=X=>n.addV=!0)},{default:P(()=>b[39]||(b[39]=[we("添加采集站")])),_:1},8,["icon"]),E(O,{color:"#d942bf",onClick:a,icon:f(f1)},{default:P(()=>b[40]||(b[40]=[we("一键采集")])),_:1},8,["icon"]),E(O,{type:"danger",icon:f(uz),onClick:b[1]||(b[1]=X=>n.clear=!0)},{default:P(()=>b[41]||(b[41]=[we("RemoveAll")])),_:1},8,["icon"]),E(O,{type:"primary",icon:f(UI),onClick:b[2]||(b[2]=X=>n.reCollect=!0)},{default:P(()=>b[42]||(b[42]=[we("AutoCollect")])),_:1},8,["icon"])]),E(H,{modelValue:n.addV,"onUpdate:modelValue":b[15]||(b[15]=X=>n.addV=X),title:"添加采集站点"},{footer:P(()=>[M("span",ySe,[E(O,{color:"#cf48be",onClick:b[13]||(b[13]=X=>u(r.add))},{default:P(()=>b[52]||(b[52]=[we("测试")])),_:1}),E(O,{color:"#9b49e7",onClick:l},{default:P(()=>b[53]||(b[53]=[we("添加")])),_:1}),E(O,{onClick:b[14]||(b[14]=X=>n.addV=!1)},{default:P(()=>b[54]||(b[54]=[we("取消")])),_:1})])]),default:P(()=>[E(W,{model:r.add},{default:P(()=>[E(K,{label:"资源名称"},{default:P(()=>[E(N,{modelValue:r.add.name,"onUpdate:modelValue":b[3]||(b[3]=X=>r.add.name=X),placeholder:"自定义资源名称(禁用汉字)"},null,8,["modelValue"])]),_:1}),E(K,{label:"接口地址"},{default:P(()=>[E(N,{modelValue:r.add.uri,"onUpdate:modelValue":b[4]||(b[4]=X=>r.add.uri=X),placeholder:"资源采集链接,本站只采集综合资源或m3u8资源"},null,8,["modelValue"])]),_:1}),E(K,{label:"间隔时长"},{default:P(()=>[E(q,{class:"box-item",effect:"dark",content:"单次采集请求的时间间隔, 单位/ms",placement:"top"},{default:P(()=>[E(Y,{modelValue:r.add.interval,"onUpdate:modelValue":b[5]||(b[5]=X=>r.add.interval=X),min:0,step:100,"step-strictly":""},null,8,["modelValue"])]),_:1})]),_:1}),E(K,{label:"接口类型"},{default:P(()=>[E(j,{modelValue:r.add.resultModel,"onUpdate:modelValue":b[6]||(b[6]=X=>r.add.resultModel=X)},{default:P(()=>[E($,{label:0},{default:P(()=>b[43]||(b[43]=[we("JSON")])),_:1}),E($,{disabled:"",label:1},{default:P(()=>b[44]||(b[44]=[we("XML")])),_:1})]),_:1},8,["modelValue"])]),_:1}),E(K,{label:"资源类型"},{default:P(()=>[E(j,{fill:"#9b49e7",modelValue:r.add.collectType,"onUpdate:modelValue":b[7]||(b[7]=X=>r.add.collectType=X)},{default:P(()=>[E($,{fill:"#9b49e7",label:0},{default:P(()=>b[45]||(b[45]=[we("视频")])),_:1}),E($,{disabled:"",label:1},{default:P(()=>b[46]||(b[46]=[we("文章")])),_:1}),E($,{disabled:"",label:2},{default:P(()=>b[47]||(b[47]=[we("演员")])),_:1}),E($,{disabled:"",label:3},{default:P(()=>b[48]||(b[48]=[we("角色")])),_:1}),E($,{disabled:"",label:4},{default:P(()=>b[49]||(b[49]=[we("网站")])),_:1})]),_:1},8,["modelValue"])]),_:1}),E(K,{label:"站点权重"},{default:P(()=>[E(j,{onChange:b[8]||(b[8]=X=>s(0)),fill:"#9b49e7",modelValue:r.add.grade,"onUpdate:modelValue":b[9]||(b[9]=X=>r.add.grade=X)},{default:P(()=>[E($,{label:0},{default:P(()=>b[50]||(b[50]=[we("主站点")])),_:1}),E($,{label:1},{default:P(()=>b[51]||(b[51]=[we("附属站点")])),_:1})]),_:1},8,["modelValue"])]),_:1}),E(K,{label:"图片同步"},{default:P(()=>[E(A,{modelValue:r.add.syncPictures,"onUpdate:modelValue":b[10]||(b[10]=X=>r.add.syncPictures=X),onChange:b[11]||(b[11]=X=>s(0)),"inline-prompt":"","active-text":"开启","inactive-text":"关闭"},null,8,["modelValue"])]),_:1}),E(K,{label:"是否启用"},{default:P(()=>[E(A,{modelValue:r.add.state,"onUpdate:modelValue":b[12]||(b[12]=X=>r.add.state=X),"inline-prompt":"","active-text":"启用","inactive-text":"禁用"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),E(H,{modelValue:n.editV,"onUpdate:modelValue":b[29]||(b[29]=X=>n.editV=X),title:"修改资源站信息"},{footer:P(()=>[M("span",bSe,[E(O,{color:"#cf48be",onClick:b[26]||(b[26]=X=>u(r.edit))},{default:P(()=>b[64]||(b[64]=[we("测试")])),_:1}),E(O,{color:"#9b49e7",onClick:b[27]||(b[27]=X=>p(r.edit))},{default:P(()=>b[65]||(b[65]=[we("更新")])),_:1}),E(O,{onClick:b[28]||(b[28]=X=>n.editV=!1)},{default:P(()=>b[66]||(b[66]=[we("取消")])),_:1})])]),default:P(()=>[E(W,{model:r.edit},{default:P(()=>[E(K,{label:"资源名称"},{default:P(()=>[E(N,{modelValue:r.edit.name,"onUpdate:modelValue":b[16]||(b[16]=X=>r.edit.name=X),placeholder:"自定义资源名称(禁用汉字)"},null,8,["modelValue"])]),_:1}),E(K,{label:"接口地址"},{default:P(()=>[E(N,{modelValue:r.edit.uri,"onUpdate:modelValue":b[17]||(b[17]=X=>r.edit.uri=X),placeholder:"资源采集链接,本站只采集综合资源或m3u8资源"},null,8,["modelValue"])]),_:1}),E(K,{label:"间隔时长"},{default:P(()=>[E(q,{class:"box-item",effect:"dark",content:"单次采集请求的时间间隔, 单位/ms",placement:"top"},{default:P(()=>[E(Y,{modelValue:r.edit.interval,"onUpdate:modelValue":b[18]||(b[18]=X=>r.edit.interval=X),min:0,step:100,"step-strictly":""},null,8,["modelValue"])]),_:1})]),_:1}),E(K,{label:"接口类型"},{default:P(()=>[E(j,{modelValue:r.edit.resultModel,"onUpdate:modelValue":b[19]||(b[19]=X=>r.edit.resultModel=X)},{default:P(()=>[E($,{label:0},{default:P(()=>b[55]||(b[55]=[we("JSON")])),_:1}),E($,{disabled:"",label:1},{default:P(()=>b[56]||(b[56]=[we("XML")])),_:1})]),_:1},8,["modelValue"])]),_:1}),E(K,{label:"资源类型"},{default:P(()=>[E(j,{fill:"#9b49e7",modelValue:r.edit.collectType,"onUpdate:modelValue":b[20]||(b[20]=X=>r.edit.collectType=X)},{default:P(()=>[E($,{fill:"#9b49e7",label:0},{default:P(()=>b[57]||(b[57]=[we("视频")])),_:1}),E($,{disabled:"",label:1},{default:P(()=>b[58]||(b[58]=[we("文章")])),_:1}),E($,{disabled:"",label:2},{default:P(()=>b[59]||(b[59]=[we("演员")])),_:1}),E($,{disabled:"",label:3},{default:P(()=>b[60]||(b[60]=[we("角色")])),_:1}),E($,{disabled:"",label:4},{default:P(()=>b[61]||(b[61]=[we("网站")])),_:1})]),_:1},8,["modelValue"])]),_:1}),E(K,{label:"站点权重"},{default:P(()=>[E(j,{fill:"#9b49e7",onChange:b[21]||(b[21]=X=>s(1)),modelValue:r.edit.grade,"onUpdate:modelValue":b[22]||(b[22]=X=>r.edit.grade=X)},{default:P(()=>[E($,{label:0},{default:P(()=>b[62]||(b[62]=[we("主站点")])),_:1}),E($,{label:1},{default:P(()=>b[63]||(b[63]=[we("附属站点")])),_:1})]),_:1},8,["modelValue"])]),_:1}),E(K,{label:"图片同步"},{default:P(()=>[E(A,{modelValue:r.edit.syncPictures,"onUpdate:modelValue":b[23]||(b[23]=X=>r.edit.syncPictures=X),onChange:b[24]||(b[24]=X=>s(1)),"inline-prompt":"","active-text":"开启","inactive-text":"关闭"},null,8,["modelValue"])]),_:1}),E(K,{label:"是否启用"},{default:P(()=>[E(A,{modelValue:r.edit.state,"onUpdate:modelValue":b[25]||(b[25]=X=>r.edit.state=X),"inline-prompt":"","active-text":"启用","inactive-text":"禁用"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),E(H,{modelValue:n.batchV,"onUpdate:modelValue":b[32]||(b[32]=X=>n.batchV=X),width:"450px",title:"多资源站一键采集"},{footer:P(()=>[M("span",_Se,[E(O,{color:"#9b49e7",onClick:i},{default:P(()=>b[67]||(b[67]=[we("确认执行")])),_:1}),E(O,{onClick:v},{default:P(()=>b[68]||(b[68]=[we("取消")])),_:1})])]),default:P(()=>[E(W,{model:r.batch},{default:P(()=>[E(K,{label:"执行站点"},{default:P(()=>[E(D,{modelValue:r.batch.ids,"onUpdate:modelValue":b[30]||(b[30]=X=>r.batch.ids=X),multiple:"","collapse-tags":"","collapse-tags-tooltip":"",placeholder:"Select",style:{width:"240px"}},{default:P(()=>[(x(!0),U(Ge,null,mt(r.options,X=>(x(),he(I,{key:X.id,label:X.name,value:X.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),E(K,{label:"采集时长"},{default:P(()=>[E(q,{class:"box-item",effect:"dark",content:"采集最近x小时更新的影片,负数则默认采集所有资源",placement:"top"},{default:P(()=>[E(Y,{modelValue:r.batch.time,"onUpdate:modelValue":b[31]||(b[31]=X=>r.batch.time=X),step:1,"step-strictly":""},null,8,["modelValue"])]),_:1})]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),E(H,{modelValue:n.clear,"onUpdate:modelValue":b[35]||(b[35]=X=>n.clear=X),title:"是否清除所有影视数据 ?",width:"500"},{footer:P(()=>[M("div",TSe,[E(O,{onClick:b[34]||(b[34]=X=>n.clear=!1)},{default:P(()=>b[69]||(b[69]=[we("取消")])),_:1}),E(O,{type:"primary",onClick:g},{default:P(()=>b[70]||(b[70]=[we("确认执行")])),_:1})])]),default:P(()=>[E(W,{model:r},{default:P(()=>[E(K,{label:"确认密码"},{default:P(()=>[E(N,{modelValue:t.password,"onUpdate:modelValue":b[33]||(b[33]=X=>t.password=X),type:"password",placeholder:"请输入账户密码并开确认执行",autocomplete:"off","show-password":""},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),E(H,{modelValue:n.reCollect,"onUpdate:modelValue":b[38]||(b[38]=X=>n.reCollect=X),title:"是否清除影片数据并重新采集 ?",width:"500"},{footer:P(()=>[M("div",wSe,[E(O,{onClick:b[37]||(b[37]=X=>n.reCollect=!1)},{default:P(()=>b[71]||(b[71]=[we("取消")])),_:1}),E(O,{type:"primary",onClick:y},{default:P(()=>b[72]||(b[72]=[we("确认执行")])),_:1})])]),default:P(()=>[E(W,{model:r},{default:P(()=>[E(K,{label:"确认密码"},{default:P(()=>[E(N,{modelValue:t.password,"onUpdate:modelValue":b[36]||(b[36]=X=>t.password=X),type:"password",placeholder:"请输入账户密码并开确认执行",autocomplete:"off","show-password":""},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])])}}}),CSe={class:"container"},ESe={class:"content"},xSe=J({__name:"SiteConfig",setup(e){const t=Ct({site:{siteName:"",domain:"",logo:"",keyword:"",describe:"",state:!0,hint:""}}),n=()=>{er("/manage/config/basic/update",t.site).then(a=>{a.code===0?(at.success({message:a.msg}),r()):at.error({message:a.msg})})},r=()=>{tn("/manage/config/basic").then(a=>{a.code===0?t.site=a.data:at.error({message:a.msg})})};return ht(()=>{r()}),(a,i)=>{const o=Wn,s=ho,l=gp,u=_n,c=po;return x(),U("div",CSe,[i[9]||(i[9]=M("h2",{class:"title"},"网站基础参数配置",-1)),M("div",ESe,[E(c,{size:"large",model:t.site,"label-width":"120px"},{default:P(()=>[E(s,{label:"网站名称"},{default:P(()=>[E(o,{modelValue:t.site.siteName,"onUpdate:modelValue":i[0]||(i[0]=d=>t.site.siteName=d)},null,8,["modelValue"])]),_:1}),E(s,{label:"网站域名"},{default:P(()=>[E(o,{modelValue:t.site.domain,"onUpdate:modelValue":i[1]||(i[1]=d=>t.site.domain=d)},null,8,["modelValue"])]),_:1}),E(s,{label:"网站Logo"},{default:P(()=>[E(o,{modelValue:t.site.logo,"onUpdate:modelValue":i[2]||(i[2]=d=>t.site.logo=d)},null,8,["modelValue"])]),_:1}),E(s,{label:"搜索关键字"},{default:P(()=>[E(o,{modelValue:t.site.keyword,"onUpdate:modelValue":i[3]||(i[3]=d=>t.site.keyword=d)},null,8,["modelValue"])]),_:1}),E(s,{label:"网站描述"},{default:P(()=>[E(o,{modelValue:t.site.describe,"onUpdate:modelValue":i[4]||(i[4]=d=>t.site.describe=d)},null,8,["modelValue"])]),_:1}),E(s,{label:"网站状态"},{default:P(()=>[E(l,{modelValue:t.site.state,"onUpdate:modelValue":i[5]||(i[5]=d=>t.site.state=d),"inline-prompt":"","active-text":"开启","inactive-text":"关闭"},null,8,["modelValue"])]),_:1}),E(s,{label:"维护提示"},{default:P(()=>[E(o,{modelValue:t.site.hint,"onUpdate:modelValue":i[6]||(i[6]=d=>t.site.hint=d)},null,8,["modelValue"])]),_:1}),E(s,null,{default:P(()=>[E(u,{color:"#9b49e7",onClick:n},{default:P(()=>i[7]||(i[7]=[we("更新")])),_:1}),E(u,{onClick:r},{default:P(()=>i[8]||(i[8]=[we("重置")])),_:1})]),_:1})]),_:1},8,["model"])])])}}}),kSe=En(xSe,[["__scopeId","data-v-3c90743b"]]),ASe={class:"container"},DSe={class:"cus_util"},ISe={class:"dialog-footer"},PSe={class:"dialog-footer"},OSe=J({__name:"CronManage",setup(e){const t=Ct({taskList:[]}),n=Ct({addV:!1,editV:!1}),r=Ct({add:{spec:"",remark:"",model:1,ids:[],time:0,state:!1},options:[],edit:{id:"",cid:"",spec:"",remark:"",model:1,ids:[],time:0,state:!1}}),a=()=>{er("/manage/cron/add",r.add).then(h=>{h.code===0?(at.success({message:h.msg}),o(),p()):at.error({message:h.msg})})},i=()=>{er("/manage/cron/update",{id:r.edit.id,ids:r.edit.ids,time:r.edit.time,state:r.edit.state,remark:r.edit.remark}).then(h=>{h.code===0?(at.success({message:h.msg}),o(),p()):at.error({message:h.msg})})},o=()=>{n.addV=!1,n.editV=!1,r.add={spec:"",remark:"",model:1,ids:[],time:0,state:!1},r.edit={id:"",cid:"",spec:"",remark:"",model:1,ids:[],time:0,state:!1}},s=()=>{n.addV=!0,d()},l=h=>{tn("/manage/cron/del",{id:h}).then(v=>{v.code===0?(at.success({message:v.msg}),p()):at.error({message:v.msg})})},u=(h,v)=>{er("/manage/cron/change",{id:h,state:v}).then(m=>{m.code===0?(at.success({message:m.msg}),p()):at.error({message:m.msg})})},c=h=>{n.editV=!0,d(),tn("/manage/cron/find",{id:h}).then(v=>{v.code===0?r.edit=v.data:at.error({message:v.msg})})},d=()=>{tn("/manage/collect/options").then(h=>{h.code===0?r.options=h.data:at.error({message:h.msg})})},p=()=>{tn("/manage/cron/list").then(h=>{h.code===0?t.taskList=h.data:(t.taskList=[],at.warning({message:h.msg}))})};return ht(()=>{p()}),(h,v)=>{const m=ai,g=Yl,y=gp,T=_n,b=Gl,_=Wn,w=ho,S=zv,A=ar,I=R1,D=Ko,O=ii,V=vp,N=po,K=Fc;return x(),U("div",ASe,[E(b,{data:t.taskList,style:{width:"100%"},border:"",size:"default","row-class-name":"cus-tr","table-layout":"auto"},{default:P(()=>[E(g,{prop:"id",label:"任务ID"},{default:P(Y=>[E(m,{"disable-transitions":""},{default:P(()=>[we(de(Y.row.id),1)]),_:2},1024)]),_:1}),E(g,{prop:"remark",label:"任务描述"}),E(g,{prop:"model",align:"center",label:"任务类型"},{default:P(Y=>[E(m,{"disable-transitions":""},{default:P(()=>[we(de(Y.row.model==0?"自动更新":Y.row.model==0?"自定义任务":"采集重试"),1)]),_:2},1024)]),_:1}),E(g,{prop:"state",align:"center",label:"是否启用"},{default:P(Y=>[E(y,{modelValue:Y.row.state,"onUpdate:modelValue":q=>Y.row.state=q,onChange:q=>u(Y.row.id,Y.row.state),"inline-prompt":"","active-text":"启用","inactive-text":"禁用"},null,8,["modelValue","onUpdate:modelValue","onChange"])]),_:1}),E(g,{prop:"preV",align:"center",label:"上次执行时间"},{default:P(Y=>[E(m,{type:"success","disable-transitions":""},{default:P(()=>[we(de(Y.row.preV),1)]),_:2},1024)]),_:1}),E(g,{prop:"next",align:"center",label:"下次执行时间"},{default:P(Y=>[E(m,{type:"warning","disable-transitions":""},{default:P(()=>[we(de(Y.row.next),1)]),_:2},1024)]),_:1}),E(g,{label:"操作",align:"center"},{default:P(Y=>[E(T,{type:"primary",icon:f(lp),plain:"",circle:"",onClick:q=>c(Y.row.id)},null,8,["icon","onClick"]),E(T,{type:"danger",icon:f(Kl),plain:"",circle:"",onClick:q=>l(Y.row.id)},null,8,["icon","onClick"])]),_:1})]),_:1},8,["data"]),M("div",DSe,[E(T,{color:"#9b49e7",icon:f(u1),onClick:s},{default:P(()=>v[12]||(v[12]=[we("创建定时任务")])),_:1},8,["icon"])]),E(K,{modelValue:n.addV,"onUpdate:modelValue":v[6]||(v[6]=Y=>n.addV=Y),title:"创建定时任务"},{footer:P(()=>[M("span",ISe,[E(T,{color:"#9b49e7",onClick:a},{default:P(()=>v[16]||(v[16]=[we("添加")])),_:1}),E(T,{onClick:o},{default:P(()=>v[17]||(v[17]=[we("取消")])),_:1})])]),default:P(()=>[E(N,{model:r.add},{default:P(()=>[E(w,{label:"任务周期"},{default:P(()=>[E(_,{modelValue:r.add.spec,"onUpdate:modelValue":v[0]||(v[0]=Y=>r.add.spec=Y),placeholder:"定时任务Cron表达式 (例: [0 */20 * * * ?] 每20分钟执行一次)"},null,8,["modelValue"])]),_:1}),E(w,{label:"任务描述"},{default:P(()=>[E(_,{modelValue:r.add.remark,"onUpdate:modelValue":v[1]||(v[1]=Y=>r.add.remark=Y),placeholder:"定时任务描述信息"},null,8,["modelValue"])]),_:1}),E(w,{label:"任务类型"},{default:P(()=>[E(I,{fill:"#9b49e7",modelValue:r.add.model,"onUpdate:modelValue":v[2]||(v[2]=Y=>r.add.model=Y)},{default:P(()=>[E(A,{class:"box-item",effect:"dark",content:"执行所有已启用站点的采集任务",placement:"top"},{default:P(()=>[E(S,{label:0},{default:P(()=>v[13]||(v[13]=[we("自动更新")])),_:1})]),_:1}),E(A,{class:"box-item",effect:"dark",content:"只执行指定站点的采集任务",placement:"top"},{default:P(()=>[E(S,{label:1},{default:P(()=>v[14]||(v[14]=[we("自定义更新")])),_:1})]),_:1}),E(A,{class:"box-item",effect:"dark",content:"失败采集重试处理",placement:"top"},{default:P(()=>[E(S,{label:2},{default:P(()=>v[15]||(v[15]=[we("采集重试")])),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1}),r.add.model==1?(x(),he(w,{key:0,label:"资源绑定"},{default:P(()=>[E(O,{modelValue:r.add.ids,"onUpdate:modelValue":v[3]||(v[3]=Y=>r.add.ids=Y),multiple:"","collapse-tags":"","collapse-tags-tooltip":"",placeholder:"Select",style:{width:"240px"}},{default:P(()=>[(x(!0),U(Ge,null,mt(r.options,Y=>(x(),he(D,{key:Y.id,label:Y.name,value:Y.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):oe("",!0),r.add.model!=2?(x(),he(w,{key:1,label:"采集时长"},{default:P(()=>[E(A,{class:"box-item",effect:"dark",content:"采集最近x小时更新的影片,负数则默认采集所有资源",placement:"top"},{default:P(()=>[E(V,{modelValue:r.add.time,"onUpdate:modelValue":v[4]||(v[4]=Y=>r.add.time=Y),step:1,"step-strictly":""},null,8,["modelValue"])]),_:1})]),_:1})):oe("",!0),E(w,{label:"任务状态"},{default:P(()=>[E(y,{modelValue:r.add.state,"onUpdate:modelValue":v[5]||(v[5]=Y=>r.add.state=Y),"inline-prompt":"","active-text":"开启","inactive-text":"禁用"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),E(K,{modelValue:n.editV,"onUpdate:modelValue":v[11]||(v[11]=Y=>n.editV=Y),title:"创建定时任务"},{footer:P(()=>[M("span",PSe,[E(T,{color:"#9b49e7",onClick:i},{default:P(()=>v[18]||(v[18]=[we("更新")])),_:1}),E(T,{onClick:o},{default:P(()=>v[19]||(v[19]=[we("取消")])),_:1})])]),default:P(()=>[E(N,{model:r.edit},{default:P(()=>[E(w,{label:"任务标识"},{default:P(()=>[E(m,{type:"success","disable-transitions":""},{default:P(()=>[we(de(r.edit.id),1)]),_:1})]),_:1}),E(w,{label:"任务描述"},{default:P(()=>[E(_,{modelValue:r.edit.remark,"onUpdate:modelValue":v[7]||(v[7]=Y=>r.edit.remark=Y),placeholder:"定时任务描述信息"},null,8,["modelValue"])]),_:1}),E(w,{label:"任务周期"},{default:P(()=>[E(m,{"disable-transitions":""},{default:P(()=>[we(de(r.edit.spec),1)]),_:1})]),_:1}),E(w,{label:"任务类型"},{default:P(()=>[E(m,{"disable-transitions":""},{default:P(()=>[we(de(r.edit.model==0?"自动更新":r.edit.model==1?"自定义更新":"采集重试"),1)]),_:1})]),_:1}),r.edit.model==1?(x(),he(w,{key:0,label:"资源绑定"},{default:P(()=>[E(O,{modelValue:r.edit.ids,"onUpdate:modelValue":v[8]||(v[8]=Y=>r.edit.ids=Y),multiple:"","collapse-tags":"","collapse-tags-tooltip":"",placeholder:"Select",style:{width:"240px"}},{default:P(()=>[(x(!0),U(Ge,null,mt(r.options,Y=>(x(),he(D,{key:Y.id,label:Y.name,value:Y.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):oe("",!0),r.edit.model!=2?(x(),he(w,{key:1,label:"采集时长"},{default:P(()=>[E(A,{class:"box-item",effect:"dark",content:"采集最近x小时更新的影片,负数则默认采集所有资源",placement:"top"},{default:P(()=>[E(V,{modelValue:r.edit.time,"onUpdate:modelValue":v[9]||(v[9]=Y=>r.edit.time=Y),step:1,"step-strictly":""},null,8,["modelValue"])]),_:1})]),_:1})):oe("",!0),E(w,{label:"任务状态"},{default:P(()=>[E(y,{modelValue:r.edit.state,"onUpdate:modelValue":v[10]||(v[10]=Y=>r.edit.state=Y),"inline-prompt":"","active-text":"开启","inactive-text":"禁用"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])])}}}),MSe=En(OSe,[["__scopeId","data-v-adc315d6"]]),RSe={};function LSe(e,t){return x(),U("div",null,t[0]||(t[0]=[M("h2",{style:{color:"#8e48b4"}},"功能开发中, 请关注后续更新",-1)]))}const sA=En(RSe,[["render",LSe]]),NSe={class:"container"},FSe={class:"cus_util"},$Se={class:"dialog-footer"},BSe=J({__name:"FilmClass",setup(e){const t=Ct({classTree:[]}),n=Ct({editV:!1,editForm:{id:-99,pid:-99,name:"",show:!0,children:[]}}),r=c=>{tn("/manage/film/class/del",{id:c}).then(d=>{d.code===0?(u(),at.success({message:d.msg})):at.error({message:d.msg})})},a=c=>{n.editV=!0,tn("/manage/film/class/find",{id:c}).then(d=>{d.code===0?n.editForm=d.data:at.error({message:d.msg})})},i=()=>{let{id:c,name:d,show:p}=n.editForm;er("/manage/film/class/update",{id:c,name:d,show:p}).then(h=>{h.code===0?(n.editV=!1,u(),at.success({message:h.msg})):at.error({message:h.msg})})},o=(c,d)=>{er("/manage/film/class/update",{id:c,show:d}).then(p=>{p.code===0?(n.editV=!1,u(),at.success({message:p.msg})):at.error({message:p.msg})})},s=()=>{n.editForm={id:-99,pid:-99,name:"",show:!0,children:[]}},l=()=>{tn("/manage/spider/class/cover").then(c=>{c.code===0?at.success({message:c.msg}):at.error({message:c.msg})})},u=()=>{tn("/manage/film/class/tree").then(c=>{c.code===0?t.classTree=c.data.children:at.error({message:c.msg})})};return ht(()=>{u()}),(c,d)=>{const p=ai,h=Yl,v=gp,m=_n,g=Gl,y=Wn,T=ho,b=po,_=Fc;return x(),U("div",NSe,[E(g,{data:t.classTree,style:{width:"100%"},border:"",size:"default","table-layout":"auto","max-height":"calc(90vh - 20px)","row-key":"id","row-class-name":"cus-tr"},{default:P(()=>[E(h,{prop:"name",label:"分类名称"},{default:P(w=>[E(p,{type:w.row.pid==0?"success":"warning","disable-transitions":""},{default:P(()=>[we(de(w.row.name),1)]),_:2},1032,["type"])]),_:1}),E(h,{prop:"show",align:"center",label:"是否展示"},{default:P(w=>[w.row.pid==0?(x(),he(v,{key:0,modelValue:w.row.show,"onUpdate:modelValue":S=>w.row.show=S,"inline-prompt":"","active-text":"展示","inactive-text":"隐藏",onChange:S=>o(w.row.id,w.row.show)},null,8,["modelValue","onUpdate:modelValue","onChange"])):(x(),he(v,{key:1,modelValue:w.row.show,"onUpdate:modelValue":S=>w.row.show=S,"inline-prompt":"","active-text":"屏蔽","inactive-text":"恢复",onChange:S=>o(w.row.id,w.row.show)},null,8,["modelValue","onUpdate:modelValue","onChange"]))]),_:1}),E(h,{label:"操作",align:"center"},{default:P(w=>[E(m,{type:"primary",icon:f(lp),onClick:S=>a(w.row.id),plain:"",circle:""},null,8,["icon","onClick"]),E(m,{type:"danger",icon:f(Kl),onClick:S=>r(w.row.id),plain:"",circle:""},null,8,["icon","onClick"])]),_:1})]),_:1},8,["data"]),M("div",FSe,[E(m,{color:"#9b49e7",icon:f(zI),onClick:l},{default:P(()=>d[4]||(d[4]=[we("重置分类信息")])),_:1},8,["icon"])]),E(_,{modelValue:n.editV,"onUpdate:modelValue":d[3]||(d[3]=w=>n.editV=w),onClose:s,width:"480px",title:"更新分类信息"},{footer:P(()=>[M("span",$Se,[E(m,{color:"#9b49e7",onClick:i},{default:P(()=>d[5]||(d[5]=[we("更新")])),_:1}),E(m,{onClick:d[2]||(d[2]=w=>n.editV=!1)},{default:P(()=>d[6]||(d[6]=[we("取消")])),_:1})])]),default:P(()=>[E(b,{model:n.editForm},{default:P(()=>[E(T,{label:"分类名称"},{default:P(()=>[E(y,{modelValue:n.editForm.name,"onUpdate:modelValue":d[0]||(d[0]=w=>n.editForm.name=w),placeholder:"分类名称,用于首页导航展示"},null,8,["modelValue"])]),_:1}),E(T,{label:"分类层级"},{default:P(()=>[E(p,{type:n.editForm.pid==0?"success":"warning","disable-transitions":""},{default:P(()=>[we(de(n.editForm.pid==0?"一级分类":"二级分类"),1)]),_:1},8,["type"])]),_:1}),E(T,{label:"是否展示"},{default:P(()=>[E(v,{modelValue:n.editForm.show,"onUpdate:modelValue":d[1]||(d[1]=w=>n.editForm.show=w),"inline-prompt":"","active-text":"展示","inactive-text":"隐藏"},null,8,["modelValue"])]),_:1}),n.editForm.children?(x(),he(T,{key:0,class:"class_sub",label:"拓展分类"},{default:P(()=>[(x(!0),U(Ge,null,mt(n.editForm.children,w=>(x(),he(p,{class:"class_sub_tag",type:"warning","disable-transitions":""},{default:P(()=>[we(de(w.name),1)]),_:2},1024))),256))]),_:1})):oe("",!0)]),_:1},8,["model"])]),_:1},8,["modelValue"])])}}}),VSe=En(BSe,[["__scopeId","data-v-851447aa"]]),USe={class:"container"},HSe={class:"params_form"},zSe={class:"content"},jSe={style:{color:"#8b40ff"}},WSe={class:"pagination"},KSe=J({__name:"Film",setup(e){const t=Ct({list:[],page:{current:1,pageCount:0,pageSize:10,total:0},params:{name:"",pid:0,cid:0,plot:"",area:"",language:"",year:"",remarks:"",beginTime:"",endTime:""},options:{class:[{id:0,pid:-1,name:"",show:!0}],Plot:[],Area:[],Language:[],year:[],remarks:[]},dateGroup:[],classId:0});let n={};const r=u=>{for(let c=0;c<t.options.class.length;c++)if(t.options.class[c].id==u){let d=t.options.class[c];if(d.pid<=0){t.params.pid=d.id,t.params.cid=0;return}else if(d.pid==t.params.pid){t.params.pid=d.pid,t.params.cid=d.id;return}t.params.pid=d.pid,t.params.cid=d.id;let p=d.pid==0?n[d.id]:n[d.pid];p?(t.options.Plot=p.Plot,t.options.Area=p.Area,t.options.Language=p.Language):(t.options.Plot=[],t.options.Area=[],t.options.Language=[]),t.params.plot="",t.params.area="",t.params.language=""}},a=u=>(t.page.current-1)*t.page.pageSize+u+1,i=()=>{let u=t.params;t.dateGroup&&t.dateGroup.length==2?(u.beginTime=t.dateGroup[0],u.endTime=t.dateGroup[1]):(u.beginTime="",u.endTime=""),s()},o=u=>{tn("/manage/spider/update/single",{ids:u}).then(c=>{c.code===0?at.success({message:c.msg}):at.error({message:c.msg})})},s=()=>{let{current:u,pageSize:c}=t.page,d=t.params;tn("/manage/film/search/list",{...d,current:u,pageSize:c}).then(p=>{p.code===0?(t.list=p.data.list?p.data.list.map(h=>(h.year=h.year<=0?"未知":h.year,h.score=h.score==0?"暂无":h.score,h)):[],t.page=p.data.params.paging,t.options.class=p.data.options.class,t.options.remarks=p.data.options.remarks,t.options.year=p.data.options.year,n=p.data.options.tags):at.error({message:p.msg})})};ht(()=>{s()});const l=u=>{tn("/manage/film/search/del",{id:u}).then(c=>{c.code===0?(at.success({message:c.msg}),s()):at.error({message:c.msg})})};return(u,c)=>{const d=Wn,p=ho,h=Ko,v=ii,m=G1,g=_n,y=po,T=Yl,b=ai,_=Gl,w=Vc;return x(),U("div",USe,[M("div",HSe,[E(y,{model:t.params,class:"cus_form"},{default:P(()=>[E(p,null,{default:P(()=>[E(d,{modelValue:t.params.name,"onUpdate:modelValue":c[0]||(c[0]=S=>t.params.name=S),style:{display:"inline-block","text-align":"left"},placeholder:"片名搜素","suffix-icon":f(Tf)},null,8,["modelValue","suffix-icon"])]),_:1}),E(p,null,{default:P(()=>[E(v,{modelValue:t.classId,"onUpdate:modelValue":c[1]||(c[1]=S=>t.classId=S),onChange:r,placeholder:"影片分类"},{default:P(()=>[(x(!0),U(Ge,null,mt(t.options.class,S=>(x(),he(h,{key:S.id,label:S.name,value:S.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),E(p,null,{default:P(()=>[E(v,{modelValue:t.params.plot,"onUpdate:modelValue":c[2]||(c[2]=S=>t.params.plot=S),placeholder:"剧情筛选"},{default:P(()=>[(x(!0),U(Ge,null,mt(t.options.Plot,S=>(x(),he(h,{key:S.Value,label:S.Name,value:S.Value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),E(p,null,{default:P(()=>[E(v,{modelValue:t.params.area,"onUpdate:modelValue":c[3]||(c[3]=S=>t.params.area=S),placeholder:"地区筛选"},{default:P(()=>[(x(!0),U(Ge,null,mt(t.options.Area,S=>(x(),he(h,{key:S.Value,label:S.Name,value:S.Value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),E(p,null,{default:P(()=>[E(v,{modelValue:t.params.language,"onUpdate:modelValue":c[4]||(c[4]=S=>t.params.language=S),placeholder:"语言筛选"},{default:P(()=>[(x(!0),U(Ge,null,mt(t.options.Language,S=>(x(),he(h,{key:S.Value,label:S.Name,value:S.Value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),E(p,null,{default:P(()=>[E(v,{modelValue:t.params.year,"onUpdate:modelValue":c[5]||(c[5]=S=>t.params.year=S),placeholder:"上映年份"},{default:P(()=>[(x(!0),U(Ge,null,mt(t.options.year,S=>(x(),he(h,{key:S.Value,label:S.Name,value:S.Value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),E(p,null,{default:P(()=>[E(v,{modelValue:t.params.remarks,"onUpdate:modelValue":c[6]||(c[6]=S=>t.params.remarks=S),placeholder:"更新状态"},{default:P(()=>[(x(!0),U(Ge,null,mt(t.options.remarks,S=>(x(),he(h,{key:S.Value,label:S.Name,value:S.Value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),E(p,null,{default:P(()=>[E(m,{modelValue:t.dateGroup,"onUpdate:modelValue":c[7]||(c[7]=S=>t.dateGroup=S),"value-format":"YYYY-MM-DD HH:mm:ss",type:"datetimerange","start-placeholder":"起始时间","end-placeholder":"终止时间"},null,8,["modelValue"])]),_:1}),E(p,null,{default:P(()=>[E(g,{type:"primary",onClick:i},{default:P(()=>c[12]||(c[12]=[we("查询")])),_:1})]),_:1})]),_:1},8,["model"])]),M("div",zSe,[E(_,{data:t.list,style:{width:"100%"},border:"",size:"default","table-layout":"auto","max-height":"calc(68vh - 20px)","row-key":"id","row-class-name":"cus-tr"},{default:P(()=>[E(T,{type:"index","min-width":"40px",align:"left",label:"序号"},{default:P(S=>[M("span",jSe,de(a(S.$index)),1)]),_:1}),E(T,{prop:"mid",align:"center",label:"影片ID"},{default:P(S=>[E(b,{type:"success","disable-transitions":""},{default:P(()=>[we(de(S.row.mid),1)]),_:2},1024)]),_:1}),E(T,{prop:"name",align:"left",label:"影片名称","show-overflow-tooltip":"","class-name":"col_name"}),E(T,{prop:"cName",align:"center",label:"所属分类"},{default:P(S=>[E(b,{type:"warning","disable-transitions":""},{default:P(()=>[we(de(S.row.cName),1)]),_:2},1024)]),_:1}),E(T,{prop:"year",align:"center",label:"年份"},{default:P(S=>[E(b,{type:"warning","disable-transitions":""},{default:P(()=>[we(de(S.row.year),1)]),_:2},1024)]),_:1}),E(T,{sortable:"",prop:"score",align:"center",label:"评分"},{default:P(S=>[E(b,{type:"success","disable-transitions":""},{default:P(()=>[we(de(S.row.score),1)]),_:2},1024)]),_:1}),E(T,{sortable:"",prop:"hits",align:"center",label:"热度"},{default:P(S=>[E(b,{type:"danger","disable-transitions":""},{default:P(()=>[we("🔥"+de(S.row.hits),1)]),_:2},1024)]),_:1}),E(T,{prop:"remarks",align:"center",label:"更新状态"},{default:P(S=>[(S.row.remarks+"").indexOf("更新")!=-1?(x(),he(b,{key:0,type:"warning"},{default:P(()=>[we(de(S.row.remarks),1)]),_:2},1024)):(x(),he(b,{key:1,type:"success"},{default:P(()=>[we(de(S.row.remarks),1)]),_:2},1024))]),_:1}),E(T,{sortable:"",prop:"updateStamp",align:"center",label:"更新时间"},{default:P(S=>[E(b,{type:"success","disable-transitions":""},{default:P(()=>[we(de(f(rf).dateFormat(S.row.updateStamp*1e3)),1)]),_:2},1024)]),_:1}),E(T,{label:"操作",align:"center","min-width":"100px"},{default:P(S=>[E(g,{type:"success",icon:f(N7),onClick:c[8]||(c[8]=()=>{}),plain:"",circle:""},null,8,["icon"]),E(g,{type:"success",icon:f(p1),onClick:A=>o(S.row.mid),plain:"",circle:""},null,8,["icon","onClick"]),E(g,{type:"primary",icon:f(lp),onClick:c[9]||(c[9]=()=>{}),plain:"",circle:""},null,8,["icon"]),E(g,{type:"danger",icon:f(Kl),onClick:A=>l(S.row.ID),plain:"",circle:""},null,8,["icon","onClick"])]),_:1})]),_:1},8,["data"]),M("div",WSe,[E(w,{"page-sizes":[10,20,50,100,500],background:"",layout:"prev, pager, next, sizes, total, jumper",total:t.page.total,"page-size":t.page.pageSize,"onUpdate:pageSize":c[10]||(c[10]=S=>t.page.pageSize=S),"current-page":t.page.current,"onUpdate:currentPage":c[11]||(c[11]=S=>t.page.current=S),onChange:s,"hide-on-single-page":""},null,8,["total","page-size","current-page"])])])])}}}),qSe=En(KSe,[["__scopeId","data-v-37405ef0"]]),GSe=J({__name:"ImageViewer",props:{options:{type:Object,default:{list:Array,currentLink:String,show:Boolean}},remove:{type:Function,default:null}},setup(e){const t=e,n=Ct({show:!1,list:[{link:""}],zIndex:2e3,initialIndex:0,infinite:!0,hideOnClickModal:!1});return ht(()=>{var r;n.list=t.options.list,n.list.forEach((a,i)=>{a==t.options.currentLink&&(n.initialIndex=i)}),n.show=(r=t.options)==null?void 0:r.show}),Ie([n],()=>{!n.show&&t.remove()}),(r,a)=>{const i=n2;return n.show?(x(),he(i,{key:0,urlList:n.list,"z-index":n.zIndex,"initial-index":n.initialIndex,infinite:n.infinite,hideOnClickModal:n.hideOnClickModal,onClose:a[0]||(a[0]=o=>n.show=!1)},null,8,["urlList","z-index","initial-index","infinite","hideOnClickModal"])):oe("",!0)}}}),YSe=e=>{e.show=!0;const t=document.createElement("div");document.body.appendChild(t);const n=Cv(GSe,{options:e,remove(){n.unmount(),document.body.removeChild(t)}});return n.mount(t)},XSe={class:"container"},QSe={class:"content"},JSe={class:"el-upload-list__item-actions"},ZSe=["onClick"],eCe=["onClick"],tCe={class:"pagination"},nCe=J({__name:"FileUpload",setup(e){const t=Ct({photoWall:[],page:{current:1,pageSize:39,pageNumber:0,total:0},imgList:[""]}),n=o=>{let s=o.file,l=new FormData;l.append("file",s),er("/manage/file/upload",l).then(u=>{u.code===0?(at.success({message:u.msg}),r()):at.error({message:u.msg})})},r=()=>{tn("/manage/file/list",{current:t.page.current}).then(o=>{o.code===0?(t.photoWall=o.data.list,t.page=o.data.page):at.error({message:o.msg})})};ht(()=>{r()});const a=o=>{tn("/manage/file/del",{id:o.ID}).then(s=>{s.code===0?(r(),at.success({message:s.msg})):at.error({message:s.msg})})},i=o=>{let s=t.photoWall.map(l=>l.link);YSe({list:s,currentLink:o.link})};return(o,s)=>{const l=qv,u=et,c=tg,d=Vc;return x(),U("div",XSe,[M("div",QSe,[E(c,{"file-list":t.photoWall,"onUpdate:fileList":s[0]||(s[0]=p=>t.photoWall=p),action:"#","list-type":"picture-card","http-request":n},{file:P(({file:p})=>[E(l,{class:"el-upload-list__item-thumbnail",style:{width:"100%",height:"100%"},src:p.link,fit:"cover"},null,8,["src"]),M("span",JSe,[M("span",{class:"el-upload-list__item-preview",onClick:h=>i(p)},[E(u,null,{default:P(()=>[E(f(h1))]),_:1})],8,ZSe),oe("",!0),M("span",{class:"el-upload-list__item-delete",onClick:h=>a(p)},[E(u,null,{default:P(()=>[E(f(Kl))]),_:1})],8,eCe)])]),default:P(()=>[E(u,null,{default:P(()=>[E(f(d1))]),_:1})]),_:1},8,["file-list"]),M("div",tCe,[E(d,{background:"",layout:"prev, pager, next",total:t.page.total,"page-size":t.page.pageSize,"onUpdate:pageSize":s[1]||(s[1]=p=>t.page.pageSize=p),"current-page":t.page.current,"onUpdate:currentPage":s[2]||(s[2]=p=>t.page.current=p),onChange:r,"hide-on-single-page":""},null,8,["total","page-size","current-page"])])])])}}}),rCe=En(nCe,[["__scopeId","data-v-a9066a0b"]]),aCe={class:"container"},iCe=J({__name:"FilmAdd",setup(e){const t={id:0,cid:0,pid:0,name:"",picture:"",subTitle:"",cName:"",enName:"",initial:"",classTag:"",actor:"",director:"",writer:"",blurb:"",content:"",remarks:"",releaseDate:"",area:"",lang:"",year:"",state:"",updateTime:"",addTime:"",dbId:0,dbScore:"",hits:0,playForm:"",playLink:""},n=Ct({form:t,options:{category:[{id:0,name:"分类名称",pid:0}]}}),r=o=>{let s=o.file,l=new FormData;l.append("file",s),er("/manage/file/upload",l).then(u=>{u.code===0?(at.success({message:u.msg}),n.form.picture=u.data):at.error({message:u.msg})})},a=o=>{n.options.category.forEach(s=>{s.id==o&&(n.form.cid=s.id,n.form.pid=s.pid,n.form.cName=s.name)})},i=()=>{let o=n.form;o.dbId=o.dbId-0,o.hits=o.hits-0,er("/manage/film/add",{...n.form}).then(s=>{s.code===0?(at.success({message:s.msg}),n.form=t):at.error({message:s.msg})})};return ht(()=>{tn("/manage/film/class/tree").then(o=>{if(o.code===0){let s=[{id:0,name:"分类名称",pid:0}];s.pop(),o.data.children.forEach(l=>{l.children&&l.children.length>0&&(s=[...s,...l.children])}),n.options.category=s}else at.error({message:o.msg})})}),(o,s)=>{const l=Ko,u=ii,c=ho,d=Wn,p=_n,h=tg,v=po;return x(),U("div",aCe,[s[45]||(s[45]=M("h2",{style:{"text-align":"start"}},"添加影片",-1)),E(v,{model:n.form,class:"film_add_form"},{default:P(()=>[E(c,null,{default:P(()=>[s[21]||(s[21]=M("div",{class:"el-input-group__prepend",style:{border:"1px solid #dcdfe6","border-right":"none","border-radius":"3px",height:"32px"}},"影片分类: ",-1)),E(u,{modelValue:n.currentClass,"onUpdate:modelValue":s[0]||(s[0]=m=>n.currentClass=m),style:{width:"calc(100% - 103px)"},onChange:a,placeholder:"影片分类选择"},{default:P(()=>[(x(!0),U(Ge,null,mt(n.options.category,m=>(x(),he(l,{key:m.id,label:m.name,value:m.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),E(c,null,{default:P(()=>[E(d,{modelValue:n.form.name,"onUpdate:modelValue":s[1]||(s[1]=m=>n.form.name=m),placeholder:"请输入影片名称",clearable:""},{prepend:P(()=>s[22]||(s[22]=[we("影片名称: ")])),_:1},8,["modelValue"])]),_:1}),E(c,null,{default:P(()=>[E(d,{modelValue:n.form.subTitle,"onUpdate:modelValue":s[2]||(s[2]=m=>n.form.subTitle=m),placeholder:"影片别名, 可留空",clearable:""},{prepend:P(()=>s[23]||(s[23]=[we("影片别名: ")])),_:1},8,["modelValue"])]),_:1}),E(c,null,{default:P(()=>[E(d,{modelValue:n.form.initial,"onUpdate:modelValue":s[3]||(s[3]=m=>n.form.initial=m),placeholder:"影片检索首字母, 大写",clearable:""},{prepend:P(()=>s[24]||(s[24]=[we("首字母: ")])),_:1},8,["modelValue"])]),_:1}),E(c,null,{default:P(()=>[E(d,{modelValue:n.form.classTag,"onUpdate:modelValue":s[4]||(s[4]=m=>n.form.classTag=m),placeholder:"影片剧情标签(多标签以逗号分隔): 奇幻,校园,爱情",clearable:""},{prepend:P(()=>s[25]||(s[25]=[we("剧情Tag: ")])),_:1},8,["modelValue"])]),_:1}),E(c,null,{default:P(()=>[E(d,{modelValue:n.form.director,"onUpdate:modelValue":s[5]||(s[5]=m=>n.form.director=m),placeholder:"导演名, 多个名称以逗号进行分隔",clearable:""},{prepend:P(()=>s[26]||(s[26]=[we("导演: ")])),_:1},8,["modelValue"])]),_:1}),E(c,null,{default:P(()=>[E(d,{modelValue:n.form.actor,"onUpdate:modelValue":s[6]||(s[6]=m=>n.form.actor=m),placeholder:"主演名, 多个名称以逗号进行分隔",clearable:""},{prepend:P(()=>s[27]||(s[27]=[we("主演: ")])),_:1},8,["modelValue"])]),_:1}),E(c,null,{default:P(()=>[E(d,{modelValue:n.form.writer,"onUpdate:modelValue":s[7]||(s[7]=m=>n.form.writer=m),placeholder:"作者名, 多个名称以逗号进行分隔",clearable:""},{prepend:P(()=>s[28]||(s[28]=[we("作者: ")])),_:1},8,["modelValue"])]),_:1}),E(c,null,{default:P(()=>[E(d,{modelValue:n.form.remarks,"onUpdate:modelValue":s[8]||(s[8]=m=>n.form.remarks=m),placeholder:"影片更新进度信息, 完结, HD, 更新至xx集",clearable:""},{prepend:P(()=>s[29]||(s[29]=[we("更新状态: ")])),_:1},8,["modelValue"])]),_:1}),E(c,null,{default:P(()=>[E(d,{modelValue:n.form.releaseDate,"onUpdate:modelValue":s[9]||(s[9]=m=>n.form.releaseDate=m),placeholder:"影片上映时间: YYYY-MM-DD",clearable:""},{prepend:P(()=>s[30]||(s[30]=[we("上映时间: ")])),_:1},8,["modelValue"])]),_:1}),E(c,null,{default:P(()=>[E(d,{modelValue:n.form.area,"onUpdate:modelValue":s[10]||(s[10]=m=>n.form.area=m),placeholder:"影片来源地区信息",clearable:""},{prepend:P(()=>s[31]||(s[31]=[we("地区: ")])),_:1},8,["modelValue"])]),_:1}),E(c,null,{default:P(()=>[E(d,{modelValue:n.form.lang,"onUpdate:modelValue":s[11]||(s[11]=m=>n.form.lang=m),placeholder:"影片语言信息",clearable:""},{prepend:P(()=>s[32]||(s[32]=[we("语言: ")])),_:1},8,["modelValue"])]),_:1}),E(c,null,{default:P(()=>[E(d,{modelValue:n.form.year,"onUpdate:modelValue":s[12]||(s[12]=m=>n.form.year=m),placeholder:"影片上映年份信息: YYYY",clearable:""},{prepend:P(()=>s[33]||(s[33]=[we("年份: ")])),_:1},8,["modelValue"])]),_:1}),E(c,null,{default:P(()=>[E(d,{modelValue:n.form.state,"onUpdate:modelValue":s[13]||(s[13]=m=>n.form.state=m),placeholder:" 影片状态: 正片 | 预告片",clearable:""},{prepend:P(()=>s[34]||(s[34]=[we("影片状态: ")])),_:1},8,["modelValue"])]),_:1}),E(c,null,{default:P(()=>[E(d,{modelValue:n.form.dbId,"onUpdate:modelValue":s[14]||(s[14]=m=>n.form.dbId=m),placeholder:"豆瓣ID",clearable:""},{prepend:P(()=>s[35]||(s[35]=[we("豆瓣Id: ")])),_:1},8,["modelValue"])]),_:1}),E(c,null,{default:P(()=>[E(d,{modelValue:n.form.dbScore,"onUpdate:modelValue":s[15]||(s[15]=m=>n.form.dbScore=m),placeholder:"豆瓣评分",clearable:""},{prepend:P(()=>s[36]||(s[36]=[we("豆瓣评分: ")])),_:1},8,["modelValue"])]),_:1}),E(c,null,{default:P(()=>[E(d,{modelValue:n.form.hits,"onUpdate:modelValue":s[16]||(s[16]=m=>n.form.hits=m),placeholder:"影片热度(播放数)",clearable:""},{prepend:P(()=>s[37]||(s[37]=[we("影片热度: ")])),_:1},8,["modelValue"])]),_:1}),E(c,null,{default:P(()=>[E(d,{modelValue:n.form.picture,"onUpdate:modelValue":s[17]||(s[17]=m=>n.form.picture=m),placeholder:"输入图片URL链接或点击上传到服务器并自动生成URL连接信息)",clearable:""},{prepend:P(()=>s[38]||(s[38]=[we("影片海报: ")])),append:P(()=>[E(h,{class:"upload-demo","show-file-list":!1,action:"#","http-request":r},{default:P(()=>[E(p,{type:"primary"},{default:P(()=>s[39]||(s[39]=[we("上传图片")])),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1}),E(c,null,{default:P(()=>[E(d,{modelValue:n.form.playForm,"onUpdate:modelValue":s[18]||(s[18]=m=>n.form.playForm=m),placeholder:"影片播放资源来源: xxXm3u8",clearable:""},{prepend:P(()=>s[40]||(s[40]=[we("播放来源: ")])),_:1},8,["modelValue"])]),_:1}),E(c,null,{label:P(()=>s[41]||(s[41]=[M("span",{class:"el-input-group__prepend cus_label"},"剧情简介: ",-1)])),default:P(()=>[E(d,{modelValue:n.form.content,"onUpdate:modelValue":s[19]||(s[19]=m=>n.form.content=m),autosize:{minRows:2,maxRows:5},type:"textarea",placeholder:"影片剧情描述信息"},null,8,["modelValue"])]),_:1}),E(c,{label:"播放地址:"},{label:P(()=>s[42]||(s[42]=[M("span",{class:"el-input-group__prepend cus_label"},"播放地址: ",-1)])),default:P(()=>[E(d,{modelValue:n.form.playLink,"onUpdate:modelValue":s[20]||(s[20]=m=>n.form.playLink=m),autosize:{minRows:2,maxRows:5},type:"textarea",placeholder:`影片播放地址信息:
格式: 第01集$https://xxx/xxx/index.m3u8#第02集$https://xxx/xxx/index.m3u8`},null,8,["modelValue"])]),_:1}),E(c,{class:"form_btn"},{default:P(()=>[E(p,{type:"primary",onClick:i},{default:P(()=>s[43]||(s[43]=[we("添加影片")])),_:1}),E(p,null,{default:P(()=>s[44]||(s[44]=[we("清空信息")])),_:1})]),_:1})]),_:1},8,["model"])])}}}),oCe=En(iCe,[["__scopeId","data-v-ef79630f"]]),sCe={class:"container"},lCe={class:"player_header"},uCe={class:"player_link"},cCe={class:"player_area"},dCe=J({__name:"CustomPlay",setup(e){const t=Ct({link:"",options:{title:"",src:"",volume:.6,currentTime:50}}),n=s=>{switch(s.preventDefault(),s.keyCode){case 32:s.target.paused?s.target.play():s.target.pause();break;case 37:s.target.currentTime=s.target.currentTime-5<0?0:s.target.currentTime-5;break;case 39:s.target.currentTime=s.target.currentTime+5>s.target.duration?s.target.duration:s.target.currentTime+5;break;case 38:t.options.volume=t.options.volume+.05>1?1:t.options.volume+.05;break;case 40:t.options.volume=t.options.volume-.05<0?0:t.options.volume-.05;break}},r=s=>{let l=document.getElementsByTagName("video")[0];l.focus();const u=document.createEvent("HTMLEvents");u.initEvent("keydown",!0,!1),u.keyCode=s,l.dispatchEvent(u)},a=s=>{let l=document.getElementsByClassName("vjs-button");for(let u of l)u.addEventListener("keydown",function(c){c.preventDefault(),r(c.keyCode)})},i=s=>{a()},o=()=>{if(!/(^http[s]?:\/\/[^\s]+\.m3u8$)|(^http[s]?:\/\/[^\s]+\.mp4$)/.test(t.link)){at.error({message:"视频链接格式异常, 请输入正确的播放链接!!!"});return}t.options.src=t.link,document.getElementsByTagName("video")[0].play()};return(s,l)=>(x(),U("div",sCe,[M("div",lCe,[M("div",uCe,[gt(M("input",{type:"text","onUpdate:modelValue":l[0]||(l[0]=u=>t.link=u),onKeyup:sn(o,["enter"]),placeholder:"请输入视频播放地址, mp4 或 m3u8 格式",class:"cus-input"},null,544),[[no,t.link]]),M("button",{class:"iconfont icon-play",onClick:o})])]),M("div",cCe,[E(f(HN),{onMounted:i,src:t.options.src,poster:f(LM),controls:"",loop:!1,onKeydown:n,bufferedPercent:30,volume:t.options.volume,crossorigin:"anonymous",playsinline:"",class:"video-player","playback-rates":[.5,1,1.5,2]},null,8,["src","poster","volume"])])]))}}),fCe=En(dCe,[["__scopeId","data-v-ec46972d"]]),pCe={class:"cus_util"},hCe={class:"dialog-footer"},mCe={class:"film_view"},vCe={class:"film_intro"},gCe={class:"tags"},yCe={class:"tag_c"},bCe={class:"blurb"},_Ce={class:"dialog-footer"},TCe={class:"dialog-footer"},wCe={class:"film_view"},SCe={class:"film_intro"},CCe={class:"tags"},ECe={class:"tag_c"},xCe={class:"blurb"},kCe={class:"dialog-footer"},ACe={class:"film_view"},DCe=["href"],ICe={class:"film_intro"},PCe={class:"tags"},OCe={class:"tag_c"},MCe={class:"blurb"},RCe={class:"dialog-footer"},LCe=J({__name:"Banners",setup(e){const t=Ct({banners:[],banner:{id:"",mid:0,name:"",cName:"",poster:"",picture:"",year:0,remark:"",sort:0},loading:!1,FilmId:"",film:{},options:[{}],dialogV:{addV:!1,editV:!1,bindV:!1,addBindV:!1,editBindV:!1}}),n=()=>{t.banner={id:"",mid:0,name:"",cName:"",poster:"",picture:"",year:0,remark:"",sort:0},t.dialogV.addV=!0},r=()=>{t.banner.mid=t.film.id,t.banner.name=t.film.name,t.banner.cName=t.film.cName,t.banner.picture=t.film.picture,t.banner.year=parseInt(t.film.year),t.banner.remark=t.film.remarks,t.dialogV.addBindV=!1,t.dialogV.editBindV=!1,at.success({message:"影片信息绑定成功!!!"})},a=()=>{er("/manage/banner/add",t.banner).then(m=>{m.code===0?(at.success({message:m.msg}),t.banner={id:"",mid:0,name:"",cName:"",poster:"",picture:"",year:0,remark:"",sort:0},t.dialogV.addV=!1,v()):at.error({message:m.msg})})},i=m=>{t.banner=m,t.dialogV.editV=!0},o=()=>{er("/manage/banner/update",t.banner).then(m=>{m.code===0?(at.success({message:m.msg}),t.banner={id:"",mid:0,name:"",cName:"",poster:"",picture:"",year:0,remark:"",sort:0},t.dialogV.editV=!1,v()):at.error({message:m.msg})})},s=m=>{t.banner=m,t.dialogV.bindV=!0},l=m=>{m&&(t.loading=!0,setTimeout(()=>{t.loading=!1,tn("/searchFilm",{keyword:m,current:0}).then(g=>{g.code==0?t.options=g.data.list:(at.warning({message:g.msg,duration:1e3}),t.options=[])})},1500))},u=m=>{t.options.forEach(g=>{g.id==m&&(t.film=g)})},c=()=>{t.banner.mid=t.film.id,t.banner.name=t.film.name,t.banner.cName=t.film.cName,t.banner.picture=t.film.picture,t.banner.year=parseInt(t.film.year),t.banner.remark=t.film.remarks,er("/manage/banner/update",t.banner).then(m=>{m.code===0?(at.success({message:m.msg}),t.banner={id:"",mid:0,name:"",cName:"",poster:"",picture:"",year:0,remark:"",sort:0},t.dialogV.bindV=!1,v()):at.error({message:m.msg})})},d=m=>{tn("/manage/banner/del",{id:m.id}).then(g=>{g.code===0?(at.success({message:g.msg}),v()):at.error({message:g.msg})})},p=()=>{tn("/cache/del").then(m=>{m.code==0?at.success({message:m.msg}):at.error({message:m.msg})})},h=m=>{let g=m.file,y=new FormData;y.append("file",g),er("/manage/file/upload",y).then(T=>{if(T.code===0){switch(m.data.type){case 0:t.banner.poster=T.data;break;case 1:t.banner.picture=T.data;break}at.success({message:T.msg})}else at.error({message:T.msg})})},v=()=>{tn("/manage/banner/list").then(m=>{m.code===0?t.banners=m.data:at.error({message:m.msg})})};return ht(()=>{v()}),(m,g)=>{const y=Yl,T=ai,b=qv,_=_n,w=ar,S=Gl,A=Wn,I=ho,D=tg,O=vp,V=po,N=T3,K=Fc;return x(),U(Ge,null,[g[58]||(g[58]=M("h2",{style:{color:"#8e48b4"}},"首页横幅管理界面",-1)),E(S,{data:t.banners,style:{width:"100%"},border:"",size:"default","row-class-name":"cus-tr","table-layout":"auto"},{default:P(()=>[E(y,{prop:"name",label:"影片名称"}),E(y,{prop:"collectType",align:"center",label:"影片类型"},{default:P(Y=>[E(T,{type:"warning"},{default:P(()=>[we(de(Y.row.cName),1)]),_:2},1024)]),_:1}),E(y,{prop:"collectType",align:"center",label:"上映年份"},{default:P(Y=>[E(T,{type:"warning"},{default:P(()=>[we(de(Y.row.year),1)]),_:2},1024)]),_:1}),E(y,{prop:"collectType",align:"center",label:"影片海报"},{default:P(Y=>[E(b,{style:{width:"180px",height:"80px"},src:Y.row.poster,"preview-src-list":[Y.row.poster],"preview-teleported":"",fit:"contain"},null,8,["src","preview-src-list"])]),_:1}),E(y,{prop:"collectType",align:"center",label:"影片封面"},{default:P(Y=>[E(b,{style:{width:"60px",height:"80px"},src:Y.row.picture,"preview-src-list":[Y.row.picture],"preview-teleported":"",fit:"cover"},null,8,["src","preview-src-list"])]),_:1}),E(y,{prop:"collectType",align:"center",label:"排序"},{default:P(Y=>[E(T,{"disable-transitions":""},{default:P(()=>[we(de(Y.row.sort),1)]),_:2},1024)]),_:1}),E(y,{prop:"resultModel",align:"center",label:"连载状态"},{default:P(Y=>[(Y.row.remarks+"").search("更新")==-1?(x(),he(T,{key:0,type:"success"},{default:P(()=>[we(de(Y.row.remark),1)]),_:2},1024)):(x(),he(T,{key:1,type:"primary"},{default:P(()=>[we(de(Y.row.remark),1)]),_:2},1024))]),_:1}),E(y,{label:"操作",align:"center"},{default:P(Y=>[E(w,{content:"绑定影片信息",placement:"top"},{default:P(()=>[E(_,{type:"success",icon:f(Iz),plain:"",circle:"",onClick:q=>s(Y.row)},null,8,["icon","onClick"])]),_:2},1024),E(w,{content:"修改海报信息",placement:"top"},{default:P(()=>[E(_,{type:"primary",icon:f(lp),plain:"",circle:"",onClick:q=>i(Y.row)},null,8,["icon","onClick"])]),_:2},1024),E(w,{content:"删除海报信息",placement:"top"},{default:P(()=>[E(_,{type:"danger",icon:f(Kl),plain:"",circle:"",onClick:q=>d(Y.row)},null,8,["icon","onClick"])]),_:2},1024)]),_:1})]),_:1},8,["data"]),M("div",pCe,[E(_,{color:"#9b49e7",icon:f(HI),onClick:n},{default:P(()=>g[31]||(g[31]=[we("添加海报")])),_:1},8,["icon"]),E(_,{type:"danger",icon:f(dj),onClick:p},{default:P(()=>g[32]||(g[32]=[we("清除缓存")])),_:1},8,["icon"])]),E(K,{modelValue:t.dialogV.addV,"onUpdate:modelValue":g[13]||(g[13]=Y=>t.dialogV.addV=Y),width:"680px",title:"添加海报"},{footer:P(()=>[M("span",hCe,[E(_,{color:"#cf48be",onClick:g[8]||(g[8]=Y=>t.dialogV.addBindV=!0)},{default:P(()=>g[35]||(g[35]=[we("绑定影片")])),_:1}),E(_,{color:"#9b49e7",onClick:a},{default:P(()=>g[36]||(g[36]=[we("确认添加")])),_:1}),E(_,{onClick:g[9]||(g[9]=Y=>t.dialogV.addV=!1)},{default:P(()=>g[37]||(g[37]=[we("取消")])),_:1})])]),default:P(()=>[E(V,{model:t.banner},{default:P(()=>[E(I,{label:"影片ID"},{default:P(()=>[E(A,{modelValue:t.banner.mid,"onUpdate:modelValue":g[0]||(g[0]=Y=>t.banner.mid=Y),modelModifiers:{number:!0},placeholder:"影片唯一ID"},null,8,["modelValue"])]),_:1}),E(I,{label:"影片名称"},{default:P(()=>[E(A,{modelValue:t.banner.name,"onUpdate:modelValue":g[1]||(g[1]=Y=>t.banner.name=Y),placeholder:"影片名称"},null,8,["modelValue"])]),_:1}),E(I,{label:"影片分类"},{default:P(()=>[E(A,{modelValue:t.banner.cName,"onUpdate:modelValue":g[2]||(g[2]=Y=>t.banner.cName=Y),placeholder:"影片所属分类"},null,8,["modelValue"])]),_:1}),E(I,{label:"影片海报"},{default:P(()=>[E(A,{modelValue:t.banner.poster,"onUpdate:modelValue":g[3]||(g[3]=Y=>t.banner.poster=Y),placeholder:"影片海报访问URL",class:"upload_input"},null,8,["modelValue"]),E(D,{"show-file-list":!1,action:"#","http-request":h,data:{type:0},class:"upload"},{default:P(()=>[E(_,{color:"#626aef",round:"",plain:"",icon:f(eh),class:"upload_btn"},{default:P(()=>g[33]||(g[33]=[we("Upload")])),_:1},8,["icon"])]),_:1})]),_:1}),E(I,{label:"影片封面"},{default:P(()=>[E(A,{modelValue:t.banner.picture,"onUpdate:modelValue":g[4]||(g[4]=Y=>t.banner.picture=Y),placeholder:"影片封面访问URL",class:"upload_input"},null,8,["modelValue"]),E(D,{"show-file-list":!1,action:"#","http-request":h,data:{type:1},class:"upload"},{default:P(()=>[E(_,{color:"#626aef",round:"",plain:"",icon:f(eh),class:"upload_btn"},{default:P(()=>g[34]||(g[34]=[we("Upload")])),_:1},8,["icon"])]),_:1})]),_:1}),E(I,{label:"更新状态"},{default:P(()=>[E(A,{modelValue:t.banner.remark,"onUpdate:modelValue":g[5]||(g[5]=Y=>t.banner.remark=Y),placeholder:"影片更新状态"},null,8,["modelValue"])]),_:1}),E(I,{label:"上映年份"},{default:P(()=>[E(O,{modelValue:t.banner.year,"onUpdate:modelValue":g[6]||(g[6]=Y=>t.banner.year=Y),min:0,step:1,max:2100,"step-strictly":""},null,8,["modelValue"])]),_:1}),E(I,{label:"排序分值"},{default:P(()=>[E(O,{modelValue:t.banner.sort,"onUpdate:modelValue":g[7]||(g[7]=Y=>t.banner.sort=Y),min:-100,step:1,max:100,"step-strictly":""},null,8,["modelValue"])]),_:1})]),_:1},8,["model"]),E(K,{modelValue:t.dialogV.addBindV,"onUpdate:modelValue":g[12]||(g[12]=Y=>t.dialogV.addBindV=Y),width:"620px",title:"绑定影片","align-center":""},{footer:P(()=>[M("span",_Ce,[E(_,{color:"#9b49e7",onClick:r},{default:P(()=>g[41]||(g[41]=[we("确认绑定")])),_:1}),E(_,{onClick:g[11]||(g[11]=Y=>t.dialogV.addBindV=!1)},{default:P(()=>g[42]||(g[42]=[we("取消")])),_:1})])]),default:P(()=>[E(V,{model:t.banner},{default:P(()=>[E(I,{label:"搜索影片"},{default:P(()=>[E(N,{modelValue:t.FilmId,"onUpdate:modelValue":g[10]||(g[10]=Y=>t.FilmId=Y),filterable:"",props:{label:"name",value:"id"},remote:"","remote-method":l,clearable:"",options:t.options,loading:t.loading,placeholder:"请输入需要绑定的影片名称",onChange:u},null,8,["modelValue","options","loading"])]),_:1}),t.film.id?(x(),he(I,{key:0},{default:P(()=>[M("div",mCe,[M("a",{href:"javascript:void(0);",style:tt({backgroundImage:`url('${t.film.picture}')`})},null,4),M("div",vCe,[M("h3",null,de(t.film.name),1),M("p",gCe,[M("span",yCe,de(t.film.cName),1),M("span",null,de(t.film.year),1),M("span",null,de(t.film.area),1)]),M("p",null,[g[38]||(g[38]=M("em",null,"导演:",-1)),we(de(t.film.director),1)]),M("p",null,[g[39]||(g[39]=M("em",null,"主演:",-1)),we(de(t.film.actor),1)]),M("p",bCe,[g[40]||(g[40]=M("em",null,"剧情:",-1)),we(de((t.film.blurb+"").replaceAll("  ","")),1)])])])]),_:1})):oe("",!0)]),_:1},8,["model"])]),_:1},8,["modelValue"])]),_:1},8,["modelValue"]),E(K,{modelValue:t.dialogV.editV,"onUpdate:modelValue":g[27]||(g[27]=Y=>t.dialogV.editV=Y),width:"680px",title:"修改海报信息"},{footer:P(()=>[M("span",TCe,[E(_,{color:"#cf48be",onClick:g[22]||(g[22]=Y=>t.dialogV.editBindV=!0)},{default:P(()=>g[45]||(g[45]=[we("绑定影片")])),_:1}),E(_,{color:"#9b49e7",onClick:o},{default:P(()=>g[46]||(g[46]=[we("保存")])),_:1}),E(_,{onClick:g[23]||(g[23]=Y=>t.dialogV.editV=!1)},{default:P(()=>g[47]||(g[47]=[we("取消")])),_:1})])]),default:P(()=>[E(V,{model:t.banner},{default:P(()=>[E(I,{label:"影片ID"},{default:P(()=>[E(A,{modelValue:t.banner.mid,"onUpdate:modelValue":g[14]||(g[14]=Y=>t.banner.mid=Y),modelModifiers:{number:!0},placeholder:"影片唯一ID"},null,8,["modelValue"])]),_:1}),E(I,{label:"影片名称"},{default:P(()=>[E(A,{modelValue:t.banner.name,"onUpdate:modelValue":g[15]||(g[15]=Y=>t.banner.name=Y),placeholder:"影片名称"},null,8,["modelValue"])]),_:1}),E(I,{label:"影片分类"},{default:P(()=>[E(A,{modelValue:t.banner.cName,"onUpdate:modelValue":g[16]||(g[16]=Y=>t.banner.cName=Y),placeholder:"影片所属分类"},null,8,["modelValue"])]),_:1}),E(I,{label:"影片海报"},{default:P(()=>[E(A,{modelValue:t.banner.poster,"onUpdate:modelValue":g[17]||(g[17]=Y=>t.banner.poster=Y),placeholder:"影片海报访问URL",class:"upload_input"},null,8,["modelValue"]),E(D,{"show-file-list":!1,action:"#","http-request":h,data:{type:0},class:"upload"},{default:P(()=>[E(_,{color:"#626aef",round:"",plain:"",icon:f(eh),class:"upload_btn"},{default:P(()=>g[43]||(g[43]=[we("Upload")])),_:1},8,["icon"])]),_:1})]),_:1}),E(I,{label:"影片封面"},{default:P(()=>[E(A,{modelValue:t.banner.picture,"onUpdate:modelValue":g[18]||(g[18]=Y=>t.banner.picture=Y),placeholder:"影片封面访问URL",class:"upload_input"},null,8,["modelValue"]),E(D,{"show-file-list":!1,action:"#","http-request":h,data:{type:1},class:"upload"},{default:P(()=>[E(_,{color:"#626aef",round:"",plain:"",icon:f(eh),class:"upload_btn"},{default:P(()=>g[44]||(g[44]=[we("Upload")])),_:1},8,["icon"])]),_:1})]),_:1}),E(I,{label:"更新状态"},{default:P(()=>[E(A,{modelValue:t.banner.remark,"onUpdate:modelValue":g[19]||(g[19]=Y=>t.banner.remark=Y),placeholder:"影片更新状态"},null,8,["modelValue"])]),_:1}),E(I,{label:"上映年份"},{default:P(()=>[E(O,{modelValue:t.banner.year,"onUpdate:modelValue":g[20]||(g[20]=Y=>t.banner.year=Y),min:0,step:1,max:2100,"step-strictly":""},null,8,["modelValue"])]),_:1}),E(I,{label:"排序分值"},{default:P(()=>[E(O,{modelValue:t.banner.sort,"onUpdate:modelValue":g[21]||(g[21]=Y=>t.banner.sort=Y),min:-100,step:1,max:100,"step-strictly":""},null,8,["modelValue"])]),_:1})]),_:1},8,["model"]),E(K,{modelValue:t.dialogV.editBindV,"onUpdate:modelValue":g[26]||(g[26]=Y=>t.dialogV.editBindV=Y),width:"620px",title:"绑定影片","align-center":""},{footer:P(()=>[M("span",kCe,[E(_,{color:"#9b49e7",onClick:r},{default:P(()=>g[51]||(g[51]=[we("确认绑定")])),_:1}),E(_,{onClick:g[25]||(g[25]=Y=>t.dialogV.addBindV=!1)},{default:P(()=>g[52]||(g[52]=[we("取消")])),_:1})])]),default:P(()=>[E(V,{model:t.banner},{default:P(()=>[E(I,{label:"搜索影片"},{default:P(()=>[E(N,{modelValue:t.FilmId,"onUpdate:modelValue":g[24]||(g[24]=Y=>t.FilmId=Y),filterable:"",props:{label:"name",value:"id"},remote:"","remote-method":l,clearable:"",options:t.options,loading:t.loading,placeholder:"请输入需要绑定的影片名称",onChange:u},null,8,["modelValue","options","loading"])]),_:1}),t.film.id?(x(),he(I,{key:0},{default:P(()=>[M("div",wCe,[M("a",{href:"javascript:void(0);",style:tt({backgroundImage:`url('${t.film.picture}')`})},null,4),M("div",SCe,[M("h3",null,de(t.film.name),1),M("p",CCe,[M("span",ECe,de(t.film.cName),1),M("span",null,de(t.film.year),1),M("span",null,de(t.film.area),1)]),M("p",null,[g[48]||(g[48]=M("em",null,"导演:",-1)),we(de(t.film.director),1)]),M("p",null,[g[49]||(g[49]=M("em",null,"主演:",-1)),we(de(t.film.actor),1)]),M("p",xCe,[g[50]||(g[50]=M("em",null,"剧情:",-1)),we(de((t.film.blurb+"").replaceAll("  ","")),1)])])])]),_:1})):oe("",!0)]),_:1},8,["model"])]),_:1},8,["modelValue"])]),_:1},8,["modelValue"]),E(K,{modelValue:t.dialogV.bindV,"onUpdate:modelValue":g[30]||(g[30]=Y=>t.dialogV.bindV=Y),width:"680px",title:"绑定影片"},{footer:P(()=>[M("span",RCe,[E(_,{color:"#9b49e7",onClick:c},{default:P(()=>g[56]||(g[56]=[we("确认绑定")])),_:1}),E(_,{onClick:g[29]||(g[29]=Y=>t.dialogV.bindV=!1)},{default:P(()=>g[57]||(g[57]=[we("取消")])),_:1})])]),default:P(()=>[E(V,{model:t.banner},{default:P(()=>[E(I,{label:"搜索影片"},{default:P(()=>[E(N,{modelValue:t.FilmId,"onUpdate:modelValue":g[28]||(g[28]=Y=>t.FilmId=Y),filterable:"",props:{label:"name",value:"id"},remote:"","remote-method":l,clearable:"",options:t.options,loading:t.loading,placeholder:"请输入需要绑定的影片名称",onChange:u},null,8,["modelValue","options","loading"])]),_:1}),t.film.id?(x(),he(I,{key:0},{default:P(()=>[M("div",ACe,[M("a",{href:`/filmDetail?link=${t.film.id}`,style:tt({backgroundImage:`url('${t.film.picture}')`})},null,12,DCe),M("div",ICe,[M("h3",null,de(t.film.name),1),M("p",PCe,[M("span",OCe,de(t.film.cName),1),M("span",null,de(t.film.year),1),M("span",null,de(t.film.area),1)]),M("p",null,[g[53]||(g[53]=M("em",null,"导演:",-1)),we(de(t.film.director),1)]),M("p",null,[g[54]||(g[54]=M("em",null,"主演:",-1)),we(de(t.film.actor),1)]),M("p",MCe,[g[55]||(g[55]=M("em",null,"剧情:",-1)),we(de((t.film.blurb+"").replaceAll("  ","")),1)])])])]),_:1})):oe("",!0)]),_:1},8,["model"])]),_:1},8,["modelValue"])],64)}}}),NCe=En(LCe,[["__scopeId","data-v-1cc5220e"]]),FCe={key:0,class:"container"},$Ce={class:"card"},BCe={class:"card-left"},VCe=["href"],UCe={class:"card-right"},HCe={class:"card-title"},zCe={class:"card-content"},jCe={class:"card-episode"},WCe={class:"card-time"},KCe={class:"card-episode"},qCe=["onClick"],GCe=J({__name:"FilmHistory",setup(e){const t=Ct({historyList:[{}]}),n=Qe("global"),r=i=>{console.log(i);let o=pi.getCookie(fi.FILM_HISTORY)?JSON.parse(pi.getCookie(fi.FILM_HISTORY)):null;delete o[i],pi.setCookie(fi.FILM_HISTORY,JSON.stringify(o)),a()},a=()=>{let i=pi.getCookie(fi.FILM_HISTORY)?JSON.parse(pi.getCookie(fi.FILM_HISTORY)):null,o=[];if(i){for(let s in i)o.push(i[s]);o.sort((s,l)=>l.timeStamp-s.timeStamp)}t.historyList=o};return ht(()=>{a()}),(i,o)=>{const s=$c;return f(n).isMobile?(x(),U("div",FCe,[(x(!0),U(Ge,null,mt(t.historyList,l=>(x(),U("div",$Ce,[M("div",BCe,[M("a",{class:"card-link",href:l.link,style:tt({backgroundImage:`url(${l.picture})`})},null,12,VCe)]),M("div",UCe,[M("h5",HCe,de(l.name),1),M("div",zCe,[M("p",jCe,de(`已观看: ${l.progress}`),1),M("p",WCe,[M("b",{class:F(`iconfont ${l.devices?"icon-mobile":"icon-pc1"}`)},null,2),we(de(l.time),1)]),M("p",KCe,de(l.episode),1)])]),M("a",{onClick:u=>r(l.id),class:"iconfont icon-cancel1"},null,8,qCe)]))),256)),t.historyList&&t.historyList.length<=0?(x(),he(s,{key:0,style:{padding:"10px 0"},description:"暂无观看记录"})):oe("",!0)])):oe("",!0)}}}),YCe=En(GCe,[["__scopeId","data-v-82fc2d75"]]),XCe={class:"container"},QCe={class:"params_form"},JCe={class:"content"},ZCe={style:{color:"#8b40ff"}},eEe={class:"pagination"},tEe={class:"cus_util"},nEe=J({__name:"FailureRecord",setup(e){const t=Ct({records:[],page:{current:1,pageCount:0,pageSize:10,total:0},params:{originId:"",collectType:-1,status:-1,betweenTime:"",endTime:""},dateGroup:[],options:{origin:[],collectType:[],status:[]}}),n=()=>{let{current:u,pageSize:c}=t.page,d=t.params;tn("/manage/collect/record/list",{...d,current:u,pageSize:c}).then(p=>{p.code===0?(p.data.list.map(h=>(h.timeFormat=rf.dateFormat(new Date(h.UpdatedAt).getTime()),h)),t.records=p.data.list,t.page=p.data.params.paging,t.options=p.data.options):at.error({message:p.msg})})},r=()=>{t.dateGroup&&t.dateGroup.length==2?(t.params.beginTime=t.dateGroup[0],t.params.endTime=t.dateGroup[1]):(t.params.beginTime="",t.params.endTime=""),n()},a=u=>{tn("/manage/collect/record/retry",{id:u}).then(c=>{c.code===0?at.success({message:c.msg}):at.error({message:c.msg})})},i=u=>{},o=()=>{Yh.confirm("是否对所有失效记录进行重新采集?","采集失败记录处理",{confirmButtonText:"执行",cancelButtonText:"取消",type:"warning",center:!0}).then(()=>{tn("/manage/collect/record/retry/all").then(u=>{u.code===0?at.success({message:u.msg}):at.error({message:u.msg})})}).catch(()=>{at({type:"warning",message:"采集恢复操作已取消!!!"})})},s=()=>{Yh.confirm("是否清除所有已处理的记录?","记录清除",{confirmButtonText:"执行",cancelButtonText:"取消",type:"warning",center:!0}).then(()=>{tn("/manage/collect/record/clear/done").then(u=>{u.code===0?at.success({message:u.msg}):at.error({message:u.msg})})}).catch(()=>{at({type:"warning",message:"记录清除已取消!!!"})})},l=()=>{Yh.confirm("是否清除所有记录?","记录清除",{confirmButtonText:"执行",cancelButtonText:"取消",type:"warning",center:!0}).then(()=>{tn("/manage/collect/record/clear/all").then(u=>{u.code===0?at.success({message:u.msg}):at.error({message:u.msg})})}).catch(()=>{at({type:"warning",message:"记录清除已取消!!!"})})};return ht(()=>{n(),console.log(t)}),(u,c)=>{const d=Ko,p=ii,h=ho,v=G1,m=_n,g=po,y=Yl,T=ai,b=ar,_=Gl,w=Vc;return x(),U("div",XCe,[M("div",QCe,[E(g,{model:t.params,class:"cus_form"},{default:P(()=>[E(h,null,{default:P(()=>[E(p,{modelValue:t.params.originId,"onUpdate:modelValue":c[0]||(c[0]=S=>t.params.originId=S),placeholder:"采集来源"},{default:P(()=>[(x(!0),U(Ge,null,mt(t.options.origin,S=>(x(),he(d,{key:S.value,label:S.name,value:S.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),oe("",!0),E(h,null,{default:P(()=>[E(p,{modelValue:t.params.status,"onUpdate:modelValue":c[2]||(c[2]=S=>t.params.status=S),placeholder:"记录状态"},{default:P(()=>[(x(!0),U(Ge,null,mt(t.options.status,S=>(x(),he(d,{key:S.value,label:S.name,value:S.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),E(h,null,{default:P(()=>[E(v,{modelValue:t.dateGroup,"onUpdate:modelValue":c[3]||(c[3]=S=>t.dateGroup=S),"value-format":"YYYY-MM-DD HH:mm:ss",type:"datetimerange","start-placeholder":"起始时间","end-placeholder":"终止时间"},null,8,["modelValue"])]),_:1}),E(h,null,{default:P(()=>[E(m,{type:"primary",onClick:r},{default:P(()=>c[6]||(c[6]=[we("查询")])),_:1})]),_:1})]),_:1},8,["model"])]),M("div",JCe,[E(_,{data:t.records,style:{width:"100%"},border:"",size:"default","table-layout":"auto","max-height":"calc(68vh - 20px)","row-key":"id",fit:"","row-class-name":"cus-tr"},{default:P(()=>[E(y,{type:"index",align:"left","min-width":"35px",label:"序列"},{default:P(S=>[M("span",ZCe,de(S.row.ID),1)]),_:1}),E(y,{prop:"originId",align:"center",label:"采集站"},{default:P(S=>[E(T,{type:"primary","disable-transitions":""},{default:P(()=>[we(de(S.row.originName),1)]),_:2},1024)]),_:1}),E(y,{prop:"originId",align:"center","min-width":"100px",label:"采集源ID"},{default:P(S=>[E(T,{type:"success","disable-transitions":""},{default:P(()=>[we(de(S.row.originId),1)]),_:2},1024)]),_:1}),E(y,{prop:"collectType",align:"center",label:"采集类型","show-overflow-tooltip":""},{default:P(S=>[E(T,{type:"success","disable-transitions":""},{default:P(()=>[we(de(S.row.collectType==0?"影片详情":"未知"),1)]),_:2},1024)]),_:1}),E(y,{prop:"pageNumber",align:"center",label:"分页页码"},{default:P(S=>[E(T,{type:"warning","disable-transitions":""},{default:P(()=>[we(de(S.row.pageNumber),1)]),_:2},1024)]),_:1}),E(y,{prop:"hour",align:"center",label:"采集时长"},{default:P(S=>[E(T,{type:"warning","disable-transitions":""},{default:P(()=>[we(de(S.row.hour),1)]),_:2},1024)]),_:1}),E(y,{prop:"cause",align:"center",label:"失败原因","min-width":"150px"},{default:P(S=>[E(T,{type:"danger","disable-transitions":""},{default:P(()=>[we(de(S.row.cause),1)]),_:2},1024)]),_:1}),E(y,{prop:"status",align:"center",label:"状态"},{default:P(S=>[S.row.status==1?(x(),he(T,{key:0,type:"warning"},{default:P(()=>c[7]||(c[7]=[we("待重试")])),_:1})):(x(),he(T,{key:1,type:"success"},{default:P(()=>c[8]||(c[8]=[we("已处理")])),_:1}))]),_:1}),E(y,{prop:"UpdatedAt",align:"center",label:"执行时间","min-width":"100px"},{default:P(S=>[E(T,{type:`${S.row.status==1?"warning":"success"}`,"disable-transitions":""},{default:P(()=>[we(de(S.row.timeFormat),1)]),_:2},1032,["type"])]),_:1}),E(y,{label:"操作",align:"center","min-width":"100px"},{default:P(S=>[E(b,{content:"采集重试",placement:"top"},{default:P(()=>[E(m,{type:"success",icon:f(p1),onClick:A=>a(S.row.ID),plain:"",circle:""},null,8,["icon","onClick"])]),_:2},1024),oe("",!0)]),_:1})]),_:1},8,["data"]),M("div",eEe,[M("div",tEe,[E(b,{content:"重试采集所有失败记录",placement:"top"},{default:P(()=>[E(m,{color:"#d942bf",icon:f(Sz),onClick:o},{default:P(()=>c[9]||(c[9]=[we("RetryAll")])),_:1},8,["icon"])]),_:1}),E(b,{content:"清除已处理记录,保留未处理记录",placement:"top"},{default:P(()=>[E(m,{type:"warning",icon:f(up),onClick:s},{default:P(()=>c[10]||(c[10]=[we("CleanDone")])),_:1},8,["icon"])]),_:1}),E(b,{content:"清除所有记录",placement:"top"},{default:P(()=>[E(m,{type:"danger",icon:f(UI),onClick:l},{default:P(()=>c[11]||(c[11]=[we("CleanAll")])),_:1},8,["icon"])]),_:1})]),E(w,{"page-sizes":[10,20,50,100,500],background:"",layout:"prev, pager, next, sizes, total, jumper",total:t.page.total,"page-size":t.page.pageSize,"onUpdate:pageSize":c[4]||(c[4]=S=>t.page.pageSize=S),"current-page":t.page.current,"onUpdate:currentPage":c[5]||(c[5]=S=>t.page.current=S),onChange:n,"hide-on-single-page":""},null,8,["total","page-size","current-page"])])])])}}}),rEe=En(nEe,[["__scopeId","data-v-5832260a"]]),aEe=[{path:"/",component:jme,redirect:"/index",children:[{path:"index",component:Mve},{path:"filmDetail",component:cge},{path:"play",component:XTe},{path:"search",component:cwe},{path:"filmClassify",component:jwe},{path:"filmClassifySearch",component:Awe},{path:"/custom/player",component:fCe},{path:"/history",component:YCe}]},{path:"/login",component:tSe},{path:"/manage",component:mSe,redirect:"/manage/index",children:[{path:"index",component:qwe},{path:"collect/index",component:SSe},{path:"collect/record",component:rEe},{path:"system/webSite",component:kSe},{path:"system/banners",component:NCe},{path:"cron/index",component:MSe},{path:"file/upload",component:rCe},{path:"file/gallery",component:sA},{path:"film",component:qSe},{path:"film/class",component:VSe},{path:"film/add",component:oCe},{path:"film/detail",component:sA}]},{path:"/:pathMatch(.*)*",component:vwe}],ew=Rpe({history:upe(),routes:aEe});ew.beforeEach((e,t,n)=>{let r=new RegExp(/^\/manage\//).test(e.path),a=OM();r&&!a?n("/login"):n()});const tw=Cv(Ofe);tw.use(Efe);tw.use(ew);tw.mount("#app")});export default iEe();